2008-06-05 Vladimir Prus <vladimir@codesourcery.com>
[deliverable/binutils-gdb.git] / gdb / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="main.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 gl_header_list=
313 ac_subdirs_all="$ac_subdirs_all doc testsuite"
314 ac_subdirs_all="$ac_subdirs_all gdbtk"
315 ac_subdirs_all="$ac_subdirs_all multi-ice"
316 ac_subdirs_all="$ac_subdirs_all gdbserver"
317 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
318 ac_subst_files='host_makefile_frag'
319
320 # Initialize some variables set by options.
321 ac_init_help=
322 ac_init_version=false
323 # The variables have the same names as the options, with
324 # dashes changed to underlines.
325 cache_file=/dev/null
326 exec_prefix=NONE
327 no_create=
328 no_recursion=
329 prefix=NONE
330 program_prefix=NONE
331 program_suffix=NONE
332 program_transform_name=s,x,x,
333 silent=
334 site=
335 srcdir=
336 verbose=
337 x_includes=NONE
338 x_libraries=NONE
339
340 # Installation directory options.
341 # These are left unexpanded so users can "make install exec_prefix=/foo"
342 # and all the variables that are supposed to be based on exec_prefix
343 # by default will actually change.
344 # Use braces instead of parens because sh, perl, etc. also accept them.
345 bindir='${exec_prefix}/bin'
346 sbindir='${exec_prefix}/sbin'
347 libexecdir='${exec_prefix}/libexec'
348 datadir='${prefix}/share'
349 sysconfdir='${prefix}/etc'
350 sharedstatedir='${prefix}/com'
351 localstatedir='${prefix}/var'
352 libdir='${exec_prefix}/lib'
353 includedir='${prefix}/include'
354 oldincludedir='/usr/include'
355 infodir='${prefix}/info'
356 mandir='${prefix}/man'
357
358 ac_prev=
359 for ac_option
360 do
361 # If the previous option needs an argument, assign it.
362 if test -n "$ac_prev"; then
363 eval "$ac_prev=\$ac_option"
364 ac_prev=
365 continue
366 fi
367
368 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
369
370 # Accept the important Cygnus configure options, so we can diagnose typos.
371
372 case $ac_option in
373
374 -bindir | --bindir | --bindi | --bind | --bin | --bi)
375 ac_prev=bindir ;;
376 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
377 bindir=$ac_optarg ;;
378
379 -build | --build | --buil | --bui | --bu)
380 ac_prev=build_alias ;;
381 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
382 build_alias=$ac_optarg ;;
383
384 -cache-file | --cache-file | --cache-fil | --cache-fi \
385 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
386 ac_prev=cache_file ;;
387 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
388 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
389 cache_file=$ac_optarg ;;
390
391 --config-cache | -C)
392 cache_file=config.cache ;;
393
394 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
395 ac_prev=datadir ;;
396 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
397 | --da=*)
398 datadir=$ac_optarg ;;
399
400 -disable-* | --disable-*)
401 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
405 { (exit 1); exit 1; }; }
406 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
407 eval "enable_$ac_feature=no" ;;
408
409 -enable-* | --enable-*)
410 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
411 # Reject names that are not valid shell variable names.
412 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
413 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
414 { (exit 1); exit 1; }; }
415 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
416 case $ac_option in
417 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
418 *) ac_optarg=yes ;;
419 esac
420 eval "enable_$ac_feature='$ac_optarg'" ;;
421
422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
424 | --exec | --exe | --ex)
425 ac_prev=exec_prefix ;;
426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
428 | --exec=* | --exe=* | --ex=*)
429 exec_prefix=$ac_optarg ;;
430
431 -gas | --gas | --ga | --g)
432 # Obsolete; use --with-gas.
433 with_gas=yes ;;
434
435 -help | --help | --hel | --he | -h)
436 ac_init_help=long ;;
437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
438 ac_init_help=recursive ;;
439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
440 ac_init_help=short ;;
441
442 -host | --host | --hos | --ho)
443 ac_prev=host_alias ;;
444 -host=* | --host=* | --hos=* | --ho=*)
445 host_alias=$ac_optarg ;;
446
447 -includedir | --includedir | --includedi | --included | --include \
448 | --includ | --inclu | --incl | --inc)
449 ac_prev=includedir ;;
450 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
451 | --includ=* | --inclu=* | --incl=* | --inc=*)
452 includedir=$ac_optarg ;;
453
454 -infodir | --infodir | --infodi | --infod | --info | --inf)
455 ac_prev=infodir ;;
456 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
457 infodir=$ac_optarg ;;
458
459 -libdir | --libdir | --libdi | --libd)
460 ac_prev=libdir ;;
461 -libdir=* | --libdir=* | --libdi=* | --libd=*)
462 libdir=$ac_optarg ;;
463
464 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
465 | --libexe | --libex | --libe)
466 ac_prev=libexecdir ;;
467 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
468 | --libexe=* | --libex=* | --libe=*)
469 libexecdir=$ac_optarg ;;
470
471 -localstatedir | --localstatedir | --localstatedi | --localstated \
472 | --localstate | --localstat | --localsta | --localst \
473 | --locals | --local | --loca | --loc | --lo)
474 ac_prev=localstatedir ;;
475 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
476 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
477 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
478 localstatedir=$ac_optarg ;;
479
480 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
481 ac_prev=mandir ;;
482 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
483 mandir=$ac_optarg ;;
484
485 -nfp | --nfp | --nf)
486 # Obsolete; use --without-fp.
487 with_fp=no ;;
488
489 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
490 | --no-cr | --no-c | -n)
491 no_create=yes ;;
492
493 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
494 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
495 no_recursion=yes ;;
496
497 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
498 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
499 | --oldin | --oldi | --old | --ol | --o)
500 ac_prev=oldincludedir ;;
501 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
502 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
503 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
504 oldincludedir=$ac_optarg ;;
505
506 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
507 ac_prev=prefix ;;
508 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
509 prefix=$ac_optarg ;;
510
511 -program-prefix | --program-prefix | --program-prefi | --program-pref \
512 | --program-pre | --program-pr | --program-p)
513 ac_prev=program_prefix ;;
514 -program-prefix=* | --program-prefix=* | --program-prefi=* \
515 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
516 program_prefix=$ac_optarg ;;
517
518 -program-suffix | --program-suffix | --program-suffi | --program-suff \
519 | --program-suf | --program-su | --program-s)
520 ac_prev=program_suffix ;;
521 -program-suffix=* | --program-suffix=* | --program-suffi=* \
522 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
523 program_suffix=$ac_optarg ;;
524
525 -program-transform-name | --program-transform-name \
526 | --program-transform-nam | --program-transform-na \
527 | --program-transform-n | --program-transform- \
528 | --program-transform | --program-transfor \
529 | --program-transfo | --program-transf \
530 | --program-trans | --program-tran \
531 | --progr-tra | --program-tr | --program-t)
532 ac_prev=program_transform_name ;;
533 -program-transform-name=* | --program-transform-name=* \
534 | --program-transform-nam=* | --program-transform-na=* \
535 | --program-transform-n=* | --program-transform-=* \
536 | --program-transform=* | --program-transfor=* \
537 | --program-transfo=* | --program-transf=* \
538 | --program-trans=* | --program-tran=* \
539 | --progr-tra=* | --program-tr=* | --program-t=*)
540 program_transform_name=$ac_optarg ;;
541
542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
543 | -silent | --silent | --silen | --sile | --sil)
544 silent=yes ;;
545
546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
547 ac_prev=sbindir ;;
548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
549 | --sbi=* | --sb=*)
550 sbindir=$ac_optarg ;;
551
552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
554 | --sharedst | --shareds | --shared | --share | --shar \
555 | --sha | --sh)
556 ac_prev=sharedstatedir ;;
557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
560 | --sha=* | --sh=*)
561 sharedstatedir=$ac_optarg ;;
562
563 -site | --site | --sit)
564 ac_prev=site ;;
565 -site=* | --site=* | --sit=*)
566 site=$ac_optarg ;;
567
568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
569 ac_prev=srcdir ;;
570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
571 srcdir=$ac_optarg ;;
572
573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
574 | --syscon | --sysco | --sysc | --sys | --sy)
575 ac_prev=sysconfdir ;;
576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
578 sysconfdir=$ac_optarg ;;
579
580 -target | --target | --targe | --targ | --tar | --ta | --t)
581 ac_prev=target_alias ;;
582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
583 target_alias=$ac_optarg ;;
584
585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
586 verbose=yes ;;
587
588 -version | --version | --versio | --versi | --vers | -V)
589 ac_init_version=: ;;
590
591 -with-* | --with-*)
592 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
593 # Reject names that are not valid shell variable names.
594 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
595 { echo "$as_me: error: invalid package name: $ac_package" >&2
596 { (exit 1); exit 1; }; }
597 ac_package=`echo $ac_package| sed 's/-/_/g'`
598 case $ac_option in
599 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
600 *) ac_optarg=yes ;;
601 esac
602 eval "with_$ac_package='$ac_optarg'" ;;
603
604 -without-* | --without-*)
605 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
606 # Reject names that are not valid shell variable names.
607 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
608 { echo "$as_me: error: invalid package name: $ac_package" >&2
609 { (exit 1); exit 1; }; }
610 ac_package=`echo $ac_package | sed 's/-/_/g'`
611 eval "with_$ac_package=no" ;;
612
613 --x)
614 # Obsolete; use --with-x.
615 with_x=yes ;;
616
617 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
618 | --x-incl | --x-inc | --x-in | --x-i)
619 ac_prev=x_includes ;;
620 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
621 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
622 x_includes=$ac_optarg ;;
623
624 -x-libraries | --x-libraries | --x-librarie | --x-librari \
625 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
626 ac_prev=x_libraries ;;
627 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
628 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
629 x_libraries=$ac_optarg ;;
630
631 -*) { echo "$as_me: error: unrecognized option: $ac_option
632 Try \`$0 --help' for more information." >&2
633 { (exit 1); exit 1; }; }
634 ;;
635
636 *=*)
637 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
638 # Reject names that are not valid shell variable names.
639 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
640 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
641 { (exit 1); exit 1; }; }
642 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
643 eval "$ac_envvar='$ac_optarg'"
644 export $ac_envvar ;;
645
646 *)
647 # FIXME: should be removed in autoconf 3.0.
648 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
649 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
650 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
651 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 ;;
653
654 esac
655 done
656
657 if test -n "$ac_prev"; then
658 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
659 { echo "$as_me: error: missing argument to $ac_option" >&2
660 { (exit 1); exit 1; }; }
661 fi
662
663 # Be sure to have absolute paths.
664 for ac_var in exec_prefix prefix
665 do
666 eval ac_val=$`echo $ac_var`
667 case $ac_val in
668 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
669 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
670 { (exit 1); exit 1; }; };;
671 esac
672 done
673
674 # Be sure to have absolute paths.
675 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
676 localstatedir libdir includedir oldincludedir infodir mandir
677 do
678 eval ac_val=$`echo $ac_var`
679 case $ac_val in
680 [\\/$]* | ?:[\\/]* ) ;;
681 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
682 { (exit 1); exit 1; }; };;
683 esac
684 done
685
686 # There might be people who depend on the old broken behavior: `$host'
687 # used to hold the argument of --host etc.
688 # FIXME: To remove some day.
689 build=$build_alias
690 host=$host_alias
691 target=$target_alias
692
693 # FIXME: To remove some day.
694 if test "x$host_alias" != x; then
695 if test "x$build_alias" = x; then
696 cross_compiling=maybe
697 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
698 If a cross compiler is detected then cross compile mode will be used." >&2
699 elif test "x$build_alias" != "x$host_alias"; then
700 cross_compiling=yes
701 fi
702 fi
703
704 ac_tool_prefix=
705 test -n "$host_alias" && ac_tool_prefix=$host_alias-
706
707 test "$silent" = yes && exec 6>/dev/null
708
709
710 # Find the source files, if location was not specified.
711 if test -z "$srcdir"; then
712 ac_srcdir_defaulted=yes
713 # Try the directory containing this script, then its parent.
714 ac_confdir=`(dirname "$0") 2>/dev/null ||
715 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
716 X"$0" : 'X\(//\)[^/]' \| \
717 X"$0" : 'X\(//\)$' \| \
718 X"$0" : 'X\(/\)' \| \
719 . : '\(.\)' 2>/dev/null ||
720 echo X"$0" |
721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
722 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
723 /^X\(\/\/\)$/{ s//\1/; q; }
724 /^X\(\/\).*/{ s//\1/; q; }
725 s/.*/./; q'`
726 srcdir=$ac_confdir
727 if test ! -r $srcdir/$ac_unique_file; then
728 srcdir=..
729 fi
730 else
731 ac_srcdir_defaulted=no
732 fi
733 if test ! -r $srcdir/$ac_unique_file; then
734 if test "$ac_srcdir_defaulted" = yes; then
735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
736 { (exit 1); exit 1; }; }
737 else
738 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
739 { (exit 1); exit 1; }; }
740 fi
741 fi
742 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
743 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
744 { (exit 1); exit 1; }; }
745 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
746 ac_env_build_alias_set=${build_alias+set}
747 ac_env_build_alias_value=$build_alias
748 ac_cv_env_build_alias_set=${build_alias+set}
749 ac_cv_env_build_alias_value=$build_alias
750 ac_env_host_alias_set=${host_alias+set}
751 ac_env_host_alias_value=$host_alias
752 ac_cv_env_host_alias_set=${host_alias+set}
753 ac_cv_env_host_alias_value=$host_alias
754 ac_env_target_alias_set=${target_alias+set}
755 ac_env_target_alias_value=$target_alias
756 ac_cv_env_target_alias_set=${target_alias+set}
757 ac_cv_env_target_alias_value=$target_alias
758 ac_env_CC_set=${CC+set}
759 ac_env_CC_value=$CC
760 ac_cv_env_CC_set=${CC+set}
761 ac_cv_env_CC_value=$CC
762 ac_env_CFLAGS_set=${CFLAGS+set}
763 ac_env_CFLAGS_value=$CFLAGS
764 ac_cv_env_CFLAGS_set=${CFLAGS+set}
765 ac_cv_env_CFLAGS_value=$CFLAGS
766 ac_env_LDFLAGS_set=${LDFLAGS+set}
767 ac_env_LDFLAGS_value=$LDFLAGS
768 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
769 ac_cv_env_LDFLAGS_value=$LDFLAGS
770 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
771 ac_env_CPPFLAGS_value=$CPPFLAGS
772 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
773 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
774 ac_env_CPP_set=${CPP+set}
775 ac_env_CPP_value=$CPP
776 ac_cv_env_CPP_set=${CPP+set}
777 ac_cv_env_CPP_value=$CPP
778
779 #
780 # Report the --help message.
781 #
782 if test "$ac_init_help" = "long"; then
783 # Omit some internal or obsolete options to make the list less imposing.
784 # This message is too long to be a string in the A/UX 3.1 sh.
785 cat <<_ACEOF
786 \`configure' configures this package to adapt to many kinds of systems.
787
788 Usage: $0 [OPTION]... [VAR=VALUE]...
789
790 To assign environment variables (e.g., CC, CFLAGS...), specify them as
791 VAR=VALUE. See below for descriptions of some of the useful variables.
792
793 Defaults for the options are specified in brackets.
794
795 Configuration:
796 -h, --help display this help and exit
797 --help=short display options specific to this package
798 --help=recursive display the short help of all the included packages
799 -V, --version display version information and exit
800 -q, --quiet, --silent do not print \`checking...' messages
801 --cache-file=FILE cache test results in FILE [disabled]
802 -C, --config-cache alias for \`--cache-file=config.cache'
803 -n, --no-create do not create output files
804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805
806 _ACEOF
807
808 cat <<_ACEOF
809 Installation directories:
810 --prefix=PREFIX install architecture-independent files in PREFIX
811 [$ac_default_prefix]
812 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
813 [PREFIX]
814
815 By default, \`make install' will install all the files in
816 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
817 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
818 for instance \`--prefix=\$HOME'.
819
820 For better control, use the options below.
821
822 Fine tuning of the installation directories:
823 --bindir=DIR user executables [EPREFIX/bin]
824 --sbindir=DIR system admin executables [EPREFIX/sbin]
825 --libexecdir=DIR program executables [EPREFIX/libexec]
826 --datadir=DIR read-only architecture-independent data [PREFIX/share]
827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
830 --libdir=DIR object code libraries [EPREFIX/lib]
831 --includedir=DIR C header files [PREFIX/include]
832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
833 --infodir=DIR info documentation [PREFIX/info]
834 --mandir=DIR man documentation [PREFIX/man]
835 _ACEOF
836
837 cat <<\_ACEOF
838
839 Program names:
840 --program-prefix=PREFIX prepend PREFIX to installed program names
841 --program-suffix=SUFFIX append SUFFIX to installed program names
842 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
843
844 X features:
845 --x-includes=DIR X include files are in DIR
846 --x-libraries=DIR X library files are in DIR
847
848 System types:
849 --build=BUILD configure for building on BUILD [guessed]
850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 --target=TARGET configure for building compilers for TARGET [HOST]
852 _ACEOF
853 fi
854
855 if test -n "$ac_init_help"; then
856
857 cat <<\_ACEOF
858
859 Optional Features:
860 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
861 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
862 --enable-maintainer-mode enable make rules and dependencies not useful
863 (and sometimes confusing) to the casual installer
864 --disable-dependency-tracking speeds up one-time build
865 --enable-dependency-tracking do not reject slow dependency extractors
866 --enable-targets alternative target configurations
867 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
868 --disable-gdbcli disable command-line interface (CLI)
869 --disable-gdbmi disable machine-interface (MI)
870 --enable-tui enable full-screen terminal user interface (TUI)
871 --enable-gdbtk enable gdbtk graphical user interface (GUI)
872 --enable-profiling enable profiling of GDB
873 --disable-rpath do not hardcode runtime library paths
874 --enable-werror treat compile warnings as errors
875 --enable-build-warnings Enable build-time compiler warnings if gcc is used
876 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
877 --enable-sim Link gdb with simulator
878 --enable-multi-ice build the multi-ice-gdb-server
879
880 Optional Packages:
881 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
882 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
883 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
884 --with-libunwind Use libunwind frame unwinding support
885 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
886 --with-bugurl=URL Direct users to URL to report a bug
887 --with-system-readline use installed readline library
888 --with-expat include expat support (auto/yes/no)
889 --with-gnu-ld assume the C compiler uses GNU ld default=no
890 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
891 --without-libexpat-prefix don't search for libexpat in includedir and libdir
892 --without-included-regex don't use included regex; this is the default
893 on systems with version 2 of the GNU C library
894 (use with caution on other system)
895 --with-sysroot=DIR Search for usr/lib et al within DIR.
896 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
897 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
898 --with-tclinclude=DIR Directory where tcl private headers are
899 --with-tkinclude=DIR Directory where tk private headers are
900 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
901 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
902 --with-x use the X Window System
903 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
904
905 Some influential environment variables:
906 CC C compiler command
907 CFLAGS C compiler flags
908 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
909 nonstandard directory <lib dir>
910 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
911 headers in a nonstandard directory <include dir>
912 CPP C preprocessor
913
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
916
917 _ACEOF
918 fi
919
920 if test "$ac_init_help" = "recursive"; then
921 # If there are subdirs, report their specific --help.
922 ac_popdir=`pwd`
923 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924 test -d $ac_dir || continue
925 ac_builddir=.
926
927 if test "$ac_dir" != .; then
928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929 # A "../" for each directory in $ac_dir_suffix.
930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 else
932 ac_dir_suffix= ac_top_builddir=
933 fi
934
935 case $srcdir in
936 .) # No --srcdir option. We are building in place.
937 ac_srcdir=.
938 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir=.
940 else
941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942 fi ;;
943 [\\/]* | ?:[\\/]* ) # Absolute path.
944 ac_srcdir=$srcdir$ac_dir_suffix;
945 ac_top_srcdir=$srcdir ;;
946 *) # Relative path.
947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 esac
950
951 # Do not use `cd foo && pwd` to compute absolute paths, because
952 # the directories may not exist.
953 case `pwd` in
954 .) ac_abs_builddir="$ac_dir";;
955 *)
956 case "$ac_dir" in
957 .) ac_abs_builddir=`pwd`;;
958 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959 *) ac_abs_builddir=`pwd`/"$ac_dir";;
960 esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
964 *)
965 case ${ac_top_builddir}. in
966 .) ac_abs_top_builddir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969 esac;;
970 esac
971 case $ac_abs_builddir in
972 .) ac_abs_srcdir=$ac_srcdir;;
973 *)
974 case $ac_srcdir in
975 .) ac_abs_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978 esac;;
979 esac
980 case $ac_abs_builddir in
981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
982 *)
983 case $ac_top_srcdir in
984 .) ac_abs_top_srcdir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987 esac;;
988 esac
989
990 cd $ac_dir
991 # Check for guested configure; otherwise get Cygnus style configure.
992 if test -f $ac_srcdir/configure.gnu; then
993 echo
994 $SHELL $ac_srcdir/configure.gnu --help=recursive
995 elif test -f $ac_srcdir/configure; then
996 echo
997 $SHELL $ac_srcdir/configure --help=recursive
998 elif test -f $ac_srcdir/configure.ac ||
999 test -f $ac_srcdir/configure.in; then
1000 echo
1001 $ac_configure --help
1002 else
1003 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1004 fi
1005 cd $ac_popdir
1006 done
1007 fi
1008
1009 test -n "$ac_init_help" && exit 0
1010 if $ac_init_version; then
1011 cat <<\_ACEOF
1012
1013 Copyright (C) 2003 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1016 _ACEOF
1017 exit 0
1018 fi
1019 exec 5>config.log
1020 cat >&5 <<_ACEOF
1021 This file contains any messages produced by compilers while
1022 running configure, to aid debugging if configure makes a mistake.
1023
1024 It was created by $as_me, which was
1025 generated by GNU Autoconf 2.59. Invocation command line was
1026
1027 $ $0 $@
1028
1029 _ACEOF
1030 {
1031 cat <<_ASUNAME
1032 ## --------- ##
1033 ## Platform. ##
1034 ## --------- ##
1035
1036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1041
1042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1044
1045 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1049 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1052
1053 _ASUNAME
1054
1055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 for as_dir in $PATH
1057 do
1058 IFS=$as_save_IFS
1059 test -z "$as_dir" && as_dir=.
1060 echo "PATH: $as_dir"
1061 done
1062
1063 } >&5
1064
1065 cat >&5 <<_ACEOF
1066
1067
1068 ## ----------- ##
1069 ## Core tests. ##
1070 ## ----------- ##
1071
1072 _ACEOF
1073
1074
1075 # Keep a trace of the command line.
1076 # Strip out --no-create and --no-recursion so they do not pile up.
1077 # Strip out --silent because we don't want to record it for future runs.
1078 # Also quote any args containing shell meta-characters.
1079 # Make two passes to allow for proper duplicate-argument suppression.
1080 ac_configure_args=
1081 ac_configure_args0=
1082 ac_configure_args1=
1083 ac_sep=
1084 ac_must_keep_next=false
1085 for ac_pass in 1 2
1086 do
1087 for ac_arg
1088 do
1089 case $ac_arg in
1090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 continue ;;
1094 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096 esac
1097 case $ac_pass in
1098 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1099 2)
1100 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101 if test $ac_must_keep_next = true; then
1102 ac_must_keep_next=false # Got value, back to normal.
1103 else
1104 case $ac_arg in
1105 *=* | --config-cache | -C | -disable-* | --disable-* \
1106 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108 | -with-* | --with-* | -without-* | --without-* | --x)
1109 case "$ac_configure_args0 " in
1110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111 esac
1112 ;;
1113 -* ) ac_must_keep_next=true ;;
1114 esac
1115 fi
1116 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117 # Get rid of the leading space.
1118 ac_sep=" "
1119 ;;
1120 esac
1121 done
1122 done
1123 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1125
1126 # When interrupted or exit'd, cleanup temporary files, and complete
1127 # config.log. We remove comments because anyway the quotes in there
1128 # would cause problems or look ugly.
1129 # WARNING: Be sure not to use single quotes in there, as some shells,
1130 # such as our DU 5.0 friend, will then `close' the trap.
1131 trap 'exit_status=$?
1132 # Save into config.log some information that might help in debugging.
1133 {
1134 echo
1135
1136 cat <<\_ASBOX
1137 ## ---------------- ##
1138 ## Cache variables. ##
1139 ## ---------------- ##
1140 _ASBOX
1141 echo
1142 # The following way of writing the cache mishandles newlines in values,
1143 {
1144 (set) 2>&1 |
1145 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146 *ac_space=\ *)
1147 sed -n \
1148 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1150 ;;
1151 *)
1152 sed -n \
1153 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1154 ;;
1155 esac;
1156 }
1157 echo
1158
1159 cat <<\_ASBOX
1160 ## ----------------- ##
1161 ## Output variables. ##
1162 ## ----------------- ##
1163 _ASBOX
1164 echo
1165 for ac_var in $ac_subst_vars
1166 do
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
1169 done | sort
1170 echo
1171
1172 if test -n "$ac_subst_files"; then
1173 cat <<\_ASBOX
1174 ## ------------- ##
1175 ## Output files. ##
1176 ## ------------- ##
1177 _ASBOX
1178 echo
1179 for ac_var in $ac_subst_files
1180 do
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
1183 done | sort
1184 echo
1185 fi
1186
1187 if test -s confdefs.h; then
1188 cat <<\_ASBOX
1189 ## ----------- ##
1190 ## confdefs.h. ##
1191 ## ----------- ##
1192 _ASBOX
1193 echo
1194 sed "/^$/d" confdefs.h | sort
1195 echo
1196 fi
1197 test "$ac_signal" != 0 &&
1198 echo "$as_me: caught signal $ac_signal"
1199 echo "$as_me: exit $exit_status"
1200 } >&5
1201 rm -f core *.core &&
1202 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1203 exit $exit_status
1204 ' 0
1205 for ac_signal in 1 2 13 15; do
1206 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207 done
1208 ac_signal=0
1209
1210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211 rm -rf conftest* confdefs.h
1212 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213 echo >confdefs.h
1214
1215 # Predefined preprocessor variables.
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_NAME "$PACKAGE_NAME"
1219 _ACEOF
1220
1221
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224 _ACEOF
1225
1226
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1229 _ACEOF
1230
1231
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_STRING "$PACKAGE_STRING"
1234 _ACEOF
1235
1236
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239 _ACEOF
1240
1241
1242 # Let the site file select an alternate cache file if it wants to.
1243 # Prefer explicitly selected file to automatically selected ones.
1244 if test -z "$CONFIG_SITE"; then
1245 if test "x$prefix" != xNONE; then
1246 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1247 else
1248 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1249 fi
1250 fi
1251 for ac_site_file in $CONFIG_SITE; do
1252 if test -r "$ac_site_file"; then
1253 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254 echo "$as_me: loading site script $ac_site_file" >&6;}
1255 sed 's/^/| /' "$ac_site_file" >&5
1256 . "$ac_site_file"
1257 fi
1258 done
1259
1260 if test -r "$cache_file"; then
1261 # Some versions of bash will fail to source /dev/null (special
1262 # files actually), so we avoid doing that.
1263 if test -f "$cache_file"; then
1264 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265 echo "$as_me: loading cache $cache_file" >&6;}
1266 case $cache_file in
1267 [\\/]* | ?:[\\/]* ) . $cache_file;;
1268 *) . ./$cache_file;;
1269 esac
1270 fi
1271 else
1272 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273 echo "$as_me: creating cache $cache_file" >&6;}
1274 >$cache_file
1275 fi
1276
1277 # Check that the precious variables saved in the cache have kept the same
1278 # value.
1279 ac_cache_corrupted=false
1280 for ac_var in `(set) 2>&1 |
1281 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283 eval ac_new_set=\$ac_env_${ac_var}_set
1284 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285 eval ac_new_val="\$ac_env_${ac_var}_value"
1286 case $ac_old_set,$ac_new_set in
1287 set,)
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1291 ,set)
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1295 ,);;
1296 *)
1297 if test "x$ac_old_val" != "x$ac_new_val"; then
1298 # differences in whitespace do not lead to failure.
1299 ac_old_val_w=`echo x $ac_old_val`
1300 ac_new_val_w=`echo x $ac_new_val`
1301 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1302 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1303 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1304 ac_cache_corrupted=:
1305 else
1306 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1307 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1308 eval $ac_var=\$ac_old_val
1309 fi
1310 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1311 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1312 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1313 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1314 fi;;
1315 esac
1316 # Pass precious variables to config.status.
1317 if test "$ac_new_set" = set; then
1318 case $ac_new_val in
1319 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1320 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1321 *) ac_arg=$ac_var=$ac_new_val ;;
1322 esac
1323 case " $ac_configure_args " in
1324 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1325 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1326 esac
1327 fi
1328 done
1329 if $ac_cache_corrupted; then
1330 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334 { (exit 1); exit 1; }; }
1335 fi
1336
1337 ac_ext=c
1338 ac_cpp='$CPP $CPPFLAGS'
1339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1342
1343
1344 gl_header_list="$gl_header_list stdint.h"
1345 gl_header_list="$gl_header_list wchar.h"
1346 gl_header_list="$gl_header_list string.h"
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364 ac_config_headers="$ac_config_headers config.h:config.in"
1365
1366 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1367 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1368 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1369 if test "${enable_maintainer_mode+set}" = set; then
1370 enableval="$enable_maintainer_mode"
1371 USE_MAINTAINER_MODE=$enableval
1372 else
1373 USE_MAINTAINER_MODE=no
1374 fi;
1375 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1376 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1377
1378
1379 if test $USE_MAINTAINER_MODE = yes; then
1380 MAINTAINER_MODE_TRUE=
1381 MAINTAINER_MODE_FALSE='#'
1382 else
1383 MAINTAINER_MODE_TRUE='#'
1384 MAINTAINER_MODE_FALSE=
1385 fi
1386
1387 MAINT=$MAINTAINER_MODE_TRUE
1388
1389
1390
1391 ac_ext=c
1392 ac_cpp='$CPP $CPPFLAGS'
1393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1396 if test -n "$ac_tool_prefix"; then
1397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1398 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1399 echo "$as_me:$LINENO: checking for $ac_word" >&5
1400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1401 if test "${ac_cv_prog_CC+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404 if test -n "$CC"; then
1405 ac_cv_prog_CC="$CC" # Let the user override the test.
1406 else
1407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1408 for as_dir in $PATH
1409 do
1410 IFS=$as_save_IFS
1411 test -z "$as_dir" && as_dir=.
1412 for ac_exec_ext in '' $ac_executable_extensions; do
1413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1416 break 2
1417 fi
1418 done
1419 done
1420
1421 fi
1422 fi
1423 CC=$ac_cv_prog_CC
1424 if test -n "$CC"; then
1425 echo "$as_me:$LINENO: result: $CC" >&5
1426 echo "${ECHO_T}$CC" >&6
1427 else
1428 echo "$as_me:$LINENO: result: no" >&5
1429 echo "${ECHO_T}no" >&6
1430 fi
1431
1432 fi
1433 if test -z "$ac_cv_prog_CC"; then
1434 ac_ct_CC=$CC
1435 # Extract the first word of "gcc", so it can be a program name with args.
1436 set dummy gcc; ac_word=$2
1437 echo "$as_me:$LINENO: checking for $ac_word" >&5
1438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 else
1442 if test -n "$ac_ct_CC"; then
1443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1444 else
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1447 do
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1452 ac_cv_prog_ac_ct_CC="gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 break 2
1455 fi
1456 done
1457 done
1458
1459 fi
1460 fi
1461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1462 if test -n "$ac_ct_CC"; then
1463 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1464 echo "${ECHO_T}$ac_ct_CC" >&6
1465 else
1466 echo "$as_me:$LINENO: result: no" >&5
1467 echo "${ECHO_T}no" >&6
1468 fi
1469
1470 CC=$ac_ct_CC
1471 else
1472 CC="$ac_cv_prog_CC"
1473 fi
1474
1475 if test -z "$CC"; then
1476 if test -n "$ac_tool_prefix"; then
1477 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1478 set dummy ${ac_tool_prefix}cc; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484 if test -n "$CC"; then
1485 ac_cv_prog_CC="$CC" # Let the user override the test.
1486 else
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1489 do
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_CC="${ac_tool_prefix}cc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 break 2
1497 fi
1498 done
1499 done
1500
1501 fi
1502 fi
1503 CC=$ac_cv_prog_CC
1504 if test -n "$CC"; then
1505 echo "$as_me:$LINENO: result: $CC" >&5
1506 echo "${ECHO_T}$CC" >&6
1507 else
1508 echo "$as_me:$LINENO: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1510 fi
1511
1512 fi
1513 if test -z "$ac_cv_prog_CC"; then
1514 ac_ct_CC=$CC
1515 # Extract the first word of "cc", so it can be a program name with args.
1516 set dummy cc; ac_word=$2
1517 echo "$as_me:$LINENO: checking for $ac_word" >&5
1518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521 else
1522 if test -n "$ac_ct_CC"; then
1523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1524 else
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1527 do
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_ac_ct_CC="cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 break 2
1535 fi
1536 done
1537 done
1538
1539 fi
1540 fi
1541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1542 if test -n "$ac_ct_CC"; then
1543 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1544 echo "${ECHO_T}$ac_ct_CC" >&6
1545 else
1546 echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1548 fi
1549
1550 CC=$ac_ct_CC
1551 else
1552 CC="$ac_cv_prog_CC"
1553 fi
1554
1555 fi
1556 if test -z "$CC"; then
1557 # Extract the first word of "cc", so it can be a program name with args.
1558 set dummy cc; ac_word=$2
1559 echo "$as_me:$LINENO: checking for $ac_word" >&5
1560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561 if test "${ac_cv_prog_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 if test -n "$CC"; then
1565 ac_cv_prog_CC="$CC" # Let the user override the test.
1566 else
1567 ac_prog_rejected=no
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569 for as_dir in $PATH
1570 do
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1576 ac_prog_rejected=yes
1577 continue
1578 fi
1579 ac_cv_prog_CC="cc"
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 break 2
1582 fi
1583 done
1584 done
1585
1586 if test $ac_prog_rejected = yes; then
1587 # We found a bogon in the path, so make sure we never use it.
1588 set dummy $ac_cv_prog_CC
1589 shift
1590 if test $# != 0; then
1591 # We chose a different compiler from the bogus one.
1592 # However, it has the same basename, so the bogon will be chosen
1593 # first if we set CC to just the basename; use the full file name.
1594 shift
1595 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1596 fi
1597 fi
1598 fi
1599 fi
1600 CC=$ac_cv_prog_CC
1601 if test -n "$CC"; then
1602 echo "$as_me:$LINENO: result: $CC" >&5
1603 echo "${ECHO_T}$CC" >&6
1604 else
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1607 fi
1608
1609 fi
1610 if test -z "$CC"; then
1611 if test -n "$ac_tool_prefix"; then
1612 for ac_prog in cl
1613 do
1614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1616 echo "$as_me:$LINENO: checking for $ac_word" >&5
1617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1618 if test "${ac_cv_prog_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 else
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1623 else
1624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625 for as_dir in $PATH
1626 do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 break 2
1634 fi
1635 done
1636 done
1637
1638 fi
1639 fi
1640 CC=$ac_cv_prog_CC
1641 if test -n "$CC"; then
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643 echo "${ECHO_T}$CC" >&6
1644 else
1645 echo "$as_me:$LINENO: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1647 fi
1648
1649 test -n "$CC" && break
1650 done
1651 fi
1652 if test -z "$CC"; then
1653 ac_ct_CC=$CC
1654 for ac_prog in cl
1655 do
1656 # Extract the first word of "$ac_prog", so it can be a program name with args.
1657 set dummy $ac_prog; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663 if test -n "$ac_ct_CC"; then
1664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1665 else
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673 ac_cv_prog_ac_ct_CC="$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 break 2
1676 fi
1677 done
1678 done
1679
1680 fi
1681 fi
1682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1683 if test -n "$ac_ct_CC"; then
1684 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1685 echo "${ECHO_T}$ac_ct_CC" >&6
1686 else
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1689 fi
1690
1691 test -n "$ac_ct_CC" && break
1692 done
1693
1694 CC=$ac_ct_CC
1695 fi
1696
1697 fi
1698
1699
1700 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1701 See \`config.log' for more details." >&5
1702 echo "$as_me: error: no acceptable C compiler found in \$PATH
1703 See \`config.log' for more details." >&2;}
1704 { (exit 1); exit 1; }; }
1705
1706 # Provide some information about the compiler.
1707 echo "$as_me:$LINENO:" \
1708 "checking for C compiler version" >&5
1709 ac_compiler=`set X $ac_compile; echo $2`
1710 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1711 (eval $ac_compiler --version </dev/null >&5) 2>&5
1712 ac_status=$?
1713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1714 (exit $ac_status); }
1715 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1716 (eval $ac_compiler -v </dev/null >&5) 2>&5
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1721 (eval $ac_compiler -V </dev/null >&5) 2>&5
1722 ac_status=$?
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1725
1726 cat >conftest.$ac_ext <<_ACEOF
1727 /* confdefs.h. */
1728 _ACEOF
1729 cat confdefs.h >>conftest.$ac_ext
1730 cat >>conftest.$ac_ext <<_ACEOF
1731 /* end confdefs.h. */
1732
1733 int
1734 main ()
1735 {
1736
1737 ;
1738 return 0;
1739 }
1740 _ACEOF
1741 ac_clean_files_save=$ac_clean_files
1742 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1743 # Try to create an executable without -o first, disregard a.out.
1744 # It will help us diagnose broken compilers, and finding out an intuition
1745 # of exeext.
1746 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1747 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1748 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1749 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1750 (eval $ac_link_default) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }; then
1754 # Find the output, starting from the most likely. This scheme is
1755 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1756 # resort.
1757
1758 # Be careful to initialize this variable, since it used to be cached.
1759 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1760 ac_cv_exeext=
1761 # b.out is created by i960 compilers.
1762 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1763 do
1764 test -f "$ac_file" || continue
1765 case $ac_file in
1766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1767 ;;
1768 conftest.$ac_ext )
1769 # This is the source file.
1770 ;;
1771 [ab].out )
1772 # We found the default executable, but exeext='' is most
1773 # certainly right.
1774 break;;
1775 *.* )
1776 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1777 # FIXME: I believe we export ac_cv_exeext for Libtool,
1778 # but it would be cool to find out if it's true. Does anybody
1779 # maintain Libtool? --akim.
1780 export ac_cv_exeext
1781 break;;
1782 * )
1783 break;;
1784 esac
1785 done
1786 else
1787 echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1791 See \`config.log' for more details." >&5
1792 echo "$as_me: error: C compiler cannot create executables
1793 See \`config.log' for more details." >&2;}
1794 { (exit 77); exit 77; }; }
1795 fi
1796
1797 ac_exeext=$ac_cv_exeext
1798 echo "$as_me:$LINENO: result: $ac_file" >&5
1799 echo "${ECHO_T}$ac_file" >&6
1800
1801 # Check the compiler produces executables we can run. If not, either
1802 # the compiler is broken, or we cross compile.
1803 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1804 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1805 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1806 # If not cross compiling, check that we can run a simple program.
1807 if test "$cross_compiling" != yes; then
1808 if { ac_try='./$ac_file'
1809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1810 (eval $ac_try) 2>&5
1811 ac_status=$?
1812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1813 (exit $ac_status); }; }; then
1814 cross_compiling=no
1815 else
1816 if test "$cross_compiling" = maybe; then
1817 cross_compiling=yes
1818 else
1819 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1820 If you meant to cross compile, use \`--host'.
1821 See \`config.log' for more details." >&5
1822 echo "$as_me: error: cannot run C compiled programs.
1823 If you meant to cross compile, use \`--host'.
1824 See \`config.log' for more details." >&2;}
1825 { (exit 1); exit 1; }; }
1826 fi
1827 fi
1828 fi
1829 echo "$as_me:$LINENO: result: yes" >&5
1830 echo "${ECHO_T}yes" >&6
1831
1832 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1833 ac_clean_files=$ac_clean_files_save
1834 # Check the compiler produces executables we can run. If not, either
1835 # the compiler is broken, or we cross compile.
1836 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1837 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1838 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1839 echo "${ECHO_T}$cross_compiling" >&6
1840
1841 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1842 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1844 (eval $ac_link) 2>&5
1845 ac_status=$?
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }; then
1848 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1849 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1850 # work properly (i.e., refer to `conftest.exe'), while it won't with
1851 # `rm'.
1852 for ac_file in conftest.exe conftest conftest.*; do
1853 test -f "$ac_file" || continue
1854 case $ac_file in
1855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1856 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1857 export ac_cv_exeext
1858 break;;
1859 * ) break;;
1860 esac
1861 done
1862 else
1863 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1864 See \`config.log' for more details." >&5
1865 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1866 See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
1868 fi
1869
1870 rm -f conftest$ac_cv_exeext
1871 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1872 echo "${ECHO_T}$ac_cv_exeext" >&6
1873
1874 rm -f conftest.$ac_ext
1875 EXEEXT=$ac_cv_exeext
1876 ac_exeext=$EXEEXT
1877 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1878 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1879 if test "${ac_cv_objext+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881 else
1882 cat >conftest.$ac_ext <<_ACEOF
1883 /* confdefs.h. */
1884 _ACEOF
1885 cat confdefs.h >>conftest.$ac_ext
1886 cat >>conftest.$ac_ext <<_ACEOF
1887 /* end confdefs.h. */
1888
1889 int
1890 main ()
1891 {
1892
1893 ;
1894 return 0;
1895 }
1896 _ACEOF
1897 rm -f conftest.o conftest.obj
1898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1899 (eval $ac_compile) 2>&5
1900 ac_status=$?
1901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902 (exit $ac_status); }; then
1903 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1904 case $ac_file in
1905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1906 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1907 break;;
1908 esac
1909 done
1910 else
1911 echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1913
1914 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1915 See \`config.log' for more details." >&5
1916 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1917 See \`config.log' for more details." >&2;}
1918 { (exit 1); exit 1; }; }
1919 fi
1920
1921 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1922 fi
1923 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1924 echo "${ECHO_T}$ac_cv_objext" >&6
1925 OBJEXT=$ac_cv_objext
1926 ac_objext=$OBJEXT
1927 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1928 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1929 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 else
1932 cat >conftest.$ac_ext <<_ACEOF
1933 /* confdefs.h. */
1934 _ACEOF
1935 cat confdefs.h >>conftest.$ac_ext
1936 cat >>conftest.$ac_ext <<_ACEOF
1937 /* end confdefs.h. */
1938
1939 int
1940 main ()
1941 {
1942 #ifndef __GNUC__
1943 choke me
1944 #endif
1945
1946 ;
1947 return 0;
1948 }
1949 _ACEOF
1950 rm -f conftest.$ac_objext
1951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1952 (eval $ac_compile) 2>conftest.er1
1953 ac_status=$?
1954 grep -v '^ *+' conftest.er1 >conftest.err
1955 rm -f conftest.er1
1956 cat conftest.err >&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); } &&
1959 { ac_try='test -z "$ac_c_werror_flag"
1960 || test ! -s conftest.err'
1961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1962 (eval $ac_try) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }; } &&
1966 { ac_try='test -s conftest.$ac_objext'
1967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1968 (eval $ac_try) 2>&5
1969 ac_status=$?
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; }; then
1972 ac_compiler_gnu=yes
1973 else
1974 echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1976
1977 ac_compiler_gnu=no
1978 fi
1979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1980 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1981
1982 fi
1983 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1984 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1985 GCC=`test $ac_compiler_gnu = yes && echo yes`
1986 ac_test_CFLAGS=${CFLAGS+set}
1987 ac_save_CFLAGS=$CFLAGS
1988 CFLAGS="-g"
1989 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1990 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1991 if test "${ac_cv_prog_cc_g+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994 cat >conftest.$ac_ext <<_ACEOF
1995 /* confdefs.h. */
1996 _ACEOF
1997 cat confdefs.h >>conftest.$ac_ext
1998 cat >>conftest.$ac_ext <<_ACEOF
1999 /* end confdefs.h. */
2000
2001 int
2002 main ()
2003 {
2004
2005 ;
2006 return 0;
2007 }
2008 _ACEOF
2009 rm -f conftest.$ac_objext
2010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>conftest.er1
2012 ac_status=$?
2013 grep -v '^ *+' conftest.er1 >conftest.err
2014 rm -f conftest.er1
2015 cat conftest.err >&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); } &&
2018 { ac_try='test -z "$ac_c_werror_flag"
2019 || test ! -s conftest.err'
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 (eval $ac_try) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; } &&
2025 { ac_try='test -s conftest.$ac_objext'
2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2027 (eval $ac_try) 2>&5
2028 ac_status=$?
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; }; then
2031 ac_cv_prog_cc_g=yes
2032 else
2033 echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2035
2036 ac_cv_prog_cc_g=no
2037 fi
2038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2039 fi
2040 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2041 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2042 if test "$ac_test_CFLAGS" = set; then
2043 CFLAGS=$ac_save_CFLAGS
2044 elif test $ac_cv_prog_cc_g = yes; then
2045 if test "$GCC" = yes; then
2046 CFLAGS="-g -O2"
2047 else
2048 CFLAGS="-g"
2049 fi
2050 else
2051 if test "$GCC" = yes; then
2052 CFLAGS="-O2"
2053 else
2054 CFLAGS=
2055 fi
2056 fi
2057 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2058 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2059 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 else
2062 ac_cv_prog_cc_stdc=no
2063 ac_save_CC=$CC
2064 cat >conftest.$ac_ext <<_ACEOF
2065 /* confdefs.h. */
2066 _ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h. */
2070 #include <stdarg.h>
2071 #include <stdio.h>
2072 #include <sys/types.h>
2073 #include <sys/stat.h>
2074 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2075 struct buf { int x; };
2076 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2077 static char *e (p, i)
2078 char **p;
2079 int i;
2080 {
2081 return p[i];
2082 }
2083 static char *f (char * (*g) (char **, int), char **p, ...)
2084 {
2085 char *s;
2086 va_list v;
2087 va_start (v,p);
2088 s = g (p, va_arg (v,int));
2089 va_end (v);
2090 return s;
2091 }
2092
2093 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2094 function prototypes and stuff, but not '\xHH' hex character constants.
2095 These don't provoke an error unfortunately, instead are silently treated
2096 as 'x'. The following induces an error, until -std1 is added to get
2097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2098 array size at least. It's necessary to write '\x00'==0 to get something
2099 that's true only with -std1. */
2100 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2101
2102 int test (int i, double x);
2103 struct s1 {int (*f) (int a);};
2104 struct s2 {int (*f) (double a);};
2105 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2106 int argc;
2107 char **argv;
2108 int
2109 main ()
2110 {
2111 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2112 ;
2113 return 0;
2114 }
2115 _ACEOF
2116 # Don't try gcc -ansi; that turns off useful extensions and
2117 # breaks some systems' header files.
2118 # AIX -qlanglvl=ansi
2119 # Ultrix and OSF/1 -std1
2120 # HP-UX 10.20 and later -Ae
2121 # HP-UX older versions -Aa -D_HPUX_SOURCE
2122 # SVR4 -Xc -D__EXTENSIONS__
2123 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2124 do
2125 CC="$ac_save_CC $ac_arg"
2126 rm -f conftest.$ac_objext
2127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2128 (eval $ac_compile) 2>conftest.er1
2129 ac_status=$?
2130 grep -v '^ *+' conftest.er1 >conftest.err
2131 rm -f conftest.er1
2132 cat conftest.err >&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); } &&
2135 { ac_try='test -z "$ac_c_werror_flag"
2136 || test ! -s conftest.err'
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138 (eval $ac_try) 2>&5
2139 ac_status=$?
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; } &&
2142 { ac_try='test -s conftest.$ac_objext'
2143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144 (eval $ac_try) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; }; then
2148 ac_cv_prog_cc_stdc=$ac_arg
2149 break
2150 else
2151 echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 fi
2155 rm -f conftest.err conftest.$ac_objext
2156 done
2157 rm -f conftest.$ac_ext conftest.$ac_objext
2158 CC=$ac_save_CC
2159
2160 fi
2161
2162 case "x$ac_cv_prog_cc_stdc" in
2163 x|xno)
2164 echo "$as_me:$LINENO: result: none needed" >&5
2165 echo "${ECHO_T}none needed" >&6 ;;
2166 *)
2167 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2168 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2169 CC="$CC $ac_cv_prog_cc_stdc" ;;
2170 esac
2171
2172 # Some people use a C++ compiler to compile C. Since we use `exit',
2173 # in C++ we need to declare it. In case someone uses the same compiler
2174 # for both compiling C and C++ we need to have the C++ compiler decide
2175 # the declaration of exit, since it's the most demanding environment.
2176 cat >conftest.$ac_ext <<_ACEOF
2177 #ifndef __cplusplus
2178 choke me
2179 #endif
2180 _ACEOF
2181 rm -f conftest.$ac_objext
2182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>conftest.er1
2184 ac_status=$?
2185 grep -v '^ *+' conftest.er1 >conftest.err
2186 rm -f conftest.er1
2187 cat conftest.err >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try='test -z "$ac_c_werror_flag"
2191 || test ! -s conftest.err'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193 (eval $ac_try) 2>&5
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; } &&
2197 { ac_try='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 (eval $ac_try) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2203 for ac_declaration in \
2204 '' \
2205 'extern "C" void std::exit (int) throw (); using std::exit;' \
2206 'extern "C" void std::exit (int); using std::exit;' \
2207 'extern "C" void exit (int) throw ();' \
2208 'extern "C" void exit (int);' \
2209 'void exit (int);'
2210 do
2211 cat >conftest.$ac_ext <<_ACEOF
2212 /* confdefs.h. */
2213 _ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2217 $ac_declaration
2218 #include <stdlib.h>
2219 int
2220 main ()
2221 {
2222 exit (42);
2223 ;
2224 return 0;
2225 }
2226 _ACEOF
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>conftest.er1
2230 ac_status=$?
2231 grep -v '^ *+' conftest.er1 >conftest.err
2232 rm -f conftest.er1
2233 cat conftest.err >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -z "$ac_c_werror_flag"
2237 || test ! -s conftest.err'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; } &&
2243 { ac_try='test -s conftest.$ac_objext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 (eval $ac_try) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 :
2250 else
2251 echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253
2254 continue
2255 fi
2256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257 cat >conftest.$ac_ext <<_ACEOF
2258 /* confdefs.h. */
2259 _ACEOF
2260 cat confdefs.h >>conftest.$ac_ext
2261 cat >>conftest.$ac_ext <<_ACEOF
2262 /* end confdefs.h. */
2263 $ac_declaration
2264 int
2265 main ()
2266 {
2267 exit (42);
2268 ;
2269 return 0;
2270 }
2271 _ACEOF
2272 rm -f conftest.$ac_objext
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>conftest.er1
2275 ac_status=$?
2276 grep -v '^ *+' conftest.er1 >conftest.err
2277 rm -f conftest.er1
2278 cat conftest.err >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -z "$ac_c_werror_flag"
2282 || test ! -s conftest.err'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2294 break
2295 else
2296 echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2298
2299 fi
2300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2301 done
2302 rm -f conftest*
2303 if test -n "$ac_declaration"; then
2304 echo '#ifdef __cplusplus' >>confdefs.h
2305 echo $ac_declaration >>confdefs.h
2306 echo '#endif' >>confdefs.h
2307 fi
2308
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 ac_ext=c
2316 ac_cpp='$CPP $CPPFLAGS'
2317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2320
2321
2322 cat >>confdefs.h <<\_ACEOF
2323 #define _GNU_SOURCE 1
2324 _ACEOF
2325
2326
2327
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2334 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2335 # On Suns, sometimes $CPP names a directory.
2336 if test -n "$CPP" && test -d "$CPP"; then
2337 CPP=
2338 fi
2339 if test -z "$CPP"; then
2340 if test "${ac_cv_prog_CPP+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343 # Double quotes because CPP needs to be expanded
2344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2345 do
2346 ac_preproc_ok=false
2347 for ac_c_preproc_warn_flag in '' yes
2348 do
2349 # Use a header file that comes with gcc, so configuring glibc
2350 # with a fresh cross-compiler works.
2351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2352 # <limits.h> exists even on freestanding compilers.
2353 # On the NeXT, cc -E runs the code through the compiler's parser,
2354 # not just through cpp. "Syntax error" is here to catch this case.
2355 cat >conftest.$ac_ext <<_ACEOF
2356 /* confdefs.h. */
2357 _ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2361 #ifdef __STDC__
2362 # include <limits.h>
2363 #else
2364 # include <assert.h>
2365 #endif
2366 Syntax error
2367 _ACEOF
2368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2370 ac_status=$?
2371 grep -v '^ *+' conftest.er1 >conftest.err
2372 rm -f conftest.er1
2373 cat conftest.err >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); } >/dev/null; then
2376 if test -s conftest.err; then
2377 ac_cpp_err=$ac_c_preproc_warn_flag
2378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2379 else
2380 ac_cpp_err=
2381 fi
2382 else
2383 ac_cpp_err=yes
2384 fi
2385 if test -z "$ac_cpp_err"; then
2386 :
2387 else
2388 echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2390
2391 # Broken: fails on valid input.
2392 continue
2393 fi
2394 rm -f conftest.err conftest.$ac_ext
2395
2396 # OK, works on sane cases. Now check whether non-existent headers
2397 # can be detected and how.
2398 cat >conftest.$ac_ext <<_ACEOF
2399 /* confdefs.h. */
2400 _ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h. */
2404 #include <ac_nonexistent.h>
2405 _ACEOF
2406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2408 ac_status=$?
2409 grep -v '^ *+' conftest.er1 >conftest.err
2410 rm -f conftest.er1
2411 cat conftest.err >&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); } >/dev/null; then
2414 if test -s conftest.err; then
2415 ac_cpp_err=$ac_c_preproc_warn_flag
2416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2417 else
2418 ac_cpp_err=
2419 fi
2420 else
2421 ac_cpp_err=yes
2422 fi
2423 if test -z "$ac_cpp_err"; then
2424 # Broken: success on invalid input.
2425 continue
2426 else
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2429
2430 # Passes both tests.
2431 ac_preproc_ok=:
2432 break
2433 fi
2434 rm -f conftest.err conftest.$ac_ext
2435
2436 done
2437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2438 rm -f conftest.err conftest.$ac_ext
2439 if $ac_preproc_ok; then
2440 break
2441 fi
2442
2443 done
2444 ac_cv_prog_CPP=$CPP
2445
2446 fi
2447 CPP=$ac_cv_prog_CPP
2448 else
2449 ac_cv_prog_CPP=$CPP
2450 fi
2451 echo "$as_me:$LINENO: result: $CPP" >&5
2452 echo "${ECHO_T}$CPP" >&6
2453 ac_preproc_ok=false
2454 for ac_c_preproc_warn_flag in '' yes
2455 do
2456 # Use a header file that comes with gcc, so configuring glibc
2457 # with a fresh cross-compiler works.
2458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2459 # <limits.h> exists even on freestanding compilers.
2460 # On the NeXT, cc -E runs the code through the compiler's parser,
2461 # not just through cpp. "Syntax error" is here to catch this case.
2462 cat >conftest.$ac_ext <<_ACEOF
2463 /* confdefs.h. */
2464 _ACEOF
2465 cat confdefs.h >>conftest.$ac_ext
2466 cat >>conftest.$ac_ext <<_ACEOF
2467 /* end confdefs.h. */
2468 #ifdef __STDC__
2469 # include <limits.h>
2470 #else
2471 # include <assert.h>
2472 #endif
2473 Syntax error
2474 _ACEOF
2475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2477 ac_status=$?
2478 grep -v '^ *+' conftest.er1 >conftest.err
2479 rm -f conftest.er1
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } >/dev/null; then
2483 if test -s conftest.err; then
2484 ac_cpp_err=$ac_c_preproc_warn_flag
2485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2486 else
2487 ac_cpp_err=
2488 fi
2489 else
2490 ac_cpp_err=yes
2491 fi
2492 if test -z "$ac_cpp_err"; then
2493 :
2494 else
2495 echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2497
2498 # Broken: fails on valid input.
2499 continue
2500 fi
2501 rm -f conftest.err conftest.$ac_ext
2502
2503 # OK, works on sane cases. Now check whether non-existent headers
2504 # can be detected and how.
2505 cat >conftest.$ac_ext <<_ACEOF
2506 /* confdefs.h. */
2507 _ACEOF
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h. */
2511 #include <ac_nonexistent.h>
2512 _ACEOF
2513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2515 ac_status=$?
2516 grep -v '^ *+' conftest.er1 >conftest.err
2517 rm -f conftest.er1
2518 cat conftest.err >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } >/dev/null; then
2521 if test -s conftest.err; then
2522 ac_cpp_err=$ac_c_preproc_warn_flag
2523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2524 else
2525 ac_cpp_err=
2526 fi
2527 else
2528 ac_cpp_err=yes
2529 fi
2530 if test -z "$ac_cpp_err"; then
2531 # Broken: success on invalid input.
2532 continue
2533 else
2534 echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2536
2537 # Passes both tests.
2538 ac_preproc_ok=:
2539 break
2540 fi
2541 rm -f conftest.err conftest.$ac_ext
2542
2543 done
2544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2545 rm -f conftest.err conftest.$ac_ext
2546 if $ac_preproc_ok; then
2547 :
2548 else
2549 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2550 See \`config.log' for more details." >&5
2551 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2552 See \`config.log' for more details." >&2;}
2553 { (exit 1); exit 1; }; }
2554 fi
2555
2556 ac_ext=c
2557 ac_cpp='$CPP $CPPFLAGS'
2558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561
2562
2563 echo "$as_me:$LINENO: checking for egrep" >&5
2564 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2565 if test "${ac_cv_prog_egrep+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 else
2568 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2569 then ac_cv_prog_egrep='grep -E'
2570 else ac_cv_prog_egrep='egrep'
2571 fi
2572 fi
2573 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2574 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2575 EGREP=$ac_cv_prog_egrep
2576
2577
2578
2579 echo "$as_me:$LINENO: checking for AIX" >&5
2580 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2581 cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h. */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2587 #ifdef _AIX
2588 yes
2589 #endif
2590
2591 _ACEOF
2592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2593 $EGREP "yes" >/dev/null 2>&1; then
2594 echo "$as_me:$LINENO: result: yes" >&5
2595 echo "${ECHO_T}yes" >&6
2596 cat >>confdefs.h <<\_ACEOF
2597 #define _ALL_SOURCE 1
2598 _ACEOF
2599
2600 else
2601 echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6
2603 fi
2604 rm -f conftest*
2605
2606
2607 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2608 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2609 if test "${ac_cv_search_strerror+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612 ac_func_search_save_LIBS=$LIBS
2613 ac_cv_search_strerror=no
2614 cat >conftest.$ac_ext <<_ACEOF
2615 /* confdefs.h. */
2616 _ACEOF
2617 cat confdefs.h >>conftest.$ac_ext
2618 cat >>conftest.$ac_ext <<_ACEOF
2619 /* end confdefs.h. */
2620
2621 /* Override any gcc2 internal prototype to avoid an error. */
2622 #ifdef __cplusplus
2623 extern "C"
2624 #endif
2625 /* We use char because int might match the return type of a gcc2
2626 builtin and then its argument prototype would still apply. */
2627 char strerror ();
2628 int
2629 main ()
2630 {
2631 strerror ();
2632 ;
2633 return 0;
2634 }
2635 _ACEOF
2636 rm -f conftest.$ac_objext conftest$ac_exeext
2637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2638 (eval $ac_link) 2>conftest.er1
2639 ac_status=$?
2640 grep -v '^ *+' conftest.er1 >conftest.err
2641 rm -f conftest.er1
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -z "$ac_c_werror_flag"
2646 || test ! -s conftest.err'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 (eval $ac_try) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; } &&
2652 { ac_try='test -s conftest$ac_exeext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 (eval $ac_try) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2658 ac_cv_search_strerror="none required"
2659 else
2660 echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2662
2663 fi
2664 rm -f conftest.err conftest.$ac_objext \
2665 conftest$ac_exeext conftest.$ac_ext
2666 if test "$ac_cv_search_strerror" = no; then
2667 for ac_lib in cposix; do
2668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2669 cat >conftest.$ac_ext <<_ACEOF
2670 /* confdefs.h. */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2675
2676 /* Override any gcc2 internal prototype to avoid an error. */
2677 #ifdef __cplusplus
2678 extern "C"
2679 #endif
2680 /* We use char because int might match the return type of a gcc2
2681 builtin and then its argument prototype would still apply. */
2682 char strerror ();
2683 int
2684 main ()
2685 {
2686 strerror ();
2687 ;
2688 return 0;
2689 }
2690 _ACEOF
2691 rm -f conftest.$ac_objext conftest$ac_exeext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2693 (eval $ac_link) 2>conftest.er1
2694 ac_status=$?
2695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag"
2701 || test ! -s conftest.err'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest$ac_exeext'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2713 ac_cv_search_strerror="-l$ac_lib"
2714 break
2715 else
2716 echo "$as_me: failed program was:" >&5
2717 sed 's/^/| /' conftest.$ac_ext >&5
2718
2719 fi
2720 rm -f conftest.err conftest.$ac_objext \
2721 conftest$ac_exeext conftest.$ac_ext
2722 done
2723 fi
2724 LIBS=$ac_func_search_save_LIBS
2725 fi
2726 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2727 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2728 if test "$ac_cv_search_strerror" != no; then
2729 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2730
2731 fi
2732
2733 if test -n "$ac_tool_prefix"; then
2734 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2735 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2736 echo "$as_me:$LINENO: checking for $ac_word" >&5
2737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2738 if test "${ac_cv_prog_RANLIB+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741 if test -n "$RANLIB"; then
2742 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755 done
2756 done
2757
2758 fi
2759 fi
2760 RANLIB=$ac_cv_prog_RANLIB
2761 if test -n "$RANLIB"; then
2762 echo "$as_me:$LINENO: result: $RANLIB" >&5
2763 echo "${ECHO_T}$RANLIB" >&6
2764 else
2765 echo "$as_me:$LINENO: result: no" >&5
2766 echo "${ECHO_T}no" >&6
2767 fi
2768
2769 fi
2770 if test -z "$ac_cv_prog_RANLIB"; then
2771 ac_ct_RANLIB=$RANLIB
2772 # Extract the first word of "ranlib", so it can be a program name with args.
2773 set dummy ranlib; ac_word=$2
2774 echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779 if test -n "$ac_ct_RANLIB"; then
2780 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_ac_ct_RANLIB="ranlib"
2790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793 done
2794 done
2795
2796 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2797 fi
2798 fi
2799 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2800 if test -n "$ac_ct_RANLIB"; then
2801 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2802 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2803 else
2804 echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2806 fi
2807
2808 RANLIB=$ac_ct_RANLIB
2809 else
2810 RANLIB="$ac_cv_prog_RANLIB"
2811 fi
2812
2813 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2814 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2815 if test "${ac_cv_header_stdc+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 else
2818 cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h. */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2824 #include <stdlib.h>
2825 #include <stdarg.h>
2826 #include <string.h>
2827 #include <float.h>
2828
2829 int
2830 main ()
2831 {
2832
2833 ;
2834 return 0;
2835 }
2836 _ACEOF
2837 rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839 (eval $ac_compile) 2>conftest.er1
2840 ac_status=$?
2841 grep -v '^ *+' conftest.er1 >conftest.err
2842 rm -f conftest.er1
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
2846 { ac_try='test -z "$ac_c_werror_flag"
2847 || test ! -s conftest.err'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; } &&
2853 { ac_try='test -s conftest.$ac_objext'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 ac_cv_header_stdc=yes
2860 else
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.$ac_ext >&5
2863
2864 ac_cv_header_stdc=no
2865 fi
2866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2867
2868 if test $ac_cv_header_stdc = yes; then
2869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2870 cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h. */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2876 #include <string.h>
2877
2878 _ACEOF
2879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2880 $EGREP "memchr" >/dev/null 2>&1; then
2881 :
2882 else
2883 ac_cv_header_stdc=no
2884 fi
2885 rm -f conftest*
2886
2887 fi
2888
2889 if test $ac_cv_header_stdc = yes; then
2890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2891 cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h. */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2897 #include <stdlib.h>
2898
2899 _ACEOF
2900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2901 $EGREP "free" >/dev/null 2>&1; then
2902 :
2903 else
2904 ac_cv_header_stdc=no
2905 fi
2906 rm -f conftest*
2907
2908 fi
2909
2910 if test $ac_cv_header_stdc = yes; then
2911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2912 if test "$cross_compiling" = yes; then
2913 :
2914 else
2915 cat >conftest.$ac_ext <<_ACEOF
2916 /* confdefs.h. */
2917 _ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 #include <ctype.h>
2922 #if ((' ' & 0x0FF) == 0x020)
2923 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2924 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2925 #else
2926 # define ISLOWER(c) \
2927 (('a' <= (c) && (c) <= 'i') \
2928 || ('j' <= (c) && (c) <= 'r') \
2929 || ('s' <= (c) && (c) <= 'z'))
2930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2931 #endif
2932
2933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2934 int
2935 main ()
2936 {
2937 int i;
2938 for (i = 0; i < 256; i++)
2939 if (XOR (islower (i), ISLOWER (i))
2940 || toupper (i) != TOUPPER (i))
2941 exit(2);
2942 exit (0);
2943 }
2944 _ACEOF
2945 rm -f conftest$ac_exeext
2946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2947 (eval $ac_link) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 :
2957 else
2958 echo "$as_me: program exited with status $ac_status" >&5
2959 echo "$as_me: failed program was:" >&5
2960 sed 's/^/| /' conftest.$ac_ext >&5
2961
2962 ( exit $ac_status )
2963 ac_cv_header_stdc=no
2964 fi
2965 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2966 fi
2967 fi
2968 fi
2969 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2970 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2971 if test $ac_cv_header_stdc = yes; then
2972
2973 cat >>confdefs.h <<\_ACEOF
2974 #define STDC_HEADERS 1
2975 _ACEOF
2976
2977 fi
2978
2979 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2990 inttypes.h stdint.h unistd.h
2991 do
2992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2993 echo "$as_me:$LINENO: checking for $ac_header" >&5
2994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998 cat >conftest.$ac_ext <<_ACEOF
2999 /* confdefs.h. */
3000 _ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3004 $ac_includes_default
3005
3006 #include <$ac_header>
3007 _ACEOF
3008 rm -f conftest.$ac_objext
3009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3010 (eval $ac_compile) 2>conftest.er1
3011 ac_status=$?
3012 grep -v '^ *+' conftest.er1 >conftest.err
3013 rm -f conftest.er1
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } &&
3017 { ac_try='test -z "$ac_c_werror_flag"
3018 || test ! -s conftest.err'
3019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020 (eval $ac_try) 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 (eval $ac_try) 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 eval "$as_ac_Header=yes"
3031 else
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035 eval "$as_ac_Header=no"
3036 fi
3037 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3038 fi
3039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3042 cat >>confdefs.h <<_ACEOF
3043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3044 _ACEOF
3045
3046 fi
3047
3048 done
3049
3050
3051
3052 if test "${ac_cv_header_minix_config_h+set}" = set; then
3053 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3054 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3055 if test "${ac_cv_header_minix_config_h+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 fi
3058 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3059 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3060 else
3061 # Is the header compilable?
3062 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3063 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3064 cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h. */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3070 $ac_includes_default
3071 #include <minix/config.h>
3072 _ACEOF
3073 rm -f conftest.$ac_objext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075 (eval $ac_compile) 2>conftest.er1
3076 ac_status=$?
3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_c_werror_flag"
3083 || test ! -s conftest.err'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 (eval $ac_try) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091 (eval $ac_try) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3095 ac_header_compiler=yes
3096 else
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100 ac_header_compiler=no
3101 fi
3102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3103 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3104 echo "${ECHO_T}$ac_header_compiler" >&6
3105
3106 # Is the header present?
3107 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3108 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3109 cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h. */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3115 #include <minix/config.h>
3116 _ACEOF
3117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3119 ac_status=$?
3120 grep -v '^ *+' conftest.er1 >conftest.err
3121 rm -f conftest.er1
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } >/dev/null; then
3125 if test -s conftest.err; then
3126 ac_cpp_err=$ac_c_preproc_warn_flag
3127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3128 else
3129 ac_cpp_err=
3130 fi
3131 else
3132 ac_cpp_err=yes
3133 fi
3134 if test -z "$ac_cpp_err"; then
3135 ac_header_preproc=yes
3136 else
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 ac_header_preproc=no
3141 fi
3142 rm -f conftest.err conftest.$ac_ext
3143 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3144 echo "${ECHO_T}$ac_header_preproc" >&6
3145
3146 # So? What about this header?
3147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3148 yes:no: )
3149 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3150 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3151 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3152 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3153 ac_header_preproc=yes
3154 ;;
3155 no:yes:* )
3156 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3157 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3158 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3159 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3160 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3161 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3162 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3163 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3164 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3165 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3166 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3167 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3168 (
3169 cat <<\_ASBOX
3170 ## ------------------------------------------ ##
3171 ## Report this to the AC_PACKAGE_NAME lists. ##
3172 ## ------------------------------------------ ##
3173 _ASBOX
3174 ) |
3175 sed "s/^/$as_me: WARNING: /" >&2
3176 ;;
3177 esac
3178 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3179 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3180 if test "${ac_cv_header_minix_config_h+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182 else
3183 ac_cv_header_minix_config_h=$ac_header_preproc
3184 fi
3185 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3186 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3187
3188 fi
3189 if test $ac_cv_header_minix_config_h = yes; then
3190 MINIX=yes
3191 else
3192 MINIX=
3193 fi
3194
3195
3196 if test "$MINIX" = yes; then
3197
3198 cat >>confdefs.h <<\_ACEOF
3199 #define _POSIX_SOURCE 1
3200 _ACEOF
3201
3202
3203 cat >>confdefs.h <<\_ACEOF
3204 #define _POSIX_1_SOURCE 2
3205 _ACEOF
3206
3207
3208 cat >>confdefs.h <<\_ACEOF
3209 #define _MINIX 1
3210 _ACEOF
3211
3212 fi
3213
3214
3215
3216 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3217 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3218 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 else
3221 cat >conftest.$ac_ext <<_ACEOF
3222 /* confdefs.h. */
3223 _ACEOF
3224 cat confdefs.h >>conftest.$ac_ext
3225 cat >>conftest.$ac_ext <<_ACEOF
3226 /* end confdefs.h. */
3227
3228 # define __EXTENSIONS__ 1
3229 $ac_includes_default
3230 int
3231 main ()
3232 {
3233
3234 ;
3235 return 0;
3236 }
3237 _ACEOF
3238 rm -f conftest.$ac_objext
3239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3240 (eval $ac_compile) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -z "$ac_c_werror_flag"
3248 || test ! -s conftest.err'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 (eval $ac_try) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_safe_to_define___extensions__=yes
3261 else
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3264
3265 ac_cv_safe_to_define___extensions__=no
3266 fi
3267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3268 fi
3269 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3270 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3271 test $ac_cv_safe_to_define___extensions__ = yes &&
3272 cat >>confdefs.h <<\_ACEOF
3273 #define __EXTENSIONS__ 1
3274 _ACEOF
3275
3276 cat >>confdefs.h <<\_ACEOF
3277 #define _ALL_SOURCE 1
3278 _ACEOF
3279
3280 cat >>confdefs.h <<\_ACEOF
3281 #define _GNU_SOURCE 1
3282 _ACEOF
3283
3284 cat >>confdefs.h <<\_ACEOF
3285 #define _POSIX_PTHREAD_SEMANTICS 1
3286 _ACEOF
3287
3288 cat >>confdefs.h <<\_ACEOF
3289 #define _TANDEM_SOURCE 1
3290 _ACEOF
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3302 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3303 if test "${am_cv_prog_cc_stdc+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 else
3306 am_cv_prog_cc_stdc=no
3307 ac_save_CC="$CC"
3308 # Don't try gcc -ansi; that turns off useful extensions and
3309 # breaks some systems' header files.
3310 # AIX -qlanglvl=ansi
3311 # Ultrix and OSF/1 -std1
3312 # HP-UX 10.20 and later -Ae
3313 # HP-UX older versions -Aa -D_HPUX_SOURCE
3314 # SVR4 -Xc -D__EXTENSIONS__
3315 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 do
3317 CC="$ac_save_CC $ac_arg"
3318 cat >conftest.$ac_ext <<_ACEOF
3319 /* confdefs.h. */
3320 _ACEOF
3321 cat confdefs.h >>conftest.$ac_ext
3322 cat >>conftest.$ac_ext <<_ACEOF
3323 /* end confdefs.h. */
3324 #include <stdarg.h>
3325 #include <stdio.h>
3326 #include <sys/types.h>
3327 #include <sys/stat.h>
3328 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3329 struct buf { int x; };
3330 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3331 static char *e (p, i)
3332 char **p;
3333 int i;
3334 {
3335 return p[i];
3336 }
3337 static char *f (char * (*g) (char **, int), char **p, ...)
3338 {
3339 char *s;
3340 va_list v;
3341 va_start (v,p);
3342 s = g (p, va_arg (v,int));
3343 va_end (v);
3344 return s;
3345 }
3346 int test (int i, double x);
3347 struct s1 {int (*f) (int a);};
3348 struct s2 {int (*f) (double a);};
3349 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350 int argc;
3351 char **argv;
3352
3353 int
3354 main ()
3355 {
3356
3357 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3358
3359 ;
3360 return 0;
3361 }
3362 _ACEOF
3363 rm -f conftest.$ac_objext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -z "$ac_c_werror_flag"
3373 || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3385 am_cv_prog_cc_stdc="$ac_arg"; break
3386 else
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.$ac_ext >&5
3389
3390 fi
3391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3392 done
3393 CC="$ac_save_CC"
3394
3395 fi
3396
3397 if test -z "$am_cv_prog_cc_stdc"; then
3398 echo "$as_me:$LINENO: result: none needed" >&5
3399 echo "${ECHO_T}none needed" >&6
3400 else
3401 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3402 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3403 fi
3404 case "x$am_cv_prog_cc_stdc" in
3405 x|xno) ;;
3406 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3407 esac
3408
3409
3410 ac_aux_dir=
3411 for ac_dir in .. $srcdir/..; do
3412 if test -f $ac_dir/install-sh; then
3413 ac_aux_dir=$ac_dir
3414 ac_install_sh="$ac_aux_dir/install-sh -c"
3415 break
3416 elif test -f $ac_dir/install.sh; then
3417 ac_aux_dir=$ac_dir
3418 ac_install_sh="$ac_aux_dir/install.sh -c"
3419 break
3420 elif test -f $ac_dir/shtool; then
3421 ac_aux_dir=$ac_dir
3422 ac_install_sh="$ac_aux_dir/shtool install -c"
3423 break
3424 fi
3425 done
3426 if test -z "$ac_aux_dir"; then
3427 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3428 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3429 { (exit 1); exit 1; }; }
3430 fi
3431 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3432 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3433 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3434
3435 # Make sure we can run config.sub.
3436 $ac_config_sub sun4 >/dev/null 2>&1 ||
3437 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3438 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3439 { (exit 1); exit 1; }; }
3440
3441 echo "$as_me:$LINENO: checking build system type" >&5
3442 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3443 if test "${ac_cv_build+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 else
3446 ac_cv_build_alias=$build_alias
3447 test -z "$ac_cv_build_alias" &&
3448 ac_cv_build_alias=`$ac_config_guess`
3449 test -z "$ac_cv_build_alias" &&
3450 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3451 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3452 { (exit 1); exit 1; }; }
3453 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3454 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3455 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3456 { (exit 1); exit 1; }; }
3457
3458 fi
3459 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3460 echo "${ECHO_T}$ac_cv_build" >&6
3461 build=$ac_cv_build
3462 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3463 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3464 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3465
3466
3467 echo "$as_me:$LINENO: checking host system type" >&5
3468 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3469 if test "${ac_cv_host+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472 ac_cv_host_alias=$host_alias
3473 test -z "$ac_cv_host_alias" &&
3474 ac_cv_host_alias=$ac_cv_build_alias
3475 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3476 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3477 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3478 { (exit 1); exit 1; }; }
3479
3480 fi
3481 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3482 echo "${ECHO_T}$ac_cv_host" >&6
3483 host=$ac_cv_host
3484 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3485 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3486 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3487
3488
3489 echo "$as_me:$LINENO: checking target system type" >&5
3490 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3491 if test "${ac_cv_target+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493 else
3494 ac_cv_target_alias=$target_alias
3495 test "x$ac_cv_target_alias" = "x" &&
3496 ac_cv_target_alias=$ac_cv_host_alias
3497 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3498 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3499 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3500 { (exit 1); exit 1; }; }
3501
3502 fi
3503 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3504 echo "${ECHO_T}$ac_cv_target" >&6
3505 target=$ac_cv_target
3506 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3507 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3508 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3509
3510
3511 # The aliases save the names the user supplied, while $host etc.
3512 # will get canonicalized.
3513 test -n "$target_alias" &&
3514 test "$program_prefix$program_suffix$program_transform_name" = \
3515 NONENONEs,x,x, &&
3516 program_prefix=${target_alias}-
3517
3518
3519 CONFIG_OBS=
3520 CONFIG_DEPS=
3521 CONFIG_SRCS=
3522 ENABLE_CFLAGS=
3523
3524 CONFIG_ALL=
3525 CONFIG_CLEAN=
3526 CONFIG_INSTALL=
3527 CONFIG_UNINSTALL=
3528
3529 # If we haven't got the data from the intl directory,
3530 # assume NLS is disabled.
3531 USE_NLS=no
3532 LIBINTL=
3533 LIBINTL_DEP=
3534 INCINTL=
3535 XGETTEXT=
3536 GMSGFMT=
3537 POSUB=
3538
3539 if test -f ../intl/config.intl; then
3540 . ../intl/config.intl
3541 fi
3542 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3543 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3544 if test x"$USE_NLS" != xyes; then
3545 echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3547 else
3548 echo "$as_me:$LINENO: result: yes" >&5
3549 echo "${ECHO_T}yes" >&6
3550
3551 cat >>confdefs.h <<\_ACEOF
3552 #define ENABLE_NLS 1
3553 _ACEOF
3554
3555
3556 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3557 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3558 # Look for .po and .gmo files in the source directory.
3559 CATALOGS=
3560 XLINGUAS=
3561 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3562 # If there aren't any .gmo files the shell will give us the
3563 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3564 # weeded out.
3565 case "$cat" in *\**)
3566 continue;;
3567 esac
3568 # The quadruple backslash is collapsed to a double backslash
3569 # by the backticks, then collapsed again by the double quotes,
3570 # leaving us with one backslash in the sed expression (right
3571 # before the dot that mustn't act as a wildcard).
3572 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3573 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3574 # The user is allowed to set LINGUAS to a list of languages to
3575 # install catalogs for. If it's empty that means "all of them."
3576 if test "x$LINGUAS" = x; then
3577 CATALOGS="$CATALOGS $cat"
3578 XLINGUAS="$XLINGUAS $lang"
3579 else
3580 case "$LINGUAS" in *$lang*)
3581 CATALOGS="$CATALOGS $cat"
3582 XLINGUAS="$XLINGUAS $lang"
3583 ;;
3584 esac
3585 fi
3586 done
3587 LINGUAS="$XLINGUAS"
3588 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3589 echo "${ECHO_T}$LINGUAS" >&6
3590
3591
3592 DATADIRNAME=share
3593
3594 INSTOBJEXT=.mo
3595
3596 GENCAT=gencat
3597
3598 CATOBJEXT=.gmo
3599
3600 fi
3601
3602 localedir='${datadir}/locale'
3603
3604
3605 if test x"$USE_NLS" = xyes; then
3606 CONFIG_ALL="$CONFIG_ALL all-po"
3607 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3608 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3609 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3610 fi
3611
3612
3613 GNULIB_MEMMEM=0;
3614 GNULIB_MEMPCPY=0;
3615 GNULIB_MEMRCHR=0;
3616 GNULIB_STPCPY=0;
3617 GNULIB_STPNCPY=0;
3618 GNULIB_STRCHRNUL=0;
3619 GNULIB_STRDUP=0;
3620 GNULIB_STRNDUP=0;
3621 GNULIB_STRNLEN=0;
3622 GNULIB_STRPBRK=0;
3623 GNULIB_STRSEP=0;
3624 GNULIB_STRSTR=0;
3625 GNULIB_STRCASESTR=0;
3626 GNULIB_STRTOK_R=0;
3627 GNULIB_MBSLEN=0;
3628 GNULIB_MBSNLEN=0;
3629 GNULIB_MBSCHR=0;
3630 GNULIB_MBSRCHR=0;
3631 GNULIB_MBSSTR=0;
3632 GNULIB_MBSCASECMP=0;
3633 GNULIB_MBSNCASECMP=0;
3634 GNULIB_MBSPCASECMP=0;
3635 GNULIB_MBSCASESTR=0;
3636 GNULIB_MBSCSPN=0;
3637 GNULIB_MBSPBRK=0;
3638 GNULIB_MBSSPN=0;
3639 GNULIB_MBSSEP=0;
3640 GNULIB_MBSTOK_R=0;
3641 GNULIB_STRERROR=0;
3642 GNULIB_STRSIGNAL=0;
3643 HAVE_DECL_MEMMEM=1;
3644 HAVE_MEMPCPY=1;
3645 HAVE_DECL_MEMRCHR=1;
3646 HAVE_STPCPY=1;
3647 HAVE_STPNCPY=1;
3648 HAVE_STRCHRNUL=1;
3649 HAVE_DECL_STRDUP=1;
3650 HAVE_STRNDUP=1;
3651 HAVE_DECL_STRNDUP=1;
3652 HAVE_DECL_STRNLEN=1;
3653 HAVE_STRPBRK=1;
3654 HAVE_STRSEP=1;
3655 HAVE_STRCASESTR=1;
3656 HAVE_DECL_STRTOK_R=1;
3657 HAVE_DECL_STRERROR=1;
3658 HAVE_DECL_STRSIGNAL=1;
3659 REPLACE_STRERROR=0;
3660 REPLACE_STRSIGNAL=0;
3661 REPLACE_MEMMEM=0;
3662 REPLACE_STRCASESTR=0;
3663 REPLACE_STRSTR=0;
3664
3665
3666 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3667 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3668 if test "${ac_cv_have_decl_memmem+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670 else
3671 cat >conftest.$ac_ext <<_ACEOF
3672 /* confdefs.h. */
3673 _ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3677 $ac_includes_default
3678 int
3679 main ()
3680 {
3681 #ifndef memmem
3682 char *p = (char *) memmem;
3683 #endif
3684
3685 ;
3686 return 0;
3687 }
3688 _ACEOF
3689 rm -f conftest.$ac_objext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest.$ac_objext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3711 ac_cv_have_decl_memmem=yes
3712 else
3713 echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 ac_cv_have_decl_memmem=no
3717 fi
3718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3719 fi
3720 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3721 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3722 if test $ac_cv_have_decl_memmem = yes; then
3723
3724 cat >>confdefs.h <<_ACEOF
3725 #define HAVE_DECL_MEMMEM 1
3726 _ACEOF
3727
3728
3729 else
3730 cat >>confdefs.h <<_ACEOF
3731 #define HAVE_DECL_MEMMEM 0
3732 _ACEOF
3733
3734
3735 fi
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751 for ac_func in memmem
3752 do
3753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3754 echo "$as_me:$LINENO: checking for $ac_func" >&5
3755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3756 if eval "test \"\${$as_ac_var+set}\" = set"; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 else
3759 cat >conftest.$ac_ext <<_ACEOF
3760 /* confdefs.h. */
3761 _ACEOF
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3767 #define $ac_func innocuous_$ac_func
3768
3769 /* System header to define __stub macros and hopefully few prototypes,
3770 which can conflict with char $ac_func (); below.
3771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3772 <limits.h> exists even on freestanding compilers. */
3773
3774 #ifdef __STDC__
3775 # include <limits.h>
3776 #else
3777 # include <assert.h>
3778 #endif
3779
3780 #undef $ac_func
3781
3782 /* Override any gcc2 internal prototype to avoid an error. */
3783 #ifdef __cplusplus
3784 extern "C"
3785 {
3786 #endif
3787 /* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3789 char $ac_func ();
3790 /* The GNU C library defines this for functions which it implements
3791 to always fail with ENOSYS. Some functions are actually named
3792 something starting with __ and the normal name is an alias. */
3793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3794 choke me
3795 #else
3796 char (*f) () = $ac_func;
3797 #endif
3798 #ifdef __cplusplus
3799 }
3800 #endif
3801
3802 int
3803 main ()
3804 {
3805 return f != $ac_func;
3806 ;
3807 return 0;
3808 }
3809 _ACEOF
3810 rm -f conftest.$ac_objext conftest$ac_exeext
3811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3812 (eval $ac_link) 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -z "$ac_c_werror_flag"
3820 || test ! -s conftest.err'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest$ac_exeext'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 eval "$as_ac_var=yes"
3833 else
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3836
3837 eval "$as_ac_var=no"
3838 fi
3839 rm -f conftest.err conftest.$ac_objext \
3840 conftest$ac_exeext conftest.$ac_ext
3841 fi
3842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3844 if test `eval echo '${'$as_ac_var'}'` = yes; then
3845 cat >>confdefs.h <<_ACEOF
3846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3847 _ACEOF
3848
3849 else
3850
3851 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
3852
3853 fi
3854 done
3855
3856
3857
3858 :
3859
3860
3861
3862
3863
3864 if test $ac_cv_have_decl_memmem = no; then
3865 HAVE_DECL_MEMMEM=0
3866 fi
3867 :
3868
3869
3870 echo "$as_me:$LINENO: checking for long long int" >&5
3871 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3872 if test "${ac_cv_type_long_long_int+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 else
3875 cat >conftest.$ac_ext <<_ACEOF
3876
3877 /* confdefs.h. */
3878 _ACEOF
3879 cat confdefs.h >>conftest.$ac_ext
3880 cat >>conftest.$ac_ext <<_ACEOF
3881 /* end confdefs.h. */
3882 /* For now, do not test the preprocessor; as of 2007 there are too many
3883 implementations with broken preprocessors. Perhaps this can
3884 be revisited in 2012. In the meantime, code should not expect
3885 #if to work with literals wider than 32 bits. */
3886 /* Test literals. */
3887 long long int ll = 9223372036854775807ll;
3888 long long int nll = -9223372036854775807LL;
3889 unsigned long long int ull = 18446744073709551615ULL;
3890 /* Test constant expressions. */
3891 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
3892 ? 1 : -1)];
3893 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
3894 ? 1 : -1)];
3895 int i = 63;
3896 int
3897 main ()
3898 {
3899 /* Test availability of runtime routines for shift and division. */
3900 long long int llmax = 9223372036854775807ll;
3901 unsigned long long int ullmax = 18446744073709551615ull;
3902 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
3903 | (llmax / ll) | (llmax % ll)
3904 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
3905 | (ullmax / ull) | (ullmax % ull));
3906 ;
3907 return 0;
3908 }
3909
3910 _ACEOF
3911 rm -f conftest.$ac_objext conftest$ac_exeext
3912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3913 (eval $ac_link) 2>conftest.er1
3914 ac_status=$?
3915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 { ac_try='test -z "$ac_c_werror_flag"
3921 || test ! -s conftest.err'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; } &&
3927 { ac_try='test -s conftest$ac_exeext'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 (eval $ac_try) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; }; then
3933 if test "$cross_compiling" = yes; then
3934 ac_cv_type_long_long_int=yes
3935 else
3936 cat >conftest.$ac_ext <<_ACEOF
3937 /* confdefs.h. */
3938 _ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3942 #include <limits.h>
3943 #ifndef LLONG_MAX
3944 # define HALF \
3945 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
3946 # define LLONG_MAX (HALF - 1 + HALF)
3947 #endif
3948 int
3949 main ()
3950 {
3951 long long int n = 1;
3952 int i;
3953 for (i = 0; ; i++)
3954 {
3955 long long int m = n << i;
3956 if (m >> i != n)
3957 return 1;
3958 if (LLONG_MAX / 2 < m)
3959 break;
3960 }
3961 return 0;
3962 ;
3963 return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest$ac_exeext
3967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3968 (eval $ac_link) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3977 ac_cv_type_long_long_int=yes
3978 else
3979 echo "$as_me: program exited with status $ac_status" >&5
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 ( exit $ac_status )
3984 ac_cv_type_long_long_int=no
3985 fi
3986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3987 fi
3988 else
3989 echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3991
3992 ac_cv_type_long_long_int=no
3993 fi
3994 rm -f conftest.err conftest.$ac_objext \
3995 conftest$ac_exeext conftest.$ac_ext
3996 fi
3997 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
3998 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
3999 if test $ac_cv_type_long_long_int = yes; then
4000
4001 cat >>confdefs.h <<\_ACEOF
4002 #define HAVE_LONG_LONG_INT 1
4003 _ACEOF
4004
4005 fi
4006
4007
4008 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4009 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4010 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 else
4013 cat >conftest.$ac_ext <<_ACEOF
4014
4015 /* confdefs.h. */
4016 _ACEOF
4017 cat confdefs.h >>conftest.$ac_ext
4018 cat >>conftest.$ac_ext <<_ACEOF
4019 /* end confdefs.h. */
4020 /* For now, do not test the preprocessor; as of 2007 there are too many
4021 implementations with broken preprocessors. Perhaps this can
4022 be revisited in 2012. In the meantime, code should not expect
4023 #if to work with literals wider than 32 bits. */
4024 /* Test literals. */
4025 long long int ll = 9223372036854775807ll;
4026 long long int nll = -9223372036854775807LL;
4027 unsigned long long int ull = 18446744073709551615ULL;
4028 /* Test constant expressions. */
4029 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4030 ? 1 : -1)];
4031 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4032 ? 1 : -1)];
4033 int i = 63;
4034 int
4035 main ()
4036 {
4037 /* Test availability of runtime routines for shift and division. */
4038 long long int llmax = 9223372036854775807ll;
4039 unsigned long long int ullmax = 18446744073709551615ull;
4040 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4041 | (llmax / ll) | (llmax % ll)
4042 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4043 | (ullmax / ull) | (ullmax % ull));
4044 ;
4045 return 0;
4046 }
4047
4048 _ACEOF
4049 rm -f conftest.$ac_objext conftest$ac_exeext
4050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4051 (eval $ac_link) 2>conftest.er1
4052 ac_status=$?
4053 grep -v '^ *+' conftest.er1 >conftest.err
4054 rm -f conftest.er1
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } &&
4058 { ac_try='test -z "$ac_c_werror_flag"
4059 || test ! -s conftest.err'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; } &&
4065 { ac_try='test -s conftest$ac_exeext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4071 ac_cv_type_unsigned_long_long_int=yes
4072 else
4073 echo "$as_me: failed program was:" >&5
4074 sed 's/^/| /' conftest.$ac_ext >&5
4075
4076 ac_cv_type_unsigned_long_long_int=no
4077 fi
4078 rm -f conftest.err conftest.$ac_objext \
4079 conftest$ac_exeext conftest.$ac_ext
4080 fi
4081 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4082 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4083 if test $ac_cv_type_unsigned_long_long_int = yes; then
4084
4085 cat >>confdefs.h <<\_ACEOF
4086 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4087 _ACEOF
4088
4089 fi
4090
4091
4092
4093 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4094 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4095 if test "${gl_cv_have_include_next+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098 rm -rf conftestd1 conftestd2
4099 mkdir conftestd1 conftestd2
4100 cat <<EOF > conftestd1/conftest.h
4101 #define DEFINED_IN_CONFTESTD1
4102 #include_next <conftest.h>
4103 #ifdef DEFINED_IN_CONFTESTD2
4104 int foo;
4105 #else
4106 #error "include_next doesn't work"
4107 #endif
4108 EOF
4109 cat <<EOF > conftestd2/conftest.h
4110 #ifndef DEFINED_IN_CONFTESTD1
4111 #error "include_next test doesn't work"
4112 #endif
4113 #define DEFINED_IN_CONFTESTD2
4114 EOF
4115 save_CPPFLAGS="$CPPFLAGS"
4116 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4117 cat >conftest.$ac_ext <<_ACEOF
4118 #include <conftest.h>
4119 _ACEOF
4120 rm -f conftest.$ac_objext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>conftest.er1
4123 ac_status=$?
4124 grep -v '^ *+' conftest.er1 >conftest.err
4125 rm -f conftest.er1
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } &&
4129 { ac_try='test -z "$ac_c_werror_flag"
4130 || test ! -s conftest.err'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 (eval $ac_try) 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138 (eval $ac_try) 2>&5
4139 ac_status=$?
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4142 gl_cv_have_include_next=yes
4143 else
4144 echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 gl_cv_have_include_next=no
4148 fi
4149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4150 CPPFLAGS="$save_CPPFLAGS"
4151 rm -rf conftestd1 conftestd2
4152
4153 fi
4154 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4155 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4156 if test $gl_cv_have_include_next = yes; then
4157
4158
4159 cat >>confdefs.h <<\_ACEOF
4160 #define HAVE_INCLUDE_NEXT 1
4161 _ACEOF
4162
4163
4164 INCLUDE_NEXT=include_next
4165 else
4166 INCLUDE_NEXT=include
4167 fi
4168
4169
4170
4171
4172
4173
4174
4175 for ac_header in $gl_header_list
4176 do
4177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4179 echo "$as_me:$LINENO: checking for $ac_header" >&5
4180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 fi
4184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4186 else
4187 # Is the header compilable?
4188 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4190 cat >conftest.$ac_ext <<_ACEOF
4191 /* confdefs.h. */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 $ac_includes_default
4197 #include <$ac_header>
4198 _ACEOF
4199 rm -f conftest.$ac_objext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>conftest.er1
4202 ac_status=$?
4203 grep -v '^ *+' conftest.er1 >conftest.err
4204 rm -f conftest.er1
4205 cat conftest.err >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try='test -z "$ac_c_werror_flag"
4209 || test ! -s conftest.err'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try='test -s conftest.$ac_objext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_header_compiler=yes
4222 else
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4225
4226 ac_header_compiler=no
4227 fi
4228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4229 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4230 echo "${ECHO_T}$ac_header_compiler" >&6
4231
4232 # Is the header present?
4233 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4234 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4235 cat >conftest.$ac_ext <<_ACEOF
4236 /* confdefs.h. */
4237 _ACEOF
4238 cat confdefs.h >>conftest.$ac_ext
4239 cat >>conftest.$ac_ext <<_ACEOF
4240 /* end confdefs.h. */
4241 #include <$ac_header>
4242 _ACEOF
4243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } >/dev/null; then
4251 if test -s conftest.err; then
4252 ac_cpp_err=$ac_c_preproc_warn_flag
4253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4254 else
4255 ac_cpp_err=
4256 fi
4257 else
4258 ac_cpp_err=yes
4259 fi
4260 if test -z "$ac_cpp_err"; then
4261 ac_header_preproc=yes
4262 else
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4265
4266 ac_header_preproc=no
4267 fi
4268 rm -f conftest.err conftest.$ac_ext
4269 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4270 echo "${ECHO_T}$ac_header_preproc" >&6
4271
4272 # So? What about this header?
4273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4274 yes:no: )
4275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4279 ac_header_preproc=yes
4280 ;;
4281 no:yes:* )
4282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4294 (
4295 cat <<\_ASBOX
4296 ## ------------------------------------------ ##
4297 ## Report this to the AC_PACKAGE_NAME lists. ##
4298 ## ------------------------------------------ ##
4299 _ASBOX
4300 ) |
4301 sed "s/^/$as_me: WARNING: /" >&2
4302 ;;
4303 esac
4304 echo "$as_me:$LINENO: checking for $ac_header" >&5
4305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 else
4309 eval "$as_ac_Header=\$ac_header_preproc"
4310 fi
4311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4313
4314 fi
4315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4316 cat >>confdefs.h <<_ACEOF
4317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318 _ACEOF
4319
4320 fi
4321
4322 done
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4336 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4337 if test "${ac_cv_c_restrict+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340 ac_cv_c_restrict=no
4341 # The order here caters to the fact that C++ does not require restrict.
4342 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4343 cat >conftest.$ac_ext <<_ACEOF
4344 /* confdefs.h. */
4345 _ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4349 typedef int * int_ptr;
4350 int foo (int_ptr $ac_kw ip) {
4351 return ip[0];
4352 }
4353 int
4354 main ()
4355 {
4356 int s[1];
4357 int * $ac_kw t = s;
4358 t[0] = 0;
4359 return foo(t)
4360 ;
4361 return 0;
4362 }
4363 _ACEOF
4364 rm -f conftest.$ac_objext
4365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>conftest.er1
4367 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } &&
4373 { ac_try='test -z "$ac_c_werror_flag"
4374 || test ! -s conftest.err'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; } &&
4380 { ac_try='test -s conftest.$ac_objext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 (eval $ac_try) 2>&5
4383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 ac_cv_c_restrict=$ac_kw
4387 else
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4390
4391 fi
4392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4393 test "$ac_cv_c_restrict" != no && break
4394 done
4395
4396 fi
4397 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4398 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4399
4400
4401 case $ac_cv_c_restrict in
4402 restrict) ;;
4403 no) cat >>confdefs.h <<\_ACEOF
4404 #define restrict
4405 _ACEOF
4406 ;;
4407 *) cat >>confdefs.h <<_ACEOF
4408 #define restrict $ac_cv_c_restrict
4409 _ACEOF
4410 ;;
4411 esac
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425 :
4426
4427
4428
4429
4430
4431
4432
4433 if test $gl_cv_have_include_next = yes; then
4434 gl_cv_next_string_h='<'string.h'>'
4435 else
4436 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4437 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4438 if test "${gl_cv_next_string_h+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440 else
4441
4442 if test $ac_cv_header_string_h = yes; then
4443 cat >conftest.$ac_ext <<_ACEOF
4444 /* confdefs.h. */
4445 _ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4449 #include <string.h>
4450
4451 _ACEOF
4452 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4453 sed -n '\#/string.h#{
4454 s#.*"\(.*/string.h\)".*#\1#
4455 s#^/[^/]#//&#
4456 p
4457 q
4458 }'`'"'
4459 else
4460 gl_cv_next_string_h='<'string.h'>'
4461 fi
4462
4463 fi
4464 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4465 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4466 fi
4467 NEXT_STRING_H=$gl_cv_next_string_h
4468
4469
4470
4471
4472
4473 GNULIB_WCWIDTH=0;
4474 HAVE_DECL_WCWIDTH=1;
4475 REPLACE_WCWIDTH=0;
4476 WCHAR_H=
4477
4478
4479
4480
4481
4482 if false; then
4483 GL_COND_LIBTOOL_TRUE=
4484 GL_COND_LIBTOOL_FALSE='#'
4485 else
4486 GL_COND_LIBTOOL_TRUE='#'
4487 GL_COND_LIBTOOL_FALSE=
4488 fi
4489
4490 gl_cond_libtool=false
4491 gl_libdeps=
4492 gl_ltlibdeps=
4493
4494
4495
4496 gl_source_base='gnulib'
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506 for ac_func in memchr
4507 do
4508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4509 echo "$as_me:$LINENO: checking for $ac_func" >&5
4510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4511 if eval "test \"\${$as_ac_var+set}\" = set"; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514 cat >conftest.$ac_ext <<_ACEOF
4515 /* confdefs.h. */
4516 _ACEOF
4517 cat confdefs.h >>conftest.$ac_ext
4518 cat >>conftest.$ac_ext <<_ACEOF
4519 /* end confdefs.h. */
4520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4522 #define $ac_func innocuous_$ac_func
4523
4524 /* System header to define __stub macros and hopefully few prototypes,
4525 which can conflict with char $ac_func (); below.
4526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4527 <limits.h> exists even on freestanding compilers. */
4528
4529 #ifdef __STDC__
4530 # include <limits.h>
4531 #else
4532 # include <assert.h>
4533 #endif
4534
4535 #undef $ac_func
4536
4537 /* Override any gcc2 internal prototype to avoid an error. */
4538 #ifdef __cplusplus
4539 extern "C"
4540 {
4541 #endif
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4544 char $ac_func ();
4545 /* The GNU C library defines this for functions which it implements
4546 to always fail with ENOSYS. Some functions are actually named
4547 something starting with __ and the normal name is an alias. */
4548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4549 choke me
4550 #else
4551 char (*f) () = $ac_func;
4552 #endif
4553 #ifdef __cplusplus
4554 }
4555 #endif
4556
4557 int
4558 main ()
4559 {
4560 return f != $ac_func;
4561 ;
4562 return 0;
4563 }
4564 _ACEOF
4565 rm -f conftest.$ac_objext conftest$ac_exeext
4566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4567 (eval $ac_link) 2>conftest.er1
4568 ac_status=$?
4569 grep -v '^ *+' conftest.er1 >conftest.err
4570 rm -f conftest.er1
4571 cat conftest.err >&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try='test -z "$ac_c_werror_flag"
4575 || test ! -s conftest.err'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; } &&
4581 { ac_try='test -s conftest$ac_exeext'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 (eval $ac_try) 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 eval "$as_ac_var=yes"
4588 else
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4591
4592 eval "$as_ac_var=no"
4593 fi
4594 rm -f conftest.err conftest.$ac_objext \
4595 conftest$ac_exeext conftest.$ac_ext
4596 fi
4597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4599 if test `eval echo '${'$as_ac_var'}'` = yes; then
4600 cat >>confdefs.h <<_ACEOF
4601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4602 _ACEOF
4603
4604 else
4605
4606 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4607
4608 fi
4609 done
4610
4611
4612 if test $ac_cv_func_memchr = no; then
4613
4614
4615 for ac_header in bp-sym.h
4616 do
4617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4618 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4619 echo "$as_me:$LINENO: checking for $ac_header" >&5
4620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 fi
4624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4625 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4626 else
4627 # Is the header compilable?
4628 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4629 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4630 cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h. */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 $ac_includes_default
4637 #include <$ac_header>
4638 _ACEOF
4639 rm -f conftest.$ac_objext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641 (eval $ac_compile) 2>conftest.er1
4642 ac_status=$?
4643 grep -v '^ *+' conftest.er1 >conftest.err
4644 rm -f conftest.er1
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } &&
4648 { ac_try='test -z "$ac_c_werror_flag"
4649 || test ! -s conftest.err'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 (eval $ac_try) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; } &&
4655 { ac_try='test -s conftest.$ac_objext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 ac_header_compiler=yes
4662 else
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 ac_header_compiler=no
4667 fi
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4669 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4670 echo "${ECHO_T}$ac_header_compiler" >&6
4671
4672 # Is the header present?
4673 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4675 cat >conftest.$ac_ext <<_ACEOF
4676 /* confdefs.h. */
4677 _ACEOF
4678 cat confdefs.h >>conftest.$ac_ext
4679 cat >>conftest.$ac_ext <<_ACEOF
4680 /* end confdefs.h. */
4681 #include <$ac_header>
4682 _ACEOF
4683 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } >/dev/null; then
4691 if test -s conftest.err; then
4692 ac_cpp_err=$ac_c_preproc_warn_flag
4693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4694 else
4695 ac_cpp_err=
4696 fi
4697 else
4698 ac_cpp_err=yes
4699 fi
4700 if test -z "$ac_cpp_err"; then
4701 ac_header_preproc=yes
4702 else
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 ac_header_preproc=no
4707 fi
4708 rm -f conftest.err conftest.$ac_ext
4709 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4710 echo "${ECHO_T}$ac_header_preproc" >&6
4711
4712 # So? What about this header?
4713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4714 yes:no: )
4715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4719 ac_header_preproc=yes
4720 ;;
4721 no:yes:* )
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4725 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4729 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4734 (
4735 cat <<\_ASBOX
4736 ## ------------------------------------------ ##
4737 ## Report this to the AC_PACKAGE_NAME lists. ##
4738 ## ------------------------------------------ ##
4739 _ASBOX
4740 ) |
4741 sed "s/^/$as_me: WARNING: /" >&2
4742 ;;
4743 esac
4744 echo "$as_me:$LINENO: checking for $ac_header" >&5
4745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 else
4749 eval "$as_ac_Header=\$ac_header_preproc"
4750 fi
4751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4752 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4753
4754 fi
4755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4756 cat >>confdefs.h <<_ACEOF
4757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4758 _ACEOF
4759
4760 fi
4761
4762 done
4763
4764
4765 fi
4766
4767
4768 echo "$as_me:$LINENO: checking for working memcmp" >&5
4769 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4770 if test "${ac_cv_func_memcmp_working+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773 if test "$cross_compiling" = yes; then
4774 ac_cv_func_memcmp_working=no
4775 else
4776 cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h. */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 $ac_includes_default
4783 int
4784 main ()
4785 {
4786
4787 /* Some versions of memcmp are not 8-bit clean. */
4788 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4789 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4790 exit (1);
4791
4792 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4793 or more and with at least one buffer not starting on a 4-byte boundary.
4794 William Lewis provided this test program. */
4795 {
4796 char foo[21];
4797 char bar[21];
4798 int i;
4799 for (i = 0; i < 4; i++)
4800 {
4801 char *a = foo + i;
4802 char *b = bar + i;
4803 strcpy (a, "--------01111111");
4804 strcpy (b, "--------10000000");
4805 if (memcmp (a, b, 16) >= 0)
4806 exit (1);
4807 }
4808 exit (0);
4809 }
4810
4811 ;
4812 return 0;
4813 }
4814 _ACEOF
4815 rm -f conftest$ac_exeext
4816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4817 (eval $ac_link) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 ac_cv_func_memcmp_working=yes
4827 else
4828 echo "$as_me: program exited with status $ac_status" >&5
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4831
4832 ( exit $ac_status )
4833 ac_cv_func_memcmp_working=no
4834 fi
4835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4836 fi
4837 fi
4838 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4839 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4840 test $ac_cv_func_memcmp_working = no &&
4841
4842
4843
4844
4845
4846
4847 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
4848
4849
4850 if test $ac_cv_func_memcmp_working = no; then
4851
4852 cat >>confdefs.h <<\_ACEOF
4853 #define memcmp rpl_memcmp
4854 _ACEOF
4855
4856 :
4857 fi
4858
4859
4860
4861 if test $ac_cv_have_decl_memmem = yes; then
4862 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
4863 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
4864 if test "${gl_cv_func_memmem_works+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867 if test "$cross_compiling" = yes; then
4868 gl_cv_func_memmem_works="guessing no"
4869 else
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876
4877 #include <string.h> /* for memmem */
4878 #include <stdlib.h> /* for malloc */
4879 #include <unistd.h> /* for alarm */
4880
4881 int
4882 main ()
4883 {
4884 size_t m = 1000000;
4885 char *haystack = (char *) malloc (2 * m + 1);
4886 char *needle = (char *) malloc (m + 1);
4887 void *result = 0;
4888 /* Failure to compile this test due to missing alarm is okay,
4889 since all such platforms (mingw) also lack memmem. */
4890 alarm (5);
4891 /* Check for quadratic performance. */
4892 if (haystack && needle)
4893 {
4894 memset (haystack, 'A', 2 * m);
4895 haystack[2 * m] = 'B';
4896 memset (needle, 'A', m);
4897 needle[m] = 'B';
4898 result = memmem (haystack, 2 * m + 1, needle, m + 1);
4899 }
4900 /* Check for empty needle behavior. */
4901 return !result || !memmem ("a", 1, 0, 0);
4902 ;
4903 return 0;
4904 }
4905 _ACEOF
4906 rm -f conftest$ac_exeext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4908 (eval $ac_link) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 (eval $ac_try) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 gl_cv_func_memmem_works=yes
4918 else
4919 echo "$as_me: program exited with status $ac_status" >&5
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4922
4923 ( exit $ac_status )
4924 gl_cv_func_memmem_works=no
4925 fi
4926 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4927 fi
4928 fi
4929 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
4930 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
4931 if test "$gl_cv_func_memmem_works" != yes; then
4932 REPLACE_MEMMEM=1
4933
4934
4935
4936
4937
4938
4939
4940 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
4941
4942 fi
4943 fi
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957 for ac_func in memmem
4958 do
4959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4960 echo "$as_me:$LINENO: checking for $ac_func" >&5
4961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4962 if eval "test \"\${$as_ac_var+set}\" = set"; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965 cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h. */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4973 #define $ac_func innocuous_$ac_func
4974
4975 /* System header to define __stub macros and hopefully few prototypes,
4976 which can conflict with char $ac_func (); below.
4977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978 <limits.h> exists even on freestanding compilers. */
4979
4980 #ifdef __STDC__
4981 # include <limits.h>
4982 #else
4983 # include <assert.h>
4984 #endif
4985
4986 #undef $ac_func
4987
4988 /* Override any gcc2 internal prototype to avoid an error. */
4989 #ifdef __cplusplus
4990 extern "C"
4991 {
4992 #endif
4993 /* We use char because int might match the return type of a gcc2
4994 builtin and then its argument prototype would still apply. */
4995 char $ac_func ();
4996 /* The GNU C library defines this for functions which it implements
4997 to always fail with ENOSYS. Some functions are actually named
4998 something starting with __ and the normal name is an alias. */
4999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5000 choke me
5001 #else
5002 char (*f) () = $ac_func;
5003 #endif
5004 #ifdef __cplusplus
5005 }
5006 #endif
5007
5008 int
5009 main ()
5010 {
5011 return f != $ac_func;
5012 ;
5013 return 0;
5014 }
5015 _ACEOF
5016 rm -f conftest.$ac_objext conftest$ac_exeext
5017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5018 (eval $ac_link) 2>conftest.er1
5019 ac_status=$?
5020 grep -v '^ *+' conftest.er1 >conftest.err
5021 rm -f conftest.er1
5022 cat conftest.err >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } &&
5025 { ac_try='test -z "$ac_c_werror_flag"
5026 || test ! -s conftest.err'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 (eval $ac_try) 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; } &&
5032 { ac_try='test -s conftest$ac_exeext'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 eval "$as_ac_var=yes"
5039 else
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5042
5043 eval "$as_ac_var=no"
5044 fi
5045 rm -f conftest.err conftest.$ac_objext \
5046 conftest$ac_exeext conftest.$ac_ext
5047 fi
5048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5050 if test `eval echo '${'$as_ac_var'}'` = yes; then
5051 cat >>confdefs.h <<_ACEOF
5052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5053 _ACEOF
5054
5055 else
5056
5057 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5058
5059 fi
5060 done
5061
5062
5063
5064 :
5065
5066
5067
5068
5069
5070 if test $ac_cv_have_decl_memmem = no; then
5071 HAVE_DECL_MEMMEM=0
5072 fi
5073 :
5074
5075
5076
5077 GNULIB_MEMMEM=1
5078
5079
5080
5081
5082 if test $ac_cv_type_long_long_int = yes; then
5083 HAVE_LONG_LONG_INT=1
5084 else
5085 HAVE_LONG_LONG_INT=0
5086 fi
5087
5088
5089 if test $ac_cv_type_unsigned_long_long_int = yes; then
5090 HAVE_UNSIGNED_LONG_LONG_INT=1
5091 else
5092 HAVE_UNSIGNED_LONG_LONG_INT=0
5093 fi
5094
5095
5096 if test $ac_cv_header_inttypes_h = yes; then
5097 HAVE_INTTYPES_H=1
5098 else
5099 HAVE_INTTYPES_H=0
5100 fi
5101
5102
5103 if test $ac_cv_header_sys_types_h = yes; then
5104 HAVE_SYS_TYPES_H=1
5105 else
5106 HAVE_SYS_TYPES_H=0
5107 fi
5108
5109
5110
5111
5112
5113 :
5114
5115
5116
5117
5118
5119
5120
5121 if test $gl_cv_have_include_next = yes; then
5122 gl_cv_next_stdint_h='<'stdint.h'>'
5123 else
5124 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5125 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5126 if test "${gl_cv_next_stdint_h+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129
5130 if test $ac_cv_header_stdint_h = yes; then
5131 cat >conftest.$ac_ext <<_ACEOF
5132 /* confdefs.h. */
5133 _ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5137 #include <stdint.h>
5138
5139 _ACEOF
5140 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5141 sed -n '\#/stdint.h#{
5142 s#.*"\(.*/stdint.h\)".*#\1#
5143 s#^/[^/]#//&#
5144 p
5145 q
5146 }'`'"'
5147 else
5148 gl_cv_next_stdint_h='<'stdint.h'>'
5149 fi
5150
5151 fi
5152 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5153 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5154 fi
5155 NEXT_STDINT_H=$gl_cv_next_stdint_h
5156
5157
5158
5159 if test $ac_cv_header_stdint_h = yes; then
5160 HAVE_STDINT_H=1
5161 else
5162 HAVE_STDINT_H=0
5163 fi
5164
5165
5166 if test $ac_cv_header_stdint_h = yes; then
5167 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5168 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5169 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172 gl_cv_header_working_stdint_h=no
5173 cat >conftest.$ac_ext <<_ACEOF
5174
5175 /* confdefs.h. */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h. */
5180
5181 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5182 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5183 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5184 #include <stdint.h>
5185 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5186 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5187 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5188 #endif
5189
5190
5191 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5192 included before <wchar.h>. */
5193 #include <stddef.h>
5194 #include <signal.h>
5195 #if HAVE_WCHAR_H
5196 # include <stdio.h>
5197 # include <time.h>
5198 # include <wchar.h>
5199 #endif
5200
5201
5202 #ifdef INT8_MAX
5203 int8_t a1 = INT8_MAX;
5204 int8_t a1min = INT8_MIN;
5205 #endif
5206 #ifdef INT16_MAX
5207 int16_t a2 = INT16_MAX;
5208 int16_t a2min = INT16_MIN;
5209 #endif
5210 #ifdef INT32_MAX
5211 int32_t a3 = INT32_MAX;
5212 int32_t a3min = INT32_MIN;
5213 #endif
5214 #ifdef INT64_MAX
5215 int64_t a4 = INT64_MAX;
5216 int64_t a4min = INT64_MIN;
5217 #endif
5218 #ifdef UINT8_MAX
5219 uint8_t b1 = UINT8_MAX;
5220 #else
5221 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5222 #endif
5223 #ifdef UINT16_MAX
5224 uint16_t b2 = UINT16_MAX;
5225 #endif
5226 #ifdef UINT32_MAX
5227 uint32_t b3 = UINT32_MAX;
5228 #endif
5229 #ifdef UINT64_MAX
5230 uint64_t b4 = UINT64_MAX;
5231 #endif
5232 int_least8_t c1 = INT8_C (0x7f);
5233 int_least8_t c1max = INT_LEAST8_MAX;
5234 int_least8_t c1min = INT_LEAST8_MIN;
5235 int_least16_t c2 = INT16_C (0x7fff);
5236 int_least16_t c2max = INT_LEAST16_MAX;
5237 int_least16_t c2min = INT_LEAST16_MIN;
5238 int_least32_t c3 = INT32_C (0x7fffffff);
5239 int_least32_t c3max = INT_LEAST32_MAX;
5240 int_least32_t c3min = INT_LEAST32_MIN;
5241 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5242 int_least64_t c4max = INT_LEAST64_MAX;
5243 int_least64_t c4min = INT_LEAST64_MIN;
5244 uint_least8_t d1 = UINT8_C (0xff);
5245 uint_least8_t d1max = UINT_LEAST8_MAX;
5246 uint_least16_t d2 = UINT16_C (0xffff);
5247 uint_least16_t d2max = UINT_LEAST16_MAX;
5248 uint_least32_t d3 = UINT32_C (0xffffffff);
5249 uint_least32_t d3max = UINT_LEAST32_MAX;
5250 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5251 uint_least64_t d4max = UINT_LEAST64_MAX;
5252 int_fast8_t e1 = INT_FAST8_MAX;
5253 int_fast8_t e1min = INT_FAST8_MIN;
5254 int_fast16_t e2 = INT_FAST16_MAX;
5255 int_fast16_t e2min = INT_FAST16_MIN;
5256 int_fast32_t e3 = INT_FAST32_MAX;
5257 int_fast32_t e3min = INT_FAST32_MIN;
5258 int_fast64_t e4 = INT_FAST64_MAX;
5259 int_fast64_t e4min = INT_FAST64_MIN;
5260 uint_fast8_t f1 = UINT_FAST8_MAX;
5261 uint_fast16_t f2 = UINT_FAST16_MAX;
5262 uint_fast32_t f3 = UINT_FAST32_MAX;
5263 uint_fast64_t f4 = UINT_FAST64_MAX;
5264 #ifdef INTPTR_MAX
5265 intptr_t g = INTPTR_MAX;
5266 intptr_t gmin = INTPTR_MIN;
5267 #endif
5268 #ifdef UINTPTR_MAX
5269 uintptr_t h = UINTPTR_MAX;
5270 #endif
5271 intmax_t i = INTMAX_MAX;
5272 uintmax_t j = UINTMAX_MAX;
5273
5274 #include <limits.h> /* for CHAR_BIT */
5275 #define TYPE_MINIMUM(t) \
5276 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5277 #define TYPE_MAXIMUM(t) \
5278 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5279 struct s {
5280 int check_PTRDIFF:
5281 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5282 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5283 ? 1 : -1;
5284 /* Detect bug in FreeBSD 6.0 / ia64. */
5285 int check_SIG_ATOMIC:
5286 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5287 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5288 ? 1 : -1;
5289 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5290 int check_WCHAR:
5291 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5292 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5293 ? 1 : -1;
5294 /* Detect bug in mingw. */
5295 int check_WINT:
5296 WINT_MIN == TYPE_MINIMUM (wint_t)
5297 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5298 ? 1 : -1;
5299
5300 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5301 int check_UINT8_C:
5302 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5303 int check_UINT16_C:
5304 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5305
5306 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5307 #ifdef UINT8_MAX
5308 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5309 #endif
5310 #ifdef UINT16_MAX
5311 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5312 #endif
5313 #ifdef UINT32_MAX
5314 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5315 #endif
5316 #ifdef UINT64_MAX
5317 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5318 #endif
5319 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5320 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5321 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5322 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5323 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5324 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5325 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5326 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5327 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5328 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5329 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5330 };
5331
5332 int
5333 main ()
5334 {
5335
5336 ;
5337 return 0;
5338 }
5339 _ACEOF
5340 rm -f conftest.$ac_objext
5341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>conftest.er1
5343 ac_status=$?
5344 grep -v '^ *+' conftest.er1 >conftest.err
5345 rm -f conftest.er1
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try='test -z "$ac_c_werror_flag"
5350 || test ! -s conftest.err'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; } &&
5356 { ac_try='test -s conftest.$ac_objext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 (eval $ac_try) 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 gl_cv_header_working_stdint_h=yes
5363 else
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5366
5367 fi
5368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5369 fi
5370 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5371 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5372 fi
5373 if test "$gl_cv_header_working_stdint_h" = yes; then
5374 STDINT_H=
5375 else
5376
5377
5378 for ac_header in sys/inttypes.h sys/bitypes.h
5379 do
5380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5382 echo "$as_me:$LINENO: checking for $ac_header" >&5
5383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 fi
5387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5389 else
5390 # Is the header compilable?
5391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5393 cat >conftest.$ac_ext <<_ACEOF
5394 /* confdefs.h. */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399 $ac_includes_default
5400 #include <$ac_header>
5401 _ACEOF
5402 rm -f conftest.$ac_objext
5403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404 (eval $ac_compile) 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try='test -z "$ac_c_werror_flag"
5412 || test ! -s conftest.err'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; } &&
5418 { ac_try='test -s conftest.$ac_objext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 ac_header_compiler=yes
5425 else
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5428
5429 ac_header_compiler=no
5430 fi
5431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5433 echo "${ECHO_T}$ac_header_compiler" >&6
5434
5435 # Is the header present?
5436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5438 cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h. */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 #include <$ac_header>
5445 _ACEOF
5446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5448 ac_status=$?
5449 grep -v '^ *+' conftest.er1 >conftest.err
5450 rm -f conftest.er1
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } >/dev/null; then
5454 if test -s conftest.err; then
5455 ac_cpp_err=$ac_c_preproc_warn_flag
5456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5457 else
5458 ac_cpp_err=
5459 fi
5460 else
5461 ac_cpp_err=yes
5462 fi
5463 if test -z "$ac_cpp_err"; then
5464 ac_header_preproc=yes
5465 else
5466 echo "$as_me: failed program was:" >&5
5467 sed 's/^/| /' conftest.$ac_ext >&5
5468
5469 ac_header_preproc=no
5470 fi
5471 rm -f conftest.err conftest.$ac_ext
5472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5473 echo "${ECHO_T}$ac_header_preproc" >&6
5474
5475 # So? What about this header?
5476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5477 yes:no: )
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5482 ac_header_preproc=yes
5483 ;;
5484 no:yes:* )
5485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5497 (
5498 cat <<\_ASBOX
5499 ## ------------------------------------------ ##
5500 ## Report this to the AC_PACKAGE_NAME lists. ##
5501 ## ------------------------------------------ ##
5502 _ASBOX
5503 ) |
5504 sed "s/^/$as_me: WARNING: /" >&2
5505 ;;
5506 esac
5507 echo "$as_me:$LINENO: checking for $ac_header" >&5
5508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512 eval "$as_ac_Header=\$ac_header_preproc"
5513 fi
5514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5516
5517 fi
5518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5519 cat >>confdefs.h <<_ACEOF
5520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5521 _ACEOF
5522
5523 fi
5524
5525 done
5526
5527 if test $ac_cv_header_sys_inttypes_h = yes; then
5528 HAVE_SYS_INTTYPES_H=1
5529 else
5530 HAVE_SYS_INTTYPES_H=0
5531 fi
5532
5533 if test $ac_cv_header_sys_bitypes_h = yes; then
5534 HAVE_SYS_BITYPES_H=1
5535 else
5536 HAVE_SYS_BITYPES_H=0
5537 fi
5538
5539
5540
5541 :
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5557 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5558 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5559 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 if test "$cross_compiling" = yes; then
5563 # Depending upon the size, compute the lo and hi bounds.
5564 cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h. */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570
5571 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5572 included before <wchar.h>. */
5573 #include <stddef.h>
5574 #include <signal.h>
5575 #if HAVE_WCHAR_H
5576 # include <stdio.h>
5577 # include <time.h>
5578 # include <wchar.h>
5579 #endif
5580
5581 #include <limits.h>
5582 int
5583 main ()
5584 {
5585 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5586 test_array [0] = 0
5587
5588 ;
5589 return 0;
5590 }
5591 _ACEOF
5592 rm -f conftest.$ac_objext
5593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>conftest.er1
5595 ac_status=$?
5596 grep -v '^ *+' conftest.er1 >conftest.err
5597 rm -f conftest.er1
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } &&
5601 { ac_try='test -z "$ac_c_werror_flag"
5602 || test ! -s conftest.err'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 (eval $ac_try) 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; } &&
5608 { ac_try='test -s conftest.$ac_objext'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 (eval $ac_try) 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5614 ac_lo=0 ac_mid=0
5615 while :; do
5616 cat >conftest.$ac_ext <<_ACEOF
5617 /* confdefs.h. */
5618 _ACEOF
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622
5623 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5624 included before <wchar.h>. */
5625 #include <stddef.h>
5626 #include <signal.h>
5627 #if HAVE_WCHAR_H
5628 # include <stdio.h>
5629 # include <time.h>
5630 # include <wchar.h>
5631 #endif
5632
5633 #include <limits.h>
5634 int
5635 main ()
5636 {
5637 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5638 test_array [0] = 0
5639
5640 ;
5641 return 0;
5642 }
5643 _ACEOF
5644 rm -f conftest.$ac_objext
5645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646 (eval $ac_compile) 2>conftest.er1
5647 ac_status=$?
5648 grep -v '^ *+' conftest.er1 >conftest.err
5649 rm -f conftest.er1
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -z "$ac_c_werror_flag"
5654 || test ! -s conftest.err'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 (eval $ac_try) 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; } &&
5660 { ac_try='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 (eval $ac_try) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 ac_hi=$ac_mid; break
5667 else
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5670
5671 ac_lo=`expr $ac_mid + 1`
5672 if test $ac_lo -le $ac_mid; then
5673 ac_lo= ac_hi=
5674 break
5675 fi
5676 ac_mid=`expr 2 '*' $ac_mid + 1`
5677 fi
5678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5679 done
5680 else
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5683
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h. */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690
5691 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5692 included before <wchar.h>. */
5693 #include <stddef.h>
5694 #include <signal.h>
5695 #if HAVE_WCHAR_H
5696 # include <stdio.h>
5697 # include <time.h>
5698 # include <wchar.h>
5699 #endif
5700
5701 #include <limits.h>
5702 int
5703 main ()
5704 {
5705 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5706 test_array [0] = 0
5707
5708 ;
5709 return 0;
5710 }
5711 _ACEOF
5712 rm -f conftest.$ac_objext
5713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714 (eval $ac_compile) 2>conftest.er1
5715 ac_status=$?
5716 grep -v '^ *+' conftest.er1 >conftest.err
5717 rm -f conftest.er1
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try='test -z "$ac_c_werror_flag"
5722 || test ! -s conftest.err'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 (eval $ac_try) 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; } &&
5728 { ac_try='test -s conftest.$ac_objext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 ac_hi=-1 ac_mid=-1
5735 while :; do
5736 cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h. */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742
5743 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5744 included before <wchar.h>. */
5745 #include <stddef.h>
5746 #include <signal.h>
5747 #if HAVE_WCHAR_H
5748 # include <stdio.h>
5749 # include <time.h>
5750 # include <wchar.h>
5751 #endif
5752
5753 #include <limits.h>
5754 int
5755 main ()
5756 {
5757 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5758 test_array [0] = 0
5759
5760 ;
5761 return 0;
5762 }
5763 _ACEOF
5764 rm -f conftest.$ac_objext
5765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>conftest.er1
5767 ac_status=$?
5768 grep -v '^ *+' conftest.er1 >conftest.err
5769 rm -f conftest.er1
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -z "$ac_c_werror_flag"
5774 || test ! -s conftest.err'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; } &&
5780 { ac_try='test -s conftest.$ac_objext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 (eval $ac_try) 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_lo=$ac_mid; break
5787 else
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791 ac_hi=`expr '(' $ac_mid ')' - 1`
5792 if test $ac_mid -le $ac_hi; then
5793 ac_lo= ac_hi=
5794 break
5795 fi
5796 ac_mid=`expr 2 '*' $ac_mid`
5797 fi
5798 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5799 done
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 ac_lo= ac_hi=
5805 fi
5806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5807 fi
5808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5809 # Binary search between lo and hi bounds.
5810 while test "x$ac_lo" != "x$ac_hi"; do
5811 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5812 cat >conftest.$ac_ext <<_ACEOF
5813 /* confdefs.h. */
5814 _ACEOF
5815 cat confdefs.h >>conftest.$ac_ext
5816 cat >>conftest.$ac_ext <<_ACEOF
5817 /* end confdefs.h. */
5818
5819 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5820 included before <wchar.h>. */
5821 #include <stddef.h>
5822 #include <signal.h>
5823 #if HAVE_WCHAR_H
5824 # include <stdio.h>
5825 # include <time.h>
5826 # include <wchar.h>
5827 #endif
5828
5829 #include <limits.h>
5830 int
5831 main ()
5832 {
5833 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5834 test_array [0] = 0
5835
5836 ;
5837 return 0;
5838 }
5839 _ACEOF
5840 rm -f conftest.$ac_objext
5841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842 (eval $ac_compile) 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag"
5850 || test ! -s conftest.err'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 (eval $ac_try) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; } &&
5856 { ac_try='test -s conftest.$ac_objext'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 (eval $ac_try) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5862 ac_hi=$ac_mid
5863 else
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5866
5867 ac_lo=`expr '(' $ac_mid ')' + 1`
5868 fi
5869 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5870 done
5871 case $ac_lo in
5872 ?*) result=$ac_lo;;
5873 '') result=unknown ;;
5874 esac
5875 else
5876 if test "$cross_compiling" = yes; then
5877 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5878 See \`config.log' for more details." >&5
5879 echo "$as_me: error: cannot run test program while cross compiling
5880 See \`config.log' for more details." >&2;}
5881 { (exit 1); exit 1; }; }
5882 else
5883 cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h. */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h. */
5889
5890 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5891 included before <wchar.h>. */
5892 #include <stddef.h>
5893 #include <signal.h>
5894 #if HAVE_WCHAR_H
5895 # include <stdio.h>
5896 # include <time.h>
5897 # include <wchar.h>
5898 #endif
5899
5900 #include <limits.h>
5901 long longval () { return sizeof ($gltype) * CHAR_BIT; }
5902 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
5903 #include <stdio.h>
5904 #include <stdlib.h>
5905 int
5906 main ()
5907 {
5908
5909 FILE *f = fopen ("conftest.val", "w");
5910 if (! f)
5911 exit (1);
5912 if ((sizeof ($gltype) * CHAR_BIT) < 0)
5913 {
5914 long i = longval ();
5915 if (i != (sizeof ($gltype) * CHAR_BIT))
5916 exit (1);
5917 fprintf (f, "%ld\n", i);
5918 }
5919 else
5920 {
5921 unsigned long i = ulongval ();
5922 if (i != (sizeof ($gltype) * CHAR_BIT))
5923 exit (1);
5924 fprintf (f, "%lu\n", i);
5925 }
5926 exit (ferror (f) || fclose (f) != 0);
5927
5928 ;
5929 return 0;
5930 }
5931 _ACEOF
5932 rm -f conftest$ac_exeext
5933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5934 (eval $ac_link) 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 result=`cat conftest.val`
5944 else
5945 echo "$as_me: program exited with status $ac_status" >&5
5946 echo "$as_me: failed program was:" >&5
5947 sed 's/^/| /' conftest.$ac_ext >&5
5948
5949 ( exit $ac_status )
5950 result=unknown
5951 fi
5952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5953 fi
5954 fi
5955 rm -f conftest.val
5956 eval gl_cv_bitsizeof_${gltype}=\$result
5957
5958 fi
5959 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
5960 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
5961 eval result=\$gl_cv_bitsizeof_${gltype}
5962 if test $result = unknown; then
5963 result=0
5964 fi
5965 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5966 cat >>confdefs.h <<_ACEOF
5967 #define BITSIZEOF_${GLTYPE} $result
5968 _ACEOF
5969
5970 eval BITSIZEOF_${GLTYPE}=\$result
5971 done
5972
5973
5974
5975
5976
5977
5978
5979 for gltype in sig_atomic_t wchar_t wint_t ; do
5980 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
5981 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
5982 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985 cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h. */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991
5992 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5993 included before <wchar.h>. */
5994 #include <stddef.h>
5995 #include <signal.h>
5996 #if HAVE_WCHAR_H
5997 # include <stdio.h>
5998 # include <time.h>
5999 # include <wchar.h>
6000 #endif
6001
6002 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6003 int
6004 main ()
6005 {
6006
6007 ;
6008 return 0;
6009 }
6010 _ACEOF
6011 rm -f conftest.$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_c_werror_flag"
6021 || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 result=yes
6034 else
6035 echo "$as_me: failed program was:" >&5
6036 sed 's/^/| /' conftest.$ac_ext >&5
6037
6038 result=no
6039 fi
6040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041 eval gl_cv_type_${gltype}_signed=\$result
6042
6043 fi
6044 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6045 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6046 eval result=\$gl_cv_type_${gltype}_signed
6047 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6048 if test "$result" = yes; then
6049 cat >>confdefs.h <<_ACEOF
6050 #define HAVE_SIGNED_${GLTYPE} 1
6051 _ACEOF
6052
6053 eval HAVE_SIGNED_${GLTYPE}=1
6054 else
6055 eval HAVE_SIGNED_${GLTYPE}=0
6056 fi
6057 done
6058
6059
6060 gl_cv_type_ptrdiff_t_signed=yes
6061 gl_cv_type_size_t_signed=no
6062
6063
6064
6065
6066
6067
6068
6069 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6070 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6071 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6072 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075 eval gl_cv_type_${gltype}_suffix=no
6076 eval result=\$gl_cv_type_${gltype}_signed
6077 if test "$result" = yes; then
6078 glsufu=
6079 else
6080 glsufu=u
6081 fi
6082 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6083 case $glsuf in
6084 '') gltype1='int';;
6085 l) gltype1='long int';;
6086 ll) gltype1='long long int';;
6087 i64) gltype1='__int64';;
6088 u) gltype1='unsigned int';;
6089 ul) gltype1='unsigned long int';;
6090 ull) gltype1='unsigned long long int';;
6091 ui64)gltype1='unsigned __int64';;
6092 esac
6093 cat >conftest.$ac_ext <<_ACEOF
6094 /* confdefs.h. */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099
6100 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6101 included before <wchar.h>. */
6102 #include <stddef.h>
6103 #include <signal.h>
6104 #if HAVE_WCHAR_H
6105 # include <stdio.h>
6106 # include <time.h>
6107 # include <wchar.h>
6108 #endif
6109
6110 extern $gltype foo;
6111 extern $gltype1 foo;
6112 int
6113 main ()
6114 {
6115
6116 ;
6117 return 0;
6118 }
6119 _ACEOF
6120 rm -f conftest.$ac_objext
6121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122 (eval $ac_compile) 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -z "$ac_c_werror_flag"
6130 || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try='test -s conftest.$ac_objext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 eval gl_cv_type_${gltype}_suffix=\$glsuf
6143 else
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6146
6147 fi
6148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6149 eval result=\$gl_cv_type_${gltype}_suffix
6150 test "$result" != no && break
6151 done
6152 fi
6153 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6154 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6155 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6156 eval result=\$gl_cv_type_${gltype}_suffix
6157 test "$result" = no && result=
6158 eval ${GLTYPE}_SUFFIX=\$result
6159 cat >>confdefs.h <<_ACEOF
6160 #define ${GLTYPE}_SUFFIX $result
6161 _ACEOF
6162
6163 done
6164
6165
6166
6167 STDINT_H=stdint.h
6168 fi
6169
6170
6171
6172
6173
6174
6175
6176 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6177 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6178 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180 else
6181 cat >conftest.$ac_ext <<_ACEOF
6182 #include <wchar.h>
6183 wchar_t w;
6184 _ACEOF
6185 rm -f conftest.$ac_objext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6187 (eval $ac_compile) 2>conftest.er1
6188 ac_status=$?
6189 grep -v '^ *+' conftest.er1 >conftest.err
6190 rm -f conftest.er1
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } &&
6194 { ac_try='test -z "$ac_c_werror_flag"
6195 || test ! -s conftest.err'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; } &&
6201 { ac_try='test -s conftest.$ac_objext'
6202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 (eval $ac_try) 2>&5
6204 ac_status=$?
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; }; then
6207 gl_cv_header_wchar_h_standalone=yes
6208 else
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6211
6212 gl_cv_header_wchar_h_standalone=no
6213 fi
6214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6215 fi
6216 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6217 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6218 if test $gl_cv_header_wchar_h_standalone != yes; then
6219 WCHAR_H=wchar.h
6220 fi
6221
6222
6223 :
6224
6225
6226
6227
6228
6229 if test $ac_cv_header_wchar_h = yes; then
6230 HAVE_WCHAR_H=1
6231 else
6232 HAVE_WCHAR_H=0
6233 fi
6234
6235
6236
6237
6238 :
6239
6240
6241
6242
6243
6244
6245
6246 if test $gl_cv_have_include_next = yes; then
6247 gl_cv_next_wchar_h='<'wchar.h'>'
6248 else
6249 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6250 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6251 if test "${gl_cv_next_wchar_h+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 else
6254
6255 if test $ac_cv_header_wchar_h = yes; then
6256 cat >conftest.$ac_ext <<_ACEOF
6257 /* confdefs.h. */
6258 _ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 #include <wchar.h>
6263
6264 _ACEOF
6265 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 sed -n '\#/wchar.h#{
6267 s#.*"\(.*/wchar.h\)".*#\1#
6268 s#^/[^/]#//&#
6269 p
6270 q
6271 }'`'"'
6272 else
6273 gl_cv_next_wchar_h='<'wchar.h'>'
6274 fi
6275
6276 fi
6277 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6278 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6279 fi
6280 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6281
6282
6283
6284
6285
6286
6287
6288
6289 gltests_libdeps=
6290 gltests_ltlibdeps=
6291
6292
6293
6294 gl_source_base='tests'
6295
6296
6297
6298
6299 LIBGNU_LIBDEPS="$gl_libdeps"
6300
6301 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6302
6303
6304
6305 PACKAGE=gdb
6306
6307 cat >>confdefs.h <<_ACEOF
6308 #define PACKAGE "$PACKAGE"
6309 _ACEOF
6310
6311
6312
6313 # GDB does not use automake, but gnulib does. This line lets us
6314 # generate its Makefile.in.
6315 am__api_version="1.9"
6316 # Find a good install program. We prefer a C program (faster),
6317 # so one script is as good as another. But avoid the broken or
6318 # incompatible versions:
6319 # SysV /etc/install, /usr/sbin/install
6320 # SunOS /usr/etc/install
6321 # IRIX /sbin/install
6322 # AIX /bin/install
6323 # AmigaOS /C/install, which installs bootblocks on floppy discs
6324 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6325 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6326 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6327 # OS/2's system install, which has a completely different semantic
6328 # ./install, which can be erroneously created by make from ./install.sh.
6329 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6330 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6331 if test -z "$INSTALL"; then
6332 if test "${ac_cv_path_install+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 for as_dir in $PATH
6337 do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 # Account for people who put trailing slashes in PATH elements.
6341 case $as_dir/ in
6342 ./ | .// | /cC/* | \
6343 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6344 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6345 /usr/ucb/* ) ;;
6346 *)
6347 # OSF1 and SCO ODT 3.0 have their own names for install.
6348 # Don't use installbsd from OSF since it installs stuff as root
6349 # by default.
6350 for ac_prog in ginstall scoinst install; do
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6353 if test $ac_prog = install &&
6354 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6355 # AIX install. It has an incompatible calling convention.
6356 :
6357 elif test $ac_prog = install &&
6358 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6359 # program-specific install script used by HP pwplus--don't use.
6360 :
6361 else
6362 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6363 break 3
6364 fi
6365 fi
6366 done
6367 done
6368 ;;
6369 esac
6370 done
6371
6372
6373 fi
6374 if test "${ac_cv_path_install+set}" = set; then
6375 INSTALL=$ac_cv_path_install
6376 else
6377 # As a last resort, use the slow shell script. We don't cache a
6378 # path for INSTALL within a source directory, because that will
6379 # break other packages using the cache if that directory is
6380 # removed, or if the path is relative.
6381 INSTALL=$ac_install_sh
6382 fi
6383 fi
6384 echo "$as_me:$LINENO: result: $INSTALL" >&5
6385 echo "${ECHO_T}$INSTALL" >&6
6386
6387 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6388 # It thinks the first close brace ends the variable substitution.
6389 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6390
6391 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6392
6393 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6394
6395 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6396 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6397 # Just in case
6398 sleep 1
6399 echo timestamp > conftest.file
6400 # Do `set' in a subshell so we don't clobber the current shell's
6401 # arguments. Must try -L first in case configure is actually a
6402 # symlink; some systems play weird games with the mod time of symlinks
6403 # (eg FreeBSD returns the mod time of the symlink's containing
6404 # directory).
6405 if (
6406 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6407 if test "$*" = "X"; then
6408 # -L didn't work.
6409 set X `ls -t $srcdir/configure conftest.file`
6410 fi
6411 rm -f conftest.file
6412 if test "$*" != "X $srcdir/configure conftest.file" \
6413 && test "$*" != "X conftest.file $srcdir/configure"; then
6414
6415 # If neither matched, then we have a broken ls. This can happen
6416 # if, for instance, CONFIG_SHELL is bash and it inherits a
6417 # broken ls alias from the environment. This has actually
6418 # happened. Such a system could not be considered "sane".
6419 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6420 alias in your environment" >&5
6421 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6422 alias in your environment" >&2;}
6423 { (exit 1); exit 1; }; }
6424 fi
6425
6426 test "$2" = conftest.file
6427 )
6428 then
6429 # Ok.
6430 :
6431 else
6432 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6433 Check your system clock" >&5
6434 echo "$as_me: error: newly created file is older than distributed files!
6435 Check your system clock" >&2;}
6436 { (exit 1); exit 1; }; }
6437 fi
6438 echo "$as_me:$LINENO: result: yes" >&5
6439 echo "${ECHO_T}yes" >&6
6440 test "$program_prefix" != NONE &&
6441 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6442 # Use a double $ so make ignores it.
6443 test "$program_suffix" != NONE &&
6444 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6445 # Double any \ or $. echo might interpret backslashes.
6446 # By default was `s,x,x', remove it if useless.
6447 cat <<\_ACEOF >conftest.sed
6448 s/[\\$]/&&/g;s/;s,x,x,$//
6449 _ACEOF
6450 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6451 rm conftest.sed
6452
6453 # expand $ac_aux_dir to an absolute path
6454 am_aux_dir=`cd $ac_aux_dir && pwd`
6455
6456 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6457 # Use eval to expand $SHELL
6458 if eval "$MISSING --run true"; then
6459 am_missing_run="$MISSING --run "
6460 else
6461 am_missing_run=
6462 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6463 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6464 fi
6465
6466 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6467 # We used to keeping the `.' as first argument, in order to
6468 # allow $(mkdir_p) to be used without argument. As in
6469 # $(mkdir_p) $(somedir)
6470 # where $(somedir) is conditionally defined. However this is wrong
6471 # for two reasons:
6472 # 1. if the package is installed by a user who cannot write `.'
6473 # make install will fail,
6474 # 2. the above comment should most certainly read
6475 # $(mkdir_p) $(DESTDIR)$(somedir)
6476 # so it does not work when $(somedir) is undefined and
6477 # $(DESTDIR) is not.
6478 # To support the latter case, we have to write
6479 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6480 # so the `.' trick is pointless.
6481 mkdir_p='mkdir -p --'
6482 else
6483 # On NextStep and OpenStep, the `mkdir' command does not
6484 # recognize any option. It will interpret all options as
6485 # directories to create, and then abort because `.' already
6486 # exists.
6487 for d in ./-p ./--version;
6488 do
6489 test -d $d && rmdir $d
6490 done
6491 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6492 if test -f "$ac_aux_dir/mkinstalldirs"; then
6493 mkdir_p='$(mkinstalldirs)'
6494 else
6495 mkdir_p='$(install_sh) -d'
6496 fi
6497 fi
6498
6499 for ac_prog in gawk mawk nawk awk
6500 do
6501 # Extract the first word of "$ac_prog", so it can be a program name with args.
6502 set dummy $ac_prog; ac_word=$2
6503 echo "$as_me:$LINENO: checking for $ac_word" >&5
6504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6505 if test "${ac_cv_prog_AWK+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508 if test -n "$AWK"; then
6509 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6510 else
6511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512 for as_dir in $PATH
6513 do
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6518 ac_cv_prog_AWK="$ac_prog"
6519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522 done
6523 done
6524
6525 fi
6526 fi
6527 AWK=$ac_cv_prog_AWK
6528 if test -n "$AWK"; then
6529 echo "$as_me:$LINENO: result: $AWK" >&5
6530 echo "${ECHO_T}$AWK" >&6
6531 else
6532 echo "$as_me:$LINENO: result: no" >&5
6533 echo "${ECHO_T}no" >&6
6534 fi
6535
6536 test -n "$AWK" && break
6537 done
6538
6539 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6540 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6541 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6542 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545 cat >conftest.make <<\_ACEOF
6546 all:
6547 @echo 'ac_maketemp="$(MAKE)"'
6548 _ACEOF
6549 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6550 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6551 if test -n "$ac_maketemp"; then
6552 eval ac_cv_prog_make_${ac_make}_set=yes
6553 else
6554 eval ac_cv_prog_make_${ac_make}_set=no
6555 fi
6556 rm -f conftest.make
6557 fi
6558 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6559 echo "$as_me:$LINENO: result: yes" >&5
6560 echo "${ECHO_T}yes" >&6
6561 SET_MAKE=
6562 else
6563 echo "$as_me:$LINENO: result: no" >&5
6564 echo "${ECHO_T}no" >&6
6565 SET_MAKE="MAKE=${MAKE-make}"
6566 fi
6567
6568 rm -rf .tst 2>/dev/null
6569 mkdir .tst 2>/dev/null
6570 if test -d .tst; then
6571 am__leading_dot=.
6572 else
6573 am__leading_dot=_
6574 fi
6575 rmdir .tst 2>/dev/null
6576
6577 DEPDIR="${am__leading_dot}deps"
6578
6579 ac_config_commands="$ac_config_commands depfiles"
6580
6581
6582 am_make=${MAKE-make}
6583 cat > confinc << 'END'
6584 am__doit:
6585 @echo done
6586 .PHONY: am__doit
6587 END
6588 # If we don't find an include directive, just comment out the code.
6589 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6590 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6591 am__include="#"
6592 am__quote=
6593 _am_result=none
6594 # First try GNU make style include.
6595 echo "include confinc" > confmf
6596 # We grep out `Entering directory' and `Leaving directory'
6597 # messages which can occur if `w' ends up in MAKEFLAGS.
6598 # In particular we don't look at `^make:' because GNU make might
6599 # be invoked under some other name (usually "gmake"), in which
6600 # case it prints its new name instead of `make'.
6601 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6602 am__include=include
6603 am__quote=
6604 _am_result=GNU
6605 fi
6606 # Now try BSD make style include.
6607 if test "$am__include" = "#"; then
6608 echo '.include "confinc"' > confmf
6609 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6610 am__include=.include
6611 am__quote="\""
6612 _am_result=BSD
6613 fi
6614 fi
6615
6616
6617 echo "$as_me:$LINENO: result: $_am_result" >&5
6618 echo "${ECHO_T}$_am_result" >&6
6619 rm -f confinc confmf
6620
6621 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6622 if test "${enable_dependency_tracking+set}" = set; then
6623 enableval="$enable_dependency_tracking"
6624
6625 fi;
6626 if test "x$enable_dependency_tracking" != xno; then
6627 am_depcomp="$ac_aux_dir/depcomp"
6628 AMDEPBACKSLASH='\'
6629 fi
6630
6631
6632 if test "x$enable_dependency_tracking" != xno; then
6633 AMDEP_TRUE=
6634 AMDEP_FALSE='#'
6635 else
6636 AMDEP_TRUE='#'
6637 AMDEP_FALSE=
6638 fi
6639
6640
6641
6642 # test to see if srcdir already configured
6643 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6644 test -f $srcdir/config.status; then
6645 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6646 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6647 { (exit 1); exit 1; }; }
6648 fi
6649
6650 # test whether we have cygpath
6651 if test -z "$CYGPATH_W"; then
6652 if (cygpath --version) >/dev/null 2>/dev/null; then
6653 CYGPATH_W='cygpath -w'
6654 else
6655 CYGPATH_W=echo
6656 fi
6657 fi
6658
6659
6660 # Define the identity of the package.
6661 PACKAGE=gdb
6662 VERSION=UNUSED-VERSION
6663
6664
6665 # Some tools Automake needs.
6666
6667 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6668
6669
6670 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6671
6672
6673 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6674
6675
6676 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6677
6678
6679 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6680
6681 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6682
6683 # Installed binaries are usually stripped using `strip' when the user
6684 # run `make install-strip'. However `strip' might not be the right
6685 # tool to use in cross-compilation environments, therefore Automake
6686 # will honor the `STRIP' environment variable to overrule this program.
6687 if test "$cross_compiling" != no; then
6688 if test -n "$ac_tool_prefix"; then
6689 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6690 set dummy ${ac_tool_prefix}strip; ac_word=$2
6691 echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6693 if test "${ac_cv_prog_STRIP+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695 else
6696 if test -n "$STRIP"; then
6697 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6709 fi
6710 done
6711 done
6712
6713 fi
6714 fi
6715 STRIP=$ac_cv_prog_STRIP
6716 if test -n "$STRIP"; then
6717 echo "$as_me:$LINENO: result: $STRIP" >&5
6718 echo "${ECHO_T}$STRIP" >&6
6719 else
6720 echo "$as_me:$LINENO: result: no" >&5
6721 echo "${ECHO_T}no" >&6
6722 fi
6723
6724 fi
6725 if test -z "$ac_cv_prog_STRIP"; then
6726 ac_ct_STRIP=$STRIP
6727 # Extract the first word of "strip", so it can be a program name with args.
6728 set dummy strip; ac_word=$2
6729 echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6731 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 if test -n "$ac_ct_STRIP"; then
6735 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744 ac_cv_prog_ac_ct_STRIP="strip"
6745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748 done
6749 done
6750
6751 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6752 fi
6753 fi
6754 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6755 if test -n "$ac_ct_STRIP"; then
6756 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6757 echo "${ECHO_T}$ac_ct_STRIP" >&6
6758 else
6759 echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6
6761 fi
6762
6763 STRIP=$ac_ct_STRIP
6764 else
6765 STRIP="$ac_cv_prog_STRIP"
6766 fi
6767
6768 fi
6769 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6770
6771 # We need awk for the "check" target. The system "awk" is bad on
6772 # some platforms.
6773 # Always define AMTAR for backward compatibility.
6774
6775 AMTAR=${AMTAR-"${am_missing_run}tar"}
6776
6777 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6778
6779
6780
6781
6782 depcc="$CC" am_compiler_list=
6783
6784 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6785 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6786 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6790 # We make a subdir and do the tests there. Otherwise we can end up
6791 # making bogus files that we don't know about and never remove. For
6792 # instance it was reported that on HP-UX the gcc test will end up
6793 # making a dummy file named `D' -- because `-MD' means `put the output
6794 # in D'.
6795 mkdir conftest.dir
6796 # Copy depcomp to subdir because otherwise we won't find it if we're
6797 # using a relative directory.
6798 cp "$am_depcomp" conftest.dir
6799 cd conftest.dir
6800 # We will build objects and dependencies in a subdirectory because
6801 # it helps to detect inapplicable dependency modes. For instance
6802 # both Tru64's cc and ICC support -MD to output dependencies as a
6803 # side effect of compilation, but ICC will put the dependencies in
6804 # the current directory while Tru64 will put them in the object
6805 # directory.
6806 mkdir sub
6807
6808 am_cv_CC_dependencies_compiler_type=none
6809 if test "$am_compiler_list" = ""; then
6810 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6811 fi
6812 for depmode in $am_compiler_list; do
6813 # Setup a source with many dependencies, because some compilers
6814 # like to wrap large dependency lists on column 80 (with \), and
6815 # we should not choose a depcomp mode which is confused by this.
6816 #
6817 # We need to recreate these files for each test, as the compiler may
6818 # overwrite some of them when testing with obscure command lines.
6819 # This happens at least with the AIX C compiler.
6820 : > sub/conftest.c
6821 for i in 1 2 3 4 5 6; do
6822 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6823 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6824 # Solaris 8's {/usr,}/bin/sh.
6825 touch sub/conftst$i.h
6826 done
6827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6828
6829 case $depmode in
6830 nosideeffect)
6831 # after this tag, mechanisms are not by side-effect, so they'll
6832 # only be used when explicitly requested
6833 if test "x$enable_dependency_tracking" = xyes; then
6834 continue
6835 else
6836 break
6837 fi
6838 ;;
6839 none) break ;;
6840 esac
6841 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6842 # mode. It turns out that the SunPro C++ compiler does not properly
6843 # handle `-M -o', and we need to detect this.
6844 if depmode=$depmode \
6845 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6846 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6847 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6848 >/dev/null 2>conftest.err &&
6849 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6850 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6851 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6852 # icc doesn't choke on unknown options, it will just issue warnings
6853 # or remarks (even with -Werror). So we grep stderr for any message
6854 # that says an option was ignored or not supported.
6855 # When given -MP, icc 7.0 and 7.1 complain thusly:
6856 # icc: Command line warning: ignoring option '-M'; no argument required
6857 # The diagnosis changed in icc 8.0:
6858 # icc: Command line remark: option '-MP' not supported
6859 if (grep 'ignoring option' conftest.err ||
6860 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6861 am_cv_CC_dependencies_compiler_type=$depmode
6862 break
6863 fi
6864 fi
6865 done
6866
6867 cd ..
6868 rm -rf conftest.dir
6869 else
6870 am_cv_CC_dependencies_compiler_type=none
6871 fi
6872
6873 fi
6874 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6875 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6876 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6877
6878
6879
6880 if
6881 test "x$enable_dependency_tracking" != xno \
6882 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6883 am__fastdepCC_TRUE=
6884 am__fastdepCC_FALSE='#'
6885 else
6886 am__fastdepCC_TRUE='#'
6887 am__fastdepCC_FALSE=
6888 fi
6889
6890
6891
6892
6893 debugdir=${libdir}/debug
6894
6895
6896 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
6897 if test "${with_separate_debug_dir+set}" = set; then
6898 withval="$with_separate_debug_dir"
6899 debugdir="${withval}"
6900 fi;
6901
6902
6903 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6904 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6905 ac_define_dir=`eval echo $debugdir`
6906 ac_define_dir=`eval echo $ac_define_dir`
6907
6908 cat >>confdefs.h <<_ACEOF
6909 #define DEBUGDIR "$ac_define_dir"
6910 _ACEOF
6911
6912
6913 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
6914
6915 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6916 if test "x$prefix" = xNONE; then
6917 test_prefix=/usr/local
6918 else
6919 test_prefix=$prefix
6920 fi
6921 else
6922 test_prefix=$exec_prefix
6923 fi
6924 case ${debugdir} in
6925 "${test_prefix}"|"${test_prefix}/"*|\
6926 '${exec_prefix}'|'${exec_prefix}/'*)
6927
6928 cat >>confdefs.h <<\_ACEOF
6929 #define DEBUGDIR_RELOCATABLE 1
6930 _ACEOF
6931
6932 ;;
6933 esac
6934
6935
6936
6937 subdirs="$subdirs doc testsuite"
6938
6939
6940 # Check whether to support alternative target configurations
6941 # Check whether --enable-targets or --disable-targets was given.
6942 if test "${enable_targets+set}" = set; then
6943 enableval="$enable_targets"
6944 case "${enableval}" in
6945 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
6946 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
6947 { (exit 1); exit 1; }; }
6948 ;;
6949 no) enable_targets= ;;
6950 *) enable_targets=$enableval ;;
6951 esac
6952 fi;
6953
6954 # Check whether to enable 64-bit support on 32-bit hosts
6955 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
6956 if test "${enable_64_bit_bfd+set}" = set; then
6957 enableval="$enable_64_bit_bfd"
6958 case "${enableval}" in
6959 yes) want64=true ;;
6960 no) want64=false ;;
6961 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
6962 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
6963 { (exit 1); exit 1; }; } ;;
6964 esac
6965 else
6966 want64=false
6967 fi;
6968 # Provide defaults for some variables set by the per-host and per-target
6969 # configuration.
6970 gdb_host_obs=posix-hdep.o
6971
6972 if test "${target}" = "${host}"; then
6973 gdb_native=yes
6974 else
6975 gdb_native=no
6976 fi
6977
6978 . $srcdir/configure.host
6979
6980 # Accumulate some settings from configure.tgt over all enabled targets
6981
6982 TARGET_OBS=
6983 all_targets=
6984
6985 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
6986 do
6987 if test "$targ_alias" = "all"; then
6988 all_targets=true
6989 else
6990 # Canonicalize the secondary target names.
6991 result=`$ac_config_sub $targ_alias 2>/dev/null`
6992 if test -n "$result"; then
6993 targ=$result
6994 else
6995 targ=$targ_alias
6996 fi
6997
6998 . ${srcdir}/configure.tgt
6999
7000 # Target-specific object files
7001 for i in ${gdb_target_obs}; do
7002 case " $TARGET_OBS " in
7003 *" ${i} "*) ;;
7004 *)
7005 TARGET_OBS="$TARGET_OBS ${i}"
7006 ;;
7007 esac
7008 done
7009
7010 # Check whether this target needs 64-bit CORE_ADDR
7011 if test x${want64} = xfalse; then
7012 . ${srcdir}/../bfd/config.bfd
7013 fi
7014 fi
7015 done
7016
7017 if test x${all_targets} = xtrue; then
7018
7019 # We want all 64-bit targets if we either:
7020 # - run on a 64-bit host or
7021 # - already require 64-bit support for some other target or
7022 # - the --enable-64-bit-bfd option was supplied
7023 # Otherwise we only support all 32-bit targets.
7024 #
7025 # NOTE: This test must be in sync with the corresponding
7026 # tests in BFD!
7027
7028 if test x${want64} = xfalse; then
7029 echo "$as_me:$LINENO: checking for long" >&5
7030 echo $ECHO_N "checking for long... $ECHO_C" >&6
7031 if test "${ac_cv_type_long+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034 cat >conftest.$ac_ext <<_ACEOF
7035 /* confdefs.h. */
7036 _ACEOF
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 $ac_includes_default
7041 int
7042 main ()
7043 {
7044 if ((long *) 0)
7045 return 0;
7046 if (sizeof (long))
7047 return 0;
7048 ;
7049 return 0;
7050 }
7051 _ACEOF
7052 rm -f conftest.$ac_objext
7053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7054 (eval $ac_compile) 2>conftest.er1
7055 ac_status=$?
7056 grep -v '^ *+' conftest.er1 >conftest.err
7057 rm -f conftest.er1
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try='test -z "$ac_c_werror_flag"
7062 || test ! -s conftest.err'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064 (eval $ac_try) 2>&5
7065 ac_status=$?
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; } &&
7068 { ac_try='test -s conftest.$ac_objext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 (eval $ac_try) 2>&5
7071 ac_status=$?
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 ac_cv_type_long=yes
7075 else
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7078
7079 ac_cv_type_long=no
7080 fi
7081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7082 fi
7083 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7084 echo "${ECHO_T}$ac_cv_type_long" >&6
7085
7086 echo "$as_me:$LINENO: checking size of long" >&5
7087 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7088 if test "${ac_cv_sizeof_long+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 else
7091 if test "$ac_cv_type_long" = yes; then
7092 # The cast to unsigned long works around a bug in the HP C Compiler
7093 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7094 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7095 # This bug is HP SR number 8606223364.
7096 if test "$cross_compiling" = yes; then
7097 # Depending upon the size, compute the lo and hi bounds.
7098 cat >conftest.$ac_ext <<_ACEOF
7099 /* confdefs.h. */
7100 _ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7104 $ac_includes_default
7105 int
7106 main ()
7107 {
7108 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7109 test_array [0] = 0
7110
7111 ;
7112 return 0;
7113 }
7114 _ACEOF
7115 rm -f conftest.$ac_objext
7116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7117 (eval $ac_compile) 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -z "$ac_c_werror_flag"
7125 || test ! -s conftest.err'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; } &&
7131 { ac_try='test -s conftest.$ac_objext'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 (eval $ac_try) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7137 ac_lo=0 ac_mid=0
7138 while :; do
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 $ac_includes_default
7146 int
7147 main ()
7148 {
7149 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7150 test_array [0] = 0
7151
7152 ;
7153 return 0;
7154 }
7155 _ACEOF
7156 rm -f conftest.$ac_objext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158 (eval $ac_compile) 2>conftest.er1
7159 ac_status=$?
7160 grep -v '^ *+' conftest.er1 >conftest.err
7161 rm -f conftest.er1
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try='test -z "$ac_c_werror_flag"
7166 || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest.$ac_objext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_hi=$ac_mid; break
7179 else
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7182
7183 ac_lo=`expr $ac_mid + 1`
7184 if test $ac_lo -le $ac_mid; then
7185 ac_lo= ac_hi=
7186 break
7187 fi
7188 ac_mid=`expr 2 '*' $ac_mid + 1`
7189 fi
7190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7191 done
7192 else
7193 echo "$as_me: failed program was:" >&5
7194 sed 's/^/| /' conftest.$ac_ext >&5
7195
7196 cat >conftest.$ac_ext <<_ACEOF
7197 /* confdefs.h. */
7198 _ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7202 $ac_includes_default
7203 int
7204 main ()
7205 {
7206 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7207 test_array [0] = 0
7208
7209 ;
7210 return 0;
7211 }
7212 _ACEOF
7213 rm -f conftest.$ac_objext
7214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215 (eval $ac_compile) 2>conftest.er1
7216 ac_status=$?
7217 grep -v '^ *+' conftest.er1 >conftest.err
7218 rm -f conftest.er1
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try='test -z "$ac_c_werror_flag"
7223 || test ! -s conftest.err'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; } &&
7229 { ac_try='test -s conftest.$ac_objext'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 (eval $ac_try) 2>&5
7232 ac_status=$?
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
7235 ac_hi=-1 ac_mid=-1
7236 while :; do
7237 cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h. */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 $ac_includes_default
7244 int
7245 main ()
7246 {
7247 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7248 test_array [0] = 0
7249
7250 ;
7251 return 0;
7252 }
7253 _ACEOF
7254 rm -f conftest.$ac_objext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256 (eval $ac_compile) 2>conftest.er1
7257 ac_status=$?
7258 grep -v '^ *+' conftest.er1 >conftest.err
7259 rm -f conftest.er1
7260 cat conftest.err >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } &&
7263 { ac_try='test -z "$ac_c_werror_flag"
7264 || test ! -s conftest.err'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266 (eval $ac_try) 2>&5
7267 ac_status=$?
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; } &&
7270 { ac_try='test -s conftest.$ac_objext'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 (eval $ac_try) 2>&5
7273 ac_status=$?
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; }; then
7276 ac_lo=$ac_mid; break
7277 else
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7280
7281 ac_hi=`expr '(' $ac_mid ')' - 1`
7282 if test $ac_mid -le $ac_hi; then
7283 ac_lo= ac_hi=
7284 break
7285 fi
7286 ac_mid=`expr 2 '*' $ac_mid`
7287 fi
7288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7289 done
7290 else
7291 echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7293
7294 ac_lo= ac_hi=
7295 fi
7296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7297 fi
7298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299 # Binary search between lo and hi bounds.
7300 while test "x$ac_lo" != "x$ac_hi"; do
7301 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7302 cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h. */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 $ac_includes_default
7309 int
7310 main ()
7311 {
7312 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7313 test_array [0] = 0
7314
7315 ;
7316 return 0;
7317 }
7318 _ACEOF
7319 rm -f conftest.$ac_objext
7320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321 (eval $ac_compile) 2>conftest.er1
7322 ac_status=$?
7323 grep -v '^ *+' conftest.er1 >conftest.err
7324 rm -f conftest.er1
7325 cat conftest.err >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try='test -z "$ac_c_werror_flag"
7329 || test ! -s conftest.err'
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); }; } &&
7335 { ac_try='test -s conftest.$ac_objext'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337 (eval $ac_try) 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; }; then
7341 ac_hi=$ac_mid
7342 else
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.$ac_ext >&5
7345
7346 ac_lo=`expr '(' $ac_mid ')' + 1`
7347 fi
7348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7349 done
7350 case $ac_lo in
7351 ?*) ac_cv_sizeof_long=$ac_lo;;
7352 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7353 See \`config.log' for more details." >&5
7354 echo "$as_me: error: cannot compute sizeof (long), 77
7355 See \`config.log' for more details." >&2;}
7356 { (exit 1); exit 1; }; } ;;
7357 esac
7358 else
7359 if test "$cross_compiling" = yes; then
7360 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7361 See \`config.log' for more details." >&5
7362 echo "$as_me: error: cannot run test program while cross compiling
7363 See \`config.log' for more details." >&2;}
7364 { (exit 1); exit 1; }; }
7365 else
7366 cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 $ac_includes_default
7373 long longval () { return (long) (sizeof (long)); }
7374 unsigned long ulongval () { return (long) (sizeof (long)); }
7375 #include <stdio.h>
7376 #include <stdlib.h>
7377 int
7378 main ()
7379 {
7380
7381 FILE *f = fopen ("conftest.val", "w");
7382 if (! f)
7383 exit (1);
7384 if (((long) (sizeof (long))) < 0)
7385 {
7386 long i = longval ();
7387 if (i != ((long) (sizeof (long))))
7388 exit (1);
7389 fprintf (f, "%ld\n", i);
7390 }
7391 else
7392 {
7393 unsigned long i = ulongval ();
7394 if (i != ((long) (sizeof (long))))
7395 exit (1);
7396 fprintf (f, "%lu\n", i);
7397 }
7398 exit (ferror (f) || fclose (f) != 0);
7399
7400 ;
7401 return 0;
7402 }
7403 _ACEOF
7404 rm -f conftest$ac_exeext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7406 (eval $ac_link) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 (eval $ac_try) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7415 ac_cv_sizeof_long=`cat conftest.val`
7416 else
7417 echo "$as_me: program exited with status $ac_status" >&5
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7420
7421 ( exit $ac_status )
7422 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7423 See \`config.log' for more details." >&5
7424 echo "$as_me: error: cannot compute sizeof (long), 77
7425 See \`config.log' for more details." >&2;}
7426 { (exit 1); exit 1; }; }
7427 fi
7428 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7429 fi
7430 fi
7431 rm -f conftest.val
7432 else
7433 ac_cv_sizeof_long=0
7434 fi
7435 fi
7436 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7437 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7438 cat >>confdefs.h <<_ACEOF
7439 #define SIZEOF_LONG $ac_cv_sizeof_long
7440 _ACEOF
7441
7442
7443 if test "x${ac_cv_sizeof_long}" = "x8"; then
7444 want64=true
7445 fi
7446 fi
7447 if test x${want64} = xtrue; then
7448 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7449 else
7450 TARGET_OBS='$(ALL_TARGET_OBS)'
7451 fi
7452 fi
7453
7454
7455
7456 # For other settings, only the main target counts.
7457 gdb_sim=
7458 gdb_osabi=
7459 build_gdbserver=
7460 targ=$target; . ${srcdir}/configure.tgt
7461
7462 # Fetch the default architecture and default target vector from BFD.
7463 targ=$target; . $srcdir/../bfd/config.bfd
7464
7465 # We only want the first architecture, so strip off the others if
7466 # there is more than one.
7467 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7468
7469 if test "x$targ_archs" != x; then
7470
7471 cat >>confdefs.h <<_ACEOF
7472 #define DEFAULT_BFD_ARCH $targ_archs
7473 _ACEOF
7474
7475 fi
7476 if test "x$targ_defvec" != x; then
7477
7478 cat >>confdefs.h <<_ACEOF
7479 #define DEFAULT_BFD_VEC $targ_defvec
7480 _ACEOF
7481
7482 fi
7483
7484 # The CLI cannot be disabled yet, but may be in the future.
7485
7486 # Enable CLI.
7487 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7488 if test "${enable_gdbcli+set}" = set; then
7489 enableval="$enable_gdbcli"
7490 case $enableval in
7491 yes)
7492 ;;
7493 no)
7494 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7495 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7496 { (exit 1); exit 1; }; } ;;
7497 *)
7498 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7499 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7500 { (exit 1); exit 1; }; } ;;
7501 esac
7502 else
7503 enable_gdbcli=yes
7504 fi;
7505 if test x"$enable_gdbcli" = xyes; then
7506 if test -d $srcdir/cli; then
7507 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7508 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7509 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7510 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7511 fi
7512 fi
7513
7514 # Enable MI.
7515 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7516 if test "${enable_gdbmi+set}" = set; then
7517 enableval="$enable_gdbmi"
7518 case $enableval in
7519 yes | no)
7520 ;;
7521 *)
7522 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7523 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7524 { (exit 1); exit 1; }; } ;;
7525 esac
7526 else
7527 enable_gdbmi=yes
7528 fi;
7529 if test x"$enable_gdbmi" = xyes; then
7530 if test -d $srcdir/mi; then
7531 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7532 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7533 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7534 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7535 fi
7536 fi
7537
7538 # Enable TUI.
7539 # Check whether --enable-tui or --disable-tui was given.
7540 if test "${enable_tui+set}" = set; then
7541 enableval="$enable_tui"
7542 case $enableval in
7543 yes | no)
7544 ;;
7545 *)
7546 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7547 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7548 { (exit 1); exit 1; }; } ;;
7549 esac
7550 else
7551 enable_tui=yes
7552 fi;
7553
7554 # Enable gdbtk.
7555 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7556 if test "${enable_gdbtk+set}" = set; then
7557 enableval="$enable_gdbtk"
7558 case $enableval in
7559 yes | no)
7560 ;;
7561 *)
7562 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7563 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7564 { (exit 1); exit 1; }; } ;;
7565 esac
7566 else
7567 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
7568 enable_gdbtk=yes
7569 else
7570 enable_gdbtk=no
7571 fi
7572 fi;
7573 # We unconditionally disable gdbtk tests on selected platforms.
7574 case $host_os in
7575 go32* | windows*)
7576 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7577 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7578 enable_gdbtk=no ;;
7579 esac
7580
7581 # Libunwind support.
7582
7583 # Check whether --with-libunwind or --without-libunwind was given.
7584 if test "${with_libunwind+set}" = set; then
7585 withval="$with_libunwind"
7586 case "${withval}" in
7587 yes) enable_libunwind=yes ;;
7588 no) enable_libunwind=no ;;
7589 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7590 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7591 { (exit 1); exit 1; }; } ;;
7592 esac
7593 else
7594
7595
7596 for ac_header in libunwind.h
7597 do
7598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7600 echo "$as_me:$LINENO: checking for $ac_header" >&5
7601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7602 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604 fi
7605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7607 else
7608 # Is the header compilable?
7609 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7610 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 $ac_includes_default
7618 #include <$ac_header>
7619 _ACEOF
7620 rm -f conftest.$ac_objext
7621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7622 (eval $ac_compile) 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } &&
7629 { ac_try='test -z "$ac_c_werror_flag"
7630 || test ! -s conftest.err'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 (eval $ac_try) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; } &&
7636 { ac_try='test -s conftest.$ac_objext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 (eval $ac_try) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_header_compiler=yes
7643 else
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7646
7647 ac_header_compiler=no
7648 fi
7649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7650 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7651 echo "${ECHO_T}$ac_header_compiler" >&6
7652
7653 # Is the header present?
7654 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7656 cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h. */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7662 #include <$ac_header>
7663 _ACEOF
7664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7666 ac_status=$?
7667 grep -v '^ *+' conftest.er1 >conftest.err
7668 rm -f conftest.er1
7669 cat conftest.err >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } >/dev/null; then
7672 if test -s conftest.err; then
7673 ac_cpp_err=$ac_c_preproc_warn_flag
7674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7675 else
7676 ac_cpp_err=
7677 fi
7678 else
7679 ac_cpp_err=yes
7680 fi
7681 if test -z "$ac_cpp_err"; then
7682 ac_header_preproc=yes
7683 else
7684 echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7686
7687 ac_header_preproc=no
7688 fi
7689 rm -f conftest.err conftest.$ac_ext
7690 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7691 echo "${ECHO_T}$ac_header_preproc" >&6
7692
7693 # So? What about this header?
7694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7695 yes:no: )
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7697 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7699 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7700 ac_header_preproc=yes
7701 ;;
7702 no:yes:* )
7703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7704 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7706 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7708 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7710 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7712 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7714 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7715 (
7716 cat <<\_ASBOX
7717 ## ------------------------------------------ ##
7718 ## Report this to the AC_PACKAGE_NAME lists. ##
7719 ## ------------------------------------------ ##
7720 _ASBOX
7721 ) |
7722 sed "s/^/$as_me: WARNING: /" >&2
7723 ;;
7724 esac
7725 echo "$as_me:$LINENO: checking for $ac_header" >&5
7726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729 else
7730 eval "$as_ac_Header=\$ac_header_preproc"
7731 fi
7732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7734
7735 fi
7736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7737 cat >>confdefs.h <<_ACEOF
7738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7739 _ACEOF
7740
7741 fi
7742
7743 done
7744
7745
7746 for ac_header in libunwind-ia64.h
7747 do
7748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7750 echo "$as_me:$LINENO: checking for $ac_header" >&5
7751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 fi
7755 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7756 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7757 else
7758 # Is the header compilable?
7759 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7761 cat >conftest.$ac_ext <<_ACEOF
7762 /* confdefs.h. */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7767 $ac_includes_default
7768 #include <$ac_header>
7769 _ACEOF
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772 (eval $ac_compile) 2>conftest.er1
7773 ac_status=$?
7774 grep -v '^ *+' conftest.er1 >conftest.err
7775 rm -f conftest.er1
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
7779 { ac_try='test -z "$ac_c_werror_flag"
7780 || test ! -s conftest.err'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 (eval $ac_try) 2>&5
7783 ac_status=$?
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; } &&
7786 { ac_try='test -s conftest.$ac_objext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 (eval $ac_try) 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 ac_header_compiler=yes
7793 else
7794 echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797 ac_header_compiler=no
7798 fi
7799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7800 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7801 echo "${ECHO_T}$ac_header_compiler" >&6
7802
7803 # Is the header present?
7804 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7806 cat >conftest.$ac_ext <<_ACEOF
7807 /* confdefs.h. */
7808 _ACEOF
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 #include <$ac_header>
7813 _ACEOF
7814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7816 ac_status=$?
7817 grep -v '^ *+' conftest.er1 >conftest.err
7818 rm -f conftest.er1
7819 cat conftest.err >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } >/dev/null; then
7822 if test -s conftest.err; then
7823 ac_cpp_err=$ac_c_preproc_warn_flag
7824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7825 else
7826 ac_cpp_err=
7827 fi
7828 else
7829 ac_cpp_err=yes
7830 fi
7831 if test -z "$ac_cpp_err"; then
7832 ac_header_preproc=yes
7833 else
7834 echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837 ac_header_preproc=no
7838 fi
7839 rm -f conftest.err conftest.$ac_ext
7840 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7841 echo "${ECHO_T}$ac_header_preproc" >&6
7842
7843 # So? What about this header?
7844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7845 yes:no: )
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7850 ac_header_preproc=yes
7851 ;;
7852 no:yes:* )
7853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7865 (
7866 cat <<\_ASBOX
7867 ## ------------------------------------------ ##
7868 ## Report this to the AC_PACKAGE_NAME lists. ##
7869 ## ------------------------------------------ ##
7870 _ASBOX
7871 ) |
7872 sed "s/^/$as_me: WARNING: /" >&2
7873 ;;
7874 esac
7875 echo "$as_me:$LINENO: checking for $ac_header" >&5
7876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880 eval "$as_ac_Header=\$ac_header_preproc"
7881 fi
7882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7883 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7884
7885 fi
7886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7887 cat >>confdefs.h <<_ACEOF
7888 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7889 _ACEOF
7890
7891 fi
7892
7893 done
7894
7895 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7896 enable_libunwind=yes;
7897 fi
7898
7899 fi;
7900
7901 if test x"$enable_libunwind" = xyes; then
7902
7903 for ac_header in libunwind.h
7904 do
7905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7907 echo "$as_me:$LINENO: checking for $ac_header" >&5
7908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 fi
7912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7914 else
7915 # Is the header compilable?
7916 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7917 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7918 cat >conftest.$ac_ext <<_ACEOF
7919 /* confdefs.h. */
7920 _ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7924 $ac_includes_default
7925 #include <$ac_header>
7926 _ACEOF
7927 rm -f conftest.$ac_objext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>conftest.er1
7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -z "$ac_c_werror_flag"
7937 || test ! -s conftest.err'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939 (eval $ac_try) 2>&5
7940 ac_status=$?
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try='test -s conftest.$ac_objext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 ac_header_compiler=yes
7950 else
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7953
7954 ac_header_compiler=no
7955 fi
7956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7957 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7958 echo "${ECHO_T}$ac_header_compiler" >&6
7959
7960 # Is the header present?
7961 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7963 cat >conftest.$ac_ext <<_ACEOF
7964 /* confdefs.h. */
7965 _ACEOF
7966 cat confdefs.h >>conftest.$ac_ext
7967 cat >>conftest.$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7969 #include <$ac_header>
7970 _ACEOF
7971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7973 ac_status=$?
7974 grep -v '^ *+' conftest.er1 >conftest.err
7975 rm -f conftest.er1
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } >/dev/null; then
7979 if test -s conftest.err; then
7980 ac_cpp_err=$ac_c_preproc_warn_flag
7981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7982 else
7983 ac_cpp_err=
7984 fi
7985 else
7986 ac_cpp_err=yes
7987 fi
7988 if test -z "$ac_cpp_err"; then
7989 ac_header_preproc=yes
7990 else
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7993
7994 ac_header_preproc=no
7995 fi
7996 rm -f conftest.err conftest.$ac_ext
7997 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7998 echo "${ECHO_T}$ac_header_preproc" >&6
7999
8000 # So? What about this header?
8001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8002 yes:no: )
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8007 ac_header_preproc=yes
8008 ;;
8009 no:yes:* )
8010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8022 (
8023 cat <<\_ASBOX
8024 ## ------------------------------------------ ##
8025 ## Report this to the AC_PACKAGE_NAME lists. ##
8026 ## ------------------------------------------ ##
8027 _ASBOX
8028 ) |
8029 sed "s/^/$as_me: WARNING: /" >&2
8030 ;;
8031 esac
8032 echo "$as_me:$LINENO: checking for $ac_header" >&5
8033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8034 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8036 else
8037 eval "$as_ac_Header=\$ac_header_preproc"
8038 fi
8039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8040 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8041
8042 fi
8043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8044 cat >>confdefs.h <<_ACEOF
8045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8046 _ACEOF
8047
8048 fi
8049
8050 done
8051
8052
8053 for ac_header in libunwind-ia64.h
8054 do
8055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8057 echo "$as_me:$LINENO: checking for $ac_header" >&5
8058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 fi
8062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8064 else
8065 # Is the header compilable?
8066 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8068 cat >conftest.$ac_ext <<_ACEOF
8069 /* confdefs.h. */
8070 _ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8074 $ac_includes_default
8075 #include <$ac_header>
8076 _ACEOF
8077 rm -f conftest.$ac_objext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079 (eval $ac_compile) 2>conftest.er1
8080 ac_status=$?
8081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
8086 { ac_try='test -z "$ac_c_werror_flag"
8087 || test ! -s conftest.err'
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 (eval $ac_try) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest.$ac_objext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 (eval $ac_try) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8099 ac_header_compiler=yes
8100 else
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104 ac_header_compiler=no
8105 fi
8106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8107 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8108 echo "${ECHO_T}$ac_header_compiler" >&6
8109
8110 # Is the header present?
8111 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8113 cat >conftest.$ac_ext <<_ACEOF
8114 /* confdefs.h. */
8115 _ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8119 #include <$ac_header>
8120 _ACEOF
8121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } >/dev/null; then
8129 if test -s conftest.err; then
8130 ac_cpp_err=$ac_c_preproc_warn_flag
8131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8132 else
8133 ac_cpp_err=
8134 fi
8135 else
8136 ac_cpp_err=yes
8137 fi
8138 if test -z "$ac_cpp_err"; then
8139 ac_header_preproc=yes
8140 else
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8143
8144 ac_header_preproc=no
8145 fi
8146 rm -f conftest.err conftest.$ac_ext
8147 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8148 echo "${ECHO_T}$ac_header_preproc" >&6
8149
8150 # So? What about this header?
8151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8152 yes:no: )
8153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8157 ac_header_preproc=yes
8158 ;;
8159 no:yes:* )
8160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8163 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8167 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8172 (
8173 cat <<\_ASBOX
8174 ## ------------------------------------------ ##
8175 ## Report this to the AC_PACKAGE_NAME lists. ##
8176 ## ------------------------------------------ ##
8177 _ASBOX
8178 ) |
8179 sed "s/^/$as_me: WARNING: /" >&2
8180 ;;
8181 esac
8182 echo "$as_me:$LINENO: checking for $ac_header" >&5
8183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 else
8187 eval "$as_ac_Header=\$ac_header_preproc"
8188 fi
8189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8191
8192 fi
8193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8194 cat >>confdefs.h <<_ACEOF
8195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8196 _ACEOF
8197
8198 fi
8199
8200 done
8201
8202
8203 cat >>confdefs.h <<\_ACEOF
8204 #define HAVE_LIBUNWIND 1
8205 _ACEOF
8206
8207 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8208 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8209 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8210 fi
8211
8212 # Profiling support.
8213 # Check whether --enable-profiling or --disable-profiling was given.
8214 if test "${enable_profiling+set}" = set; then
8215 enableval="$enable_profiling"
8216 case $enableval in
8217 yes | no)
8218 ;;
8219 *)
8220 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8221 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8222 { (exit 1); exit 1; }; } ;;
8223 esac
8224 else
8225 enable_profiling=no
8226 fi;
8227
8228
8229
8230 for ac_func in monstartup _mcleanup
8231 do
8232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8233 echo "$as_me:$LINENO: checking for $ac_func" >&5
8234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8235 if eval "test \"\${$as_ac_var+set}\" = set"; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238 cat >conftest.$ac_ext <<_ACEOF
8239 /* confdefs.h. */
8240 _ACEOF
8241 cat confdefs.h >>conftest.$ac_ext
8242 cat >>conftest.$ac_ext <<_ACEOF
8243 /* end confdefs.h. */
8244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8246 #define $ac_func innocuous_$ac_func
8247
8248 /* System header to define __stub macros and hopefully few prototypes,
8249 which can conflict with char $ac_func (); below.
8250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8251 <limits.h> exists even on freestanding compilers. */
8252
8253 #ifdef __STDC__
8254 # include <limits.h>
8255 #else
8256 # include <assert.h>
8257 #endif
8258
8259 #undef $ac_func
8260
8261 /* Override any gcc2 internal prototype to avoid an error. */
8262 #ifdef __cplusplus
8263 extern "C"
8264 {
8265 #endif
8266 /* We use char because int might match the return type of a gcc2
8267 builtin and then its argument prototype would still apply. */
8268 char $ac_func ();
8269 /* The GNU C library defines this for functions which it implements
8270 to always fail with ENOSYS. Some functions are actually named
8271 something starting with __ and the normal name is an alias. */
8272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8273 choke me
8274 #else
8275 char (*f) () = $ac_func;
8276 #endif
8277 #ifdef __cplusplus
8278 }
8279 #endif
8280
8281 int
8282 main ()
8283 {
8284 return f != $ac_func;
8285 ;
8286 return 0;
8287 }
8288 _ACEOF
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291 (eval $ac_link) 2>conftest.er1
8292 ac_status=$?
8293 grep -v '^ *+' conftest.er1 >conftest.err
8294 rm -f conftest.er1
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -z "$ac_c_werror_flag"
8299 || test ! -s conftest.err'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 (eval $ac_try) 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; } &&
8305 { ac_try='test -s conftest$ac_exeext'
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 (eval $ac_try) 2>&5
8308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; }; then
8311 eval "$as_ac_var=yes"
8312 else
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8315
8316 eval "$as_ac_var=no"
8317 fi
8318 rm -f conftest.err conftest.$ac_objext \
8319 conftest$ac_exeext conftest.$ac_ext
8320 fi
8321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8323 if test `eval echo '${'$as_ac_var'}'` = yes; then
8324 cat >>confdefs.h <<_ACEOF
8325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8326 _ACEOF
8327
8328 fi
8329 done
8330
8331 echo "$as_me:$LINENO: checking for _etext" >&5
8332 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8333 if test "${ac_cv_var__etext+set}" = set; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 else
8336 cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h. */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8342 #include <stdlib.h>
8343 extern char _etext;
8344
8345 int
8346 main ()
8347 {
8348 free (&_etext);
8349 ;
8350 return 0;
8351 }
8352 _ACEOF
8353 rm -f conftest.$ac_objext conftest$ac_exeext
8354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355 (eval $ac_link) 2>conftest.er1
8356 ac_status=$?
8357 grep -v '^ *+' conftest.er1 >conftest.err
8358 rm -f conftest.er1
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
8362 { ac_try='test -z "$ac_c_werror_flag"
8363 || test ! -s conftest.err'
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365 (eval $ac_try) 2>&5
8366 ac_status=$?
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; } &&
8369 { ac_try='test -s conftest$ac_exeext'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 (eval $ac_try) 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; }; then
8375 ac_cv_var__etext=yes
8376 else
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8379
8380 ac_cv_var__etext=no
8381 fi
8382 rm -f conftest.err conftest.$ac_objext \
8383 conftest$ac_exeext conftest.$ac_ext
8384 fi
8385 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8386 echo "${ECHO_T}$ac_cv_var__etext" >&6
8387 if test $ac_cv_var__etext = yes; then
8388
8389 cat >>confdefs.h <<\_ACEOF
8390 #define HAVE__ETEXT 1
8391 _ACEOF
8392
8393 fi
8394 echo "$as_me:$LINENO: checking for etext" >&5
8395 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8396 if test "${ac_cv_var_etext+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399 cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h. */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 #include <stdlib.h>
8406 extern char etext;
8407
8408 int
8409 main ()
8410 {
8411 free (&etext);
8412 ;
8413 return 0;
8414 }
8415 _ACEOF
8416 rm -f conftest.$ac_objext conftest$ac_exeext
8417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418 (eval $ac_link) 2>conftest.er1
8419 ac_status=$?
8420 grep -v '^ *+' conftest.er1 >conftest.err
8421 rm -f conftest.er1
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } &&
8425 { ac_try='test -z "$ac_c_werror_flag"
8426 || test ! -s conftest.err'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 (eval $ac_try) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; } &&
8432 { ac_try='test -s conftest$ac_exeext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 ac_cv_var_etext=yes
8439 else
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8442
8443 ac_cv_var_etext=no
8444 fi
8445 rm -f conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8447 fi
8448 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8449 echo "${ECHO_T}$ac_cv_var_etext" >&6
8450 if test $ac_cv_var_etext = yes; then
8451
8452 cat >>confdefs.h <<\_ACEOF
8453 #define HAVE_ETEXT 1
8454 _ACEOF
8455
8456 fi
8457 if test "$enable_profiling" = yes ; then
8458 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8459 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8460 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8461 { (exit 1); exit 1; }; }
8462 fi
8463 PROFILE_CFLAGS=-pg
8464 OLD_CFLAGS="$CFLAGS"
8465 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8466
8467 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8468 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8469 if test "${ac_cv_cc_supports_pg+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 else
8472 cat >conftest.$ac_ext <<_ACEOF
8473 /* confdefs.h. */
8474 _ACEOF
8475 cat confdefs.h >>conftest.$ac_ext
8476 cat >>conftest.$ac_ext <<_ACEOF
8477 /* end confdefs.h. */
8478
8479 int
8480 main ()
8481 {
8482 int x;
8483 ;
8484 return 0;
8485 }
8486 _ACEOF
8487 rm -f conftest.$ac_objext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8489 (eval $ac_compile) 2>conftest.er1
8490 ac_status=$?
8491 grep -v '^ *+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
8496 { ac_try='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest.$ac_objext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_cc_supports_pg=yes
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514 ac_cv_cc_supports_pg=no
8515 fi
8516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8517 fi
8518 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8519 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8520
8521 if test $ac_cv_cc_supports_pg = no; then
8522 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8523 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8524 { (exit 1); exit 1; }; }
8525 fi
8526
8527 CFLAGS="$OLD_CFLAGS"
8528 fi
8529
8530
8531
8532 # Check whether --with-pkgversion or --without-pkgversion was given.
8533 if test "${with_pkgversion+set}" = set; then
8534 withval="$with_pkgversion"
8535 case "$withval" in
8536 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8537 echo "$as_me: error: package version not specified" >&2;}
8538 { (exit 1); exit 1; }; } ;;
8539 no) PKGVERSION= ;;
8540 *) PKGVERSION="($withval) " ;;
8541 esac
8542 else
8543 PKGVERSION="(GDB) "
8544
8545 fi;
8546
8547
8548
8549
8550 # Check whether --with-bugurl or --without-bugurl was given.
8551 if test "${with_bugurl+set}" = set; then
8552 withval="$with_bugurl"
8553 case "$withval" in
8554 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8555 echo "$as_me: error: bug URL not specified" >&2;}
8556 { (exit 1); exit 1; }; } ;;
8557 no) BUGURL=
8558 ;;
8559 *) BUGURL="$withval"
8560 ;;
8561 esac
8562 else
8563 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8564
8565 fi;
8566 case ${BUGURL} in
8567 "")
8568 REPORT_BUGS_TO=
8569 REPORT_BUGS_TEXI=
8570 ;;
8571 *)
8572 REPORT_BUGS_TO="<$BUGURL>"
8573 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8574 ;;
8575 esac;
8576
8577
8578
8579
8580 cat >>confdefs.h <<_ACEOF
8581 #define PKGVERSION "$PKGVERSION"
8582 _ACEOF
8583
8584
8585 cat >>confdefs.h <<_ACEOF
8586 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8587 _ACEOF
8588
8589
8590 # --------------------- #
8591 # Checks for programs. #
8592 # --------------------- #
8593
8594 for ac_prog in gawk mawk nawk awk
8595 do
8596 # Extract the first word of "$ac_prog", so it can be a program name with args.
8597 set dummy $ac_prog; ac_word=$2
8598 echo "$as_me:$LINENO: checking for $ac_word" >&5
8599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8600 if test "${ac_cv_prog_AWK+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 else
8603 if test -n "$AWK"; then
8604 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8605 else
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8608 do
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8613 ac_cv_prog_AWK="$ac_prog"
8614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 break 2
8616 fi
8617 done
8618 done
8619
8620 fi
8621 fi
8622 AWK=$ac_cv_prog_AWK
8623 if test -n "$AWK"; then
8624 echo "$as_me:$LINENO: result: $AWK" >&5
8625 echo "${ECHO_T}$AWK" >&6
8626 else
8627 echo "$as_me:$LINENO: result: no" >&5
8628 echo "${ECHO_T}no" >&6
8629 fi
8630
8631 test -n "$AWK" && break
8632 done
8633
8634 # Find a good install program. We prefer a C program (faster),
8635 # so one script is as good as another. But avoid the broken or
8636 # incompatible versions:
8637 # SysV /etc/install, /usr/sbin/install
8638 # SunOS /usr/etc/install
8639 # IRIX /sbin/install
8640 # AIX /bin/install
8641 # AmigaOS /C/install, which installs bootblocks on floppy discs
8642 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8643 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8644 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8645 # OS/2's system install, which has a completely different semantic
8646 # ./install, which can be erroneously created by make from ./install.sh.
8647 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8648 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8649 if test -z "$INSTALL"; then
8650 if test "${ac_cv_path_install+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
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 # Account for people who put trailing slashes in PATH elements.
8659 case $as_dir/ in
8660 ./ | .// | /cC/* | \
8661 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8662 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8663 /usr/ucb/* ) ;;
8664 *)
8665 # OSF1 and SCO ODT 3.0 have their own names for install.
8666 # Don't use installbsd from OSF since it installs stuff as root
8667 # by default.
8668 for ac_prog in ginstall scoinst install; do
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8671 if test $ac_prog = install &&
8672 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8673 # AIX install. It has an incompatible calling convention.
8674 :
8675 elif test $ac_prog = install &&
8676 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8677 # program-specific install script used by HP pwplus--don't use.
8678 :
8679 else
8680 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8681 break 3
8682 fi
8683 fi
8684 done
8685 done
8686 ;;
8687 esac
8688 done
8689
8690
8691 fi
8692 if test "${ac_cv_path_install+set}" = set; then
8693 INSTALL=$ac_cv_path_install
8694 else
8695 # As a last resort, use the slow shell script. We don't cache a
8696 # path for INSTALL within a source directory, because that will
8697 # break other packages using the cache if that directory is
8698 # removed, or if the path is relative.
8699 INSTALL=$ac_install_sh
8700 fi
8701 fi
8702 echo "$as_me:$LINENO: result: $INSTALL" >&5
8703 echo "${ECHO_T}$INSTALL" >&6
8704
8705 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8706 # It thinks the first close brace ends the variable substitution.
8707 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8708
8709 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8710
8711 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8712
8713 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8714 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8715 LN_S=$as_ln_s
8716 if test "$LN_S" = "ln -s"; then
8717 echo "$as_me:$LINENO: result: yes" >&5
8718 echo "${ECHO_T}yes" >&6
8719 else
8720 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8721 echo "${ECHO_T}no, using $LN_S" >&6
8722 fi
8723
8724 if test -n "$ac_tool_prefix"; then
8725 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8726 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8727 echo "$as_me:$LINENO: checking for $ac_word" >&5
8728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8729 if test "${ac_cv_prog_RANLIB+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 else
8732 if test -n "$RANLIB"; then
8733 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8734 else
8735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736 for as_dir in $PATH
8737 do
8738 IFS=$as_save_IFS
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
8741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8742 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8744 break 2
8745 fi
8746 done
8747 done
8748
8749 fi
8750 fi
8751 RANLIB=$ac_cv_prog_RANLIB
8752 if test -n "$RANLIB"; then
8753 echo "$as_me:$LINENO: result: $RANLIB" >&5
8754 echo "${ECHO_T}$RANLIB" >&6
8755 else
8756 echo "$as_me:$LINENO: result: no" >&5
8757 echo "${ECHO_T}no" >&6
8758 fi
8759
8760 fi
8761 if test -z "$ac_cv_prog_RANLIB"; then
8762 ac_ct_RANLIB=$RANLIB
8763 # Extract the first word of "ranlib", so it can be a program name with args.
8764 set dummy ranlib; ac_word=$2
8765 echo "$as_me:$LINENO: checking for $ac_word" >&5
8766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8767 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 else
8770 if test -n "$ac_ct_RANLIB"; then
8771 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8772 else
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in $PATH
8775 do
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8780 ac_cv_prog_ac_ct_RANLIB="ranlib"
8781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8782 break 2
8783 fi
8784 done
8785 done
8786
8787 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8788 fi
8789 fi
8790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8791 if test -n "$ac_ct_RANLIB"; then
8792 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8793 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8794 else
8795 echo "$as_me:$LINENO: result: no" >&5
8796 echo "${ECHO_T}no" >&6
8797 fi
8798
8799 RANLIB=$ac_ct_RANLIB
8800 else
8801 RANLIB="$ac_cv_prog_RANLIB"
8802 fi
8803
8804 for ac_prog in 'bison -y' byacc
8805 do
8806 # Extract the first word of "$ac_prog", so it can be a program name with args.
8807 set dummy $ac_prog; ac_word=$2
8808 echo "$as_me:$LINENO: checking for $ac_word" >&5
8809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8810 if test "${ac_cv_prog_YACC+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813 if test -n "$YACC"; then
8814 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8815 else
8816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817 for as_dir in $PATH
8818 do
8819 IFS=$as_save_IFS
8820 test -z "$as_dir" && as_dir=.
8821 for ac_exec_ext in '' $ac_executable_extensions; do
8822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8823 ac_cv_prog_YACC="$ac_prog"
8824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8825 break 2
8826 fi
8827 done
8828 done
8829
8830 fi
8831 fi
8832 YACC=$ac_cv_prog_YACC
8833 if test -n "$YACC"; then
8834 echo "$as_me:$LINENO: result: $YACC" >&5
8835 echo "${ECHO_T}$YACC" >&6
8836 else
8837 echo "$as_me:$LINENO: result: no" >&5
8838 echo "${ECHO_T}no" >&6
8839 fi
8840
8841 test -n "$YACC" && break
8842 done
8843 test -n "$YACC" || YACC="yacc"
8844
8845
8846 if test -n "$ac_tool_prefix"; then
8847 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8848 set dummy ${ac_tool_prefix}ar; ac_word=$2
8849 echo "$as_me:$LINENO: checking for $ac_word" >&5
8850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8851 if test "${ac_cv_prog_AR+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854 if test -n "$AR"; then
8855 ac_cv_prog_AR="$AR" # Let the user override the test.
8856 else
8857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8858 for as_dir in $PATH
8859 do
8860 IFS=$as_save_IFS
8861 test -z "$as_dir" && as_dir=.
8862 for ac_exec_ext in '' $ac_executable_extensions; do
8863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8864 ac_cv_prog_AR="${ac_tool_prefix}ar"
8865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8866 break 2
8867 fi
8868 done
8869 done
8870
8871 fi
8872 fi
8873 AR=$ac_cv_prog_AR
8874 if test -n "$AR"; then
8875 echo "$as_me:$LINENO: result: $AR" >&5
8876 echo "${ECHO_T}$AR" >&6
8877 else
8878 echo "$as_me:$LINENO: result: no" >&5
8879 echo "${ECHO_T}no" >&6
8880 fi
8881
8882 fi
8883 if test -z "$ac_cv_prog_AR"; then
8884 ac_ct_AR=$AR
8885 # Extract the first word of "ar", so it can be a program name with args.
8886 set dummy ar; ac_word=$2
8887 echo "$as_me:$LINENO: checking for $ac_word" >&5
8888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8889 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892 if test -n "$ac_ct_AR"; then
8893 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8894 else
8895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896 for as_dir in $PATH
8897 do
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8902 ac_cv_prog_ac_ct_AR="ar"
8903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 break 2
8905 fi
8906 done
8907 done
8908
8909 fi
8910 fi
8911 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8912 if test -n "$ac_ct_AR"; then
8913 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8914 echo "${ECHO_T}$ac_ct_AR" >&6
8915 else
8916 echo "$as_me:$LINENO: result: no" >&5
8917 echo "${ECHO_T}no" >&6
8918 fi
8919
8920 AR=$ac_ct_AR
8921 else
8922 AR="$ac_cv_prog_AR"
8923 fi
8924
8925 if test -n "$ac_tool_prefix"; then
8926 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8927 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8928 echo "$as_me:$LINENO: checking for $ac_word" >&5
8929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8930 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 else
8933 if test -n "$DLLTOOL"; then
8934 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8935 else
8936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937 for as_dir in $PATH
8938 do
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8943 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 break 2
8946 fi
8947 done
8948 done
8949
8950 fi
8951 fi
8952 DLLTOOL=$ac_cv_prog_DLLTOOL
8953 if test -n "$DLLTOOL"; then
8954 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8955 echo "${ECHO_T}$DLLTOOL" >&6
8956 else
8957 echo "$as_me:$LINENO: result: no" >&5
8958 echo "${ECHO_T}no" >&6
8959 fi
8960
8961 fi
8962 if test -z "$ac_cv_prog_DLLTOOL"; then
8963 ac_ct_DLLTOOL=$DLLTOOL
8964 # Extract the first word of "dlltool", so it can be a program name with args.
8965 set dummy dlltool; ac_word=$2
8966 echo "$as_me:$LINENO: checking for $ac_word" >&5
8967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8968 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8970 else
8971 if test -n "$ac_ct_DLLTOOL"; then
8972 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8973 else
8974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975 for as_dir in $PATH
8976 do
8977 IFS=$as_save_IFS
8978 test -z "$as_dir" && as_dir=.
8979 for ac_exec_ext in '' $ac_executable_extensions; do
8980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8981 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 break 2
8984 fi
8985 done
8986 done
8987
8988 fi
8989 fi
8990 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8991 if test -n "$ac_ct_DLLTOOL"; then
8992 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8993 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8994 else
8995 echo "$as_me:$LINENO: result: no" >&5
8996 echo "${ECHO_T}no" >&6
8997 fi
8998
8999 DLLTOOL=$ac_ct_DLLTOOL
9000 else
9001 DLLTOOL="$ac_cv_prog_DLLTOOL"
9002 fi
9003
9004 if test -n "$ac_tool_prefix"; then
9005 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9006 set dummy ${ac_tool_prefix}windres; ac_word=$2
9007 echo "$as_me:$LINENO: checking for $ac_word" >&5
9008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9009 if test "${ac_cv_prog_WINDRES+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011 else
9012 if test -n "$WINDRES"; then
9013 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9014 else
9015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016 for as_dir in $PATH
9017 do
9018 IFS=$as_save_IFS
9019 test -z "$as_dir" && as_dir=.
9020 for ac_exec_ext in '' $ac_executable_extensions; do
9021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9022 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9024 break 2
9025 fi
9026 done
9027 done
9028
9029 fi
9030 fi
9031 WINDRES=$ac_cv_prog_WINDRES
9032 if test -n "$WINDRES"; then
9033 echo "$as_me:$LINENO: result: $WINDRES" >&5
9034 echo "${ECHO_T}$WINDRES" >&6
9035 else
9036 echo "$as_me:$LINENO: result: no" >&5
9037 echo "${ECHO_T}no" >&6
9038 fi
9039
9040 fi
9041 if test -z "$ac_cv_prog_WINDRES"; then
9042 ac_ct_WINDRES=$WINDRES
9043 # Extract the first word of "windres", so it can be a program name with args.
9044 set dummy windres; ac_word=$2
9045 echo "$as_me:$LINENO: checking for $ac_word" >&5
9046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9047 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050 if test -n "$ac_ct_WINDRES"; then
9051 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9052 else
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9055 do
9056 IFS=$as_save_IFS
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9060 ac_cv_prog_ac_ct_WINDRES="windres"
9061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 break 2
9063 fi
9064 done
9065 done
9066
9067 fi
9068 fi
9069 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9070 if test -n "$ac_ct_WINDRES"; then
9071 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9072 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9073 else
9074 echo "$as_me:$LINENO: result: no" >&5
9075 echo "${ECHO_T}no" >&6
9076 fi
9077
9078 WINDRES=$ac_ct_WINDRES
9079 else
9080 WINDRES="$ac_cv_prog_WINDRES"
9081 fi
9082
9083
9084 # Needed for GNU/Hurd.
9085 if test -n "$ac_tool_prefix"; then
9086 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9087 set dummy ${ac_tool_prefix}mig; ac_word=$2
9088 echo "$as_me:$LINENO: checking for $ac_word" >&5
9089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9090 if test "${ac_cv_prog_MIG+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 else
9093 if test -n "$MIG"; then
9094 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9095 else
9096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097 for as_dir in $PATH
9098 do
9099 IFS=$as_save_IFS
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
9102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9103 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 break 2
9106 fi
9107 done
9108 done
9109
9110 fi
9111 fi
9112 MIG=$ac_cv_prog_MIG
9113 if test -n "$MIG"; then
9114 echo "$as_me:$LINENO: result: $MIG" >&5
9115 echo "${ECHO_T}$MIG" >&6
9116 else
9117 echo "$as_me:$LINENO: result: no" >&5
9118 echo "${ECHO_T}no" >&6
9119 fi
9120
9121 fi
9122 if test -z "$ac_cv_prog_MIG"; then
9123 ac_ct_MIG=$MIG
9124 # Extract the first word of "mig", so it can be a program name with args.
9125 set dummy mig; ac_word=$2
9126 echo "$as_me:$LINENO: checking for $ac_word" >&5
9127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9128 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131 if test -n "$ac_ct_MIG"; then
9132 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9133 else
9134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135 for as_dir in $PATH
9136 do
9137 IFS=$as_save_IFS
9138 test -z "$as_dir" && as_dir=.
9139 for ac_exec_ext in '' $ac_executable_extensions; do
9140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9141 ac_cv_prog_ac_ct_MIG="mig"
9142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9143 break 2
9144 fi
9145 done
9146 done
9147
9148 fi
9149 fi
9150 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9151 if test -n "$ac_ct_MIG"; then
9152 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9153 echo "${ECHO_T}$ac_ct_MIG" >&6
9154 else
9155 echo "$as_me:$LINENO: result: no" >&5
9156 echo "${ECHO_T}no" >&6
9157 fi
9158
9159 MIG=$ac_ct_MIG
9160 else
9161 MIG="$ac_cv_prog_MIG"
9162 fi
9163
9164
9165 # ---------------------- #
9166 # Checks for libraries. #
9167 # ---------------------- #
9168
9169 # We might need to link with -lm; most simulators need it.
9170
9171 echo "$as_me:$LINENO: checking for main in -lm" >&5
9172 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9173 if test "${ac_cv_lib_m_main+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9175 else
9176 ac_check_lib_save_LIBS=$LIBS
9177 LIBS="-lm $LIBS"
9178 cat >conftest.$ac_ext <<_ACEOF
9179 /* confdefs.h. */
9180 _ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h. */
9184
9185
9186 int
9187 main ()
9188 {
9189 main ();
9190 ;
9191 return 0;
9192 }
9193 _ACEOF
9194 rm -f conftest.$ac_objext conftest$ac_exeext
9195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9196 (eval $ac_link) 2>conftest.er1
9197 ac_status=$?
9198 grep -v '^ *+' conftest.er1 >conftest.err
9199 rm -f conftest.er1
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try='test -z "$ac_c_werror_flag"
9204 || test ! -s conftest.err'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; } &&
9210 { ac_try='test -s conftest$ac_exeext'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 (eval $ac_try) 2>&5
9213 ac_status=$?
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; }; then
9216 ac_cv_lib_m_main=yes
9217 else
9218 echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9220
9221 ac_cv_lib_m_main=no
9222 fi
9223 rm -f conftest.err conftest.$ac_objext \
9224 conftest$ac_exeext conftest.$ac_ext
9225 LIBS=$ac_check_lib_save_LIBS
9226 fi
9227 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9228 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9229 if test $ac_cv_lib_m_main = yes; then
9230 cat >>confdefs.h <<_ACEOF
9231 #define HAVE_LIBM 1
9232 _ACEOF
9233
9234 LIBS="-lm $LIBS"
9235
9236 fi
9237
9238
9239 # We need to link with -lw to get `wctype' on Solaris before Solaris
9240 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9241 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9242 # is known to have this problem). Therefore we avoid libw if we can.
9243 echo "$as_me:$LINENO: checking for wctype" >&5
9244 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9245 if test "${ac_cv_func_wctype+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9247 else
9248 cat >conftest.$ac_ext <<_ACEOF
9249 /* confdefs.h. */
9250 _ACEOF
9251 cat confdefs.h >>conftest.$ac_ext
9252 cat >>conftest.$ac_ext <<_ACEOF
9253 /* end confdefs.h. */
9254 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9256 #define wctype innocuous_wctype
9257
9258 /* System header to define __stub macros and hopefully few prototypes,
9259 which can conflict with char wctype (); below.
9260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9261 <limits.h> exists even on freestanding compilers. */
9262
9263 #ifdef __STDC__
9264 # include <limits.h>
9265 #else
9266 # include <assert.h>
9267 #endif
9268
9269 #undef wctype
9270
9271 /* Override any gcc2 internal prototype to avoid an error. */
9272 #ifdef __cplusplus
9273 extern "C"
9274 {
9275 #endif
9276 /* We use char because int might match the return type of a gcc2
9277 builtin and then its argument prototype would still apply. */
9278 char wctype ();
9279 /* The GNU C library defines this for functions which it implements
9280 to always fail with ENOSYS. Some functions are actually named
9281 something starting with __ and the normal name is an alias. */
9282 #if defined (__stub_wctype) || defined (__stub___wctype)
9283 choke me
9284 #else
9285 char (*f) () = wctype;
9286 #endif
9287 #ifdef __cplusplus
9288 }
9289 #endif
9290
9291 int
9292 main ()
9293 {
9294 return f != wctype;
9295 ;
9296 return 0;
9297 }
9298 _ACEOF
9299 rm -f conftest.$ac_objext conftest$ac_exeext
9300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301 (eval $ac_link) 2>conftest.er1
9302 ac_status=$?
9303 grep -v '^ *+' conftest.er1 >conftest.err
9304 rm -f conftest.er1
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } &&
9308 { ac_try='test -z "$ac_c_werror_flag"
9309 || test ! -s conftest.err'
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 (eval $ac_try) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; } &&
9315 { ac_try='test -s conftest$ac_exeext'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 (eval $ac_try) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 ac_cv_func_wctype=yes
9322 else
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9325
9326 ac_cv_func_wctype=no
9327 fi
9328 rm -f conftest.err conftest.$ac_objext \
9329 conftest$ac_exeext conftest.$ac_ext
9330 fi
9331 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9332 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9333 if test $ac_cv_func_wctype = yes; then
9334 :
9335 else
9336
9337 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9338 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9339 if test "${ac_cv_lib_w_wctype+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341 else
9342 ac_check_lib_save_LIBS=$LIBS
9343 LIBS="-lw $LIBS"
9344 cat >conftest.$ac_ext <<_ACEOF
9345 /* confdefs.h. */
9346 _ACEOF
9347 cat confdefs.h >>conftest.$ac_ext
9348 cat >>conftest.$ac_ext <<_ACEOF
9349 /* end confdefs.h. */
9350
9351 /* Override any gcc2 internal prototype to avoid an error. */
9352 #ifdef __cplusplus
9353 extern "C"
9354 #endif
9355 /* We use char because int might match the return type of a gcc2
9356 builtin and then its argument prototype would still apply. */
9357 char wctype ();
9358 int
9359 main ()
9360 {
9361 wctype ();
9362 ;
9363 return 0;
9364 }
9365 _ACEOF
9366 rm -f conftest.$ac_objext conftest$ac_exeext
9367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag"
9376 || test ! -s conftest.err'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 (eval $ac_try) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; } &&
9382 { ac_try='test -s conftest$ac_exeext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 ac_cv_lib_w_wctype=yes
9389 else
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.$ac_ext >&5
9392
9393 ac_cv_lib_w_wctype=no
9394 fi
9395 rm -f conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9397 LIBS=$ac_check_lib_save_LIBS
9398 fi
9399 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9400 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9401 if test $ac_cv_lib_w_wctype = yes; then
9402 cat >>confdefs.h <<_ACEOF
9403 #define HAVE_LIBW 1
9404 _ACEOF
9405
9406 LIBS="-lw $LIBS"
9407
9408 fi
9409
9410 fi
9411
9412
9413 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9414 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9415 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9416 if test "${ac_cv_search_gethostbyname+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419 ac_func_search_save_LIBS=$LIBS
9420 ac_cv_search_gethostbyname=no
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h. */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9427
9428 /* Override any gcc2 internal prototype to avoid an error. */
9429 #ifdef __cplusplus
9430 extern "C"
9431 #endif
9432 /* We use char because int might match the return type of a gcc2
9433 builtin and then its argument prototype would still apply. */
9434 char gethostbyname ();
9435 int
9436 main ()
9437 {
9438 gethostbyname ();
9439 ;
9440 return 0;
9441 }
9442 _ACEOF
9443 rm -f conftest.$ac_objext conftest$ac_exeext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9445 (eval $ac_link) 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
9452 { ac_try='test -z "$ac_c_werror_flag"
9453 || test ! -s conftest.err'
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; } &&
9459 { ac_try='test -s conftest$ac_exeext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
9465 ac_cv_search_gethostbyname="none required"
9466 else
9467 echo "$as_me: failed program was:" >&5
9468 sed 's/^/| /' conftest.$ac_ext >&5
9469
9470 fi
9471 rm -f conftest.err conftest.$ac_objext \
9472 conftest$ac_exeext conftest.$ac_ext
9473 if test "$ac_cv_search_gethostbyname" = no; then
9474 for ac_lib in nsl; do
9475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9476 cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h. */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482
9483 /* Override any gcc2 internal prototype to avoid an error. */
9484 #ifdef __cplusplus
9485 extern "C"
9486 #endif
9487 /* We use char because int might match the return type of a gcc2
9488 builtin and then its argument prototype would still apply. */
9489 char gethostbyname ();
9490 int
9491 main ()
9492 {
9493 gethostbyname ();
9494 ;
9495 return 0;
9496 }
9497 _ACEOF
9498 rm -f conftest.$ac_objext conftest$ac_exeext
9499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9500 (eval $ac_link) 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
9507 { ac_try='test -z "$ac_c_werror_flag"
9508 || test ! -s conftest.err'
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 (eval $ac_try) 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; } &&
9514 { ac_try='test -s conftest$ac_exeext'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 (eval $ac_try) 2>&5
9517 ac_status=$?
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
9520 ac_cv_search_gethostbyname="-l$ac_lib"
9521 break
9522 else
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526 fi
9527 rm -f conftest.err conftest.$ac_objext \
9528 conftest$ac_exeext conftest.$ac_ext
9529 done
9530 fi
9531 LIBS=$ac_func_search_save_LIBS
9532 fi
9533 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9534 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9535 if test "$ac_cv_search_gethostbyname" != no; then
9536 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9537
9538 fi
9539
9540
9541 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9542 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9543 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9544 if test "${ac_cv_search_socketpair+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547 ac_func_search_save_LIBS=$LIBS
9548 ac_cv_search_socketpair=no
9549 cat >conftest.$ac_ext <<_ACEOF
9550 /* confdefs.h. */
9551 _ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555
9556 /* Override any gcc2 internal prototype to avoid an error. */
9557 #ifdef __cplusplus
9558 extern "C"
9559 #endif
9560 /* We use char because int might match the return type of a gcc2
9561 builtin and then its argument prototype would still apply. */
9562 char socketpair ();
9563 int
9564 main ()
9565 {
9566 socketpair ();
9567 ;
9568 return 0;
9569 }
9570 _ACEOF
9571 rm -f conftest.$ac_objext conftest$ac_exeext
9572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573 (eval $ac_link) 2>conftest.er1
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
9580 { ac_try='test -z "$ac_c_werror_flag"
9581 || test ! -s conftest.err'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 (eval $ac_try) 2>&5
9584 ac_status=$?
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; } &&
9587 { ac_try='test -s conftest$ac_exeext'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 (eval $ac_try) 2>&5
9590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9593 ac_cv_search_socketpair="none required"
9594 else
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9597
9598 fi
9599 rm -f conftest.err conftest.$ac_objext \
9600 conftest$ac_exeext conftest.$ac_ext
9601 if test "$ac_cv_search_socketpair" = no; then
9602 for ac_lib in socket; do
9603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h. */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h. */
9610
9611 /* Override any gcc2 internal prototype to avoid an error. */
9612 #ifdef __cplusplus
9613 extern "C"
9614 #endif
9615 /* We use char because int might match the return type of a gcc2
9616 builtin and then its argument prototype would still apply. */
9617 char socketpair ();
9618 int
9619 main ()
9620 {
9621 socketpair ();
9622 ;
9623 return 0;
9624 }
9625 _ACEOF
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9628 (eval $ac_link) 2>conftest.er1
9629 ac_status=$?
9630 grep -v '^ *+' conftest.er1 >conftest.err
9631 rm -f conftest.er1
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } &&
9635 { ac_try='test -z "$ac_c_werror_flag"
9636 || test ! -s conftest.err'
9637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 (eval $ac_try) 2>&5
9639 ac_status=$?
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; } &&
9642 { ac_try='test -s conftest$ac_exeext'
9643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 (eval $ac_try) 2>&5
9645 ac_status=$?
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; }; then
9648 ac_cv_search_socketpair="-l$ac_lib"
9649 break
9650 else
9651 echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9653
9654 fi
9655 rm -f conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext conftest.$ac_ext
9657 done
9658 fi
9659 LIBS=$ac_func_search_save_LIBS
9660 fi
9661 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9662 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9663 if test "$ac_cv_search_socketpair" != no; then
9664 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9665
9666 fi
9667
9668
9669 # Link in zlib if we can. This allows us to read compressed debug sections.
9670 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9671 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9672 if test "${ac_cv_search_zlibVersion+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 else
9675 ac_func_search_save_LIBS=$LIBS
9676 ac_cv_search_zlibVersion=no
9677 cat >conftest.$ac_ext <<_ACEOF
9678 /* confdefs.h. */
9679 _ACEOF
9680 cat confdefs.h >>conftest.$ac_ext
9681 cat >>conftest.$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9683
9684 /* Override any gcc2 internal prototype to avoid an error. */
9685 #ifdef __cplusplus
9686 extern "C"
9687 #endif
9688 /* We use char because int might match the return type of a gcc2
9689 builtin and then its argument prototype would still apply. */
9690 char zlibVersion ();
9691 int
9692 main ()
9693 {
9694 zlibVersion ();
9695 ;
9696 return 0;
9697 }
9698 _ACEOF
9699 rm -f conftest.$ac_objext conftest$ac_exeext
9700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9701 (eval $ac_link) 2>conftest.er1
9702 ac_status=$?
9703 grep -v '^ *+' conftest.er1 >conftest.err
9704 rm -f conftest.er1
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } &&
9708 { ac_try='test -z "$ac_c_werror_flag"
9709 || test ! -s conftest.err'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; } &&
9715 { ac_try='test -s conftest$ac_exeext'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 (eval $ac_try) 2>&5
9718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 ac_cv_search_zlibVersion="none required"
9722 else
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9725
9726 fi
9727 rm -f conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9729 if test "$ac_cv_search_zlibVersion" = no; then
9730 for ac_lib in z; do
9731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9732 cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h. */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9738
9739 /* Override any gcc2 internal prototype to avoid an error. */
9740 #ifdef __cplusplus
9741 extern "C"
9742 #endif
9743 /* We use char because int might match the return type of a gcc2
9744 builtin and then its argument prototype would still apply. */
9745 char zlibVersion ();
9746 int
9747 main ()
9748 {
9749 zlibVersion ();
9750 ;
9751 return 0;
9752 }
9753 _ACEOF
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_search_zlibVersion="-l$ac_lib"
9777 break
9778 else
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.$ac_ext >&5
9781
9782 fi
9783 rm -f conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9785 done
9786 fi
9787 LIBS=$ac_func_search_save_LIBS
9788 fi
9789 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9790 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9791 if test "$ac_cv_search_zlibVersion" != no; then
9792 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9793
9794 for ac_header in zlib.h
9795 do
9796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9797 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9798 echo "$as_me:$LINENO: checking for $ac_header" >&5
9799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 fi
9803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9805 else
9806 # Is the header compilable?
9807 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9809 cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h. */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 $ac_includes_default
9816 #include <$ac_header>
9817 _ACEOF
9818 rm -f conftest.$ac_objext
9819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9820 (eval $ac_compile) 2>conftest.er1
9821 ac_status=$?
9822 grep -v '^ *+' conftest.er1 >conftest.err
9823 rm -f conftest.er1
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -z "$ac_c_werror_flag"
9828 || test ! -s conftest.err'
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 (eval $ac_try) 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; } &&
9834 { ac_try='test -s conftest.$ac_objext'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 (eval $ac_try) 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; }; then
9840 ac_header_compiler=yes
9841 else
9842 echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9844
9845 ac_header_compiler=no
9846 fi
9847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9848 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9849 echo "${ECHO_T}$ac_header_compiler" >&6
9850
9851 # Is the header present?
9852 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9853 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9854 cat >conftest.$ac_ext <<_ACEOF
9855 /* confdefs.h. */
9856 _ACEOF
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9860 #include <$ac_header>
9861 _ACEOF
9862 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9864 ac_status=$?
9865 grep -v '^ *+' conftest.er1 >conftest.err
9866 rm -f conftest.er1
9867 cat conftest.err >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } >/dev/null; then
9870 if test -s conftest.err; then
9871 ac_cpp_err=$ac_c_preproc_warn_flag
9872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9873 else
9874 ac_cpp_err=
9875 fi
9876 else
9877 ac_cpp_err=yes
9878 fi
9879 if test -z "$ac_cpp_err"; then
9880 ac_header_preproc=yes
9881 else
9882 echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9884
9885 ac_header_preproc=no
9886 fi
9887 rm -f conftest.err conftest.$ac_ext
9888 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9889 echo "${ECHO_T}$ac_header_preproc" >&6
9890
9891 # So? What about this header?
9892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9893 yes:no: )
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9898 ac_header_preproc=yes
9899 ;;
9900 no:yes:* )
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9913 (
9914 cat <<\_ASBOX
9915 ## ------------------------------------------ ##
9916 ## Report this to the AC_PACKAGE_NAME lists. ##
9917 ## ------------------------------------------ ##
9918 _ASBOX
9919 ) |
9920 sed "s/^/$as_me: WARNING: /" >&2
9921 ;;
9922 esac
9923 echo "$as_me:$LINENO: checking for $ac_header" >&5
9924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928 eval "$as_ac_Header=\$ac_header_preproc"
9929 fi
9930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9931 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9932
9933 fi
9934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9935 cat >>confdefs.h <<_ACEOF
9936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9937 _ACEOF
9938
9939 fi
9940
9941 done
9942
9943 fi
9944
9945
9946 # For the TUI, we need enhanced curses functionality.
9947 #
9948 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9949 # curses library because the latter might not provide all the
9950 # functionality we need. However, this leads to problems on systems
9951 # where the linker searches /usr/local/lib, but the compiler doesn't
9952 # search /usr/local/include, if ncurses is installed in /usr/local. A
9953 # default installation of ncurses on alpha*-dec-osf* will lead to such
9954 # a situation.
9955 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
9956 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
9957 if test "${ac_cv_search_waddstr+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 else
9960 ac_func_search_save_LIBS=$LIBS
9961 ac_cv_search_waddstr=no
9962 cat >conftest.$ac_ext <<_ACEOF
9963 /* confdefs.h. */
9964 _ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9968
9969 /* Override any gcc2 internal prototype to avoid an error. */
9970 #ifdef __cplusplus
9971 extern "C"
9972 #endif
9973 /* We use char because int might match the return type of a gcc2
9974 builtin and then its argument prototype would still apply. */
9975 char waddstr ();
9976 int
9977 main ()
9978 {
9979 waddstr ();
9980 ;
9981 return 0;
9982 }
9983 _ACEOF
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986 (eval $ac_link) 2>conftest.er1
9987 ac_status=$?
9988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
9993 { ac_try='test -z "$ac_c_werror_flag"
9994 || test ! -s conftest.err'
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 (eval $ac_try) 2>&5
9997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; } &&
10000 { ac_try='test -s conftest$ac_exeext'
10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
10006 ac_cv_search_waddstr="none required"
10007 else
10008 echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10010
10011 fi
10012 rm -f conftest.err conftest.$ac_objext \
10013 conftest$ac_exeext conftest.$ac_ext
10014 if test "$ac_cv_search_waddstr" = no; then
10015 for ac_lib in ncurses cursesX curses; do
10016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10017 cat >conftest.$ac_ext <<_ACEOF
10018 /* confdefs.h. */
10019 _ACEOF
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023
10024 /* Override any gcc2 internal prototype to avoid an error. */
10025 #ifdef __cplusplus
10026 extern "C"
10027 #endif
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10030 char waddstr ();
10031 int
10032 main ()
10033 {
10034 waddstr ();
10035 ;
10036 return 0;
10037 }
10038 _ACEOF
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10041 (eval $ac_link) 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag"
10049 || test ! -s conftest.err'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; } &&
10055 { ac_try='test -s conftest$ac_exeext'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_search_waddstr="-l$ac_lib"
10062 break
10063 else
10064 echo "$as_me: failed program was:" >&5
10065 sed 's/^/| /' conftest.$ac_ext >&5
10066
10067 fi
10068 rm -f conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10070 done
10071 fi
10072 LIBS=$ac_func_search_save_LIBS
10073 fi
10074 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10075 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10076 if test "$ac_cv_search_waddstr" != no; then
10077 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10078
10079 fi
10080
10081
10082 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10083 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10084 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10085 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 else
10088 ac_func_search_save_LIBS=$LIBS
10089 ac_cv_search_dlgetmodinfo=no
10090 cat >conftest.$ac_ext <<_ACEOF
10091 /* confdefs.h. */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h. */
10096
10097 /* Override any gcc2 internal prototype to avoid an error. */
10098 #ifdef __cplusplus
10099 extern "C"
10100 #endif
10101 /* We use char because int might match the return type of a gcc2
10102 builtin and then its argument prototype would still apply. */
10103 char dlgetmodinfo ();
10104 int
10105 main ()
10106 {
10107 dlgetmodinfo ();
10108 ;
10109 return 0;
10110 }
10111 _ACEOF
10112 rm -f conftest.$ac_objext conftest$ac_exeext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114 (eval $ac_link) 2>conftest.er1
10115 ac_status=$?
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } &&
10121 { ac_try='test -z "$ac_c_werror_flag"
10122 || test ! -s conftest.err'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; } &&
10128 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10134 ac_cv_search_dlgetmodinfo="none required"
10135 else
10136 echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10138
10139 fi
10140 rm -f conftest.err conftest.$ac_objext \
10141 conftest$ac_exeext conftest.$ac_ext
10142 if test "$ac_cv_search_dlgetmodinfo" = no; then
10143 for ac_lib in dl xpdl; do
10144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10145 cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h. */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151
10152 /* Override any gcc2 internal prototype to avoid an error. */
10153 #ifdef __cplusplus
10154 extern "C"
10155 #endif
10156 /* We use char because int might match the return type of a gcc2
10157 builtin and then its argument prototype would still apply. */
10158 char dlgetmodinfo ();
10159 int
10160 main ()
10161 {
10162 dlgetmodinfo ();
10163 ;
10164 return 0;
10165 }
10166 _ACEOF
10167 rm -f conftest.$ac_objext conftest$ac_exeext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10169 (eval $ac_link) 2>conftest.er1
10170 ac_status=$?
10171 grep -v '^ *+' conftest.er1 >conftest.err
10172 rm -f conftest.er1
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
10176 { ac_try='test -z "$ac_c_werror_flag"
10177 || test ! -s conftest.err'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; } &&
10183 { ac_try='test -s conftest$ac_exeext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10190 break
10191 else
10192 echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10194
10195 fi
10196 rm -f conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198 done
10199 fi
10200 LIBS=$ac_func_search_save_LIBS
10201 fi
10202 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10203 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10204 if test "$ac_cv_search_dlgetmodinfo" != no; then
10205 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10206
10207 fi
10208
10209
10210 # Since GDB uses Readline, we need termcap functionality. In many
10211 # cases this will be provided by the curses library, but some systems
10212 # have a seperate termcap library, or no curses library at all.
10213
10214 case $host_os in
10215 cygwin*)
10216 if test -d $srcdir/libtermcap; then
10217 LIBS="../libtermcap/libtermcap.a $LIBS"
10218 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10219 fi ;;
10220 go32* | *djgpp*)
10221 ac_cv_search_tgetent="none required"
10222 ;;
10223 *mingw32*)
10224 ac_cv_search_tgetent="none required"
10225 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10226 ;;
10227 esac
10228
10229 # These are the libraries checked by Readline.
10230 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10231 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10232 if test "${ac_cv_search_tgetent+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235 ac_func_search_save_LIBS=$LIBS
10236 ac_cv_search_tgetent=no
10237 cat >conftest.$ac_ext <<_ACEOF
10238 /* confdefs.h. */
10239 _ACEOF
10240 cat confdefs.h >>conftest.$ac_ext
10241 cat >>conftest.$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10243
10244 /* Override any gcc2 internal prototype to avoid an error. */
10245 #ifdef __cplusplus
10246 extern "C"
10247 #endif
10248 /* We use char because int might match the return type of a gcc2
10249 builtin and then its argument prototype would still apply. */
10250 char tgetent ();
10251 int
10252 main ()
10253 {
10254 tgetent ();
10255 ;
10256 return 0;
10257 }
10258 _ACEOF
10259 rm -f conftest.$ac_objext conftest$ac_exeext
10260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10261 (eval $ac_link) 2>conftest.er1
10262 ac_status=$?
10263 grep -v '^ *+' conftest.er1 >conftest.err
10264 rm -f conftest.er1
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } &&
10268 { ac_try='test -z "$ac_c_werror_flag"
10269 || test ! -s conftest.err'
10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10272 ac_status=$?
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); }; } &&
10275 { ac_try='test -s conftest$ac_exeext'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; }; then
10281 ac_cv_search_tgetent="none required"
10282 else
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.$ac_ext >&5
10285
10286 fi
10287 rm -f conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10289 if test "$ac_cv_search_tgetent" = no; then
10290 for ac_lib in termcap tinfo curses ncurses; do
10291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10292 cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h. */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h. */
10298
10299 /* Override any gcc2 internal prototype to avoid an error. */
10300 #ifdef __cplusplus
10301 extern "C"
10302 #endif
10303 /* We use char because int might match the return type of a gcc2
10304 builtin and then its argument prototype would still apply. */
10305 char tgetent ();
10306 int
10307 main ()
10308 {
10309 tgetent ();
10310 ;
10311 return 0;
10312 }
10313 _ACEOF
10314 rm -f conftest.$ac_objext conftest$ac_exeext
10315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10316 (eval $ac_link) 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -z "$ac_c_werror_flag"
10324 || test ! -s conftest.err'
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; } &&
10330 { ac_try='test -s conftest$ac_exeext'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; }; then
10336 ac_cv_search_tgetent="-l$ac_lib"
10337 break
10338 else
10339 echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10341
10342 fi
10343 rm -f conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10345 done
10346 fi
10347 LIBS=$ac_func_search_save_LIBS
10348 fi
10349 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10350 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10351 if test "$ac_cv_search_tgetent" != no; then
10352 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10353
10354 fi
10355
10356
10357 if test "$ac_cv_search_tgetent" = no; then
10358 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10359 echo "$as_me: error: no termcap library found" >&2;}
10360 { (exit 1); exit 1; }; }
10361 fi
10362
10363
10364 # Check whether --with-system-readline or --without-system-readline was given.
10365 if test "${with_system_readline+set}" = set; then
10366 withval="$with_system_readline"
10367
10368 fi;
10369
10370 if test "$with_system_readline" = yes; then
10371 READLINE=-lreadline
10372 READLINE_DEPS=
10373 READLINE_CFLAGS=
10374 else
10375 READLINE='$(READLINE_DIR)/libreadline.a'
10376 READLINE_DEPS='$(READLINE)'
10377 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10378 fi
10379
10380
10381
10382
10383
10384 # Check whether --with-expat or --without-expat was given.
10385 if test "${with_expat+set}" = set; then
10386 withval="$with_expat"
10387
10388 else
10389 with_expat=auto
10390 fi;
10391 echo "$as_me:$LINENO: checking whether to use expat" >&5
10392 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10393 echo "$as_me:$LINENO: result: $with_expat" >&5
10394 echo "${ECHO_T}$with_expat" >&6
10395
10396 if test "${with_expat}" = no; then
10397 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10398 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10399 HAVE_LIBEXPAT=no
10400 else
10401
10402 if test "X$prefix" = "XNONE"; then
10403 acl_final_prefix="$ac_default_prefix"
10404 else
10405 acl_final_prefix="$prefix"
10406 fi
10407 if test "X$exec_prefix" = "XNONE"; then
10408 acl_final_exec_prefix='${prefix}'
10409 else
10410 acl_final_exec_prefix="$exec_prefix"
10411 fi
10412 acl_save_prefix="$prefix"
10413 prefix="$acl_final_prefix"
10414 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10415 prefix="$acl_save_prefix"
10416
10417
10418 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10419 if test "${with_gnu_ld+set}" = set; then
10420 withval="$with_gnu_ld"
10421 test "$withval" = no || with_gnu_ld=yes
10422 else
10423 with_gnu_ld=no
10424 fi;
10425 # Prepare PATH_SEPARATOR.
10426 # The user is always right.
10427 if test "${PATH_SEPARATOR+set}" != set; then
10428 echo "#! /bin/sh" >conf$$.sh
10429 echo "exit 0" >>conf$$.sh
10430 chmod +x conf$$.sh
10431 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10432 PATH_SEPARATOR=';'
10433 else
10434 PATH_SEPARATOR=:
10435 fi
10436 rm -f conf$$.sh
10437 fi
10438 ac_prog=ld
10439 if test "$GCC" = yes; then
10440 # Check if gcc -print-prog-name=ld gives a path.
10441 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10442 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10443 case $host in
10444 *-*-mingw*)
10445 # gcc leaves a trailing carriage return which upsets mingw
10446 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10447 *)
10448 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10449 esac
10450 case $ac_prog in
10451 # Accept absolute paths.
10452 [\\/]* | [A-Za-z]:[\\/]*)
10453 re_direlt='/[^/][^/]*/\.\./'
10454 # Canonicalize the path of ld
10455 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10456 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10457 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10458 done
10459 test -z "$LD" && LD="$ac_prog"
10460 ;;
10461 "")
10462 # If it fails, then pretend we aren't using GCC.
10463 ac_prog=ld
10464 ;;
10465 *)
10466 # If it is relative, then search for the first ld in PATH.
10467 with_gnu_ld=unknown
10468 ;;
10469 esac
10470 elif test "$with_gnu_ld" = yes; then
10471 echo "$as_me:$LINENO: checking for GNU ld" >&5
10472 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10473 else
10474 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10475 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10476 fi
10477 if test "${acl_cv_path_LD+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10479 else
10480 if test -z "$LD"; then
10481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10482 for ac_dir in $PATH; do
10483 test -z "$ac_dir" && ac_dir=.
10484 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10485 acl_cv_path_LD="$ac_dir/$ac_prog"
10486 # Check to see if the program is GNU ld. I'd rather use --version,
10487 # but apparently some GNU ld's only accept -v.
10488 # Break only if it was the GNU/non-GNU ld that we prefer.
10489 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10490 test "$with_gnu_ld" != no && break
10491 else
10492 test "$with_gnu_ld" != yes && break
10493 fi
10494 fi
10495 done
10496 IFS="$ac_save_ifs"
10497 else
10498 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10499 fi
10500 fi
10501
10502 LD="$acl_cv_path_LD"
10503 if test -n "$LD"; then
10504 echo "$as_me:$LINENO: result: $LD" >&5
10505 echo "${ECHO_T}$LD" >&6
10506 else
10507 echo "$as_me:$LINENO: result: no" >&5
10508 echo "${ECHO_T}no" >&6
10509 fi
10510 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10511 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10512 { (exit 1); exit 1; }; }
10513 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10514 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10515 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10519 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10520 acl_cv_prog_gnu_ld=yes
10521 else
10522 acl_cv_prog_gnu_ld=no
10523 fi
10524 fi
10525 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10526 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10527 with_gnu_ld=$acl_cv_prog_gnu_ld
10528
10529
10530
10531 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10532 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10533 if test "${acl_cv_rpath+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10535 else
10536
10537 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10538 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10539 . ./conftest.sh
10540 rm -f ./conftest.sh
10541 acl_cv_rpath=done
10542
10543 fi
10544 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10545 echo "${ECHO_T}$acl_cv_rpath" >&6
10546 wl="$acl_cv_wl"
10547 libext="$acl_cv_libext"
10548 shlibext="$acl_cv_shlibext"
10549 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10550 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10551 hardcode_direct="$acl_cv_hardcode_direct"
10552 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10553 # Check whether --enable-rpath or --disable-rpath was given.
10554 if test "${enable_rpath+set}" = set; then
10555 enableval="$enable_rpath"
10556 :
10557 else
10558 enable_rpath=yes
10559 fi;
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569 use_additional=yes
10570
10571 acl_save_prefix="$prefix"
10572 prefix="$acl_final_prefix"
10573 acl_save_exec_prefix="$exec_prefix"
10574 exec_prefix="$acl_final_exec_prefix"
10575
10576 eval additional_includedir=\"$includedir\"
10577 eval additional_libdir=\"$libdir\"
10578
10579 exec_prefix="$acl_save_exec_prefix"
10580 prefix="$acl_save_prefix"
10581
10582
10583 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10584 if test "${with_libexpat_prefix+set}" = set; then
10585 withval="$with_libexpat_prefix"
10586
10587 if test "X$withval" = "Xno"; then
10588 use_additional=no
10589 else
10590 if test "X$withval" = "X"; then
10591
10592 acl_save_prefix="$prefix"
10593 prefix="$acl_final_prefix"
10594 acl_save_exec_prefix="$exec_prefix"
10595 exec_prefix="$acl_final_exec_prefix"
10596
10597 eval additional_includedir=\"$includedir\"
10598 eval additional_libdir=\"$libdir\"
10599
10600 exec_prefix="$acl_save_exec_prefix"
10601 prefix="$acl_save_prefix"
10602
10603 else
10604 additional_includedir="$withval/include"
10605 additional_libdir="$withval/lib"
10606 fi
10607 fi
10608
10609 fi;
10610 LIBEXPAT=
10611 LTLIBEXPAT=
10612 INCEXPAT=
10613 rpathdirs=
10614 ltrpathdirs=
10615 names_already_handled=
10616 names_next_round='expat '
10617 while test -n "$names_next_round"; do
10618 names_this_round="$names_next_round"
10619 names_next_round=
10620 for name in $names_this_round; do
10621 already_handled=
10622 for n in $names_already_handled; do
10623 if test "$n" = "$name"; then
10624 already_handled=yes
10625 break
10626 fi
10627 done
10628 if test -z "$already_handled"; then
10629 names_already_handled="$names_already_handled $name"
10630 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10631 eval value=\"\$HAVE_LIB$uppername\"
10632 if test -n "$value"; then
10633 if test "$value" = yes; then
10634 eval value=\"\$LIB$uppername\"
10635 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10636 eval value=\"\$LTLIB$uppername\"
10637 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10638 else
10639 :
10640 fi
10641 else
10642 found_dir=
10643 found_la=
10644 found_so=
10645 found_a=
10646 if test $use_additional = yes; then
10647 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10648 found_dir="$additional_libdir"
10649 found_so="$additional_libdir/lib$name.$shlibext"
10650 if test -f "$additional_libdir/lib$name.la"; then
10651 found_la="$additional_libdir/lib$name.la"
10652 fi
10653 else
10654 if test -f "$additional_libdir/lib$name.$libext"; then
10655 found_dir="$additional_libdir"
10656 found_a="$additional_libdir/lib$name.$libext"
10657 if test -f "$additional_libdir/lib$name.la"; then
10658 found_la="$additional_libdir/lib$name.la"
10659 fi
10660 fi
10661 fi
10662 fi
10663 if test "X$found_dir" = "X"; then
10664 for x in $LDFLAGS $LTLIBEXPAT; do
10665
10666 acl_save_prefix="$prefix"
10667 prefix="$acl_final_prefix"
10668 acl_save_exec_prefix="$exec_prefix"
10669 exec_prefix="$acl_final_exec_prefix"
10670 eval x=\"$x\"
10671 exec_prefix="$acl_save_exec_prefix"
10672 prefix="$acl_save_prefix"
10673
10674 case "$x" in
10675 -L*)
10676 dir=`echo "X$x" | sed -e 's/^X-L//'`
10677 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10678 found_dir="$dir"
10679 found_so="$dir/lib$name.$shlibext"
10680 if test -f "$dir/lib$name.la"; then
10681 found_la="$dir/lib$name.la"
10682 fi
10683 else
10684 if test -f "$dir/lib$name.$libext"; then
10685 found_dir="$dir"
10686 found_a="$dir/lib$name.$libext"
10687 if test -f "$dir/lib$name.la"; then
10688 found_la="$dir/lib$name.la"
10689 fi
10690 fi
10691 fi
10692 ;;
10693 esac
10694 if test "X$found_dir" != "X"; then
10695 break
10696 fi
10697 done
10698 fi
10699 if test "X$found_dir" != "X"; then
10700 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10701 if test "X$found_so" != "X"; then
10702 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10703 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10704 else
10705 haveit=
10706 for x in $ltrpathdirs; do
10707 if test "X$x" = "X$found_dir"; then
10708 haveit=yes
10709 break
10710 fi
10711 done
10712 if test -z "$haveit"; then
10713 ltrpathdirs="$ltrpathdirs $found_dir"
10714 fi
10715 if test "$hardcode_direct" = yes; then
10716 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10717 else
10718 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10719 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10720 haveit=
10721 for x in $rpathdirs; do
10722 if test "X$x" = "X$found_dir"; then
10723 haveit=yes
10724 break
10725 fi
10726 done
10727 if test -z "$haveit"; then
10728 rpathdirs="$rpathdirs $found_dir"
10729 fi
10730 else
10731 haveit=
10732 for x in $LDFLAGS $LIBEXPAT; do
10733
10734 acl_save_prefix="$prefix"
10735 prefix="$acl_final_prefix"
10736 acl_save_exec_prefix="$exec_prefix"
10737 exec_prefix="$acl_final_exec_prefix"
10738 eval x=\"$x\"
10739 exec_prefix="$acl_save_exec_prefix"
10740 prefix="$acl_save_prefix"
10741
10742 if test "X$x" = "X-L$found_dir"; then
10743 haveit=yes
10744 break
10745 fi
10746 done
10747 if test -z "$haveit"; then
10748 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10749 fi
10750 if test "$hardcode_minus_L" != no; then
10751 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10752 else
10753 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10754 fi
10755 fi
10756 fi
10757 fi
10758 else
10759 if test "X$found_a" != "X"; then
10760 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10761 else
10762 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10763 fi
10764 fi
10765 additional_includedir=
10766 case "$found_dir" in
10767 */lib | */lib/)
10768 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10769 additional_includedir="$basedir/include"
10770 ;;
10771 esac
10772 if test "X$additional_includedir" != "X"; then
10773 if test "X$additional_includedir" != "X/usr/include"; then
10774 haveit=
10775 if test "X$additional_includedir" = "X/usr/local/include"; then
10776 if test -n "$GCC"; then
10777 case $host_os in
10778 linux*) haveit=yes;;
10779 esac
10780 fi
10781 fi
10782 if test -z "$haveit"; then
10783 for x in $CPPFLAGS $INCEXPAT; do
10784
10785 acl_save_prefix="$prefix"
10786 prefix="$acl_final_prefix"
10787 acl_save_exec_prefix="$exec_prefix"
10788 exec_prefix="$acl_final_exec_prefix"
10789 eval x=\"$x\"
10790 exec_prefix="$acl_save_exec_prefix"
10791 prefix="$acl_save_prefix"
10792
10793 if test "X$x" = "X-I$additional_includedir"; then
10794 haveit=yes
10795 break
10796 fi
10797 done
10798 if test -z "$haveit"; then
10799 if test -d "$additional_includedir"; then
10800 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10801 fi
10802 fi
10803 fi
10804 fi
10805 fi
10806 if test -n "$found_la"; then
10807 save_libdir="$libdir"
10808 case "$found_la" in
10809 */* | *\\*) . "$found_la" ;;
10810 *) . "./$found_la" ;;
10811 esac
10812 libdir="$save_libdir"
10813 for dep in $dependency_libs; do
10814 case "$dep" in
10815 -L*)
10816 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10817 if test "X$additional_libdir" != "X/usr/lib"; then
10818 haveit=
10819 if test "X$additional_libdir" = "X/usr/local/lib"; then
10820 if test -n "$GCC"; then
10821 case $host_os in
10822 linux*) haveit=yes;;
10823 esac
10824 fi
10825 fi
10826 if test -z "$haveit"; then
10827 haveit=
10828 for x in $LDFLAGS $LIBEXPAT; do
10829
10830 acl_save_prefix="$prefix"
10831 prefix="$acl_final_prefix"
10832 acl_save_exec_prefix="$exec_prefix"
10833 exec_prefix="$acl_final_exec_prefix"
10834 eval x=\"$x\"
10835 exec_prefix="$acl_save_exec_prefix"
10836 prefix="$acl_save_prefix"
10837
10838 if test "X$x" = "X-L$additional_libdir"; then
10839 haveit=yes
10840 break
10841 fi
10842 done
10843 if test -z "$haveit"; then
10844 if test -d "$additional_libdir"; then
10845 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10846 fi
10847 fi
10848 haveit=
10849 for x in $LDFLAGS $LTLIBEXPAT; do
10850
10851 acl_save_prefix="$prefix"
10852 prefix="$acl_final_prefix"
10853 acl_save_exec_prefix="$exec_prefix"
10854 exec_prefix="$acl_final_exec_prefix"
10855 eval x=\"$x\"
10856 exec_prefix="$acl_save_exec_prefix"
10857 prefix="$acl_save_prefix"
10858
10859 if test "X$x" = "X-L$additional_libdir"; then
10860 haveit=yes
10861 break
10862 fi
10863 done
10864 if test -z "$haveit"; then
10865 if test -d "$additional_libdir"; then
10866 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10867 fi
10868 fi
10869 fi
10870 fi
10871 ;;
10872 -R*)
10873 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10874 if test "$enable_rpath" != no; then
10875 haveit=
10876 for x in $rpathdirs; do
10877 if test "X$x" = "X$dir"; then
10878 haveit=yes
10879 break
10880 fi
10881 done
10882 if test -z "$haveit"; then
10883 rpathdirs="$rpathdirs $dir"
10884 fi
10885 haveit=
10886 for x in $ltrpathdirs; do
10887 if test "X$x" = "X$dir"; then
10888 haveit=yes
10889 break
10890 fi
10891 done
10892 if test -z "$haveit"; then
10893 ltrpathdirs="$ltrpathdirs $dir"
10894 fi
10895 fi
10896 ;;
10897 -l*)
10898 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10899 ;;
10900 *.la)
10901 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10902 ;;
10903 *)
10904 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10905 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10906 ;;
10907 esac
10908 done
10909 fi
10910 else
10911 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10912 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10913 fi
10914 fi
10915 fi
10916 done
10917 done
10918 if test "X$rpathdirs" != "X"; then
10919 if test -n "$hardcode_libdir_separator"; then
10920 alldirs=
10921 for found_dir in $rpathdirs; do
10922 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10923 done
10924 acl_save_libdir="$libdir"
10925 libdir="$alldirs"
10926 eval flag=\"$hardcode_libdir_flag_spec\"
10927 libdir="$acl_save_libdir"
10928 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10929 else
10930 for found_dir in $rpathdirs; do
10931 acl_save_libdir="$libdir"
10932 libdir="$found_dir"
10933 eval flag=\"$hardcode_libdir_flag_spec\"
10934 libdir="$acl_save_libdir"
10935 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10936 done
10937 fi
10938 fi
10939 if test "X$ltrpathdirs" != "X"; then
10940 for found_dir in $ltrpathdirs; do
10941 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10942 done
10943 fi
10944
10945
10946 ac_save_CPPFLAGS="$CPPFLAGS"
10947
10948 for element in $INCEXPAT; do
10949 haveit=
10950 for x in $CPPFLAGS; do
10951
10952 acl_save_prefix="$prefix"
10953 prefix="$acl_final_prefix"
10954 acl_save_exec_prefix="$exec_prefix"
10955 exec_prefix="$acl_final_exec_prefix"
10956 eval x=\"$x\"
10957 exec_prefix="$acl_save_exec_prefix"
10958 prefix="$acl_save_prefix"
10959
10960 if test "X$x" = "X$element"; then
10961 haveit=yes
10962 break
10963 fi
10964 done
10965 if test -z "$haveit"; then
10966 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10967 fi
10968 done
10969
10970
10971 echo "$as_me:$LINENO: checking for libexpat" >&5
10972 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
10973 if test "${ac_cv_libexpat+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975 else
10976
10977 ac_save_LIBS="$LIBS"
10978 LIBS="$LIBS $LIBEXPAT"
10979 cat >conftest.$ac_ext <<_ACEOF
10980 /* confdefs.h. */
10981 _ACEOF
10982 cat confdefs.h >>conftest.$ac_ext
10983 cat >>conftest.$ac_ext <<_ACEOF
10984 /* end confdefs.h. */
10985 #include "expat.h"
10986 int
10987 main ()
10988 {
10989 XML_Parser p = XML_ParserCreate (0);
10990 ;
10991 return 0;
10992 }
10993 _ACEOF
10994 rm -f conftest.$ac_objext conftest$ac_exeext
10995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10996 (eval $ac_link) 2>conftest.er1
10997 ac_status=$?
10998 grep -v '^ *+' conftest.er1 >conftest.err
10999 rm -f conftest.er1
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } &&
11003 { ac_try='test -z "$ac_c_werror_flag"
11004 || test ! -s conftest.err'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; } &&
11010 { ac_try='test -s conftest$ac_exeext'
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11013 ac_status=$?
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; }; then
11016 ac_cv_libexpat=yes
11017 else
11018 echo "$as_me: failed program was:" >&5
11019 sed 's/^/| /' conftest.$ac_ext >&5
11020
11021 ac_cv_libexpat=no
11022 fi
11023 rm -f conftest.err conftest.$ac_objext \
11024 conftest$ac_exeext conftest.$ac_ext
11025 LIBS="$ac_save_LIBS"
11026
11027 fi
11028 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11029 echo "${ECHO_T}$ac_cv_libexpat" >&6
11030 if test "$ac_cv_libexpat" = yes; then
11031 HAVE_LIBEXPAT=yes
11032
11033 cat >>confdefs.h <<\_ACEOF
11034 #define HAVE_LIBEXPAT 1
11035 _ACEOF
11036
11037 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11038 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11039 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11040 echo "${ECHO_T}$LIBEXPAT" >&6
11041 else
11042 HAVE_LIBEXPAT=no
11043 CPPFLAGS="$ac_save_CPPFLAGS"
11044 LIBEXPAT=
11045 LTLIBEXPAT=
11046 fi
11047
11048
11049
11050
11051
11052
11053 if test "$HAVE_LIBEXPAT" != yes; then
11054 if test "$with_expat" = yes; then
11055 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11056 echo "$as_me: error: expat is missing or unusable" >&2;}
11057 { (exit 1); exit 1; }; }
11058 else
11059 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11060 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11061 fi
11062 else
11063 save_LIBS=$LIBS
11064 LIBS="$LIBS $LIBEXPAT"
11065
11066 for ac_func in XML_StopParser
11067 do
11068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069 echo "$as_me:$LINENO: checking for $ac_func" >&5
11070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11071 if eval "test \"\${$as_ac_var+set}\" = set"; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 else
11074 cat >conftest.$ac_ext <<_ACEOF
11075 /* confdefs.h. */
11076 _ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11082 #define $ac_func innocuous_$ac_func
11083
11084 /* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func (); below.
11086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11087 <limits.h> exists even on freestanding compilers. */
11088
11089 #ifdef __STDC__
11090 # include <limits.h>
11091 #else
11092 # include <assert.h>
11093 #endif
11094
11095 #undef $ac_func
11096
11097 /* Override any gcc2 internal prototype to avoid an error. */
11098 #ifdef __cplusplus
11099 extern "C"
11100 {
11101 #endif
11102 /* We use char because int might match the return type of a gcc2
11103 builtin and then its argument prototype would still apply. */
11104 char $ac_func ();
11105 /* The GNU C library defines this for functions which it implements
11106 to always fail with ENOSYS. Some functions are actually named
11107 something starting with __ and the normal name is an alias. */
11108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11109 choke me
11110 #else
11111 char (*f) () = $ac_func;
11112 #endif
11113 #ifdef __cplusplus
11114 }
11115 #endif
11116
11117 int
11118 main ()
11119 {
11120 return f != $ac_func;
11121 ;
11122 return 0;
11123 }
11124 _ACEOF
11125 rm -f conftest.$ac_objext conftest$ac_exeext
11126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11127 (eval $ac_link) 2>conftest.er1
11128 ac_status=$?
11129 grep -v '^ *+' conftest.er1 >conftest.err
11130 rm -f conftest.er1
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try='test -z "$ac_c_werror_flag"
11135 || test ! -s conftest.err'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try='test -s conftest$ac_exeext'
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 eval "$as_ac_var=yes"
11148 else
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.$ac_ext >&5
11151
11152 eval "$as_ac_var=no"
11153 fi
11154 rm -f conftest.err conftest.$ac_objext \
11155 conftest$ac_exeext conftest.$ac_ext
11156 fi
11157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11158 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11159 if test `eval echo '${'$as_ac_var'}'` = yes; then
11160 cat >>confdefs.h <<_ACEOF
11161 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11162 _ACEOF
11163
11164 fi
11165 done
11166
11167 LIBS=$save_LIBS
11168 fi
11169 fi
11170
11171 # ------------------------- #
11172 # Checks for header files. #
11173 # ------------------------- #
11174
11175
11176
11177
11178
11179
11180 ac_header_dirent=no
11181 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11182 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11183 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11184 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 else
11188 cat >conftest.$ac_ext <<_ACEOF
11189 /* confdefs.h. */
11190 _ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h. */
11194 #include <sys/types.h>
11195 #include <$ac_hdr>
11196
11197 int
11198 main ()
11199 {
11200 if ((DIR *) 0)
11201 return 0;
11202 ;
11203 return 0;
11204 }
11205 _ACEOF
11206 rm -f conftest.$ac_objext
11207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11208 (eval $ac_compile) 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
11215 { ac_try='test -z "$ac_c_werror_flag"
11216 || test ! -s conftest.err'
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; } &&
11222 { ac_try='test -s conftest.$ac_objext'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; }; then
11228 eval "$as_ac_Header=yes"
11229 else
11230 echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11232
11233 eval "$as_ac_Header=no"
11234 fi
11235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11236 fi
11237 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11238 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11240 cat >>confdefs.h <<_ACEOF
11241 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11242 _ACEOF
11243
11244 ac_header_dirent=$ac_hdr; break
11245 fi
11246
11247 done
11248 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11249 if test $ac_header_dirent = dirent.h; then
11250 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11251 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11252 if test "${ac_cv_search_opendir+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255 ac_func_search_save_LIBS=$LIBS
11256 ac_cv_search_opendir=no
11257 cat >conftest.$ac_ext <<_ACEOF
11258 /* confdefs.h. */
11259 _ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263
11264 /* Override any gcc2 internal prototype to avoid an error. */
11265 #ifdef __cplusplus
11266 extern "C"
11267 #endif
11268 /* We use char because int might match the return type of a gcc2
11269 builtin and then its argument prototype would still apply. */
11270 char opendir ();
11271 int
11272 main ()
11273 {
11274 opendir ();
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 ac_cv_search_opendir="none required"
11302 else
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11305
11306 fi
11307 rm -f conftest.err conftest.$ac_objext \
11308 conftest$ac_exeext conftest.$ac_ext
11309 if test "$ac_cv_search_opendir" = no; then
11310 for ac_lib in dir; do
11311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11312 cat >conftest.$ac_ext <<_ACEOF
11313 /* confdefs.h. */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318
11319 /* Override any gcc2 internal prototype to avoid an error. */
11320 #ifdef __cplusplus
11321 extern "C"
11322 #endif
11323 /* We use char because int might match the return type of a gcc2
11324 builtin and then its argument prototype would still apply. */
11325 char opendir ();
11326 int
11327 main ()
11328 {
11329 opendir ();
11330 ;
11331 return 0;
11332 }
11333 _ACEOF
11334 rm -f conftest.$ac_objext conftest$ac_exeext
11335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11336 (eval $ac_link) 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } &&
11343 { ac_try='test -z "$ac_c_werror_flag"
11344 || test ! -s conftest.err'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; } &&
11350 { ac_try='test -s conftest$ac_exeext'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11353 ac_status=$?
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }; then
11356 ac_cv_search_opendir="-l$ac_lib"
11357 break
11358 else
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11361
11362 fi
11363 rm -f conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11365 done
11366 fi
11367 LIBS=$ac_func_search_save_LIBS
11368 fi
11369 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11370 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11371 if test "$ac_cv_search_opendir" != no; then
11372 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11373
11374 fi
11375
11376 else
11377 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11378 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11379 if test "${ac_cv_search_opendir+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382 ac_func_search_save_LIBS=$LIBS
11383 ac_cv_search_opendir=no
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h. */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390
11391 /* Override any gcc2 internal prototype to avoid an error. */
11392 #ifdef __cplusplus
11393 extern "C"
11394 #endif
11395 /* We use char because int might match the return type of a gcc2
11396 builtin and then its argument prototype would still apply. */
11397 char opendir ();
11398 int
11399 main ()
11400 {
11401 opendir ();
11402 ;
11403 return 0;
11404 }
11405 _ACEOF
11406 rm -f conftest.$ac_objext conftest$ac_exeext
11407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11408 (eval $ac_link) 2>conftest.er1
11409 ac_status=$?
11410 grep -v '^ *+' conftest.er1 >conftest.err
11411 rm -f conftest.er1
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
11415 { ac_try='test -z "$ac_c_werror_flag"
11416 || test ! -s conftest.err'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest$ac_exeext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 ac_cv_search_opendir="none required"
11429 else
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433 fi
11434 rm -f conftest.err conftest.$ac_objext \
11435 conftest$ac_exeext conftest.$ac_ext
11436 if test "$ac_cv_search_opendir" = no; then
11437 for ac_lib in x; do
11438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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 /* Override any gcc2 internal prototype to avoid an error. */
11447 #ifdef __cplusplus
11448 extern "C"
11449 #endif
11450 /* We use char because int might match the return type of a gcc2
11451 builtin and then its argument prototype would still apply. */
11452 char opendir ();
11453 int
11454 main ()
11455 {
11456 opendir ();
11457 ;
11458 return 0;
11459 }
11460 _ACEOF
11461 rm -f conftest.$ac_objext conftest$ac_exeext
11462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11463 (eval $ac_link) 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_c_werror_flag"
11471 || test ! -s conftest.err'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest$ac_exeext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_cv_search_opendir="-l$ac_lib"
11484 break
11485 else
11486 echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11488
11489 fi
11490 rm -f conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 done
11493 fi
11494 LIBS=$ac_func_search_save_LIBS
11495 fi
11496 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11497 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11498 if test "$ac_cv_search_opendir" != no; then
11499 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11500
11501 fi
11502
11503 fi
11504
11505 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11506 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11507 if test "${ac_cv_header_stat_broken+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510 cat >conftest.$ac_ext <<_ACEOF
11511 /* confdefs.h. */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516 #include <sys/types.h>
11517 #include <sys/stat.h>
11518
11519 #if defined(S_ISBLK) && defined(S_IFDIR)
11520 # if S_ISBLK (S_IFDIR)
11521 You lose.
11522 # endif
11523 #endif
11524
11525 #if defined(S_ISBLK) && defined(S_IFCHR)
11526 # if S_ISBLK (S_IFCHR)
11527 You lose.
11528 # endif
11529 #endif
11530
11531 #if defined(S_ISLNK) && defined(S_IFREG)
11532 # if S_ISLNK (S_IFREG)
11533 You lose.
11534 # endif
11535 #endif
11536
11537 #if defined(S_ISSOCK) && defined(S_IFREG)
11538 # if S_ISSOCK (S_IFREG)
11539 You lose.
11540 # endif
11541 #endif
11542
11543 _ACEOF
11544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11545 $EGREP "You lose" >/dev/null 2>&1; then
11546 ac_cv_header_stat_broken=yes
11547 else
11548 ac_cv_header_stat_broken=no
11549 fi
11550 rm -f conftest*
11551
11552 fi
11553 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11554 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11555 if test $ac_cv_header_stat_broken = yes; then
11556
11557 cat >>confdefs.h <<\_ACEOF
11558 #define STAT_MACROS_BROKEN 1
11559 _ACEOF
11560
11561 fi
11562
11563 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11564 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11565 if test "${ac_cv_header_stdc+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568 cat >conftest.$ac_ext <<_ACEOF
11569 /* confdefs.h. */
11570 _ACEOF
11571 cat confdefs.h >>conftest.$ac_ext
11572 cat >>conftest.$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include <stdlib.h>
11575 #include <stdarg.h>
11576 #include <string.h>
11577 #include <float.h>
11578
11579 int
11580 main ()
11581 {
11582
11583 ;
11584 return 0;
11585 }
11586 _ACEOF
11587 rm -f conftest.$ac_objext
11588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11589 (eval $ac_compile) 2>conftest.er1
11590 ac_status=$?
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
11596 { ac_try='test -z "$ac_c_werror_flag"
11597 || test ! -s conftest.err'
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; } &&
11603 { ac_try='test -s conftest.$ac_objext'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11606 ac_status=$?
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 ac_cv_header_stdc=yes
11610 else
11611 echo "$as_me: failed program was:" >&5
11612 sed 's/^/| /' conftest.$ac_ext >&5
11613
11614 ac_cv_header_stdc=no
11615 fi
11616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11617
11618 if test $ac_cv_header_stdc = yes; then
11619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11620 cat >conftest.$ac_ext <<_ACEOF
11621 /* confdefs.h. */
11622 _ACEOF
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11626 #include <string.h>
11627
11628 _ACEOF
11629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11630 $EGREP "memchr" >/dev/null 2>&1; then
11631 :
11632 else
11633 ac_cv_header_stdc=no
11634 fi
11635 rm -f conftest*
11636
11637 fi
11638
11639 if test $ac_cv_header_stdc = yes; then
11640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11641 cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h. */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 #include <stdlib.h>
11648
11649 _ACEOF
11650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11651 $EGREP "free" >/dev/null 2>&1; then
11652 :
11653 else
11654 ac_cv_header_stdc=no
11655 fi
11656 rm -f conftest*
11657
11658 fi
11659
11660 if test $ac_cv_header_stdc = yes; then
11661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11662 if test "$cross_compiling" = yes; then
11663 :
11664 else
11665 cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h. */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 #include <ctype.h>
11672 #if ((' ' & 0x0FF) == 0x020)
11673 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11674 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11675 #else
11676 # define ISLOWER(c) \
11677 (('a' <= (c) && (c) <= 'i') \
11678 || ('j' <= (c) && (c) <= 'r') \
11679 || ('s' <= (c) && (c) <= 'z'))
11680 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11681 #endif
11682
11683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11684 int
11685 main ()
11686 {
11687 int i;
11688 for (i = 0; i < 256; i++)
11689 if (XOR (islower (i), ISLOWER (i))
11690 || toupper (i) != TOUPPER (i))
11691 exit(2);
11692 exit (0);
11693 }
11694 _ACEOF
11695 rm -f conftest$ac_exeext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11697 (eval $ac_link) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11703 ac_status=$?
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 :
11707 else
11708 echo "$as_me: program exited with status $ac_status" >&5
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11711
11712 ( exit $ac_status )
11713 ac_cv_header_stdc=no
11714 fi
11715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11716 fi
11717 fi
11718 fi
11719 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11720 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11721 if test $ac_cv_header_stdc = yes; then
11722
11723 cat >>confdefs.h <<\_ACEOF
11724 #define STDC_HEADERS 1
11725 _ACEOF
11726
11727 fi
11728
11729
11730 for ac_header in nlist.h
11731 do
11732 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11734 echo "$as_me:$LINENO: checking for $ac_header" >&5
11735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11736 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 fi
11739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11740 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11741 else
11742 # Is the header compilable?
11743 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11745 cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h. */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751 $ac_includes_default
11752 #include <$ac_header>
11753 _ACEOF
11754 rm -f conftest.$ac_objext
11755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11756 (eval $ac_compile) 2>conftest.er1
11757 ac_status=$?
11758 grep -v '^ *+' conftest.er1 >conftest.err
11759 rm -f conftest.er1
11760 cat conftest.err >&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } &&
11763 { ac_try='test -z "$ac_c_werror_flag"
11764 || test ! -s conftest.err'
11765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766 (eval $ac_try) 2>&5
11767 ac_status=$?
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; } &&
11770 { ac_try='test -s conftest.$ac_objext'
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; }; then
11776 ac_header_compiler=yes
11777 else
11778 echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11780
11781 ac_header_compiler=no
11782 fi
11783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11784 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11785 echo "${ECHO_T}$ac_header_compiler" >&6
11786
11787 # Is the header present?
11788 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11789 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11790 cat >conftest.$ac_ext <<_ACEOF
11791 /* confdefs.h. */
11792 _ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796 #include <$ac_header>
11797 _ACEOF
11798 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11800 ac_status=$?
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } >/dev/null; then
11806 if test -s conftest.err; then
11807 ac_cpp_err=$ac_c_preproc_warn_flag
11808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11809 else
11810 ac_cpp_err=
11811 fi
11812 else
11813 ac_cpp_err=yes
11814 fi
11815 if test -z "$ac_cpp_err"; then
11816 ac_header_preproc=yes
11817 else
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11820
11821 ac_header_preproc=no
11822 fi
11823 rm -f conftest.err conftest.$ac_ext
11824 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11825 echo "${ECHO_T}$ac_header_preproc" >&6
11826
11827 # So? What about this header?
11828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11829 yes:no: )
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11834 ac_header_preproc=yes
11835 ;;
11836 no:yes:* )
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11849 (
11850 cat <<\_ASBOX
11851 ## ------------------------------------------ ##
11852 ## Report this to the AC_PACKAGE_NAME lists. ##
11853 ## ------------------------------------------ ##
11854 _ASBOX
11855 ) |
11856 sed "s/^/$as_me: WARNING: /" >&2
11857 ;;
11858 esac
11859 echo "$as_me:$LINENO: checking for $ac_header" >&5
11860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11861 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 else
11864 eval "$as_ac_Header=\$ac_header_preproc"
11865 fi
11866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11868
11869 fi
11870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11871 cat >>confdefs.h <<_ACEOF
11872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11873 _ACEOF
11874
11875 fi
11876
11877 done
11878
11879
11880 for ac_header in link.h
11881 do
11882 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11883 echo "$as_me:$LINENO: checking for $ac_header" >&5
11884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 else
11888 cat >conftest.$ac_ext <<_ACEOF
11889 /* confdefs.h. */
11890 _ACEOF
11891 cat confdefs.h >>conftest.$ac_ext
11892 cat >>conftest.$ac_ext <<_ACEOF
11893 /* end confdefs.h. */
11894 #if HAVE_SYS_TYPES_H
11895 # include <sys/types.h>
11896 #endif
11897 #if HAVE_NLIST_H
11898 # include <nlist.h>
11899 #endif
11900
11901
11902 #include <$ac_header>
11903 _ACEOF
11904 rm -f conftest.$ac_objext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11906 (eval $ac_compile) 2>conftest.er1
11907 ac_status=$?
11908 grep -v '^ *+' conftest.er1 >conftest.err
11909 rm -f conftest.er1
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try='test -z "$ac_c_werror_flag"
11914 || test ! -s conftest.err'
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; } &&
11920 { ac_try='test -s conftest.$ac_objext'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
11926 eval "$as_ac_Header=yes"
11927 else
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11930
11931 eval "$as_ac_Header=no"
11932 fi
11933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11934 fi
11935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11936 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11938 cat >>confdefs.h <<_ACEOF
11939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11940 _ACEOF
11941
11942 fi
11943
11944 done
11945
11946
11947 for ac_header in machine/reg.h
11948 do
11949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11951 echo "$as_me:$LINENO: checking for $ac_header" >&5
11952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 fi
11956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11958 else
11959 # Is the header compilable?
11960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11962 cat >conftest.$ac_ext <<_ACEOF
11963 /* confdefs.h. */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 $ac_includes_default
11969 #include <$ac_header>
11970 _ACEOF
11971 rm -f conftest.$ac_objext
11972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11973 (eval $ac_compile) 2>conftest.er1
11974 ac_status=$?
11975 grep -v '^ *+' conftest.er1 >conftest.err
11976 rm -f conftest.er1
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
11980 { ac_try='test -z "$ac_c_werror_flag"
11981 || test ! -s conftest.err'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11984 ac_status=$?
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; } &&
11987 { ac_try='test -s conftest.$ac_objext'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 ac_header_compiler=yes
11994 else
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11997
11998 ac_header_compiler=no
11999 fi
12000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12002 echo "${ECHO_T}$ac_header_compiler" >&6
12003
12004 # Is the header present?
12005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12007 cat >conftest.$ac_ext <<_ACEOF
12008 /* confdefs.h. */
12009 _ACEOF
12010 cat confdefs.h >>conftest.$ac_ext
12011 cat >>conftest.$ac_ext <<_ACEOF
12012 /* end confdefs.h. */
12013 #include <$ac_header>
12014 _ACEOF
12015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12017 ac_status=$?
12018 grep -v '^ *+' conftest.er1 >conftest.err
12019 rm -f conftest.er1
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } >/dev/null; then
12023 if test -s conftest.err; then
12024 ac_cpp_err=$ac_c_preproc_warn_flag
12025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12026 else
12027 ac_cpp_err=
12028 fi
12029 else
12030 ac_cpp_err=yes
12031 fi
12032 if test -z "$ac_cpp_err"; then
12033 ac_header_preproc=yes
12034 else
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12037
12038 ac_header_preproc=no
12039 fi
12040 rm -f conftest.err conftest.$ac_ext
12041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12042 echo "${ECHO_T}$ac_header_preproc" >&6
12043
12044 # So? What about this header?
12045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12046 yes:no: )
12047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12051 ac_header_preproc=yes
12052 ;;
12053 no:yes:* )
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12066 (
12067 cat <<\_ASBOX
12068 ## ------------------------------------------ ##
12069 ## Report this to the AC_PACKAGE_NAME lists. ##
12070 ## ------------------------------------------ ##
12071 _ASBOX
12072 ) |
12073 sed "s/^/$as_me: WARNING: /" >&2
12074 ;;
12075 esac
12076 echo "$as_me:$LINENO: checking for $ac_header" >&5
12077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 else
12081 eval "$as_ac_Header=\$ac_header_preproc"
12082 fi
12083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12085
12086 fi
12087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12088 cat >>confdefs.h <<_ACEOF
12089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12090 _ACEOF
12091
12092 fi
12093
12094 done
12095
12096
12097
12098 for ac_header in poll.h sys/poll.h
12099 do
12100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12102 echo "$as_me:$LINENO: checking for $ac_header" >&5
12103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 fi
12107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12109 else
12110 # Is the header compilable?
12111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12113 cat >conftest.$ac_ext <<_ACEOF
12114 /* confdefs.h. */
12115 _ACEOF
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12119 $ac_includes_default
12120 #include <$ac_header>
12121 _ACEOF
12122 rm -f conftest.$ac_objext
12123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12124 (eval $ac_compile) 2>conftest.er1
12125 ac_status=$?
12126 grep -v '^ *+' conftest.er1 >conftest.err
12127 rm -f conftest.er1
12128 cat conftest.err >&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } &&
12131 { ac_try='test -z "$ac_c_werror_flag"
12132 || test ! -s conftest.err'
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; } &&
12138 { ac_try='test -s conftest.$ac_objext'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12144 ac_header_compiler=yes
12145 else
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.$ac_ext >&5
12148
12149 ac_header_compiler=no
12150 fi
12151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12152 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12153 echo "${ECHO_T}$ac_header_compiler" >&6
12154
12155 # Is the header present?
12156 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12158 cat >conftest.$ac_ext <<_ACEOF
12159 /* confdefs.h. */
12160 _ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
12164 #include <$ac_header>
12165 _ACEOF
12166 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12168 ac_status=$?
12169 grep -v '^ *+' conftest.er1 >conftest.err
12170 rm -f conftest.er1
12171 cat conftest.err >&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } >/dev/null; then
12174 if test -s conftest.err; then
12175 ac_cpp_err=$ac_c_preproc_warn_flag
12176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12177 else
12178 ac_cpp_err=
12179 fi
12180 else
12181 ac_cpp_err=yes
12182 fi
12183 if test -z "$ac_cpp_err"; then
12184 ac_header_preproc=yes
12185 else
12186 echo "$as_me: failed program was:" >&5
12187 sed 's/^/| /' conftest.$ac_ext >&5
12188
12189 ac_header_preproc=no
12190 fi
12191 rm -f conftest.err conftest.$ac_ext
12192 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12193 echo "${ECHO_T}$ac_header_preproc" >&6
12194
12195 # So? What about this header?
12196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12197 yes:no: )
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12202 ac_header_preproc=yes
12203 ;;
12204 no:yes:* )
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12217 (
12218 cat <<\_ASBOX
12219 ## ------------------------------------------ ##
12220 ## Report this to the AC_PACKAGE_NAME lists. ##
12221 ## ------------------------------------------ ##
12222 _ASBOX
12223 ) |
12224 sed "s/^/$as_me: WARNING: /" >&2
12225 ;;
12226 esac
12227 echo "$as_me:$LINENO: checking for $ac_header" >&5
12228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12229 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 else
12232 eval "$as_ac_Header=\$ac_header_preproc"
12233 fi
12234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12236
12237 fi
12238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12239 cat >>confdefs.h <<_ACEOF
12240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12241 _ACEOF
12242
12243 fi
12244
12245 done
12246
12247
12248
12249
12250 for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12251 do
12252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
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 fi
12259 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12260 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12261 else
12262 # Is the header compilable?
12263 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12265 cat >conftest.$ac_ext <<_ACEOF
12266 /* confdefs.h. */
12267 _ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12271 $ac_includes_default
12272 #include <$ac_header>
12273 _ACEOF
12274 rm -f conftest.$ac_objext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276 (eval $ac_compile) 2>conftest.er1
12277 ac_status=$?
12278 grep -v '^ *+' conftest.er1 >conftest.err
12279 rm -f conftest.er1
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try='test -z "$ac_c_werror_flag"
12284 || test ! -s conftest.err'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest.$ac_objext'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 ac_header_compiler=yes
12297 else
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301 ac_header_compiler=no
12302 fi
12303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12304 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12305 echo "${ECHO_T}$ac_header_compiler" >&6
12306
12307 # Is the header present?
12308 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 #include <$ac_header>
12317 _ACEOF
12318 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12320 ac_status=$?
12321 grep -v '^ *+' conftest.er1 >conftest.err
12322 rm -f conftest.er1
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } >/dev/null; then
12326 if test -s conftest.err; then
12327 ac_cpp_err=$ac_c_preproc_warn_flag
12328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12329 else
12330 ac_cpp_err=
12331 fi
12332 else
12333 ac_cpp_err=yes
12334 fi
12335 if test -z "$ac_cpp_err"; then
12336 ac_header_preproc=yes
12337 else
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12340
12341 ac_header_preproc=no
12342 fi
12343 rm -f conftest.err conftest.$ac_ext
12344 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12345 echo "${ECHO_T}$ac_header_preproc" >&6
12346
12347 # So? What about this header?
12348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12349 yes:no: )
12350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12354 ac_header_preproc=yes
12355 ;;
12356 no:yes:* )
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12360 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12364 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12369 (
12370 cat <<\_ASBOX
12371 ## ------------------------------------------ ##
12372 ## Report this to the AC_PACKAGE_NAME lists. ##
12373 ## ------------------------------------------ ##
12374 _ASBOX
12375 ) |
12376 sed "s/^/$as_me: WARNING: /" >&2
12377 ;;
12378 esac
12379 echo "$as_me:$LINENO: checking for $ac_header" >&5
12380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 else
12384 eval "$as_ac_Header=\$ac_header_preproc"
12385 fi
12386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12388
12389 fi
12390 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12391 cat >>confdefs.h <<_ACEOF
12392 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12393 _ACEOF
12394
12395 fi
12396
12397 done
12398
12399
12400 for ac_header in signal.h
12401 do
12402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12403 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12404 echo "$as_me:$LINENO: checking for $ac_header" >&5
12405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 fi
12409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12410 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12411 else
12412 # Is the header compilable?
12413 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12415 cat >conftest.$ac_ext <<_ACEOF
12416 /* confdefs.h. */
12417 _ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 $ac_includes_default
12422 #include <$ac_header>
12423 _ACEOF
12424 rm -f conftest.$ac_objext
12425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12426 (eval $ac_compile) 2>conftest.er1
12427 ac_status=$?
12428 grep -v '^ *+' conftest.er1 >conftest.err
12429 rm -f conftest.er1
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } &&
12433 { ac_try='test -z "$ac_c_werror_flag"
12434 || test ! -s conftest.err'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest.$ac_objext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_header_compiler=yes
12447 else
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12450
12451 ac_header_compiler=no
12452 fi
12453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12455 echo "${ECHO_T}$ac_header_compiler" >&6
12456
12457 # Is the header present?
12458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h. */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h. */
12466 #include <$ac_header>
12467 _ACEOF
12468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } >/dev/null; then
12476 if test -s conftest.err; then
12477 ac_cpp_err=$ac_c_preproc_warn_flag
12478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12479 else
12480 ac_cpp_err=
12481 fi
12482 else
12483 ac_cpp_err=yes
12484 fi
12485 if test -z "$ac_cpp_err"; then
12486 ac_header_preproc=yes
12487 else
12488 echo "$as_me: failed program was:" >&5
12489 sed 's/^/| /' conftest.$ac_ext >&5
12490
12491 ac_header_preproc=no
12492 fi
12493 rm -f conftest.err conftest.$ac_ext
12494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12495 echo "${ECHO_T}$ac_header_preproc" >&6
12496
12497 # So? What about this header?
12498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12499 yes:no: )
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12504 ac_header_preproc=yes
12505 ;;
12506 no:yes:* )
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12519 (
12520 cat <<\_ASBOX
12521 ## ------------------------------------------ ##
12522 ## Report this to the AC_PACKAGE_NAME lists. ##
12523 ## ------------------------------------------ ##
12524 _ASBOX
12525 ) |
12526 sed "s/^/$as_me: WARNING: /" >&2
12527 ;;
12528 esac
12529 echo "$as_me:$LINENO: checking for $ac_header" >&5
12530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 else
12534 eval "$as_ac_Header=\$ac_header_preproc"
12535 fi
12536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12538
12539 fi
12540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12541 cat >>confdefs.h <<_ACEOF
12542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12543 _ACEOF
12544
12545 fi
12546
12547 done
12548
12549
12550 for ac_header in stddef.h
12551 do
12552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12554 echo "$as_me:$LINENO: checking for $ac_header" >&5
12555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 fi
12559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12561 else
12562 # Is the header compilable?
12563 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12565 cat >conftest.$ac_ext <<_ACEOF
12566 /* confdefs.h. */
12567 _ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h. */
12571 $ac_includes_default
12572 #include <$ac_header>
12573 _ACEOF
12574 rm -f conftest.$ac_objext
12575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12576 (eval $ac_compile) 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
12583 { ac_try='test -z "$ac_c_werror_flag"
12584 || test ! -s conftest.err'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; } &&
12590 { ac_try='test -s conftest.$ac_objext'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12593 ac_status=$?
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; }; then
12596 ac_header_compiler=yes
12597 else
12598 echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12600
12601 ac_header_compiler=no
12602 fi
12603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12604 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12605 echo "${ECHO_T}$ac_header_compiler" >&6
12606
12607 # Is the header present?
12608 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12610 cat >conftest.$ac_ext <<_ACEOF
12611 /* confdefs.h. */
12612 _ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h. */
12616 #include <$ac_header>
12617 _ACEOF
12618 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12620 ac_status=$?
12621 grep -v '^ *+' conftest.er1 >conftest.err
12622 rm -f conftest.er1
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } >/dev/null; then
12626 if test -s conftest.err; then
12627 ac_cpp_err=$ac_c_preproc_warn_flag
12628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12629 else
12630 ac_cpp_err=
12631 fi
12632 else
12633 ac_cpp_err=yes
12634 fi
12635 if test -z "$ac_cpp_err"; then
12636 ac_header_preproc=yes
12637 else
12638 echo "$as_me: failed program was:" >&5
12639 sed 's/^/| /' conftest.$ac_ext >&5
12640
12641 ac_header_preproc=no
12642 fi
12643 rm -f conftest.err conftest.$ac_ext
12644 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12645 echo "${ECHO_T}$ac_header_preproc" >&6
12646
12647 # So? What about this header?
12648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12649 yes:no: )
12650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12654 ac_header_preproc=yes
12655 ;;
12656 no:yes:* )
12657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12664 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12669 (
12670 cat <<\_ASBOX
12671 ## ------------------------------------------ ##
12672 ## Report this to the AC_PACKAGE_NAME lists. ##
12673 ## ------------------------------------------ ##
12674 _ASBOX
12675 ) |
12676 sed "s/^/$as_me: WARNING: /" >&2
12677 ;;
12678 esac
12679 echo "$as_me:$LINENO: checking for $ac_header" >&5
12680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12683 else
12684 eval "$as_ac_Header=\$ac_header_preproc"
12685 fi
12686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12687 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12688
12689 fi
12690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12691 cat >>confdefs.h <<_ACEOF
12692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12693 _ACEOF
12694
12695 fi
12696
12697 done
12698
12699
12700 for ac_header in stdlib.h
12701 do
12702 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12704 echo "$as_me:$LINENO: checking for $ac_header" >&5
12705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12706 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12708 fi
12709 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12710 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12711 else
12712 # Is the header compilable?
12713 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12715 cat >conftest.$ac_ext <<_ACEOF
12716 /* confdefs.h. */
12717 _ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h. */
12721 $ac_includes_default
12722 #include <$ac_header>
12723 _ACEOF
12724 rm -f conftest.$ac_objext
12725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12726 (eval $ac_compile) 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } &&
12733 { ac_try='test -z "$ac_c_werror_flag"
12734 || test ! -s conftest.err'
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; } &&
12740 { ac_try='test -s conftest.$ac_objext'
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; }; then
12746 ac_header_compiler=yes
12747 else
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12750
12751 ac_header_compiler=no
12752 fi
12753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12755 echo "${ECHO_T}$ac_header_compiler" >&6
12756
12757 # Is the header present?
12758 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12759 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12760 cat >conftest.$ac_ext <<_ACEOF
12761 /* confdefs.h. */
12762 _ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12766 #include <$ac_header>
12767 _ACEOF
12768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12770 ac_status=$?
12771 grep -v '^ *+' conftest.er1 >conftest.err
12772 rm -f conftest.er1
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } >/dev/null; then
12776 if test -s conftest.err; then
12777 ac_cpp_err=$ac_c_preproc_warn_flag
12778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12779 else
12780 ac_cpp_err=
12781 fi
12782 else
12783 ac_cpp_err=yes
12784 fi
12785 if test -z "$ac_cpp_err"; then
12786 ac_header_preproc=yes
12787 else
12788 echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12790
12791 ac_header_preproc=no
12792 fi
12793 rm -f conftest.err conftest.$ac_ext
12794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12795 echo "${ECHO_T}$ac_header_preproc" >&6
12796
12797 # So? What about this header?
12798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12799 yes:no: )
12800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12804 ac_header_preproc=yes
12805 ;;
12806 no:yes:* )
12807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12819 (
12820 cat <<\_ASBOX
12821 ## ------------------------------------------ ##
12822 ## Report this to the AC_PACKAGE_NAME lists. ##
12823 ## ------------------------------------------ ##
12824 _ASBOX
12825 ) |
12826 sed "s/^/$as_me: WARNING: /" >&2
12827 ;;
12828 esac
12829 echo "$as_me:$LINENO: checking for $ac_header" >&5
12830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12833 else
12834 eval "$as_ac_Header=\$ac_header_preproc"
12835 fi
12836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12837 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12838
12839 fi
12840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12841 cat >>confdefs.h <<_ACEOF
12842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12843 _ACEOF
12844
12845 fi
12846
12847 done
12848
12849
12850 for ac_header in stdint.h
12851 do
12852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12854 echo "$as_me:$LINENO: checking for $ac_header" >&5
12855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12858 fi
12859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12860 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12861 else
12862 # Is the header compilable?
12863 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12865 cat >conftest.$ac_ext <<_ACEOF
12866 /* confdefs.h. */
12867 _ACEOF
12868 cat confdefs.h >>conftest.$ac_ext
12869 cat >>conftest.$ac_ext <<_ACEOF
12870 /* end confdefs.h. */
12871 $ac_includes_default
12872 #include <$ac_header>
12873 _ACEOF
12874 rm -f conftest.$ac_objext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12876 (eval $ac_compile) 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
12883 { ac_try='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest.$ac_objext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_header_compiler=yes
12897 else
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12900
12901 ac_header_compiler=no
12902 fi
12903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12904 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12905 echo "${ECHO_T}$ac_header_compiler" >&6
12906
12907 # Is the header present?
12908 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12909 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12910 cat >conftest.$ac_ext <<_ACEOF
12911 /* confdefs.h. */
12912 _ACEOF
12913 cat confdefs.h >>conftest.$ac_ext
12914 cat >>conftest.$ac_ext <<_ACEOF
12915 /* end confdefs.h. */
12916 #include <$ac_header>
12917 _ACEOF
12918 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12920 ac_status=$?
12921 grep -v '^ *+' conftest.er1 >conftest.err
12922 rm -f conftest.er1
12923 cat conftest.err >&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } >/dev/null; then
12926 if test -s conftest.err; then
12927 ac_cpp_err=$ac_c_preproc_warn_flag
12928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12929 else
12930 ac_cpp_err=
12931 fi
12932 else
12933 ac_cpp_err=yes
12934 fi
12935 if test -z "$ac_cpp_err"; then
12936 ac_header_preproc=yes
12937 else
12938 echo "$as_me: failed program was:" >&5
12939 sed 's/^/| /' conftest.$ac_ext >&5
12940
12941 ac_header_preproc=no
12942 fi
12943 rm -f conftest.err conftest.$ac_ext
12944 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12945 echo "${ECHO_T}$ac_header_preproc" >&6
12946
12947 # So? What about this header?
12948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12949 yes:no: )
12950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12951 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12953 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12954 ac_header_preproc=yes
12955 ;;
12956 no:yes:* )
12957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12958 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12960 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12962 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12964 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12966 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12968 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12969 (
12970 cat <<\_ASBOX
12971 ## ------------------------------------------ ##
12972 ## Report this to the AC_PACKAGE_NAME lists. ##
12973 ## ------------------------------------------ ##
12974 _ASBOX
12975 ) |
12976 sed "s/^/$as_me: WARNING: /" >&2
12977 ;;
12978 esac
12979 echo "$as_me:$LINENO: checking for $ac_header" >&5
12980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12981 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12982 echo $ECHO_N "(cached) $ECHO_C" >&6
12983 else
12984 eval "$as_ac_Header=\$ac_header_preproc"
12985 fi
12986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12988
12989 fi
12990 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12991 cat >>confdefs.h <<_ACEOF
12992 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12993 _ACEOF
12994
12995 fi
12996
12997 done
12998
12999
13000
13001
13002 for ac_header in string.h memory.h strings.h
13003 do
13004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13006 echo "$as_me:$LINENO: checking for $ac_header" >&5
13007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13010 fi
13011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13013 else
13014 # Is the header compilable?
13015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13017 cat >conftest.$ac_ext <<_ACEOF
13018 /* confdefs.h. */
13019 _ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13023 $ac_includes_default
13024 #include <$ac_header>
13025 _ACEOF
13026 rm -f conftest.$ac_objext
13027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13028 (eval $ac_compile) 2>conftest.er1
13029 ac_status=$?
13030 grep -v '^ *+' conftest.er1 >conftest.err
13031 rm -f conftest.er1
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
13035 { ac_try='test -z "$ac_c_werror_flag"
13036 || test ! -s conftest.err'
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest.$ac_objext'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 ac_header_compiler=yes
13049 else
13050 echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13052
13053 ac_header_compiler=no
13054 fi
13055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13057 echo "${ECHO_T}$ac_header_compiler" >&6
13058
13059 # Is the header present?
13060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13062 cat >conftest.$ac_ext <<_ACEOF
13063 /* confdefs.h. */
13064 _ACEOF
13065 cat confdefs.h >>conftest.$ac_ext
13066 cat >>conftest.$ac_ext <<_ACEOF
13067 /* end confdefs.h. */
13068 #include <$ac_header>
13069 _ACEOF
13070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13072 ac_status=$?
13073 grep -v '^ *+' conftest.er1 >conftest.err
13074 rm -f conftest.er1
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } >/dev/null; then
13078 if test -s conftest.err; then
13079 ac_cpp_err=$ac_c_preproc_warn_flag
13080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13081 else
13082 ac_cpp_err=
13083 fi
13084 else
13085 ac_cpp_err=yes
13086 fi
13087 if test -z "$ac_cpp_err"; then
13088 ac_header_preproc=yes
13089 else
13090 echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13092
13093 ac_header_preproc=no
13094 fi
13095 rm -f conftest.err conftest.$ac_ext
13096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13097 echo "${ECHO_T}$ac_header_preproc" >&6
13098
13099 # So? What about this header?
13100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13101 yes:no: )
13102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13106 ac_header_preproc=yes
13107 ;;
13108 no:yes:* )
13109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13112 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13116 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13121 (
13122 cat <<\_ASBOX
13123 ## ------------------------------------------ ##
13124 ## Report this to the AC_PACKAGE_NAME lists. ##
13125 ## ------------------------------------------ ##
13126 _ASBOX
13127 ) |
13128 sed "s/^/$as_me: WARNING: /" >&2
13129 ;;
13130 esac
13131 echo "$as_me:$LINENO: checking for $ac_header" >&5
13132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 else
13136 eval "$as_ac_Header=\$ac_header_preproc"
13137 fi
13138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13140
13141 fi
13142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13143 cat >>confdefs.h <<_ACEOF
13144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13145 _ACEOF
13146
13147 fi
13148
13149 done
13150
13151
13152 for ac_header in sys/fault.h
13153 do
13154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13156 echo "$as_me:$LINENO: checking for $ac_header" >&5
13157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13158 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 fi
13161 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13162 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13163 else
13164 # Is the header compilable?
13165 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13167 cat >conftest.$ac_ext <<_ACEOF
13168 /* confdefs.h. */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13173 $ac_includes_default
13174 #include <$ac_header>
13175 _ACEOF
13176 rm -f conftest.$ac_objext
13177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13178 (eval $ac_compile) 2>conftest.er1
13179 ac_status=$?
13180 grep -v '^ *+' conftest.er1 >conftest.err
13181 rm -f conftest.er1
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } &&
13185 { ac_try='test -z "$ac_c_werror_flag"
13186 || test ! -s conftest.err'
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13189 ac_status=$?
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; } &&
13192 { ac_try='test -s conftest.$ac_objext'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; }; then
13198 ac_header_compiler=yes
13199 else
13200 echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13202
13203 ac_header_compiler=no
13204 fi
13205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13207 echo "${ECHO_T}$ac_header_compiler" >&6
13208
13209 # Is the header present?
13210 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13212 cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h. */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 #include <$ac_header>
13219 _ACEOF
13220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13222 ac_status=$?
13223 grep -v '^ *+' conftest.er1 >conftest.err
13224 rm -f conftest.er1
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } >/dev/null; then
13228 if test -s conftest.err; then
13229 ac_cpp_err=$ac_c_preproc_warn_flag
13230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13231 else
13232 ac_cpp_err=
13233 fi
13234 else
13235 ac_cpp_err=yes
13236 fi
13237 if test -z "$ac_cpp_err"; then
13238 ac_header_preproc=yes
13239 else
13240 echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13242
13243 ac_header_preproc=no
13244 fi
13245 rm -f conftest.err conftest.$ac_ext
13246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13247 echo "${ECHO_T}$ac_header_preproc" >&6
13248
13249 # So? What about this header?
13250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13251 yes:no: )
13252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13253 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13255 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13256 ac_header_preproc=yes
13257 ;;
13258 no:yes:* )
13259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13260 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13262 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13264 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13266 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13268 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13270 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13271 (
13272 cat <<\_ASBOX
13273 ## ------------------------------------------ ##
13274 ## Report this to the AC_PACKAGE_NAME lists. ##
13275 ## ------------------------------------------ ##
13276 _ASBOX
13277 ) |
13278 sed "s/^/$as_me: WARNING: /" >&2
13279 ;;
13280 esac
13281 echo "$as_me:$LINENO: checking for $ac_header" >&5
13282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13284 echo $ECHO_N "(cached) $ECHO_C" >&6
13285 else
13286 eval "$as_ac_Header=\$ac_header_preproc"
13287 fi
13288 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13289 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13290
13291 fi
13292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13293 cat >>confdefs.h <<_ACEOF
13294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13295 _ACEOF
13296
13297 fi
13298
13299 done
13300
13301
13302 for ac_header in sys/file.h
13303 do
13304 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13306 echo "$as_me:$LINENO: checking for $ac_header" >&5
13307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13310 fi
13311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13313 else
13314 # Is the header compilable?
13315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 #include <$ac_header>
13325 _ACEOF
13326 rm -f conftest.$ac_objext
13327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13328 (eval $ac_compile) 2>conftest.er1
13329 ac_status=$?
13330 grep -v '^ *+' conftest.er1 >conftest.err
13331 rm -f conftest.er1
13332 cat conftest.err >&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } &&
13335 { ac_try='test -z "$ac_c_werror_flag"
13336 || test ! -s conftest.err'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13339 ac_status=$?
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; } &&
13342 { ac_try='test -s conftest.$ac_objext'
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_header_compiler=yes
13349 else
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13352
13353 ac_header_compiler=no
13354 fi
13355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13357 echo "${ECHO_T}$ac_header_compiler" >&6
13358
13359 # Is the header present?
13360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13362 cat >conftest.$ac_ext <<_ACEOF
13363 /* confdefs.h. */
13364 _ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13368 #include <$ac_header>
13369 _ACEOF
13370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13372 ac_status=$?
13373 grep -v '^ *+' conftest.er1 >conftest.err
13374 rm -f conftest.er1
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } >/dev/null; then
13378 if test -s conftest.err; then
13379 ac_cpp_err=$ac_c_preproc_warn_flag
13380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13381 else
13382 ac_cpp_err=
13383 fi
13384 else
13385 ac_cpp_err=yes
13386 fi
13387 if test -z "$ac_cpp_err"; then
13388 ac_header_preproc=yes
13389 else
13390 echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13392
13393 ac_header_preproc=no
13394 fi
13395 rm -f conftest.err conftest.$ac_ext
13396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13397 echo "${ECHO_T}$ac_header_preproc" >&6
13398
13399 # So? What about this header?
13400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13401 yes:no: )
13402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13406 ac_header_preproc=yes
13407 ;;
13408 no:yes:* )
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13421 (
13422 cat <<\_ASBOX
13423 ## ------------------------------------------ ##
13424 ## Report this to the AC_PACKAGE_NAME lists. ##
13425 ## ------------------------------------------ ##
13426 _ASBOX
13427 ) |
13428 sed "s/^/$as_me: WARNING: /" >&2
13429 ;;
13430 esac
13431 echo "$as_me:$LINENO: checking for $ac_header" >&5
13432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
13435 else
13436 eval "$as_ac_Header=\$ac_header_preproc"
13437 fi
13438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13440
13441 fi
13442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13443 cat >>confdefs.h <<_ACEOF
13444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13445 _ACEOF
13446
13447 fi
13448
13449 done
13450
13451
13452 for ac_header in sys/filio.h
13453 do
13454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13456 echo "$as_me:$LINENO: checking for $ac_header" >&5
13457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 fi
13461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13463 else
13464 # Is the header compilable?
13465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13467 cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h. */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h. */
13473 $ac_includes_default
13474 #include <$ac_header>
13475 _ACEOF
13476 rm -f conftest.$ac_objext
13477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>conftest.er1
13479 ac_status=$?
13480 grep -v '^ *+' conftest.er1 >conftest.err
13481 rm -f conftest.er1
13482 cat conftest.err >&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
13485 { ac_try='test -z "$ac_c_werror_flag"
13486 || test ! -s conftest.err'
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest.$ac_objext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_header_compiler=yes
13499 else
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13502
13503 ac_header_compiler=no
13504 fi
13505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13507 echo "${ECHO_T}$ac_header_compiler" >&6
13508
13509 # Is the header present?
13510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13512 cat >conftest.$ac_ext <<_ACEOF
13513 /* confdefs.h. */
13514 _ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13518 #include <$ac_header>
13519 _ACEOF
13520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13522 ac_status=$?
13523 grep -v '^ *+' conftest.er1 >conftest.err
13524 rm -f conftest.er1
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } >/dev/null; then
13528 if test -s conftest.err; then
13529 ac_cpp_err=$ac_c_preproc_warn_flag
13530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13531 else
13532 ac_cpp_err=
13533 fi
13534 else
13535 ac_cpp_err=yes
13536 fi
13537 if test -z "$ac_cpp_err"; then
13538 ac_header_preproc=yes
13539 else
13540 echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543 ac_header_preproc=no
13544 fi
13545 rm -f conftest.err conftest.$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547 echo "${ECHO_T}$ac_header_preproc" >&6
13548
13549 # So? What about this header?
13550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13551 yes:no: )
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13556 ac_header_preproc=yes
13557 ;;
13558 no:yes:* )
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13562 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13566 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13571 (
13572 cat <<\_ASBOX
13573 ## ------------------------------------------ ##
13574 ## Report this to the AC_PACKAGE_NAME lists. ##
13575 ## ------------------------------------------ ##
13576 _ASBOX
13577 ) |
13578 sed "s/^/$as_me: WARNING: /" >&2
13579 ;;
13580 esac
13581 echo "$as_me:$LINENO: checking for $ac_header" >&5
13582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586 eval "$as_ac_Header=\$ac_header_preproc"
13587 fi
13588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13590
13591 fi
13592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13593 cat >>confdefs.h <<_ACEOF
13594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13595 _ACEOF
13596
13597 fi
13598
13599 done
13600
13601
13602 for ac_header in sys/ioctl.h
13603 do
13604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13605 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13606 echo "$as_me:$LINENO: checking for $ac_header" >&5
13607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13608 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610 fi
13611 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13612 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13613 else
13614 # Is the header compilable?
13615 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13617 cat >conftest.$ac_ext <<_ACEOF
13618 /* confdefs.h. */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 $ac_includes_default
13624 #include <$ac_header>
13625 _ACEOF
13626 rm -f conftest.$ac_objext
13627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13628 (eval $ac_compile) 2>conftest.er1
13629 ac_status=$?
13630 grep -v '^ *+' conftest.er1 >conftest.err
13631 rm -f conftest.er1
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
13635 { ac_try='test -z "$ac_c_werror_flag"
13636 || test ! -s conftest.err'
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; } &&
13642 { ac_try='test -s conftest.$ac_objext'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13648 ac_header_compiler=yes
13649 else
13650 echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13652
13653 ac_header_compiler=no
13654 fi
13655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13656 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13657 echo "${ECHO_T}$ac_header_compiler" >&6
13658
13659 # Is the header present?
13660 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13662 cat >conftest.$ac_ext <<_ACEOF
13663 /* confdefs.h. */
13664 _ACEOF
13665 cat confdefs.h >>conftest.$ac_ext
13666 cat >>conftest.$ac_ext <<_ACEOF
13667 /* end confdefs.h. */
13668 #include <$ac_header>
13669 _ACEOF
13670 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13672 ac_status=$?
13673 grep -v '^ *+' conftest.er1 >conftest.err
13674 rm -f conftest.er1
13675 cat conftest.err >&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } >/dev/null; then
13678 if test -s conftest.err; then
13679 ac_cpp_err=$ac_c_preproc_warn_flag
13680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13681 else
13682 ac_cpp_err=
13683 fi
13684 else
13685 ac_cpp_err=yes
13686 fi
13687 if test -z "$ac_cpp_err"; then
13688 ac_header_preproc=yes
13689 else
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693 ac_header_preproc=no
13694 fi
13695 rm -f conftest.err conftest.$ac_ext
13696 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13697 echo "${ECHO_T}$ac_header_preproc" >&6
13698
13699 # So? What about this header?
13700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13701 yes:no: )
13702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13706 ac_header_preproc=yes
13707 ;;
13708 no:yes:* )
13709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13721 (
13722 cat <<\_ASBOX
13723 ## ------------------------------------------ ##
13724 ## Report this to the AC_PACKAGE_NAME lists. ##
13725 ## ------------------------------------------ ##
13726 _ASBOX
13727 ) |
13728 sed "s/^/$as_me: WARNING: /" >&2
13729 ;;
13730 esac
13731 echo "$as_me:$LINENO: checking for $ac_header" >&5
13732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13733 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13734 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 else
13736 eval "$as_ac_Header=\$ac_header_preproc"
13737 fi
13738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13739 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13740
13741 fi
13742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13743 cat >>confdefs.h <<_ACEOF
13744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13745 _ACEOF
13746
13747 fi
13748
13749 done
13750
13751
13752 for ac_header in sys/param.h
13753 do
13754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13755 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13756 echo "$as_me:$LINENO: checking for $ac_header" >&5
13757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 fi
13761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13762 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13763 else
13764 # Is the header compilable?
13765 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13767 cat >conftest.$ac_ext <<_ACEOF
13768 /* confdefs.h. */
13769 _ACEOF
13770 cat confdefs.h >>conftest.$ac_ext
13771 cat >>conftest.$ac_ext <<_ACEOF
13772 /* end confdefs.h. */
13773 $ac_includes_default
13774 #include <$ac_header>
13775 _ACEOF
13776 rm -f conftest.$ac_objext
13777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13778 (eval $ac_compile) 2>conftest.er1
13779 ac_status=$?
13780 grep -v '^ *+' conftest.er1 >conftest.err
13781 rm -f conftest.er1
13782 cat conftest.err >&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try='test -z "$ac_c_werror_flag"
13786 || test ! -s conftest.err'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; } &&
13792 { ac_try='test -s conftest.$ac_objext'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 ac_header_compiler=yes
13799 else
13800 echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13802
13803 ac_header_compiler=no
13804 fi
13805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13806 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13807 echo "${ECHO_T}$ac_header_compiler" >&6
13808
13809 # Is the header present?
13810 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13812 cat >conftest.$ac_ext <<_ACEOF
13813 /* confdefs.h. */
13814 _ACEOF
13815 cat confdefs.h >>conftest.$ac_ext
13816 cat >>conftest.$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13818 #include <$ac_header>
13819 _ACEOF
13820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13822 ac_status=$?
13823 grep -v '^ *+' conftest.er1 >conftest.err
13824 rm -f conftest.er1
13825 cat conftest.err >&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } >/dev/null; then
13828 if test -s conftest.err; then
13829 ac_cpp_err=$ac_c_preproc_warn_flag
13830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13831 else
13832 ac_cpp_err=
13833 fi
13834 else
13835 ac_cpp_err=yes
13836 fi
13837 if test -z "$ac_cpp_err"; then
13838 ac_header_preproc=yes
13839 else
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13842
13843 ac_header_preproc=no
13844 fi
13845 rm -f conftest.err conftest.$ac_ext
13846 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13847 echo "${ECHO_T}$ac_header_preproc" >&6
13848
13849 # So? What about this header?
13850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13851 yes:no: )
13852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13853 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13856 ac_header_preproc=yes
13857 ;;
13858 no:yes:* )
13859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13860 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13862 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13864 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13866 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13870 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13871 (
13872 cat <<\_ASBOX
13873 ## ------------------------------------------ ##
13874 ## Report this to the AC_PACKAGE_NAME lists. ##
13875 ## ------------------------------------------ ##
13876 _ASBOX
13877 ) |
13878 sed "s/^/$as_me: WARNING: /" >&2
13879 ;;
13880 esac
13881 echo "$as_me:$LINENO: checking for $ac_header" >&5
13882 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13883 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13884 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 else
13886 eval "$as_ac_Header=\$ac_header_preproc"
13887 fi
13888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13890
13891 fi
13892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13893 cat >>confdefs.h <<_ACEOF
13894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13895 _ACEOF
13896
13897 fi
13898
13899 done
13900
13901
13902 for ac_header in sys/resource.h
13903 do
13904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13906 echo "$as_me:$LINENO: checking for $ac_header" >&5
13907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13910 fi
13911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13913 else
13914 # Is the header compilable?
13915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13917 cat >conftest.$ac_ext <<_ACEOF
13918 /* confdefs.h. */
13919 _ACEOF
13920 cat confdefs.h >>conftest.$ac_ext
13921 cat >>conftest.$ac_ext <<_ACEOF
13922 /* end confdefs.h. */
13923 $ac_includes_default
13924 #include <$ac_header>
13925 _ACEOF
13926 rm -f conftest.$ac_objext
13927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13928 (eval $ac_compile) 2>conftest.er1
13929 ac_status=$?
13930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_c_werror_flag"
13936 || test ! -s conftest.err'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest.$ac_objext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_header_compiler=yes
13949 else
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953 ac_header_compiler=no
13954 fi
13955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13957 echo "${ECHO_T}$ac_header_compiler" >&6
13958
13959 # Is the header present?
13960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13962 cat >conftest.$ac_ext <<_ACEOF
13963 /* confdefs.h. */
13964 _ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 #include <$ac_header>
13969 _ACEOF
13970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13972 ac_status=$?
13973 grep -v '^ *+' conftest.er1 >conftest.err
13974 rm -f conftest.er1
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } >/dev/null; then
13978 if test -s conftest.err; then
13979 ac_cpp_err=$ac_c_preproc_warn_flag
13980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13981 else
13982 ac_cpp_err=
13983 fi
13984 else
13985 ac_cpp_err=yes
13986 fi
13987 if test -z "$ac_cpp_err"; then
13988 ac_header_preproc=yes
13989 else
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13992
13993 ac_header_preproc=no
13994 fi
13995 rm -f conftest.err conftest.$ac_ext
13996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13997 echo "${ECHO_T}$ac_header_preproc" >&6
13998
13999 # So? What about this header?
14000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14001 yes:no: )
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14006 ac_header_preproc=yes
14007 ;;
14008 no:yes:* )
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14021 (
14022 cat <<\_ASBOX
14023 ## ------------------------------------------ ##
14024 ## Report this to the AC_PACKAGE_NAME lists. ##
14025 ## ------------------------------------------ ##
14026 _ASBOX
14027 ) |
14028 sed "s/^/$as_me: WARNING: /" >&2
14029 ;;
14030 esac
14031 echo "$as_me:$LINENO: checking for $ac_header" >&5
14032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 else
14036 eval "$as_ac_Header=\$ac_header_preproc"
14037 fi
14038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14040
14041 fi
14042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14043 cat >>confdefs.h <<_ACEOF
14044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14045 _ACEOF
14046
14047 fi
14048
14049 done
14050
14051
14052 for ac_header in sys/proc.h
14053 do
14054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14055 echo "$as_me:$LINENO: checking for $ac_header" >&5
14056 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 else
14060 cat >conftest.$ac_ext <<_ACEOF
14061 /* confdefs.h. */
14062 _ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 #if HAVE_SYS_PARAM_H
14067 # include <sys/param.h>
14068 #endif
14069
14070
14071 #include <$ac_header>
14072 _ACEOF
14073 rm -f conftest.$ac_objext
14074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14075 (eval $ac_compile) 2>conftest.er1
14076 ac_status=$?
14077 grep -v '^ *+' conftest.er1 >conftest.err
14078 rm -f conftest.er1
14079 cat conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
14082 { ac_try='test -z "$ac_c_werror_flag"
14083 || test ! -s conftest.err'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; } &&
14089 { ac_try='test -s conftest.$ac_objext'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }; then
14095 eval "$as_ac_Header=yes"
14096 else
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100 eval "$as_ac_Header=no"
14101 fi
14102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14103 fi
14104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14107 cat >>confdefs.h <<_ACEOF
14108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14109 _ACEOF
14110
14111 fi
14112
14113 done
14114
14115
14116 for ac_header in sys/procfs.h
14117 do
14118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14120 echo "$as_me:$LINENO: checking for $ac_header" >&5
14121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14124 fi
14125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14127 else
14128 # Is the header compilable?
14129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14131 cat >conftest.$ac_ext <<_ACEOF
14132 /* confdefs.h. */
14133 _ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14137 $ac_includes_default
14138 #include <$ac_header>
14139 _ACEOF
14140 rm -f conftest.$ac_objext
14141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14142 (eval $ac_compile) 2>conftest.er1
14143 ac_status=$?
14144 grep -v '^ *+' conftest.er1 >conftest.err
14145 rm -f conftest.er1
14146 cat conftest.err >&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } &&
14149 { ac_try='test -z "$ac_c_werror_flag"
14150 || test ! -s conftest.err'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14153 ac_status=$?
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; } &&
14156 { ac_try='test -s conftest.$ac_objext'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14159 ac_status=$?
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 ac_header_compiler=yes
14163 else
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14166
14167 ac_header_compiler=no
14168 fi
14169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14171 echo "${ECHO_T}$ac_header_compiler" >&6
14172
14173 # Is the header present?
14174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14176 cat >conftest.$ac_ext <<_ACEOF
14177 /* confdefs.h. */
14178 _ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 #include <$ac_header>
14183 _ACEOF
14184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14186 ac_status=$?
14187 grep -v '^ *+' conftest.er1 >conftest.err
14188 rm -f conftest.er1
14189 cat conftest.err >&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } >/dev/null; then
14192 if test -s conftest.err; then
14193 ac_cpp_err=$ac_c_preproc_warn_flag
14194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14195 else
14196 ac_cpp_err=
14197 fi
14198 else
14199 ac_cpp_err=yes
14200 fi
14201 if test -z "$ac_cpp_err"; then
14202 ac_header_preproc=yes
14203 else
14204 echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14206
14207 ac_header_preproc=no
14208 fi
14209 rm -f conftest.err conftest.$ac_ext
14210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14211 echo "${ECHO_T}$ac_header_preproc" >&6
14212
14213 # So? What about this header?
14214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14215 yes:no: )
14216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14220 ac_header_preproc=yes
14221 ;;
14222 no:yes:* )
14223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14235 (
14236 cat <<\_ASBOX
14237 ## ------------------------------------------ ##
14238 ## Report this to the AC_PACKAGE_NAME lists. ##
14239 ## ------------------------------------------ ##
14240 _ASBOX
14241 ) |
14242 sed "s/^/$as_me: WARNING: /" >&2
14243 ;;
14244 esac
14245 echo "$as_me:$LINENO: checking for $ac_header" >&5
14246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14249 else
14250 eval "$as_ac_Header=\$ac_header_preproc"
14251 fi
14252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14254
14255 fi
14256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14257 cat >>confdefs.h <<_ACEOF
14258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14259 _ACEOF
14260
14261 fi
14262
14263 done
14264
14265
14266
14267 for ac_header in sys/ptrace.h ptrace.h
14268 do
14269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14271 echo "$as_me:$LINENO: checking for $ac_header" >&5
14272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 fi
14276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14278 else
14279 # Is the header compilable?
14280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14282 cat >conftest.$ac_ext <<_ACEOF
14283 /* confdefs.h. */
14284 _ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h. */
14288 $ac_includes_default
14289 #include <$ac_header>
14290 _ACEOF
14291 rm -f conftest.$ac_objext
14292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14293 (eval $ac_compile) 2>conftest.er1
14294 ac_status=$?
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
14300 { ac_try='test -z "$ac_c_werror_flag"
14301 || test ! -s conftest.err'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; } &&
14307 { ac_try='test -s conftest.$ac_objext'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 ac_header_compiler=yes
14314 else
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14317
14318 ac_header_compiler=no
14319 fi
14320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14322 echo "${ECHO_T}$ac_header_compiler" >&6
14323
14324 # Is the header present?
14325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14327 cat >conftest.$ac_ext <<_ACEOF
14328 /* confdefs.h. */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14333 #include <$ac_header>
14334 _ACEOF
14335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14337 ac_status=$?
14338 grep -v '^ *+' conftest.er1 >conftest.err
14339 rm -f conftest.er1
14340 cat conftest.err >&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } >/dev/null; then
14343 if test -s conftest.err; then
14344 ac_cpp_err=$ac_c_preproc_warn_flag
14345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14346 else
14347 ac_cpp_err=
14348 fi
14349 else
14350 ac_cpp_err=yes
14351 fi
14352 if test -z "$ac_cpp_err"; then
14353 ac_header_preproc=yes
14354 else
14355 echo "$as_me: failed program was:" >&5
14356 sed 's/^/| /' conftest.$ac_ext >&5
14357
14358 ac_header_preproc=no
14359 fi
14360 rm -f conftest.err conftest.$ac_ext
14361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14362 echo "${ECHO_T}$ac_header_preproc" >&6
14363
14364 # So? What about this header?
14365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14366 yes:no: )
14367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14371 ac_header_preproc=yes
14372 ;;
14373 no:yes:* )
14374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14386 (
14387 cat <<\_ASBOX
14388 ## ------------------------------------------ ##
14389 ## Report this to the AC_PACKAGE_NAME lists. ##
14390 ## ------------------------------------------ ##
14391 _ASBOX
14392 ) |
14393 sed "s/^/$as_me: WARNING: /" >&2
14394 ;;
14395 esac
14396 echo "$as_me:$LINENO: checking for $ac_header" >&5
14397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401 eval "$as_ac_Header=\$ac_header_preproc"
14402 fi
14403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14405
14406 fi
14407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14408 cat >>confdefs.h <<_ACEOF
14409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14410 _ACEOF
14411
14412 fi
14413
14414 done
14415
14416
14417
14418 for ac_header in sys/reg.h sys/debugreg.h
14419 do
14420 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14422 echo "$as_me:$LINENO: checking for $ac_header" >&5
14423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 fi
14427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14429 else
14430 # Is the header compilable?
14431 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14432 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14433 cat >conftest.$ac_ext <<_ACEOF
14434 /* confdefs.h. */
14435 _ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14439 $ac_includes_default
14440 #include <$ac_header>
14441 _ACEOF
14442 rm -f conftest.$ac_objext
14443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14444 (eval $ac_compile) 2>conftest.er1
14445 ac_status=$?
14446 grep -v '^ *+' conftest.er1 >conftest.err
14447 rm -f conftest.er1
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
14451 { ac_try='test -z "$ac_c_werror_flag"
14452 || test ! -s conftest.err'
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; } &&
14458 { ac_try='test -s conftest.$ac_objext'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464 ac_header_compiler=yes
14465 else
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14468
14469 ac_header_compiler=no
14470 fi
14471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14472 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14473 echo "${ECHO_T}$ac_header_compiler" >&6
14474
14475 # Is the header present?
14476 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14478 cat >conftest.$ac_ext <<_ACEOF
14479 /* confdefs.h. */
14480 _ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14484 #include <$ac_header>
14485 _ACEOF
14486 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14488 ac_status=$?
14489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } >/dev/null; then
14494 if test -s conftest.err; then
14495 ac_cpp_err=$ac_c_preproc_warn_flag
14496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14497 else
14498 ac_cpp_err=
14499 fi
14500 else
14501 ac_cpp_err=yes
14502 fi
14503 if test -z "$ac_cpp_err"; then
14504 ac_header_preproc=yes
14505 else
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14508
14509 ac_header_preproc=no
14510 fi
14511 rm -f conftest.err conftest.$ac_ext
14512 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14513 echo "${ECHO_T}$ac_header_preproc" >&6
14514
14515 # So? What about this header?
14516 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14517 yes:no: )
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14519 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14521 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14522 ac_header_preproc=yes
14523 ;;
14524 no:yes:* )
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14526 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14528 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14530 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14532 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14534 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14536 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14537 (
14538 cat <<\_ASBOX
14539 ## ------------------------------------------ ##
14540 ## Report this to the AC_PACKAGE_NAME lists. ##
14541 ## ------------------------------------------ ##
14542 _ASBOX
14543 ) |
14544 sed "s/^/$as_me: WARNING: /" >&2
14545 ;;
14546 esac
14547 echo "$as_me:$LINENO: checking for $ac_header" >&5
14548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 else
14552 eval "$as_ac_Header=\$ac_header_preproc"
14553 fi
14554 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14555 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14556
14557 fi
14558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14559 cat >>confdefs.h <<_ACEOF
14560 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14561 _ACEOF
14562
14563 fi
14564
14565 done
14566
14567
14568 for ac_header in sys/select.h
14569 do
14570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14572 echo "$as_me:$LINENO: checking for $ac_header" >&5
14573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14576 fi
14577 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14578 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14579 else
14580 # Is the header compilable?
14581 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14583 cat >conftest.$ac_ext <<_ACEOF
14584 /* confdefs.h. */
14585 _ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14589 $ac_includes_default
14590 #include <$ac_header>
14591 _ACEOF
14592 rm -f conftest.$ac_objext
14593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14594 (eval $ac_compile) 2>conftest.er1
14595 ac_status=$?
14596 grep -v '^ *+' conftest.er1 >conftest.err
14597 rm -f conftest.er1
14598 cat conftest.err >&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } &&
14601 { ac_try='test -z "$ac_c_werror_flag"
14602 || test ! -s conftest.err'
14603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604 (eval $ac_try) 2>&5
14605 ac_status=$?
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; } &&
14608 { ac_try='test -s conftest.$ac_objext'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14611 ac_status=$?
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; }; then
14614 ac_header_compiler=yes
14615 else
14616 echo "$as_me: failed program was:" >&5
14617 sed 's/^/| /' conftest.$ac_ext >&5
14618
14619 ac_header_compiler=no
14620 fi
14621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14622 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14623 echo "${ECHO_T}$ac_header_compiler" >&6
14624
14625 # Is the header present?
14626 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14628 cat >conftest.$ac_ext <<_ACEOF
14629 /* confdefs.h. */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h. */
14634 #include <$ac_header>
14635 _ACEOF
14636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14638 ac_status=$?
14639 grep -v '^ *+' conftest.er1 >conftest.err
14640 rm -f conftest.er1
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } >/dev/null; then
14644 if test -s conftest.err; then
14645 ac_cpp_err=$ac_c_preproc_warn_flag
14646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14647 else
14648 ac_cpp_err=
14649 fi
14650 else
14651 ac_cpp_err=yes
14652 fi
14653 if test -z "$ac_cpp_err"; then
14654 ac_header_preproc=yes
14655 else
14656 echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14658
14659 ac_header_preproc=no
14660 fi
14661 rm -f conftest.err conftest.$ac_ext
14662 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14663 echo "${ECHO_T}$ac_header_preproc" >&6
14664
14665 # So? What about this header?
14666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14667 yes:no: )
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14672 ac_header_preproc=yes
14673 ;;
14674 no:yes:* )
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14687 (
14688 cat <<\_ASBOX
14689 ## ------------------------------------------ ##
14690 ## Report this to the AC_PACKAGE_NAME lists. ##
14691 ## ------------------------------------------ ##
14692 _ASBOX
14693 ) |
14694 sed "s/^/$as_me: WARNING: /" >&2
14695 ;;
14696 esac
14697 echo "$as_me:$LINENO: checking for $ac_header" >&5
14698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 else
14702 eval "$as_ac_Header=\$ac_header_preproc"
14703 fi
14704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14706
14707 fi
14708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14709 cat >>confdefs.h <<_ACEOF
14710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14711 _ACEOF
14712
14713 fi
14714
14715 done
14716
14717
14718 for ac_header in sys/syscall.h
14719 do
14720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14721 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14722 echo "$as_me:$LINENO: checking for $ac_header" >&5
14723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14726 fi
14727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14729 else
14730 # Is the header compilable?
14731 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14733 cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h. */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 $ac_includes_default
14740 #include <$ac_header>
14741 _ACEOF
14742 rm -f conftest.$ac_objext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744 (eval $ac_compile) 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest.$ac_objext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_header_compiler=yes
14765 else
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14768
14769 ac_header_compiler=no
14770 fi
14771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14772 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14773 echo "${ECHO_T}$ac_header_compiler" >&6
14774
14775 # Is the header present?
14776 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14777 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14778 cat >conftest.$ac_ext <<_ACEOF
14779 /* confdefs.h. */
14780 _ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 #include <$ac_header>
14785 _ACEOF
14786 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14788 ac_status=$?
14789 grep -v '^ *+' conftest.er1 >conftest.err
14790 rm -f conftest.er1
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } >/dev/null; then
14794 if test -s conftest.err; then
14795 ac_cpp_err=$ac_c_preproc_warn_flag
14796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14797 else
14798 ac_cpp_err=
14799 fi
14800 else
14801 ac_cpp_err=yes
14802 fi
14803 if test -z "$ac_cpp_err"; then
14804 ac_header_preproc=yes
14805 else
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14808
14809 ac_header_preproc=no
14810 fi
14811 rm -f conftest.err conftest.$ac_ext
14812 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14813 echo "${ECHO_T}$ac_header_preproc" >&6
14814
14815 # So? What about this header?
14816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14817 yes:no: )
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14822 ac_header_preproc=yes
14823 ;;
14824 no:yes:* )
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14837 (
14838 cat <<\_ASBOX
14839 ## ------------------------------------------ ##
14840 ## Report this to the AC_PACKAGE_NAME lists. ##
14841 ## ------------------------------------------ ##
14842 _ASBOX
14843 ) |
14844 sed "s/^/$as_me: WARNING: /" >&2
14845 ;;
14846 esac
14847 echo "$as_me:$LINENO: checking for $ac_header" >&5
14848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14851 else
14852 eval "$as_ac_Header=\$ac_header_preproc"
14853 fi
14854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14856
14857 fi
14858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14859 cat >>confdefs.h <<_ACEOF
14860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14861 _ACEOF
14862
14863 fi
14864
14865 done
14866
14867
14868 for ac_header in sys/types.h
14869 do
14870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14871 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14872 echo "$as_me:$LINENO: checking for $ac_header" >&5
14873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 fi
14877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14879 else
14880 # Is the header compilable?
14881 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
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 #include <$ac_header>
14891 _ACEOF
14892 rm -f conftest.$ac_objext
14893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14894 (eval $ac_compile) 2>conftest.er1
14895 ac_status=$?
14896 grep -v '^ *+' conftest.er1 >conftest.err
14897 rm -f conftest.er1
14898 cat conftest.err >&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } &&
14901 { ac_try='test -z "$ac_c_werror_flag"
14902 || test ! -s conftest.err'
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; } &&
14908 { ac_try='test -s conftest.$ac_objext'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 ac_header_compiler=yes
14915 else
14916 echo "$as_me: failed program was:" >&5
14917 sed 's/^/| /' conftest.$ac_ext >&5
14918
14919 ac_header_compiler=no
14920 fi
14921 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14922 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14923 echo "${ECHO_T}$ac_header_compiler" >&6
14924
14925 # Is the header present?
14926 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14928 cat >conftest.$ac_ext <<_ACEOF
14929 /* confdefs.h. */
14930 _ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h. */
14934 #include <$ac_header>
14935 _ACEOF
14936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14938 ac_status=$?
14939 grep -v '^ *+' conftest.er1 >conftest.err
14940 rm -f conftest.er1
14941 cat conftest.err >&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } >/dev/null; then
14944 if test -s conftest.err; then
14945 ac_cpp_err=$ac_c_preproc_warn_flag
14946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14947 else
14948 ac_cpp_err=
14949 fi
14950 else
14951 ac_cpp_err=yes
14952 fi
14953 if test -z "$ac_cpp_err"; then
14954 ac_header_preproc=yes
14955 else
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14958
14959 ac_header_preproc=no
14960 fi
14961 rm -f conftest.err conftest.$ac_ext
14962 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14963 echo "${ECHO_T}$ac_header_preproc" >&6
14964
14965 # So? What about this header?
14966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14967 yes:no: )
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14972 ac_header_preproc=yes
14973 ;;
14974 no:yes:* )
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14982 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14987 (
14988 cat <<\_ASBOX
14989 ## ------------------------------------------ ##
14990 ## Report this to the AC_PACKAGE_NAME lists. ##
14991 ## ------------------------------------------ ##
14992 _ASBOX
14993 ) |
14994 sed "s/^/$as_me: WARNING: /" >&2
14995 ;;
14996 esac
14997 echo "$as_me:$LINENO: checking for $ac_header" >&5
14998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15001 else
15002 eval "$as_ac_Header=\$ac_header_preproc"
15003 fi
15004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15005 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15006
15007 fi
15008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15009 cat >>confdefs.h <<_ACEOF
15010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15011 _ACEOF
15012
15013 fi
15014
15015 done
15016
15017
15018 for ac_header in sys/user.h
15019 do
15020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15021 echo "$as_me:$LINENO: checking for $ac_header" >&5
15022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15025 else
15026 cat >conftest.$ac_ext <<_ACEOF
15027 /* confdefs.h. */
15028 _ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h. */
15032 #if HAVE_SYS_PARAM_H
15033 # include <sys/param.h>
15034 #endif
15035
15036
15037 #include <$ac_header>
15038 _ACEOF
15039 rm -f conftest.$ac_objext
15040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15041 (eval $ac_compile) 2>conftest.er1
15042 ac_status=$?
15043 grep -v '^ *+' conftest.er1 >conftest.err
15044 rm -f conftest.er1
15045 cat conftest.err >&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
15048 { ac_try='test -z "$ac_c_werror_flag"
15049 || test ! -s conftest.err'
15050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15052 ac_status=$?
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; } &&
15055 { ac_try='test -s conftest.$ac_objext'
15056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15057 (eval $ac_try) 2>&5
15058 ac_status=$?
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); }; }; then
15061 eval "$as_ac_Header=yes"
15062 else
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066 eval "$as_ac_Header=no"
15067 fi
15068 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15069 fi
15070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15073 cat >>confdefs.h <<_ACEOF
15074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15075 _ACEOF
15076
15077 fi
15078
15079 done
15080
15081
15082
15083 for ac_header in sys/wait.h wait.h
15084 do
15085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15086 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15087 echo "$as_me:$LINENO: checking for $ac_header" >&5
15088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15091 fi
15092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15094 else
15095 # Is the header compilable?
15096 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15098 cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h. */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h. */
15104 $ac_includes_default
15105 #include <$ac_header>
15106 _ACEOF
15107 rm -f conftest.$ac_objext
15108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15109 (eval $ac_compile) 2>conftest.er1
15110 ac_status=$?
15111 grep -v '^ *+' conftest.er1 >conftest.err
15112 rm -f conftest.er1
15113 cat conftest.err >&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } &&
15116 { ac_try='test -z "$ac_c_werror_flag"
15117 || test ! -s conftest.err'
15118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119 (eval $ac_try) 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; } &&
15123 { ac_try='test -s conftest.$ac_objext'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; }; then
15129 ac_header_compiler=yes
15130 else
15131 echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15133
15134 ac_header_compiler=no
15135 fi
15136 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15137 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15138 echo "${ECHO_T}$ac_header_compiler" >&6
15139
15140 # Is the header present?
15141 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15142 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15143 cat >conftest.$ac_ext <<_ACEOF
15144 /* confdefs.h. */
15145 _ACEOF
15146 cat confdefs.h >>conftest.$ac_ext
15147 cat >>conftest.$ac_ext <<_ACEOF
15148 /* end confdefs.h. */
15149 #include <$ac_header>
15150 _ACEOF
15151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15153 ac_status=$?
15154 grep -v '^ *+' conftest.er1 >conftest.err
15155 rm -f conftest.er1
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } >/dev/null; then
15159 if test -s conftest.err; then
15160 ac_cpp_err=$ac_c_preproc_warn_flag
15161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15162 else
15163 ac_cpp_err=
15164 fi
15165 else
15166 ac_cpp_err=yes
15167 fi
15168 if test -z "$ac_cpp_err"; then
15169 ac_header_preproc=yes
15170 else
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15173
15174 ac_header_preproc=no
15175 fi
15176 rm -f conftest.err conftest.$ac_ext
15177 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15178 echo "${ECHO_T}$ac_header_preproc" >&6
15179
15180 # So? What about this header?
15181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15182 yes:no: )
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15187 ac_header_preproc=yes
15188 ;;
15189 no:yes:* )
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15202 (
15203 cat <<\_ASBOX
15204 ## ------------------------------------------ ##
15205 ## Report this to the AC_PACKAGE_NAME lists. ##
15206 ## ------------------------------------------ ##
15207 _ASBOX
15208 ) |
15209 sed "s/^/$as_me: WARNING: /" >&2
15210 ;;
15211 esac
15212 echo "$as_me:$LINENO: checking for $ac_header" >&5
15213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15214 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15216 else
15217 eval "$as_ac_Header=\$ac_header_preproc"
15218 fi
15219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15221
15222 fi
15223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15224 cat >>confdefs.h <<_ACEOF
15225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15226 _ACEOF
15227
15228 fi
15229
15230 done
15231
15232
15233
15234
15235 for ac_header in termios.h termio.h sgtty.h
15236 do
15237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15239 echo "$as_me:$LINENO: checking for $ac_header" >&5
15240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15243 fi
15244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15246 else
15247 # Is the header compilable?
15248 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15250 cat >conftest.$ac_ext <<_ACEOF
15251 /* confdefs.h. */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15256 $ac_includes_default
15257 #include <$ac_header>
15258 _ACEOF
15259 rm -f conftest.$ac_objext
15260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15261 (eval $ac_compile) 2>conftest.er1
15262 ac_status=$?
15263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try='test -z "$ac_c_werror_flag"
15269 || test ! -s conftest.err'
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest.$ac_objext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_header_compiler=yes
15282 else
15283 echo "$as_me: failed program was:" >&5
15284 sed 's/^/| /' conftest.$ac_ext >&5
15285
15286 ac_header_compiler=no
15287 fi
15288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15289 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15290 echo "${ECHO_T}$ac_header_compiler" >&6
15291
15292 # Is the header present?
15293 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15294 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15295 cat >conftest.$ac_ext <<_ACEOF
15296 /* confdefs.h. */
15297 _ACEOF
15298 cat confdefs.h >>conftest.$ac_ext
15299 cat >>conftest.$ac_ext <<_ACEOF
15300 /* end confdefs.h. */
15301 #include <$ac_header>
15302 _ACEOF
15303 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } >/dev/null; then
15311 if test -s conftest.err; then
15312 ac_cpp_err=$ac_c_preproc_warn_flag
15313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15314 else
15315 ac_cpp_err=
15316 fi
15317 else
15318 ac_cpp_err=yes
15319 fi
15320 if test -z "$ac_cpp_err"; then
15321 ac_header_preproc=yes
15322 else
15323 echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15325
15326 ac_header_preproc=no
15327 fi
15328 rm -f conftest.err conftest.$ac_ext
15329 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15330 echo "${ECHO_T}$ac_header_preproc" >&6
15331
15332 # So? What about this header?
15333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15334 yes:no: )
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15336 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15338 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15339 ac_header_preproc=yes
15340 ;;
15341 no:yes:* )
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15343 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15345 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15347 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15349 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15351 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15353 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15354 (
15355 cat <<\_ASBOX
15356 ## ------------------------------------------ ##
15357 ## Report this to the AC_PACKAGE_NAME lists. ##
15358 ## ------------------------------------------ ##
15359 _ASBOX
15360 ) |
15361 sed "s/^/$as_me: WARNING: /" >&2
15362 ;;
15363 esac
15364 echo "$as_me:$LINENO: checking for $ac_header" >&5
15365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 else
15369 eval "$as_ac_Header=\$ac_header_preproc"
15370 fi
15371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15373
15374 fi
15375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15376 cat >>confdefs.h <<_ACEOF
15377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15378 _ACEOF
15379
15380 fi
15381
15382 done
15383
15384
15385 for ac_header in unistd.h
15386 do
15387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15389 echo "$as_me:$LINENO: checking for $ac_header" >&5
15390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 fi
15394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15396 else
15397 # Is the header compilable?
15398 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15400 cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h. */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h. */
15406 $ac_includes_default
15407 #include <$ac_header>
15408 _ACEOF
15409 rm -f conftest.$ac_objext
15410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15411 (eval $ac_compile) 2>conftest.er1
15412 ac_status=$?
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try='test -z "$ac_c_werror_flag"
15419 || test ! -s conftest.err'
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; } &&
15425 { ac_try='test -s conftest.$ac_objext'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }; then
15431 ac_header_compiler=yes
15432 else
15433 echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15435
15436 ac_header_compiler=no
15437 fi
15438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15440 echo "${ECHO_T}$ac_header_compiler" >&6
15441
15442 # Is the header present?
15443 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15445 cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h. */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15451 #include <$ac_header>
15452 _ACEOF
15453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15455 ac_status=$?
15456 grep -v '^ *+' conftest.er1 >conftest.err
15457 rm -f conftest.er1
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } >/dev/null; then
15461 if test -s conftest.err; then
15462 ac_cpp_err=$ac_c_preproc_warn_flag
15463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15464 else
15465 ac_cpp_err=
15466 fi
15467 else
15468 ac_cpp_err=yes
15469 fi
15470 if test -z "$ac_cpp_err"; then
15471 ac_header_preproc=yes
15472 else
15473 echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15475
15476 ac_header_preproc=no
15477 fi
15478 rm -f conftest.err conftest.$ac_ext
15479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15480 echo "${ECHO_T}$ac_header_preproc" >&6
15481
15482 # So? What about this header?
15483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15484 yes:no: )
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15489 ac_header_preproc=yes
15490 ;;
15491 no:yes:* )
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15495 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15499 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15504 (
15505 cat <<\_ASBOX
15506 ## ------------------------------------------ ##
15507 ## Report this to the AC_PACKAGE_NAME lists. ##
15508 ## ------------------------------------------ ##
15509 _ASBOX
15510 ) |
15511 sed "s/^/$as_me: WARNING: /" >&2
15512 ;;
15513 esac
15514 echo "$as_me:$LINENO: checking for $ac_header" >&5
15515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15518 else
15519 eval "$as_ac_Header=\$ac_header_preproc"
15520 fi
15521 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15522 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15523
15524 fi
15525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15526 cat >>confdefs.h <<_ACEOF
15527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15528 _ACEOF
15529
15530 fi
15531
15532 done
15533
15534
15535 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
15536 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15537 # think that we don't have <curses.h> if we're using GCC.
15538 case $host_os in
15539 solaris2.[789])
15540 if test "$GCC" = yes; then
15541
15542 cat >>confdefs.h <<\_ACEOF
15543 #define _MSE_INT_H 1
15544 _ACEOF
15545
15546 fi ;;
15547 esac
15548
15549
15550
15551
15552 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
15553 do
15554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15556 echo "$as_me:$LINENO: checking for $ac_header" >&5
15557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 fi
15561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15563 else
15564 # Is the header compilable?
15565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15567 cat >conftest.$ac_ext <<_ACEOF
15568 /* confdefs.h. */
15569 _ACEOF
15570 cat confdefs.h >>conftest.$ac_ext
15571 cat >>conftest.$ac_ext <<_ACEOF
15572 /* end confdefs.h. */
15573 $ac_includes_default
15574 #include <$ac_header>
15575 _ACEOF
15576 rm -f conftest.$ac_objext
15577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15578 (eval $ac_compile) 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
15585 { ac_try='test -z "$ac_c_werror_flag"
15586 || test ! -s conftest.err'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest.$ac_objext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_header_compiler=yes
15599 else
15600 echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15602
15603 ac_header_compiler=no
15604 fi
15605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15607 echo "${ECHO_T}$ac_header_compiler" >&6
15608
15609 # Is the header present?
15610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15612 cat >conftest.$ac_ext <<_ACEOF
15613 /* confdefs.h. */
15614 _ACEOF
15615 cat confdefs.h >>conftest.$ac_ext
15616 cat >>conftest.$ac_ext <<_ACEOF
15617 /* end confdefs.h. */
15618 #include <$ac_header>
15619 _ACEOF
15620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15622 ac_status=$?
15623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } >/dev/null; then
15628 if test -s conftest.err; then
15629 ac_cpp_err=$ac_c_preproc_warn_flag
15630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15631 else
15632 ac_cpp_err=
15633 fi
15634 else
15635 ac_cpp_err=yes
15636 fi
15637 if test -z "$ac_cpp_err"; then
15638 ac_header_preproc=yes
15639 else
15640 echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15642
15643 ac_header_preproc=no
15644 fi
15645 rm -f conftest.err conftest.$ac_ext
15646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15647 echo "${ECHO_T}$ac_header_preproc" >&6
15648
15649 # So? What about this header?
15650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15651 yes:no: )
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15656 ac_header_preproc=yes
15657 ;;
15658 no:yes:* )
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15662 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15666 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15671 (
15672 cat <<\_ASBOX
15673 ## ------------------------------------------ ##
15674 ## Report this to the AC_PACKAGE_NAME lists. ##
15675 ## ------------------------------------------ ##
15676 _ASBOX
15677 ) |
15678 sed "s/^/$as_me: WARNING: /" >&2
15679 ;;
15680 esac
15681 echo "$as_me:$LINENO: checking for $ac_header" >&5
15682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15684 echo $ECHO_N "(cached) $ECHO_C" >&6
15685 else
15686 eval "$as_ac_Header=\$ac_header_preproc"
15687 fi
15688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15690
15691 fi
15692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15693 cat >>confdefs.h <<_ACEOF
15694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15695 _ACEOF
15696
15697 fi
15698
15699 done
15700
15701
15702 for ac_header in ncurses/term.h
15703 do
15704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15706 echo "$as_me:$LINENO: checking for $ac_header" >&5
15707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15710 fi
15711 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15712 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15713 else
15714 # Is the header compilable?
15715 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15717 cat >conftest.$ac_ext <<_ACEOF
15718 /* confdefs.h. */
15719 _ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15723 $ac_includes_default
15724 #include <$ac_header>
15725 _ACEOF
15726 rm -f conftest.$ac_objext
15727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728 (eval $ac_compile) 2>conftest.er1
15729 ac_status=$?
15730 grep -v '^ *+' conftest.er1 >conftest.err
15731 rm -f conftest.er1
15732 cat conftest.err >&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } &&
15735 { ac_try='test -z "$ac_c_werror_flag"
15736 || test ! -s conftest.err'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; } &&
15742 { ac_try='test -s conftest.$ac_objext'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_header_compiler=yes
15749 else
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753 ac_header_compiler=no
15754 fi
15755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15756 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15757 echo "${ECHO_T}$ac_header_compiler" >&6
15758
15759 # Is the header present?
15760 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15762 cat >conftest.$ac_ext <<_ACEOF
15763 /* confdefs.h. */
15764 _ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h. */
15768 #include <$ac_header>
15769 _ACEOF
15770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15771 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
15778 if test -s conftest.err; then
15779 ac_cpp_err=$ac_c_preproc_warn_flag
15780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15781 else
15782 ac_cpp_err=
15783 fi
15784 else
15785 ac_cpp_err=yes
15786 fi
15787 if test -z "$ac_cpp_err"; then
15788 ac_header_preproc=yes
15789 else
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15792
15793 ac_header_preproc=no
15794 fi
15795 rm -f conftest.err conftest.$ac_ext
15796 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15797 echo "${ECHO_T}$ac_header_preproc" >&6
15798
15799 # So? What about this header?
15800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15801 yes:no: )
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15806 ac_header_preproc=yes
15807 ;;
15808 no:yes:* )
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15821 (
15822 cat <<\_ASBOX
15823 ## ------------------------------------------ ##
15824 ## Report this to the AC_PACKAGE_NAME lists. ##
15825 ## ------------------------------------------ ##
15826 _ASBOX
15827 ) |
15828 sed "s/^/$as_me: WARNING: /" >&2
15829 ;;
15830 esac
15831 echo "$as_me:$LINENO: checking for $ac_header" >&5
15832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15833 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6
15835 else
15836 eval "$as_ac_Header=\$ac_header_preproc"
15837 fi
15838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15839 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15840
15841 fi
15842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15843 cat >>confdefs.h <<_ACEOF
15844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15845 _ACEOF
15846
15847 fi
15848
15849 done
15850
15851
15852 for ac_header in term.h
15853 do
15854 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15855 echo "$as_me:$LINENO: checking for $ac_header" >&5
15856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15859 else
15860 cat >conftest.$ac_ext <<_ACEOF
15861 /* confdefs.h. */
15862 _ACEOF
15863 cat confdefs.h >>conftest.$ac_ext
15864 cat >>conftest.$ac_ext <<_ACEOF
15865 /* end confdefs.h. */
15866 #if HAVE_CURSES_H
15867 # include <curses.h>
15868 #endif
15869
15870
15871 #include <$ac_header>
15872 _ACEOF
15873 rm -f conftest.$ac_objext
15874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15875 (eval $ac_compile) 2>conftest.er1
15876 ac_status=$?
15877 grep -v '^ *+' conftest.er1 >conftest.err
15878 rm -f conftest.er1
15879 cat conftest.err >&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } &&
15882 { ac_try='test -z "$ac_c_werror_flag"
15883 || test ! -s conftest.err'
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15886 ac_status=$?
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15892 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 eval "$as_ac_Header=yes"
15896 else
15897 echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15899
15900 eval "$as_ac_Header=no"
15901 fi
15902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15903 fi
15904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15907 cat >>confdefs.h <<_ACEOF
15908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15909 _ACEOF
15910
15911 fi
15912
15913 done
15914
15915
15916 # Check for HP/UX 64-bit shared library support
15917
15918 for ac_header in elf_hp.h
15919 do
15920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15922 echo "$as_me:$LINENO: checking for $ac_header" >&5
15923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15926 fi
15927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15929 else
15930 # Is the header compilable?
15931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15933 cat >conftest.$ac_ext <<_ACEOF
15934 /* confdefs.h. */
15935 _ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h. */
15939 $ac_includes_default
15940 #include <$ac_header>
15941 _ACEOF
15942 rm -f conftest.$ac_objext
15943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15944 (eval $ac_compile) 2>conftest.er1
15945 ac_status=$?
15946 grep -v '^ *+' conftest.er1 >conftest.err
15947 rm -f conftest.er1
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -z "$ac_c_werror_flag"
15952 || test ! -s conftest.err'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest.$ac_objext'
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_header_compiler=yes
15965 else
15966 echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15968
15969 ac_header_compiler=no
15970 fi
15971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15973 echo "${ECHO_T}$ac_header_compiler" >&6
15974
15975 # Is the header present?
15976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15978 cat >conftest.$ac_ext <<_ACEOF
15979 /* confdefs.h. */
15980 _ACEOF
15981 cat confdefs.h >>conftest.$ac_ext
15982 cat >>conftest.$ac_ext <<_ACEOF
15983 /* end confdefs.h. */
15984 #include <$ac_header>
15985 _ACEOF
15986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } >/dev/null; then
15994 if test -s conftest.err; then
15995 ac_cpp_err=$ac_c_preproc_warn_flag
15996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15997 else
15998 ac_cpp_err=
15999 fi
16000 else
16001 ac_cpp_err=yes
16002 fi
16003 if test -z "$ac_cpp_err"; then
16004 ac_header_preproc=yes
16005 else
16006 echo "$as_me: failed program was:" >&5
16007 sed 's/^/| /' conftest.$ac_ext >&5
16008
16009 ac_header_preproc=no
16010 fi
16011 rm -f conftest.err conftest.$ac_ext
16012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16013 echo "${ECHO_T}$ac_header_preproc" >&6
16014
16015 # So? What about this header?
16016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16017 yes:no: )
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16022 ac_header_preproc=yes
16023 ;;
16024 no:yes:* )
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16037 (
16038 cat <<\_ASBOX
16039 ## ------------------------------------------ ##
16040 ## Report this to the AC_PACKAGE_NAME lists. ##
16041 ## ------------------------------------------ ##
16042 _ASBOX
16043 ) |
16044 sed "s/^/$as_me: WARNING: /" >&2
16045 ;;
16046 esac
16047 echo "$as_me:$LINENO: checking for $ac_header" >&5
16048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16051 else
16052 eval "$as_ac_Header=\$ac_header_preproc"
16053 fi
16054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16056
16057 fi
16058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16059 cat >>confdefs.h <<_ACEOF
16060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16061 _ACEOF
16062
16063 fi
16064
16065 done
16066
16067
16068 # FIXME: kettenis/20030102: In most cases we include these
16069 # unconditionally, so what's the point in checking these?
16070
16071
16072 for ac_header in ctype.h time.h
16073 do
16074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16076 echo "$as_me:$LINENO: checking for $ac_header" >&5
16077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16079 echo $ECHO_N "(cached) $ECHO_C" >&6
16080 fi
16081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16083 else
16084 # Is the header compilable?
16085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16087 cat >conftest.$ac_ext <<_ACEOF
16088 /* confdefs.h. */
16089 _ACEOF
16090 cat confdefs.h >>conftest.$ac_ext
16091 cat >>conftest.$ac_ext <<_ACEOF
16092 /* end confdefs.h. */
16093 $ac_includes_default
16094 #include <$ac_header>
16095 _ACEOF
16096 rm -f conftest.$ac_objext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16098 (eval $ac_compile) 2>conftest.er1
16099 ac_status=$?
16100 grep -v '^ *+' conftest.er1 >conftest.err
16101 rm -f conftest.er1
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
16105 { ac_try='test -z "$ac_c_werror_flag"
16106 || test ! -s conftest.err'
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; } &&
16112 { ac_try='test -s conftest.$ac_objext'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16115 ac_status=$?
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16118 ac_header_compiler=yes
16119 else
16120 echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16122
16123 ac_header_compiler=no
16124 fi
16125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16126 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16127 echo "${ECHO_T}$ac_header_compiler" >&6
16128
16129 # Is the header present?
16130 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16132 cat >conftest.$ac_ext <<_ACEOF
16133 /* confdefs.h. */
16134 _ACEOF
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16138 #include <$ac_header>
16139 _ACEOF
16140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16142 ac_status=$?
16143 grep -v '^ *+' conftest.er1 >conftest.err
16144 rm -f conftest.er1
16145 cat conftest.err >&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } >/dev/null; then
16148 if test -s conftest.err; then
16149 ac_cpp_err=$ac_c_preproc_warn_flag
16150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16151 else
16152 ac_cpp_err=
16153 fi
16154 else
16155 ac_cpp_err=yes
16156 fi
16157 if test -z "$ac_cpp_err"; then
16158 ac_header_preproc=yes
16159 else
16160 echo "$as_me: failed program was:" >&5
16161 sed 's/^/| /' conftest.$ac_ext >&5
16162
16163 ac_header_preproc=no
16164 fi
16165 rm -f conftest.err conftest.$ac_ext
16166 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16167 echo "${ECHO_T}$ac_header_preproc" >&6
16168
16169 # So? What about this header?
16170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16171 yes:no: )
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16176 ac_header_preproc=yes
16177 ;;
16178 no:yes:* )
16179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16191 (
16192 cat <<\_ASBOX
16193 ## ------------------------------------------ ##
16194 ## Report this to the AC_PACKAGE_NAME lists. ##
16195 ## ------------------------------------------ ##
16196 _ASBOX
16197 ) |
16198 sed "s/^/$as_me: WARNING: /" >&2
16199 ;;
16200 esac
16201 echo "$as_me:$LINENO: checking for $ac_header" >&5
16202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16204 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 else
16206 eval "$as_ac_Header=\$ac_header_preproc"
16207 fi
16208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16210
16211 fi
16212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16213 cat >>confdefs.h <<_ACEOF
16214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16215 _ACEOF
16216
16217 fi
16218
16219 done
16220
16221
16222 # Create a header we can use portably to get the standard integer types.
16223
16224
16225 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16226
16227 acx_cv_header_stdint=stddef.h
16228 acx_cv_header_stdint_kind="(already complete)"
16229 for i in stdint.h $inttype_headers; do
16230 unset ac_cv_type_uintptr_t
16231 unset ac_cv_type_uintmax_t
16232 unset ac_cv_type_int_least32_t
16233 unset ac_cv_type_int_fast32_t
16234 unset ac_cv_type_uint64_t
16235 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
16236 echo "$as_me:$LINENO: checking for uintmax_t" >&5
16237 echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
16238 if test "${ac_cv_type_uintmax_t+set}" = set; then
16239 echo $ECHO_N "(cached) $ECHO_C" >&6
16240 else
16241 cat >conftest.$ac_ext <<_ACEOF
16242 /* confdefs.h. */
16243 _ACEOF
16244 cat confdefs.h >>conftest.$ac_ext
16245 cat >>conftest.$ac_ext <<_ACEOF
16246 /* end confdefs.h. */
16247 #include <sys/types.h>
16248 #include <$i>
16249
16250 int
16251 main ()
16252 {
16253 if ((uintmax_t *) 0)
16254 return 0;
16255 if (sizeof (uintmax_t))
16256 return 0;
16257 ;
16258 return 0;
16259 }
16260 _ACEOF
16261 rm -f conftest.$ac_objext
16262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16263 (eval $ac_compile) 2>conftest.er1
16264 ac_status=$?
16265 grep -v '^ *+' conftest.er1 >conftest.err
16266 rm -f conftest.er1
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
16270 { ac_try='test -z "$ac_c_werror_flag"
16271 || test ! -s conftest.err'
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; } &&
16277 { ac_try='test -s conftest.$ac_objext'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
16283 ac_cv_type_uintmax_t=yes
16284 else
16285 echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.$ac_ext >&5
16287
16288 ac_cv_type_uintmax_t=no
16289 fi
16290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16291 fi
16292 echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
16293 echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
16294 if test $ac_cv_type_uintmax_t = yes; then
16295 acx_cv_header_stdint=$i
16296 else
16297 continue
16298 fi
16299
16300 echo "$as_me:$LINENO: checking for uintptr_t" >&5
16301 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16302 if test "${ac_cv_type_uintptr_t+set}" = set; then
16303 echo $ECHO_N "(cached) $ECHO_C" >&6
16304 else
16305 cat >conftest.$ac_ext <<_ACEOF
16306 /* confdefs.h. */
16307 _ACEOF
16308 cat confdefs.h >>conftest.$ac_ext
16309 cat >>conftest.$ac_ext <<_ACEOF
16310 /* end confdefs.h. */
16311 #include <sys/types.h>
16312 #include <$i>
16313
16314 int
16315 main ()
16316 {
16317 if ((uintptr_t *) 0)
16318 return 0;
16319 if (sizeof (uintptr_t))
16320 return 0;
16321 ;
16322 return 0;
16323 }
16324 _ACEOF
16325 rm -f conftest.$ac_objext
16326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16327 (eval $ac_compile) 2>conftest.er1
16328 ac_status=$?
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try='test -z "$ac_c_werror_flag"
16335 || test ! -s conftest.err'
16336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16337 (eval $ac_try) 2>&5
16338 ac_status=$?
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); }; } &&
16341 { ac_try='test -s conftest.$ac_objext'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16344 ac_status=$?
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
16347 ac_cv_type_uintptr_t=yes
16348 else
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16351
16352 ac_cv_type_uintptr_t=no
16353 fi
16354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16355 fi
16356 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16357 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
16358 if test $ac_cv_type_uintptr_t = yes; then
16359 :
16360 else
16361 acx_cv_header_stdint_kind="(mostly complete)"
16362 fi
16363
16364 echo "$as_me:$LINENO: checking for int_least32_t" >&5
16365 echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
16366 if test "${ac_cv_type_int_least32_t+set}" = set; then
16367 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 else
16369 cat >conftest.$ac_ext <<_ACEOF
16370 /* confdefs.h. */
16371 _ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16375 #include <sys/types.h>
16376 #include <$i>
16377
16378 int
16379 main ()
16380 {
16381 if ((int_least32_t *) 0)
16382 return 0;
16383 if (sizeof (int_least32_t))
16384 return 0;
16385 ;
16386 return 0;
16387 }
16388 _ACEOF
16389 rm -f conftest.$ac_objext
16390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16391 (eval $ac_compile) 2>conftest.er1
16392 ac_status=$?
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
16398 { ac_try='test -z "$ac_c_werror_flag"
16399 || test ! -s conftest.err'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } &&
16405 { ac_try='test -s conftest.$ac_objext'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
16411 ac_cv_type_int_least32_t=yes
16412 else
16413 echo "$as_me: failed program was:" >&5
16414 sed 's/^/| /' conftest.$ac_ext >&5
16415
16416 ac_cv_type_int_least32_t=no
16417 fi
16418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16419 fi
16420 echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
16421 echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
16422 if test $ac_cv_type_int_least32_t = yes; then
16423 :
16424 else
16425 acx_cv_header_stdint_kind="(mostly complete)"
16426 fi
16427
16428 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
16429 echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
16430 if test "${ac_cv_type_int_fast32_t+set}" = set; then
16431 echo $ECHO_N "(cached) $ECHO_C" >&6
16432 else
16433 cat >conftest.$ac_ext <<_ACEOF
16434 /* confdefs.h. */
16435 _ACEOF
16436 cat confdefs.h >>conftest.$ac_ext
16437 cat >>conftest.$ac_ext <<_ACEOF
16438 /* end confdefs.h. */
16439 #include <sys/types.h>
16440 #include <$i>
16441
16442 int
16443 main ()
16444 {
16445 if ((int_fast32_t *) 0)
16446 return 0;
16447 if (sizeof (int_fast32_t))
16448 return 0;
16449 ;
16450 return 0;
16451 }
16452 _ACEOF
16453 rm -f conftest.$ac_objext
16454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16455 (eval $ac_compile) 2>conftest.er1
16456 ac_status=$?
16457 grep -v '^ *+' conftest.er1 >conftest.err
16458 rm -f conftest.er1
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } &&
16462 { ac_try='test -z "$ac_c_werror_flag"
16463 || test ! -s conftest.err'
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; } &&
16469 { ac_try='test -s conftest.$ac_objext'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_cv_type_int_fast32_t=yes
16476 else
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16479
16480 ac_cv_type_int_fast32_t=no
16481 fi
16482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16483 fi
16484 echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
16485 echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
16486 if test $ac_cv_type_int_fast32_t = yes; then
16487 :
16488 else
16489 acx_cv_header_stdint_kind="(mostly complete)"
16490 fi
16491
16492 echo "$as_me:$LINENO: checking for uint64_t" >&5
16493 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
16494 if test "${ac_cv_type_uint64_t+set}" = set; then
16495 echo $ECHO_N "(cached) $ECHO_C" >&6
16496 else
16497 cat >conftest.$ac_ext <<_ACEOF
16498 /* confdefs.h. */
16499 _ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16503 #include <sys/types.h>
16504 #include <$i>
16505
16506 int
16507 main ()
16508 {
16509 if ((uint64_t *) 0)
16510 return 0;
16511 if (sizeof (uint64_t))
16512 return 0;
16513 ;
16514 return 0;
16515 }
16516 _ACEOF
16517 rm -f conftest.$ac_objext
16518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16519 (eval $ac_compile) 2>conftest.er1
16520 ac_status=$?
16521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
16526 { ac_try='test -z "$ac_c_werror_flag"
16527 || test ! -s conftest.err'
16528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529 (eval $ac_try) 2>&5
16530 ac_status=$?
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; } &&
16533 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16539 ac_cv_type_uint64_t=yes
16540 else
16541 echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16543
16544 ac_cv_type_uint64_t=no
16545 fi
16546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16547 fi
16548 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16549 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
16550 if test $ac_cv_type_uint64_t = yes; then
16551 :
16552 else
16553 acx_cv_header_stdint_kind="(lacks uint64_t)"
16554 fi
16555
16556 break
16557 done
16558 if test "$acx_cv_header_stdint" = stddef.h; then
16559 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16560 for i in stdint.h $inttype_headers; do
16561 unset ac_cv_type_uintptr_t
16562 unset ac_cv_type_uint32_t
16563 unset ac_cv_type_uint64_t
16564 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
16565 echo "$as_me:$LINENO: checking for uint32_t" >&5
16566 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
16567 if test "${ac_cv_type_uint32_t+set}" = set; then
16568 echo $ECHO_N "(cached) $ECHO_C" >&6
16569 else
16570 cat >conftest.$ac_ext <<_ACEOF
16571 /* confdefs.h. */
16572 _ACEOF
16573 cat confdefs.h >>conftest.$ac_ext
16574 cat >>conftest.$ac_ext <<_ACEOF
16575 /* end confdefs.h. */
16576 #include <sys/types.h>
16577 #include <$i>
16578
16579 int
16580 main ()
16581 {
16582 if ((uint32_t *) 0)
16583 return 0;
16584 if (sizeof (uint32_t))
16585 return 0;
16586 ;
16587 return 0;
16588 }
16589 _ACEOF
16590 rm -f conftest.$ac_objext
16591 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16592 (eval $ac_compile) 2>conftest.er1
16593 ac_status=$?
16594 grep -v '^ *+' conftest.er1 >conftest.err
16595 rm -f conftest.er1
16596 cat conftest.err >&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
16599 { ac_try='test -z "$ac_c_werror_flag"
16600 || test ! -s conftest.err'
16601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602 (eval $ac_try) 2>&5
16603 ac_status=$?
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; } &&
16606 { ac_try='test -s conftest.$ac_objext'
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
16612 ac_cv_type_uint32_t=yes
16613 else
16614 echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16616
16617 ac_cv_type_uint32_t=no
16618 fi
16619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16620 fi
16621 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
16622 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
16623 if test $ac_cv_type_uint32_t = yes; then
16624 acx_cv_header_stdint=$i
16625 else
16626 continue
16627 fi
16628
16629 echo "$as_me:$LINENO: checking for uint64_t" >&5
16630 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
16631 if test "${ac_cv_type_uint64_t+set}" = set; then
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634 cat >conftest.$ac_ext <<_ACEOF
16635 /* confdefs.h. */
16636 _ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 #include <sys/types.h>
16641 #include <$i>
16642
16643 int
16644 main ()
16645 {
16646 if ((uint64_t *) 0)
16647 return 0;
16648 if (sizeof (uint64_t))
16649 return 0;
16650 ;
16651 return 0;
16652 }
16653 _ACEOF
16654 rm -f conftest.$ac_objext
16655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16656 (eval $ac_compile) 2>conftest.er1
16657 ac_status=$?
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
16663 { ac_try='test -z "$ac_c_werror_flag"
16664 || test ! -s conftest.err'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest.$ac_objext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_cv_type_uint64_t=yes
16677 else
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16680
16681 ac_cv_type_uint64_t=no
16682 fi
16683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16684 fi
16685 echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16686 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
16687
16688 echo "$as_me:$LINENO: checking for uintptr_t" >&5
16689 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16690 if test "${ac_cv_type_uintptr_t+set}" = set; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16692 else
16693 cat >conftest.$ac_ext <<_ACEOF
16694 /* confdefs.h. */
16695 _ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16699 #include <sys/types.h>
16700 #include <$i>
16701
16702 int
16703 main ()
16704 {
16705 if ((uintptr_t *) 0)
16706 return 0;
16707 if (sizeof (uintptr_t))
16708 return 0;
16709 ;
16710 return 0;
16711 }
16712 _ACEOF
16713 rm -f conftest.$ac_objext
16714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16715 (eval $ac_compile) 2>conftest.er1
16716 ac_status=$?
16717 grep -v '^ *+' conftest.er1 >conftest.err
16718 rm -f conftest.er1
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
16722 { ac_try='test -z "$ac_c_werror_flag"
16723 || test ! -s conftest.err'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; } &&
16729 { ac_try='test -s conftest.$ac_objext'
16730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16731 (eval $ac_try) 2>&5
16732 ac_status=$?
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); }; }; then
16735 ac_cv_type_uintptr_t=yes
16736 else
16737 echo "$as_me: failed program was:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16739
16740 ac_cv_type_uintptr_t=no
16741 fi
16742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16743 fi
16744 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16745 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
16746
16747 break
16748 done
16749 fi
16750 if test "$acx_cv_header_stdint" = stddef.h; then
16751 acx_cv_header_stdint_kind="(u_intXX_t style)"
16752 for i in sys/types.h $inttype_headers; do
16753 unset ac_cv_type_u_int32_t
16754 unset ac_cv_type_u_int64_t
16755 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
16756 echo "$as_me:$LINENO: checking for u_int32_t" >&5
16757 echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
16758 if test "${ac_cv_type_u_int32_t+set}" = set; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16760 else
16761 cat >conftest.$ac_ext <<_ACEOF
16762 /* confdefs.h. */
16763 _ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16767 #include <sys/types.h>
16768 #include <$i>
16769
16770 int
16771 main ()
16772 {
16773 if ((u_int32_t *) 0)
16774 return 0;
16775 if (sizeof (u_int32_t))
16776 return 0;
16777 ;
16778 return 0;
16779 }
16780 _ACEOF
16781 rm -f conftest.$ac_objext
16782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16783 (eval $ac_compile) 2>conftest.er1
16784 ac_status=$?
16785 grep -v '^ *+' conftest.er1 >conftest.err
16786 rm -f conftest.er1
16787 cat conftest.err >&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } &&
16790 { ac_try='test -z "$ac_c_werror_flag"
16791 || test ! -s conftest.err'
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16794 ac_status=$?
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; } &&
16797 { ac_try='test -s conftest.$ac_objext'
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; }; then
16803 ac_cv_type_u_int32_t=yes
16804 else
16805 echo "$as_me: failed program was:" >&5
16806 sed 's/^/| /' conftest.$ac_ext >&5
16807
16808 ac_cv_type_u_int32_t=no
16809 fi
16810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16811 fi
16812 echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
16813 echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
16814 if test $ac_cv_type_u_int32_t = yes; then
16815 acx_cv_header_stdint=$i
16816 else
16817 continue
16818 fi
16819
16820 echo "$as_me:$LINENO: checking for u_int64_t" >&5
16821 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
16822 if test "${ac_cv_type_u_int64_t+set}" = set; then
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824 else
16825 cat >conftest.$ac_ext <<_ACEOF
16826 /* confdefs.h. */
16827 _ACEOF
16828 cat confdefs.h >>conftest.$ac_ext
16829 cat >>conftest.$ac_ext <<_ACEOF
16830 /* end confdefs.h. */
16831 #include <sys/types.h>
16832 #include <$i>
16833
16834 int
16835 main ()
16836 {
16837 if ((u_int64_t *) 0)
16838 return 0;
16839 if (sizeof (u_int64_t))
16840 return 0;
16841 ;
16842 return 0;
16843 }
16844 _ACEOF
16845 rm -f conftest.$ac_objext
16846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16847 (eval $ac_compile) 2>conftest.er1
16848 ac_status=$?
16849 grep -v '^ *+' conftest.er1 >conftest.err
16850 rm -f conftest.er1
16851 cat conftest.err >&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
16854 { ac_try='test -z "$ac_c_werror_flag"
16855 || test ! -s conftest.err'
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; } &&
16861 { ac_try='test -s conftest.$ac_objext'
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
16867 ac_cv_type_u_int64_t=yes
16868 else
16869 echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16871
16872 ac_cv_type_u_int64_t=no
16873 fi
16874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16875 fi
16876 echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16877 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
16878
16879 break
16880 done
16881 fi
16882 if test "$acx_cv_header_stdint" = stddef.h; then
16883 acx_cv_header_stdint_kind="(using manual detection)"
16884 fi
16885
16886 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16887 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16888 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16889 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16890 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16891
16892 # ----------------- Summarize what we found so far
16893
16894 echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
16895 echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
16896
16897 case `$as_basename gdb_stdint.h ||
16898 $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
16899 Xgdb_stdint.h : 'X\(//\)$' \| \
16900 Xgdb_stdint.h : 'X\(/\)$' \| \
16901 . : '\(.\)' 2>/dev/null ||
16902 echo X/gdb_stdint.h |
16903 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16904 /^X\/\(\/\/\)$/{ s//\1/; q; }
16905 /^X\/\(\/\).*/{ s//\1/; q; }
16906 s/.*/./; q'` in
16907 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
16908 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16909 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
16910 echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16911 *) ;;
16912 esac
16913
16914 echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16915 echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
16916
16917 # ----------------- done included file, check C basic types --------
16918
16919 # Lacking an uintptr_t? Test size of void *
16920 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16921 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
16922 echo $ECHO_N "checking for void *... $ECHO_C" >&6
16923 if test "${ac_cv_type_void_p+set}" = set; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16925 else
16926 cat >conftest.$ac_ext <<_ACEOF
16927 /* confdefs.h. */
16928 _ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16932 $ac_includes_default
16933 int
16934 main ()
16935 {
16936 if ((void * *) 0)
16937 return 0;
16938 if (sizeof (void *))
16939 return 0;
16940 ;
16941 return 0;
16942 }
16943 _ACEOF
16944 rm -f conftest.$ac_objext
16945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16946 (eval $ac_compile) 2>conftest.er1
16947 ac_status=$?
16948 grep -v '^ *+' conftest.er1 >conftest.err
16949 rm -f conftest.er1
16950 cat conftest.err >&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } &&
16953 { ac_try='test -z "$ac_c_werror_flag"
16954 || test ! -s conftest.err'
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } &&
16960 { ac_try='test -s conftest.$ac_objext'
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
16966 ac_cv_type_void_p=yes
16967 else
16968 echo "$as_me: failed program was:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16970
16971 ac_cv_type_void_p=no
16972 fi
16973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16974 fi
16975 echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16976 echo "${ECHO_T}$ac_cv_type_void_p" >&6
16977
16978 echo "$as_me:$LINENO: checking size of void *" >&5
16979 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
16980 if test "${ac_cv_sizeof_void_p+set}" = set; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16982 else
16983 if test "$ac_cv_type_void_p" = yes; then
16984 # The cast to unsigned long works around a bug in the HP C Compiler
16985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16987 # This bug is HP SR number 8606223364.
16988 if test "$cross_compiling" = yes; then
16989 # Depending upon the size, compute the lo and hi bounds.
16990 cat >conftest.$ac_ext <<_ACEOF
16991 /* confdefs.h. */
16992 _ACEOF
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 $ac_includes_default
16997 int
16998 main ()
16999 {
17000 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17001 test_array [0] = 0
17002
17003 ;
17004 return 0;
17005 }
17006 _ACEOF
17007 rm -f conftest.$ac_objext
17008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17009 (eval $ac_compile) 2>conftest.er1
17010 ac_status=$?
17011 grep -v '^ *+' conftest.er1 >conftest.err
17012 rm -f conftest.er1
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try='test -z "$ac_c_werror_flag"
17017 || test ! -s conftest.err'
17018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019 (eval $ac_try) 2>&5
17020 ac_status=$?
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } &&
17023 { ac_try='test -s conftest.$ac_objext'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17029 ac_lo=0 ac_mid=0
17030 while :; do
17031 cat >conftest.$ac_ext <<_ACEOF
17032 /* confdefs.h. */
17033 _ACEOF
17034 cat confdefs.h >>conftest.$ac_ext
17035 cat >>conftest.$ac_ext <<_ACEOF
17036 /* end confdefs.h. */
17037 $ac_includes_default
17038 int
17039 main ()
17040 {
17041 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17042 test_array [0] = 0
17043
17044 ;
17045 return 0;
17046 }
17047 _ACEOF
17048 rm -f conftest.$ac_objext
17049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17050 (eval $ac_compile) 2>conftest.er1
17051 ac_status=$?
17052 grep -v '^ *+' conftest.er1 >conftest.err
17053 rm -f conftest.er1
17054 cat conftest.err >&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } &&
17057 { ac_try='test -z "$ac_c_werror_flag"
17058 || test ! -s conftest.err'
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest.$ac_objext'
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_hi=$ac_mid; break
17071 else
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17074
17075 ac_lo=`expr $ac_mid + 1`
17076 if test $ac_lo -le $ac_mid; then
17077 ac_lo= ac_hi=
17078 break
17079 fi
17080 ac_mid=`expr 2 '*' $ac_mid + 1`
17081 fi
17082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17083 done
17084 else
17085 echo "$as_me: failed program was:" >&5
17086 sed 's/^/| /' conftest.$ac_ext >&5
17087
17088 cat >conftest.$ac_ext <<_ACEOF
17089 /* confdefs.h. */
17090 _ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17094 $ac_includes_default
17095 int
17096 main ()
17097 {
17098 static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17099 test_array [0] = 0
17100
17101 ;
17102 return 0;
17103 }
17104 _ACEOF
17105 rm -f conftest.$ac_objext
17106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17107 (eval $ac_compile) 2>conftest.er1
17108 ac_status=$?
17109 grep -v '^ *+' conftest.er1 >conftest.err
17110 rm -f conftest.er1
17111 cat conftest.err >&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try='test -z "$ac_c_werror_flag"
17115 || test ! -s conftest.err'
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; } &&
17121 { ac_try='test -s conftest.$ac_objext'
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17124 ac_status=$?
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
17127 ac_hi=-1 ac_mid=-1
17128 while :; do
17129 cat >conftest.$ac_ext <<_ACEOF
17130 /* confdefs.h. */
17131 _ACEOF
17132 cat confdefs.h >>conftest.$ac_ext
17133 cat >>conftest.$ac_ext <<_ACEOF
17134 /* end confdefs.h. */
17135 $ac_includes_default
17136 int
17137 main ()
17138 {
17139 static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17140 test_array [0] = 0
17141
17142 ;
17143 return 0;
17144 }
17145 _ACEOF
17146 rm -f conftest.$ac_objext
17147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17148 (eval $ac_compile) 2>conftest.er1
17149 ac_status=$?
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
17155 { ac_try='test -z "$ac_c_werror_flag"
17156 || test ! -s conftest.err'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest.$ac_objext'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_lo=$ac_mid; break
17169 else
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17172
17173 ac_hi=`expr '(' $ac_mid ')' - 1`
17174 if test $ac_mid -le $ac_hi; then
17175 ac_lo= ac_hi=
17176 break
17177 fi
17178 ac_mid=`expr 2 '*' $ac_mid`
17179 fi
17180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17181 done
17182 else
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17185
17186 ac_lo= ac_hi=
17187 fi
17188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17189 fi
17190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17191 # Binary search between lo and hi bounds.
17192 while test "x$ac_lo" != "x$ac_hi"; do
17193 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17194 cat >conftest.$ac_ext <<_ACEOF
17195 /* confdefs.h. */
17196 _ACEOF
17197 cat confdefs.h >>conftest.$ac_ext
17198 cat >>conftest.$ac_ext <<_ACEOF
17199 /* end confdefs.h. */
17200 $ac_includes_default
17201 int
17202 main ()
17203 {
17204 static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17205 test_array [0] = 0
17206
17207 ;
17208 return 0;
17209 }
17210 _ACEOF
17211 rm -f conftest.$ac_objext
17212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17213 (eval $ac_compile) 2>conftest.er1
17214 ac_status=$?
17215 grep -v '^ *+' conftest.er1 >conftest.err
17216 rm -f conftest.er1
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } &&
17220 { ac_try='test -z "$ac_c_werror_flag"
17221 || test ! -s conftest.err'
17222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try='test -s conftest.$ac_objext'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; }; then
17233 ac_hi=$ac_mid
17234 else
17235 echo "$as_me: failed program was:" >&5
17236 sed 's/^/| /' conftest.$ac_ext >&5
17237
17238 ac_lo=`expr '(' $ac_mid ')' + 1`
17239 fi
17240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17241 done
17242 case $ac_lo in
17243 ?*) ac_cv_sizeof_void_p=$ac_lo;;
17244 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17245 See \`config.log' for more details." >&5
17246 echo "$as_me: error: cannot compute sizeof (void *), 77
17247 See \`config.log' for more details." >&2;}
17248 { (exit 1); exit 1; }; } ;;
17249 esac
17250 else
17251 if test "$cross_compiling" = yes; then
17252 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17253 See \`config.log' for more details." >&5
17254 echo "$as_me: error: cannot run test program while cross compiling
17255 See \`config.log' for more details." >&2;}
17256 { (exit 1); exit 1; }; }
17257 else
17258 cat >conftest.$ac_ext <<_ACEOF
17259 /* confdefs.h. */
17260 _ACEOF
17261 cat confdefs.h >>conftest.$ac_ext
17262 cat >>conftest.$ac_ext <<_ACEOF
17263 /* end confdefs.h. */
17264 $ac_includes_default
17265 long longval () { return (long) (sizeof (void *)); }
17266 unsigned long ulongval () { return (long) (sizeof (void *)); }
17267 #include <stdio.h>
17268 #include <stdlib.h>
17269 int
17270 main ()
17271 {
17272
17273 FILE *f = fopen ("conftest.val", "w");
17274 if (! f)
17275 exit (1);
17276 if (((long) (sizeof (void *))) < 0)
17277 {
17278 long i = longval ();
17279 if (i != ((long) (sizeof (void *))))
17280 exit (1);
17281 fprintf (f, "%ld\n", i);
17282 }
17283 else
17284 {
17285 unsigned long i = ulongval ();
17286 if (i != ((long) (sizeof (void *))))
17287 exit (1);
17288 fprintf (f, "%lu\n", i);
17289 }
17290 exit (ferror (f) || fclose (f) != 0);
17291
17292 ;
17293 return 0;
17294 }
17295 _ACEOF
17296 rm -f conftest$ac_exeext
17297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17298 (eval $ac_link) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 ac_cv_sizeof_void_p=`cat conftest.val`
17308 else
17309 echo "$as_me: program exited with status $ac_status" >&5
17310 echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17312
17313 ( exit $ac_status )
17314 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17315 See \`config.log' for more details." >&5
17316 echo "$as_me: error: cannot compute sizeof (void *), 77
17317 See \`config.log' for more details." >&2;}
17318 { (exit 1); exit 1; }; }
17319 fi
17320 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17321 fi
17322 fi
17323 rm -f conftest.val
17324 else
17325 ac_cv_sizeof_void_p=0
17326 fi
17327 fi
17328 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17329 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17330 cat >>confdefs.h <<_ACEOF
17331 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17332 _ACEOF
17333
17334 ;;
17335 esac
17336
17337 # Lacking an uint64_t? Test size of long
17338 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
17339 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
17340 echo $ECHO_N "checking for long... $ECHO_C" >&6
17341 if test "${ac_cv_type_long+set}" = set; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344 cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h. */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17350 $ac_includes_default
17351 int
17352 main ()
17353 {
17354 if ((long *) 0)
17355 return 0;
17356 if (sizeof (long))
17357 return 0;
17358 ;
17359 return 0;
17360 }
17361 _ACEOF
17362 rm -f conftest.$ac_objext
17363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17364 (eval $ac_compile) 2>conftest.er1
17365 ac_status=$?
17366 grep -v '^ *+' conftest.er1 >conftest.err
17367 rm -f conftest.er1
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
17371 { ac_try='test -z "$ac_c_werror_flag"
17372 || test ! -s conftest.err'
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
17375 ac_status=$?
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377 (exit $ac_status); }; } &&
17378 { ac_try='test -s conftest.$ac_objext'
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17381 ac_status=$?
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
17384 ac_cv_type_long=yes
17385 else
17386 echo "$as_me: failed program was:" >&5
17387 sed 's/^/| /' conftest.$ac_ext >&5
17388
17389 ac_cv_type_long=no
17390 fi
17391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17392 fi
17393 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17394 echo "${ECHO_T}$ac_cv_type_long" >&6
17395
17396 echo "$as_me:$LINENO: checking size of long" >&5
17397 echo $ECHO_N "checking size of long... $ECHO_C" >&6
17398 if test "${ac_cv_sizeof_long+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17400 else
17401 if test "$ac_cv_type_long" = yes; then
17402 # The cast to unsigned long works around a bug in the HP C Compiler
17403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17405 # This bug is HP SR number 8606223364.
17406 if test "$cross_compiling" = yes; then
17407 # Depending upon the size, compute the lo and hi bounds.
17408 cat >conftest.$ac_ext <<_ACEOF
17409 /* confdefs.h. */
17410 _ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h. */
17414 $ac_includes_default
17415 int
17416 main ()
17417 {
17418 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
17419 test_array [0] = 0
17420
17421 ;
17422 return 0;
17423 }
17424 _ACEOF
17425 rm -f conftest.$ac_objext
17426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17427 (eval $ac_compile) 2>conftest.er1
17428 ac_status=$?
17429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
17434 { ac_try='test -z "$ac_c_werror_flag"
17435 || test ! -s conftest.err'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; } &&
17441 { ac_try='test -s conftest.$ac_objext'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; }; then
17447 ac_lo=0 ac_mid=0
17448 while :; do
17449 cat >conftest.$ac_ext <<_ACEOF
17450 /* confdefs.h. */
17451 _ACEOF
17452 cat confdefs.h >>conftest.$ac_ext
17453 cat >>conftest.$ac_ext <<_ACEOF
17454 /* end confdefs.h. */
17455 $ac_includes_default
17456 int
17457 main ()
17458 {
17459 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17460 test_array [0] = 0
17461
17462 ;
17463 return 0;
17464 }
17465 _ACEOF
17466 rm -f conftest.$ac_objext
17467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17468 (eval $ac_compile) 2>conftest.er1
17469 ac_status=$?
17470 grep -v '^ *+' conftest.er1 >conftest.err
17471 rm -f conftest.er1
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } &&
17475 { ac_try='test -z "$ac_c_werror_flag"
17476 || test ! -s conftest.err'
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; } &&
17482 { ac_try='test -s conftest.$ac_objext'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17488 ac_hi=$ac_mid; break
17489 else
17490 echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17492
17493 ac_lo=`expr $ac_mid + 1`
17494 if test $ac_lo -le $ac_mid; then
17495 ac_lo= ac_hi=
17496 break
17497 fi
17498 ac_mid=`expr 2 '*' $ac_mid + 1`
17499 fi
17500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17501 done
17502 else
17503 echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17505
17506 cat >conftest.$ac_ext <<_ACEOF
17507 /* confdefs.h. */
17508 _ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h. */
17512 $ac_includes_default
17513 int
17514 main ()
17515 {
17516 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
17517 test_array [0] = 0
17518
17519 ;
17520 return 0;
17521 }
17522 _ACEOF
17523 rm -f conftest.$ac_objext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17525 (eval $ac_compile) 2>conftest.er1
17526 ac_status=$?
17527 grep -v '^ *+' conftest.er1 >conftest.err
17528 rm -f conftest.er1
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -z "$ac_c_werror_flag"
17533 || test ! -s conftest.err'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest.$ac_objext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 ac_hi=-1 ac_mid=-1
17546 while :; do
17547 cat >conftest.$ac_ext <<_ACEOF
17548 /* confdefs.h. */
17549 _ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17553 $ac_includes_default
17554 int
17555 main ()
17556 {
17557 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
17558 test_array [0] = 0
17559
17560 ;
17561 return 0;
17562 }
17563 _ACEOF
17564 rm -f conftest.$ac_objext
17565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17566 (eval $ac_compile) 2>conftest.er1
17567 ac_status=$?
17568 grep -v '^ *+' conftest.er1 >conftest.err
17569 rm -f conftest.er1
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
17573 { ac_try='test -z "$ac_c_werror_flag"
17574 || test ! -s conftest.err'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try='test -s conftest.$ac_objext'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586 ac_lo=$ac_mid; break
17587 else
17588 echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17590
17591 ac_hi=`expr '(' $ac_mid ')' - 1`
17592 if test $ac_mid -le $ac_hi; then
17593 ac_lo= ac_hi=
17594 break
17595 fi
17596 ac_mid=`expr 2 '*' $ac_mid`
17597 fi
17598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17599 done
17600 else
17601 echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17603
17604 ac_lo= ac_hi=
17605 fi
17606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17607 fi
17608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17609 # Binary search between lo and hi bounds.
17610 while test "x$ac_lo" != "x$ac_hi"; do
17611 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17612 cat >conftest.$ac_ext <<_ACEOF
17613 /* confdefs.h. */
17614 _ACEOF
17615 cat confdefs.h >>conftest.$ac_ext
17616 cat >>conftest.$ac_ext <<_ACEOF
17617 /* end confdefs.h. */
17618 $ac_includes_default
17619 int
17620 main ()
17621 {
17622 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
17623 test_array [0] = 0
17624
17625 ;
17626 return 0;
17627 }
17628 _ACEOF
17629 rm -f conftest.$ac_objext
17630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17631 (eval $ac_compile) 2>conftest.er1
17632 ac_status=$?
17633 grep -v '^ *+' conftest.er1 >conftest.err
17634 rm -f conftest.er1
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
17638 { ac_try='test -z "$ac_c_werror_flag"
17639 || test ! -s conftest.err'
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17651 ac_hi=$ac_mid
17652 else
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17655
17656 ac_lo=`expr '(' $ac_mid ')' + 1`
17657 fi
17658 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17659 done
17660 case $ac_lo in
17661 ?*) ac_cv_sizeof_long=$ac_lo;;
17662 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17663 See \`config.log' for more details." >&5
17664 echo "$as_me: error: cannot compute sizeof (long), 77
17665 See \`config.log' for more details." >&2;}
17666 { (exit 1); exit 1; }; } ;;
17667 esac
17668 else
17669 if test "$cross_compiling" = yes; then
17670 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17671 See \`config.log' for more details." >&5
17672 echo "$as_me: error: cannot run test program while cross compiling
17673 See \`config.log' for more details." >&2;}
17674 { (exit 1); exit 1; }; }
17675 else
17676 cat >conftest.$ac_ext <<_ACEOF
17677 /* confdefs.h. */
17678 _ACEOF
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17682 $ac_includes_default
17683 long longval () { return (long) (sizeof (long)); }
17684 unsigned long ulongval () { return (long) (sizeof (long)); }
17685 #include <stdio.h>
17686 #include <stdlib.h>
17687 int
17688 main ()
17689 {
17690
17691 FILE *f = fopen ("conftest.val", "w");
17692 if (! f)
17693 exit (1);
17694 if (((long) (sizeof (long))) < 0)
17695 {
17696 long i = longval ();
17697 if (i != ((long) (sizeof (long))))
17698 exit (1);
17699 fprintf (f, "%ld\n", i);
17700 }
17701 else
17702 {
17703 unsigned long i = ulongval ();
17704 if (i != ((long) (sizeof (long))))
17705 exit (1);
17706 fprintf (f, "%lu\n", i);
17707 }
17708 exit (ferror (f) || fclose (f) != 0);
17709
17710 ;
17711 return 0;
17712 }
17713 _ACEOF
17714 rm -f conftest$ac_exeext
17715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17716 (eval $ac_link) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 ac_cv_sizeof_long=`cat conftest.val`
17726 else
17727 echo "$as_me: program exited with status $ac_status" >&5
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17730
17731 ( exit $ac_status )
17732 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
17733 See \`config.log' for more details." >&5
17734 echo "$as_me: error: cannot compute sizeof (long), 77
17735 See \`config.log' for more details." >&2;}
17736 { (exit 1); exit 1; }; }
17737 fi
17738 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17739 fi
17740 fi
17741 rm -f conftest.val
17742 else
17743 ac_cv_sizeof_long=0
17744 fi
17745 fi
17746 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17747 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
17748 cat >>confdefs.h <<_ACEOF
17749 #define SIZEOF_LONG $ac_cv_sizeof_long
17750 _ACEOF
17751
17752 ;;
17753 esac
17754
17755 if test $acx_cv_header_stdint = stddef.h; then
17756 # Lacking a good header? Test size of everything and deduce all types.
17757 echo "$as_me:$LINENO: checking for int" >&5
17758 echo $ECHO_N "checking for int... $ECHO_C" >&6
17759 if test "${ac_cv_type_int+set}" = set; then
17760 echo $ECHO_N "(cached) $ECHO_C" >&6
17761 else
17762 cat >conftest.$ac_ext <<_ACEOF
17763 /* confdefs.h. */
17764 _ACEOF
17765 cat confdefs.h >>conftest.$ac_ext
17766 cat >>conftest.$ac_ext <<_ACEOF
17767 /* end confdefs.h. */
17768 $ac_includes_default
17769 int
17770 main ()
17771 {
17772 if ((int *) 0)
17773 return 0;
17774 if (sizeof (int))
17775 return 0;
17776 ;
17777 return 0;
17778 }
17779 _ACEOF
17780 rm -f conftest.$ac_objext
17781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17782 (eval $ac_compile) 2>conftest.er1
17783 ac_status=$?
17784 grep -v '^ *+' conftest.er1 >conftest.err
17785 rm -f conftest.er1
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } &&
17789 { ac_try='test -z "$ac_c_werror_flag"
17790 || test ! -s conftest.err'
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17793 ac_status=$?
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; } &&
17796 { ac_try='test -s conftest.$ac_objext'
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17799 ac_status=$?
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; }; then
17802 ac_cv_type_int=yes
17803 else
17804 echo "$as_me: failed program was:" >&5
17805 sed 's/^/| /' conftest.$ac_ext >&5
17806
17807 ac_cv_type_int=no
17808 fi
17809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17810 fi
17811 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17812 echo "${ECHO_T}$ac_cv_type_int" >&6
17813
17814 echo "$as_me:$LINENO: checking size of int" >&5
17815 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17816 if test "${ac_cv_sizeof_int+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17818 else
17819 if test "$ac_cv_type_int" = yes; then
17820 # The cast to unsigned long works around a bug in the HP C Compiler
17821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17823 # This bug is HP SR number 8606223364.
17824 if test "$cross_compiling" = yes; then
17825 # Depending upon the size, compute the lo and hi bounds.
17826 cat >conftest.$ac_ext <<_ACEOF
17827 /* confdefs.h. */
17828 _ACEOF
17829 cat confdefs.h >>conftest.$ac_ext
17830 cat >>conftest.$ac_ext <<_ACEOF
17831 /* end confdefs.h. */
17832 $ac_includes_default
17833 int
17834 main ()
17835 {
17836 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17837 test_array [0] = 0
17838
17839 ;
17840 return 0;
17841 }
17842 _ACEOF
17843 rm -f conftest.$ac_objext
17844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17845 (eval $ac_compile) 2>conftest.er1
17846 ac_status=$?
17847 grep -v '^ *+' conftest.er1 >conftest.err
17848 rm -f conftest.er1
17849 cat conftest.err >&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
17852 { ac_try='test -z "$ac_c_werror_flag"
17853 || test ! -s conftest.err'
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } &&
17859 { ac_try='test -s conftest.$ac_objext'
17860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 ac_lo=0 ac_mid=0
17866 while :; do
17867 cat >conftest.$ac_ext <<_ACEOF
17868 /* confdefs.h. */
17869 _ACEOF
17870 cat confdefs.h >>conftest.$ac_ext
17871 cat >>conftest.$ac_ext <<_ACEOF
17872 /* end confdefs.h. */
17873 $ac_includes_default
17874 int
17875 main ()
17876 {
17877 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17878 test_array [0] = 0
17879
17880 ;
17881 return 0;
17882 }
17883 _ACEOF
17884 rm -f conftest.$ac_objext
17885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17886 (eval $ac_compile) 2>conftest.er1
17887 ac_status=$?
17888 grep -v '^ *+' conftest.er1 >conftest.err
17889 rm -f conftest.er1
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try='test -z "$ac_c_werror_flag"
17894 || test ! -s conftest.err'
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; } &&
17900 { ac_try='test -s conftest.$ac_objext'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17903 ac_status=$?
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; }; then
17906 ac_hi=$ac_mid; break
17907 else
17908 echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17910
17911 ac_lo=`expr $ac_mid + 1`
17912 if test $ac_lo -le $ac_mid; then
17913 ac_lo= ac_hi=
17914 break
17915 fi
17916 ac_mid=`expr 2 '*' $ac_mid + 1`
17917 fi
17918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17919 done
17920 else
17921 echo "$as_me: failed program was:" >&5
17922 sed 's/^/| /' conftest.$ac_ext >&5
17923
17924 cat >conftest.$ac_ext <<_ACEOF
17925 /* confdefs.h. */
17926 _ACEOF
17927 cat confdefs.h >>conftest.$ac_ext
17928 cat >>conftest.$ac_ext <<_ACEOF
17929 /* end confdefs.h. */
17930 $ac_includes_default
17931 int
17932 main ()
17933 {
17934 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17935 test_array [0] = 0
17936
17937 ;
17938 return 0;
17939 }
17940 _ACEOF
17941 rm -f conftest.$ac_objext
17942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17943 (eval $ac_compile) 2>conftest.er1
17944 ac_status=$?
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
17950 { ac_try='test -z "$ac_c_werror_flag"
17951 || test ! -s conftest.err'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try='test -s conftest.$ac_objext'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 ac_hi=-1 ac_mid=-1
17964 while :; do
17965 cat >conftest.$ac_ext <<_ACEOF
17966 /* confdefs.h. */
17967 _ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 $ac_includes_default
17972 int
17973 main ()
17974 {
17975 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17976 test_array [0] = 0
17977
17978 ;
17979 return 0;
17980 }
17981 _ACEOF
17982 rm -f conftest.$ac_objext
17983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17984 (eval $ac_compile) 2>conftest.er1
17985 ac_status=$?
17986 grep -v '^ *+' conftest.er1 >conftest.err
17987 rm -f conftest.er1
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
17991 { ac_try='test -z "$ac_c_werror_flag"
17992 || test ! -s conftest.err'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest.$ac_objext'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18001 ac_status=$?
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18004 ac_lo=$ac_mid; break
18005 else
18006 echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18008
18009 ac_hi=`expr '(' $ac_mid ')' - 1`
18010 if test $ac_mid -le $ac_hi; then
18011 ac_lo= ac_hi=
18012 break
18013 fi
18014 ac_mid=`expr 2 '*' $ac_mid`
18015 fi
18016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18017 done
18018 else
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18021
18022 ac_lo= ac_hi=
18023 fi
18024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18025 fi
18026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18027 # Binary search between lo and hi bounds.
18028 while test "x$ac_lo" != "x$ac_hi"; do
18029 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18030 cat >conftest.$ac_ext <<_ACEOF
18031 /* confdefs.h. */
18032 _ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h. */
18036 $ac_includes_default
18037 int
18038 main ()
18039 {
18040 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18041 test_array [0] = 0
18042
18043 ;
18044 return 0;
18045 }
18046 _ACEOF
18047 rm -f conftest.$ac_objext
18048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18049 (eval $ac_compile) 2>conftest.er1
18050 ac_status=$?
18051 grep -v '^ *+' conftest.er1 >conftest.err
18052 rm -f conftest.er1
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
18056 { ac_try='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest.$ac_objext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_hi=$ac_mid
18070 else
18071 echo "$as_me: failed program was:" >&5
18072 sed 's/^/| /' conftest.$ac_ext >&5
18073
18074 ac_lo=`expr '(' $ac_mid ')' + 1`
18075 fi
18076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18077 done
18078 case $ac_lo in
18079 ?*) ac_cv_sizeof_int=$ac_lo;;
18080 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18081 See \`config.log' for more details." >&5
18082 echo "$as_me: error: cannot compute sizeof (int), 77
18083 See \`config.log' for more details." >&2;}
18084 { (exit 1); exit 1; }; } ;;
18085 esac
18086 else
18087 if test "$cross_compiling" = yes; then
18088 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18089 See \`config.log' for more details." >&5
18090 echo "$as_me: error: cannot run test program while cross compiling
18091 See \`config.log' for more details." >&2;}
18092 { (exit 1); exit 1; }; }
18093 else
18094 cat >conftest.$ac_ext <<_ACEOF
18095 /* confdefs.h. */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18100 $ac_includes_default
18101 long longval () { return (long) (sizeof (int)); }
18102 unsigned long ulongval () { return (long) (sizeof (int)); }
18103 #include <stdio.h>
18104 #include <stdlib.h>
18105 int
18106 main ()
18107 {
18108
18109 FILE *f = fopen ("conftest.val", "w");
18110 if (! f)
18111 exit (1);
18112 if (((long) (sizeof (int))) < 0)
18113 {
18114 long i = longval ();
18115 if (i != ((long) (sizeof (int))))
18116 exit (1);
18117 fprintf (f, "%ld\n", i);
18118 }
18119 else
18120 {
18121 unsigned long i = ulongval ();
18122 if (i != ((long) (sizeof (int))))
18123 exit (1);
18124 fprintf (f, "%lu\n", i);
18125 }
18126 exit (ferror (f) || fclose (f) != 0);
18127
18128 ;
18129 return 0;
18130 }
18131 _ACEOF
18132 rm -f conftest$ac_exeext
18133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18134 (eval $ac_link) 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18140 ac_status=$?
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 ac_cv_sizeof_int=`cat conftest.val`
18144 else
18145 echo "$as_me: program exited with status $ac_status" >&5
18146 echo "$as_me: failed program was:" >&5
18147 sed 's/^/| /' conftest.$ac_ext >&5
18148
18149 ( exit $ac_status )
18150 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18151 See \`config.log' for more details." >&5
18152 echo "$as_me: error: cannot compute sizeof (int), 77
18153 See \`config.log' for more details." >&2;}
18154 { (exit 1); exit 1; }; }
18155 fi
18156 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18157 fi
18158 fi
18159 rm -f conftest.val
18160 else
18161 ac_cv_sizeof_int=0
18162 fi
18163 fi
18164 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18165 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18166 cat >>confdefs.h <<_ACEOF
18167 #define SIZEOF_INT $ac_cv_sizeof_int
18168 _ACEOF
18169
18170
18171 echo "$as_me:$LINENO: checking for short" >&5
18172 echo $ECHO_N "checking for short... $ECHO_C" >&6
18173 if test "${ac_cv_type_short+set}" = set; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18175 else
18176 cat >conftest.$ac_ext <<_ACEOF
18177 /* confdefs.h. */
18178 _ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h. */
18182 $ac_includes_default
18183 int
18184 main ()
18185 {
18186 if ((short *) 0)
18187 return 0;
18188 if (sizeof (short))
18189 return 0;
18190 ;
18191 return 0;
18192 }
18193 _ACEOF
18194 rm -f conftest.$ac_objext
18195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18196 (eval $ac_compile) 2>conftest.er1
18197 ac_status=$?
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
18203 { ac_try='test -z "$ac_c_werror_flag"
18204 || test ! -s conftest.err'
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest.$ac_objext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_cv_type_short=yes
18217 else
18218 echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221 ac_cv_type_short=no
18222 fi
18223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18224 fi
18225 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18226 echo "${ECHO_T}$ac_cv_type_short" >&6
18227
18228 echo "$as_me:$LINENO: checking size of short" >&5
18229 echo $ECHO_N "checking size of short... $ECHO_C" >&6
18230 if test "${ac_cv_sizeof_short+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18232 else
18233 if test "$ac_cv_type_short" = yes; then
18234 # The cast to unsigned long works around a bug in the HP C Compiler
18235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18237 # This bug is HP SR number 8606223364.
18238 if test "$cross_compiling" = yes; then
18239 # Depending upon the size, compute the lo and hi bounds.
18240 cat >conftest.$ac_ext <<_ACEOF
18241 /* confdefs.h. */
18242 _ACEOF
18243 cat confdefs.h >>conftest.$ac_ext
18244 cat >>conftest.$ac_ext <<_ACEOF
18245 /* end confdefs.h. */
18246 $ac_includes_default
18247 int
18248 main ()
18249 {
18250 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18251 test_array [0] = 0
18252
18253 ;
18254 return 0;
18255 }
18256 _ACEOF
18257 rm -f conftest.$ac_objext
18258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18259 (eval $ac_compile) 2>conftest.er1
18260 ac_status=$?
18261 grep -v '^ *+' conftest.er1 >conftest.err
18262 rm -f conftest.er1
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
18266 { ac_try='test -z "$ac_c_werror_flag"
18267 || test ! -s conftest.err'
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; } &&
18273 { ac_try='test -s conftest.$ac_objext'
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; }; then
18279 ac_lo=0 ac_mid=0
18280 while :; do
18281 cat >conftest.$ac_ext <<_ACEOF
18282 /* confdefs.h. */
18283 _ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18287 $ac_includes_default
18288 int
18289 main ()
18290 {
18291 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18292 test_array [0] = 0
18293
18294 ;
18295 return 0;
18296 }
18297 _ACEOF
18298 rm -f conftest.$ac_objext
18299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18300 (eval $ac_compile) 2>conftest.er1
18301 ac_status=$?
18302 grep -v '^ *+' conftest.er1 >conftest.err
18303 rm -f conftest.er1
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } &&
18307 { ac_try='test -z "$ac_c_werror_flag"
18308 || test ! -s conftest.err'
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); }; } &&
18314 { ac_try='test -s conftest.$ac_objext'
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18317 ac_status=$?
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; }; then
18320 ac_hi=$ac_mid; break
18321 else
18322 echo "$as_me: failed program was:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18324
18325 ac_lo=`expr $ac_mid + 1`
18326 if test $ac_lo -le $ac_mid; then
18327 ac_lo= ac_hi=
18328 break
18329 fi
18330 ac_mid=`expr 2 '*' $ac_mid + 1`
18331 fi
18332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18333 done
18334 else
18335 echo "$as_me: failed program was:" >&5
18336 sed 's/^/| /' conftest.$ac_ext >&5
18337
18338 cat >conftest.$ac_ext <<_ACEOF
18339 /* confdefs.h. */
18340 _ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18344 $ac_includes_default
18345 int
18346 main ()
18347 {
18348 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18349 test_array [0] = 0
18350
18351 ;
18352 return 0;
18353 }
18354 _ACEOF
18355 rm -f conftest.$ac_objext
18356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18357 (eval $ac_compile) 2>conftest.er1
18358 ac_status=$?
18359 grep -v '^ *+' conftest.er1 >conftest.err
18360 rm -f conftest.er1
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
18364 { ac_try='test -z "$ac_c_werror_flag"
18365 || test ! -s conftest.err'
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; } &&
18371 { ac_try='test -s conftest.$ac_objext'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18377 ac_hi=-1 ac_mid=-1
18378 while :; do
18379 cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h. */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h. */
18385 $ac_includes_default
18386 int
18387 main ()
18388 {
18389 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18390 test_array [0] = 0
18391
18392 ;
18393 return 0;
18394 }
18395 _ACEOF
18396 rm -f conftest.$ac_objext
18397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18398 (eval $ac_compile) 2>conftest.er1
18399 ac_status=$?
18400 grep -v '^ *+' conftest.er1 >conftest.err
18401 rm -f conftest.er1
18402 cat conftest.err >&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } &&
18405 { ac_try='test -z "$ac_c_werror_flag"
18406 || test ! -s conftest.err'
18407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408 (eval $ac_try) 2>&5
18409 ac_status=$?
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; } &&
18412 { ac_try='test -s conftest.$ac_objext'
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 ac_lo=$ac_mid; break
18419 else
18420 echo "$as_me: failed program was:" >&5
18421 sed 's/^/| /' conftest.$ac_ext >&5
18422
18423 ac_hi=`expr '(' $ac_mid ')' - 1`
18424 if test $ac_mid -le $ac_hi; then
18425 ac_lo= ac_hi=
18426 break
18427 fi
18428 ac_mid=`expr 2 '*' $ac_mid`
18429 fi
18430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18431 done
18432 else
18433 echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18435
18436 ac_lo= ac_hi=
18437 fi
18438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18439 fi
18440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18441 # Binary search between lo and hi bounds.
18442 while test "x$ac_lo" != "x$ac_hi"; do
18443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18444 cat >conftest.$ac_ext <<_ACEOF
18445 /* confdefs.h. */
18446 _ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h. */
18450 $ac_includes_default
18451 int
18452 main ()
18453 {
18454 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18455 test_array [0] = 0
18456
18457 ;
18458 return 0;
18459 }
18460 _ACEOF
18461 rm -f conftest.$ac_objext
18462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18463 (eval $ac_compile) 2>conftest.er1
18464 ac_status=$?
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
18470 { ac_try='test -z "$ac_c_werror_flag"
18471 || test ! -s conftest.err'
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; } &&
18477 { ac_try='test -s conftest.$ac_objext'
18478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
18483 ac_hi=$ac_mid
18484 else
18485 echo "$as_me: failed program was:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18487
18488 ac_lo=`expr '(' $ac_mid ')' + 1`
18489 fi
18490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18491 done
18492 case $ac_lo in
18493 ?*) ac_cv_sizeof_short=$ac_lo;;
18494 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18495 See \`config.log' for more details." >&5
18496 echo "$as_me: error: cannot compute sizeof (short), 77
18497 See \`config.log' for more details." >&2;}
18498 { (exit 1); exit 1; }; } ;;
18499 esac
18500 else
18501 if test "$cross_compiling" = yes; then
18502 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18503 See \`config.log' for more details." >&5
18504 echo "$as_me: error: cannot run test program while cross compiling
18505 See \`config.log' for more details." >&2;}
18506 { (exit 1); exit 1; }; }
18507 else
18508 cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h. */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 $ac_includes_default
18515 long longval () { return (long) (sizeof (short)); }
18516 unsigned long ulongval () { return (long) (sizeof (short)); }
18517 #include <stdio.h>
18518 #include <stdlib.h>
18519 int
18520 main ()
18521 {
18522
18523 FILE *f = fopen ("conftest.val", "w");
18524 if (! f)
18525 exit (1);
18526 if (((long) (sizeof (short))) < 0)
18527 {
18528 long i = longval ();
18529 if (i != ((long) (sizeof (short))))
18530 exit (1);
18531 fprintf (f, "%ld\n", i);
18532 }
18533 else
18534 {
18535 unsigned long i = ulongval ();
18536 if (i != ((long) (sizeof (short))))
18537 exit (1);
18538 fprintf (f, "%lu\n", i);
18539 }
18540 exit (ferror (f) || fclose (f) != 0);
18541
18542 ;
18543 return 0;
18544 }
18545 _ACEOF
18546 rm -f conftest$ac_exeext
18547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18548 (eval $ac_link) 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18557 ac_cv_sizeof_short=`cat conftest.val`
18558 else
18559 echo "$as_me: program exited with status $ac_status" >&5
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18562
18563 ( exit $ac_status )
18564 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18565 See \`config.log' for more details." >&5
18566 echo "$as_me: error: cannot compute sizeof (short), 77
18567 See \`config.log' for more details." >&2;}
18568 { (exit 1); exit 1; }; }
18569 fi
18570 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18571 fi
18572 fi
18573 rm -f conftest.val
18574 else
18575 ac_cv_sizeof_short=0
18576 fi
18577 fi
18578 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18579 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18580 cat >>confdefs.h <<_ACEOF
18581 #define SIZEOF_SHORT $ac_cv_sizeof_short
18582 _ACEOF
18583
18584
18585 echo "$as_me:$LINENO: checking for char" >&5
18586 echo $ECHO_N "checking for char... $ECHO_C" >&6
18587 if test "${ac_cv_type_char+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18589 else
18590 cat >conftest.$ac_ext <<_ACEOF
18591 /* confdefs.h. */
18592 _ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18596 $ac_includes_default
18597 int
18598 main ()
18599 {
18600 if ((char *) 0)
18601 return 0;
18602 if (sizeof (char))
18603 return 0;
18604 ;
18605 return 0;
18606 }
18607 _ACEOF
18608 rm -f conftest.$ac_objext
18609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18610 (eval $ac_compile) 2>conftest.er1
18611 ac_status=$?
18612 grep -v '^ *+' conftest.er1 >conftest.err
18613 rm -f conftest.er1
18614 cat conftest.err >&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } &&
18617 { ac_try='test -z "$ac_c_werror_flag"
18618 || test ! -s conftest.err'
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; } &&
18624 { ac_try='test -s conftest.$ac_objext'
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; }; then
18630 ac_cv_type_char=yes
18631 else
18632 echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18634
18635 ac_cv_type_char=no
18636 fi
18637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18638 fi
18639 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18640 echo "${ECHO_T}$ac_cv_type_char" >&6
18641
18642 echo "$as_me:$LINENO: checking size of char" >&5
18643 echo $ECHO_N "checking size of char... $ECHO_C" >&6
18644 if test "${ac_cv_sizeof_char+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18646 else
18647 if test "$ac_cv_type_char" = yes; then
18648 # The cast to unsigned long works around a bug in the HP C Compiler
18649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18651 # This bug is HP SR number 8606223364.
18652 if test "$cross_compiling" = yes; then
18653 # Depending upon the size, compute the lo and hi bounds.
18654 cat >conftest.$ac_ext <<_ACEOF
18655 /* confdefs.h. */
18656 _ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18660 $ac_includes_default
18661 int
18662 main ()
18663 {
18664 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18665 test_array [0] = 0
18666
18667 ;
18668 return 0;
18669 }
18670 _ACEOF
18671 rm -f conftest.$ac_objext
18672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18673 (eval $ac_compile) 2>conftest.er1
18674 ac_status=$?
18675 grep -v '^ *+' conftest.er1 >conftest.err
18676 rm -f conftest.er1
18677 cat conftest.err >&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
18680 { ac_try='test -z "$ac_c_werror_flag"
18681 || test ! -s conftest.err'
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest.$ac_objext'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; }; then
18693 ac_lo=0 ac_mid=0
18694 while :; do
18695 cat >conftest.$ac_ext <<_ACEOF
18696 /* confdefs.h. */
18697 _ACEOF
18698 cat confdefs.h >>conftest.$ac_ext
18699 cat >>conftest.$ac_ext <<_ACEOF
18700 /* end confdefs.h. */
18701 $ac_includes_default
18702 int
18703 main ()
18704 {
18705 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18706 test_array [0] = 0
18707
18708 ;
18709 return 0;
18710 }
18711 _ACEOF
18712 rm -f conftest.$ac_objext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18714 (eval $ac_compile) 2>conftest.er1
18715 ac_status=$?
18716 grep -v '^ *+' conftest.er1 >conftest.err
18717 rm -f conftest.er1
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } &&
18721 { ac_try='test -z "$ac_c_werror_flag"
18722 || test ! -s conftest.err'
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
18725 ac_status=$?
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; } &&
18728 { ac_try='test -s conftest.$ac_objext'
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18731 ac_status=$?
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 ac_hi=$ac_mid; break
18735 else
18736 echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18738
18739 ac_lo=`expr $ac_mid + 1`
18740 if test $ac_lo -le $ac_mid; then
18741 ac_lo= ac_hi=
18742 break
18743 fi
18744 ac_mid=`expr 2 '*' $ac_mid + 1`
18745 fi
18746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18747 done
18748 else
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18751
18752 cat >conftest.$ac_ext <<_ACEOF
18753 /* confdefs.h. */
18754 _ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18758 $ac_includes_default
18759 int
18760 main ()
18761 {
18762 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18763 test_array [0] = 0
18764
18765 ;
18766 return 0;
18767 }
18768 _ACEOF
18769 rm -f conftest.$ac_objext
18770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18771 (eval $ac_compile) 2>conftest.er1
18772 ac_status=$?
18773 grep -v '^ *+' conftest.er1 >conftest.err
18774 rm -f conftest.er1
18775 cat conftest.err >&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } &&
18778 { ac_try='test -z "$ac_c_werror_flag"
18779 || test ! -s conftest.err'
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; } &&
18785 { ac_try='test -s conftest.$ac_objext'
18786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; }; then
18791 ac_hi=-1 ac_mid=-1
18792 while :; do
18793 cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h. */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 $ac_includes_default
18800 int
18801 main ()
18802 {
18803 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18804 test_array [0] = 0
18805
18806 ;
18807 return 0;
18808 }
18809 _ACEOF
18810 rm -f conftest.$ac_objext
18811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18812 (eval $ac_compile) 2>conftest.er1
18813 ac_status=$?
18814 grep -v '^ *+' conftest.er1 >conftest.err
18815 rm -f conftest.er1
18816 cat conftest.err >&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } &&
18819 { ac_try='test -z "$ac_c_werror_flag"
18820 || test ! -s conftest.err'
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest.$ac_objext'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 ac_lo=$ac_mid; break
18833 else
18834 echo "$as_me: failed program was:" >&5
18835 sed 's/^/| /' conftest.$ac_ext >&5
18836
18837 ac_hi=`expr '(' $ac_mid ')' - 1`
18838 if test $ac_mid -le $ac_hi; then
18839 ac_lo= ac_hi=
18840 break
18841 fi
18842 ac_mid=`expr 2 '*' $ac_mid`
18843 fi
18844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18845 done
18846 else
18847 echo "$as_me: failed program was:" >&5
18848 sed 's/^/| /' conftest.$ac_ext >&5
18849
18850 ac_lo= ac_hi=
18851 fi
18852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18853 fi
18854 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18855 # Binary search between lo and hi bounds.
18856 while test "x$ac_lo" != "x$ac_hi"; do
18857 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18858 cat >conftest.$ac_ext <<_ACEOF
18859 /* confdefs.h. */
18860 _ACEOF
18861 cat confdefs.h >>conftest.$ac_ext
18862 cat >>conftest.$ac_ext <<_ACEOF
18863 /* end confdefs.h. */
18864 $ac_includes_default
18865 int
18866 main ()
18867 {
18868 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18869 test_array [0] = 0
18870
18871 ;
18872 return 0;
18873 }
18874 _ACEOF
18875 rm -f conftest.$ac_objext
18876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18877 (eval $ac_compile) 2>conftest.er1
18878 ac_status=$?
18879 grep -v '^ *+' conftest.er1 >conftest.err
18880 rm -f conftest.er1
18881 cat conftest.err >&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
18884 { ac_try='test -z "$ac_c_werror_flag"
18885 || test ! -s conftest.err'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; } &&
18891 { ac_try='test -s conftest.$ac_objext'
18892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893 (eval $ac_try) 2>&5
18894 ac_status=$?
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; }; then
18897 ac_hi=$ac_mid
18898 else
18899 echo "$as_me: failed program was:" >&5
18900 sed 's/^/| /' conftest.$ac_ext >&5
18901
18902 ac_lo=`expr '(' $ac_mid ')' + 1`
18903 fi
18904 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18905 done
18906 case $ac_lo in
18907 ?*) ac_cv_sizeof_char=$ac_lo;;
18908 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18909 See \`config.log' for more details." >&5
18910 echo "$as_me: error: cannot compute sizeof (char), 77
18911 See \`config.log' for more details." >&2;}
18912 { (exit 1); exit 1; }; } ;;
18913 esac
18914 else
18915 if test "$cross_compiling" = yes; then
18916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18917 See \`config.log' for more details." >&5
18918 echo "$as_me: error: cannot run test program while cross compiling
18919 See \`config.log' for more details." >&2;}
18920 { (exit 1); exit 1; }; }
18921 else
18922 cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h. */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928 $ac_includes_default
18929 long longval () { return (long) (sizeof (char)); }
18930 unsigned long ulongval () { return (long) (sizeof (char)); }
18931 #include <stdio.h>
18932 #include <stdlib.h>
18933 int
18934 main ()
18935 {
18936
18937 FILE *f = fopen ("conftest.val", "w");
18938 if (! f)
18939 exit (1);
18940 if (((long) (sizeof (char))) < 0)
18941 {
18942 long i = longval ();
18943 if (i != ((long) (sizeof (char))))
18944 exit (1);
18945 fprintf (f, "%ld\n", i);
18946 }
18947 else
18948 {
18949 unsigned long i = ulongval ();
18950 if (i != ((long) (sizeof (char))))
18951 exit (1);
18952 fprintf (f, "%lu\n", i);
18953 }
18954 exit (ferror (f) || fclose (f) != 0);
18955
18956 ;
18957 return 0;
18958 }
18959 _ACEOF
18960 rm -f conftest$ac_exeext
18961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18962 (eval $ac_link) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967 (eval $ac_try) 2>&5
18968 ac_status=$?
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18971 ac_cv_sizeof_char=`cat conftest.val`
18972 else
18973 echo "$as_me: program exited with status $ac_status" >&5
18974 echo "$as_me: failed program was:" >&5
18975 sed 's/^/| /' conftest.$ac_ext >&5
18976
18977 ( exit $ac_status )
18978 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18979 See \`config.log' for more details." >&5
18980 echo "$as_me: error: cannot compute sizeof (char), 77
18981 See \`config.log' for more details." >&2;}
18982 { (exit 1); exit 1; }; }
18983 fi
18984 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18985 fi
18986 fi
18987 rm -f conftest.val
18988 else
18989 ac_cv_sizeof_char=0
18990 fi
18991 fi
18992 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18993 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18994 cat >>confdefs.h <<_ACEOF
18995 #define SIZEOF_CHAR $ac_cv_sizeof_char
18996 _ACEOF
18997
18998
18999
19000 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
19001 echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
19002 case "$ac_cv_sizeof_char" in
19003 1) acx_cv_type_int8_t=char ;;
19004 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
19005 echo "$as_me: error: no 8-bit type" >&2;}
19006 { (exit please report a bug); exit please report a bug; }; }
19007 esac
19008 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
19009 echo "${ECHO_T}$acx_cv_type_int8_t" >&6
19010
19011 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
19012 echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
19013 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
19014 2:*) acx_cv_type_int16_t=int ;;
19015 *:2) acx_cv_type_int16_t=short ;;
19016 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
19017 echo "$as_me: error: no 16-bit type" >&2;}
19018 { (exit please report a bug); exit please report a bug; }; }
19019 esac
19020 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
19021 echo "${ECHO_T}$acx_cv_type_int16_t" >&6
19022
19023 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
19024 echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
19025 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
19026 4:*) acx_cv_type_int32_t=int ;;
19027 *:4) acx_cv_type_int32_t=long ;;
19028 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
19029 echo "$as_me: error: no 32-bit type" >&2;}
19030 { (exit please report a bug); exit please report a bug; }; }
19031 esac
19032 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
19033 echo "${ECHO_T}$acx_cv_type_int32_t" >&6
19034 fi
19035
19036 # These tests are here to make the output prettier
19037
19038 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
19039 case "$ac_cv_sizeof_long" in
19040 8) acx_cv_type_int64_t=long ;;
19041 esac
19042 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
19043 echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
19044 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
19045 echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
19046 fi
19047
19048 # Now we can use the above types
19049
19050 if test "$ac_cv_type_uintptr_t" != yes; then
19051 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
19052 echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
19053 case $ac_cv_sizeof_void_p in
19054 2) acx_cv_type_intptr_t=int16_t ;;
19055 4) acx_cv_type_intptr_t=int32_t ;;
19056 8) acx_cv_type_intptr_t=int64_t ;;
19057 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
19058 echo "$as_me: error: no equivalent for intptr_t" >&2;}
19059 { (exit please report a bug); exit please report a bug; }; }
19060 esac
19061 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
19062 echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
19063 fi
19064
19065 # ----------------- done all checks, emit header -------------
19066 ac_config_commands="$ac_config_commands gdb_stdint.h"
19067
19068
19069
19070
19071 # ------------------------- #
19072 # Checks for declarations. #
19073 # ------------------------- #
19074
19075 echo "$as_me:$LINENO: checking whether free is declared" >&5
19076 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
19077 if test "${ac_cv_have_decl_free+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19079 else
19080 cat >conftest.$ac_ext <<_ACEOF
19081 /* confdefs.h. */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 $ac_includes_default
19087 int
19088 main ()
19089 {
19090 #ifndef free
19091 char *p = (char *) free;
19092 #endif
19093
19094 ;
19095 return 0;
19096 }
19097 _ACEOF
19098 rm -f conftest.$ac_objext
19099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19100 (eval $ac_compile) 2>conftest.er1
19101 ac_status=$?
19102 grep -v '^ *+' conftest.er1 >conftest.err
19103 rm -f conftest.er1
19104 cat conftest.err >&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
19107 { ac_try='test -z "$ac_c_werror_flag"
19108 || test ! -s conftest.err'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; } &&
19114 { ac_try='test -s conftest.$ac_objext'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 ac_cv_have_decl_free=yes
19121 else
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19124
19125 ac_cv_have_decl_free=no
19126 fi
19127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19128 fi
19129 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
19130 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
19131 if test $ac_cv_have_decl_free = yes; then
19132
19133 cat >>confdefs.h <<_ACEOF
19134 #define HAVE_DECL_FREE 1
19135 _ACEOF
19136
19137
19138 else
19139 cat >>confdefs.h <<_ACEOF
19140 #define HAVE_DECL_FREE 0
19141 _ACEOF
19142
19143
19144 fi
19145 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
19146 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
19147 if test "${ac_cv_have_decl_malloc+set}" = set; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19149 else
19150 cat >conftest.$ac_ext <<_ACEOF
19151 /* confdefs.h. */
19152 _ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19156 $ac_includes_default
19157 int
19158 main ()
19159 {
19160 #ifndef malloc
19161 char *p = (char *) malloc;
19162 #endif
19163
19164 ;
19165 return 0;
19166 }
19167 _ACEOF
19168 rm -f conftest.$ac_objext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19170 (eval $ac_compile) 2>conftest.er1
19171 ac_status=$?
19172 grep -v '^ *+' conftest.er1 >conftest.err
19173 rm -f conftest.er1
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
19177 { ac_try='test -z "$ac_c_werror_flag"
19178 || test ! -s conftest.err'
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19181 ac_status=$?
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; } &&
19184 { ac_try='test -s conftest.$ac_objext'
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; }; then
19190 ac_cv_have_decl_malloc=yes
19191 else
19192 echo "$as_me: failed program was:" >&5
19193 sed 's/^/| /' conftest.$ac_ext >&5
19194
19195 ac_cv_have_decl_malloc=no
19196 fi
19197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19198 fi
19199 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
19200 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
19201 if test $ac_cv_have_decl_malloc = yes; then
19202
19203 cat >>confdefs.h <<_ACEOF
19204 #define HAVE_DECL_MALLOC 1
19205 _ACEOF
19206
19207
19208 else
19209 cat >>confdefs.h <<_ACEOF
19210 #define HAVE_DECL_MALLOC 0
19211 _ACEOF
19212
19213
19214 fi
19215 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
19216 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
19217 if test "${ac_cv_have_decl_realloc+set}" = set; then
19218 echo $ECHO_N "(cached) $ECHO_C" >&6
19219 else
19220 cat >conftest.$ac_ext <<_ACEOF
19221 /* confdefs.h. */
19222 _ACEOF
19223 cat confdefs.h >>conftest.$ac_ext
19224 cat >>conftest.$ac_ext <<_ACEOF
19225 /* end confdefs.h. */
19226 $ac_includes_default
19227 int
19228 main ()
19229 {
19230 #ifndef realloc
19231 char *p = (char *) realloc;
19232 #endif
19233
19234 ;
19235 return 0;
19236 }
19237 _ACEOF
19238 rm -f conftest.$ac_objext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19240 (eval $ac_compile) 2>conftest.er1
19241 ac_status=$?
19242 grep -v '^ *+' conftest.er1 >conftest.err
19243 rm -f conftest.er1
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
19247 { ac_try='test -z "$ac_c_werror_flag"
19248 || test ! -s conftest.err'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest.$ac_objext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_cv_have_decl_realloc=yes
19261 else
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19264
19265 ac_cv_have_decl_realloc=no
19266 fi
19267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19268 fi
19269 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
19270 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
19271 if test $ac_cv_have_decl_realloc = yes; then
19272
19273 cat >>confdefs.h <<_ACEOF
19274 #define HAVE_DECL_REALLOC 1
19275 _ACEOF
19276
19277
19278 else
19279 cat >>confdefs.h <<_ACEOF
19280 #define HAVE_DECL_REALLOC 0
19281 _ACEOF
19282
19283
19284 fi
19285
19286
19287 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
19288 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
19289 if test "${ac_cv_have_decl_strerror+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19291 else
19292 cat >conftest.$ac_ext <<_ACEOF
19293 /* confdefs.h. */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19298 $ac_includes_default
19299 int
19300 main ()
19301 {
19302 #ifndef strerror
19303 char *p = (char *) strerror;
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_strerror=yes
19333 else
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19336
19337 ac_cv_have_decl_strerror=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_strerror" >&5
19342 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
19343 if test $ac_cv_have_decl_strerror = yes; then
19344
19345 cat >>confdefs.h <<_ACEOF
19346 #define HAVE_DECL_STRERROR 1
19347 _ACEOF
19348
19349
19350 else
19351 cat >>confdefs.h <<_ACEOF
19352 #define HAVE_DECL_STRERROR 0
19353 _ACEOF
19354
19355
19356 fi
19357 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
19358 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
19359 if test "${ac_cv_have_decl_strstr+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 else
19362 cat >conftest.$ac_ext <<_ACEOF
19363 /* confdefs.h. */
19364 _ACEOF
19365 cat confdefs.h >>conftest.$ac_ext
19366 cat >>conftest.$ac_ext <<_ACEOF
19367 /* end confdefs.h. */
19368 $ac_includes_default
19369 int
19370 main ()
19371 {
19372 #ifndef strstr
19373 char *p = (char *) strstr;
19374 #endif
19375
19376 ;
19377 return 0;
19378 }
19379 _ACEOF
19380 rm -f conftest.$ac_objext
19381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>conftest.er1
19383 ac_status=$?
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
19389 { ac_try='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 ac_cv_have_decl_strstr=yes
19403 else
19404 echo "$as_me: failed program was:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19406
19407 ac_cv_have_decl_strstr=no
19408 fi
19409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19410 fi
19411 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
19412 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
19413 if test $ac_cv_have_decl_strstr = yes; then
19414
19415 cat >>confdefs.h <<_ACEOF
19416 #define HAVE_DECL_STRSTR 1
19417 _ACEOF
19418
19419
19420 else
19421 cat >>confdefs.h <<_ACEOF
19422 #define HAVE_DECL_STRSTR 0
19423 _ACEOF
19424
19425
19426 fi
19427
19428
19429 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
19430 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
19431 if test "${ac_cv_have_decl_getopt+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19433 else
19434 cat >conftest.$ac_ext <<_ACEOF
19435 /* confdefs.h. */
19436 _ACEOF
19437 cat confdefs.h >>conftest.$ac_ext
19438 cat >>conftest.$ac_ext <<_ACEOF
19439 /* end confdefs.h. */
19440 $ac_includes_default
19441 int
19442 main ()
19443 {
19444 #ifndef getopt
19445 char *p = (char *) getopt;
19446 #endif
19447
19448 ;
19449 return 0;
19450 }
19451 _ACEOF
19452 rm -f conftest.$ac_objext
19453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19454 (eval $ac_compile) 2>conftest.er1
19455 ac_status=$?
19456 grep -v '^ *+' conftest.er1 >conftest.err
19457 rm -f conftest.er1
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } &&
19461 { ac_try='test -z "$ac_c_werror_flag"
19462 || test ! -s conftest.err'
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest.$ac_objext'
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19471 ac_status=$?
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19474 ac_cv_have_decl_getopt=yes
19475 else
19476 echo "$as_me: failed program was:" >&5
19477 sed 's/^/| /' conftest.$ac_ext >&5
19478
19479 ac_cv_have_decl_getopt=no
19480 fi
19481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19482 fi
19483 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
19484 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
19485 if test $ac_cv_have_decl_getopt = yes; then
19486
19487 cat >>confdefs.h <<_ACEOF
19488 #define HAVE_DECL_GETOPT 1
19489 _ACEOF
19490
19491
19492 else
19493 cat >>confdefs.h <<_ACEOF
19494 #define HAVE_DECL_GETOPT 0
19495 _ACEOF
19496
19497
19498 fi
19499 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19500 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
19501 if test "${ac_cv_have_decl_snprintf+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
19503 else
19504 cat >conftest.$ac_ext <<_ACEOF
19505 /* confdefs.h. */
19506 _ACEOF
19507 cat confdefs.h >>conftest.$ac_ext
19508 cat >>conftest.$ac_ext <<_ACEOF
19509 /* end confdefs.h. */
19510 $ac_includes_default
19511 int
19512 main ()
19513 {
19514 #ifndef snprintf
19515 char *p = (char *) snprintf;
19516 #endif
19517
19518 ;
19519 return 0;
19520 }
19521 _ACEOF
19522 rm -f conftest.$ac_objext
19523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19524 (eval $ac_compile) 2>conftest.er1
19525 ac_status=$?
19526 grep -v '^ *+' conftest.er1 >conftest.err
19527 rm -f conftest.er1
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } &&
19531 { ac_try='test -z "$ac_c_werror_flag"
19532 || test ! -s conftest.err'
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; } &&
19538 { ac_try='test -s conftest.$ac_objext'
19539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540 (eval $ac_try) 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; }; then
19544 ac_cv_have_decl_snprintf=yes
19545 else
19546 echo "$as_me: failed program was:" >&5
19547 sed 's/^/| /' conftest.$ac_ext >&5
19548
19549 ac_cv_have_decl_snprintf=no
19550 fi
19551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19552 fi
19553 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19554 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
19555 if test $ac_cv_have_decl_snprintf = yes; then
19556
19557 cat >>confdefs.h <<_ACEOF
19558 #define HAVE_DECL_SNPRINTF 1
19559 _ACEOF
19560
19561
19562 else
19563 cat >>confdefs.h <<_ACEOF
19564 #define HAVE_DECL_SNPRINTF 0
19565 _ACEOF
19566
19567
19568 fi
19569 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
19570 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
19571 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19573 else
19574 cat >conftest.$ac_ext <<_ACEOF
19575 /* confdefs.h. */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19580 $ac_includes_default
19581 int
19582 main ()
19583 {
19584 #ifndef vsnprintf
19585 char *p = (char *) vsnprintf;
19586 #endif
19587
19588 ;
19589 return 0;
19590 }
19591 _ACEOF
19592 rm -f conftest.$ac_objext
19593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19594 (eval $ac_compile) 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
19601 { ac_try='test -z "$ac_c_werror_flag"
19602 || test ! -s conftest.err'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
19614 ac_cv_have_decl_vsnprintf=yes
19615 else
19616 echo "$as_me: failed program was:" >&5
19617 sed 's/^/| /' conftest.$ac_ext >&5
19618
19619 ac_cv_have_decl_vsnprintf=no
19620 fi
19621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19622 fi
19623 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
19624 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
19625 if test $ac_cv_have_decl_vsnprintf = yes; then
19626
19627 cat >>confdefs.h <<_ACEOF
19628 #define HAVE_DECL_VSNPRINTF 1
19629 _ACEOF
19630
19631
19632 else
19633 cat >>confdefs.h <<_ACEOF
19634 #define HAVE_DECL_VSNPRINTF 0
19635 _ACEOF
19636
19637
19638 fi
19639
19640
19641
19642 # ----------------------- #
19643 # Checks for structures. #
19644 # ----------------------- #
19645
19646 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19647 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19648 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19649 echo $ECHO_N "(cached) $ECHO_C" >&6
19650 else
19651 cat >conftest.$ac_ext <<_ACEOF
19652 /* confdefs.h. */
19653 _ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h. */
19657 $ac_includes_default
19658 int
19659 main ()
19660 {
19661 static struct stat ac_aggr;
19662 if (ac_aggr.st_blocks)
19663 return 0;
19664 ;
19665 return 0;
19666 }
19667 _ACEOF
19668 rm -f conftest.$ac_objext
19669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19670 (eval $ac_compile) 2>conftest.er1
19671 ac_status=$?
19672 grep -v '^ *+' conftest.er1 >conftest.err
19673 rm -f conftest.er1
19674 cat conftest.err >&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); } &&
19677 { ac_try='test -z "$ac_c_werror_flag"
19678 || test ! -s conftest.err'
19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680 (eval $ac_try) 2>&5
19681 ac_status=$?
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; } &&
19684 { ac_try='test -s conftest.$ac_objext'
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; }; then
19690 ac_cv_member_struct_stat_st_blocks=yes
19691 else
19692 echo "$as_me: failed program was:" >&5
19693 sed 's/^/| /' conftest.$ac_ext >&5
19694
19695 cat >conftest.$ac_ext <<_ACEOF
19696 /* confdefs.h. */
19697 _ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19701 $ac_includes_default
19702 int
19703 main ()
19704 {
19705 static struct stat ac_aggr;
19706 if (sizeof ac_aggr.st_blocks)
19707 return 0;
19708 ;
19709 return 0;
19710 }
19711 _ACEOF
19712 rm -f conftest.$ac_objext
19713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19714 (eval $ac_compile) 2>conftest.er1
19715 ac_status=$?
19716 grep -v '^ *+' conftest.er1 >conftest.err
19717 rm -f conftest.er1
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
19721 { ac_try='test -z "$ac_c_werror_flag"
19722 || test ! -s conftest.err'
19723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19724 (eval $ac_try) 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; } &&
19728 { ac_try='test -s conftest.$ac_objext'
19729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730 (eval $ac_try) 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; }; then
19734 ac_cv_member_struct_stat_st_blocks=yes
19735 else
19736 echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19738
19739 ac_cv_member_struct_stat_st_blocks=no
19740 fi
19741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19742 fi
19743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19744 fi
19745 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19746 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19747 if test $ac_cv_member_struct_stat_st_blocks = yes; then
19748
19749 cat >>confdefs.h <<_ACEOF
19750 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
19751 _ACEOF
19752
19753
19754 fi
19755
19756 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19757 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
19758 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19760 else
19761 cat >conftest.$ac_ext <<_ACEOF
19762 /* confdefs.h. */
19763 _ACEOF
19764 cat confdefs.h >>conftest.$ac_ext
19765 cat >>conftest.$ac_ext <<_ACEOF
19766 /* end confdefs.h. */
19767 $ac_includes_default
19768 int
19769 main ()
19770 {
19771 static struct stat ac_aggr;
19772 if (ac_aggr.st_blksize)
19773 return 0;
19774 ;
19775 return 0;
19776 }
19777 _ACEOF
19778 rm -f conftest.$ac_objext
19779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19780 (eval $ac_compile) 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_objext'
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 ac_cv_member_struct_stat_st_blksize=yes
19801 else
19802 echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19804
19805 cat >conftest.$ac_ext <<_ACEOF
19806 /* confdefs.h. */
19807 _ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19811 $ac_includes_default
19812 int
19813 main ()
19814 {
19815 static struct stat ac_aggr;
19816 if (sizeof ac_aggr.st_blksize)
19817 return 0;
19818 ;
19819 return 0;
19820 }
19821 _ACEOF
19822 rm -f conftest.$ac_objext
19823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19824 (eval $ac_compile) 2>conftest.er1
19825 ac_status=$?
19826 grep -v '^ *+' conftest.er1 >conftest.err
19827 rm -f conftest.er1
19828 cat conftest.err >&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } &&
19831 { ac_try='test -z "$ac_c_werror_flag"
19832 || test ! -s conftest.err'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; } &&
19838 { ac_try='test -s conftest.$ac_objext'
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 ac_cv_member_struct_stat_st_blksize=yes
19845 else
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19848
19849 ac_cv_member_struct_stat_st_blksize=no
19850 fi
19851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19852 fi
19853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19854 fi
19855 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19856 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
19857 if test $ac_cv_member_struct_stat_st_blksize = yes; then
19858
19859 cat >>confdefs.h <<_ACEOF
19860 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19861 _ACEOF
19862
19863
19864 fi
19865
19866
19867 # ------------------ #
19868 # Checks for types. #
19869 # ------------------ #
19870
19871 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19872 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
19873 if test "${ac_cv_type_signal+set}" = set; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19875 else
19876 cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h. */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882 #include <sys/types.h>
19883 #include <signal.h>
19884 #ifdef signal
19885 # undef signal
19886 #endif
19887 #ifdef __cplusplus
19888 extern "C" void (*signal (int, void (*)(int)))(int);
19889 #else
19890 void (*signal ()) ();
19891 #endif
19892
19893 int
19894 main ()
19895 {
19896 int i;
19897 ;
19898 return 0;
19899 }
19900 _ACEOF
19901 rm -f conftest.$ac_objext
19902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19903 (eval $ac_compile) 2>conftest.er1
19904 ac_status=$?
19905 grep -v '^ *+' conftest.er1 >conftest.err
19906 rm -f conftest.er1
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } &&
19910 { ac_try='test -z "$ac_c_werror_flag"
19911 || test ! -s conftest.err'
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; } &&
19917 { ac_try='test -s conftest.$ac_objext'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
19923 ac_cv_type_signal=void
19924 else
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19927
19928 ac_cv_type_signal=int
19929 fi
19930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19931 fi
19932 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19933 echo "${ECHO_T}$ac_cv_type_signal" >&6
19934
19935 cat >>confdefs.h <<_ACEOF
19936 #define RETSIGTYPE $ac_cv_type_signal
19937 _ACEOF
19938
19939
19940 echo "$as_me:$LINENO: checking for socklen_t" >&5
19941 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
19942 if test "${ac_cv_type_socklen_t+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19944 else
19945 cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h. */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h. */
19951 #include <sys/types.h>
19952 #include <sys/socket.h>
19953
19954
19955 int
19956 main ()
19957 {
19958 if ((socklen_t *) 0)
19959 return 0;
19960 if (sizeof (socklen_t))
19961 return 0;
19962 ;
19963 return 0;
19964 }
19965 _ACEOF
19966 rm -f conftest.$ac_objext
19967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19968 (eval $ac_compile) 2>conftest.er1
19969 ac_status=$?
19970 grep -v '^ *+' conftest.er1 >conftest.err
19971 rm -f conftest.er1
19972 cat conftest.err >&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); } &&
19975 { ac_try='test -z "$ac_c_werror_flag"
19976 || test ! -s conftest.err'
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; } &&
19982 { ac_try='test -s conftest.$ac_objext'
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; }; then
19988 ac_cv_type_socklen_t=yes
19989 else
19990 echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19992
19993 ac_cv_type_socklen_t=no
19994 fi
19995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19996 fi
19997 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
19998 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
19999 if test $ac_cv_type_socklen_t = yes; then
20000
20001 cat >>confdefs.h <<_ACEOF
20002 #define HAVE_SOCKLEN_T 1
20003 _ACEOF
20004
20005
20006 fi
20007
20008 echo "$as_me:$LINENO: checking for uintptr_t" >&5
20009 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
20010 if test "${ac_cv_type_uintptr_t+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20012 else
20013 cat >conftest.$ac_ext <<_ACEOF
20014 /* confdefs.h. */
20015 _ACEOF
20016 cat confdefs.h >>conftest.$ac_ext
20017 cat >>conftest.$ac_ext <<_ACEOF
20018 /* end confdefs.h. */
20019 #include <stdint.h>
20020
20021 int
20022 main ()
20023 {
20024 if ((uintptr_t *) 0)
20025 return 0;
20026 if (sizeof (uintptr_t))
20027 return 0;
20028 ;
20029 return 0;
20030 }
20031 _ACEOF
20032 rm -f conftest.$ac_objext
20033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20034 (eval $ac_compile) 2>conftest.er1
20035 ac_status=$?
20036 grep -v '^ *+' conftest.er1 >conftest.err
20037 rm -f conftest.er1
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } &&
20041 { ac_try='test -z "$ac_c_werror_flag"
20042 || test ! -s conftest.err'
20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044 (eval $ac_try) 2>&5
20045 ac_status=$?
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; } &&
20048 { ac_try='test -s conftest.$ac_objext'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20051 ac_status=$?
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; }; then
20054 ac_cv_type_uintptr_t=yes
20055 else
20056 echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20058
20059 ac_cv_type_uintptr_t=no
20060 fi
20061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20062 fi
20063 echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
20064 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
20065 if test $ac_cv_type_uintptr_t = yes; then
20066
20067 cat >>confdefs.h <<_ACEOF
20068 #define HAVE_UINTPTR_T 1
20069 _ACEOF
20070
20071
20072 fi
20073
20074
20075 # ------------------------------------- #
20076 # Checks for compiler characteristics. #
20077 # ------------------------------------- #
20078
20079 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20080 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20081 if test "${ac_cv_c_const+set}" = set; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20083 else
20084 cat >conftest.$ac_ext <<_ACEOF
20085 /* confdefs.h. */
20086 _ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h. */
20090
20091 int
20092 main ()
20093 {
20094 /* FIXME: Include the comments suggested by Paul. */
20095 #ifndef __cplusplus
20096 /* Ultrix mips cc rejects this. */
20097 typedef int charset[2];
20098 const charset x;
20099 /* SunOS 4.1.1 cc rejects this. */
20100 char const *const *ccp;
20101 char **p;
20102 /* NEC SVR4.0.2 mips cc rejects this. */
20103 struct point {int x, y;};
20104 static struct point const zero = {0,0};
20105 /* AIX XL C 1.02.0.0 rejects this.
20106 It does not let you subtract one const X* pointer from another in
20107 an arm of an if-expression whose if-part is not a constant
20108 expression */
20109 const char *g = "string";
20110 ccp = &g + (g ? g-g : 0);
20111 /* HPUX 7.0 cc rejects these. */
20112 ++ccp;
20113 p = (char**) ccp;
20114 ccp = (char const *const *) p;
20115 { /* SCO 3.2v4 cc rejects this. */
20116 char *t;
20117 char const *s = 0 ? (char *) 0 : (char const *) 0;
20118
20119 *t++ = 0;
20120 }
20121 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20122 int x[] = {25, 17};
20123 const int *foo = &x[0];
20124 ++foo;
20125 }
20126 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20127 typedef const int *iptr;
20128 iptr p = 0;
20129 ++p;
20130 }
20131 { /* AIX XL C 1.02.0.0 rejects this saying
20132 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20133 struct s { int j; const int *ap[3]; };
20134 struct s *b; b->j = 5;
20135 }
20136 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20137 const int foo = 10;
20138 }
20139 #endif
20140
20141 ;
20142 return 0;
20143 }
20144 _ACEOF
20145 rm -f conftest.$ac_objext
20146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20147 (eval $ac_compile) 2>conftest.er1
20148 ac_status=$?
20149 grep -v '^ *+' conftest.er1 >conftest.err
20150 rm -f conftest.er1
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } &&
20154 { ac_try='test -z "$ac_c_werror_flag"
20155 || test ! -s conftest.err'
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20158 ac_status=$?
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; } &&
20161 { ac_try='test -s conftest.$ac_objext'
20162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163 (eval $ac_try) 2>&5
20164 ac_status=$?
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; }; then
20167 ac_cv_c_const=yes
20168 else
20169 echo "$as_me: failed program was:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20171
20172 ac_cv_c_const=no
20173 fi
20174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20175 fi
20176 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20177 echo "${ECHO_T}$ac_cv_c_const" >&6
20178 if test $ac_cv_c_const = no; then
20179
20180 cat >>confdefs.h <<\_ACEOF
20181 #define const
20182 _ACEOF
20183
20184 fi
20185
20186 echo "$as_me:$LINENO: checking for inline" >&5
20187 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20188 if test "${ac_cv_c_inline+set}" = set; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20190 else
20191 ac_cv_c_inline=no
20192 for ac_kw in inline __inline__ __inline; do
20193 cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h. */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 #ifndef __cplusplus
20200 typedef int foo_t;
20201 static $ac_kw foo_t static_foo () {return 0; }
20202 $ac_kw foo_t foo () {return 0; }
20203 #endif
20204
20205 _ACEOF
20206 rm -f conftest.$ac_objext
20207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20208 (eval $ac_compile) 2>conftest.er1
20209 ac_status=$?
20210 grep -v '^ *+' conftest.er1 >conftest.err
20211 rm -f conftest.er1
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } &&
20215 { ac_try='test -z "$ac_c_werror_flag"
20216 || test ! -s conftest.err'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; } &&
20222 { ac_try='test -s conftest.$ac_objext'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
20228 ac_cv_c_inline=$ac_kw; break
20229 else
20230 echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.$ac_ext >&5
20232
20233 fi
20234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20235 done
20236
20237 fi
20238 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20239 echo "${ECHO_T}$ac_cv_c_inline" >&6
20240
20241
20242 case $ac_cv_c_inline in
20243 inline | yes) ;;
20244 *)
20245 case $ac_cv_c_inline in
20246 no) ac_val=;;
20247 *) ac_val=$ac_cv_c_inline;;
20248 esac
20249 cat >>confdefs.h <<_ACEOF
20250 #ifndef __cplusplus
20251 #define inline $ac_val
20252 #endif
20253 _ACEOF
20254 ;;
20255 esac
20256
20257 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20258 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20259 if test "${ac_cv_c_bigendian+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20261 else
20262 # See if sys/param.h defines the BYTE_ORDER macro.
20263 cat >conftest.$ac_ext <<_ACEOF
20264 /* confdefs.h. */
20265 _ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269 #include <sys/types.h>
20270 #include <sys/param.h>
20271
20272 int
20273 main ()
20274 {
20275 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20276 bogus endian macros
20277 #endif
20278
20279 ;
20280 return 0;
20281 }
20282 _ACEOF
20283 rm -f conftest.$ac_objext
20284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20285 (eval $ac_compile) 2>conftest.er1
20286 ac_status=$?
20287 grep -v '^ *+' conftest.er1 >conftest.err
20288 rm -f conftest.er1
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } &&
20292 { ac_try='test -z "$ac_c_werror_flag"
20293 || test ! -s conftest.err'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; } &&
20299 { ac_try='test -s conftest.$ac_objext'
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; }; then
20305 # It does; now see whether it defined to BIG_ENDIAN or not.
20306 cat >conftest.$ac_ext <<_ACEOF
20307 /* confdefs.h. */
20308 _ACEOF
20309 cat confdefs.h >>conftest.$ac_ext
20310 cat >>conftest.$ac_ext <<_ACEOF
20311 /* end confdefs.h. */
20312 #include <sys/types.h>
20313 #include <sys/param.h>
20314
20315 int
20316 main ()
20317 {
20318 #if BYTE_ORDER != BIG_ENDIAN
20319 not big endian
20320 #endif
20321
20322 ;
20323 return 0;
20324 }
20325 _ACEOF
20326 rm -f conftest.$ac_objext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20328 (eval $ac_compile) 2>conftest.er1
20329 ac_status=$?
20330 grep -v '^ *+' conftest.er1 >conftest.err
20331 rm -f conftest.er1
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
20335 { ac_try='test -z "$ac_c_werror_flag"
20336 || test ! -s conftest.err'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20339 ac_status=$?
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; } &&
20342 { ac_try='test -s conftest.$ac_objext'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20345 ac_status=$?
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
20348 ac_cv_c_bigendian=yes
20349 else
20350 echo "$as_me: failed program was:" >&5
20351 sed 's/^/| /' conftest.$ac_ext >&5
20352
20353 ac_cv_c_bigendian=no
20354 fi
20355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20356 else
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20359
20360 # It does not; compile a test program.
20361 if test "$cross_compiling" = yes; then
20362 # try to guess the endianness by grepping values into an object file
20363 ac_cv_c_bigendian=unknown
20364 cat >conftest.$ac_ext <<_ACEOF
20365 /* confdefs.h. */
20366 _ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20371 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20372 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20373 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20374 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20375 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20376 int
20377 main ()
20378 {
20379 _ascii (); _ebcdic ();
20380 ;
20381 return 0;
20382 }
20383 _ACEOF
20384 rm -f conftest.$ac_objext
20385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20386 (eval $ac_compile) 2>conftest.er1
20387 ac_status=$?
20388 grep -v '^ *+' conftest.er1 >conftest.err
20389 rm -f conftest.er1
20390 cat conftest.err >&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } &&
20393 { ac_try='test -z "$ac_c_werror_flag"
20394 || test ! -s conftest.err'
20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20397 ac_status=$?
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; } &&
20400 { ac_try='test -s conftest.$ac_objext'
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20403 ac_status=$?
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; }; then
20406 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20407 ac_cv_c_bigendian=yes
20408 fi
20409 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20410 if test "$ac_cv_c_bigendian" = unknown; then
20411 ac_cv_c_bigendian=no
20412 else
20413 # finding both strings is unlikely to happen, but who knows?
20414 ac_cv_c_bigendian=unknown
20415 fi
20416 fi
20417 else
20418 echo "$as_me: failed program was:" >&5
20419 sed 's/^/| /' conftest.$ac_ext >&5
20420
20421 fi
20422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20423 else
20424 cat >conftest.$ac_ext <<_ACEOF
20425 /* confdefs.h. */
20426 _ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h. */
20430 int
20431 main ()
20432 {
20433 /* Are we little or big endian? From Harbison&Steele. */
20434 union
20435 {
20436 long l;
20437 char c[sizeof (long)];
20438 } u;
20439 u.l = 1;
20440 exit (u.c[sizeof (long) - 1] == 1);
20441 }
20442 _ACEOF
20443 rm -f conftest$ac_exeext
20444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20445 (eval $ac_link) 2>&5
20446 ac_status=$?
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; }; then
20454 ac_cv_c_bigendian=no
20455 else
20456 echo "$as_me: program exited with status $ac_status" >&5
20457 echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.$ac_ext >&5
20459
20460 ( exit $ac_status )
20461 ac_cv_c_bigendian=yes
20462 fi
20463 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20464 fi
20465 fi
20466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20467 fi
20468 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20469 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20470 case $ac_cv_c_bigendian in
20471 yes)
20472
20473 cat >>confdefs.h <<\_ACEOF
20474 #define WORDS_BIGENDIAN 1
20475 _ACEOF
20476 ;;
20477 no)
20478 ;;
20479 *)
20480 { { echo "$as_me:$LINENO: error: unknown endianness
20481 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20482 echo "$as_me: error: unknown endianness
20483 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20484 { (exit 1); exit 1; }; } ;;
20485 esac
20486
20487
20488 # ------------------------------ #
20489 # Checks for library functions. #
20490 # ------------------------------ #
20491
20492 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20493 # for constant arguments. Useless!
20494 echo "$as_me:$LINENO: checking for working alloca.h" >&5
20495 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
20496 if test "${ac_cv_working_alloca_h+set}" = set; then
20497 echo $ECHO_N "(cached) $ECHO_C" >&6
20498 else
20499 cat >conftest.$ac_ext <<_ACEOF
20500 /* confdefs.h. */
20501 _ACEOF
20502 cat confdefs.h >>conftest.$ac_ext
20503 cat >>conftest.$ac_ext <<_ACEOF
20504 /* end confdefs.h. */
20505 #include <alloca.h>
20506 int
20507 main ()
20508 {
20509 char *p = (char *) alloca (2 * sizeof (int));
20510 ;
20511 return 0;
20512 }
20513 _ACEOF
20514 rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20516 (eval $ac_link) 2>conftest.er1
20517 ac_status=$?
20518 grep -v '^ *+' conftest.er1 >conftest.err
20519 rm -f conftest.er1
20520 cat conftest.err >&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); } &&
20523 { ac_try='test -z "$ac_c_werror_flag"
20524 || test ! -s conftest.err'
20525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526 (eval $ac_try) 2>&5
20527 ac_status=$?
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; } &&
20530 { ac_try='test -s conftest$ac_exeext'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20533 ac_status=$?
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; }; then
20536 ac_cv_working_alloca_h=yes
20537 else
20538 echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20540
20541 ac_cv_working_alloca_h=no
20542 fi
20543 rm -f conftest.err conftest.$ac_objext \
20544 conftest$ac_exeext conftest.$ac_ext
20545 fi
20546 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20547 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
20548 if test $ac_cv_working_alloca_h = yes; then
20549
20550 cat >>confdefs.h <<\_ACEOF
20551 #define HAVE_ALLOCA_H 1
20552 _ACEOF
20553
20554 fi
20555
20556 echo "$as_me:$LINENO: checking for alloca" >&5
20557 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
20558 if test "${ac_cv_func_alloca_works+set}" = set; then
20559 echo $ECHO_N "(cached) $ECHO_C" >&6
20560 else
20561 cat >conftest.$ac_ext <<_ACEOF
20562 /* confdefs.h. */
20563 _ACEOF
20564 cat confdefs.h >>conftest.$ac_ext
20565 cat >>conftest.$ac_ext <<_ACEOF
20566 /* end confdefs.h. */
20567 #ifdef __GNUC__
20568 # define alloca __builtin_alloca
20569 #else
20570 # ifdef _MSC_VER
20571 # include <malloc.h>
20572 # define alloca _alloca
20573 # else
20574 # if HAVE_ALLOCA_H
20575 # include <alloca.h>
20576 # else
20577 # ifdef _AIX
20578 #pragma alloca
20579 # else
20580 # ifndef alloca /* predefined by HP cc +Olibcalls */
20581 char *alloca ();
20582 # endif
20583 # endif
20584 # endif
20585 # endif
20586 #endif
20587
20588 int
20589 main ()
20590 {
20591 char *p = (char *) alloca (1);
20592 ;
20593 return 0;
20594 }
20595 _ACEOF
20596 rm -f conftest.$ac_objext conftest$ac_exeext
20597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20598 (eval $ac_link) 2>conftest.er1
20599 ac_status=$?
20600 grep -v '^ *+' conftest.er1 >conftest.err
20601 rm -f conftest.er1
20602 cat conftest.err >&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } &&
20605 { ac_try='test -z "$ac_c_werror_flag"
20606 || test ! -s conftest.err'
20607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608 (eval $ac_try) 2>&5
20609 ac_status=$?
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; } &&
20612 { ac_try='test -s conftest$ac_exeext'
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }; then
20618 ac_cv_func_alloca_works=yes
20619 else
20620 echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20622
20623 ac_cv_func_alloca_works=no
20624 fi
20625 rm -f conftest.err conftest.$ac_objext \
20626 conftest$ac_exeext conftest.$ac_ext
20627 fi
20628 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20629 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
20630
20631 if test $ac_cv_func_alloca_works = yes; then
20632
20633 cat >>confdefs.h <<\_ACEOF
20634 #define HAVE_ALLOCA 1
20635 _ACEOF
20636
20637 else
20638 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20639 # that cause trouble. Some versions do not even contain alloca or
20640 # contain a buggy version. If you still want to use their alloca,
20641 # use ar to extract alloca.o from them instead of compiling alloca.c.
20642
20643 ALLOCA=alloca.$ac_objext
20644
20645 cat >>confdefs.h <<\_ACEOF
20646 #define C_ALLOCA 1
20647 _ACEOF
20648
20649
20650 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20651 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
20652 if test "${ac_cv_os_cray+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20654 else
20655 cat >conftest.$ac_ext <<_ACEOF
20656 /* confdefs.h. */
20657 _ACEOF
20658 cat confdefs.h >>conftest.$ac_ext
20659 cat >>conftest.$ac_ext <<_ACEOF
20660 /* end confdefs.h. */
20661 #if defined(CRAY) && ! defined(CRAY2)
20662 webecray
20663 #else
20664 wenotbecray
20665 #endif
20666
20667 _ACEOF
20668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20669 $EGREP "webecray" >/dev/null 2>&1; then
20670 ac_cv_os_cray=yes
20671 else
20672 ac_cv_os_cray=no
20673 fi
20674 rm -f conftest*
20675
20676 fi
20677 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20678 echo "${ECHO_T}$ac_cv_os_cray" >&6
20679 if test $ac_cv_os_cray = yes; then
20680 for ac_func in _getb67 GETB67 getb67; do
20681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20682 echo "$as_me:$LINENO: checking for $ac_func" >&5
20683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20684 if eval "test \"\${$as_ac_var+set}\" = set"; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20686 else
20687 cat >conftest.$ac_ext <<_ACEOF
20688 /* confdefs.h. */
20689 _ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h. */
20693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20695 #define $ac_func innocuous_$ac_func
20696
20697 /* System header to define __stub macros and hopefully few prototypes,
20698 which can conflict with char $ac_func (); below.
20699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20700 <limits.h> exists even on freestanding compilers. */
20701
20702 #ifdef __STDC__
20703 # include <limits.h>
20704 #else
20705 # include <assert.h>
20706 #endif
20707
20708 #undef $ac_func
20709
20710 /* Override any gcc2 internal prototype to avoid an error. */
20711 #ifdef __cplusplus
20712 extern "C"
20713 {
20714 #endif
20715 /* We use char because int might match the return type of a gcc2
20716 builtin and then its argument prototype would still apply. */
20717 char $ac_func ();
20718 /* The GNU C library defines this for functions which it implements
20719 to always fail with ENOSYS. Some functions are actually named
20720 something starting with __ and the normal name is an alias. */
20721 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20722 choke me
20723 #else
20724 char (*f) () = $ac_func;
20725 #endif
20726 #ifdef __cplusplus
20727 }
20728 #endif
20729
20730 int
20731 main ()
20732 {
20733 return f != $ac_func;
20734 ;
20735 return 0;
20736 }
20737 _ACEOF
20738 rm -f conftest.$ac_objext conftest$ac_exeext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20740 (eval $ac_link) 2>conftest.er1
20741 ac_status=$?
20742 grep -v '^ *+' conftest.er1 >conftest.err
20743 rm -f conftest.er1
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
20747 { ac_try='test -z "$ac_c_werror_flag"
20748 || test ! -s conftest.err'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try='test -s conftest$ac_exeext'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20757 ac_status=$?
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; }; then
20760 eval "$as_ac_var=yes"
20761 else
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20764
20765 eval "$as_ac_var=no"
20766 fi
20767 rm -f conftest.err conftest.$ac_objext \
20768 conftest$ac_exeext conftest.$ac_ext
20769 fi
20770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20772 if test `eval echo '${'$as_ac_var'}'` = yes; then
20773
20774 cat >>confdefs.h <<_ACEOF
20775 #define CRAY_STACKSEG_END $ac_func
20776 _ACEOF
20777
20778 break
20779 fi
20780
20781 done
20782 fi
20783
20784 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20785 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
20786 if test "${ac_cv_c_stack_direction+set}" = set; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20788 else
20789 if test "$cross_compiling" = yes; then
20790 ac_cv_c_stack_direction=0
20791 else
20792 cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h. */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20798 int
20799 find_stack_direction ()
20800 {
20801 static char *addr = 0;
20802 auto char dummy;
20803 if (addr == 0)
20804 {
20805 addr = &dummy;
20806 return find_stack_direction ();
20807 }
20808 else
20809 return (&dummy > addr) ? 1 : -1;
20810 }
20811
20812 int
20813 main ()
20814 {
20815 exit (find_stack_direction () < 0);
20816 }
20817 _ACEOF
20818 rm -f conftest$ac_exeext
20819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20820 (eval $ac_link) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825 (eval $ac_try) 2>&5
20826 ac_status=$?
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; }; then
20829 ac_cv_c_stack_direction=1
20830 else
20831 echo "$as_me: program exited with status $ac_status" >&5
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20834
20835 ( exit $ac_status )
20836 ac_cv_c_stack_direction=-1
20837 fi
20838 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20839 fi
20840 fi
20841 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20842 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
20843
20844 cat >>confdefs.h <<_ACEOF
20845 #define STACK_DIRECTION $ac_cv_c_stack_direction
20846 _ACEOF
20847
20848
20849 fi
20850
20851
20852
20853 for ac_header in stdlib.h unistd.h
20854 do
20855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20856 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20857 echo "$as_me:$LINENO: checking for $ac_header" >&5
20858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 fi
20862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20864 else
20865 # Is the header compilable?
20866 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20867 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20868 cat >conftest.$ac_ext <<_ACEOF
20869 /* confdefs.h. */
20870 _ACEOF
20871 cat confdefs.h >>conftest.$ac_ext
20872 cat >>conftest.$ac_ext <<_ACEOF
20873 /* end confdefs.h. */
20874 $ac_includes_default
20875 #include <$ac_header>
20876 _ACEOF
20877 rm -f conftest.$ac_objext
20878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20879 (eval $ac_compile) 2>conftest.er1
20880 ac_status=$?
20881 grep -v '^ *+' conftest.er1 >conftest.err
20882 rm -f conftest.er1
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -z "$ac_c_werror_flag"
20887 || test ! -s conftest.err'
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
20893 { ac_try='test -s conftest.$ac_objext'
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20896 ac_status=$?
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 ac_header_compiler=yes
20900 else
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20903
20904 ac_header_compiler=no
20905 fi
20906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20908 echo "${ECHO_T}$ac_header_compiler" >&6
20909
20910 # Is the header present?
20911 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20912 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20913 cat >conftest.$ac_ext <<_ACEOF
20914 /* confdefs.h. */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 #include <$ac_header>
20920 _ACEOF
20921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20923 ac_status=$?
20924 grep -v '^ *+' conftest.er1 >conftest.err
20925 rm -f conftest.er1
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } >/dev/null; then
20929 if test -s conftest.err; then
20930 ac_cpp_err=$ac_c_preproc_warn_flag
20931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20932 else
20933 ac_cpp_err=
20934 fi
20935 else
20936 ac_cpp_err=yes
20937 fi
20938 if test -z "$ac_cpp_err"; then
20939 ac_header_preproc=yes
20940 else
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20943
20944 ac_header_preproc=no
20945 fi
20946 rm -f conftest.err conftest.$ac_ext
20947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20948 echo "${ECHO_T}$ac_header_preproc" >&6
20949
20950 # So? What about this header?
20951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20952 yes:no: )
20953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20957 ac_header_preproc=yes
20958 ;;
20959 no:yes:* )
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20972 (
20973 cat <<\_ASBOX
20974 ## ------------------------------------------ ##
20975 ## Report this to the AC_PACKAGE_NAME lists. ##
20976 ## ------------------------------------------ ##
20977 _ASBOX
20978 ) |
20979 sed "s/^/$as_me: WARNING: /" >&2
20980 ;;
20981 esac
20982 echo "$as_me:$LINENO: checking for $ac_header" >&5
20983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20984 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20986 else
20987 eval "$as_ac_Header=\$ac_header_preproc"
20988 fi
20989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20991
20992 fi
20993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20994 cat >>confdefs.h <<_ACEOF
20995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20996 _ACEOF
20997
20998 fi
20999
21000 done
21001
21002
21003 for ac_func in getpagesize
21004 do
21005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21006 echo "$as_me:$LINENO: checking for $ac_func" >&5
21007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21008 if eval "test \"\${$as_ac_var+set}\" = set"; then
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
21010 else
21011 cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h. */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21019 #define $ac_func innocuous_$ac_func
21020
21021 /* System header to define __stub macros and hopefully few prototypes,
21022 which can conflict with char $ac_func (); below.
21023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21024 <limits.h> exists even on freestanding compilers. */
21025
21026 #ifdef __STDC__
21027 # include <limits.h>
21028 #else
21029 # include <assert.h>
21030 #endif
21031
21032 #undef $ac_func
21033
21034 /* Override any gcc2 internal prototype to avoid an error. */
21035 #ifdef __cplusplus
21036 extern "C"
21037 {
21038 #endif
21039 /* We use char because int might match the return type of a gcc2
21040 builtin and then its argument prototype would still apply. */
21041 char $ac_func ();
21042 /* The GNU C library defines this for functions which it implements
21043 to always fail with ENOSYS. Some functions are actually named
21044 something starting with __ and the normal name is an alias. */
21045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21046 choke me
21047 #else
21048 char (*f) () = $ac_func;
21049 #endif
21050 #ifdef __cplusplus
21051 }
21052 #endif
21053
21054 int
21055 main ()
21056 {
21057 return f != $ac_func;
21058 ;
21059 return 0;
21060 }
21061 _ACEOF
21062 rm -f conftest.$ac_objext conftest$ac_exeext
21063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21064 (eval $ac_link) 2>conftest.er1
21065 ac_status=$?
21066 grep -v '^ *+' conftest.er1 >conftest.err
21067 rm -f conftest.er1
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } &&
21071 { ac_try='test -z "$ac_c_werror_flag"
21072 || test ! -s conftest.err'
21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074 (eval $ac_try) 2>&5
21075 ac_status=$?
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; } &&
21078 { ac_try='test -s conftest$ac_exeext'
21079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21081 ac_status=$?
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; }; then
21084 eval "$as_ac_var=yes"
21085 else
21086 echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21088
21089 eval "$as_ac_var=no"
21090 fi
21091 rm -f conftest.err conftest.$ac_objext \
21092 conftest$ac_exeext conftest.$ac_ext
21093 fi
21094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21095 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21096 if test `eval echo '${'$as_ac_var'}'` = yes; then
21097 cat >>confdefs.h <<_ACEOF
21098 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21099 _ACEOF
21100
21101 fi
21102 done
21103
21104 echo "$as_me:$LINENO: checking for working mmap" >&5
21105 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21106 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
21108 else
21109 if test "$cross_compiling" = yes; then
21110 ac_cv_func_mmap_fixed_mapped=no
21111 else
21112 cat >conftest.$ac_ext <<_ACEOF
21113 /* confdefs.h. */
21114 _ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21118 $ac_includes_default
21119 /* malloc might have been renamed as rpl_malloc. */
21120 #undef malloc
21121
21122 /* Thanks to Mike Haertel and Jim Avera for this test.
21123 Here is a matrix of mmap possibilities:
21124 mmap private not fixed
21125 mmap private fixed at somewhere currently unmapped
21126 mmap private fixed at somewhere already mapped
21127 mmap shared not fixed
21128 mmap shared fixed at somewhere currently unmapped
21129 mmap shared fixed at somewhere already mapped
21130 For private mappings, we should verify that changes cannot be read()
21131 back from the file, nor mmap's back from the file at a different
21132 address. (There have been systems where private was not correctly
21133 implemented like the infamous i386 svr4.0, and systems where the
21134 VM page cache was not coherent with the file system buffer cache
21135 like early versions of FreeBSD and possibly contemporary NetBSD.)
21136 For shared mappings, we should conversely verify that changes get
21137 propagated back to all the places they're supposed to be.
21138
21139 Grep wants private fixed already mapped.
21140 The main things grep needs to know about mmap are:
21141 * does it exist and is it safe to write into the mmap'd area
21142 * how to use it (BSD variants) */
21143
21144 #include <fcntl.h>
21145 #include <sys/mman.h>
21146
21147 #if !STDC_HEADERS && !HAVE_STDLIB_H
21148 char *malloc ();
21149 #endif
21150
21151 /* This mess was copied from the GNU getpagesize.h. */
21152 #if !HAVE_GETPAGESIZE
21153 /* Assume that all systems that can run configure have sys/param.h. */
21154 # if !HAVE_SYS_PARAM_H
21155 # define HAVE_SYS_PARAM_H 1
21156 # endif
21157
21158 # ifdef _SC_PAGESIZE
21159 # define getpagesize() sysconf(_SC_PAGESIZE)
21160 # else /* no _SC_PAGESIZE */
21161 # if HAVE_SYS_PARAM_H
21162 # include <sys/param.h>
21163 # ifdef EXEC_PAGESIZE
21164 # define getpagesize() EXEC_PAGESIZE
21165 # else /* no EXEC_PAGESIZE */
21166 # ifdef NBPG
21167 # define getpagesize() NBPG * CLSIZE
21168 # ifndef CLSIZE
21169 # define CLSIZE 1
21170 # endif /* no CLSIZE */
21171 # else /* no NBPG */
21172 # ifdef NBPC
21173 # define getpagesize() NBPC
21174 # else /* no NBPC */
21175 # ifdef PAGESIZE
21176 # define getpagesize() PAGESIZE
21177 # endif /* PAGESIZE */
21178 # endif /* no NBPC */
21179 # endif /* no NBPG */
21180 # endif /* no EXEC_PAGESIZE */
21181 # else /* no HAVE_SYS_PARAM_H */
21182 # define getpagesize() 8192 /* punt totally */
21183 # endif /* no HAVE_SYS_PARAM_H */
21184 # endif /* no _SC_PAGESIZE */
21185
21186 #endif /* no HAVE_GETPAGESIZE */
21187
21188 int
21189 main ()
21190 {
21191 char *data, *data2, *data3;
21192 int i, pagesize;
21193 int fd;
21194
21195 pagesize = getpagesize ();
21196
21197 /* First, make a file with some known garbage in it. */
21198 data = (char *) malloc (pagesize);
21199 if (!data)
21200 exit (1);
21201 for (i = 0; i < pagesize; ++i)
21202 *(data + i) = rand ();
21203 umask (0);
21204 fd = creat ("conftest.mmap", 0600);
21205 if (fd < 0)
21206 exit (1);
21207 if (write (fd, data, pagesize) != pagesize)
21208 exit (1);
21209 close (fd);
21210
21211 /* Next, try to mmap the file at a fixed address which already has
21212 something else allocated at it. If we can, also make sure that
21213 we see the same garbage. */
21214 fd = open ("conftest.mmap", O_RDWR);
21215 if (fd < 0)
21216 exit (1);
21217 data2 = (char *) malloc (2 * pagesize);
21218 if (!data2)
21219 exit (1);
21220 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
21221 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21222 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21223 exit (1);
21224 for (i = 0; i < pagesize; ++i)
21225 if (*(data + i) != *(data2 + i))
21226 exit (1);
21227
21228 /* Finally, make sure that changes to the mapped area do not
21229 percolate back to the file as seen by read(). (This is a bug on
21230 some variants of i386 svr4.0.) */
21231 for (i = 0; i < pagesize; ++i)
21232 *(data2 + i) = *(data2 + i) + 1;
21233 data3 = (char *) malloc (pagesize);
21234 if (!data3)
21235 exit (1);
21236 if (read (fd, data3, pagesize) != pagesize)
21237 exit (1);
21238 for (i = 0; i < pagesize; ++i)
21239 if (*(data + i) != *(data3 + i))
21240 exit (1);
21241 close (fd);
21242 exit (0);
21243 }
21244 _ACEOF
21245 rm -f conftest$ac_exeext
21246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21247 (eval $ac_link) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21252 (eval $ac_try) 2>&5
21253 ac_status=$?
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); }; }; then
21256 ac_cv_func_mmap_fixed_mapped=yes
21257 else
21258 echo "$as_me: program exited with status $ac_status" >&5
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21261
21262 ( exit $ac_status )
21263 ac_cv_func_mmap_fixed_mapped=no
21264 fi
21265 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21266 fi
21267 fi
21268 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21269 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
21270 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21271
21272 cat >>confdefs.h <<\_ACEOF
21273 #define HAVE_MMAP 1
21274 _ACEOF
21275
21276 fi
21277 rm -f conftest.mmap
21278
21279 echo "$as_me:$LINENO: checking for pid_t" >&5
21280 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21281 if test "${ac_cv_type_pid_t+set}" = set; then
21282 echo $ECHO_N "(cached) $ECHO_C" >&6
21283 else
21284 cat >conftest.$ac_ext <<_ACEOF
21285 /* confdefs.h. */
21286 _ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21290 $ac_includes_default
21291 int
21292 main ()
21293 {
21294 if ((pid_t *) 0)
21295 return 0;
21296 if (sizeof (pid_t))
21297 return 0;
21298 ;
21299 return 0;
21300 }
21301 _ACEOF
21302 rm -f conftest.$ac_objext
21303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21304 (eval $ac_compile) 2>conftest.er1
21305 ac_status=$?
21306 grep -v '^ *+' conftest.er1 >conftest.err
21307 rm -f conftest.er1
21308 cat conftest.err >&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } &&
21311 { ac_try='test -z "$ac_c_werror_flag"
21312 || test ! -s conftest.err'
21313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314 (eval $ac_try) 2>&5
21315 ac_status=$?
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; } &&
21318 { ac_try='test -s conftest.$ac_objext'
21319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320 (eval $ac_try) 2>&5
21321 ac_status=$?
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; }; then
21324 ac_cv_type_pid_t=yes
21325 else
21326 echo "$as_me: failed program was:" >&5
21327 sed 's/^/| /' conftest.$ac_ext >&5
21328
21329 ac_cv_type_pid_t=no
21330 fi
21331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21332 fi
21333 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21334 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21335 if test $ac_cv_type_pid_t = yes; then
21336 :
21337 else
21338
21339 cat >>confdefs.h <<_ACEOF
21340 #define pid_t int
21341 _ACEOF
21342
21343 fi
21344
21345
21346
21347 for ac_header in unistd.h vfork.h
21348 do
21349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21351 echo "$as_me:$LINENO: checking for $ac_header" >&5
21352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21355 fi
21356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21358 else
21359 # Is the header compilable?
21360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21362 cat >conftest.$ac_ext <<_ACEOF
21363 /* confdefs.h. */
21364 _ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h. */
21368 $ac_includes_default
21369 #include <$ac_header>
21370 _ACEOF
21371 rm -f conftest.$ac_objext
21372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21373 (eval $ac_compile) 2>conftest.er1
21374 ac_status=$?
21375 grep -v '^ *+' conftest.er1 >conftest.err
21376 rm -f conftest.er1
21377 cat conftest.err >&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); } &&
21380 { ac_try='test -z "$ac_c_werror_flag"
21381 || test ! -s conftest.err'
21382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383 (eval $ac_try) 2>&5
21384 ac_status=$?
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; } &&
21387 { ac_try='test -s conftest.$ac_objext'
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21390 ac_status=$?
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; }; then
21393 ac_header_compiler=yes
21394 else
21395 echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21397
21398 ac_header_compiler=no
21399 fi
21400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21402 echo "${ECHO_T}$ac_header_compiler" >&6
21403
21404 # Is the header present?
21405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21407 cat >conftest.$ac_ext <<_ACEOF
21408 /* confdefs.h. */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h. */
21413 #include <$ac_header>
21414 _ACEOF
21415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21417 ac_status=$?
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } >/dev/null; then
21423 if test -s conftest.err; then
21424 ac_cpp_err=$ac_c_preproc_warn_flag
21425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21426 else
21427 ac_cpp_err=
21428 fi
21429 else
21430 ac_cpp_err=yes
21431 fi
21432 if test -z "$ac_cpp_err"; then
21433 ac_header_preproc=yes
21434 else
21435 echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438 ac_header_preproc=no
21439 fi
21440 rm -f conftest.err conftest.$ac_ext
21441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21442 echo "${ECHO_T}$ac_header_preproc" >&6
21443
21444 # So? What about this header?
21445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21446 yes:no: )
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21451 ac_header_preproc=yes
21452 ;;
21453 no:yes:* )
21454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21466 (
21467 cat <<\_ASBOX
21468 ## ------------------------------------------ ##
21469 ## Report this to the AC_PACKAGE_NAME lists. ##
21470 ## ------------------------------------------ ##
21471 _ASBOX
21472 ) |
21473 sed "s/^/$as_me: WARNING: /" >&2
21474 ;;
21475 esac
21476 echo "$as_me:$LINENO: checking for $ac_header" >&5
21477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21479 echo $ECHO_N "(cached) $ECHO_C" >&6
21480 else
21481 eval "$as_ac_Header=\$ac_header_preproc"
21482 fi
21483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21485
21486 fi
21487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21488 cat >>confdefs.h <<_ACEOF
21489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21490 _ACEOF
21491
21492 fi
21493
21494 done
21495
21496
21497
21498 for ac_func in fork vfork
21499 do
21500 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21501 echo "$as_me:$LINENO: checking for $ac_func" >&5
21502 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21503 if eval "test \"\${$as_ac_var+set}\" = set"; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21505 else
21506 cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h. */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21514 #define $ac_func innocuous_$ac_func
21515
21516 /* System header to define __stub macros and hopefully few prototypes,
21517 which can conflict with char $ac_func (); below.
21518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21519 <limits.h> exists even on freestanding compilers. */
21520
21521 #ifdef __STDC__
21522 # include <limits.h>
21523 #else
21524 # include <assert.h>
21525 #endif
21526
21527 #undef $ac_func
21528
21529 /* Override any gcc2 internal prototype to avoid an error. */
21530 #ifdef __cplusplus
21531 extern "C"
21532 {
21533 #endif
21534 /* We use char because int might match the return type of a gcc2
21535 builtin and then its argument prototype would still apply. */
21536 char $ac_func ();
21537 /* The GNU C library defines this for functions which it implements
21538 to always fail with ENOSYS. Some functions are actually named
21539 something starting with __ and the normal name is an alias. */
21540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21541 choke me
21542 #else
21543 char (*f) () = $ac_func;
21544 #endif
21545 #ifdef __cplusplus
21546 }
21547 #endif
21548
21549 int
21550 main ()
21551 {
21552 return f != $ac_func;
21553 ;
21554 return 0;
21555 }
21556 _ACEOF
21557 rm -f conftest.$ac_objext conftest$ac_exeext
21558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21559 (eval $ac_link) 2>conftest.er1
21560 ac_status=$?
21561 grep -v '^ *+' conftest.er1 >conftest.err
21562 rm -f conftest.er1
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
21566 { ac_try='test -z "$ac_c_werror_flag"
21567 || test ! -s conftest.err'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest$ac_exeext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 eval "$as_ac_var=yes"
21580 else
21581 echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21583
21584 eval "$as_ac_var=no"
21585 fi
21586 rm -f conftest.err conftest.$ac_objext \
21587 conftest$ac_exeext conftest.$ac_ext
21588 fi
21589 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21590 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21591 if test `eval echo '${'$as_ac_var'}'` = yes; then
21592 cat >>confdefs.h <<_ACEOF
21593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21594 _ACEOF
21595
21596 fi
21597 done
21598
21599 if test "x$ac_cv_func_fork" = xyes; then
21600 echo "$as_me:$LINENO: checking for working fork" >&5
21601 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
21602 if test "${ac_cv_func_fork_works+set}" = set; then
21603 echo $ECHO_N "(cached) $ECHO_C" >&6
21604 else
21605 if test "$cross_compiling" = yes; then
21606 ac_cv_func_fork_works=cross
21607 else
21608 cat >conftest.$ac_ext <<_ACEOF
21609 /* By Ruediger Kuhlmann. */
21610 #include <sys/types.h>
21611 #if HAVE_UNISTD_H
21612 # include <unistd.h>
21613 #endif
21614 /* Some systems only have a dummy stub for fork() */
21615 int main ()
21616 {
21617 if (fork() < 0)
21618 exit (1);
21619 exit (0);
21620 }
21621 _ACEOF
21622 rm -f conftest$ac_exeext
21623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21624 (eval $ac_link) 2>&5
21625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21630 ac_status=$?
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; }; then
21633 ac_cv_func_fork_works=yes
21634 else
21635 echo "$as_me: program exited with status $ac_status" >&5
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639 ( exit $ac_status )
21640 ac_cv_func_fork_works=no
21641 fi
21642 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21643 fi
21644 fi
21645 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21646 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
21647
21648 else
21649 ac_cv_func_fork_works=$ac_cv_func_fork
21650 fi
21651 if test "x$ac_cv_func_fork_works" = xcross; then
21652 case $host in
21653 *-*-amigaos* | *-*-msdosdjgpp*)
21654 # Override, as these systems have only a dummy fork() stub
21655 ac_cv_func_fork_works=no
21656 ;;
21657 *)
21658 ac_cv_func_fork_works=yes
21659 ;;
21660 esac
21661 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21662 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21663 fi
21664 ac_cv_func_vfork_works=$ac_cv_func_vfork
21665 if test "x$ac_cv_func_vfork" = xyes; then
21666 echo "$as_me:$LINENO: checking for working vfork" >&5
21667 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
21668 if test "${ac_cv_func_vfork_works+set}" = set; then
21669 echo $ECHO_N "(cached) $ECHO_C" >&6
21670 else
21671 if test "$cross_compiling" = yes; then
21672 ac_cv_func_vfork_works=cross
21673 else
21674 cat >conftest.$ac_ext <<_ACEOF
21675 /* confdefs.h. */
21676 _ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 /* Thanks to Paul Eggert for this test. */
21681 #include <stdio.h>
21682 #include <stdlib.h>
21683 #include <sys/types.h>
21684 #include <sys/stat.h>
21685 #include <sys/wait.h>
21686 #if HAVE_UNISTD_H
21687 # include <unistd.h>
21688 #endif
21689 #if HAVE_VFORK_H
21690 # include <vfork.h>
21691 #endif
21692 /* On some sparc systems, changes by the child to local and incoming
21693 argument registers are propagated back to the parent. The compiler
21694 is told about this with #include <vfork.h>, but some compilers
21695 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21696 static variable whose address is put into a register that is
21697 clobbered by the vfork. */
21698 static void
21699 #ifdef __cplusplus
21700 sparc_address_test (int arg)
21701 # else
21702 sparc_address_test (arg) int arg;
21703 #endif
21704 {
21705 static pid_t child;
21706 if (!child) {
21707 child = vfork ();
21708 if (child < 0) {
21709 perror ("vfork");
21710 _exit(2);
21711 }
21712 if (!child) {
21713 arg = getpid();
21714 write(-1, "", 0);
21715 _exit (arg);
21716 }
21717 }
21718 }
21719
21720 int
21721 main ()
21722 {
21723 pid_t parent = getpid ();
21724 pid_t child;
21725
21726 sparc_address_test (0);
21727
21728 child = vfork ();
21729
21730 if (child == 0) {
21731 /* Here is another test for sparc vfork register problems. This
21732 test uses lots of local variables, at least as many local
21733 variables as main has allocated so far including compiler
21734 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21735 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21736 reuse the register of parent for one of the local variables,
21737 since it will think that parent can't possibly be used any more
21738 in this routine. Assigning to the local variable will thus
21739 munge parent in the parent process. */
21740 pid_t
21741 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21742 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21743 /* Convince the compiler that p..p7 are live; otherwise, it might
21744 use the same hardware register for all 8 local variables. */
21745 if (p != p1 || p != p2 || p != p3 || p != p4
21746 || p != p5 || p != p6 || p != p7)
21747 _exit(1);
21748
21749 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21750 from child file descriptors. If the child closes a descriptor
21751 before it execs or exits, this munges the parent's descriptor
21752 as well. Test for this by closing stdout in the child. */
21753 _exit(close(fileno(stdout)) != 0);
21754 } else {
21755 int status;
21756 struct stat st;
21757
21758 while (wait(&status) != child)
21759 ;
21760 exit(
21761 /* Was there some problem with vforking? */
21762 child < 0
21763
21764 /* Did the child fail? (This shouldn't happen.) */
21765 || status
21766
21767 /* Did the vfork/compiler bug occur? */
21768 || parent != getpid()
21769
21770 /* Did the file descriptor bug occur? */
21771 || fstat(fileno(stdout), &st) != 0
21772 );
21773 }
21774 }
21775 _ACEOF
21776 rm -f conftest$ac_exeext
21777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21778 (eval $ac_link) 2>&5
21779 ac_status=$?
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21784 ac_status=$?
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; }; then
21787 ac_cv_func_vfork_works=yes
21788 else
21789 echo "$as_me: program exited with status $ac_status" >&5
21790 echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21792
21793 ( exit $ac_status )
21794 ac_cv_func_vfork_works=no
21795 fi
21796 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21797 fi
21798 fi
21799 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21800 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
21801
21802 fi;
21803 if test "x$ac_cv_func_fork_works" = xcross; then
21804 ac_cv_func_vfork_works=$ac_cv_func_vfork
21805 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21806 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21807 fi
21808
21809 if test "x$ac_cv_func_vfork_works" = xyes; then
21810
21811 cat >>confdefs.h <<\_ACEOF
21812 #define HAVE_WORKING_VFORK 1
21813 _ACEOF
21814
21815 else
21816
21817 cat >>confdefs.h <<\_ACEOF
21818 #define vfork fork
21819 _ACEOF
21820
21821 fi
21822 if test "x$ac_cv_func_fork_works" = xyes; then
21823
21824 cat >>confdefs.h <<\_ACEOF
21825 #define HAVE_WORKING_FORK 1
21826 _ACEOF
21827
21828 fi
21829
21830
21831
21832 for ac_func in canonicalize_file_name realpath
21833 do
21834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21835 echo "$as_me:$LINENO: checking for $ac_func" >&5
21836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21837 if eval "test \"\${$as_ac_var+set}\" = set"; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21839 else
21840 cat >conftest.$ac_ext <<_ACEOF
21841 /* confdefs.h. */
21842 _ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h. */
21846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21848 #define $ac_func innocuous_$ac_func
21849
21850 /* System header to define __stub macros and hopefully few prototypes,
21851 which can conflict with char $ac_func (); below.
21852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21853 <limits.h> exists even on freestanding compilers. */
21854
21855 #ifdef __STDC__
21856 # include <limits.h>
21857 #else
21858 # include <assert.h>
21859 #endif
21860
21861 #undef $ac_func
21862
21863 /* Override any gcc2 internal prototype to avoid an error. */
21864 #ifdef __cplusplus
21865 extern "C"
21866 {
21867 #endif
21868 /* We use char because int might match the return type of a gcc2
21869 builtin and then its argument prototype would still apply. */
21870 char $ac_func ();
21871 /* The GNU C library defines this for functions which it implements
21872 to always fail with ENOSYS. Some functions are actually named
21873 something starting with __ and the normal name is an alias. */
21874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21875 choke me
21876 #else
21877 char (*f) () = $ac_func;
21878 #endif
21879 #ifdef __cplusplus
21880 }
21881 #endif
21882
21883 int
21884 main ()
21885 {
21886 return f != $ac_func;
21887 ;
21888 return 0;
21889 }
21890 _ACEOF
21891 rm -f conftest.$ac_objext conftest$ac_exeext
21892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21893 (eval $ac_link) 2>conftest.er1
21894 ac_status=$?
21895 grep -v '^ *+' conftest.er1 >conftest.err
21896 rm -f conftest.er1
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } &&
21900 { ac_try='test -z "$ac_c_werror_flag"
21901 || test ! -s conftest.err'
21902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903 (eval $ac_try) 2>&5
21904 ac_status=$?
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; } &&
21907 { ac_try='test -s conftest$ac_exeext'
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21910 ac_status=$?
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; }; then
21913 eval "$as_ac_var=yes"
21914 else
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21917
21918 eval "$as_ac_var=no"
21919 fi
21920 rm -f conftest.err conftest.$ac_objext \
21921 conftest$ac_exeext conftest.$ac_ext
21922 fi
21923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21925 if test `eval echo '${'$as_ac_var'}'` = yes; then
21926 cat >>confdefs.h <<_ACEOF
21927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21928 _ACEOF
21929
21930 fi
21931 done
21932
21933
21934 for ac_func in getrusage
21935 do
21936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21937 echo "$as_me:$LINENO: checking for $ac_func" >&5
21938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21939 if eval "test \"\${$as_ac_var+set}\" = set"; then
21940 echo $ECHO_N "(cached) $ECHO_C" >&6
21941 else
21942 cat >conftest.$ac_ext <<_ACEOF
21943 /* confdefs.h. */
21944 _ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h. */
21948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21950 #define $ac_func innocuous_$ac_func
21951
21952 /* System header to define __stub macros and hopefully few prototypes,
21953 which can conflict with char $ac_func (); below.
21954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21955 <limits.h> exists even on freestanding compilers. */
21956
21957 #ifdef __STDC__
21958 # include <limits.h>
21959 #else
21960 # include <assert.h>
21961 #endif
21962
21963 #undef $ac_func
21964
21965 /* Override any gcc2 internal prototype to avoid an error. */
21966 #ifdef __cplusplus
21967 extern "C"
21968 {
21969 #endif
21970 /* We use char because int might match the return type of a gcc2
21971 builtin and then its argument prototype would still apply. */
21972 char $ac_func ();
21973 /* The GNU C library defines this for functions which it implements
21974 to always fail with ENOSYS. Some functions are actually named
21975 something starting with __ and the normal name is an alias. */
21976 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21977 choke me
21978 #else
21979 char (*f) () = $ac_func;
21980 #endif
21981 #ifdef __cplusplus
21982 }
21983 #endif
21984
21985 int
21986 main ()
21987 {
21988 return f != $ac_func;
21989 ;
21990 return 0;
21991 }
21992 _ACEOF
21993 rm -f conftest.$ac_objext conftest$ac_exeext
21994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21995 (eval $ac_link) 2>conftest.er1
21996 ac_status=$?
21997 grep -v '^ *+' conftest.er1 >conftest.err
21998 rm -f conftest.er1
21999 cat conftest.err >&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); } &&
22002 { ac_try='test -z "$ac_c_werror_flag"
22003 || test ! -s conftest.err'
22004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22005 (eval $ac_try) 2>&5
22006 ac_status=$?
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); }; } &&
22009 { ac_try='test -s conftest$ac_exeext'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22012 ac_status=$?
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; }; then
22015 eval "$as_ac_var=yes"
22016 else
22017 echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22019
22020 eval "$as_ac_var=no"
22021 fi
22022 rm -f conftest.err conftest.$ac_objext \
22023 conftest$ac_exeext conftest.$ac_ext
22024 fi
22025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22026 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22027 if test `eval echo '${'$as_ac_var'}'` = yes; then
22028 cat >>confdefs.h <<_ACEOF
22029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22030 _ACEOF
22031
22032 fi
22033 done
22034
22035
22036
22037 for ac_func in getuid getgid
22038 do
22039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22040 echo "$as_me:$LINENO: checking for $ac_func" >&5
22041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22042 if eval "test \"\${$as_ac_var+set}\" = set"; then
22043 echo $ECHO_N "(cached) $ECHO_C" >&6
22044 else
22045 cat >conftest.$ac_ext <<_ACEOF
22046 /* confdefs.h. */
22047 _ACEOF
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h. */
22051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22053 #define $ac_func innocuous_$ac_func
22054
22055 /* System header to define __stub macros and hopefully few prototypes,
22056 which can conflict with char $ac_func (); below.
22057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22058 <limits.h> exists even on freestanding compilers. */
22059
22060 #ifdef __STDC__
22061 # include <limits.h>
22062 #else
22063 # include <assert.h>
22064 #endif
22065
22066 #undef $ac_func
22067
22068 /* Override any gcc2 internal prototype to avoid an error. */
22069 #ifdef __cplusplus
22070 extern "C"
22071 {
22072 #endif
22073 /* We use char because int might match the return type of a gcc2
22074 builtin and then its argument prototype would still apply. */
22075 char $ac_func ();
22076 /* The GNU C library defines this for functions which it implements
22077 to always fail with ENOSYS. Some functions are actually named
22078 something starting with __ and the normal name is an alias. */
22079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22080 choke me
22081 #else
22082 char (*f) () = $ac_func;
22083 #endif
22084 #ifdef __cplusplus
22085 }
22086 #endif
22087
22088 int
22089 main ()
22090 {
22091 return f != $ac_func;
22092 ;
22093 return 0;
22094 }
22095 _ACEOF
22096 rm -f conftest.$ac_objext conftest$ac_exeext
22097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22098 (eval $ac_link) 2>conftest.er1
22099 ac_status=$?
22100 grep -v '^ *+' conftest.er1 >conftest.err
22101 rm -f conftest.er1
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } &&
22105 { ac_try='test -z "$ac_c_werror_flag"
22106 || test ! -s conftest.err'
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; } &&
22112 { ac_try='test -s conftest$ac_exeext'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 eval "$as_ac_var=yes"
22119 else
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22122
22123 eval "$as_ac_var=no"
22124 fi
22125 rm -f conftest.err conftest.$ac_objext \
22126 conftest$ac_exeext conftest.$ac_ext
22127 fi
22128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22129 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22130 if test `eval echo '${'$as_ac_var'}'` = yes; then
22131 cat >>confdefs.h <<_ACEOF
22132 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22133 _ACEOF
22134
22135 fi
22136 done
22137
22138
22139 for ac_func in poll
22140 do
22141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22142 echo "$as_me:$LINENO: checking for $ac_func" >&5
22143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22144 if eval "test \"\${$as_ac_var+set}\" = set"; then
22145 echo $ECHO_N "(cached) $ECHO_C" >&6
22146 else
22147 cat >conftest.$ac_ext <<_ACEOF
22148 /* confdefs.h. */
22149 _ACEOF
22150 cat confdefs.h >>conftest.$ac_ext
22151 cat >>conftest.$ac_ext <<_ACEOF
22152 /* end confdefs.h. */
22153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22155 #define $ac_func innocuous_$ac_func
22156
22157 /* System header to define __stub macros and hopefully few prototypes,
22158 which can conflict with char $ac_func (); below.
22159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22160 <limits.h> exists even on freestanding compilers. */
22161
22162 #ifdef __STDC__
22163 # include <limits.h>
22164 #else
22165 # include <assert.h>
22166 #endif
22167
22168 #undef $ac_func
22169
22170 /* Override any gcc2 internal prototype to avoid an error. */
22171 #ifdef __cplusplus
22172 extern "C"
22173 {
22174 #endif
22175 /* We use char because int might match the return type of a gcc2
22176 builtin and then its argument prototype would still apply. */
22177 char $ac_func ();
22178 /* The GNU C library defines this for functions which it implements
22179 to always fail with ENOSYS. Some functions are actually named
22180 something starting with __ and the normal name is an alias. */
22181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22182 choke me
22183 #else
22184 char (*f) () = $ac_func;
22185 #endif
22186 #ifdef __cplusplus
22187 }
22188 #endif
22189
22190 int
22191 main ()
22192 {
22193 return f != $ac_func;
22194 ;
22195 return 0;
22196 }
22197 _ACEOF
22198 rm -f conftest.$ac_objext conftest$ac_exeext
22199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22200 (eval $ac_link) 2>conftest.er1
22201 ac_status=$?
22202 grep -v '^ *+' conftest.er1 >conftest.err
22203 rm -f conftest.er1
22204 cat conftest.err >&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } &&
22207 { ac_try='test -z "$ac_c_werror_flag"
22208 || test ! -s conftest.err'
22209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22210 (eval $ac_try) 2>&5
22211 ac_status=$?
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; } &&
22214 { ac_try='test -s conftest$ac_exeext'
22215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216 (eval $ac_try) 2>&5
22217 ac_status=$?
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; }; then
22220 eval "$as_ac_var=yes"
22221 else
22222 echo "$as_me: failed program was:" >&5
22223 sed 's/^/| /' conftest.$ac_ext >&5
22224
22225 eval "$as_ac_var=no"
22226 fi
22227 rm -f conftest.err conftest.$ac_objext \
22228 conftest$ac_exeext conftest.$ac_ext
22229 fi
22230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22231 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22232 if test `eval echo '${'$as_ac_var'}'` = yes; then
22233 cat >>confdefs.h <<_ACEOF
22234 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22235 _ACEOF
22236
22237 fi
22238 done
22239
22240
22241 for ac_func in pread64
22242 do
22243 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22244 echo "$as_me:$LINENO: checking for $ac_func" >&5
22245 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22246 if eval "test \"\${$as_ac_var+set}\" = set"; then
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22248 else
22249 cat >conftest.$ac_ext <<_ACEOF
22250 /* confdefs.h. */
22251 _ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22257 #define $ac_func innocuous_$ac_func
22258
22259 /* System header to define __stub macros and hopefully few prototypes,
22260 which can conflict with char $ac_func (); below.
22261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22262 <limits.h> exists even on freestanding compilers. */
22263
22264 #ifdef __STDC__
22265 # include <limits.h>
22266 #else
22267 # include <assert.h>
22268 #endif
22269
22270 #undef $ac_func
22271
22272 /* Override any gcc2 internal prototype to avoid an error. */
22273 #ifdef __cplusplus
22274 extern "C"
22275 {
22276 #endif
22277 /* We use char because int might match the return type of a gcc2
22278 builtin and then its argument prototype would still apply. */
22279 char $ac_func ();
22280 /* The GNU C library defines this for functions which it implements
22281 to always fail with ENOSYS. Some functions are actually named
22282 something starting with __ and the normal name is an alias. */
22283 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22284 choke me
22285 #else
22286 char (*f) () = $ac_func;
22287 #endif
22288 #ifdef __cplusplus
22289 }
22290 #endif
22291
22292 int
22293 main ()
22294 {
22295 return f != $ac_func;
22296 ;
22297 return 0;
22298 }
22299 _ACEOF
22300 rm -f conftest.$ac_objext conftest$ac_exeext
22301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22302 (eval $ac_link) 2>conftest.er1
22303 ac_status=$?
22304 grep -v '^ *+' conftest.er1 >conftest.err
22305 rm -f conftest.er1
22306 cat conftest.err >&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); } &&
22309 { ac_try='test -z "$ac_c_werror_flag"
22310 || test ! -s conftest.err'
22311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22313 ac_status=$?
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; } &&
22316 { ac_try='test -s conftest$ac_exeext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 eval "$as_ac_var=yes"
22323 else
22324 echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22326
22327 eval "$as_ac_var=no"
22328 fi
22329 rm -f conftest.err conftest.$ac_objext \
22330 conftest$ac_exeext conftest.$ac_ext
22331 fi
22332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22333 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22334 if test `eval echo '${'$as_ac_var'}'` = yes; then
22335 cat >>confdefs.h <<_ACEOF
22336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22337 _ACEOF
22338
22339 fi
22340 done
22341
22342
22343 for ac_func in sbrk
22344 do
22345 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22346 echo "$as_me:$LINENO: checking for $ac_func" >&5
22347 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22348 if eval "test \"\${$as_ac_var+set}\" = set"; then
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22350 else
22351 cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h. */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22359 #define $ac_func innocuous_$ac_func
22360
22361 /* System header to define __stub macros and hopefully few prototypes,
22362 which can conflict with char $ac_func (); below.
22363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22364 <limits.h> exists even on freestanding compilers. */
22365
22366 #ifdef __STDC__
22367 # include <limits.h>
22368 #else
22369 # include <assert.h>
22370 #endif
22371
22372 #undef $ac_func
22373
22374 /* Override any gcc2 internal prototype to avoid an error. */
22375 #ifdef __cplusplus
22376 extern "C"
22377 {
22378 #endif
22379 /* We use char because int might match the return type of a gcc2
22380 builtin and then its argument prototype would still apply. */
22381 char $ac_func ();
22382 /* The GNU C library defines this for functions which it implements
22383 to always fail with ENOSYS. Some functions are actually named
22384 something starting with __ and the normal name is an alias. */
22385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22386 choke me
22387 #else
22388 char (*f) () = $ac_func;
22389 #endif
22390 #ifdef __cplusplus
22391 }
22392 #endif
22393
22394 int
22395 main ()
22396 {
22397 return f != $ac_func;
22398 ;
22399 return 0;
22400 }
22401 _ACEOF
22402 rm -f conftest.$ac_objext conftest$ac_exeext
22403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22404 (eval $ac_link) 2>conftest.er1
22405 ac_status=$?
22406 grep -v '^ *+' conftest.er1 >conftest.err
22407 rm -f conftest.er1
22408 cat conftest.err >&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } &&
22411 { ac_try='test -z "$ac_c_werror_flag"
22412 || test ! -s conftest.err'
22413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22414 (eval $ac_try) 2>&5
22415 ac_status=$?
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); }; } &&
22418 { ac_try='test -s conftest$ac_exeext'
22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420 (eval $ac_try) 2>&5
22421 ac_status=$?
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; }; then
22424 eval "$as_ac_var=yes"
22425 else
22426 echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22428
22429 eval "$as_ac_var=no"
22430 fi
22431 rm -f conftest.err conftest.$ac_objext \
22432 conftest$ac_exeext conftest.$ac_ext
22433 fi
22434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22436 if test `eval echo '${'$as_ac_var'}'` = yes; then
22437 cat >>confdefs.h <<_ACEOF
22438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22439 _ACEOF
22440
22441 fi
22442 done
22443
22444
22445
22446
22447 for ac_func in setpgid setpgrp setsid
22448 do
22449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22450 echo "$as_me:$LINENO: checking for $ac_func" >&5
22451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22452 if eval "test \"\${$as_ac_var+set}\" = set"; then
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22454 else
22455 cat >conftest.$ac_ext <<_ACEOF
22456 /* confdefs.h. */
22457 _ACEOF
22458 cat confdefs.h >>conftest.$ac_ext
22459 cat >>conftest.$ac_ext <<_ACEOF
22460 /* end confdefs.h. */
22461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22463 #define $ac_func innocuous_$ac_func
22464
22465 /* System header to define __stub macros and hopefully few prototypes,
22466 which can conflict with char $ac_func (); below.
22467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22468 <limits.h> exists even on freestanding compilers. */
22469
22470 #ifdef __STDC__
22471 # include <limits.h>
22472 #else
22473 # include <assert.h>
22474 #endif
22475
22476 #undef $ac_func
22477
22478 /* Override any gcc2 internal prototype to avoid an error. */
22479 #ifdef __cplusplus
22480 extern "C"
22481 {
22482 #endif
22483 /* We use char because int might match the return type of a gcc2
22484 builtin and then its argument prototype would still apply. */
22485 char $ac_func ();
22486 /* The GNU C library defines this for functions which it implements
22487 to always fail with ENOSYS. Some functions are actually named
22488 something starting with __ and the normal name is an alias. */
22489 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22490 choke me
22491 #else
22492 char (*f) () = $ac_func;
22493 #endif
22494 #ifdef __cplusplus
22495 }
22496 #endif
22497
22498 int
22499 main ()
22500 {
22501 return f != $ac_func;
22502 ;
22503 return 0;
22504 }
22505 _ACEOF
22506 rm -f conftest.$ac_objext conftest$ac_exeext
22507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22508 (eval $ac_link) 2>conftest.er1
22509 ac_status=$?
22510 grep -v '^ *+' conftest.er1 >conftest.err
22511 rm -f conftest.er1
22512 cat conftest.err >&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } &&
22515 { ac_try='test -z "$ac_c_werror_flag"
22516 || test ! -s conftest.err'
22517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518 (eval $ac_try) 2>&5
22519 ac_status=$?
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; } &&
22522 { ac_try='test -s conftest$ac_exeext'
22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; }; then
22528 eval "$as_ac_var=yes"
22529 else
22530 echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.$ac_ext >&5
22532
22533 eval "$as_ac_var=no"
22534 fi
22535 rm -f conftest.err conftest.$ac_objext \
22536 conftest$ac_exeext conftest.$ac_ext
22537 fi
22538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22540 if test `eval echo '${'$as_ac_var'}'` = yes; then
22541 cat >>confdefs.h <<_ACEOF
22542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22543 _ACEOF
22544
22545 fi
22546 done
22547
22548
22549
22550
22551 for ac_func in sigaction sigprocmask sigsetmask
22552 do
22553 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22554 echo "$as_me:$LINENO: checking for $ac_func" >&5
22555 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22556 if eval "test \"\${$as_ac_var+set}\" = set"; then
22557 echo $ECHO_N "(cached) $ECHO_C" >&6
22558 else
22559 cat >conftest.$ac_ext <<_ACEOF
22560 /* confdefs.h. */
22561 _ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h. */
22565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22567 #define $ac_func innocuous_$ac_func
22568
22569 /* System header to define __stub macros and hopefully few prototypes,
22570 which can conflict with char $ac_func (); below.
22571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22572 <limits.h> exists even on freestanding compilers. */
22573
22574 #ifdef __STDC__
22575 # include <limits.h>
22576 #else
22577 # include <assert.h>
22578 #endif
22579
22580 #undef $ac_func
22581
22582 /* Override any gcc2 internal prototype to avoid an error. */
22583 #ifdef __cplusplus
22584 extern "C"
22585 {
22586 #endif
22587 /* We use char because int might match the return type of a gcc2
22588 builtin and then its argument prototype would still apply. */
22589 char $ac_func ();
22590 /* The GNU C library defines this for functions which it implements
22591 to always fail with ENOSYS. Some functions are actually named
22592 something starting with __ and the normal name is an alias. */
22593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22594 choke me
22595 #else
22596 char (*f) () = $ac_func;
22597 #endif
22598 #ifdef __cplusplus
22599 }
22600 #endif
22601
22602 int
22603 main ()
22604 {
22605 return f != $ac_func;
22606 ;
22607 return 0;
22608 }
22609 _ACEOF
22610 rm -f conftest.$ac_objext conftest$ac_exeext
22611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22612 (eval $ac_link) 2>conftest.er1
22613 ac_status=$?
22614 grep -v '^ *+' conftest.er1 >conftest.err
22615 rm -f conftest.er1
22616 cat conftest.err >&5
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); } &&
22619 { ac_try='test -z "$ac_c_werror_flag"
22620 || test ! -s conftest.err'
22621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622 (eval $ac_try) 2>&5
22623 ac_status=$?
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; } &&
22626 { ac_try='test -s conftest$ac_exeext'
22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628 (eval $ac_try) 2>&5
22629 ac_status=$?
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }; }; then
22632 eval "$as_ac_var=yes"
22633 else
22634 echo "$as_me: failed program was:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22636
22637 eval "$as_ac_var=no"
22638 fi
22639 rm -f conftest.err conftest.$ac_objext \
22640 conftest$ac_exeext conftest.$ac_ext
22641 fi
22642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22644 if test `eval echo '${'$as_ac_var'}'` = yes; then
22645 cat >>confdefs.h <<_ACEOF
22646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22647 _ACEOF
22648
22649 fi
22650 done
22651
22652
22653 for ac_func in socketpair
22654 do
22655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22656 echo "$as_me:$LINENO: checking for $ac_func" >&5
22657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22658 if eval "test \"\${$as_ac_var+set}\" = set"; then
22659 echo $ECHO_N "(cached) $ECHO_C" >&6
22660 else
22661 cat >conftest.$ac_ext <<_ACEOF
22662 /* confdefs.h. */
22663 _ACEOF
22664 cat confdefs.h >>conftest.$ac_ext
22665 cat >>conftest.$ac_ext <<_ACEOF
22666 /* end confdefs.h. */
22667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22669 #define $ac_func innocuous_$ac_func
22670
22671 /* System header to define __stub macros and hopefully few prototypes,
22672 which can conflict with char $ac_func (); below.
22673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22674 <limits.h> exists even on freestanding compilers. */
22675
22676 #ifdef __STDC__
22677 # include <limits.h>
22678 #else
22679 # include <assert.h>
22680 #endif
22681
22682 #undef $ac_func
22683
22684 /* Override any gcc2 internal prototype to avoid an error. */
22685 #ifdef __cplusplus
22686 extern "C"
22687 {
22688 #endif
22689 /* We use char because int might match the return type of a gcc2
22690 builtin and then its argument prototype would still apply. */
22691 char $ac_func ();
22692 /* The GNU C library defines this for functions which it implements
22693 to always fail with ENOSYS. Some functions are actually named
22694 something starting with __ and the normal name is an alias. */
22695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22696 choke me
22697 #else
22698 char (*f) () = $ac_func;
22699 #endif
22700 #ifdef __cplusplus
22701 }
22702 #endif
22703
22704 int
22705 main ()
22706 {
22707 return f != $ac_func;
22708 ;
22709 return 0;
22710 }
22711 _ACEOF
22712 rm -f conftest.$ac_objext conftest$ac_exeext
22713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22714 (eval $ac_link) 2>conftest.er1
22715 ac_status=$?
22716 grep -v '^ *+' conftest.er1 >conftest.err
22717 rm -f conftest.er1
22718 cat conftest.err >&5
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); } &&
22721 { ac_try='test -z "$ac_c_werror_flag"
22722 || test ! -s conftest.err'
22723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22724 (eval $ac_try) 2>&5
22725 ac_status=$?
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); }; } &&
22728 { ac_try='test -s conftest$ac_exeext'
22729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22730 (eval $ac_try) 2>&5
22731 ac_status=$?
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); }; }; then
22734 eval "$as_ac_var=yes"
22735 else
22736 echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22738
22739 eval "$as_ac_var=no"
22740 fi
22741 rm -f conftest.err conftest.$ac_objext \
22742 conftest$ac_exeext conftest.$ac_ext
22743 fi
22744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22746 if test `eval echo '${'$as_ac_var'}'` = yes; then
22747 cat >>confdefs.h <<_ACEOF
22748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22749 _ACEOF
22750
22751 fi
22752 done
22753
22754
22755 for ac_func in syscall
22756 do
22757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22758 echo "$as_me:$LINENO: checking for $ac_func" >&5
22759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22760 if eval "test \"\${$as_ac_var+set}\" = set"; then
22761 echo $ECHO_N "(cached) $ECHO_C" >&6
22762 else
22763 cat >conftest.$ac_ext <<_ACEOF
22764 /* confdefs.h. */
22765 _ACEOF
22766 cat confdefs.h >>conftest.$ac_ext
22767 cat >>conftest.$ac_ext <<_ACEOF
22768 /* end confdefs.h. */
22769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22771 #define $ac_func innocuous_$ac_func
22772
22773 /* System header to define __stub macros and hopefully few prototypes,
22774 which can conflict with char $ac_func (); below.
22775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22776 <limits.h> exists even on freestanding compilers. */
22777
22778 #ifdef __STDC__
22779 # include <limits.h>
22780 #else
22781 # include <assert.h>
22782 #endif
22783
22784 #undef $ac_func
22785
22786 /* Override any gcc2 internal prototype to avoid an error. */
22787 #ifdef __cplusplus
22788 extern "C"
22789 {
22790 #endif
22791 /* We use char because int might match the return type of a gcc2
22792 builtin and then its argument prototype would still apply. */
22793 char $ac_func ();
22794 /* The GNU C library defines this for functions which it implements
22795 to always fail with ENOSYS. Some functions are actually named
22796 something starting with __ and the normal name is an alias. */
22797 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22798 choke me
22799 #else
22800 char (*f) () = $ac_func;
22801 #endif
22802 #ifdef __cplusplus
22803 }
22804 #endif
22805
22806 int
22807 main ()
22808 {
22809 return f != $ac_func;
22810 ;
22811 return 0;
22812 }
22813 _ACEOF
22814 rm -f conftest.$ac_objext conftest$ac_exeext
22815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22816 (eval $ac_link) 2>conftest.er1
22817 ac_status=$?
22818 grep -v '^ *+' conftest.er1 >conftest.err
22819 rm -f conftest.er1
22820 cat conftest.err >&5
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); } &&
22823 { ac_try='test -z "$ac_c_werror_flag"
22824 || test ! -s conftest.err'
22825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22826 (eval $ac_try) 2>&5
22827 ac_status=$?
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); }; } &&
22830 { ac_try='test -s conftest$ac_exeext'
22831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22832 (eval $ac_try) 2>&5
22833 ac_status=$?
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); }; }; then
22836 eval "$as_ac_var=yes"
22837 else
22838 echo "$as_me: failed program was:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22840
22841 eval "$as_ac_var=no"
22842 fi
22843 rm -f conftest.err conftest.$ac_objext \
22844 conftest$ac_exeext conftest.$ac_ext
22845 fi
22846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22847 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22848 if test `eval echo '${'$as_ac_var'}'` = yes; then
22849 cat >>confdefs.h <<_ACEOF
22850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22851 _ACEOF
22852
22853 fi
22854 done
22855
22856
22857 for ac_func in ttrace
22858 do
22859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22860 echo "$as_me:$LINENO: checking for $ac_func" >&5
22861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22862 if eval "test \"\${$as_ac_var+set}\" = set"; then
22863 echo $ECHO_N "(cached) $ECHO_C" >&6
22864 else
22865 cat >conftest.$ac_ext <<_ACEOF
22866 /* confdefs.h. */
22867 _ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h. */
22871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22873 #define $ac_func innocuous_$ac_func
22874
22875 /* System header to define __stub macros and hopefully few prototypes,
22876 which can conflict with char $ac_func (); below.
22877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22878 <limits.h> exists even on freestanding compilers. */
22879
22880 #ifdef __STDC__
22881 # include <limits.h>
22882 #else
22883 # include <assert.h>
22884 #endif
22885
22886 #undef $ac_func
22887
22888 /* Override any gcc2 internal prototype to avoid an error. */
22889 #ifdef __cplusplus
22890 extern "C"
22891 {
22892 #endif
22893 /* We use char because int might match the return type of a gcc2
22894 builtin and then its argument prototype would still apply. */
22895 char $ac_func ();
22896 /* The GNU C library defines this for functions which it implements
22897 to always fail with ENOSYS. Some functions are actually named
22898 something starting with __ and the normal name is an alias. */
22899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22900 choke me
22901 #else
22902 char (*f) () = $ac_func;
22903 #endif
22904 #ifdef __cplusplus
22905 }
22906 #endif
22907
22908 int
22909 main ()
22910 {
22911 return f != $ac_func;
22912 ;
22913 return 0;
22914 }
22915 _ACEOF
22916 rm -f conftest.$ac_objext conftest$ac_exeext
22917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22918 (eval $ac_link) 2>conftest.er1
22919 ac_status=$?
22920 grep -v '^ *+' conftest.er1 >conftest.err
22921 rm -f conftest.er1
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } &&
22925 { ac_try='test -z "$ac_c_werror_flag"
22926 || test ! -s conftest.err'
22927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928 (eval $ac_try) 2>&5
22929 ac_status=$?
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); }; } &&
22932 { ac_try='test -s conftest$ac_exeext'
22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934 (eval $ac_try) 2>&5
22935 ac_status=$?
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; }; then
22938 eval "$as_ac_var=yes"
22939 else
22940 echo "$as_me: failed program was:" >&5
22941 sed 's/^/| /' conftest.$ac_ext >&5
22942
22943 eval "$as_ac_var=no"
22944 fi
22945 rm -f conftest.err conftest.$ac_objext \
22946 conftest$ac_exeext conftest.$ac_ext
22947 fi
22948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22950 if test `eval echo '${'$as_ac_var'}'` = yes; then
22951 cat >>confdefs.h <<_ACEOF
22952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22953 _ACEOF
22954
22955 fi
22956 done
22957
22958
22959 for ac_func in wborder
22960 do
22961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22962 echo "$as_me:$LINENO: checking for $ac_func" >&5
22963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22964 if eval "test \"\${$as_ac_var+set}\" = set"; then
22965 echo $ECHO_N "(cached) $ECHO_C" >&6
22966 else
22967 cat >conftest.$ac_ext <<_ACEOF
22968 /* confdefs.h. */
22969 _ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h. */
22973 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22975 #define $ac_func innocuous_$ac_func
22976
22977 /* System header to define __stub macros and hopefully few prototypes,
22978 which can conflict with char $ac_func (); below.
22979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22980 <limits.h> exists even on freestanding compilers. */
22981
22982 #ifdef __STDC__
22983 # include <limits.h>
22984 #else
22985 # include <assert.h>
22986 #endif
22987
22988 #undef $ac_func
22989
22990 /* Override any gcc2 internal prototype to avoid an error. */
22991 #ifdef __cplusplus
22992 extern "C"
22993 {
22994 #endif
22995 /* We use char because int might match the return type of a gcc2
22996 builtin and then its argument prototype would still apply. */
22997 char $ac_func ();
22998 /* The GNU C library defines this for functions which it implements
22999 to always fail with ENOSYS. Some functions are actually named
23000 something starting with __ and the normal name is an alias. */
23001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23002 choke me
23003 #else
23004 char (*f) () = $ac_func;
23005 #endif
23006 #ifdef __cplusplus
23007 }
23008 #endif
23009
23010 int
23011 main ()
23012 {
23013 return f != $ac_func;
23014 ;
23015 return 0;
23016 }
23017 _ACEOF
23018 rm -f conftest.$ac_objext conftest$ac_exeext
23019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23020 (eval $ac_link) 2>conftest.er1
23021 ac_status=$?
23022 grep -v '^ *+' conftest.er1 >conftest.err
23023 rm -f conftest.er1
23024 cat conftest.err >&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); } &&
23027 { ac_try='test -z "$ac_c_werror_flag"
23028 || test ! -s conftest.err'
23029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23030 (eval $ac_try) 2>&5
23031 ac_status=$?
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); }; } &&
23034 { ac_try='test -s conftest$ac_exeext'
23035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23036 (eval $ac_try) 2>&5
23037 ac_status=$?
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); }; }; then
23040 eval "$as_ac_var=yes"
23041 else
23042 echo "$as_me: failed program was:" >&5
23043 sed 's/^/| /' conftest.$ac_ext >&5
23044
23045 eval "$as_ac_var=no"
23046 fi
23047 rm -f conftest.err conftest.$ac_objext \
23048 conftest$ac_exeext conftest.$ac_ext
23049 fi
23050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23051 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23052 if test `eval echo '${'$as_ac_var'}'` = yes; then
23053 cat >>confdefs.h <<_ACEOF
23054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23055 _ACEOF
23056
23057 fi
23058 done
23059
23060
23061 # Check the return and argument types of ptrace. No canned test for
23062 # this, so roll our own.
23063 gdb_ptrace_headers='
23064 #if HAVE_SYS_TYPES_H
23065 # include <sys/types.h>
23066 #endif
23067 #if HAVE_SYS_PTRACE_H
23068 # include <sys/ptrace.h>
23069 #endif
23070 #if HAVE_UNISTD_H
23071 # include <unistd.h>
23072 #endif
23073 '
23074 # There is no point in checking if we don't have a prototype.
23075 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
23076 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
23077 if test "${ac_cv_have_decl_ptrace+set}" = set; then
23078 echo $ECHO_N "(cached) $ECHO_C" >&6
23079 else
23080 cat >conftest.$ac_ext <<_ACEOF
23081 /* confdefs.h. */
23082 _ACEOF
23083 cat confdefs.h >>conftest.$ac_ext
23084 cat >>conftest.$ac_ext <<_ACEOF
23085 /* end confdefs.h. */
23086 $gdb_ptrace_headers
23087
23088 int
23089 main ()
23090 {
23091 #ifndef ptrace
23092 char *p = (char *) ptrace;
23093 #endif
23094
23095 ;
23096 return 0;
23097 }
23098 _ACEOF
23099 rm -f conftest.$ac_objext
23100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23101 (eval $ac_compile) 2>conftest.er1
23102 ac_status=$?
23103 grep -v '^ *+' conftest.er1 >conftest.err
23104 rm -f conftest.er1
23105 cat conftest.err >&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); } &&
23108 { ac_try='test -z "$ac_c_werror_flag"
23109 || test ! -s conftest.err'
23110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111 (eval $ac_try) 2>&5
23112 ac_status=$?
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); }; } &&
23115 { ac_try='test -s conftest.$ac_objext'
23116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117 (eval $ac_try) 2>&5
23118 ac_status=$?
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); }; }; then
23121 ac_cv_have_decl_ptrace=yes
23122 else
23123 echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23125
23126 ac_cv_have_decl_ptrace=no
23127 fi
23128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23129 fi
23130 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
23131 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
23132 if test $ac_cv_have_decl_ptrace = yes; then
23133
23134 cat >>confdefs.h <<_ACEOF
23135 #define HAVE_DECL_PTRACE 1
23136 _ACEOF
23137
23138
23139 else
23140 cat >>confdefs.h <<_ACEOF
23141 #define HAVE_DECL_PTRACE 0
23142 _ACEOF
23143
23144
23145 : ${gdb_cv_func_ptrace_ret='int'}
23146 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
23147
23148 fi
23149
23150
23151 # Check return type.
23152 echo "$as_me:$LINENO: checking return type of ptrace" >&5
23153 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
23154 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
23155 echo $ECHO_N "(cached) $ECHO_C" >&6
23156 else
23157 cat >conftest.$ac_ext <<_ACEOF
23158 /* confdefs.h. */
23159 _ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23163 $gdb_ptrace_headers
23164 int
23165 main ()
23166 {
23167 extern int ptrace ();
23168 ;
23169 return 0;
23170 }
23171 _ACEOF
23172 rm -f conftest.$ac_objext
23173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23174 (eval $ac_compile) 2>conftest.er1
23175 ac_status=$?
23176 grep -v '^ *+' conftest.er1 >conftest.err
23177 rm -f conftest.er1
23178 cat conftest.err >&5
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); } &&
23181 { ac_try='test -z "$ac_c_werror_flag"
23182 || test ! -s conftest.err'
23183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23184 (eval $ac_try) 2>&5
23185 ac_status=$?
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); }; } &&
23188 { ac_try='test -s conftest.$ac_objext'
23189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23190 (eval $ac_try) 2>&5
23191 ac_status=$?
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; }; then
23194 gdb_cv_func_ptrace_ret='int'
23195 else
23196 echo "$as_me: failed program was:" >&5
23197 sed 's/^/| /' conftest.$ac_ext >&5
23198
23199 gdb_cv_func_ptrace_ret='long'
23200 fi
23201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23202 fi
23203 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
23204 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
23205
23206 cat >>confdefs.h <<_ACEOF
23207 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
23208 _ACEOF
23209
23210 # Check argument types.
23211 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
23212 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
23213 if test "${gdb_cv_func_ptrace_args+set}" = set; then
23214 echo $ECHO_N "(cached) $ECHO_C" >&6
23215 else
23216
23217 for gdb_arg1 in 'int' 'long'; do
23218 for gdb_arg2 in 'pid_t' 'int' 'long'; do
23219 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
23220 for gdb_arg4 in 'int' 'long'; do
23221 cat >conftest.$ac_ext <<_ACEOF
23222 /* confdefs.h. */
23223 _ACEOF
23224 cat confdefs.h >>conftest.$ac_ext
23225 cat >>conftest.$ac_ext <<_ACEOF
23226 /* end confdefs.h. */
23227 $gdb_ptrace_headers
23228 int
23229 main ()
23230 {
23231
23232 extern $gdb_cv_func_ptrace_ret
23233 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
23234
23235 ;
23236 return 0;
23237 }
23238 _ACEOF
23239 rm -f conftest.$ac_objext
23240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23241 (eval $ac_compile) 2>conftest.er1
23242 ac_status=$?
23243 grep -v '^ *+' conftest.er1 >conftest.err
23244 rm -f conftest.er1
23245 cat conftest.err >&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); } &&
23248 { ac_try='test -z "$ac_c_werror_flag"
23249 || test ! -s conftest.err'
23250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251 (eval $ac_try) 2>&5
23252 ac_status=$?
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); }; } &&
23255 { ac_try='test -s conftest.$ac_objext'
23256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257 (eval $ac_try) 2>&5
23258 ac_status=$?
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); }; }; then
23261 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
23262 break 4;
23263 else
23264 echo "$as_me: failed program was:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23266
23267 fi
23268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23269 for gdb_arg5 in 'int *' 'int' 'long'; do
23270 cat >conftest.$ac_ext <<_ACEOF
23271 /* confdefs.h. */
23272 _ACEOF
23273 cat confdefs.h >>conftest.$ac_ext
23274 cat >>conftest.$ac_ext <<_ACEOF
23275 /* end confdefs.h. */
23276 $gdb_ptrace_headers
23277 int
23278 main ()
23279 {
23280
23281 extern $gdb_cv_func_ptrace_ret
23282 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
23283
23284 ;
23285 return 0;
23286 }
23287 _ACEOF
23288 rm -f conftest.$ac_objext
23289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23290 (eval $ac_compile) 2>conftest.er1
23291 ac_status=$?
23292 grep -v '^ *+' conftest.er1 >conftest.err
23293 rm -f conftest.er1
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } &&
23297 { ac_try='test -z "$ac_c_werror_flag"
23298 || test ! -s conftest.err'
23299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300 (eval $ac_try) 2>&5
23301 ac_status=$?
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); }; } &&
23304 { ac_try='test -s conftest.$ac_objext'
23305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306 (eval $ac_try) 2>&5
23307 ac_status=$?
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); }; }; then
23310
23311 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
23312 break 5;
23313 else
23314 echo "$as_me: failed program was:" >&5
23315 sed 's/^/| /' conftest.$ac_ext >&5
23316
23317 fi
23318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23319 done
23320 done
23321 done
23322 done
23323 done
23324 # Provide a safe default value.
23325 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
23326
23327 fi
23328 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
23329 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
23330 ac_save_IFS=$IFS; IFS=','
23331 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
23332 IFS=$ac_save_IFS
23333 shift
23334
23335 cat >>confdefs.h <<_ACEOF
23336 #define PTRACE_TYPE_ARG3 $3
23337 _ACEOF
23338
23339 if test -n "$5"; then
23340
23341 cat >>confdefs.h <<_ACEOF
23342 #define PTRACE_TYPE_ARG5 $5
23343 _ACEOF
23344
23345 fi
23346
23347 if test "$cross_compiling" = no; then
23348 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
23349 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
23350 if test "${ac_cv_func_setpgrp_void+set}" = set; then
23351 echo $ECHO_N "(cached) $ECHO_C" >&6
23352 else
23353 if test "$cross_compiling" = yes; then
23354 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
23355 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
23356 { (exit 1); exit 1; }; }
23357 else
23358 cat >conftest.$ac_ext <<_ACEOF
23359 /* confdefs.h. */
23360 _ACEOF
23361 cat confdefs.h >>conftest.$ac_ext
23362 cat >>conftest.$ac_ext <<_ACEOF
23363 /* end confdefs.h. */
23364 #if HAVE_UNISTD_H
23365 # include <unistd.h>
23366 #endif
23367
23368 int
23369 main ()
23370 {
23371 /* If this system has a BSD-style setpgrp which takes arguments,
23372 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23373 exit successfully. */
23374 exit (setpgrp (1,1) == -1 ? 0 : 1);
23375 ;
23376 return 0;
23377 }
23378 _ACEOF
23379 rm -f conftest$ac_exeext
23380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23381 (eval $ac_link) 2>&5
23382 ac_status=$?
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }; then
23390 ac_cv_func_setpgrp_void=no
23391 else
23392 echo "$as_me: program exited with status $ac_status" >&5
23393 echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23395
23396 ( exit $ac_status )
23397 ac_cv_func_setpgrp_void=yes
23398 fi
23399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23400 fi
23401 fi
23402 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
23403 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
23404 if test $ac_cv_func_setpgrp_void = yes; then
23405
23406 cat >>confdefs.h <<\_ACEOF
23407 #define SETPGRP_VOID 1
23408 _ACEOF
23409
23410 fi
23411
23412 else
23413 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
23414 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
23415 if test "${ac_cv_func_setpgrp_void+set}" = set; then
23416 echo $ECHO_N "(cached) $ECHO_C" >&6
23417 else
23418 cat >conftest.$ac_ext <<_ACEOF
23419 /* confdefs.h. */
23420 _ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23424
23425 #include <unistd.h>
23426
23427 int
23428 main ()
23429 {
23430
23431 if (setpgrp(1,1) == -1)
23432 exit (0);
23433 else
23434 exit (1);
23435
23436 ;
23437 return 0;
23438 }
23439 _ACEOF
23440 rm -f conftest.$ac_objext
23441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23442 (eval $ac_compile) 2>conftest.er1
23443 ac_status=$?
23444 grep -v '^ *+' conftest.er1 >conftest.err
23445 rm -f conftest.er1
23446 cat conftest.err >&5
23447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); } &&
23449 { ac_try='test -z "$ac_c_werror_flag"
23450 || test ! -s conftest.err'
23451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23452 (eval $ac_try) 2>&5
23453 ac_status=$?
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); }; } &&
23456 { ac_try='test -s conftest.$ac_objext'
23457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458 (eval $ac_try) 2>&5
23459 ac_status=$?
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); }; }; then
23462 ac_cv_func_setpgrp_void=no
23463 else
23464 echo "$as_me: failed program was:" >&5
23465 sed 's/^/| /' conftest.$ac_ext >&5
23466
23467 ac_cv_func_setpgrp_void=yes
23468 fi
23469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23470 fi
23471 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
23472 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
23473 if test $ac_cv_func_setpgrp_void = yes; then
23474 cat >>confdefs.h <<\_ACEOF
23475 #define SETPGRP_VOID 1
23476 _ACEOF
23477
23478 fi
23479 fi
23480
23481 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
23482 # since sigsetjmp might only be defined as a macro.
23483 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
23484 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
23485 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
23486 echo $ECHO_N "(cached) $ECHO_C" >&6
23487 else
23488 cat >conftest.$ac_ext <<_ACEOF
23489 /* confdefs.h. */
23490 _ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h. */
23494
23495 #include <setjmp.h>
23496
23497 int
23498 main ()
23499 {
23500 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
23501 ;
23502 return 0;
23503 }
23504 _ACEOF
23505 rm -f conftest.$ac_objext
23506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23507 (eval $ac_compile) 2>conftest.er1
23508 ac_status=$?
23509 grep -v '^ *+' conftest.er1 >conftest.err
23510 rm -f conftest.er1
23511 cat conftest.err >&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } &&
23514 { ac_try='test -z "$ac_c_werror_flag"
23515 || test ! -s conftest.err'
23516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517 (eval $ac_try) 2>&5
23518 ac_status=$?
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); }; } &&
23521 { ac_try='test -s conftest.$ac_objext'
23522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23523 (eval $ac_try) 2>&5
23524 ac_status=$?
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); }; }; then
23527 gdb_cv_func_sigsetjmp=yes
23528 else
23529 echo "$as_me: failed program was:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23531
23532 gdb_cv_func_sigsetjmp=no
23533 fi
23534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23535 fi
23536 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
23537 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
23538 if test $gdb_cv_func_sigsetjmp = yes; then
23539
23540 cat >>confdefs.h <<\_ACEOF
23541 #define HAVE_SIGSETJMP 1
23542 _ACEOF
23543
23544 fi
23545
23546 # Assume we'll default to using the included libiberty regex.
23547 gdb_use_included_regex=yes
23548
23549 # However, if the system regex is GNU regex, then default to *not*
23550 # using the included regex.
23551 echo "$as_me:$LINENO: checking for GNU regex" >&5
23552 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
23553 if test "${gdb_cv_have_gnu_regex+set}" = set; then
23554 echo $ECHO_N "(cached) $ECHO_C" >&6
23555 else
23556 cat >conftest.$ac_ext <<_ACEOF
23557 /* confdefs.h. */
23558 _ACEOF
23559 cat confdefs.h >>conftest.$ac_ext
23560 cat >>conftest.$ac_ext <<_ACEOF
23561 /* end confdefs.h. */
23562 #include <gnu-versions.h>
23563 int
23564 main ()
23565 {
23566 #define REGEX_INTERFACE_VERSION 1
23567 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
23568 # error "Version mismatch"
23569 #endif
23570 ;
23571 return 0;
23572 }
23573 _ACEOF
23574 rm -f conftest.$ac_objext
23575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23576 (eval $ac_compile) 2>conftest.er1
23577 ac_status=$?
23578 grep -v '^ *+' conftest.er1 >conftest.err
23579 rm -f conftest.er1
23580 cat conftest.err >&5
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); } &&
23583 { ac_try='test -z "$ac_c_werror_flag"
23584 || test ! -s conftest.err'
23585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23586 (eval $ac_try) 2>&5
23587 ac_status=$?
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); }; } &&
23590 { ac_try='test -s conftest.$ac_objext'
23591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592 (eval $ac_try) 2>&5
23593 ac_status=$?
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); }; }; then
23596 gdb_cv_have_gnu_regex=yes
23597 else
23598 echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23600
23601 gdb_cv_have_gnu_regex=no
23602 fi
23603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23604 fi
23605 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
23606 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
23607 if test $gdb_cv_have_gnu_regex = yes; then
23608 gdb_use_included_regex=no
23609 fi
23610
23611
23612 # Check whether --with-included-regex or --without-included-regex was given.
23613 if test "${with_included_regex+set}" = set; then
23614 withval="$with_included_regex"
23615 gdb_with_regex=$withval
23616 else
23617 gdb_with_regex=$gdb_use_included_regex
23618 fi;
23619 if test "$gdb_with_regex" = yes; then
23620
23621 cat >>confdefs.h <<\_ACEOF
23622 #define USE_INCLUDED_REGEX 1
23623 _ACEOF
23624
23625 fi
23626
23627 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
23628 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
23629 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
23630 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
23631 echo $ECHO_N "(cached) $ECHO_C" >&6
23632 else
23633 cat >conftest.$ac_ext <<_ACEOF
23634 /* confdefs.h. */
23635 _ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23639 #include <sys/param.h>
23640 #include <sys/proc.h>
23641
23642
23643 int
23644 main ()
23645 {
23646 static struct thread ac_aggr;
23647 if (ac_aggr.td_pcb)
23648 return 0;
23649 ;
23650 return 0;
23651 }
23652 _ACEOF
23653 rm -f conftest.$ac_objext
23654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23655 (eval $ac_compile) 2>conftest.er1
23656 ac_status=$?
23657 grep -v '^ *+' conftest.er1 >conftest.err
23658 rm -f conftest.er1
23659 cat conftest.err >&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); } &&
23662 { ac_try='test -z "$ac_c_werror_flag"
23663 || test ! -s conftest.err'
23664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665 (eval $ac_try) 2>&5
23666 ac_status=$?
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); }; } &&
23669 { ac_try='test -s conftest.$ac_objext'
23670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23671 (eval $ac_try) 2>&5
23672 ac_status=$?
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); }; }; then
23675 ac_cv_member_struct_thread_td_pcb=yes
23676 else
23677 echo "$as_me: failed program was:" >&5
23678 sed 's/^/| /' conftest.$ac_ext >&5
23679
23680 cat >conftest.$ac_ext <<_ACEOF
23681 /* confdefs.h. */
23682 _ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23686 #include <sys/param.h>
23687 #include <sys/proc.h>
23688
23689
23690 int
23691 main ()
23692 {
23693 static struct thread ac_aggr;
23694 if (sizeof ac_aggr.td_pcb)
23695 return 0;
23696 ;
23697 return 0;
23698 }
23699 _ACEOF
23700 rm -f conftest.$ac_objext
23701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23702 (eval $ac_compile) 2>conftest.er1
23703 ac_status=$?
23704 grep -v '^ *+' conftest.er1 >conftest.err
23705 rm -f conftest.er1
23706 cat conftest.err >&5
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } &&
23709 { ac_try='test -z "$ac_c_werror_flag"
23710 || test ! -s conftest.err'
23711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712 (eval $ac_try) 2>&5
23713 ac_status=$?
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); }; } &&
23716 { ac_try='test -s conftest.$ac_objext'
23717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718 (eval $ac_try) 2>&5
23719 ac_status=$?
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); }; }; then
23722 ac_cv_member_struct_thread_td_pcb=yes
23723 else
23724 echo "$as_me: failed program was:" >&5
23725 sed 's/^/| /' conftest.$ac_ext >&5
23726
23727 ac_cv_member_struct_thread_td_pcb=no
23728 fi
23729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23730 fi
23731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23732 fi
23733 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
23734 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
23735 if test $ac_cv_member_struct_thread_td_pcb = yes; then
23736
23737 cat >>confdefs.h <<_ACEOF
23738 #define HAVE_STRUCT_THREAD_TD_PCB 1
23739 _ACEOF
23740
23741
23742 fi
23743
23744
23745 # See if <sys/lwp.h> defines `struct lwp`.
23746 echo "$as_me:$LINENO: checking for struct lwp" >&5
23747 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
23748 if test "${gdb_cv_struct_lwp+set}" = set; then
23749 echo $ECHO_N "(cached) $ECHO_C" >&6
23750 else
23751 cat >conftest.$ac_ext <<_ACEOF
23752 /* confdefs.h. */
23753 _ACEOF
23754 cat confdefs.h >>conftest.$ac_ext
23755 cat >>conftest.$ac_ext <<_ACEOF
23756 /* end confdefs.h. */
23757 #include <sys/param.h>
23758 #include <sys/lwp.h>
23759 int
23760 main ()
23761 {
23762 struct lwp l;
23763 ;
23764 return 0;
23765 }
23766 _ACEOF
23767 rm -f conftest.$ac_objext
23768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23769 (eval $ac_compile) 2>conftest.er1
23770 ac_status=$?
23771 grep -v '^ *+' conftest.er1 >conftest.err
23772 rm -f conftest.er1
23773 cat conftest.err >&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } &&
23776 { ac_try='test -z "$ac_c_werror_flag"
23777 || test ! -s conftest.err'
23778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23779 (eval $ac_try) 2>&5
23780 ac_status=$?
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); }; } &&
23783 { ac_try='test -s conftest.$ac_objext'
23784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23785 (eval $ac_try) 2>&5
23786 ac_status=$?
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; }; then
23789 gdb_cv_struct_lwp=yes
23790 else
23791 echo "$as_me: failed program was:" >&5
23792 sed 's/^/| /' conftest.$ac_ext >&5
23793
23794 gdb_cv_struct_lwp=no
23795 fi
23796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23797 fi
23798 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
23799 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
23800 if test $gdb_cv_struct_lwp = yes; then
23801
23802 cat >>confdefs.h <<\_ACEOF
23803 #define HAVE_STRUCT_LWP 1
23804 _ACEOF
23805
23806 fi
23807
23808 # See if <machine/reg.h> degines `struct reg'.
23809 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
23810 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
23811 if test "${gdb_cv_struct_reg+set}" = set; then
23812 echo $ECHO_N "(cached) $ECHO_C" >&6
23813 else
23814 cat >conftest.$ac_ext <<_ACEOF
23815 /* confdefs.h. */
23816 _ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h. */
23820 #include <sys/types.h>
23821 #include <machine/reg.h>
23822 int
23823 main ()
23824 {
23825 struct reg r;
23826 ;
23827 return 0;
23828 }
23829 _ACEOF
23830 rm -f conftest.$ac_objext
23831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23832 (eval $ac_compile) 2>conftest.er1
23833 ac_status=$?
23834 grep -v '^ *+' conftest.er1 >conftest.err
23835 rm -f conftest.er1
23836 cat conftest.err >&5
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } &&
23839 { ac_try='test -z "$ac_c_werror_flag"
23840 || test ! -s conftest.err'
23841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23842 (eval $ac_try) 2>&5
23843 ac_status=$?
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); }; } &&
23846 { ac_try='test -s conftest.$ac_objext'
23847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23848 (eval $ac_try) 2>&5
23849 ac_status=$?
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); }; }; then
23852 gdb_cv_struct_reg=yes
23853 else
23854 echo "$as_me: failed program was:" >&5
23855 sed 's/^/| /' conftest.$ac_ext >&5
23856
23857 gdb_cv_struct_reg=no
23858 fi
23859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23860 fi
23861 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
23862 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
23863 if test $gdb_cv_struct_reg = yes; then
23864
23865 cat >>confdefs.h <<\_ACEOF
23866 #define HAVE_STRUCT_REG 1
23867 _ACEOF
23868
23869 fi
23870
23871 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
23872 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
23873 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
23874 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
23875 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
23876 echo $ECHO_N "(cached) $ECHO_C" >&6
23877 else
23878 cat >conftest.$ac_ext <<_ACEOF
23879 /* confdefs.h. */
23880 _ACEOF
23881 cat confdefs.h >>conftest.$ac_ext
23882 cat >>conftest.$ac_ext <<_ACEOF
23883 /* end confdefs.h. */
23884 #include <machine/reg.h>
23885
23886 int
23887 main ()
23888 {
23889 static struct reg ac_aggr;
23890 if (ac_aggr.r_fs)
23891 return 0;
23892 ;
23893 return 0;
23894 }
23895 _ACEOF
23896 rm -f conftest.$ac_objext
23897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23898 (eval $ac_compile) 2>conftest.er1
23899 ac_status=$?
23900 grep -v '^ *+' conftest.er1 >conftest.err
23901 rm -f conftest.er1
23902 cat conftest.err >&5
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); } &&
23905 { ac_try='test -z "$ac_c_werror_flag"
23906 || test ! -s conftest.err'
23907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23908 (eval $ac_try) 2>&5
23909 ac_status=$?
23910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); }; } &&
23912 { ac_try='test -s conftest.$ac_objext'
23913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23914 (eval $ac_try) 2>&5
23915 ac_status=$?
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); }; }; then
23918 ac_cv_member_struct_reg_r_fs=yes
23919 else
23920 echo "$as_me: failed program was:" >&5
23921 sed 's/^/| /' conftest.$ac_ext >&5
23922
23923 cat >conftest.$ac_ext <<_ACEOF
23924 /* confdefs.h. */
23925 _ACEOF
23926 cat confdefs.h >>conftest.$ac_ext
23927 cat >>conftest.$ac_ext <<_ACEOF
23928 /* end confdefs.h. */
23929 #include <machine/reg.h>
23930
23931 int
23932 main ()
23933 {
23934 static struct reg ac_aggr;
23935 if (sizeof ac_aggr.r_fs)
23936 return 0;
23937 ;
23938 return 0;
23939 }
23940 _ACEOF
23941 rm -f conftest.$ac_objext
23942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23943 (eval $ac_compile) 2>conftest.er1
23944 ac_status=$?
23945 grep -v '^ *+' conftest.er1 >conftest.err
23946 rm -f conftest.er1
23947 cat conftest.err >&5
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); } &&
23950 { ac_try='test -z "$ac_c_werror_flag"
23951 || test ! -s conftest.err'
23952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23953 (eval $ac_try) 2>&5
23954 ac_status=$?
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); }; } &&
23957 { ac_try='test -s conftest.$ac_objext'
23958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23959 (eval $ac_try) 2>&5
23960 ac_status=$?
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); }; }; then
23963 ac_cv_member_struct_reg_r_fs=yes
23964 else
23965 echo "$as_me: failed program was:" >&5
23966 sed 's/^/| /' conftest.$ac_ext >&5
23967
23968 ac_cv_member_struct_reg_r_fs=no
23969 fi
23970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23971 fi
23972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23973 fi
23974 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
23975 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
23976 if test $ac_cv_member_struct_reg_r_fs = yes; then
23977
23978 cat >>confdefs.h <<_ACEOF
23979 #define HAVE_STRUCT_REG_R_FS 1
23980 _ACEOF
23981
23982
23983 fi
23984 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
23985 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
23986 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
23987 echo $ECHO_N "(cached) $ECHO_C" >&6
23988 else
23989 cat >conftest.$ac_ext <<_ACEOF
23990 /* confdefs.h. */
23991 _ACEOF
23992 cat confdefs.h >>conftest.$ac_ext
23993 cat >>conftest.$ac_ext <<_ACEOF
23994 /* end confdefs.h. */
23995 #include <machine/reg.h>
23996
23997 int
23998 main ()
23999 {
24000 static struct reg ac_aggr;
24001 if (ac_aggr.r_gs)
24002 return 0;
24003 ;
24004 return 0;
24005 }
24006 _ACEOF
24007 rm -f conftest.$ac_objext
24008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24009 (eval $ac_compile) 2>conftest.er1
24010 ac_status=$?
24011 grep -v '^ *+' conftest.er1 >conftest.err
24012 rm -f conftest.er1
24013 cat conftest.err >&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } &&
24016 { ac_try='test -z "$ac_c_werror_flag"
24017 || test ! -s conftest.err'
24018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019 (eval $ac_try) 2>&5
24020 ac_status=$?
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); }; } &&
24023 { ac_try='test -s conftest.$ac_objext'
24024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24025 (eval $ac_try) 2>&5
24026 ac_status=$?
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); }; }; then
24029 ac_cv_member_struct_reg_r_gs=yes
24030 else
24031 echo "$as_me: failed program was:" >&5
24032 sed 's/^/| /' conftest.$ac_ext >&5
24033
24034 cat >conftest.$ac_ext <<_ACEOF
24035 /* confdefs.h. */
24036 _ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h. */
24040 #include <machine/reg.h>
24041
24042 int
24043 main ()
24044 {
24045 static struct reg ac_aggr;
24046 if (sizeof ac_aggr.r_gs)
24047 return 0;
24048 ;
24049 return 0;
24050 }
24051 _ACEOF
24052 rm -f conftest.$ac_objext
24053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24054 (eval $ac_compile) 2>conftest.er1
24055 ac_status=$?
24056 grep -v '^ *+' conftest.er1 >conftest.err
24057 rm -f conftest.er1
24058 cat conftest.err >&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } &&
24061 { ac_try='test -z "$ac_c_werror_flag"
24062 || test ! -s conftest.err'
24063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064 (eval $ac_try) 2>&5
24065 ac_status=$?
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); }; } &&
24068 { ac_try='test -s conftest.$ac_objext'
24069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24070 (eval $ac_try) 2>&5
24071 ac_status=$?
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); }; }; then
24074 ac_cv_member_struct_reg_r_gs=yes
24075 else
24076 echo "$as_me: failed program was:" >&5
24077 sed 's/^/| /' conftest.$ac_ext >&5
24078
24079 ac_cv_member_struct_reg_r_gs=no
24080 fi
24081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24082 fi
24083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24084 fi
24085 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
24086 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
24087 if test $ac_cv_member_struct_reg_r_gs = yes; then
24088
24089 cat >>confdefs.h <<_ACEOF
24090 #define HAVE_STRUCT_REG_R_GS 1
24091 _ACEOF
24092
24093
24094 fi
24095
24096
24097 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
24098 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
24099 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
24100 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
24101 echo $ECHO_N "(cached) $ECHO_C" >&6
24102 else
24103 cat >conftest.$ac_ext <<_ACEOF
24104 /* confdefs.h. */
24105 _ACEOF
24106 cat confdefs.h >>conftest.$ac_ext
24107 cat >>conftest.$ac_ext <<_ACEOF
24108 /* end confdefs.h. */
24109 #include <sys/ptrace.h>
24110 int
24111 main ()
24112 {
24113 PTRACE_GETREGS;
24114 ;
24115 return 0;
24116 }
24117 _ACEOF
24118 rm -f conftest.$ac_objext
24119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24120 (eval $ac_compile) 2>conftest.er1
24121 ac_status=$?
24122 grep -v '^ *+' conftest.er1 >conftest.err
24123 rm -f conftest.er1
24124 cat conftest.err >&5
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); } &&
24127 { ac_try='test -z "$ac_c_werror_flag"
24128 || test ! -s conftest.err'
24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24131 ac_status=$?
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; } &&
24134 { ac_try='test -s conftest.$ac_objext'
24135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24136 (eval $ac_try) 2>&5
24137 ac_status=$?
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); }; }; then
24140 gdb_cv_have_ptrace_getregs=yes
24141 else
24142 echo "$as_me: failed program was:" >&5
24143 sed 's/^/| /' conftest.$ac_ext >&5
24144
24145 gdb_cv_have_ptrace_getregs=no
24146 fi
24147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24148 fi
24149
24150 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
24151 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
24152 if test $gdb_cv_have_ptrace_getregs = yes; then
24153
24154 cat >>confdefs.h <<\_ACEOF
24155 #define HAVE_PTRACE_GETREGS 1
24156 _ACEOF
24157
24158 fi
24159
24160 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
24161 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
24162 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
24163 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
24164 echo $ECHO_N "(cached) $ECHO_C" >&6
24165 else
24166 cat >conftest.$ac_ext <<_ACEOF
24167 /* confdefs.h. */
24168 _ACEOF
24169 cat confdefs.h >>conftest.$ac_ext
24170 cat >>conftest.$ac_ext <<_ACEOF
24171 /* end confdefs.h. */
24172 #include <sys/ptrace.h>
24173 int
24174 main ()
24175 {
24176 PTRACE_GETFPXREGS;
24177 ;
24178 return 0;
24179 }
24180 _ACEOF
24181 rm -f conftest.$ac_objext
24182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24183 (eval $ac_compile) 2>conftest.er1
24184 ac_status=$?
24185 grep -v '^ *+' conftest.er1 >conftest.err
24186 rm -f conftest.er1
24187 cat conftest.err >&5
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); } &&
24190 { ac_try='test -z "$ac_c_werror_flag"
24191 || test ! -s conftest.err'
24192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24193 (eval $ac_try) 2>&5
24194 ac_status=$?
24195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196 (exit $ac_status); }; } &&
24197 { ac_try='test -s conftest.$ac_objext'
24198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24199 (eval $ac_try) 2>&5
24200 ac_status=$?
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); }; }; then
24203 gdb_cv_have_ptrace_getfpxregs=yes
24204 else
24205 echo "$as_me: failed program was:" >&5
24206 sed 's/^/| /' conftest.$ac_ext >&5
24207
24208 gdb_cv_have_ptrace_getfpxregs=no
24209 fi
24210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24211 fi
24212
24213 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
24214 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
24215 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
24216
24217 cat >>confdefs.h <<\_ACEOF
24218 #define HAVE_PTRACE_GETFPXREGS 1
24219 _ACEOF
24220
24221 fi
24222
24223 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
24224 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
24225 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
24226 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
24227 echo $ECHO_N "(cached) $ECHO_C" >&6
24228 else
24229 cat >conftest.$ac_ext <<_ACEOF
24230 /* confdefs.h. */
24231 _ACEOF
24232 cat confdefs.h >>conftest.$ac_ext
24233 cat >>conftest.$ac_ext <<_ACEOF
24234 /* end confdefs.h. */
24235 #include <sys/types.h>
24236 #include <sys/ptrace.h>
24237 int
24238 main ()
24239 {
24240 PT_GETDBREGS;
24241 ;
24242 return 0;
24243 }
24244 _ACEOF
24245 rm -f conftest.$ac_objext
24246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24247 (eval $ac_compile) 2>conftest.er1
24248 ac_status=$?
24249 grep -v '^ *+' conftest.er1 >conftest.err
24250 rm -f conftest.er1
24251 cat conftest.err >&5
24252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); } &&
24254 { ac_try='test -z "$ac_c_werror_flag"
24255 || test ! -s conftest.err'
24256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257 (eval $ac_try) 2>&5
24258 ac_status=$?
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; } &&
24261 { ac_try='test -s conftest.$ac_objext'
24262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263 (eval $ac_try) 2>&5
24264 ac_status=$?
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); }; }; then
24267 gdb_cv_have_pt_getdbregs=yes
24268 else
24269 echo "$as_me: failed program was:" >&5
24270 sed 's/^/| /' conftest.$ac_ext >&5
24271
24272 gdb_cv_have_pt_getdbregs=no
24273 fi
24274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24275 fi
24276
24277 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
24278 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
24279 if test $gdb_cv_have_pt_getdbregs = yes; then
24280
24281 cat >>confdefs.h <<\_ACEOF
24282 #define HAVE_PT_GETDBREGS 1
24283 _ACEOF
24284
24285 fi
24286
24287 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
24288 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
24289 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
24290 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
24291 echo $ECHO_N "(cached) $ECHO_C" >&6
24292 else
24293 cat >conftest.$ac_ext <<_ACEOF
24294 /* confdefs.h. */
24295 _ACEOF
24296 cat confdefs.h >>conftest.$ac_ext
24297 cat >>conftest.$ac_ext <<_ACEOF
24298 /* end confdefs.h. */
24299 #include <sys/types.h>
24300 #include <sys/ptrace.h>
24301 int
24302 main ()
24303 {
24304 PT_GETXMMREGS;
24305 ;
24306 return 0;
24307 }
24308 _ACEOF
24309 rm -f conftest.$ac_objext
24310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24311 (eval $ac_compile) 2>conftest.er1
24312 ac_status=$?
24313 grep -v '^ *+' conftest.er1 >conftest.err
24314 rm -f conftest.er1
24315 cat conftest.err >&5
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); } &&
24318 { ac_try='test -z "$ac_c_werror_flag"
24319 || test ! -s conftest.err'
24320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321 (eval $ac_try) 2>&5
24322 ac_status=$?
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); }; } &&
24325 { ac_try='test -s conftest.$ac_objext'
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327 (eval $ac_try) 2>&5
24328 ac_status=$?
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; }; then
24331 gdb_cv_have_pt_getxmmregs=yes
24332 else
24333 echo "$as_me: failed program was:" >&5
24334 sed 's/^/| /' conftest.$ac_ext >&5
24335
24336 gdb_cv_have_pt_getxmmregs=no
24337 fi
24338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24339 fi
24340
24341 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
24342 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
24343 if test $gdb_cv_have_pt_getxmmregs = yes; then
24344
24345 cat >>confdefs.h <<\_ACEOF
24346 #define HAVE_PT_GETXMMREGS 1
24347 _ACEOF
24348
24349 fi
24350
24351 # Detect which type of /proc is in use, such as for Unixware or Solaris.
24352
24353 if test "${target}" = "${host}"; then
24354 case "${host}" in
24355 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
24356
24357 cat >>confdefs.h <<\_ACEOF
24358 #define NEW_PROC_API 1
24359 _ACEOF
24360
24361 ;;
24362 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
24363
24364 cat >>confdefs.h <<\_ACEOF
24365 #define NEW_PROC_API 1
24366 _ACEOF
24367
24368 ;;
24369 mips-sgi-irix5*)
24370 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
24371
24372 cat >>confdefs.h <<\_ACEOF
24373 #define _KMEMUSER 1
24374 _ACEOF
24375
24376 ;;
24377 esac
24378 fi
24379
24380 if test "$ac_cv_header_sys_procfs_h" = yes; then
24381 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
24382 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
24383 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
24384 echo $ECHO_N "(cached) $ECHO_C" >&6
24385 else
24386 cat >conftest.$ac_ext <<_ACEOF
24387 /* confdefs.h. */
24388 _ACEOF
24389 cat confdefs.h >>conftest.$ac_ext
24390 cat >>conftest.$ac_ext <<_ACEOF
24391 /* end confdefs.h. */
24392
24393 #define _SYSCALL32
24394 #include <sys/procfs.h>
24395 int
24396 main ()
24397 {
24398 pstatus_t avar
24399 ;
24400 return 0;
24401 }
24402 _ACEOF
24403 rm -f conftest.$ac_objext
24404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24405 (eval $ac_compile) 2>conftest.er1
24406 ac_status=$?
24407 grep -v '^ *+' conftest.er1 >conftest.err
24408 rm -f conftest.er1
24409 cat conftest.err >&5
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); } &&
24412 { ac_try='test -z "$ac_c_werror_flag"
24413 || test ! -s conftest.err'
24414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24415 (eval $ac_try) 2>&5
24416 ac_status=$?
24417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); }; } &&
24419 { ac_try='test -s conftest.$ac_objext'
24420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421 (eval $ac_try) 2>&5
24422 ac_status=$?
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); }; }; then
24425 bfd_cv_have_sys_procfs_type_pstatus_t=yes
24426 else
24427 echo "$as_me: failed program was:" >&5
24428 sed 's/^/| /' conftest.$ac_ext >&5
24429
24430 bfd_cv_have_sys_procfs_type_pstatus_t=no
24431
24432 fi
24433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24434 fi
24435
24436 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
24437
24438 cat >>confdefs.h <<\_ACEOF
24439 #define HAVE_PSTATUS_T 1
24440 _ACEOF
24441
24442 fi
24443 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
24444 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
24445
24446 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
24447 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
24448 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
24449 echo $ECHO_N "(cached) $ECHO_C" >&6
24450 else
24451 cat >conftest.$ac_ext <<_ACEOF
24452 /* confdefs.h. */
24453 _ACEOF
24454 cat confdefs.h >>conftest.$ac_ext
24455 cat >>conftest.$ac_ext <<_ACEOF
24456 /* end confdefs.h. */
24457
24458 #define _SYSCALL32
24459 #include <sys/procfs.h>
24460 int
24461 main ()
24462 {
24463 prrun_t avar
24464 ;
24465 return 0;
24466 }
24467 _ACEOF
24468 rm -f conftest.$ac_objext
24469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24470 (eval $ac_compile) 2>conftest.er1
24471 ac_status=$?
24472 grep -v '^ *+' conftest.er1 >conftest.err
24473 rm -f conftest.er1
24474 cat conftest.err >&5
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); } &&
24477 { ac_try='test -z "$ac_c_werror_flag"
24478 || test ! -s conftest.err'
24479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480 (eval $ac_try) 2>&5
24481 ac_status=$?
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); }; } &&
24484 { ac_try='test -s conftest.$ac_objext'
24485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24486 (eval $ac_try) 2>&5
24487 ac_status=$?
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); }; }; then
24490 bfd_cv_have_sys_procfs_type_prrun_t=yes
24491 else
24492 echo "$as_me: failed program was:" >&5
24493 sed 's/^/| /' conftest.$ac_ext >&5
24494
24495 bfd_cv_have_sys_procfs_type_prrun_t=no
24496
24497 fi
24498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24499 fi
24500
24501 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
24502
24503 cat >>confdefs.h <<\_ACEOF
24504 #define HAVE_PRRUN_T 1
24505 _ACEOF
24506
24507 fi
24508 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
24509 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
24510
24511 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
24512 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
24513 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
24514 echo $ECHO_N "(cached) $ECHO_C" >&6
24515 else
24516 cat >conftest.$ac_ext <<_ACEOF
24517 /* confdefs.h. */
24518 _ACEOF
24519 cat confdefs.h >>conftest.$ac_ext
24520 cat >>conftest.$ac_ext <<_ACEOF
24521 /* end confdefs.h. */
24522
24523 #define _SYSCALL32
24524 #include <sys/procfs.h>
24525 int
24526 main ()
24527 {
24528 gregset_t avar
24529 ;
24530 return 0;
24531 }
24532 _ACEOF
24533 rm -f conftest.$ac_objext
24534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24535 (eval $ac_compile) 2>conftest.er1
24536 ac_status=$?
24537 grep -v '^ *+' conftest.er1 >conftest.err
24538 rm -f conftest.er1
24539 cat conftest.err >&5
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); } &&
24542 { ac_try='test -z "$ac_c_werror_flag"
24543 || test ! -s conftest.err'
24544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24545 (eval $ac_try) 2>&5
24546 ac_status=$?
24547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); }; } &&
24549 { ac_try='test -s conftest.$ac_objext'
24550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24551 (eval $ac_try) 2>&5
24552 ac_status=$?
24553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554 (exit $ac_status); }; }; then
24555 bfd_cv_have_sys_procfs_type_gregset_t=yes
24556 else
24557 echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24559
24560 bfd_cv_have_sys_procfs_type_gregset_t=no
24561
24562 fi
24563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24564 fi
24565
24566 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
24567
24568 cat >>confdefs.h <<\_ACEOF
24569 #define HAVE_GREGSET_T 1
24570 _ACEOF
24571
24572 fi
24573 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
24574 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
24575
24576 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
24577 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
24578 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
24579 echo $ECHO_N "(cached) $ECHO_C" >&6
24580 else
24581 cat >conftest.$ac_ext <<_ACEOF
24582 /* confdefs.h. */
24583 _ACEOF
24584 cat confdefs.h >>conftest.$ac_ext
24585 cat >>conftest.$ac_ext <<_ACEOF
24586 /* end confdefs.h. */
24587
24588 #define _SYSCALL32
24589 #include <sys/procfs.h>
24590 int
24591 main ()
24592 {
24593 fpregset_t avar
24594 ;
24595 return 0;
24596 }
24597 _ACEOF
24598 rm -f conftest.$ac_objext
24599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24600 (eval $ac_compile) 2>conftest.er1
24601 ac_status=$?
24602 grep -v '^ *+' conftest.er1 >conftest.err
24603 rm -f conftest.er1
24604 cat conftest.err >&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } &&
24607 { ac_try='test -z "$ac_c_werror_flag"
24608 || test ! -s conftest.err'
24609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); }; } &&
24614 { ac_try='test -s conftest.$ac_objext'
24615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24616 (eval $ac_try) 2>&5
24617 ac_status=$?
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); }; }; then
24620 bfd_cv_have_sys_procfs_type_fpregset_t=yes
24621 else
24622 echo "$as_me: failed program was:" >&5
24623 sed 's/^/| /' conftest.$ac_ext >&5
24624
24625 bfd_cv_have_sys_procfs_type_fpregset_t=no
24626
24627 fi
24628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24629 fi
24630
24631 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
24632
24633 cat >>confdefs.h <<\_ACEOF
24634 #define HAVE_FPREGSET_T 1
24635 _ACEOF
24636
24637 fi
24638 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
24639 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
24640
24641 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
24642 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
24643 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
24645 else
24646 cat >conftest.$ac_ext <<_ACEOF
24647 /* confdefs.h. */
24648 _ACEOF
24649 cat confdefs.h >>conftest.$ac_ext
24650 cat >>conftest.$ac_ext <<_ACEOF
24651 /* end confdefs.h. */
24652
24653 #define _SYSCALL32
24654 #include <sys/procfs.h>
24655 int
24656 main ()
24657 {
24658 prgregset_t avar
24659 ;
24660 return 0;
24661 }
24662 _ACEOF
24663 rm -f conftest.$ac_objext
24664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24665 (eval $ac_compile) 2>conftest.er1
24666 ac_status=$?
24667 grep -v '^ *+' conftest.er1 >conftest.err
24668 rm -f conftest.er1
24669 cat conftest.err >&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } &&
24672 { ac_try='test -z "$ac_c_werror_flag"
24673 || test ! -s conftest.err'
24674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675 (eval $ac_try) 2>&5
24676 ac_status=$?
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); }; } &&
24679 { ac_try='test -s conftest.$ac_objext'
24680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24681 (eval $ac_try) 2>&5
24682 ac_status=$?
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); }; }; then
24685 bfd_cv_have_sys_procfs_type_prgregset_t=yes
24686 else
24687 echo "$as_me: failed program was:" >&5
24688 sed 's/^/| /' conftest.$ac_ext >&5
24689
24690 bfd_cv_have_sys_procfs_type_prgregset_t=no
24691
24692 fi
24693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24694 fi
24695
24696 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
24697
24698 cat >>confdefs.h <<\_ACEOF
24699 #define HAVE_PRGREGSET_T 1
24700 _ACEOF
24701
24702 fi
24703 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
24704 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
24705
24706 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
24707 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
24708 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
24709 echo $ECHO_N "(cached) $ECHO_C" >&6
24710 else
24711 cat >conftest.$ac_ext <<_ACEOF
24712 /* confdefs.h. */
24713 _ACEOF
24714 cat confdefs.h >>conftest.$ac_ext
24715 cat >>conftest.$ac_ext <<_ACEOF
24716 /* end confdefs.h. */
24717
24718 #define _SYSCALL32
24719 #include <sys/procfs.h>
24720 int
24721 main ()
24722 {
24723 prfpregset_t avar
24724 ;
24725 return 0;
24726 }
24727 _ACEOF
24728 rm -f conftest.$ac_objext
24729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24730 (eval $ac_compile) 2>conftest.er1
24731 ac_status=$?
24732 grep -v '^ *+' conftest.er1 >conftest.err
24733 rm -f conftest.er1
24734 cat conftest.err >&5
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); } &&
24737 { ac_try='test -z "$ac_c_werror_flag"
24738 || test ! -s conftest.err'
24739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24740 (eval $ac_try) 2>&5
24741 ac_status=$?
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; } &&
24744 { ac_try='test -s conftest.$ac_objext'
24745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24746 (eval $ac_try) 2>&5
24747 ac_status=$?
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); }; }; then
24750 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
24751 else
24752 echo "$as_me: failed program was:" >&5
24753 sed 's/^/| /' conftest.$ac_ext >&5
24754
24755 bfd_cv_have_sys_procfs_type_prfpregset_t=no
24756
24757 fi
24758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24759 fi
24760
24761 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
24762
24763 cat >>confdefs.h <<\_ACEOF
24764 #define HAVE_PRFPREGSET_T 1
24765 _ACEOF
24766
24767 fi
24768 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
24769 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
24770
24771 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
24772 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
24773 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
24774 echo $ECHO_N "(cached) $ECHO_C" >&6
24775 else
24776 cat >conftest.$ac_ext <<_ACEOF
24777 /* confdefs.h. */
24778 _ACEOF
24779 cat confdefs.h >>conftest.$ac_ext
24780 cat >>conftest.$ac_ext <<_ACEOF
24781 /* end confdefs.h. */
24782
24783 #define _SYSCALL32
24784 #include <sys/procfs.h>
24785 int
24786 main ()
24787 {
24788 prgregset32_t avar
24789 ;
24790 return 0;
24791 }
24792 _ACEOF
24793 rm -f conftest.$ac_objext
24794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24795 (eval $ac_compile) 2>conftest.er1
24796 ac_status=$?
24797 grep -v '^ *+' conftest.er1 >conftest.err
24798 rm -f conftest.er1
24799 cat conftest.err >&5
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); } &&
24802 { ac_try='test -z "$ac_c_werror_flag"
24803 || test ! -s conftest.err'
24804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805 (eval $ac_try) 2>&5
24806 ac_status=$?
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); }; } &&
24809 { ac_try='test -s conftest.$ac_objext'
24810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24811 (eval $ac_try) 2>&5
24812 ac_status=$?
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); }; }; then
24815 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
24816 else
24817 echo "$as_me: failed program was:" >&5
24818 sed 's/^/| /' conftest.$ac_ext >&5
24819
24820 bfd_cv_have_sys_procfs_type_prgregset32_t=no
24821
24822 fi
24823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24824 fi
24825
24826 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
24827
24828 cat >>confdefs.h <<\_ACEOF
24829 #define HAVE_PRGREGSET32_T 1
24830 _ACEOF
24831
24832 fi
24833 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
24834 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
24835
24836 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
24837 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
24838 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
24839 echo $ECHO_N "(cached) $ECHO_C" >&6
24840 else
24841 cat >conftest.$ac_ext <<_ACEOF
24842 /* confdefs.h. */
24843 _ACEOF
24844 cat confdefs.h >>conftest.$ac_ext
24845 cat >>conftest.$ac_ext <<_ACEOF
24846 /* end confdefs.h. */
24847
24848 #define _SYSCALL32
24849 #include <sys/procfs.h>
24850 int
24851 main ()
24852 {
24853 prfpregset32_t avar
24854 ;
24855 return 0;
24856 }
24857 _ACEOF
24858 rm -f conftest.$ac_objext
24859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24860 (eval $ac_compile) 2>conftest.er1
24861 ac_status=$?
24862 grep -v '^ *+' conftest.er1 >conftest.err
24863 rm -f conftest.er1
24864 cat conftest.err >&5
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); } &&
24867 { ac_try='test -z "$ac_c_werror_flag"
24868 || test ! -s conftest.err'
24869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24870 (eval $ac_try) 2>&5
24871 ac_status=$?
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); }; } &&
24874 { ac_try='test -s conftest.$ac_objext'
24875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24876 (eval $ac_try) 2>&5
24877 ac_status=$?
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); }; }; then
24880 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
24881 else
24882 echo "$as_me: failed program was:" >&5
24883 sed 's/^/| /' conftest.$ac_ext >&5
24884
24885 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
24886
24887 fi
24888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24889 fi
24890
24891 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
24892
24893 cat >>confdefs.h <<\_ACEOF
24894 #define HAVE_PRFPREGSET32_T 1
24895 _ACEOF
24896
24897 fi
24898 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
24899 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
24900
24901 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
24902 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
24903 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
24904 echo $ECHO_N "(cached) $ECHO_C" >&6
24905 else
24906 cat >conftest.$ac_ext <<_ACEOF
24907 /* confdefs.h. */
24908 _ACEOF
24909 cat confdefs.h >>conftest.$ac_ext
24910 cat >>conftest.$ac_ext <<_ACEOF
24911 /* end confdefs.h. */
24912
24913 #define _SYSCALL32
24914 #include <sys/procfs.h>
24915 int
24916 main ()
24917 {
24918 lwpid_t avar
24919 ;
24920 return 0;
24921 }
24922 _ACEOF
24923 rm -f conftest.$ac_objext
24924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24925 (eval $ac_compile) 2>conftest.er1
24926 ac_status=$?
24927 grep -v '^ *+' conftest.er1 >conftest.err
24928 rm -f conftest.er1
24929 cat conftest.err >&5
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); } &&
24932 { ac_try='test -z "$ac_c_werror_flag"
24933 || test ! -s conftest.err'
24934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935 (eval $ac_try) 2>&5
24936 ac_status=$?
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); }; } &&
24939 { ac_try='test -s conftest.$ac_objext'
24940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941 (eval $ac_try) 2>&5
24942 ac_status=$?
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
24945 bfd_cv_have_sys_procfs_type_lwpid_t=yes
24946 else
24947 echo "$as_me: failed program was:" >&5
24948 sed 's/^/| /' conftest.$ac_ext >&5
24949
24950 bfd_cv_have_sys_procfs_type_lwpid_t=no
24951
24952 fi
24953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24954 fi
24955
24956 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
24957
24958 cat >>confdefs.h <<\_ACEOF
24959 #define HAVE_LWPID_T 1
24960 _ACEOF
24961
24962 fi
24963 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
24964 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
24965
24966 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
24967 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
24968 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
24969 echo $ECHO_N "(cached) $ECHO_C" >&6
24970 else
24971 cat >conftest.$ac_ext <<_ACEOF
24972 /* confdefs.h. */
24973 _ACEOF
24974 cat confdefs.h >>conftest.$ac_ext
24975 cat >>conftest.$ac_ext <<_ACEOF
24976 /* end confdefs.h. */
24977
24978 #define _SYSCALL32
24979 #include <sys/procfs.h>
24980 int
24981 main ()
24982 {
24983 psaddr_t avar
24984 ;
24985 return 0;
24986 }
24987 _ACEOF
24988 rm -f conftest.$ac_objext
24989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24990 (eval $ac_compile) 2>conftest.er1
24991 ac_status=$?
24992 grep -v '^ *+' conftest.er1 >conftest.err
24993 rm -f conftest.er1
24994 cat conftest.err >&5
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); } &&
24997 { ac_try='test -z "$ac_c_werror_flag"
24998 || test ! -s conftest.err'
24999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25000 (eval $ac_try) 2>&5
25001 ac_status=$?
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); }; } &&
25004 { ac_try='test -s conftest.$ac_objext'
25005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25006 (eval $ac_try) 2>&5
25007 ac_status=$?
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); }; }; then
25010 bfd_cv_have_sys_procfs_type_psaddr_t=yes
25011 else
25012 echo "$as_me: failed program was:" >&5
25013 sed 's/^/| /' conftest.$ac_ext >&5
25014
25015 bfd_cv_have_sys_procfs_type_psaddr_t=no
25016
25017 fi
25018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25019 fi
25020
25021 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
25022
25023 cat >>confdefs.h <<\_ACEOF
25024 #define HAVE_PSADDR_T 1
25025 _ACEOF
25026
25027 fi
25028 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
25029 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
25030
25031 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
25032 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
25033 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
25034 echo $ECHO_N "(cached) $ECHO_C" >&6
25035 else
25036 cat >conftest.$ac_ext <<_ACEOF
25037 /* confdefs.h. */
25038 _ACEOF
25039 cat confdefs.h >>conftest.$ac_ext
25040 cat >>conftest.$ac_ext <<_ACEOF
25041 /* end confdefs.h. */
25042
25043 #define _SYSCALL32
25044 #include <sys/procfs.h>
25045 int
25046 main ()
25047 {
25048 prsysent_t avar
25049 ;
25050 return 0;
25051 }
25052 _ACEOF
25053 rm -f conftest.$ac_objext
25054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25055 (eval $ac_compile) 2>conftest.er1
25056 ac_status=$?
25057 grep -v '^ *+' conftest.er1 >conftest.err
25058 rm -f conftest.er1
25059 cat conftest.err >&5
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); } &&
25062 { ac_try='test -z "$ac_c_werror_flag"
25063 || test ! -s conftest.err'
25064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25065 (eval $ac_try) 2>&5
25066 ac_status=$?
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); }; } &&
25069 { ac_try='test -s conftest.$ac_objext'
25070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071 (eval $ac_try) 2>&5
25072 ac_status=$?
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); }; }; then
25075 bfd_cv_have_sys_procfs_type_prsysent_t=yes
25076 else
25077 echo "$as_me: failed program was:" >&5
25078 sed 's/^/| /' conftest.$ac_ext >&5
25079
25080 bfd_cv_have_sys_procfs_type_prsysent_t=no
25081
25082 fi
25083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25084 fi
25085
25086 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
25087
25088 cat >>confdefs.h <<\_ACEOF
25089 #define HAVE_PRSYSENT_T 1
25090 _ACEOF
25091
25092 fi
25093 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
25094 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
25095
25096 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
25097 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
25098 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
25099 echo $ECHO_N "(cached) $ECHO_C" >&6
25100 else
25101 cat >conftest.$ac_ext <<_ACEOF
25102 /* confdefs.h. */
25103 _ACEOF
25104 cat confdefs.h >>conftest.$ac_ext
25105 cat >>conftest.$ac_ext <<_ACEOF
25106 /* end confdefs.h. */
25107
25108 #define _SYSCALL32
25109 #include <sys/procfs.h>
25110 int
25111 main ()
25112 {
25113 pr_sigset_t avar
25114 ;
25115 return 0;
25116 }
25117 _ACEOF
25118 rm -f conftest.$ac_objext
25119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25120 (eval $ac_compile) 2>conftest.er1
25121 ac_status=$?
25122 grep -v '^ *+' conftest.er1 >conftest.err
25123 rm -f conftest.er1
25124 cat conftest.err >&5
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); } &&
25127 { ac_try='test -z "$ac_c_werror_flag"
25128 || test ! -s conftest.err'
25129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130 (eval $ac_try) 2>&5
25131 ac_status=$?
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; } &&
25134 { ac_try='test -s conftest.$ac_objext'
25135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136 (eval $ac_try) 2>&5
25137 ac_status=$?
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); }; }; then
25140 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
25141 else
25142 echo "$as_me: failed program was:" >&5
25143 sed 's/^/| /' conftest.$ac_ext >&5
25144
25145 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
25146
25147 fi
25148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25149 fi
25150
25151 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
25152
25153 cat >>confdefs.h <<\_ACEOF
25154 #define HAVE_PR_SIGSET_T 1
25155 _ACEOF
25156
25157 fi
25158 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
25159 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
25160
25161 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
25162 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
25163 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
25164 echo $ECHO_N "(cached) $ECHO_C" >&6
25165 else
25166 cat >conftest.$ac_ext <<_ACEOF
25167 /* confdefs.h. */
25168 _ACEOF
25169 cat confdefs.h >>conftest.$ac_ext
25170 cat >>conftest.$ac_ext <<_ACEOF
25171 /* end confdefs.h. */
25172
25173 #define _SYSCALL32
25174 #include <sys/procfs.h>
25175 int
25176 main ()
25177 {
25178 pr_sigaction64_t avar
25179 ;
25180 return 0;
25181 }
25182 _ACEOF
25183 rm -f conftest.$ac_objext
25184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25185 (eval $ac_compile) 2>conftest.er1
25186 ac_status=$?
25187 grep -v '^ *+' conftest.er1 >conftest.err
25188 rm -f conftest.er1
25189 cat conftest.err >&5
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } &&
25192 { ac_try='test -z "$ac_c_werror_flag"
25193 || test ! -s conftest.err'
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25196 ac_status=$?
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; } &&
25199 { ac_try='test -s conftest.$ac_objext'
25200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25202 ac_status=$?
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; }; then
25205 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
25206 else
25207 echo "$as_me: failed program was:" >&5
25208 sed 's/^/| /' conftest.$ac_ext >&5
25209
25210 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
25211
25212 fi
25213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25214 fi
25215
25216 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
25217
25218 cat >>confdefs.h <<\_ACEOF
25219 #define HAVE_PR_SIGACTION64_T 1
25220 _ACEOF
25221
25222 fi
25223 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
25224 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
25225
25226 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
25227 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
25228 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
25229 echo $ECHO_N "(cached) $ECHO_C" >&6
25230 else
25231 cat >conftest.$ac_ext <<_ACEOF
25232 /* confdefs.h. */
25233 _ACEOF
25234 cat confdefs.h >>conftest.$ac_ext
25235 cat >>conftest.$ac_ext <<_ACEOF
25236 /* end confdefs.h. */
25237
25238 #define _SYSCALL32
25239 #include <sys/procfs.h>
25240 int
25241 main ()
25242 {
25243 pr_siginfo64_t avar
25244 ;
25245 return 0;
25246 }
25247 _ACEOF
25248 rm -f conftest.$ac_objext
25249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25250 (eval $ac_compile) 2>conftest.er1
25251 ac_status=$?
25252 grep -v '^ *+' conftest.er1 >conftest.err
25253 rm -f conftest.er1
25254 cat conftest.err >&5
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); } &&
25257 { ac_try='test -z "$ac_c_werror_flag"
25258 || test ! -s conftest.err'
25259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25260 (eval $ac_try) 2>&5
25261 ac_status=$?
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); }; } &&
25264 { ac_try='test -s conftest.$ac_objext'
25265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25266 (eval $ac_try) 2>&5
25267 ac_status=$?
25268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); }; }; then
25270 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
25271 else
25272 echo "$as_me: failed program was:" >&5
25273 sed 's/^/| /' conftest.$ac_ext >&5
25274
25275 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
25276
25277 fi
25278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25279 fi
25280
25281 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
25282
25283 cat >>confdefs.h <<\_ACEOF
25284 #define HAVE_PR_SIGINFO64_T 1
25285 _ACEOF
25286
25287 fi
25288 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
25289 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
25290
25291
25292
25293
25294
25295 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
25296 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
25297 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
25298 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
25299 echo $ECHO_N "(cached) $ECHO_C" >&6
25300 else
25301 if test "$cross_compiling" = yes; then
25302 gdb_cv_prfpregset_t_broken=yes
25303 else
25304 cat >conftest.$ac_ext <<_ACEOF
25305 /* confdefs.h. */
25306 _ACEOF
25307 cat confdefs.h >>conftest.$ac_ext
25308 cat >>conftest.$ac_ext <<_ACEOF
25309 /* end confdefs.h. */
25310 #include <sys/procfs.h>
25311 int main ()
25312 {
25313 if (sizeof (prfpregset_t) == sizeof (void *))
25314 return 1;
25315 return 0;
25316 }
25317 _ACEOF
25318 rm -f conftest$ac_exeext
25319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25320 (eval $ac_link) 2>&5
25321 ac_status=$?
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25325 (eval $ac_try) 2>&5
25326 ac_status=$?
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); }; }; then
25329 gdb_cv_prfpregset_t_broken=no
25330 else
25331 echo "$as_me: program exited with status $ac_status" >&5
25332 echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25334
25335 ( exit $ac_status )
25336 gdb_cv_prfpregset_t_broken=yes
25337 fi
25338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25339 fi
25340 fi
25341
25342 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
25343 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
25344 if test $gdb_cv_prfpregset_t_broken = yes; then
25345
25346 cat >>confdefs.h <<\_ACEOF
25347 #define PRFPREGSET_T_BROKEN 1
25348 _ACEOF
25349
25350 fi
25351 fi
25352
25353
25354 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
25355 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
25356 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
25357 echo $ECHO_N "(cached) $ECHO_C" >&6
25358 else
25359 cat >conftest.$ac_ext <<_ACEOF
25360 /* confdefs.h. */
25361 _ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h. */
25365 #include <unistd.h>
25366 #include <sys/types.h>
25367 #include <sys/procfs.h>
25368
25369 int
25370 main ()
25371 {
25372
25373 int dummy;;
25374 dummy = ioctl(0, PIOCSET, &dummy);
25375
25376 ;
25377 return 0;
25378 }
25379 _ACEOF
25380 rm -f conftest.$ac_objext
25381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25382 (eval $ac_compile) 2>conftest.er1
25383 ac_status=$?
25384 grep -v '^ *+' conftest.er1 >conftest.err
25385 rm -f conftest.er1
25386 cat conftest.err >&5
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); } &&
25389 { ac_try='test -z "$ac_c_werror_flag"
25390 || test ! -s conftest.err'
25391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25392 (eval $ac_try) 2>&5
25393 ac_status=$?
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); }; } &&
25396 { ac_try='test -s conftest.$ac_objext'
25397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25398 (eval $ac_try) 2>&5
25399 ac_status=$?
25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); }; }; then
25402 gdb_cv_have_procfs_piocset=yes
25403 else
25404 echo "$as_me: failed program was:" >&5
25405 sed 's/^/| /' conftest.$ac_ext >&5
25406
25407 gdb_cv_have_procfs_piocset=no
25408 fi
25409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25410 fi
25411
25412 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
25413 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
25414 if test $gdb_cv_have_procfs_piocset = yes; then
25415
25416 cat >>confdefs.h <<\_ACEOF
25417 #define HAVE_PROCFS_PIOCSET 1
25418 _ACEOF
25419
25420 fi
25421 fi
25422
25423 if test ${host} = ${target} ; then
25424
25425 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
25426 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
25427 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
25428 echo $ECHO_N "(cached) $ECHO_C" >&6
25429 else
25430 cat >conftest.$ac_ext <<_ACEOF
25431 /* confdefs.h. */
25432 _ACEOF
25433 cat confdefs.h >>conftest.$ac_ext
25434 cat >>conftest.$ac_ext <<_ACEOF
25435 /* end confdefs.h. */
25436 #include <link.h>
25437 int
25438 main ()
25439 {
25440 struct link_map lm; (void) lm.l_addr;
25441 ;
25442 return 0;
25443 }
25444 _ACEOF
25445 rm -f conftest.$ac_objext
25446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25447 (eval $ac_compile) 2>conftest.er1
25448 ac_status=$?
25449 grep -v '^ *+' conftest.er1 >conftest.err
25450 rm -f conftest.er1
25451 cat conftest.err >&5
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); } &&
25454 { ac_try='test -z "$ac_c_werror_flag"
25455 || test ! -s conftest.err'
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25458 ac_status=$?
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; } &&
25461 { ac_try='test -s conftest.$ac_objext'
25462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463 (eval $ac_try) 2>&5
25464 ac_status=$?
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; }; then
25467 gdb_cv_have_struct_link_map_with_l_members=yes
25468 else
25469 echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.$ac_ext >&5
25471
25472 gdb_cv_have_struct_link_map_with_l_members=no
25473 fi
25474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25475 fi
25476
25477 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
25478 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
25479 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
25480
25481 cat >>confdefs.h <<\_ACEOF
25482 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
25483 _ACEOF
25484
25485 fi
25486
25487
25488 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
25489 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
25490 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
25491 echo $ECHO_N "(cached) $ECHO_C" >&6
25492 else
25493 cat >conftest.$ac_ext <<_ACEOF
25494 /* confdefs.h. */
25495 _ACEOF
25496 cat confdefs.h >>conftest.$ac_ext
25497 cat >>conftest.$ac_ext <<_ACEOF
25498 /* end confdefs.h. */
25499 #include <sys/types.h>
25500 #include <link.h>
25501 int
25502 main ()
25503 {
25504 struct link_map lm; (void) lm.lm_addr;
25505 ;
25506 return 0;
25507 }
25508 _ACEOF
25509 rm -f conftest.$ac_objext
25510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25511 (eval $ac_compile) 2>conftest.er1
25512 ac_status=$?
25513 grep -v '^ *+' conftest.er1 >conftest.err
25514 rm -f conftest.er1
25515 cat conftest.err >&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } &&
25518 { ac_try='test -z "$ac_c_werror_flag"
25519 || test ! -s conftest.err'
25520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25521 (eval $ac_try) 2>&5
25522 ac_status=$?
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); }; } &&
25525 { ac_try='test -s conftest.$ac_objext'
25526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527 (eval $ac_try) 2>&5
25528 ac_status=$?
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }; }; then
25531 gdb_cv_have_struct_link_map_with_lm_members=yes
25532 else
25533 echo "$as_me: failed program was:" >&5
25534 sed 's/^/| /' conftest.$ac_ext >&5
25535
25536 gdb_cv_have_struct_link_map_with_lm_members=no
25537 fi
25538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25539 fi
25540
25541 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
25542 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
25543 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
25544
25545 cat >>confdefs.h <<\_ACEOF
25546 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
25547 _ACEOF
25548
25549 fi
25550
25551
25552 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
25553 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
25554 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
25555 echo $ECHO_N "(cached) $ECHO_C" >&6
25556 else
25557 cat >conftest.$ac_ext <<_ACEOF
25558 /* confdefs.h. */
25559 _ACEOF
25560 cat confdefs.h >>conftest.$ac_ext
25561 cat >>conftest.$ac_ext <<_ACEOF
25562 /* end confdefs.h. */
25563 #include <sys/types.h>
25564 #ifdef HAVE_NLIST_H
25565 #include <nlist.h>
25566 #endif
25567 #include <link.h>
25568 int
25569 main ()
25570 {
25571 struct so_map lm; (void) lm.som_addr;
25572 ;
25573 return 0;
25574 }
25575 _ACEOF
25576 rm -f conftest.$ac_objext
25577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25578 (eval $ac_compile) 2>conftest.er1
25579 ac_status=$?
25580 grep -v '^ *+' conftest.er1 >conftest.err
25581 rm -f conftest.er1
25582 cat conftest.err >&5
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); } &&
25585 { ac_try='test -z "$ac_c_werror_flag"
25586 || test ! -s conftest.err'
25587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588 (eval $ac_try) 2>&5
25589 ac_status=$?
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); }; } &&
25592 { ac_try='test -s conftest.$ac_objext'
25593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25594 (eval $ac_try) 2>&5
25595 ac_status=$?
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); }; }; then
25598 gdb_cv_have_struct_so_map_with_som_members=yes
25599 else
25600 echo "$as_me: failed program was:" >&5
25601 sed 's/^/| /' conftest.$ac_ext >&5
25602
25603 gdb_cv_have_struct_so_map_with_som_members=no
25604 fi
25605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25606 fi
25607
25608 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
25609 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
25610 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
25611
25612 cat >>confdefs.h <<\_ACEOF
25613 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
25614 _ACEOF
25615
25616 fi
25617
25618
25619 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
25620 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
25621 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
25622 echo $ECHO_N "(cached) $ECHO_C" >&6
25623 else
25624 cat >conftest.$ac_ext <<_ACEOF
25625 /* confdefs.h. */
25626 _ACEOF
25627 cat confdefs.h >>conftest.$ac_ext
25628 cat >>conftest.$ac_ext <<_ACEOF
25629 /* end confdefs.h. */
25630 #define _SYSCALL32
25631 #include <sys/link.h>
25632 int
25633 main ()
25634 {
25635 struct link_map32 l;
25636 ;
25637 return 0;
25638 }
25639 _ACEOF
25640 rm -f conftest.$ac_objext
25641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25642 (eval $ac_compile) 2>conftest.er1
25643 ac_status=$?
25644 grep -v '^ *+' conftest.er1 >conftest.err
25645 rm -f conftest.er1
25646 cat conftest.err >&5
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); } &&
25649 { ac_try='test -z "$ac_c_werror_flag"
25650 || test ! -s conftest.err'
25651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25652 (eval $ac_try) 2>&5
25653 ac_status=$?
25654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655 (exit $ac_status); }; } &&
25656 { ac_try='test -s conftest.$ac_objext'
25657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25658 (eval $ac_try) 2>&5
25659 ac_status=$?
25660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661 (exit $ac_status); }; }; then
25662 gdb_cv_have_struct_link_map32=yes
25663 else
25664 echo "$as_me: failed program was:" >&5
25665 sed 's/^/| /' conftest.$ac_ext >&5
25666
25667 gdb_cv_have_struct_link_map32=no
25668 fi
25669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25670 fi
25671
25672 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
25673 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
25674 if test $gdb_cv_have_struct_link_map32 = yes; then
25675
25676 cat >>confdefs.h <<\_ACEOF
25677 #define HAVE_STRUCT_LINK_MAP32 1
25678 _ACEOF
25679
25680
25681 cat >>confdefs.h <<\_ACEOF
25682 #define _SYSCALL32 1
25683 _ACEOF
25684
25685 fi
25686 fi
25687
25688 # Check if the compiler supports the `long long' type.
25689
25690 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
25691 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
25692 if test "${gdb_cv_c_long_long+set}" = set; then
25693 echo $ECHO_N "(cached) $ECHO_C" >&6
25694 else
25695 cat >conftest.$ac_ext <<_ACEOF
25696 /* confdefs.h. */
25697 _ACEOF
25698 cat confdefs.h >>conftest.$ac_ext
25699 cat >>conftest.$ac_ext <<_ACEOF
25700 /* end confdefs.h. */
25701 extern long long foo;
25702 int
25703 main ()
25704 {
25705 switch (foo & 2) { case 0: return 1; }
25706 ;
25707 return 0;
25708 }
25709 _ACEOF
25710 rm -f conftest.$ac_objext
25711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25712 (eval $ac_compile) 2>conftest.er1
25713 ac_status=$?
25714 grep -v '^ *+' conftest.er1 >conftest.err
25715 rm -f conftest.er1
25716 cat conftest.err >&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } &&
25719 { ac_try='test -z "$ac_c_werror_flag"
25720 || test ! -s conftest.err'
25721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25722 (eval $ac_try) 2>&5
25723 ac_status=$?
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); }; } &&
25726 { ac_try='test -s conftest.$ac_objext'
25727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25728 (eval $ac_try) 2>&5
25729 ac_status=$?
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); }; }; then
25732 gdb_cv_c_long_long=yes
25733 else
25734 echo "$as_me: failed program was:" >&5
25735 sed 's/^/| /' conftest.$ac_ext >&5
25736
25737 gdb_cv_c_long_long=no
25738 fi
25739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25740 fi
25741 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
25742 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
25743 if test $gdb_cv_c_long_long = yes; then
25744
25745 cat >>confdefs.h <<\_ACEOF
25746 #define CC_HAS_LONG_LONG 1
25747 _ACEOF
25748
25749 fi
25750
25751 # Check if the compiler and runtime support printing long longs.
25752
25753 echo "$as_me:$LINENO: checking for long long support in printf" >&5
25754 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
25755 if test "${gdb_cv_printf_has_long_long+set}" = set; then
25756 echo $ECHO_N "(cached) $ECHO_C" >&6
25757 else
25758 if test "$cross_compiling" = yes; then
25759 gdb_cv_printf_has_long_long=no
25760 else
25761 cat >conftest.$ac_ext <<_ACEOF
25762 /* confdefs.h. */
25763 _ACEOF
25764 cat confdefs.h >>conftest.$ac_ext
25765 cat >>conftest.$ac_ext <<_ACEOF
25766 /* end confdefs.h. */
25767 $ac_includes_default
25768 int
25769 main ()
25770 {
25771 char buf[32];
25772 long long l = 0;
25773 l = (l << 16) + 0x0123;
25774 l = (l << 16) + 0x4567;
25775 l = (l << 16) + 0x89ab;
25776 l = (l << 16) + 0xcdef;
25777 sprintf (buf, "0x%016llx", l);
25778 return (strcmp ("0x0123456789abcdef", buf));
25779 ;
25780 return 0;
25781 }
25782 _ACEOF
25783 rm -f conftest$ac_exeext
25784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25785 (eval $ac_link) 2>&5
25786 ac_status=$?
25787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25790 (eval $ac_try) 2>&5
25791 ac_status=$?
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); }; }; then
25794 gdb_cv_printf_has_long_long=yes
25795 else
25796 echo "$as_me: program exited with status $ac_status" >&5
25797 echo "$as_me: failed program was:" >&5
25798 sed 's/^/| /' conftest.$ac_ext >&5
25799
25800 ( exit $ac_status )
25801 gdb_cv_printf_has_long_long=no
25802 fi
25803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25804 fi
25805 fi
25806 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
25807 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
25808 if test $gdb_cv_printf_has_long_long = yes; then
25809
25810 cat >>confdefs.h <<\_ACEOF
25811 #define PRINTF_HAS_LONG_LONG 1
25812 _ACEOF
25813
25814 fi
25815
25816 # Check if the compiler and runtime support printing decfloats.
25817
25818 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
25819 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
25820 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
25821 echo $ECHO_N "(cached) $ECHO_C" >&6
25822 else
25823 if test "$cross_compiling" = yes; then
25824 gdb_cv_printf_has_decfloat=no
25825 else
25826 cat >conftest.$ac_ext <<_ACEOF
25827 /* confdefs.h. */
25828 _ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h. */
25832 $ac_includes_default
25833 int
25834 main ()
25835 {
25836 char buf[64];
25837 _Decimal32 d32 = 1.2345df;
25838 _Decimal64 d64 = 1.2345dd;
25839 _Decimal128 d128 = 1.2345dl;
25840 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
25841 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
25842 ;
25843 return 0;
25844 }
25845 _ACEOF
25846 rm -f conftest$ac_exeext
25847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25848 (eval $ac_link) 2>&5
25849 ac_status=$?
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853 (eval $ac_try) 2>&5
25854 ac_status=$?
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); }; }; then
25857 gdb_cv_printf_has_decfloat=yes
25858 else
25859 echo "$as_me: program exited with status $ac_status" >&5
25860 echo "$as_me: failed program was:" >&5
25861 sed 's/^/| /' conftest.$ac_ext >&5
25862
25863 ( exit $ac_status )
25864 gdb_cv_printf_has_decfloat=no
25865 fi
25866 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25867 fi
25868 fi
25869 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
25870 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
25871 if test $gdb_cv_printf_has_decfloat = yes; then
25872
25873 cat >>confdefs.h <<\_ACEOF
25874 #define PRINTF_HAS_DECFLOAT 1
25875 _ACEOF
25876
25877 fi
25878
25879 # Check if the compiler supports the `long double' type. We can't use
25880 # AC_C_LONG_DOUBLE because that one does additional checks on the
25881 # constants defined in <float.h> that fail on some systems,
25882 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
25883
25884 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
25885 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
25886 if test "${gdb_cv_c_long_double+set}" = set; then
25887 echo $ECHO_N "(cached) $ECHO_C" >&6
25888 else
25889 cat >conftest.$ac_ext <<_ACEOF
25890 /* confdefs.h. */
25891 _ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h. */
25895 long double foo;
25896 _ACEOF
25897 rm -f conftest.$ac_objext
25898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25899 (eval $ac_compile) 2>conftest.er1
25900 ac_status=$?
25901 grep -v '^ *+' conftest.er1 >conftest.err
25902 rm -f conftest.er1
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } &&
25906 { ac_try='test -z "$ac_c_werror_flag"
25907 || test ! -s conftest.err'
25908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25909 (eval $ac_try) 2>&5
25910 ac_status=$?
25911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); }; } &&
25913 { ac_try='test -s conftest.$ac_objext'
25914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25915 (eval $ac_try) 2>&5
25916 ac_status=$?
25917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918 (exit $ac_status); }; }; then
25919 gdb_cv_c_long_double=yes
25920 else
25921 echo "$as_me: failed program was:" >&5
25922 sed 's/^/| /' conftest.$ac_ext >&5
25923
25924 gdb_cv_c_long_double=no
25925 fi
25926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25927 fi
25928 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
25929 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
25930 if test $gdb_cv_c_long_double = yes; then
25931
25932 cat >>confdefs.h <<\_ACEOF
25933 #define HAVE_LONG_DOUBLE 1
25934 _ACEOF
25935
25936 fi
25937
25938 # Check if the compiler and runtime support printing long doubles.
25939
25940 echo "$as_me:$LINENO: checking for long double support in printf" >&5
25941 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
25942 if test "${gdb_cv_printf_has_long_double+set}" = set; then
25943 echo $ECHO_N "(cached) $ECHO_C" >&6
25944 else
25945 if test "$cross_compiling" = yes; then
25946 gdb_cv_printf_has_long_double=no
25947 else
25948 cat >conftest.$ac_ext <<_ACEOF
25949 /* confdefs.h. */
25950 _ACEOF
25951 cat confdefs.h >>conftest.$ac_ext
25952 cat >>conftest.$ac_ext <<_ACEOF
25953 /* end confdefs.h. */
25954 $ac_includes_default
25955 int
25956 main ()
25957 {
25958 char buf[16];
25959 long double f = 3.141592653;
25960 sprintf (buf, "%Lg", f);
25961 return (strncmp ("3.14159", buf, 7));
25962 ;
25963 return 0;
25964 }
25965 _ACEOF
25966 rm -f conftest$ac_exeext
25967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25968 (eval $ac_link) 2>&5
25969 ac_status=$?
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973 (eval $ac_try) 2>&5
25974 ac_status=$?
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; }; then
25977 gdb_cv_printf_has_long_double=yes
25978 else
25979 echo "$as_me: program exited with status $ac_status" >&5
25980 echo "$as_me: failed program was:" >&5
25981 sed 's/^/| /' conftest.$ac_ext >&5
25982
25983 ( exit $ac_status )
25984 gdb_cv_printf_has_long_double=no
25985 fi
25986 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25987 fi
25988 fi
25989 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
25990 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
25991 if test $gdb_cv_printf_has_long_double = yes; then
25992
25993 cat >>confdefs.h <<\_ACEOF
25994 #define PRINTF_HAS_LONG_DOUBLE 1
25995 _ACEOF
25996
25997 fi
25998
25999 # Check if the compiler and runtime support scanning long doubles.
26000
26001 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
26002 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
26003 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
26004 echo $ECHO_N "(cached) $ECHO_C" >&6
26005 else
26006 if test "$cross_compiling" = yes; then
26007 gdb_cv_scanf_has_long_double=no
26008 else
26009 cat >conftest.$ac_ext <<_ACEOF
26010 /* confdefs.h. */
26011 _ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h. */
26015 #include <stdio.h>
26016 int
26017 main ()
26018 {
26019 char *buf = "3.141592653";
26020 long double f = 0;
26021 sscanf (buf, "%Lg", &f);
26022 return !(f > 3.14159 && f < 3.14160);
26023 ;
26024 return 0;
26025 }
26026 _ACEOF
26027 rm -f conftest$ac_exeext
26028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26029 (eval $ac_link) 2>&5
26030 ac_status=$?
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034 (eval $ac_try) 2>&5
26035 ac_status=$?
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); }; }; then
26038 gdb_cv_scanf_has_long_double=yes
26039 else
26040 echo "$as_me: program exited with status $ac_status" >&5
26041 echo "$as_me: failed program was:" >&5
26042 sed 's/^/| /' conftest.$ac_ext >&5
26043
26044 ( exit $ac_status )
26045 gdb_cv_scanf_has_long_double=no
26046 fi
26047 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26048 fi
26049 fi
26050 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
26051 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
26052 if test $gdb_cv_scanf_has_long_double = yes; then
26053
26054 cat >>confdefs.h <<\_ACEOF
26055 #define SCANF_HAS_LONG_DOUBLE 1
26056 _ACEOF
26057
26058 fi
26059
26060 case ${host_os} in
26061 aix*)
26062 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
26063 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
26064 if test "${gdb_cv_bigtoc+set}" = set; then
26065 echo $ECHO_N "(cached) $ECHO_C" >&6
26066 else
26067
26068 SAVE_LDFLAGS=$LDFLAGS
26069
26070 case $GCC in
26071 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
26072 *) gdb_cv_bigtoc=-bbigtoc ;;
26073 esac
26074
26075 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
26076 cat >conftest.$ac_ext <<_ACEOF
26077 /* confdefs.h. */
26078 _ACEOF
26079 cat confdefs.h >>conftest.$ac_ext
26080 cat >>conftest.$ac_ext <<_ACEOF
26081 /* end confdefs.h. */
26082
26083 int
26084 main ()
26085 {
26086 int i;
26087 ;
26088 return 0;
26089 }
26090 _ACEOF
26091 rm -f conftest.$ac_objext conftest$ac_exeext
26092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26093 (eval $ac_link) 2>conftest.er1
26094 ac_status=$?
26095 grep -v '^ *+' conftest.er1 >conftest.err
26096 rm -f conftest.er1
26097 cat conftest.err >&5
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } &&
26100 { ac_try='test -z "$ac_c_werror_flag"
26101 || test ! -s conftest.err'
26102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26103 (eval $ac_try) 2>&5
26104 ac_status=$?
26105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106 (exit $ac_status); }; } &&
26107 { ac_try='test -s conftest$ac_exeext'
26108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109 (eval $ac_try) 2>&5
26110 ac_status=$?
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); }; }; then
26113 :
26114 else
26115 echo "$as_me: failed program was:" >&5
26116 sed 's/^/| /' conftest.$ac_ext >&5
26117
26118 gdb_cv_bigtoc=
26119 fi
26120 rm -f conftest.err conftest.$ac_objext \
26121 conftest$ac_exeext conftest.$ac_ext
26122 LDFLAGS="${SAVE_LDFLAGS}"
26123
26124 fi
26125 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
26126 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
26127 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
26128 ;;
26129 esac
26130
26131
26132
26133 if test ${build} = ${host} -a ${host} = ${target} ; then
26134 case ${host_os} in
26135 hpux*)
26136 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
26137 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
26138 if test -f /usr/include/dce/cma_config.h ; then
26139 if test "$GCC" = "yes" ; then
26140 echo "$as_me:$LINENO: result: yes" >&5
26141 echo "${ECHO_T}yes" >&6
26142
26143 cat >>confdefs.h <<\_ACEOF
26144 #define HAVE_HPUX_THREAD_SUPPORT 1
26145 _ACEOF
26146
26147 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
26148 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
26149 else
26150 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
26151 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
26152 fi
26153 else
26154 echo "$as_me:$LINENO: result: no" >&5
26155 echo "${ECHO_T}no" >&6
26156 fi
26157 ;;
26158 solaris*)
26159 # See if thread_db library is around for Solaris thread debugging.
26160 # Note that we must explicitly test for version 1 of the library
26161 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
26162 # the same API.
26163 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
26164 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
26165 if test -f /usr/lib/libthread_db.so.1 ; then
26166 echo "$as_me:$LINENO: result: yes" >&5
26167 echo "${ECHO_T}yes" >&6
26168
26169 cat >>confdefs.h <<\_ACEOF
26170 #define HAVE_THREAD_DB_LIB 1
26171 _ACEOF
26172
26173 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
26174 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
26175
26176 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26177 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
26178 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26179 echo $ECHO_N "(cached) $ECHO_C" >&6
26180 else
26181 ac_check_lib_save_LIBS=$LIBS
26182 LIBS="-ldl $LIBS"
26183 cat >conftest.$ac_ext <<_ACEOF
26184 /* confdefs.h. */
26185 _ACEOF
26186 cat confdefs.h >>conftest.$ac_ext
26187 cat >>conftest.$ac_ext <<_ACEOF
26188 /* end confdefs.h. */
26189
26190 /* Override any gcc2 internal prototype to avoid an error. */
26191 #ifdef __cplusplus
26192 extern "C"
26193 #endif
26194 /* We use char because int might match the return type of a gcc2
26195 builtin and then its argument prototype would still apply. */
26196 char dlopen ();
26197 int
26198 main ()
26199 {
26200 dlopen ();
26201 ;
26202 return 0;
26203 }
26204 _ACEOF
26205 rm -f conftest.$ac_objext conftest$ac_exeext
26206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26207 (eval $ac_link) 2>conftest.er1
26208 ac_status=$?
26209 grep -v '^ *+' conftest.er1 >conftest.err
26210 rm -f conftest.er1
26211 cat conftest.err >&5
26212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); } &&
26214 { ac_try='test -z "$ac_c_werror_flag"
26215 || test ! -s conftest.err'
26216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26217 (eval $ac_try) 2>&5
26218 ac_status=$?
26219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220 (exit $ac_status); }; } &&
26221 { ac_try='test -s conftest$ac_exeext'
26222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26223 (eval $ac_try) 2>&5
26224 ac_status=$?
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); }; }; then
26227 ac_cv_lib_dl_dlopen=yes
26228 else
26229 echo "$as_me: failed program was:" >&5
26230 sed 's/^/| /' conftest.$ac_ext >&5
26231
26232 ac_cv_lib_dl_dlopen=no
26233 fi
26234 rm -f conftest.err conftest.$ac_objext \
26235 conftest$ac_exeext conftest.$ac_ext
26236 LIBS=$ac_check_lib_save_LIBS
26237 fi
26238 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
26239 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
26240 if test $ac_cv_lib_dl_dlopen = yes; then
26241 cat >>confdefs.h <<_ACEOF
26242 #define HAVE_LIBDL 1
26243 _ACEOF
26244
26245 LIBS="-ldl $LIBS"
26246
26247 fi
26248
26249 if test "$GCC" = "yes" ; then
26250 # The GNU linker requires the -export-dynamic option to make
26251 # all symbols visible in the dynamic symbol table.
26252 hold_ldflags=$LDFLAGS
26253 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
26254 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
26255 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
26256 cat >conftest.$ac_ext <<_ACEOF
26257 /* confdefs.h. */
26258 _ACEOF
26259 cat confdefs.h >>conftest.$ac_ext
26260 cat >>conftest.$ac_ext <<_ACEOF
26261 /* end confdefs.h. */
26262
26263 int
26264 main ()
26265 {
26266 int i;
26267 ;
26268 return 0;
26269 }
26270 _ACEOF
26271 rm -f conftest.$ac_objext conftest$ac_exeext
26272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26273 (eval $ac_link) 2>conftest.er1
26274 ac_status=$?
26275 grep -v '^ *+' conftest.er1 >conftest.err
26276 rm -f conftest.er1
26277 cat conftest.err >&5
26278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279 (exit $ac_status); } &&
26280 { ac_try='test -z "$ac_c_werror_flag"
26281 || test ! -s conftest.err'
26282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26283 (eval $ac_try) 2>&5
26284 ac_status=$?
26285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286 (exit $ac_status); }; } &&
26287 { ac_try='test -s conftest$ac_exeext'
26288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26289 (eval $ac_try) 2>&5
26290 ac_status=$?
26291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); }; }; then
26293 found=yes
26294 else
26295 echo "$as_me: failed program was:" >&5
26296 sed 's/^/| /' conftest.$ac_ext >&5
26297
26298 found=no
26299 fi
26300 rm -f conftest.err conftest.$ac_objext \
26301 conftest$ac_exeext conftest.$ac_ext
26302 LDFLAGS=$hold_ldflags
26303 echo "$as_me:$LINENO: result: $found" >&5
26304 echo "${ECHO_T}$found" >&6
26305 if test $found = yes; then
26306 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
26307 fi
26308 fi
26309 # Sun randomly tweaked the prototypes in <proc_service.h>
26310 # at one point.
26311 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
26312 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
26313 if test "${gdb_cv_proc_service_is_old+set}" = set; then
26314 echo $ECHO_N "(cached) $ECHO_C" >&6
26315 else
26316
26317 cat >conftest.$ac_ext <<_ACEOF
26318 /* confdefs.h. */
26319 _ACEOF
26320 cat confdefs.h >>conftest.$ac_ext
26321 cat >>conftest.$ac_ext <<_ACEOF
26322 /* end confdefs.h. */
26323
26324 #include <proc_service.h>
26325 ps_err_e ps_pdwrite
26326 (struct ps_prochandle*, psaddr_t, const void*, size_t);
26327
26328 int
26329 main ()
26330 {
26331
26332 ;
26333 return 0;
26334 }
26335 _ACEOF
26336 rm -f conftest.$ac_objext
26337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26338 (eval $ac_compile) 2>conftest.er1
26339 ac_status=$?
26340 grep -v '^ *+' conftest.er1 >conftest.err
26341 rm -f conftest.er1
26342 cat conftest.err >&5
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } &&
26345 { ac_try='test -z "$ac_c_werror_flag"
26346 || test ! -s conftest.err'
26347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348 (eval $ac_try) 2>&5
26349 ac_status=$?
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); }; } &&
26352 { ac_try='test -s conftest.$ac_objext'
26353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26354 (eval $ac_try) 2>&5
26355 ac_status=$?
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); }; }; then
26358 gdb_cv_proc_service_is_old=no
26359 else
26360 echo "$as_me: failed program was:" >&5
26361 sed 's/^/| /' conftest.$ac_ext >&5
26362
26363 gdb_cv_proc_service_is_old=yes
26364 fi
26365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26366
26367 fi
26368
26369 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
26370 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
26371 if test $gdb_cv_proc_service_is_old = yes; then
26372
26373 cat >>confdefs.h <<\_ACEOF
26374 #define PROC_SERVICE_IS_OLD 1
26375 _ACEOF
26376
26377 fi
26378 else
26379 echo "$as_me:$LINENO: result: no" >&5
26380 echo "${ECHO_T}no" >&6
26381 fi
26382 ;;
26383 aix*)
26384 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
26385 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
26386 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
26387 echo $ECHO_N "(cached) $ECHO_C" >&6
26388 else
26389 cat >conftest.$ac_ext <<_ACEOF
26390 /* confdefs.h. */
26391 _ACEOF
26392 cat confdefs.h >>conftest.$ac_ext
26393 cat >>conftest.$ac_ext <<_ACEOF
26394 /* end confdefs.h. */
26395 #include <sys/pthdebug.h>
26396 int
26397 main ()
26398 {
26399 #ifndef PTHDB_VERSION_3
26400 #error
26401 #endif
26402 ;
26403 return 0;
26404 }
26405 _ACEOF
26406 rm -f conftest.$ac_objext
26407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26408 (eval $ac_compile) 2>conftest.er1
26409 ac_status=$?
26410 grep -v '^ *+' conftest.er1 >conftest.err
26411 rm -f conftest.er1
26412 cat conftest.err >&5
26413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414 (exit $ac_status); } &&
26415 { ac_try='test -z "$ac_c_werror_flag"
26416 || test ! -s conftest.err'
26417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26418 (eval $ac_try) 2>&5
26419 ac_status=$?
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); }; } &&
26422 { ac_try='test -s conftest.$ac_objext'
26423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26424 (eval $ac_try) 2>&5
26425 ac_status=$?
26426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427 (exit $ac_status); }; }; then
26428 gdb_cv_have_aix_thread_debug=yes
26429 else
26430 echo "$as_me: failed program was:" >&5
26431 sed 's/^/| /' conftest.$ac_ext >&5
26432
26433 gdb_cv_have_aix_thread_debug=no
26434 fi
26435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26436 fi
26437
26438 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
26439 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
26440 if test $gdb_cv_have_aix_thread_debug = yes; then
26441 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
26442 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
26443 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
26444 fi
26445 ;;
26446 esac
26447
26448 fi
26449
26450 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
26451 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
26452 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
26453 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
26454 echo $ECHO_N "(cached) $ECHO_C" >&6
26455 else
26456 cat >conftest.$ac_ext <<_ACEOF
26457 /* confdefs.h. */
26458 _ACEOF
26459 cat confdefs.h >>conftest.$ac_ext
26460 cat >>conftest.$ac_ext <<_ACEOF
26461 /* end confdefs.h. */
26462 #include <thread_db.h>
26463 int
26464 main ()
26465 {
26466 int i = TD_NOTALLOC;
26467 ;
26468 return 0;
26469 }
26470 _ACEOF
26471 rm -f conftest.$ac_objext
26472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26473 (eval $ac_compile) 2>conftest.er1
26474 ac_status=$?
26475 grep -v '^ *+' conftest.er1 >conftest.err
26476 rm -f conftest.er1
26477 cat conftest.err >&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); } &&
26480 { ac_try='test -z "$ac_c_werror_flag"
26481 || test ! -s conftest.err'
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26484 ac_status=$?
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; } &&
26487 { ac_try='test -s conftest.$ac_objext'
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26490 ac_status=$?
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
26493 gdb_cv_thread_db_h_has_td_notalloc=yes
26494 else
26495 echo "$as_me: failed program was:" >&5
26496 sed 's/^/| /' conftest.$ac_ext >&5
26497
26498 gdb_cv_thread_db_h_has_td_notalloc=no
26499
26500 fi
26501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26502
26503 fi
26504 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
26505 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
26506 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
26507 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
26508 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
26509 echo $ECHO_N "(cached) $ECHO_C" >&6
26510 else
26511 cat >conftest.$ac_ext <<_ACEOF
26512 /* confdefs.h. */
26513 _ACEOF
26514 cat confdefs.h >>conftest.$ac_ext
26515 cat >>conftest.$ac_ext <<_ACEOF
26516 /* end confdefs.h. */
26517 #include <thread_db.h>
26518 int
26519 main ()
26520 {
26521 int i = TD_VERSION;
26522 ;
26523 return 0;
26524 }
26525 _ACEOF
26526 rm -f conftest.$ac_objext
26527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26528 (eval $ac_compile) 2>conftest.er1
26529 ac_status=$?
26530 grep -v '^ *+' conftest.er1 >conftest.err
26531 rm -f conftest.er1
26532 cat conftest.err >&5
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); } &&
26535 { ac_try='test -z "$ac_c_werror_flag"
26536 || test ! -s conftest.err'
26537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26538 (eval $ac_try) 2>&5
26539 ac_status=$?
26540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541 (exit $ac_status); }; } &&
26542 { ac_try='test -s conftest.$ac_objext'
26543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26544 (eval $ac_try) 2>&5
26545 ac_status=$?
26546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547 (exit $ac_status); }; }; then
26548 gdb_cv_thread_db_h_has_td_version=yes
26549 else
26550 echo "$as_me: failed program was:" >&5
26551 sed 's/^/| /' conftest.$ac_ext >&5
26552
26553 gdb_cv_thread_db_h_has_td_version=no
26554
26555 fi
26556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26557
26558 fi
26559 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
26560 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
26561 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
26562 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
26563 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
26564 echo $ECHO_N "(cached) $ECHO_C" >&6
26565 else
26566 cat >conftest.$ac_ext <<_ACEOF
26567 /* confdefs.h. */
26568 _ACEOF
26569 cat confdefs.h >>conftest.$ac_ext
26570 cat >>conftest.$ac_ext <<_ACEOF
26571 /* end confdefs.h. */
26572 #include <thread_db.h>
26573 int
26574 main ()
26575 {
26576 int i = TD_NOTLS;
26577 ;
26578 return 0;
26579 }
26580 _ACEOF
26581 rm -f conftest.$ac_objext
26582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26583 (eval $ac_compile) 2>conftest.er1
26584 ac_status=$?
26585 grep -v '^ *+' conftest.er1 >conftest.err
26586 rm -f conftest.er1
26587 cat conftest.err >&5
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); } &&
26590 { ac_try='test -z "$ac_c_werror_flag"
26591 || test ! -s conftest.err'
26592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26593 (eval $ac_try) 2>&5
26594 ac_status=$?
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); }; } &&
26597 { ac_try='test -s conftest.$ac_objext'
26598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26599 (eval $ac_try) 2>&5
26600 ac_status=$?
26601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); }; }; then
26603 gdb_cv_thread_db_h_has_td_notls=yes
26604 else
26605 echo "$as_me: failed program was:" >&5
26606 sed 's/^/| /' conftest.$ac_ext >&5
26607
26608 gdb_cv_thread_db_h_has_td_notls=no
26609
26610 fi
26611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26612
26613 fi
26614 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
26615 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
26616 fi
26617 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
26618
26619 cat >>confdefs.h <<\_ACEOF
26620 #define THREAD_DB_HAS_TD_NOTALLOC 1
26621 _ACEOF
26622
26623 fi
26624 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
26625
26626 cat >>confdefs.h <<\_ACEOF
26627 #define THREAD_DB_HAS_TD_VERSION 1
26628 _ACEOF
26629
26630 fi
26631 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
26632
26633 cat >>confdefs.h <<\_ACEOF
26634 #define THREAD_DB_HAS_TD_NOTLS 1
26635 _ACEOF
26636
26637 fi
26638
26639 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
26640 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
26641 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
26642 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
26643 echo $ECHO_N "(cached) $ECHO_C" >&6
26644 else
26645 cat >conftest.$ac_ext <<_ACEOF
26646 /* confdefs.h. */
26647 _ACEOF
26648 cat confdefs.h >>conftest.$ac_ext
26649 cat >>conftest.$ac_ext <<_ACEOF
26650 /* end confdefs.h. */
26651 #include <sys/syscall.h>
26652 int
26653 main ()
26654 {
26655 int i = __NR_tkill;
26656 ;
26657 return 0;
26658 }
26659 _ACEOF
26660 rm -f conftest.$ac_objext
26661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26662 (eval $ac_compile) 2>conftest.er1
26663 ac_status=$?
26664 grep -v '^ *+' conftest.er1 >conftest.err
26665 rm -f conftest.er1
26666 cat conftest.err >&5
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); } &&
26669 { ac_try='test -z "$ac_c_werror_flag"
26670 || test ! -s conftest.err'
26671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26672 (eval $ac_try) 2>&5
26673 ac_status=$?
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); }; } &&
26676 { ac_try='test -s conftest.$ac_objext'
26677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26678 (eval $ac_try) 2>&5
26679 ac_status=$?
26680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681 (exit $ac_status); }; }; then
26682 gdb_cv_sys_syscall_h_has_tkill=yes
26683 else
26684 echo "$as_me: failed program was:" >&5
26685 sed 's/^/| /' conftest.$ac_ext >&5
26686
26687 gdb_cv_sys_syscall_h_has_tkill=no
26688
26689 fi
26690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26691
26692 fi
26693 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
26694 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
26695 fi
26696 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
26697
26698 cat >>confdefs.h <<\_ACEOF
26699 #define HAVE_TKILL_SYSCALL 1
26700 _ACEOF
26701
26702 fi
26703
26704
26705
26706 # Check whether --with-sysroot or --without-sysroot was given.
26707 if test "${with_sysroot+set}" = set; then
26708 withval="$with_sysroot"
26709
26710 case ${with_sysroot} in
26711 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
26712 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
26713 esac
26714
26715 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
26716
26717 if test "x$prefix" = xNONE; then
26718 test_prefix=/usr/local
26719 else
26720 test_prefix=$prefix
26721 fi
26722 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
26723 test_exec_prefix=$test_prefix
26724 else
26725 test_exec_prefix=$exec_prefix
26726 fi
26727 case ${TARGET_SYSTEM_ROOT} in
26728 "${test_prefix}"|"${test_prefix}/"*|\
26729 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
26730 '${prefix}'|'${prefix}/'*|\
26731 '${exec_prefix}'|'${exec_prefix}/'*)
26732 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
26733 TARGET_SYSTEM_ROOT_DEFINE="$t"
26734 ;;
26735 esac
26736
26737 else
26738
26739 TARGET_SYSTEM_ROOT=
26740 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
26741
26742 fi;
26743
26744
26745
26746 # Check whether --enable-werror or --disable-werror was given.
26747 if test "${enable_werror+set}" = set; then
26748 enableval="$enable_werror"
26749 case "${enableval}" in
26750 yes | y) ERROR_ON_WARNING="yes" ;;
26751 no | n) ERROR_ON_WARNING="no" ;;
26752 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
26753 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
26754 { (exit 1); exit 1; }; } ;;
26755 esac
26756 fi;
26757
26758 # Enable -Werror by default when using gcc
26759 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
26760 ERROR_ON_WARNING=yes
26761 fi
26762
26763 WERROR_CFLAGS=""
26764 if test "${ERROR_ON_WARNING}" = yes ; then
26765 WERROR_CFLAGS="-Werror"
26766 fi
26767
26768 # The entries after -Wno-pointer-sign are disabled warnings which may
26769 # be enabled in the future, which can not currently be used to build
26770 # GDB.
26771 # NOTE: If you change this list, remember to update
26772 # gdb/doc/gdbint.texinfo.
26773 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
26774 -Wformat-nonliteral -Wno-pointer-sign \
26775 -Wno-unused -Wno-switch -Wno-char-subscripts"
26776
26777 # Check whether --enable-build-warnings or --disable-build-warnings was given.
26778 if test "${enable_build_warnings+set}" = set; then
26779 enableval="$enable_build_warnings"
26780 case "${enableval}" in
26781 yes) ;;
26782 no) build_warnings="-w";;
26783 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26784 build_warnings="${build_warnings} ${t}";;
26785 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26786 build_warnings="${t} ${build_warnings}";;
26787 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
26788 esac
26789 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
26790 echo "Setting compiler warning flags = $build_warnings" 6>&1
26791 fi
26792 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
26793 if test "${enable_gdb_build_warnings+set}" = set; then
26794 enableval="$enable_gdb_build_warnings"
26795 case "${enableval}" in
26796 yes) ;;
26797 no) build_warnings="-w";;
26798 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26799 build_warnings="${build_warnings} ${t}";;
26800 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26801 build_warnings="${t} ${build_warnings}";;
26802 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
26803 esac
26804 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
26805 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
26806 fi
26807 fi; WARN_CFLAGS=""
26808 if test "x${build_warnings}" != x -a "x$GCC" = xyes
26809 then
26810 echo "$as_me:$LINENO: checking compiler warning flags" >&5
26811 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
26812 # Separate out the -Werror flag as some files just cannot be
26813 # compiled with it enabled.
26814 for w in ${build_warnings}; do
26815 case $w in
26816 -Werr*) WERROR_CFLAGS=-Werror ;;
26817 *) # Check that GCC accepts it
26818 saved_CFLAGS="$CFLAGS"
26819 CFLAGS="$CFLAGS $w"
26820 cat >conftest.$ac_ext <<_ACEOF
26821 /* confdefs.h. */
26822 _ACEOF
26823 cat confdefs.h >>conftest.$ac_ext
26824 cat >>conftest.$ac_ext <<_ACEOF
26825 /* end confdefs.h. */
26826
26827 int
26828 main ()
26829 {
26830
26831 ;
26832 return 0;
26833 }
26834 _ACEOF
26835 rm -f conftest.$ac_objext
26836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26837 (eval $ac_compile) 2>conftest.er1
26838 ac_status=$?
26839 grep -v '^ *+' conftest.er1 >conftest.err
26840 rm -f conftest.er1
26841 cat conftest.err >&5
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); } &&
26844 { ac_try='test -z "$ac_c_werror_flag"
26845 || test ! -s conftest.err'
26846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26848 ac_status=$?
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; } &&
26851 { ac_try='test -s conftest.$ac_objext'
26852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26854 ac_status=$?
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; }; then
26857 WARN_CFLAGS="${WARN_CFLAGS} $w"
26858 else
26859 echo "$as_me: failed program was:" >&5
26860 sed 's/^/| /' conftest.$ac_ext >&5
26861
26862 fi
26863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26864 CFLAGS="$saved_CFLAGS"
26865 esac
26866 done
26867 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
26868 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
26869 fi
26870
26871
26872
26873 # In the Cygwin environment, we need some additional flags.
26874 echo "$as_me:$LINENO: checking for cygwin" >&5
26875 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
26876 if test "${gdb_cv_os_cygwin+set}" = set; then
26877 echo $ECHO_N "(cached) $ECHO_C" >&6
26878 else
26879 cat >conftest.$ac_ext <<_ACEOF
26880 /* confdefs.h. */
26881 _ACEOF
26882 cat confdefs.h >>conftest.$ac_ext
26883 cat >>conftest.$ac_ext <<_ACEOF
26884 /* end confdefs.h. */
26885
26886 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
26887 lose
26888 #endif
26889 _ACEOF
26890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26891 $EGREP "lose" >/dev/null 2>&1; then
26892 gdb_cv_os_cygwin=yes
26893 else
26894 gdb_cv_os_cygwin=no
26895 fi
26896 rm -f conftest*
26897
26898 fi
26899 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
26900 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
26901
26902
26903 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
26904 case ${host} in
26905 *go32* ) SER_HARDWIRE=ser-go32.o ;;
26906 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
26907 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
26908 esac
26909
26910
26911 # libreadline needs libuser32.a in a cygwin environment
26912 WIN32LIBS=
26913 if test x$gdb_cv_os_cygwin = xyes; then
26914 WIN32LIBS="-luser32"
26915 case "${target}" in
26916 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
26917 ;;
26918 esac
26919 fi
26920
26921 # The ser-tcp.c module requires sockets.
26922 case ${host} in
26923 *mingw32*)
26924
26925 cat >>confdefs.h <<\_ACEOF
26926 #define USE_WIN32API 1
26927 _ACEOF
26928
26929 WIN32LIBS="$WIN32LIBS -lws2_32"
26930 ;;
26931 esac
26932
26933
26934 # Add ELF support to GDB, but only if BFD includes ELF support.
26935 OLD_CFLAGS=$CFLAGS
26936 OLD_LDFLAGS=$LDFLAGS
26937 OLD_LIBS=$LIBS
26938 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
26939 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
26940 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
26941 LIBS="$LIBS -lbfd -liberty $intl"
26942 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
26943 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
26944 if test "${gdb_cv_var_elf+set}" = set; then
26945 echo $ECHO_N "(cached) $ECHO_C" >&6
26946 else
26947 cat >conftest.$ac_ext <<_ACEOF
26948 /* confdefs.h. */
26949 _ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h. */
26953 #include <stdlib.h>
26954 #include "bfd.h"
26955 #include "elf-bfd.h"
26956
26957 int
26958 main ()
26959 {
26960 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
26961 ;
26962 return 0;
26963 }
26964 _ACEOF
26965 rm -f conftest.$ac_objext conftest$ac_exeext
26966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26967 (eval $ac_link) 2>conftest.er1
26968 ac_status=$?
26969 grep -v '^ *+' conftest.er1 >conftest.err
26970 rm -f conftest.er1
26971 cat conftest.err >&5
26972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26973 (exit $ac_status); } &&
26974 { ac_try='test -z "$ac_c_werror_flag"
26975 || test ! -s conftest.err'
26976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26977 (eval $ac_try) 2>&5
26978 ac_status=$?
26979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26980 (exit $ac_status); }; } &&
26981 { ac_try='test -s conftest$ac_exeext'
26982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983 (eval $ac_try) 2>&5
26984 ac_status=$?
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); }; }; then
26987 gdb_cv_var_elf=yes
26988 else
26989 echo "$as_me: failed program was:" >&5
26990 sed 's/^/| /' conftest.$ac_ext >&5
26991
26992 gdb_cv_var_elf=no
26993 fi
26994 rm -f conftest.err conftest.$ac_objext \
26995 conftest$ac_exeext conftest.$ac_ext
26996 fi
26997 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
26998 echo "${ECHO_T}$gdb_cv_var_elf" >&6
26999 if test $gdb_cv_var_elf = yes; then
27000 CONFIG_OBS="$CONFIG_OBS elfread.o"
27001
27002 cat >>confdefs.h <<\_ACEOF
27003 #define HAVE_ELF 1
27004 _ACEOF
27005
27006 fi
27007 CFLAGS=$OLD_CFLAGS
27008 LDFLAGS=$OLD_LDFLAGS
27009 LIBS=$OLD_LIBS
27010
27011 # Add any host-specific objects to GDB.
27012 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
27013
27014 LIBGUI="../libgui/src/libgui.a"
27015 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
27016
27017
27018
27019 WIN32LDAPP=
27020
27021
27022
27023 case "${host}" in
27024 *-*-cygwin* | *-*-mingw* )
27025 configdir="win"
27026 ;;
27027 *)
27028 configdir="unix"
27029 ;;
27030 esac
27031
27032 GDBTKLIBS=
27033 if test "${enable_gdbtk}" = "yes"; then
27034
27035 # Gdbtk must have an absolute path to srcdir in order to run
27036 # properly when not installed.
27037 here=`pwd`
27038 cd ${srcdir}
27039 GDBTK_SRC_DIR=`pwd`
27040 cd $here
27041
27042
27043 #
27044 # Ok, lets find the tcl configuration
27045 # First, look for one uninstalled.
27046 # the alternative search directory is invoked by --with-tclconfig
27047 #
27048
27049 if test x"${no_tcl}" = x ; then
27050 # we reset no_tcl in case something fails here
27051 no_tcl=true
27052
27053 # Check whether --with-tclconfig or --without-tclconfig was given.
27054 if test "${with_tclconfig+set}" = set; then
27055 withval="$with_tclconfig"
27056 with_tclconfig=${withval}
27057 fi;
27058 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
27059 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
27060 if test "${ac_cv_c_tclconfig+set}" = set; then
27061 echo $ECHO_N "(cached) $ECHO_C" >&6
27062 else
27063
27064
27065 # First check to see if --with-tclconfig was specified.
27066 if test x"${with_tclconfig}" != x ; then
27067 if test -f "${with_tclconfig}/tclConfig.sh" ; then
27068 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
27069 else
27070 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
27071 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
27072 { (exit 1); exit 1; }; }
27073 fi
27074 fi
27075
27076 # then check for a private Tcl installation
27077 if test x"${ac_cv_c_tclconfig}" = x ; then
27078 for i in \
27079 ../tcl \
27080 `ls -dr ../tcl[7-9]* 2>/dev/null` \
27081 ../../tcl \
27082 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
27083 ../../../tcl \
27084 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
27085 if test -f "$i/${configdir}/tclConfig.sh" ; then
27086 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
27087 break
27088 fi
27089 done
27090 fi
27091 # check in a few common install locations
27092 if test x"${ac_cv_c_tclconfig}" = x ; then
27093 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27094 if test -f "$i/tclConfig.sh" ; then
27095 ac_cv_c_tclconfig=`(cd $i; pwd)`
27096 break
27097 fi
27098 done
27099 fi
27100 # check in a few other private locations
27101 if test x"${ac_cv_c_tclconfig}" = x ; then
27102 for i in \
27103 ${srcdir}/../tcl \
27104 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
27105 if test -f "$i/${configdir}/tclConfig.sh" ; then
27106 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
27107 break
27108 fi
27109 done
27110 fi
27111
27112 fi
27113
27114 if test x"${ac_cv_c_tclconfig}" = x ; then
27115 TCLCONFIG="# no Tcl configs found"
27116 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
27117 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
27118 else
27119 no_tcl=
27120 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
27121 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
27122 echo "${ECHO_T}found $TCLCONFIG" >&6
27123 fi
27124 fi
27125
27126 if test -z "${no_tcl}"; then
27127
27128 . $TCLCONFIG
27129
27130
27131
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156 #
27157 # Ok, lets find the tk configuration
27158 # First, look for one uninstalled.
27159 # the alternative search directory is invoked by --with-tkconfig
27160 #
27161
27162 if test x"${no_tk}" = x ; then
27163 # we reset no_tk in case something fails here
27164 no_tk=true
27165
27166 # Check whether --with-tkconfig or --without-tkconfig was given.
27167 if test "${with_tkconfig+set}" = set; then
27168 withval="$with_tkconfig"
27169 with_tkconfig=${withval}
27170 fi;
27171 echo "$as_me:$LINENO: checking for Tk configuration" >&5
27172 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
27173 if test "${ac_cv_c_tkconfig+set}" = set; then
27174 echo $ECHO_N "(cached) $ECHO_C" >&6
27175 else
27176
27177
27178 # First check to see if --with-tkconfig was specified.
27179 if test x"${with_tkconfig}" != x ; then
27180 if test -f "${with_tkconfig}/tkConfig.sh" ; then
27181 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
27182 else
27183 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
27184 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
27185 { (exit 1); exit 1; }; }
27186 fi
27187 fi
27188
27189 # then check for a private Tk library
27190 if test x"${ac_cv_c_tkconfig}" = x ; then
27191 for i in \
27192 ../tk \
27193 `ls -dr ../tk[4-9]* 2>/dev/null` \
27194 ../../tk \
27195 `ls -dr ../../tk[4-9]* 2>/dev/null` \
27196 ../../../tk \
27197 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
27198 if test -f "$i/${configdir}/tkConfig.sh" ; then
27199 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
27200 break
27201 fi
27202 done
27203 fi
27204 # check in a few common install locations
27205 if test x"${ac_cv_c_tkconfig}" = x ; then
27206 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27207 if test -f "$i/tkConfig.sh" ; then
27208 ac_cv_c_tkconfig=`(cd $i; pwd)`
27209 break
27210 fi
27211 done
27212 fi
27213 # check in a few other private locations
27214 if test x"${ac_cv_c_tkconfig}" = x ; then
27215 for i in \
27216 ${srcdir}/../tk \
27217 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
27218 if test -f "$i/${configdir}/tkConfig.sh" ; then
27219 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
27220 break
27221 fi
27222 done
27223 fi
27224
27225 fi
27226
27227 if test x"${ac_cv_c_tkconfig}" = x ; then
27228 TKCONFIG="# no Tk configs found"
27229 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
27230 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
27231 else
27232 no_tk=
27233 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
27234 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
27235 echo "${ECHO_T}found $TKCONFIG" >&6
27236 fi
27237 fi
27238
27239
27240
27241 # now look for Tcl library stuff
27242
27243 tcldir="../tcl/${configdir}/"
27244
27245 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
27246
27247 # If $no_tk is nonempty, then we can't do Tk, and there is no
27248 # point to doing Tcl.
27249 if test -z "${no_tk}"; then
27250
27251 if test -f "$TKCONFIG" ; then
27252 . $TKCONFIG
27253 fi
27254
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265
27266
27267
27268 #
27269 # Ok, lets find the tcl source trees so we can use the headers
27270 # Warning: transition of version 9 to 10 will break this algorithm
27271 # because 10 sorts before 9. We also look for just tcl. We have to
27272 # be careful that we don't match stuff like tclX by accident.
27273 # the alternative search directory is involked by --with-tclinclude
27274 #
27275
27276 no_tcl=true
27277 echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
27278 echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
27279
27280 # Check whether --with-tclinclude or --without-tclinclude was given.
27281 if test "${with_tclinclude+set}" = set; then
27282 withval="$with_tclinclude"
27283 with_tclinclude=${withval}
27284 fi;
27285 if test "${ac_cv_c_tclh+set}" = set; then
27286 echo $ECHO_N "(cached) $ECHO_C" >&6
27287 else
27288
27289 # first check to see if --with-tclinclude was specified
27290 if test x"${with_tclinclude}" != x ; then
27291 if test -f ${with_tclinclude}/tclInt.h ; then
27292 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
27293 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
27294 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
27295 else
27296 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
27297 echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
27298 { (exit 1); exit 1; }; }
27299 fi
27300 fi
27301
27302 # next check if it came with Tcl configuration file
27303 if test x"${ac_cv_c_tclconfig}" = x ; then
27304 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
27305 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
27306 fi
27307 fi
27308
27309 # next check in private source directory
27310 #
27311 # since ls returns lowest version numbers first, reverse its output
27312 if test x"${ac_cv_c_tclh}" = x ; then
27313 for i in \
27314 ${srcdir}/../tcl \
27315 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
27316 ${srcdir}/../../tcl \
27317 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
27318 ${srcdir}/../../../tcl \
27319 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
27320 if test -f $i/generic/tclInt.h ; then
27321 ac_cv_c_tclh=`(cd $i/generic; pwd)`
27322 break
27323 fi
27324 done
27325 fi
27326 # finally check in a few common install locations
27327 #
27328 # since ls returns lowest version numbers first, reverse its output
27329 if test x"${ac_cv_c_tclh}" = x ; then
27330 for i in \
27331 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
27332 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
27333 /usr/local/src/tcl \
27334 /usr/local/lib/tcl \
27335 ${prefix}/include ; do
27336 if test -f $i/generic/tclInt.h ; then
27337 ac_cv_c_tclh=`(cd $i/generic; pwd)`
27338 break
27339 fi
27340 done
27341 fi
27342 # see if one is installed
27343 if test x"${ac_cv_c_tclh}" = x ; then
27344 if test "${ac_cv_header_tclInt_h+set}" = set; then
27345 echo "$as_me:$LINENO: checking for tclInt.h" >&5
27346 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
27347 if test "${ac_cv_header_tclInt_h+set}" = set; then
27348 echo $ECHO_N "(cached) $ECHO_C" >&6
27349 fi
27350 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
27351 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
27352 else
27353 # Is the header compilable?
27354 echo "$as_me:$LINENO: checking tclInt.h usability" >&5
27355 echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
27356 cat >conftest.$ac_ext <<_ACEOF
27357 /* confdefs.h. */
27358 _ACEOF
27359 cat confdefs.h >>conftest.$ac_ext
27360 cat >>conftest.$ac_ext <<_ACEOF
27361 /* end confdefs.h. */
27362 $ac_includes_default
27363 #include <tclInt.h>
27364 _ACEOF
27365 rm -f conftest.$ac_objext
27366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27367 (eval $ac_compile) 2>conftest.er1
27368 ac_status=$?
27369 grep -v '^ *+' conftest.er1 >conftest.err
27370 rm -f conftest.er1
27371 cat conftest.err >&5
27372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27373 (exit $ac_status); } &&
27374 { ac_try='test -z "$ac_c_werror_flag"
27375 || test ! -s conftest.err'
27376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27377 (eval $ac_try) 2>&5
27378 ac_status=$?
27379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380 (exit $ac_status); }; } &&
27381 { ac_try='test -s conftest.$ac_objext'
27382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27383 (eval $ac_try) 2>&5
27384 ac_status=$?
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); }; }; then
27387 ac_header_compiler=yes
27388 else
27389 echo "$as_me: failed program was:" >&5
27390 sed 's/^/| /' conftest.$ac_ext >&5
27391
27392 ac_header_compiler=no
27393 fi
27394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27396 echo "${ECHO_T}$ac_header_compiler" >&6
27397
27398 # Is the header present?
27399 echo "$as_me:$LINENO: checking tclInt.h presence" >&5
27400 echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
27401 cat >conftest.$ac_ext <<_ACEOF
27402 /* confdefs.h. */
27403 _ACEOF
27404 cat confdefs.h >>conftest.$ac_ext
27405 cat >>conftest.$ac_ext <<_ACEOF
27406 /* end confdefs.h. */
27407 #include <tclInt.h>
27408 _ACEOF
27409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27411 ac_status=$?
27412 grep -v '^ *+' conftest.er1 >conftest.err
27413 rm -f conftest.er1
27414 cat conftest.err >&5
27415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27416 (exit $ac_status); } >/dev/null; then
27417 if test -s conftest.err; then
27418 ac_cpp_err=$ac_c_preproc_warn_flag
27419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27420 else
27421 ac_cpp_err=
27422 fi
27423 else
27424 ac_cpp_err=yes
27425 fi
27426 if test -z "$ac_cpp_err"; then
27427 ac_header_preproc=yes
27428 else
27429 echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.$ac_ext >&5
27431
27432 ac_header_preproc=no
27433 fi
27434 rm -f conftest.err conftest.$ac_ext
27435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27436 echo "${ECHO_T}$ac_header_preproc" >&6
27437
27438 # So? What about this header?
27439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27440 yes:no: )
27441 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27442 echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27443 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
27444 echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
27445 ac_header_preproc=yes
27446 ;;
27447 no:yes:* )
27448 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
27449 echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
27450 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
27451 echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
27452 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
27453 echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
27454 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
27455 echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
27456 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
27457 echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
27458 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
27459 echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
27460 (
27461 cat <<\_ASBOX
27462 ## ------------------------------------------ ##
27463 ## Report this to the AC_PACKAGE_NAME lists. ##
27464 ## ------------------------------------------ ##
27465 _ASBOX
27466 ) |
27467 sed "s/^/$as_me: WARNING: /" >&2
27468 ;;
27469 esac
27470 echo "$as_me:$LINENO: checking for tclInt.h" >&5
27471 echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
27472 if test "${ac_cv_header_tclInt_h+set}" = set; then
27473 echo $ECHO_N "(cached) $ECHO_C" >&6
27474 else
27475 ac_cv_header_tclInt_h=$ac_header_preproc
27476 fi
27477 echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
27478 echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
27479
27480 fi
27481 if test $ac_cv_header_tclInt_h = yes; then
27482 ac_cv_c_tclh=installed
27483 else
27484 ac_cv_c_tclh=""
27485 fi
27486
27487
27488 fi
27489
27490 fi
27491
27492 if test x"${ac_cv_c_tclh}" = x ; then
27493 TCLHDIR="# no Tcl private headers found"
27494 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
27495 echo "$as_me: error: Can't find Tcl private headers" >&2;}
27496 { (exit 1); exit 1; }; }
27497 fi
27498 if test x"${ac_cv_c_tclh}" != x ; then
27499 no_tcl=""
27500 if test x"${ac_cv_c_tclh}" = x"installed" ; then
27501 echo "$as_me:$LINENO: result: is installed" >&5
27502 echo "${ECHO_T}is installed" >&6
27503 TCLHDIR=""
27504 else
27505 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
27506 echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
27507 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
27508 TCLHDIR="-I${ac_cv_c_tclh}"
27509 fi
27510 fi
27511
27512
27513
27514
27515 #
27516 # Ok, lets find the tk source trees so we can use the headers
27517 # If the directory (presumably symlink) named "tk" exists, use that one
27518 # in preference to any others. Same logic is used when choosing library
27519 # and again with Tcl. The search order is the best place to look first, then in
27520 # decreasing significance. The loop breaks if the trigger file is found.
27521 # Note the gross little conversion here of srcdir by cd'ing to the found
27522 # directory. This converts the path from a relative to an absolute, so
27523 # recursive cache variables for the path will work right. We check all
27524 # the possible paths in one loop rather than many seperate loops to speed
27525 # things up.
27526 # the alternative search directory is involked by --with-tkinclude
27527 #
27528 no_tk=true
27529 echo "$as_me:$LINENO: checking for Tk private headers" >&5
27530 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
27531
27532 # Check whether --with-tkinclude or --without-tkinclude was given.
27533 if test "${with_tkinclude+set}" = set; then
27534 withval="$with_tkinclude"
27535 with_tkinclude=${withval}
27536 fi;
27537 if test "${ac_cv_c_tkh+set}" = set; then
27538 echo $ECHO_N "(cached) $ECHO_C" >&6
27539 else
27540
27541 # first check to see if --with-tkinclude was specified
27542 if test x"${with_tkinclude}" != x ; then
27543 if test -f ${with_tkinclude}/tk.h ; then
27544 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
27545 elif test -f ${with_tkinclude}/generic/tk.h ; then
27546 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
27547 else
27548 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
27549 echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
27550 { (exit 1); exit 1; }; }
27551 fi
27552 fi
27553
27554 # next check if it came with Tk configuration file
27555 if test x"${ac_cv_c_tkconfig}" = x ; then
27556 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
27557 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
27558 fi
27559 fi
27560
27561 # next check in private source directory
27562 #
27563 # since ls returns lowest version numbers first, reverse its output
27564 if test x"${ac_cv_c_tkh}" = x ; then
27565 for i in \
27566 ${srcdir}/../tk \
27567 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
27568 ${srcdir}/../../tk \
27569 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
27570 ${srcdir}/../../../tk \
27571 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
27572 if test -f $i/generic/tk.h ; then
27573 ac_cv_c_tkh=`(cd $i/generic; pwd)`
27574 break
27575 fi
27576 done
27577 fi
27578 # finally check in a few common install locations
27579 #
27580 # since ls returns lowest version numbers first, reverse its output
27581 if test x"${ac_cv_c_tkh}" = x ; then
27582 for i in \
27583 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
27584 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
27585 /usr/local/src/tk \
27586 /usr/local/lib/tk \
27587 ${prefix}/include ; do
27588 if test -f $i/generic/tk.h ; then
27589 ac_cv_c_tkh=`(cd $i/generic; pwd)`
27590 break
27591 fi
27592 done
27593 fi
27594 # see if one is installed
27595 if test x"${ac_cv_c_tkh}" = x ; then
27596 if test "${ac_cv_header_tk_h+set}" = set; then
27597 echo "$as_me:$LINENO: checking for tk.h" >&5
27598 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
27599 if test "${ac_cv_header_tk_h+set}" = set; then
27600 echo $ECHO_N "(cached) $ECHO_C" >&6
27601 fi
27602 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
27603 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
27604 else
27605 # Is the header compilable?
27606 echo "$as_me:$LINENO: checking tk.h usability" >&5
27607 echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
27608 cat >conftest.$ac_ext <<_ACEOF
27609 /* confdefs.h. */
27610 _ACEOF
27611 cat confdefs.h >>conftest.$ac_ext
27612 cat >>conftest.$ac_ext <<_ACEOF
27613 /* end confdefs.h. */
27614 $ac_includes_default
27615 #include <tk.h>
27616 _ACEOF
27617 rm -f conftest.$ac_objext
27618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27619 (eval $ac_compile) 2>conftest.er1
27620 ac_status=$?
27621 grep -v '^ *+' conftest.er1 >conftest.err
27622 rm -f conftest.er1
27623 cat conftest.err >&5
27624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27625 (exit $ac_status); } &&
27626 { ac_try='test -z "$ac_c_werror_flag"
27627 || test ! -s conftest.err'
27628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27629 (eval $ac_try) 2>&5
27630 ac_status=$?
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); }; } &&
27633 { ac_try='test -s conftest.$ac_objext'
27634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635 (eval $ac_try) 2>&5
27636 ac_status=$?
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); }; }; then
27639 ac_header_compiler=yes
27640 else
27641 echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.$ac_ext >&5
27643
27644 ac_header_compiler=no
27645 fi
27646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27648 echo "${ECHO_T}$ac_header_compiler" >&6
27649
27650 # Is the header present?
27651 echo "$as_me:$LINENO: checking tk.h presence" >&5
27652 echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
27653 cat >conftest.$ac_ext <<_ACEOF
27654 /* confdefs.h. */
27655 _ACEOF
27656 cat confdefs.h >>conftest.$ac_ext
27657 cat >>conftest.$ac_ext <<_ACEOF
27658 /* end confdefs.h. */
27659 #include <tk.h>
27660 _ACEOF
27661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27663 ac_status=$?
27664 grep -v '^ *+' conftest.er1 >conftest.err
27665 rm -f conftest.er1
27666 cat conftest.err >&5
27667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668 (exit $ac_status); } >/dev/null; then
27669 if test -s conftest.err; then
27670 ac_cpp_err=$ac_c_preproc_warn_flag
27671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27672 else
27673 ac_cpp_err=
27674 fi
27675 else
27676 ac_cpp_err=yes
27677 fi
27678 if test -z "$ac_cpp_err"; then
27679 ac_header_preproc=yes
27680 else
27681 echo "$as_me: failed program was:" >&5
27682 sed 's/^/| /' conftest.$ac_ext >&5
27683
27684 ac_header_preproc=no
27685 fi
27686 rm -f conftest.err conftest.$ac_ext
27687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27688 echo "${ECHO_T}$ac_header_preproc" >&6
27689
27690 # So? What about this header?
27691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27692 yes:no: )
27693 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
27694 echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27695 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
27696 echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
27697 ac_header_preproc=yes
27698 ;;
27699 no:yes:* )
27700 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
27701 echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
27702 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
27703 echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
27704 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
27705 echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
27706 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
27707 echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
27708 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
27709 echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
27710 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
27711 echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
27712 (
27713 cat <<\_ASBOX
27714 ## ------------------------------------------ ##
27715 ## Report this to the AC_PACKAGE_NAME lists. ##
27716 ## ------------------------------------------ ##
27717 _ASBOX
27718 ) |
27719 sed "s/^/$as_me: WARNING: /" >&2
27720 ;;
27721 esac
27722 echo "$as_me:$LINENO: checking for tk.h" >&5
27723 echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
27724 if test "${ac_cv_header_tk_h+set}" = set; then
27725 echo $ECHO_N "(cached) $ECHO_C" >&6
27726 else
27727 ac_cv_header_tk_h=$ac_header_preproc
27728 fi
27729 echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
27730 echo "${ECHO_T}$ac_cv_header_tk_h" >&6
27731
27732 fi
27733 if test $ac_cv_header_tk_h = yes; then
27734 ac_cv_c_tkh=installed
27735 else
27736 ac_cv_c_tkh=""
27737 fi
27738
27739
27740 fi
27741
27742 fi
27743
27744 if test x"${ac_cv_c_tkh}" != x ; then
27745 no_tk=""
27746 if test x"${ac_cv_c_tkh}" = x"installed" ; then
27747 echo "$as_me:$LINENO: result: is installed" >&5
27748 echo "${ECHO_T}is installed" >&6
27749 TKHDIR=""
27750 else
27751 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
27752 echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
27753 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
27754 TKHDIR="-I${ac_cv_c_tkh}"
27755 fi
27756 else
27757 TKHDIR="# no Tk directory found"
27758 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
27759 echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
27760 no_tk=true
27761 fi
27762
27763
27764
27765
27766 echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
27767 echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
27768 if test x"${ac_cv_c_itclh}" = x ; then
27769 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
27770 if test -f $i/generic/itcl.h ; then
27771 ac_cv_c_itclh=`(cd $i/generic; pwd)`
27772 break
27773 fi
27774 done
27775 fi
27776 if test x"${ac_cv_c_itclh}" = x ; then
27777 ITCLHDIR="# no Itcl private headers found"
27778 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
27779 echo "$as_me: error: Can't find Itcl private headers" >&2;}
27780 { (exit 1); exit 1; }; }
27781 fi
27782 if test x"${ac_cv_c_itclh}" != x ; then
27783 ITCLHDIR="-I${ac_cv_c_itclh}"
27784 fi
27785 # should always be here
27786 # ITCLLIB="../itcl/itcl/unix/libitcl.a"
27787
27788 #AC_SUBST(ITCLLIB)
27789
27790
27791 echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
27792 echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
27793 if test x"${ac_cv_c_itkh}" = x ; then
27794 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
27795 if test -f $i/generic/itk.h ; then
27796 ac_cv_c_itkh=`(cd $i/generic; pwd)`
27797 break
27798 fi
27799 done
27800 fi
27801 if test x"${ac_cv_c_itkh}" = x ; then
27802 ITKHDIR="# no Itk private headers found"
27803 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
27804 echo "$as_me: error: Can't find Itk private headers" >&2;}
27805 { (exit 1); exit 1; }; }
27806 fi
27807 if test x"${ac_cv_c_itkh}" != x ; then
27808 ITKHDIR="-I${ac_cv_c_itkh}"
27809 fi
27810 # should always be here
27811 # ITKLIB="../itcl/itk/unix/libitk.a"
27812
27813 #AC_SUBST(ITKLIB)
27814
27815
27816
27817 # now look for Tk library stuff
27818
27819 tkdir="../tk/${configdir}/"
27820
27821 TK_DEPS="${tkdir}${TK_LIB_FILE}"
27822
27823 # now look for Itcl library stuff
27824
27825
27826 #
27827 # Ok, lets find the itcl configuration
27828 # First, look for one uninstalled.
27829 # the alternative search directory is invoked by --with-itclconfig
27830 #
27831
27832 if test x"${no_itcl}" = x ; then
27833 # we reset no_itcl in case something fails here
27834 no_itcl=true
27835
27836 # Check whether --with-itclconfig or --without-itclconfig was given.
27837 if test "${with_itclconfig+set}" = set; then
27838 withval="$with_itclconfig"
27839 with_itclconfig=${withval}
27840 fi;
27841 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
27842 echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
27843 if test "${ac_cv_c_itclconfig+set}" = set; then
27844 echo $ECHO_N "(cached) $ECHO_C" >&6
27845 else
27846
27847
27848 # First check to see if --with-itclconfig was specified.
27849 if test x"${with_itclconfig}" != x ; then
27850 if test -f "${with_itclconfig}/itclConfig.sh" ; then
27851 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
27852 else
27853 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
27854 echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
27855 { (exit 1); exit 1; }; }
27856 fi
27857 fi
27858
27859 # then check for a private Itcl library
27860 if test x"${ac_cv_c_itclconfig}" = x ; then
27861 for i in \
27862 ../itcl/itcl \
27863 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
27864 ../../itcl \
27865 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
27866 ../../../itcl \
27867 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
27868 if test -f "$i/itclConfig.sh" ; then
27869 ac_cv_c_itclconfig=`(cd $i; pwd)`
27870 break
27871 fi
27872 done
27873 fi
27874 # check in a few common install locations
27875 if test x"${ac_cv_c_itclconfig}" = x ; then
27876 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27877 if test -f "$i/itclConfig.sh" ; then
27878 ac_cv_c_itclconfig=`(cd $i; pwd)`
27879 break
27880 fi
27881 done
27882 fi
27883 # check in a few other private locations
27884 if test x"${ac_cv_c_itclconfig}" = x ; then
27885 for i in \
27886 ${srcdir}/../itcl/itcl \
27887 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
27888 if test -f "$i/itclConfig.sh" ; then
27889 ac_cv_c_itclconfig=`(cd $i; pwd)`
27890 break
27891 fi
27892 done
27893 fi
27894
27895 fi
27896
27897 if test x"${ac_cv_c_itclconfig}" = x ; then
27898 ITCLCONFIG="# no Itcl configs found"
27899 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
27900 echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
27901 else
27902 no_itcl=
27903 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
27904 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
27905 echo "${ECHO_T}found $ITCLCONFIG" >&6
27906 fi
27907 fi
27908
27909 if test -z "${no_itcl}"; then
27910
27911 if test -f "$ITCLCONFIG" ; then
27912 . $ITCLCONFIG
27913 fi
27914
27915
27916
27917
27918
27919
27920
27921
27922
27923
27924
27925
27926 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
27927 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
27928 fi
27929
27930
27931 # now look for Itk library stuff
27932
27933 #
27934 # Ok, lets find the itk configuration
27935 # First, look for one uninstalled.
27936 # the alternative search directory is invoked by --with-itkconfig
27937 #
27938
27939 if test x"${no_itk}" = x ; then
27940 # we reset no_itk in case something fails here
27941 no_itk=true
27942
27943 # Check whether --with-itkconfig or --without-itkconfig was given.
27944 if test "${with_itkconfig+set}" = set; then
27945 withval="$with_itkconfig"
27946 with_itkconfig=${withval}
27947 fi;
27948 echo "$as_me:$LINENO: checking for Itk configuration" >&5
27949 echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
27950 if test "${ac_cv_c_itkconfig+set}" = set; then
27951 echo $ECHO_N "(cached) $ECHO_C" >&6
27952 else
27953
27954
27955 # First check to see if --with-itkconfig was specified.
27956 if test x"${with_itkconfig}" != x ; then
27957 if test -f "${with_itkconfig}/itkConfig.sh" ; then
27958 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
27959 else
27960 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
27961 echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
27962 { (exit 1); exit 1; }; }
27963 fi
27964 fi
27965
27966 # then check for a private Itk library
27967 if test x"${ac_cv_c_itkconfig}" = x ; then
27968 for i in \
27969 ../itcl/itk \
27970 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
27971 ../../itk \
27972 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
27973 ../../../itk \
27974 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
27975 if test -f "$i/itkConfig.sh" ; then
27976 ac_cv_c_itkconfig=`(cd $i; pwd)`
27977 break
27978 fi
27979 done
27980 fi
27981 # check in a few common install locations
27982 if test x"${ac_cv_c_itkconfig}" = x ; then
27983 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27984 if test -f "$i/itkConfig.sh" ; then
27985 ac_cv_c_itkconfig=`(cd $i; pwd)`
27986 break
27987 fi
27988 done
27989 fi
27990 # check in a few other private locations
27991 if test x"${ac_cv_c_itkconfig}" = x ; then
27992 for i in \
27993 ${srcdir}/../itcl/itk \
27994 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
27995 if test -f "$i/itkConfig.sh" ; then
27996 ac_cv_c_itkconfig=`(cd $i; pwd)`
27997 break
27998 fi
27999 done
28000 fi
28001
28002 fi
28003
28004 if test x"${ac_cv_c_itkconfig}" = x ; then
28005 ITKCONFIG="# no Itk configs found"
28006 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
28007 echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
28008 else
28009 no_itk=
28010 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
28011 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
28012 echo "${ECHO_T}found $ITKCONFIG" >&6
28013 fi
28014 fi
28015
28016
28017 if test -z "${no_itcl}"; then
28018
28019 if test -f "$ITKCONFIG" ; then
28020 . $ITKCONFIG
28021 fi
28022
28023
28024
28025
28026
28027
28028
28029
28030
28031
28032
28033
28034 ITKLIB="${ITK_BUILD_LIB_SPEC}"
28035 ITK_DEPS="${ITK_LIB_FULL_PATH}"
28036 fi
28037
28038 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
28039
28040 # Include some libraries that Tcl and Tk want.
28041 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
28042 # Yes, the ordering seems wrong here. But it isn't.
28043 # TK_LIBS is the list of libraries that need to be linked
28044 # after Tcl/Tk. Note that this isn't put into LIBS. If it
28045 # were in LIBS then any link tests after this point would
28046 # try to include things like `$(LIBGUI)', which wouldn't work.
28047 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
28048
28049 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
28050 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
28051 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
28052 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
28053 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
28054 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
28055 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
28056
28057 if test x$gdb_cv_os_cygwin = xyes; then
28058 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
28059 WIN32LDAPP="-Wl,--subsystem,console"
28060 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
28061 fi
28062 fi
28063 fi
28064
28065
28066
28067 subdirs="$subdirs gdbtk"
28068
28069 fi
28070
28071
28072
28073
28074
28075
28076
28077
28078
28079
28080
28081
28082
28083
28084 echo "$as_me:$LINENO: checking for X" >&5
28085 echo $ECHO_N "checking for X... $ECHO_C" >&6
28086
28087
28088 # Check whether --with-x or --without-x was given.
28089 if test "${with_x+set}" = set; then
28090 withval="$with_x"
28091
28092 fi;
28093 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28094 if test "x$with_x" = xno; then
28095 # The user explicitly disabled X.
28096 have_x=disabled
28097 else
28098 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28099 # Both variables are already set.
28100 have_x=yes
28101 else
28102 if test "${ac_cv_have_x+set}" = set; then
28103 echo $ECHO_N "(cached) $ECHO_C" >&6
28104 else
28105 # One or both of the vars are not set, and there is no cached value.
28106 ac_x_includes=no ac_x_libraries=no
28107 rm -fr conftest.dir
28108 if mkdir conftest.dir; then
28109 cd conftest.dir
28110 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28111 cat >Imakefile <<'_ACEOF'
28112 acfindx:
28113 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28114 _ACEOF
28115 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28116 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28117 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28118 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28119 for ac_extension in a so sl; do
28120 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
28121 test -f $ac_im_libdir/libX11.$ac_extension; then
28122 ac_im_usrlibdir=$ac_im_libdir; break
28123 fi
28124 done
28125 # Screen out bogus values from the imake configuration. They are
28126 # bogus both because they are the default anyway, and because
28127 # using them would break gcc on systems where it needs fixed includes.
28128 case $ac_im_incroot in
28129 /usr/include) ;;
28130 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28131 esac
28132 case $ac_im_usrlibdir in
28133 /usr/lib | /lib) ;;
28134 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28135 esac
28136 fi
28137 cd ..
28138 rm -fr conftest.dir
28139 fi
28140
28141 # Standard set of common directories for X headers.
28142 # Check X11 before X11Rn because it is often a symlink to the current release.
28143 ac_x_header_dirs='
28144 /usr/X11/include
28145 /usr/X11R6/include
28146 /usr/X11R5/include
28147 /usr/X11R4/include
28148
28149 /usr/include/X11
28150 /usr/include/X11R6
28151 /usr/include/X11R5
28152 /usr/include/X11R4
28153
28154 /usr/local/X11/include
28155 /usr/local/X11R6/include
28156 /usr/local/X11R5/include
28157 /usr/local/X11R4/include
28158
28159 /usr/local/include/X11
28160 /usr/local/include/X11R6
28161 /usr/local/include/X11R5
28162 /usr/local/include/X11R4
28163
28164 /usr/X386/include
28165 /usr/x386/include
28166 /usr/XFree86/include/X11
28167
28168 /usr/include
28169 /usr/local/include
28170 /usr/unsupported/include
28171 /usr/athena/include
28172 /usr/local/x11r5/include
28173 /usr/lpp/Xamples/include
28174
28175 /usr/openwin/include
28176 /usr/openwin/share/include'
28177
28178 if test "$ac_x_includes" = no; then
28179 # Guess where to find include files, by looking for Intrinsic.h.
28180 # First, try using that file with no special directory specified.
28181 cat >conftest.$ac_ext <<_ACEOF
28182 /* confdefs.h. */
28183 _ACEOF
28184 cat confdefs.h >>conftest.$ac_ext
28185 cat >>conftest.$ac_ext <<_ACEOF
28186 /* end confdefs.h. */
28187 #include <X11/Intrinsic.h>
28188 _ACEOF
28189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28191 ac_status=$?
28192 grep -v '^ *+' conftest.er1 >conftest.err
28193 rm -f conftest.er1
28194 cat conftest.err >&5
28195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); } >/dev/null; then
28197 if test -s conftest.err; then
28198 ac_cpp_err=$ac_c_preproc_warn_flag
28199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28200 else
28201 ac_cpp_err=
28202 fi
28203 else
28204 ac_cpp_err=yes
28205 fi
28206 if test -z "$ac_cpp_err"; then
28207 # We can compile using X headers with no special include directory.
28208 ac_x_includes=
28209 else
28210 echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28212
28213 for ac_dir in $ac_x_header_dirs; do
28214 if test -r "$ac_dir/X11/Intrinsic.h"; then
28215 ac_x_includes=$ac_dir
28216 break
28217 fi
28218 done
28219 fi
28220 rm -f conftest.err conftest.$ac_ext
28221 fi # $ac_x_includes = no
28222
28223 if test "$ac_x_libraries" = no; then
28224 # Check for the libraries.
28225 # See if we find them without any special options.
28226 # Don't add to $LIBS permanently.
28227 ac_save_LIBS=$LIBS
28228 LIBS="-lXt $LIBS"
28229 cat >conftest.$ac_ext <<_ACEOF
28230 /* confdefs.h. */
28231 _ACEOF
28232 cat confdefs.h >>conftest.$ac_ext
28233 cat >>conftest.$ac_ext <<_ACEOF
28234 /* end confdefs.h. */
28235 #include <X11/Intrinsic.h>
28236 int
28237 main ()
28238 {
28239 XtMalloc (0)
28240 ;
28241 return 0;
28242 }
28243 _ACEOF
28244 rm -f conftest.$ac_objext conftest$ac_exeext
28245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28246 (eval $ac_link) 2>conftest.er1
28247 ac_status=$?
28248 grep -v '^ *+' conftest.er1 >conftest.err
28249 rm -f conftest.er1
28250 cat conftest.err >&5
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); } &&
28253 { ac_try='test -z "$ac_c_werror_flag"
28254 || test ! -s conftest.err'
28255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28256 (eval $ac_try) 2>&5
28257 ac_status=$?
28258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28259 (exit $ac_status); }; } &&
28260 { ac_try='test -s conftest$ac_exeext'
28261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28262 (eval $ac_try) 2>&5
28263 ac_status=$?
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); }; }; then
28266 LIBS=$ac_save_LIBS
28267 # We can link X programs with no special library path.
28268 ac_x_libraries=
28269 else
28270 echo "$as_me: failed program was:" >&5
28271 sed 's/^/| /' conftest.$ac_ext >&5
28272
28273 LIBS=$ac_save_LIBS
28274 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28275 do
28276 # Don't even attempt the hair of trying to link an X program!
28277 for ac_extension in a so sl; do
28278 if test -r $ac_dir/libXt.$ac_extension; then
28279 ac_x_libraries=$ac_dir
28280 break 2
28281 fi
28282 done
28283 done
28284 fi
28285 rm -f conftest.err conftest.$ac_objext \
28286 conftest$ac_exeext conftest.$ac_ext
28287 fi # $ac_x_libraries = no
28288
28289 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28290 # Didn't find X anywhere. Cache the known absence of X.
28291 ac_cv_have_x="have_x=no"
28292 else
28293 # Record where we found X for the cache.
28294 ac_cv_have_x="have_x=yes \
28295 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
28296 fi
28297 fi
28298
28299 fi
28300 eval "$ac_cv_have_x"
28301 fi # $with_x != no
28302
28303 if test "$have_x" != yes; then
28304 echo "$as_me:$LINENO: result: $have_x" >&5
28305 echo "${ECHO_T}$have_x" >&6
28306 no_x=yes
28307 else
28308 # If each of the values was on the command line, it overrides each guess.
28309 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28310 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28311 # Update the cache value to reflect the command line values.
28312 ac_cv_have_x="have_x=yes \
28313 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
28314 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
28315 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
28316 fi
28317
28318
28319 # Check whether we should enable the TUI, but only do so if we really
28320 # can.
28321 if test x"$enable_tui" = xyes; then
28322 if test -d $srcdir/tui; then
28323 if test "$ac_cv_search_waddstr" != no; then
28324 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
28325 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
28326 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
28327 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
28328 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
28329 CONFIG_ALL="${CONFIG_ALL} all-tui"
28330 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
28331 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
28332 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
28333 else
28334 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
28335 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
28336 fi
28337 fi
28338 fi
28339
28340 # Unlike the sim directory, whether a simulator is linked is controlled by
28341 # presence of a gdb_sim definition in the target configure.tgt entry.
28342 # This code just checks for a few cases where we'd like to ignore those
28343 # definitions, even when they're present in the '.mt' file. These cases
28344 # are when --disable-sim is specified, or if the simulator directory is
28345 # not part of the source tree.
28346 #
28347 # Check whether --enable-sim or --disable-sim was given.
28348 if test "${enable_sim+set}" = set; then
28349 enableval="$enable_sim"
28350 echo "enable_sim = $enable_sim";
28351 echo "enableval = ${enableval}";
28352 case "${enableval}" in
28353 yes) ignore_sim=false ;;
28354 no) ignore_sim=true ;;
28355 *) ignore_sim=false ;;
28356 esac
28357 else
28358 ignore_sim=false
28359 fi;
28360
28361 if test ! -d "${srcdir}/../sim"; then
28362 ignore_sim=true
28363 fi
28364
28365 SIM=
28366 SIM_OBS=
28367 if test "${ignore_sim}" = "false"; then
28368 if test x"${gdb_sim}" != x ; then
28369 SIM="${gdb_sim}"
28370 SIM_OBS="remote-sim.o"
28371
28372 cat >>confdefs.h <<\_ACEOF
28373 #define WITH_SIM 1
28374 _ACEOF
28375
28376 fi
28377 fi
28378
28379
28380
28381
28382
28383
28384
28385
28386
28387
28388
28389
28390
28391
28392 # List of host floatformats.
28393
28394 cat >>confdefs.h <<_ACEOF
28395 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
28396 _ACEOF
28397
28398
28399 cat >>confdefs.h <<_ACEOF
28400 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
28401 _ACEOF
28402
28403
28404 cat >>confdefs.h <<_ACEOF
28405 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
28406 _ACEOF
28407
28408
28409 # target_subdir is used by the testsuite to find the target libraries.
28410 target_subdir=
28411 if test "${host}" != "${target}"; then
28412 target_subdir="${target_alias}/"
28413 fi
28414
28415
28416 frags=
28417 if test "${gdb_native}" = "yes"; then
28418 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
28419 if test ! -f ${host_makefile_frag}; then
28420 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
28421 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
28422 { (exit 1); exit 1; }; }
28423 fi
28424 frags="$frags $host_makefile_frag"
28425 else
28426 host_makefile_frag=/dev/null
28427 fi
28428
28429
28430
28431
28432 if test "${gdb_native}" = "yes"; then
28433 # We pick this up from the host configuration file (.mh) because we
28434 # do not have a native configuration Makefile fragment.
28435 nativefile=`sed -n '
28436 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
28437 ' ${host_makefile_frag}`
28438 fi
28439
28440
28441 if test x"${gdb_osabi}" != x ; then
28442
28443 cat >>confdefs.h <<_ACEOF
28444 #define GDB_OSABI_DEFAULT $gdb_osabi
28445 _ACEOF
28446
28447 fi
28448
28449 # Enable multi-ice-gdb-server.
28450 # Check whether --enable-multi-ice or --disable-multi-ice was given.
28451 if test "${enable_multi_ice+set}" = set; then
28452 enableval="$enable_multi_ice"
28453 case $enableval in
28454 yes | no)
28455 ;;
28456 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
28457 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
28458 { (exit 1); exit 1; }; } ;;
28459 esac
28460 fi;
28461 if test "x$enable_multi_ice" = xyes; then
28462
28463
28464 subdirs="$subdirs multi-ice"
28465
28466 fi
28467
28468 # We only build gdbserver automatically in a native configuration.
28469 if test "$gdb_native" = "yes"; then
28470 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
28471 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
28472 if test "x$build_gdbserver" = xyes; then
28473 echo "$as_me:$LINENO: result: yes" >&5
28474 echo "${ECHO_T}yes" >&6
28475
28476
28477 subdirs="$subdirs gdbserver"
28478
28479 else
28480 echo "$as_me:$LINENO: result: no" >&5
28481 echo "${ECHO_T}no" >&6
28482 fi
28483 fi
28484
28485 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
28486 # to an empty version.
28487
28488 files=
28489 links=
28490
28491 rm -f nm.h
28492 nm_h=""
28493 if test "${nativefile}" != ""; then
28494 nm_h=nm.h
28495 case "${nativefile}" in
28496 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
28497 * ) GDB_NM_FILE="${nativefile}"
28498 esac
28499 files="${files} ${GDB_NM_FILE}"
28500 links="${links} nm.h"
28501
28502 cat >>confdefs.h <<_ACEOF
28503 #define GDB_NM_FILE "${GDB_NM_FILE}"
28504 _ACEOF
28505
28506 fi
28507
28508
28509 ac_sources="$files"
28510 ac_dests="$links"
28511 while test -n "$ac_sources"; do
28512 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
28513 set $ac_sources; ac_source=$1; shift; ac_sources=$*
28514 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
28515 done
28516 ac_config_links="$ac_config_links $ac_config_links_1"
28517
28518
28519
28520
28521
28522
28523 cat >>confdefs.h <<\_ACEOF
28524 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
28525 _ACEOF
28526
28527
28528
28529
28530
28531 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
28532 if test "${with_libiconv_prefix+set}" = set; then
28533 withval="$with_libiconv_prefix"
28534
28535 for dir in `echo "$withval" | tr : ' '`; do
28536 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
28537 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
28538 done
28539
28540 fi;
28541
28542 echo "$as_me:$LINENO: checking for iconv" >&5
28543 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
28544 if test "${am_cv_func_iconv+set}" = set; then
28545 echo $ECHO_N "(cached) $ECHO_C" >&6
28546 else
28547
28548 am_cv_func_iconv="no, consider installing GNU libiconv"
28549 am_cv_lib_iconv=no
28550 cat >conftest.$ac_ext <<_ACEOF
28551 /* confdefs.h. */
28552 _ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h. */
28556 #include <stdlib.h>
28557 #include <iconv.h>
28558 int
28559 main ()
28560 {
28561 iconv_t cd = iconv_open("","");
28562 iconv(cd,NULL,NULL,NULL,NULL);
28563 iconv_close(cd);
28564 ;
28565 return 0;
28566 }
28567 _ACEOF
28568 rm -f conftest.$ac_objext conftest$ac_exeext
28569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28570 (eval $ac_link) 2>conftest.er1
28571 ac_status=$?
28572 grep -v '^ *+' conftest.er1 >conftest.err
28573 rm -f conftest.er1
28574 cat conftest.err >&5
28575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28576 (exit $ac_status); } &&
28577 { ac_try='test -z "$ac_c_werror_flag"
28578 || test ! -s conftest.err'
28579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28580 (eval $ac_try) 2>&5
28581 ac_status=$?
28582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); }; } &&
28584 { ac_try='test -s conftest$ac_exeext'
28585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28586 (eval $ac_try) 2>&5
28587 ac_status=$?
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); }; }; then
28590 am_cv_func_iconv=yes
28591 else
28592 echo "$as_me: failed program was:" >&5
28593 sed 's/^/| /' conftest.$ac_ext >&5
28594
28595 fi
28596 rm -f conftest.err conftest.$ac_objext \
28597 conftest$ac_exeext conftest.$ac_ext
28598 if test "$am_cv_func_iconv" != yes; then
28599 am_save_LIBS="$LIBS"
28600 LIBS="$LIBS -liconv"
28601 cat >conftest.$ac_ext <<_ACEOF
28602 /* confdefs.h. */
28603 _ACEOF
28604 cat confdefs.h >>conftest.$ac_ext
28605 cat >>conftest.$ac_ext <<_ACEOF
28606 /* end confdefs.h. */
28607 #include <stdlib.h>
28608 #include <iconv.h>
28609 int
28610 main ()
28611 {
28612 iconv_t cd = iconv_open("","");
28613 iconv(cd,NULL,NULL,NULL,NULL);
28614 iconv_close(cd);
28615 ;
28616 return 0;
28617 }
28618 _ACEOF
28619 rm -f conftest.$ac_objext conftest$ac_exeext
28620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28621 (eval $ac_link) 2>conftest.er1
28622 ac_status=$?
28623 grep -v '^ *+' conftest.er1 >conftest.err
28624 rm -f conftest.er1
28625 cat conftest.err >&5
28626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); } &&
28628 { ac_try='test -z "$ac_c_werror_flag"
28629 || test ! -s conftest.err'
28630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28631 (eval $ac_try) 2>&5
28632 ac_status=$?
28633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634 (exit $ac_status); }; } &&
28635 { ac_try='test -s conftest$ac_exeext'
28636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28637 (eval $ac_try) 2>&5
28638 ac_status=$?
28639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640 (exit $ac_status); }; }; then
28641 am_cv_lib_iconv=yes
28642 am_cv_func_iconv=yes
28643 else
28644 echo "$as_me: failed program was:" >&5
28645 sed 's/^/| /' conftest.$ac_ext >&5
28646
28647 fi
28648 rm -f conftest.err conftest.$ac_objext \
28649 conftest$ac_exeext conftest.$ac_ext
28650 LIBS="$am_save_LIBS"
28651 fi
28652
28653 fi
28654 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28655 echo "${ECHO_T}$am_cv_func_iconv" >&6
28656 if test "$am_cv_func_iconv" = yes; then
28657
28658 cat >>confdefs.h <<\_ACEOF
28659 #define HAVE_ICONV 1
28660 _ACEOF
28661
28662 echo "$as_me:$LINENO: checking for iconv declaration" >&5
28663 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
28664 if test "${am_cv_proto_iconv+set}" = set; then
28665 echo $ECHO_N "(cached) $ECHO_C" >&6
28666 else
28667
28668 cat >conftest.$ac_ext <<_ACEOF
28669 /* confdefs.h. */
28670 _ACEOF
28671 cat confdefs.h >>conftest.$ac_ext
28672 cat >>conftest.$ac_ext <<_ACEOF
28673 /* end confdefs.h. */
28674
28675 #include <stdlib.h>
28676 #include <iconv.h>
28677 extern
28678 #ifdef __cplusplus
28679 "C"
28680 #endif
28681 #if defined(__STDC__) || defined(__cplusplus)
28682 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28683 #else
28684 size_t iconv();
28685 #endif
28686
28687 int
28688 main ()
28689 {
28690
28691 ;
28692 return 0;
28693 }
28694 _ACEOF
28695 rm -f conftest.$ac_objext
28696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28697 (eval $ac_compile) 2>conftest.er1
28698 ac_status=$?
28699 grep -v '^ *+' conftest.er1 >conftest.err
28700 rm -f conftest.er1
28701 cat conftest.err >&5
28702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703 (exit $ac_status); } &&
28704 { ac_try='test -z "$ac_c_werror_flag"
28705 || test ! -s conftest.err'
28706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28707 (eval $ac_try) 2>&5
28708 ac_status=$?
28709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710 (exit $ac_status); }; } &&
28711 { ac_try='test -s conftest.$ac_objext'
28712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28713 (eval $ac_try) 2>&5
28714 ac_status=$?
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); }; }; then
28717 am_cv_proto_iconv_arg1=""
28718 else
28719 echo "$as_me: failed program was:" >&5
28720 sed 's/^/| /' conftest.$ac_ext >&5
28721
28722 am_cv_proto_iconv_arg1="const"
28723 fi
28724 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28725 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);"
28726 fi
28727
28728 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
28729 echo "$as_me:$LINENO: result: ${ac_t:-
28730 }$am_cv_proto_iconv" >&5
28731 echo "${ECHO_T}${ac_t:-
28732 }$am_cv_proto_iconv" >&6
28733
28734 cat >>confdefs.h <<_ACEOF
28735 #define ICONV_CONST $am_cv_proto_iconv_arg1
28736 _ACEOF
28737
28738 fi
28739 LIBICONV=
28740 if test "$am_cv_lib_iconv" = yes; then
28741 LIBICONV="-liconv"
28742 fi
28743
28744
28745
28746 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
28747 ac_config_commands="$ac_config_commands default"
28748 cat >confcache <<\_ACEOF
28749 # This file is a shell script that caches the results of configure
28750 # tests run on this system so they can be shared between configure
28751 # scripts and configure runs, see configure's option --config-cache.
28752 # It is not useful on other systems. If it contains results you don't
28753 # want to keep, you may remove or edit it.
28754 #
28755 # config.status only pays attention to the cache file if you give it
28756 # the --recheck option to rerun configure.
28757 #
28758 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28759 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28760 # following values.
28761
28762 _ACEOF
28763
28764 # The following way of writing the cache mishandles newlines in values,
28765 # but we know of no workaround that is simple, portable, and efficient.
28766 # So, don't put newlines in cache variables' values.
28767 # Ultrix sh set writes to stderr and can't be redirected directly,
28768 # and sets the high bit in the cache file unless we assign to the vars.
28769 {
28770 (set) 2>&1 |
28771 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28772 *ac_space=\ *)
28773 # `set' does not quote correctly, so add quotes (double-quote
28774 # substitution turns \\\\ into \\, and sed turns \\ into \).
28775 sed -n \
28776 "s/'/'\\\\''/g;
28777 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28778 ;;
28779 *)
28780 # `set' quotes correctly as required by POSIX, so do not add quotes.
28781 sed -n \
28782 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
28783 ;;
28784 esac;
28785 } |
28786 sed '
28787 t clear
28788 : clear
28789 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28790 t end
28791 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28792 : end' >>confcache
28793 if diff $cache_file confcache >/dev/null 2>&1; then :; else
28794 if test -w $cache_file; then
28795 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
28796 cat confcache >$cache_file
28797 else
28798 echo "not updating unwritable cache $cache_file"
28799 fi
28800 fi
28801 rm -f confcache
28802
28803 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28804 # Let make expand exec_prefix.
28805 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28806
28807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
28808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28809 # trailing colons and then remove the whole line if VPATH becomes empty
28810 # (actually we leave an empty line to preserve line numbers).
28811 if test "x$srcdir" = x.; then
28812 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28813 s/:*\$(srcdir):*/:/;
28814 s/:*\${srcdir}:*/:/;
28815 s/:*@srcdir@:*/:/;
28816 s/^\([^=]*=[ ]*\):*/\1/;
28817 s/:*$//;
28818 s/^[^=]*=[ ]*$//;
28819 }'
28820 fi
28821
28822 DEFS=-DHAVE_CONFIG_H
28823
28824 ac_libobjs=
28825 ac_ltlibobjs=
28826 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28827 # 1. Remove the extension, and $U if already installed.
28828 ac_i=`echo "$ac_i" |
28829 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28830 # 2. Add them.
28831 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28832 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
28833 done
28834 LIBOBJS=$ac_libobjs
28835
28836 LTLIBOBJS=$ac_ltlibobjs
28837
28838
28839 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28840 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28841 Usually this means the macro was only invoked conditionally." >&5
28842 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28843 Usually this means the macro was only invoked conditionally." >&2;}
28844 { (exit 1); exit 1; }; }
28845 fi
28846 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28847 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
28848 Usually this means the macro was only invoked conditionally." >&5
28849 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
28850 Usually this means the macro was only invoked conditionally." >&2;}
28851 { (exit 1); exit 1; }; }
28852 fi
28853
28854 gl_libobjs=
28855 gl_ltlibobjs=
28856 if test -n "$gl_LIBOBJS"; then
28857 # Remove the extension.
28858 sed_drop_objext='s/\.o$//;s/\.obj$//'
28859 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
28860 gl_libobjs="$gl_libobjs $i.$ac_objext"
28861 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
28862 done
28863 fi
28864 gl_LIBOBJS=$gl_libobjs
28865
28866 gl_LTLIBOBJS=$gl_ltlibobjs
28867
28868
28869
28870 gltests_libobjs=
28871 gltests_ltlibobjs=
28872 if test -n "$gltests_LIBOBJS"; then
28873 # Remove the extension.
28874 sed_drop_objext='s/\.o$//;s/\.obj$//'
28875 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
28876 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
28877 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
28878 done
28879 fi
28880 gltests_LIBOBJS=$gltests_libobjs
28881
28882 gltests_LTLIBOBJS=$gltests_ltlibobjs
28883
28884
28885 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28886 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28887 Usually this means the macro was only invoked conditionally." >&5
28888 echo "$as_me: error: conditional \"AMDEP\" was never defined.
28889 Usually this means the macro was only invoked conditionally." >&2;}
28890 { (exit 1); exit 1; }; }
28891 fi
28892 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28893 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28894 Usually this means the macro was only invoked conditionally." >&5
28895 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28896 Usually this means the macro was only invoked conditionally." >&2;}
28897 { (exit 1); exit 1; }; }
28898 fi
28899
28900 : ${CONFIG_STATUS=./config.status}
28901 ac_clean_files_save=$ac_clean_files
28902 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28903 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28904 echo "$as_me: creating $CONFIG_STATUS" >&6;}
28905 cat >$CONFIG_STATUS <<_ACEOF
28906 #! $SHELL
28907 # Generated by $as_me.
28908 # Run this file to recreate the current configuration.
28909 # Compiler output produced by configure, useful for debugging
28910 # configure, is in config.log if it exists.
28911
28912 debug=false
28913 ac_cs_recheck=false
28914 ac_cs_silent=false
28915 SHELL=\${CONFIG_SHELL-$SHELL}
28916 _ACEOF
28917
28918 cat >>$CONFIG_STATUS <<\_ACEOF
28919 ## --------------------- ##
28920 ## M4sh Initialization. ##
28921 ## --------------------- ##
28922
28923 # Be Bourne compatible
28924 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28925 emulate sh
28926 NULLCMD=:
28927 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28928 # is contrary to our usage. Disable this feature.
28929 alias -g '${1+"$@"}'='"$@"'
28930 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28931 set -o posix
28932 fi
28933 DUALCASE=1; export DUALCASE # for MKS sh
28934
28935 # Support unset when possible.
28936 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28937 as_unset=unset
28938 else
28939 as_unset=false
28940 fi
28941
28942
28943 # Work around bugs in pre-3.0 UWIN ksh.
28944 $as_unset ENV MAIL MAILPATH
28945 PS1='$ '
28946 PS2='> '
28947 PS4='+ '
28948
28949 # NLS nuisances.
28950 for as_var in \
28951 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28952 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28953 LC_TELEPHONE LC_TIME
28954 do
28955 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28956 eval $as_var=C; export $as_var
28957 else
28958 $as_unset $as_var
28959 fi
28960 done
28961
28962 # Required to use basename.
28963 if expr a : '\(a\)' >/dev/null 2>&1; then
28964 as_expr=expr
28965 else
28966 as_expr=false
28967 fi
28968
28969 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
28970 as_basename=basename
28971 else
28972 as_basename=false
28973 fi
28974
28975
28976 # Name of the executable.
28977 as_me=`$as_basename "$0" ||
28978 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28979 X"$0" : 'X\(//\)$' \| \
28980 X"$0" : 'X\(/\)$' \| \
28981 . : '\(.\)' 2>/dev/null ||
28982 echo X/"$0" |
28983 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28984 /^X\/\(\/\/\)$/{ s//\1/; q; }
28985 /^X\/\(\/\).*/{ s//\1/; q; }
28986 s/.*/./; q'`
28987
28988
28989 # PATH needs CR, and LINENO needs CR and PATH.
28990 # Avoid depending upon Character Ranges.
28991 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28992 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28993 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28994 as_cr_digits='0123456789'
28995 as_cr_alnum=$as_cr_Letters$as_cr_digits
28996
28997 # The user is always right.
28998 if test "${PATH_SEPARATOR+set}" != set; then
28999 echo "#! /bin/sh" >conf$$.sh
29000 echo "exit 0" >>conf$$.sh
29001 chmod +x conf$$.sh
29002 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29003 PATH_SEPARATOR=';'
29004 else
29005 PATH_SEPARATOR=:
29006 fi
29007 rm -f conf$$.sh
29008 fi
29009
29010
29011 as_lineno_1=$LINENO
29012 as_lineno_2=$LINENO
29013 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29014 test "x$as_lineno_1" != "x$as_lineno_2" &&
29015 test "x$as_lineno_3" = "x$as_lineno_2" || {
29016 # Find who we are. Look in the path if we contain no path at all
29017 # relative or not.
29018 case $0 in
29019 *[\\/]* ) as_myself=$0 ;;
29020 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29021 for as_dir in $PATH
29022 do
29023 IFS=$as_save_IFS
29024 test -z "$as_dir" && as_dir=.
29025 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29026 done
29027
29028 ;;
29029 esac
29030 # We did not find ourselves, most probably we were run as `sh COMMAND'
29031 # in which case we are not to be found in the path.
29032 if test "x$as_myself" = x; then
29033 as_myself=$0
29034 fi
29035 if test ! -f "$as_myself"; then
29036 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29037 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29038 { (exit 1); exit 1; }; }
29039 fi
29040 case $CONFIG_SHELL in
29041 '')
29042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29043 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29044 do
29045 IFS=$as_save_IFS
29046 test -z "$as_dir" && as_dir=.
29047 for as_base in sh bash ksh sh5; do
29048 case $as_dir in
29049 /*)
29050 if ("$as_dir/$as_base" -c '
29051 as_lineno_1=$LINENO
29052 as_lineno_2=$LINENO
29053 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29054 test "x$as_lineno_1" != "x$as_lineno_2" &&
29055 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29056 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29057 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29058 CONFIG_SHELL=$as_dir/$as_base
29059 export CONFIG_SHELL
29060 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29061 fi;;
29062 esac
29063 done
29064 done
29065 ;;
29066 esac
29067
29068 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29069 # uniformly replaced by the line number. The first 'sed' inserts a
29070 # line-number line before each line; the second 'sed' does the real
29071 # work. The second script uses 'N' to pair each line-number line
29072 # with the numbered line, and appends trailing '-' during
29073 # substitution so that $LINENO is not a special case at line end.
29074 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29075 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29076 sed '=' <$as_myself |
29077 sed '
29078 N
29079 s,$,-,
29080 : loop
29081 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29082 t loop
29083 s,-$,,
29084 s,^['$as_cr_digits']*\n,,
29085 ' >$as_me.lineno &&
29086 chmod +x $as_me.lineno ||
29087 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29088 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29089 { (exit 1); exit 1; }; }
29090
29091 # Don't try to exec as it changes $[0], causing all sort of problems
29092 # (the dirname of $[0] is not the place where we might find the
29093 # original and so on. Autoconf is especially sensible to this).
29094 . ./$as_me.lineno
29095 # Exit status is that of the last command.
29096 exit
29097 }
29098
29099
29100 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29101 *c*,-n*) ECHO_N= ECHO_C='
29102 ' ECHO_T=' ' ;;
29103 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29104 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29105 esac
29106
29107 if expr a : '\(a\)' >/dev/null 2>&1; then
29108 as_expr=expr
29109 else
29110 as_expr=false
29111 fi
29112
29113 rm -f conf$$ conf$$.exe conf$$.file
29114 echo >conf$$.file
29115 if ln -s conf$$.file conf$$ 2>/dev/null; then
29116 # We could just check for DJGPP; but this test a) works b) is more generic
29117 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29118 if test -f conf$$.exe; then
29119 # Don't use ln at all; we don't have any links
29120 as_ln_s='cp -p'
29121 else
29122 as_ln_s='ln -s'
29123 fi
29124 elif ln conf$$.file conf$$ 2>/dev/null; then
29125 as_ln_s=ln
29126 else
29127 as_ln_s='cp -p'
29128 fi
29129 rm -f conf$$ conf$$.exe conf$$.file
29130
29131 if mkdir -p . 2>/dev/null; then
29132 as_mkdir_p=:
29133 else
29134 test -d ./-p && rmdir ./-p
29135 as_mkdir_p=false
29136 fi
29137
29138 as_executable_p="test -f"
29139
29140 # Sed expression to map a string onto a valid CPP name.
29141 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29142
29143 # Sed expression to map a string onto a valid variable name.
29144 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29145
29146
29147 # IFS
29148 # We need space, tab and new line, in precisely that order.
29149 as_nl='
29150 '
29151 IFS=" $as_nl"
29152
29153 # CDPATH.
29154 $as_unset CDPATH
29155
29156 exec 6>&1
29157
29158 # Open the log real soon, to keep \$[0] and so on meaningful, and to
29159 # report actual input values of CONFIG_FILES etc. instead of their
29160 # values after options handling. Logging --version etc. is OK.
29161 exec 5>>config.log
29162 {
29163 echo
29164 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29165 ## Running $as_me. ##
29166 _ASBOX
29167 } >&5
29168 cat >&5 <<_CSEOF
29169
29170 This file was extended by $as_me, which was
29171 generated by GNU Autoconf 2.59. Invocation command line was
29172
29173 CONFIG_FILES = $CONFIG_FILES
29174 CONFIG_HEADERS = $CONFIG_HEADERS
29175 CONFIG_LINKS = $CONFIG_LINKS
29176 CONFIG_COMMANDS = $CONFIG_COMMANDS
29177 $ $0 $@
29178
29179 _CSEOF
29180 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29181 echo >&5
29182 _ACEOF
29183
29184 # Files that config.status was made for.
29185 if test -n "$ac_config_files"; then
29186 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29187 fi
29188
29189 if test -n "$ac_config_headers"; then
29190 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29191 fi
29192
29193 if test -n "$ac_config_links"; then
29194 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29195 fi
29196
29197 if test -n "$ac_config_commands"; then
29198 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29199 fi
29200
29201 cat >>$CONFIG_STATUS <<\_ACEOF
29202
29203 ac_cs_usage="\
29204 \`$as_me' instantiates files from templates according to the
29205 current configuration.
29206
29207 Usage: $0 [OPTIONS] [FILE]...
29208
29209 -h, --help print this help, then exit
29210 -V, --version print version number, then exit
29211 -q, --quiet do not print progress messages
29212 -d, --debug don't remove temporary files
29213 --recheck update $as_me by reconfiguring in the same conditions
29214 --file=FILE[:TEMPLATE]
29215 instantiate the configuration file FILE
29216 --header=FILE[:TEMPLATE]
29217 instantiate the configuration header FILE
29218
29219 Configuration files:
29220 $config_files
29221
29222 Configuration headers:
29223 $config_headers
29224
29225 Configuration links:
29226 $config_links
29227
29228 Configuration commands:
29229 $config_commands
29230
29231 Report bugs to <bug-autoconf@gnu.org>."
29232 _ACEOF
29233
29234 cat >>$CONFIG_STATUS <<_ACEOF
29235 ac_cs_version="\\
29236 config.status
29237 configured by $0, generated by GNU Autoconf 2.59,
29238 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29239
29240 Copyright (C) 2003 Free Software Foundation, Inc.
29241 This config.status script is free software; the Free Software Foundation
29242 gives unlimited permission to copy, distribute and modify it."
29243 srcdir=$srcdir
29244 INSTALL="$INSTALL"
29245 _ACEOF
29246
29247 cat >>$CONFIG_STATUS <<\_ACEOF
29248 # If no file are specified by the user, then we need to provide default
29249 # value. By we need to know if files were specified by the user.
29250 ac_need_defaults=:
29251 while test $# != 0
29252 do
29253 case $1 in
29254 --*=*)
29255 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29256 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
29257 ac_shift=:
29258 ;;
29259 -*)
29260 ac_option=$1
29261 ac_optarg=$2
29262 ac_shift=shift
29263 ;;
29264 *) # This is not an option, so the user has probably given explicit
29265 # arguments.
29266 ac_option=$1
29267 ac_need_defaults=false;;
29268 esac
29269
29270 case $ac_option in
29271 # Handling of the options.
29272 _ACEOF
29273 cat >>$CONFIG_STATUS <<\_ACEOF
29274 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29275 ac_cs_recheck=: ;;
29276 --version | --vers* | -V )
29277 echo "$ac_cs_version"; exit 0 ;;
29278 --he | --h)
29279 # Conflict between --help and --header
29280 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29281 Try \`$0 --help' for more information." >&5
29282 echo "$as_me: error: ambiguous option: $1
29283 Try \`$0 --help' for more information." >&2;}
29284 { (exit 1); exit 1; }; };;
29285 --help | --hel | -h )
29286 echo "$ac_cs_usage"; exit 0 ;;
29287 --debug | --d* | -d )
29288 debug=: ;;
29289 --file | --fil | --fi | --f )
29290 $ac_shift
29291 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29292 ac_need_defaults=false;;
29293 --header | --heade | --head | --hea )
29294 $ac_shift
29295 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29296 ac_need_defaults=false;;
29297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29298 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29299 ac_cs_silent=: ;;
29300
29301 # This is an error.
29302 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29303 Try \`$0 --help' for more information." >&5
29304 echo "$as_me: error: unrecognized option: $1
29305 Try \`$0 --help' for more information." >&2;}
29306 { (exit 1); exit 1; }; } ;;
29307
29308 *) ac_config_targets="$ac_config_targets $1" ;;
29309
29310 esac
29311 shift
29312 done
29313
29314 ac_configure_extra_args=
29315
29316 if $ac_cs_silent; then
29317 exec 6>/dev/null
29318 ac_configure_extra_args="$ac_configure_extra_args --silent"
29319 fi
29320
29321 _ACEOF
29322 cat >>$CONFIG_STATUS <<_ACEOF
29323 if \$ac_cs_recheck; then
29324 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29325 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29326 fi
29327
29328 _ACEOF
29329
29330 cat >>$CONFIG_STATUS <<_ACEOF
29331 #
29332 # INIT-COMMANDS section.
29333 #
29334
29335 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29336
29337 GCC="$GCC"
29338 CC="$CC"
29339 acx_cv_header_stdint="$acx_cv_header_stdint"
29340 acx_cv_type_int8_t="$acx_cv_type_int8_t"
29341 acx_cv_type_int16_t="$acx_cv_type_int16_t"
29342 acx_cv_type_int32_t="$acx_cv_type_int32_t"
29343 acx_cv_type_int64_t="$acx_cv_type_int64_t"
29344 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
29345 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
29346 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
29347 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
29348 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
29349 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
29350 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
29351 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
29352 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
29353
29354
29355 gdb_host_cpu=$gdb_host_cpu
29356 nativefile=$nativefile
29357
29358
29359 _ACEOF
29360
29361
29362
29363 cat >>$CONFIG_STATUS <<\_ACEOF
29364 for ac_config_target in $ac_config_targets
29365 do
29366 case "$ac_config_target" in
29367 # Handling of arguments.
29368 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29369 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
29370 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
29371 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
29372 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
29373 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
29374 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29375 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
29376 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29377 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29378 { (exit 1); exit 1; }; };;
29379 esac
29380 done
29381
29382 # If the user did not use the arguments to specify the items to instantiate,
29383 # then the envvar interface is used. Set only those that are not.
29384 # We use the long form for the default assignment because of an extremely
29385 # bizarre bug on SunOS 4.1.3.
29386 if $ac_need_defaults; then
29387 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29388 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29389 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29390 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29391 fi
29392
29393 # Have a temporary directory for convenience. Make it in the build tree
29394 # simply because there is no reason to put it here, and in addition,
29395 # creating and moving files from /tmp can sometimes cause problems.
29396 # Create a temporary directory, and hook for its removal unless debugging.
29397 $debug ||
29398 {
29399 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29400 trap '{ (exit 1); exit 1; }' 1 2 13 15
29401 }
29402
29403 # Create a (secure) tmp directory for tmp files.
29404
29405 {
29406 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29407 test -n "$tmp" && test -d "$tmp"
29408 } ||
29409 {
29410 tmp=./confstat$$-$RANDOM
29411 (umask 077 && mkdir $tmp)
29412 } ||
29413 {
29414 echo "$me: cannot create a temporary directory in ." >&2
29415 { (exit 1); exit 1; }
29416 }
29417
29418 _ACEOF
29419
29420 cat >>$CONFIG_STATUS <<_ACEOF
29421
29422 #
29423 # CONFIG_FILES section.
29424 #
29425
29426 # No need to generate the scripts if there are no CONFIG_FILES.
29427 # This happens for instance when ./config.status config.h
29428 if test -n "\$CONFIG_FILES"; then
29429 # Protect against being on the right side of a sed subst in config.status.
29430 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29431 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29432 s,@SHELL@,$SHELL,;t t
29433 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29434 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29435 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29436 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29437 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29438 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29439 s,@exec_prefix@,$exec_prefix,;t t
29440 s,@prefix@,$prefix,;t t
29441 s,@program_transform_name@,$program_transform_name,;t t
29442 s,@bindir@,$bindir,;t t
29443 s,@sbindir@,$sbindir,;t t
29444 s,@libexecdir@,$libexecdir,;t t
29445 s,@datadir@,$datadir,;t t
29446 s,@sysconfdir@,$sysconfdir,;t t
29447 s,@sharedstatedir@,$sharedstatedir,;t t
29448 s,@localstatedir@,$localstatedir,;t t
29449 s,@libdir@,$libdir,;t t
29450 s,@includedir@,$includedir,;t t
29451 s,@oldincludedir@,$oldincludedir,;t t
29452 s,@infodir@,$infodir,;t t
29453 s,@mandir@,$mandir,;t t
29454 s,@build_alias@,$build_alias,;t t
29455 s,@host_alias@,$host_alias,;t t
29456 s,@target_alias@,$target_alias,;t t
29457 s,@DEFS@,$DEFS,;t t
29458 s,@ECHO_C@,$ECHO_C,;t t
29459 s,@ECHO_N@,$ECHO_N,;t t
29460 s,@ECHO_T@,$ECHO_T,;t t
29461 s,@LIBS@,$LIBS,;t t
29462 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29463 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29464 s,@MAINT@,$MAINT,;t t
29465 s,@CC@,$CC,;t t
29466 s,@CFLAGS@,$CFLAGS,;t t
29467 s,@LDFLAGS@,$LDFLAGS,;t t
29468 s,@CPPFLAGS@,$CPPFLAGS,;t t
29469 s,@ac_ct_CC@,$ac_ct_CC,;t t
29470 s,@EXEEXT@,$EXEEXT,;t t
29471 s,@OBJEXT@,$OBJEXT,;t t
29472 s,@CPP@,$CPP,;t t
29473 s,@EGREP@,$EGREP,;t t
29474 s,@RANLIB@,$RANLIB,;t t
29475 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
29476 s,@build@,$build,;t t
29477 s,@build_cpu@,$build_cpu,;t t
29478 s,@build_vendor@,$build_vendor,;t t
29479 s,@build_os@,$build_os,;t t
29480 s,@host@,$host,;t t
29481 s,@host_cpu@,$host_cpu,;t t
29482 s,@host_vendor@,$host_vendor,;t t
29483 s,@host_os@,$host_os,;t t
29484 s,@target@,$target,;t t
29485 s,@target_cpu@,$target_cpu,;t t
29486 s,@target_vendor@,$target_vendor,;t t
29487 s,@target_os@,$target_os,;t t
29488 s,@USE_NLS@,$USE_NLS,;t t
29489 s,@LIBINTL@,$LIBINTL,;t t
29490 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
29491 s,@INCINTL@,$INCINTL,;t t
29492 s,@XGETTEXT@,$XGETTEXT,;t t
29493 s,@GMSGFMT@,$GMSGFMT,;t t
29494 s,@POSUB@,$POSUB,;t t
29495 s,@CATALOGS@,$CATALOGS,;t t
29496 s,@DATADIRNAME@,$DATADIRNAME,;t t
29497 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
29498 s,@GENCAT@,$GENCAT,;t t
29499 s,@CATOBJEXT@,$CATOBJEXT,;t t
29500 s,@localedir@,$localedir,;t t
29501 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
29502 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
29503 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
29504 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
29505 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
29506 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
29507 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
29508 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
29509 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
29510 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
29511 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
29512 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
29513 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
29514 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
29515 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
29516 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
29517 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
29518 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
29519 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
29520 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
29521 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
29522 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
29523 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
29524 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
29525 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
29526 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
29527 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
29528 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
29529 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
29530 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
29531 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
29532 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
29533 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
29534 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
29535 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
29536 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
29537 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
29538 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
29539 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
29540 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
29541 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
29542 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
29543 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
29544 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
29545 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
29546 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
29547 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
29548 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
29549 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
29550 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
29551 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
29552 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
29553 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
29554 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
29555 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
29556 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
29557 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
29558 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
29559 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
29560 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
29561 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
29562 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
29563 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
29564 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
29565 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
29566 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
29567 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
29568 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
29569 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
29570 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
29571 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
29572 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
29573 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
29574 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
29575 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
29576 s,@STDINT_H@,$STDINT_H,;t t
29577 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
29578 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
29579 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
29580 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
29581 s,@WCHAR_H@,$WCHAR_H,;t t
29582 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
29583 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
29584 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
29585 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
29586 s,@PACKAGE@,$PACKAGE,;t t
29587 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29588 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29589 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
29590 s,@CYGPATH_W@,$CYGPATH_W,;t t
29591 s,@VERSION@,$VERSION,;t t
29592 s,@ACLOCAL@,$ACLOCAL,;t t
29593 s,@AUTOCONF@,$AUTOCONF,;t t
29594 s,@AUTOMAKE@,$AUTOMAKE,;t t
29595 s,@AUTOHEADER@,$AUTOHEADER,;t t
29596 s,@MAKEINFO@,$MAKEINFO,;t t
29597 s,@install_sh@,$install_sh,;t t
29598 s,@STRIP@,$STRIP,;t t
29599 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29600 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29601 s,@mkdir_p@,$mkdir_p,;t t
29602 s,@AWK@,$AWK,;t t
29603 s,@SET_MAKE@,$SET_MAKE,;t t
29604 s,@am__leading_dot@,$am__leading_dot,;t t
29605 s,@AMTAR@,$AMTAR,;t t
29606 s,@am__tar@,$am__tar,;t t
29607 s,@am__untar@,$am__untar,;t t
29608 s,@DEPDIR@,$DEPDIR,;t t
29609 s,@am__include@,$am__include,;t t
29610 s,@am__quote@,$am__quote,;t t
29611 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29612 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29613 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29614 s,@CCDEPMODE@,$CCDEPMODE,;t t
29615 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29616 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29617 s,@subdirs@,$subdirs,;t t
29618 s,@TARGET_OBS@,$TARGET_OBS,;t t
29619 s,@PKGVERSION@,$PKGVERSION,;t t
29620 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
29621 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
29622 s,@LN_S@,$LN_S,;t t
29623 s,@YACC@,$YACC,;t t
29624 s,@AR@,$AR,;t t
29625 s,@ac_ct_AR@,$ac_ct_AR,;t t
29626 s,@DLLTOOL@,$DLLTOOL,;t t
29627 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
29628 s,@WINDRES@,$WINDRES,;t t
29629 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
29630 s,@MIG@,$MIG,;t t
29631 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
29632 s,@READLINE@,$READLINE,;t t
29633 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
29634 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
29635 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
29636 s,@LIBEXPAT@,$LIBEXPAT,;t t
29637 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
29638 s,@ALLOCA@,$ALLOCA,;t t
29639 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
29640 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
29641 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
29642 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
29643 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
29644 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
29645 s,@WIN32LIBS@,$WIN32LIBS,;t t
29646 s,@LIBGUI@,$LIBGUI,;t t
29647 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
29648 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
29649 s,@TCL_VERSION@,$TCL_VERSION,;t t
29650 s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
29651 s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
29652 s,@TCL_CC@,$TCL_CC,;t t
29653 s,@TCL_DEFS@,$TCL_DEFS,;t t
29654 s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
29655 s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
29656 s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
29657 s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
29658 s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
29659 s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
29660 s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
29661 s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
29662 s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
29663 s,@TCL_RANLIB@,$TCL_RANLIB,;t t
29664 s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
29665 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
29666 s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
29667 s,@TK_VERSION@,$TK_VERSION,;t t
29668 s,@TK_DEFS@,$TK_DEFS,;t t
29669 s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
29670 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
29671 s,@TK_XLIBSW@,$TK_XLIBSW,;t t
29672 s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
29673 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
29674 s,@TCLHDIR@,$TCLHDIR,;t t
29675 s,@TKHDIR@,$TKHDIR,;t t
29676 s,@ITCLHDIR@,$ITCLHDIR,;t t
29677 s,@ITKHDIR@,$ITKHDIR,;t t
29678 s,@ITCL_VERSION@,$ITCL_VERSION,;t t
29679 s,@ITCL_DEFS@,$ITCL_DEFS,;t t
29680 s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
29681 s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
29682 s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
29683 s,@ITK_VERSION@,$ITK_VERSION,;t t
29684 s,@ITK_DEFS@,$ITK_DEFS,;t t
29685 s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
29686 s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
29687 s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
29688 s,@X_CFLAGS@,$X_CFLAGS,;t t
29689 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
29690 s,@X_LIBS@,$X_LIBS,;t t
29691 s,@TCL_DEPS@,$TCL_DEPS,;t t
29692 s,@TK_DEPS@,$TK_DEPS,;t t
29693 s,@ITCLLIB@,$ITCLLIB,;t t
29694 s,@ITCL_DEPS@,$ITCL_DEPS,;t t
29695 s,@ITKLIB@,$ITKLIB,;t t
29696 s,@ITK_DEPS@,$ITK_DEPS,;t t
29697 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
29698 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
29699 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
29700 s,@SIM@,$SIM,;t t
29701 s,@SIM_OBS@,$SIM_OBS,;t t
29702 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
29703 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
29704 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
29705 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
29706 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
29707 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
29708 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
29709 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
29710 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
29711 s,@target_subdir@,$target_subdir,;t t
29712 s,@frags@,$frags,;t t
29713 s,@nm_h@,$nm_h,;t t
29714 s,@LIBICONV@,$LIBICONV,;t t
29715 s,@LIBOBJS@,$LIBOBJS,;t t
29716 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
29717 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
29718 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
29719 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
29720 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
29721 /@host_makefile_frag@/r $host_makefile_frag
29722 s,@host_makefile_frag@,,;t t
29723 CEOF
29724
29725 _ACEOF
29726
29727 cat >>$CONFIG_STATUS <<\_ACEOF
29728 # Split the substitutions into bite-sized pieces for seds with
29729 # small command number limits, like on Digital OSF/1 and HP-UX.
29730 ac_max_sed_lines=48
29731 ac_sed_frag=1 # Number of current file.
29732 ac_beg=1 # First line for current file.
29733 ac_end=$ac_max_sed_lines # Line after last line for current file.
29734 ac_more_lines=:
29735 ac_sed_cmds=
29736 while $ac_more_lines; do
29737 if test $ac_beg -gt 1; then
29738 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29739 else
29740 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29741 fi
29742 if test ! -s $tmp/subs.frag; then
29743 ac_more_lines=false
29744 else
29745 # The purpose of the label and of the branching condition is to
29746 # speed up the sed processing (if there are no `@' at all, there
29747 # is no need to browse any of the substitutions).
29748 # These are the two extra sed commands mentioned above.
29749 (echo ':t
29750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29751 if test -z "$ac_sed_cmds"; then
29752 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29753 else
29754 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29755 fi
29756 ac_sed_frag=`expr $ac_sed_frag + 1`
29757 ac_beg=$ac_end
29758 ac_end=`expr $ac_end + $ac_max_sed_lines`
29759 fi
29760 done
29761 if test -z "$ac_sed_cmds"; then
29762 ac_sed_cmds=cat
29763 fi
29764 fi # test -n "$CONFIG_FILES"
29765
29766 _ACEOF
29767 cat >>$CONFIG_STATUS <<\_ACEOF
29768 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29769 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29770 case $ac_file in
29771 - | *:- | *:-:* ) # input from stdin
29772 cat >$tmp/stdin
29773 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29775 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29776 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29777 * ) ac_file_in=$ac_file.in ;;
29778 esac
29779
29780 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29781 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
29782 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29783 X"$ac_file" : 'X\(//\)[^/]' \| \
29784 X"$ac_file" : 'X\(//\)$' \| \
29785 X"$ac_file" : 'X\(/\)' \| \
29786 . : '\(.\)' 2>/dev/null ||
29787 echo X"$ac_file" |
29788 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29789 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29790 /^X\(\/\/\)$/{ s//\1/; q; }
29791 /^X\(\/\).*/{ s//\1/; q; }
29792 s/.*/./; q'`
29793 { if $as_mkdir_p; then
29794 mkdir -p "$ac_dir"
29795 else
29796 as_dir="$ac_dir"
29797 as_dirs=
29798 while test ! -d "$as_dir"; do
29799 as_dirs="$as_dir $as_dirs"
29800 as_dir=`(dirname "$as_dir") 2>/dev/null ||
29801 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29802 X"$as_dir" : 'X\(//\)[^/]' \| \
29803 X"$as_dir" : 'X\(//\)$' \| \
29804 X"$as_dir" : 'X\(/\)' \| \
29805 . : '\(.\)' 2>/dev/null ||
29806 echo X"$as_dir" |
29807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29809 /^X\(\/\/\)$/{ s//\1/; q; }
29810 /^X\(\/\).*/{ s//\1/; q; }
29811 s/.*/./; q'`
29812 done
29813 test ! -n "$as_dirs" || mkdir $as_dirs
29814 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29815 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
29816 { (exit 1); exit 1; }; }; }
29817
29818 ac_builddir=.
29819
29820 if test "$ac_dir" != .; then
29821 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
29822 # A "../" for each directory in $ac_dir_suffix.
29823 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29824 else
29825 ac_dir_suffix= ac_top_builddir=
29826 fi
29827
29828 case $srcdir in
29829 .) # No --srcdir option. We are building in place.
29830 ac_srcdir=.
29831 if test -z "$ac_top_builddir"; then
29832 ac_top_srcdir=.
29833 else
29834 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29835 fi ;;
29836 [\\/]* | ?:[\\/]* ) # Absolute path.
29837 ac_srcdir=$srcdir$ac_dir_suffix;
29838 ac_top_srcdir=$srcdir ;;
29839 *) # Relative path.
29840 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29841 ac_top_srcdir=$ac_top_builddir$srcdir ;;
29842 esac
29843
29844 # Do not use `cd foo && pwd` to compute absolute paths, because
29845 # the directories may not exist.
29846 case `pwd` in
29847 .) ac_abs_builddir="$ac_dir";;
29848 *)
29849 case "$ac_dir" in
29850 .) ac_abs_builddir=`pwd`;;
29851 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29852 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29853 esac;;
29854 esac
29855 case $ac_abs_builddir in
29856 .) ac_abs_top_builddir=${ac_top_builddir}.;;
29857 *)
29858 case ${ac_top_builddir}. in
29859 .) ac_abs_top_builddir=$ac_abs_builddir;;
29860 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29861 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29862 esac;;
29863 esac
29864 case $ac_abs_builddir in
29865 .) ac_abs_srcdir=$ac_srcdir;;
29866 *)
29867 case $ac_srcdir in
29868 .) ac_abs_srcdir=$ac_abs_builddir;;
29869 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29870 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29871 esac;;
29872 esac
29873 case $ac_abs_builddir in
29874 .) ac_abs_top_srcdir=$ac_top_srcdir;;
29875 *)
29876 case $ac_top_srcdir in
29877 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29878 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29879 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29880 esac;;
29881 esac
29882
29883
29884 case $INSTALL in
29885 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
29886 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
29887 esac
29888
29889 if test x"$ac_file" != x-; then
29890 { echo "$as_me:$LINENO: creating $ac_file" >&5
29891 echo "$as_me: creating $ac_file" >&6;}
29892 rm -f "$ac_file"
29893 fi
29894 # Let's still pretend it is `configure' which instantiates (i.e., don't
29895 # use $as_me), people would be surprised to read:
29896 # /* config.h. Generated by config.status. */
29897 if test x"$ac_file" = x-; then
29898 configure_input=
29899 else
29900 configure_input="$ac_file. "
29901 fi
29902 configure_input=$configure_input"Generated from `echo $ac_file_in |
29903 sed 's,.*/,,'` by configure."
29904
29905 # First look for the input files in the build tree, otherwise in the
29906 # src tree.
29907 ac_file_inputs=`IFS=:
29908 for f in $ac_file_in; do
29909 case $f in
29910 -) echo $tmp/stdin ;;
29911 [\\/$]*)
29912 # Absolute (can't be DOS-style, as IFS=:)
29913 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29914 echo "$as_me: error: cannot find input file: $f" >&2;}
29915 { (exit 1); exit 1; }; }
29916 echo "$f";;
29917 *) # Relative
29918 if test -f "$f"; then
29919 # Build tree
29920 echo "$f"
29921 elif test -f "$srcdir/$f"; then
29922 # Source tree
29923 echo "$srcdir/$f"
29924 else
29925 # /dev/null tree
29926 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29927 echo "$as_me: error: cannot find input file: $f" >&2;}
29928 { (exit 1); exit 1; }; }
29929 fi;;
29930 esac
29931 done` || { (exit 1); exit 1; }
29932 _ACEOF
29933 cat >>$CONFIG_STATUS <<_ACEOF
29934 sed "$ac_vpsub
29935 $extrasub
29936 _ACEOF
29937 cat >>$CONFIG_STATUS <<\_ACEOF
29938 :t
29939 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
29940 s,@configure_input@,$configure_input,;t t
29941 s,@srcdir@,$ac_srcdir,;t t
29942 s,@abs_srcdir@,$ac_abs_srcdir,;t t
29943 s,@top_srcdir@,$ac_top_srcdir,;t t
29944 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29945 s,@builddir@,$ac_builddir,;t t
29946 s,@abs_builddir@,$ac_abs_builddir,;t t
29947 s,@top_builddir@,$ac_top_builddir,;t t
29948 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29949 s,@INSTALL@,$ac_INSTALL,;t t
29950 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29951 rm -f $tmp/stdin
29952 if test x"$ac_file" != x-; then
29953 mv $tmp/out $ac_file
29954 else
29955 cat $tmp/out
29956 rm -f $tmp/out
29957 fi
29958
29959 done
29960 _ACEOF
29961 cat >>$CONFIG_STATUS <<\_ACEOF
29962
29963 #
29964 # CONFIG_HEADER section.
29965 #
29966
29967 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29968 # NAME is the cpp macro being defined and VALUE is the value it is being given.
29969 #
29970 # ac_d sets the value in "#define NAME VALUE" lines.
29971 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29972 ac_dB='[ ].*$,\1#\2'
29973 ac_dC=' '
29974 ac_dD=',;t'
29975 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29976 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29977 ac_uB='$,\1#\2define\3'
29978 ac_uC=' '
29979 ac_uD=',;t'
29980
29981 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29982 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29983 case $ac_file in
29984 - | *:- | *:-:* ) # input from stdin
29985 cat >$tmp/stdin
29986 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29988 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29990 * ) ac_file_in=$ac_file.in ;;
29991 esac
29992
29993 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
29994 echo "$as_me: creating $ac_file" >&6;}
29995
29996 # First look for the input files in the build tree, otherwise in the
29997 # src tree.
29998 ac_file_inputs=`IFS=:
29999 for f in $ac_file_in; do
30000 case $f in
30001 -) echo $tmp/stdin ;;
30002 [\\/$]*)
30003 # Absolute (can't be DOS-style, as IFS=:)
30004 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30005 echo "$as_me: error: cannot find input file: $f" >&2;}
30006 { (exit 1); exit 1; }; }
30007 # Do quote $f, to prevent DOS paths from being IFS'd.
30008 echo "$f";;
30009 *) # Relative
30010 if test -f "$f"; then
30011 # Build tree
30012 echo "$f"
30013 elif test -f "$srcdir/$f"; then
30014 # Source tree
30015 echo "$srcdir/$f"
30016 else
30017 # /dev/null tree
30018 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30019 echo "$as_me: error: cannot find input file: $f" >&2;}
30020 { (exit 1); exit 1; }; }
30021 fi;;
30022 esac
30023 done` || { (exit 1); exit 1; }
30024 # Remove the trailing spaces.
30025 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30026
30027 _ACEOF
30028
30029 # Transform confdefs.h into two sed scripts, `conftest.defines' and
30030 # `conftest.undefs', that substitutes the proper values into
30031 # config.h.in to produce config.h. The first handles `#define'
30032 # templates, and the second `#undef' templates.
30033 # And first: Protect against being on the right side of a sed subst in
30034 # config.status. Protect against being in an unquoted here document
30035 # in config.status.
30036 rm -f conftest.defines conftest.undefs
30037 # Using a here document instead of a string reduces the quoting nightmare.
30038 # Putting comments in sed scripts is not portable.
30039 #
30040 # `end' is used to avoid that the second main sed command (meant for
30041 # 0-ary CPP macros) applies to n-ary macro definitions.
30042 # See the Autoconf documentation for `clear'.
30043 cat >confdef2sed.sed <<\_ACEOF
30044 s/[\\&,]/\\&/g
30045 s,[\\$`],\\&,g
30046 t clear
30047 : clear
30048 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30049 t end
30050 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30051 : end
30052 _ACEOF
30053 # If some macros were called several times there might be several times
30054 # the same #defines, which is useless. Nevertheless, we may not want to
30055 # sort them, since we want the *last* AC-DEFINE to be honored.
30056 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30057 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30058 rm -f confdef2sed.sed
30059
30060 # This sed command replaces #undef with comments. This is necessary, for
30061 # example, in the case of _POSIX_SOURCE, which is predefined and required
30062 # on some systems where configure will not decide to define it.
30063 cat >>conftest.undefs <<\_ACEOF
30064 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30065 _ACEOF
30066
30067 # Break up conftest.defines because some shells have a limit on the size
30068 # of here documents, and old seds have small limits too (100 cmds).
30069 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30070 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30071 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30072 echo ' :' >>$CONFIG_STATUS
30073 rm -f conftest.tail
30074 while grep . conftest.defines >/dev/null
30075 do
30076 # Write a limited-size here document to $tmp/defines.sed.
30077 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30078 # Speed up: don't consider the non `#define' lines.
30079 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30080 # Work around the forget-to-reset-the-flag bug.
30081 echo 't clr' >>$CONFIG_STATUS
30082 echo ': clr' >>$CONFIG_STATUS
30083 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30084 echo 'CEOF
30085 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30086 rm -f $tmp/in
30087 mv $tmp/out $tmp/in
30088 ' >>$CONFIG_STATUS
30089 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30090 rm -f conftest.defines
30091 mv conftest.tail conftest.defines
30092 done
30093 rm -f conftest.defines
30094 echo ' fi # grep' >>$CONFIG_STATUS
30095 echo >>$CONFIG_STATUS
30096
30097 # Break up conftest.undefs because some shells have a limit on the size
30098 # of here documents, and old seds have small limits too (100 cmds).
30099 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30100 rm -f conftest.tail
30101 while grep . conftest.undefs >/dev/null
30102 do
30103 # Write a limited-size here document to $tmp/undefs.sed.
30104 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30105 # Speed up: don't consider the non `#undef'
30106 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30107 # Work around the forget-to-reset-the-flag bug.
30108 echo 't clr' >>$CONFIG_STATUS
30109 echo ': clr' >>$CONFIG_STATUS
30110 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30111 echo 'CEOF
30112 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30113 rm -f $tmp/in
30114 mv $tmp/out $tmp/in
30115 ' >>$CONFIG_STATUS
30116 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30117 rm -f conftest.undefs
30118 mv conftest.tail conftest.undefs
30119 done
30120 rm -f conftest.undefs
30121
30122 cat >>$CONFIG_STATUS <<\_ACEOF
30123 # Let's still pretend it is `configure' which instantiates (i.e., don't
30124 # use $as_me), people would be surprised to read:
30125 # /* config.h. Generated by config.status. */
30126 if test x"$ac_file" = x-; then
30127 echo "/* Generated by configure. */" >$tmp/config.h
30128 else
30129 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30130 fi
30131 cat $tmp/in >>$tmp/config.h
30132 rm -f $tmp/in
30133 if test x"$ac_file" != x-; then
30134 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
30135 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30136 echo "$as_me: $ac_file is unchanged" >&6;}
30137 else
30138 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30139 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30140 X"$ac_file" : 'X\(//\)[^/]' \| \
30141 X"$ac_file" : 'X\(//\)$' \| \
30142 X"$ac_file" : 'X\(/\)' \| \
30143 . : '\(.\)' 2>/dev/null ||
30144 echo X"$ac_file" |
30145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30146 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30147 /^X\(\/\/\)$/{ s//\1/; q; }
30148 /^X\(\/\).*/{ s//\1/; q; }
30149 s/.*/./; q'`
30150 { if $as_mkdir_p; then
30151 mkdir -p "$ac_dir"
30152 else
30153 as_dir="$ac_dir"
30154 as_dirs=
30155 while test ! -d "$as_dir"; do
30156 as_dirs="$as_dir $as_dirs"
30157 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30158 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30159 X"$as_dir" : 'X\(//\)[^/]' \| \
30160 X"$as_dir" : 'X\(//\)$' \| \
30161 X"$as_dir" : 'X\(/\)' \| \
30162 . : '\(.\)' 2>/dev/null ||
30163 echo X"$as_dir" |
30164 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30165 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30166 /^X\(\/\/\)$/{ s//\1/; q; }
30167 /^X\(\/\).*/{ s//\1/; q; }
30168 s/.*/./; q'`
30169 done
30170 test ! -n "$as_dirs" || mkdir $as_dirs
30171 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30172 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30173 { (exit 1); exit 1; }; }; }
30174
30175 rm -f $ac_file
30176 mv $tmp/config.h $ac_file
30177 fi
30178 else
30179 cat $tmp/config.h
30180 rm -f $tmp/config.h
30181 fi
30182 # Compute $ac_file's index in $config_headers.
30183 _am_stamp_count=1
30184 for _am_header in $config_headers :; do
30185 case $_am_header in
30186 $ac_file | $ac_file:* )
30187 break ;;
30188 * )
30189 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30190 esac
30191 done
30192 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30193 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30194 X$ac_file : 'X\(//\)[^/]' \| \
30195 X$ac_file : 'X\(//\)$' \| \
30196 X$ac_file : 'X\(/\)' \| \
30197 . : '\(.\)' 2>/dev/null ||
30198 echo X$ac_file |
30199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30201 /^X\(\/\/\)$/{ s//\1/; q; }
30202 /^X\(\/\).*/{ s//\1/; q; }
30203 s/.*/./; q'`/stamp-h$_am_stamp_count
30204 done
30205 _ACEOF
30206 cat >>$CONFIG_STATUS <<\_ACEOF
30207
30208 #
30209 # CONFIG_LINKS section.
30210 #
30211
30212 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30213 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30214 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30215
30216 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30217 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30218
30219 if test ! -r $srcdir/$ac_source; then
30220 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30221 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30222 { (exit 1); exit 1; }; }
30223 fi
30224 rm -f $ac_dest
30225
30226 # Make relative symlinks.
30227 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30228 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30229 X"$ac_dest" : 'X\(//\)[^/]' \| \
30230 X"$ac_dest" : 'X\(//\)$' \| \
30231 X"$ac_dest" : 'X\(/\)' \| \
30232 . : '\(.\)' 2>/dev/null ||
30233 echo X"$ac_dest" |
30234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30236 /^X\(\/\/\)$/{ s//\1/; q; }
30237 /^X\(\/\).*/{ s//\1/; q; }
30238 s/.*/./; q'`
30239 { if $as_mkdir_p; then
30240 mkdir -p "$ac_dest_dir"
30241 else
30242 as_dir="$ac_dest_dir"
30243 as_dirs=
30244 while test ! -d "$as_dir"; do
30245 as_dirs="$as_dir $as_dirs"
30246 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30247 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30248 X"$as_dir" : 'X\(//\)[^/]' \| \
30249 X"$as_dir" : 'X\(//\)$' \| \
30250 X"$as_dir" : 'X\(/\)' \| \
30251 . : '\(.\)' 2>/dev/null ||
30252 echo X"$as_dir" |
30253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30254 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30255 /^X\(\/\/\)$/{ s//\1/; q; }
30256 /^X\(\/\).*/{ s//\1/; q; }
30257 s/.*/./; q'`
30258 done
30259 test ! -n "$as_dirs" || mkdir $as_dirs
30260 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30261 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30262 { (exit 1); exit 1; }; }; }
30263
30264 ac_builddir=.
30265
30266 if test "$ac_dest_dir" != .; then
30267 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30268 # A "../" for each directory in $ac_dir_suffix.
30269 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30270 else
30271 ac_dir_suffix= ac_top_builddir=
30272 fi
30273
30274 case $srcdir in
30275 .) # No --srcdir option. We are building in place.
30276 ac_srcdir=.
30277 if test -z "$ac_top_builddir"; then
30278 ac_top_srcdir=.
30279 else
30280 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30281 fi ;;
30282 [\\/]* | ?:[\\/]* ) # Absolute path.
30283 ac_srcdir=$srcdir$ac_dir_suffix;
30284 ac_top_srcdir=$srcdir ;;
30285 *) # Relative path.
30286 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30287 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30288 esac
30289
30290 # Do not use `cd foo && pwd` to compute absolute paths, because
30291 # the directories may not exist.
30292 case `pwd` in
30293 .) ac_abs_builddir="$ac_dest_dir";;
30294 *)
30295 case "$ac_dest_dir" in
30296 .) ac_abs_builddir=`pwd`;;
30297 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30298 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30299 esac;;
30300 esac
30301 case $ac_abs_builddir in
30302 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30303 *)
30304 case ${ac_top_builddir}. in
30305 .) ac_abs_top_builddir=$ac_abs_builddir;;
30306 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30307 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30308 esac;;
30309 esac
30310 case $ac_abs_builddir in
30311 .) ac_abs_srcdir=$ac_srcdir;;
30312 *)
30313 case $ac_srcdir in
30314 .) ac_abs_srcdir=$ac_abs_builddir;;
30315 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30316 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30317 esac;;
30318 esac
30319 case $ac_abs_builddir in
30320 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30321 *)
30322 case $ac_top_srcdir in
30323 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30324 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30325 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30326 esac;;
30327 esac
30328
30329
30330 case $srcdir in
30331 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30332 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30333 esac
30334
30335 # Try a symlink, then a hard link, then a copy.
30336 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30337 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30338 cp -p $srcdir/$ac_source $ac_dest ||
30339 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30340 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30341 { (exit 1); exit 1; }; }
30342 done
30343 _ACEOF
30344 cat >>$CONFIG_STATUS <<\_ACEOF
30345
30346 #
30347 # CONFIG_COMMANDS section.
30348 #
30349 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30350 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30351 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30352 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30353 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30354 X"$ac_dest" : 'X\(//\)[^/]' \| \
30355 X"$ac_dest" : 'X\(//\)$' \| \
30356 X"$ac_dest" : 'X\(/\)' \| \
30357 . : '\(.\)' 2>/dev/null ||
30358 echo X"$ac_dest" |
30359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30360 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30361 /^X\(\/\/\)$/{ s//\1/; q; }
30362 /^X\(\/\).*/{ s//\1/; q; }
30363 s/.*/./; q'`
30364 { if $as_mkdir_p; then
30365 mkdir -p "$ac_dir"
30366 else
30367 as_dir="$ac_dir"
30368 as_dirs=
30369 while test ! -d "$as_dir"; do
30370 as_dirs="$as_dir $as_dirs"
30371 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30372 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30373 X"$as_dir" : 'X\(//\)[^/]' \| \
30374 X"$as_dir" : 'X\(//\)$' \| \
30375 X"$as_dir" : 'X\(/\)' \| \
30376 . : '\(.\)' 2>/dev/null ||
30377 echo X"$as_dir" |
30378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30380 /^X\(\/\/\)$/{ s//\1/; q; }
30381 /^X\(\/\).*/{ s//\1/; q; }
30382 s/.*/./; q'`
30383 done
30384 test ! -n "$as_dirs" || mkdir $as_dirs
30385 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30386 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30387 { (exit 1); exit 1; }; }; }
30388
30389 ac_builddir=.
30390
30391 if test "$ac_dir" != .; then
30392 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30393 # A "../" for each directory in $ac_dir_suffix.
30394 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30395 else
30396 ac_dir_suffix= ac_top_builddir=
30397 fi
30398
30399 case $srcdir in
30400 .) # No --srcdir option. We are building in place.
30401 ac_srcdir=.
30402 if test -z "$ac_top_builddir"; then
30403 ac_top_srcdir=.
30404 else
30405 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30406 fi ;;
30407 [\\/]* | ?:[\\/]* ) # Absolute path.
30408 ac_srcdir=$srcdir$ac_dir_suffix;
30409 ac_top_srcdir=$srcdir ;;
30410 *) # Relative path.
30411 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30412 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30413 esac
30414
30415 # Do not use `cd foo && pwd` to compute absolute paths, because
30416 # the directories may not exist.
30417 case `pwd` in
30418 .) ac_abs_builddir="$ac_dir";;
30419 *)
30420 case "$ac_dir" in
30421 .) ac_abs_builddir=`pwd`;;
30422 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30423 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30424 esac;;
30425 esac
30426 case $ac_abs_builddir in
30427 .) ac_abs_top_builddir=${ac_top_builddir}.;;
30428 *)
30429 case ${ac_top_builddir}. in
30430 .) ac_abs_top_builddir=$ac_abs_builddir;;
30431 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30432 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30433 esac;;
30434 esac
30435 case $ac_abs_builddir in
30436 .) ac_abs_srcdir=$ac_srcdir;;
30437 *)
30438 case $ac_srcdir in
30439 .) ac_abs_srcdir=$ac_abs_builddir;;
30440 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30441 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30442 esac;;
30443 esac
30444 case $ac_abs_builddir in
30445 .) ac_abs_top_srcdir=$ac_top_srcdir;;
30446 *)
30447 case $ac_top_srcdir in
30448 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30449 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30450 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30451 esac;;
30452 esac
30453
30454
30455 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30456 echo "$as_me: executing $ac_dest commands" >&6;}
30457 case $ac_dest in
30458 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30459 # Strip MF so we end up with the name of the file.
30460 mf=`echo "$mf" | sed -e 's/:.*$//'`
30461 # Check whether this is an Automake generated Makefile or not.
30462 # We used to match only the files named `Makefile.in', but
30463 # some people rename them; so instead we look at the file content.
30464 # Grep'ing the first line is not enough: some people post-process
30465 # each Makefile.in and add a new line on top of each file to say so.
30466 # So let's grep whole file.
30467 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30468 dirpart=`(dirname "$mf") 2>/dev/null ||
30469 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30470 X"$mf" : 'X\(//\)[^/]' \| \
30471 X"$mf" : 'X\(//\)$' \| \
30472 X"$mf" : 'X\(/\)' \| \
30473 . : '\(.\)' 2>/dev/null ||
30474 echo X"$mf" |
30475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30477 /^X\(\/\/\)$/{ s//\1/; q; }
30478 /^X\(\/\).*/{ s//\1/; q; }
30479 s/.*/./; q'`
30480 else
30481 continue
30482 fi
30483 # Extract the definition of DEPDIR, am__include, and am__quote
30484 # from the Makefile without running `make'.
30485 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30486 test -z "$DEPDIR" && continue
30487 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30488 test -z "am__include" && continue
30489 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30490 # When using ansi2knr, U may be empty or an underscore; expand it
30491 U=`sed -n 's/^U = //p' < "$mf"`
30492 # Find all dependency output files, they are included files with
30493 # $(DEPDIR) in their names. We invoke sed twice because it is the
30494 # simplest approach to changing $(DEPDIR) to its actual value in the
30495 # expansion.
30496 for file in `sed -n "
30497 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30498 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30499 # Make sure the directory exists.
30500 test -f "$dirpart/$file" && continue
30501 fdir=`(dirname "$file") 2>/dev/null ||
30502 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30503 X"$file" : 'X\(//\)[^/]' \| \
30504 X"$file" : 'X\(//\)$' \| \
30505 X"$file" : 'X\(/\)' \| \
30506 . : '\(.\)' 2>/dev/null ||
30507 echo X"$file" |
30508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30510 /^X\(\/\/\)$/{ s//\1/; q; }
30511 /^X\(\/\).*/{ s//\1/; q; }
30512 s/.*/./; q'`
30513 { if $as_mkdir_p; then
30514 mkdir -p $dirpart/$fdir
30515 else
30516 as_dir=$dirpart/$fdir
30517 as_dirs=
30518 while test ! -d "$as_dir"; do
30519 as_dirs="$as_dir $as_dirs"
30520 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30521 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30522 X"$as_dir" : 'X\(//\)[^/]' \| \
30523 X"$as_dir" : 'X\(//\)$' \| \
30524 X"$as_dir" : 'X\(/\)' \| \
30525 . : '\(.\)' 2>/dev/null ||
30526 echo X"$as_dir" |
30527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30529 /^X\(\/\/\)$/{ s//\1/; q; }
30530 /^X\(\/\).*/{ s//\1/; q; }
30531 s/.*/./; q'`
30532 done
30533 test ! -n "$as_dirs" || mkdir $as_dirs
30534 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30535 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30536 { (exit 1); exit 1; }; }; }
30537
30538 # echo "creating $dirpart/$file"
30539 echo '# dummy' > "$dirpart/$file"
30540 done
30541 done
30542 ;;
30543 gdb_stdint.h )
30544 if test "$GCC" = yes; then
30545 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
30546 else
30547 echo "/* generated for $CC */" > tmp-stdint.h
30548 fi
30549
30550 sed 's/^ *//' >> tmp-stdint.h <<EOF
30551
30552 #ifndef GCC_GENERATED_STDINT_H
30553 #define GCC_GENERATED_STDINT_H 1
30554
30555 #include <sys/types.h>
30556 EOF
30557
30558 if test "$acx_cv_header_stdint" != stdint.h; then
30559 echo "#include <stddef.h>" >> tmp-stdint.h
30560 fi
30561 if test "$acx_cv_header_stdint" != stddef.h; then
30562 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
30563 fi
30564
30565 sed 's/^ *//' >> tmp-stdint.h <<EOF
30566 /* glibc uses these symbols as guards to prevent redefinitions. */
30567 #ifdef __int8_t_defined
30568 #define _INT8_T
30569 #define _INT16_T
30570 #define _INT32_T
30571 #endif
30572 #ifdef __uint32_t_defined
30573 #define _UINT32_T
30574 #endif
30575
30576 EOF
30577
30578 # ----------------- done header, emit basic int types -------------
30579 if test "$acx_cv_header_stdint" = stddef.h; then
30580 sed 's/^ *//' >> tmp-stdint.h <<EOF
30581
30582 #ifndef _UINT8_T
30583 #define _UINT8_T
30584 #ifndef __uint8_t_defined
30585 #define __uint8_t_defined
30586 typedef unsigned $acx_cv_type_int8_t uint8_t;
30587 #endif
30588 #endif
30589
30590 #ifndef _UINT16_T
30591 #define _UINT16_T
30592 #ifndef __uint16_t_defined
30593 #define __uint16_t_defined
30594 typedef unsigned $acx_cv_type_int16_t uint16_t;
30595 #endif
30596 #endif
30597
30598 #ifndef _UINT32_T
30599 #define _UINT32_T
30600 #ifndef __uint32_t_defined
30601 #define __uint32_t_defined
30602 typedef unsigned $acx_cv_type_int32_t uint32_t;
30603 #endif
30604 #endif
30605
30606 #ifndef _INT8_T
30607 #define _INT8_T
30608 #ifndef __int8_t_defined
30609 #define __int8_t_defined
30610 typedef $acx_cv_type_int8_t int8_t;
30611 #endif
30612 #endif
30613
30614 #ifndef _INT16_T
30615 #define _INT16_T
30616 #ifndef __int16_t_defined
30617 #define __int16_t_defined
30618 typedef $acx_cv_type_int16_t int16_t;
30619 #endif
30620 #endif
30621
30622 #ifndef _INT32_T
30623 #define _INT32_T
30624 #ifndef __int32_t_defined
30625 #define __int32_t_defined
30626 typedef $acx_cv_type_int32_t int32_t;
30627 #endif
30628 #endif
30629 EOF
30630 elif test "$ac_cv_type_u_int32_t" = yes; then
30631 sed 's/^ *//' >> tmp-stdint.h <<EOF
30632
30633 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
30634 #ifndef _INT8_T
30635 #define _INT8_T
30636 #endif
30637 #ifndef _INT16_T
30638 #define _INT16_T
30639 #endif
30640 #ifndef _INT32_T
30641 #define _INT32_T
30642 #endif
30643
30644 #ifndef _UINT8_T
30645 #define _UINT8_T
30646 #ifndef __uint8_t_defined
30647 #define __uint8_t_defined
30648 typedef u_int8_t uint8_t;
30649 #endif
30650 #endif
30651
30652 #ifndef _UINT16_T
30653 #define _UINT16_T
30654 #ifndef __uint16_t_defined
30655 #define __uint16_t_defined
30656 typedef u_int16_t uint16_t;
30657 #endif
30658 #endif
30659
30660 #ifndef _UINT32_T
30661 #define _UINT32_T
30662 #ifndef __uint32_t_defined
30663 #define __uint32_t_defined
30664 typedef u_int32_t uint32_t;
30665 #endif
30666 #endif
30667 EOF
30668 else
30669 sed 's/^ *//' >> tmp-stdint.h <<EOF
30670
30671 /* Some systems have guard macros to prevent redefinitions, define them. */
30672 #ifndef _INT8_T
30673 #define _INT8_T
30674 #endif
30675 #ifndef _INT16_T
30676 #define _INT16_T
30677 #endif
30678 #ifndef _INT32_T
30679 #define _INT32_T
30680 #endif
30681 #ifndef _UINT8_T
30682 #define _UINT8_T
30683 #endif
30684 #ifndef _UINT16_T
30685 #define _UINT16_T
30686 #endif
30687 #ifndef _UINT32_T
30688 #define _UINT32_T
30689 #endif
30690 EOF
30691 fi
30692
30693 # ------------- done basic int types, emit int64_t types ------------
30694 if test "$ac_cv_type_uint64_t" = yes; then
30695 sed 's/^ *//' >> tmp-stdint.h <<EOF
30696
30697 /* system headers have good uint64_t and int64_t */
30698 #ifndef _INT64_T
30699 #define _INT64_T
30700 #endif
30701 #ifndef _UINT64_T
30702 #define _UINT64_T
30703 #endif
30704 EOF
30705 elif test "$ac_cv_type_u_int64_t" = yes; then
30706 sed 's/^ *//' >> tmp-stdint.h <<EOF
30707
30708 /* system headers have an u_int64_t (and int64_t) */
30709 #ifndef _INT64_T
30710 #define _INT64_T
30711 #endif
30712 #ifndef _UINT64_T
30713 #define _UINT64_T
30714 #ifndef __uint64_t_defined
30715 #define __uint64_t_defined
30716 typedef u_int64_t uint64_t;
30717 #endif
30718 #endif
30719 EOF
30720 elif test -n "$acx_cv_type_int64_t"; then
30721 sed 's/^ *//' >> tmp-stdint.h <<EOF
30722
30723 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
30724 #ifndef _INT64_T
30725 #define _INT64_T
30726 typedef $acx_cv_type_int64_t int64_t;
30727 #endif
30728 #ifndef _UINT64_T
30729 #define _UINT64_T
30730 #ifndef __uint64_t_defined
30731 #define __uint64_t_defined
30732 typedef unsigned $acx_cv_type_int64_t uint64_t;
30733 #endif
30734 #endif
30735 EOF
30736 else
30737 sed 's/^ *//' >> tmp-stdint.h <<EOF
30738
30739 /* some common heuristics for int64_t, using compiler-specific tests */
30740 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
30741 #ifndef _INT64_T
30742 #define _INT64_T
30743 #ifndef __int64_t_defined
30744 typedef long long int64_t;
30745 #endif
30746 #endif
30747 #ifndef _UINT64_T
30748 #define _UINT64_T
30749 typedef unsigned long long uint64_t;
30750 #endif
30751
30752 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
30753 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
30754 does not implement __extension__. But that compiler doesn't define
30755 __GNUC_MINOR__. */
30756 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
30757 # define __extension__
30758 # endif
30759
30760 # ifndef _INT64_T
30761 # define _INT64_T
30762 __extension__ typedef long long int64_t;
30763 # endif
30764 # ifndef _UINT64_T
30765 # define _UINT64_T
30766 __extension__ typedef unsigned long long uint64_t;
30767 # endif
30768
30769 #elif !defined __STRICT_ANSI__
30770 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
30771
30772 # ifndef _INT64_T
30773 # define _INT64_T
30774 typedef __int64 int64_t;
30775 # endif
30776 # ifndef _UINT64_T
30777 # define _UINT64_T
30778 typedef unsigned __int64 uint64_t;
30779 # endif
30780 # endif /* compiler */
30781
30782 #endif /* ANSI version */
30783 EOF
30784 fi
30785
30786 # ------------- done int64_t types, emit intptr types ------------
30787 if test "$ac_cv_type_uintptr_t" != yes; then
30788 sed 's/^ *//' >> tmp-stdint.h <<EOF
30789
30790 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
30791 #ifndef __uintptr_t_defined
30792 typedef u$acx_cv_type_intptr_t uintptr_t;
30793 #endif
30794 #ifndef __intptr_t_defined
30795 typedef $acx_cv_type_intptr_t intptr_t;
30796 #endif
30797 EOF
30798 fi
30799
30800 # ------------- done intptr types, emit int_least types ------------
30801 if test "$ac_cv_type_int_least32_t" != yes; then
30802 sed 's/^ *//' >> tmp-stdint.h <<EOF
30803
30804 /* Define int_least types */
30805 typedef int8_t int_least8_t;
30806 typedef int16_t int_least16_t;
30807 typedef int32_t int_least32_t;
30808 #ifdef _INT64_T
30809 typedef int64_t int_least64_t;
30810 #endif
30811
30812 typedef uint8_t uint_least8_t;
30813 typedef uint16_t uint_least16_t;
30814 typedef uint32_t uint_least32_t;
30815 #ifdef _UINT64_T
30816 typedef uint64_t uint_least64_t;
30817 #endif
30818 EOF
30819 fi
30820
30821 # ------------- done intptr types, emit int_fast types ------------
30822 if test "$ac_cv_type_int_fast32_t" != yes; then
30823 sed 's/^ *//' >> tmp-stdint.h <<EOF
30824
30825 /* Define int_fast types. short is often slow */
30826 typedef int8_t int_fast8_t;
30827 typedef int int_fast16_t;
30828 typedef int32_t int_fast32_t;
30829 #ifdef _INT64_T
30830 typedef int64_t int_fast64_t;
30831 #endif
30832
30833 typedef uint8_t uint_fast8_t;
30834 typedef unsigned int uint_fast16_t;
30835 typedef uint32_t uint_fast32_t;
30836 #ifdef _UINT64_T
30837 typedef uint64_t uint_fast64_t;
30838 #endif
30839 EOF
30840 fi
30841
30842 if test "$ac_cv_type_uintmax_t" != yes; then
30843 sed 's/^ *//' >> tmp-stdint.h <<EOF
30844
30845 /* Define intmax based on what we found */
30846 #ifdef _INT64_T
30847 typedef int64_t intmax_t;
30848 #else
30849 typedef long intmax_t;
30850 #endif
30851 #ifdef _UINT64_T
30852 typedef uint64_t uintmax_t;
30853 #else
30854 typedef unsigned long uintmax_t;
30855 #endif
30856 EOF
30857 fi
30858
30859 sed 's/^ *//' >> tmp-stdint.h <<EOF
30860
30861 #endif /* GCC_GENERATED_STDINT_H */
30862 EOF
30863
30864 if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
30865 rm -f tmp-stdint.h
30866 else
30867 mv -f tmp-stdint.h gdb_stdint.h
30868 fi
30869
30870 ;;
30871 default )
30872
30873 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
30874 mv -f Makefile.tmp Makefile
30875
30876
30877 case x$CONFIG_HEADERS in
30878 xconfig.h:config.in)
30879 echo > stamp-h ;;
30880 esac
30881 ;;
30882 esac
30883 done
30884 _ACEOF
30885
30886 cat >>$CONFIG_STATUS <<\_ACEOF
30887
30888 { (exit 0); exit 0; }
30889 _ACEOF
30890 chmod +x $CONFIG_STATUS
30891 ac_clean_files=$ac_clean_files_save
30892
30893
30894 # configure is writing to config.log, and then calls config.status.
30895 # config.status does its own redirection, appending to config.log.
30896 # Unfortunately, on DOS this fails, as config.log is still kept open
30897 # by configure, so config.status won't be able to write to it; its
30898 # output is simply discarded. So we exec the FD to /dev/null,
30899 # effectively closing config.log, so it can be properly (re)opened and
30900 # appended to by config.status. When coming back to configure, we
30901 # need to make the FD available again.
30902 if test "$no_create" != yes; then
30903 ac_cs_success=:
30904 ac_config_status_args=
30905 test "$silent" = yes &&
30906 ac_config_status_args="$ac_config_status_args --quiet"
30907 exec 5>/dev/null
30908 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30909 exec 5>>config.log
30910 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30911 # would make configure fail if this is the last instruction.
30912 $ac_cs_success || { (exit 1); exit 1; }
30913 fi
30914
30915 #
30916 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
30917 #
30918 if test "$no_recursion" != yes; then
30919
30920 # Remove --cache-file and --srcdir arguments so they do not pile up.
30921 ac_sub_configure_args=
30922 ac_prev=
30923 eval "set x $ac_configure_args"
30924 shift
30925 for ac_arg
30926 do
30927 if test -n "$ac_prev"; then
30928 ac_prev=
30929 continue
30930 fi
30931 case $ac_arg in
30932 -cache-file | --cache-file | --cache-fil | --cache-fi \
30933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
30934 ac_prev=cache_file ;;
30935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
30936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
30937 | --c=*)
30938 ;;
30939 --config-cache | -C)
30940 ;;
30941 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
30942 ac_prev=srcdir ;;
30943 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
30944 ;;
30945 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
30946 ac_prev=prefix ;;
30947 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
30948 ;;
30949 *)
30950 case $ac_arg in
30951 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30952 esac
30953 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
30954 esac
30955 done
30956
30957 # Always prepend --prefix to ensure using the same prefix
30958 # in subdir configurations.
30959 ac_arg="--prefix=$prefix"
30960 case $ac_arg in
30961 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30962 esac
30963 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
30964
30965 ac_popdir=`pwd`
30966 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
30967
30968 # Do not complain, so a configure script can configure whichever
30969 # parts of a large source tree are present.
30970 test -d "$srcdir/$ac_dir" || continue
30971
30972 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
30973 echo "$as_me: configuring in $ac_dir" >&6;}
30974 { if $as_mkdir_p; then
30975 mkdir -p "$ac_dir"
30976 else
30977 as_dir="$ac_dir"
30978 as_dirs=
30979 while test ! -d "$as_dir"; do
30980 as_dirs="$as_dir $as_dirs"
30981 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30983 X"$as_dir" : 'X\(//\)[^/]' \| \
30984 X"$as_dir" : 'X\(//\)$' \| \
30985 X"$as_dir" : 'X\(/\)' \| \
30986 . : '\(.\)' 2>/dev/null ||
30987 echo X"$as_dir" |
30988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30990 /^X\(\/\/\)$/{ s//\1/; q; }
30991 /^X\(\/\).*/{ s//\1/; q; }
30992 s/.*/./; q'`
30993 done
30994 test ! -n "$as_dirs" || mkdir $as_dirs
30995 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30996 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30997 { (exit 1); exit 1; }; }; }
30998
30999 ac_builddir=.
31000
31001 if test "$ac_dir" != .; then
31002 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31003 # A "../" for each directory in $ac_dir_suffix.
31004 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31005 else
31006 ac_dir_suffix= ac_top_builddir=
31007 fi
31008
31009 case $srcdir in
31010 .) # No --srcdir option. We are building in place.
31011 ac_srcdir=.
31012 if test -z "$ac_top_builddir"; then
31013 ac_top_srcdir=.
31014 else
31015 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31016 fi ;;
31017 [\\/]* | ?:[\\/]* ) # Absolute path.
31018 ac_srcdir=$srcdir$ac_dir_suffix;
31019 ac_top_srcdir=$srcdir ;;
31020 *) # Relative path.
31021 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31022 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31023 esac
31024
31025 # Do not use `cd foo && pwd` to compute absolute paths, because
31026 # the directories may not exist.
31027 case `pwd` in
31028 .) ac_abs_builddir="$ac_dir";;
31029 *)
31030 case "$ac_dir" in
31031 .) ac_abs_builddir=`pwd`;;
31032 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31033 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31034 esac;;
31035 esac
31036 case $ac_abs_builddir in
31037 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31038 *)
31039 case ${ac_top_builddir}. in
31040 .) ac_abs_top_builddir=$ac_abs_builddir;;
31041 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31042 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31043 esac;;
31044 esac
31045 case $ac_abs_builddir in
31046 .) ac_abs_srcdir=$ac_srcdir;;
31047 *)
31048 case $ac_srcdir in
31049 .) ac_abs_srcdir=$ac_abs_builddir;;
31050 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31051 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31052 esac;;
31053 esac
31054 case $ac_abs_builddir in
31055 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31056 *)
31057 case $ac_top_srcdir in
31058 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31059 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31060 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31061 esac;;
31062 esac
31063
31064
31065 cd "$ac_dir"
31066
31067 # Check for guested configure; otherwise get Cygnus style configure.
31068 if test -f "$ac_srcdir/configure.gnu"; then
31069 ac_sub_configure=$ac_srcdir/configure.gnu
31070 elif test -f "$ac_srcdir/configure"; then
31071 ac_sub_configure=$ac_srcdir/configure
31072 elif test -f "$ac_srcdir/configure.in"; then
31073 # This should be Cygnus configure.
31074 ac_sub_configure=$ac_aux_dir/configure
31075 else
31076 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31077 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31078 ac_sub_configure=
31079 fi
31080
31081 # The recursion is here.
31082 if test -n "$ac_sub_configure"; then
31083 # Make the cache file name correct relative to the subdirectory.
31084 case $cache_file in
31085 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31086 *) # Relative path.
31087 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
31088 esac
31089
31090 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31091 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31092 # The eval makes quoting arguments work.
31093 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31094 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
31095 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31096 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31097 { (exit 1); exit 1; }; }
31098 fi
31099
31100 cd "$ac_popdir"
31101 done
31102 fi
31103
31104
31105 exit 0
This page took 0.769813 seconds and 5 git commands to generate.