PR 8145.
[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 am__leading_dot DEPDIR CCDEPMODE MAKE GMAKE_TRUE GMAKE_FALSE SET_MAKE USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir GL_COND_LIBTOOL_TRUE GL_COND_LIBTOOL_FALSE GNULIB_MEMMEM GNULIB_MEMPCPY GNULIB_MEMRCHR GNULIB_STPCPY GNULIB_STPNCPY GNULIB_STRCHRNUL GNULIB_STRDUP GNULIB_STRNDUP GNULIB_STRNLEN GNULIB_STRPBRK GNULIB_STRSEP GNULIB_STRSTR GNULIB_STRCASESTR GNULIB_STRTOK_R GNULIB_MBSLEN GNULIB_MBSNLEN GNULIB_MBSCHR GNULIB_MBSRCHR GNULIB_MBSSTR GNULIB_MBSCASECMP GNULIB_MBSNCASECMP GNULIB_MBSPCASECMP GNULIB_MBSCASESTR GNULIB_MBSCSPN GNULIB_MBSPBRK GNULIB_MBSSPN GNULIB_MBSSEP GNULIB_MBSTOK_R GNULIB_STRERROR GNULIB_STRSIGNAL HAVE_DECL_MEMMEM HAVE_MEMPCPY HAVE_DECL_MEMRCHR HAVE_STPCPY HAVE_STPNCPY HAVE_STRCHRNUL HAVE_DECL_STRDUP HAVE_STRNDUP HAVE_DECL_STRNDUP HAVE_DECL_STRNLEN HAVE_STRPBRK HAVE_STRSEP HAVE_STRCASESTR HAVE_DECL_STRTOK_R HAVE_DECL_STRERROR HAVE_DECL_STRSIGNAL REPLACE_STRERROR REPLACE_STRSIGNAL REPLACE_MEMMEM REPLACE_STRCASESTR REPLACE_STRSTR HAVE_LONG_LONG_INT HAVE_UNSIGNED_LONG_LONG_INT HAVE_INTTYPES_H HAVE_SYS_TYPES_H INCLUDE_NEXT NEXT_STDINT_H HAVE_STDINT_H HAVE_SYS_INTTYPES_H HAVE_SYS_BITYPES_H BITSIZEOF_PTRDIFF_T BITSIZEOF_SIG_ATOMIC_T BITSIZEOF_SIZE_T BITSIZEOF_WCHAR_T BITSIZEOF_WINT_T HAVE_SIGNED_SIG_ATOMIC_T HAVE_SIGNED_WCHAR_T HAVE_SIGNED_WINT_T PTRDIFF_T_SUFFIX SIG_ATOMIC_T_SUFFIX SIZE_T_SUFFIX WCHAR_T_SUFFIX WINT_T_SUFFIX STDINT_H NEXT_STRING_H GNULIB_WCWIDTH HAVE_DECL_WCWIDTH REPLACE_WCWIDTH WCHAR_H HAVE_WCHAR_H NEXT_WCHAR_H LIBGNU_LIBDEPS LIBGNU_LTLIBDEPS GNULIB_STDINT_H PACKAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK AMTAR am__tar am__untar am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH am__fastdepCC_TRUE am__fastdepCC_FALSE subdirs TARGET_OBS PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT PYTHON_CFLAGS ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_PATCH_LEVEL TCL_BIN_DIR TCL_SRC_DIR TCL_LIB_FILE TCL_LIB_FLAG TCL_LIB_SPEC TCL_STUB_LIB_FILE TCL_STUB_LIB_FLAG TCL_STUB_LIB_SPEC TCL_INCLUDE TCL_LIBRARY TCL_DEPS TK_VERSION TK_BIN_DIR TK_SRC_DIR TK_LIB_FILE TK_LIB_FLAG TK_LIB_SPEC TK_STUB_LIB_FILE TK_STUB_LIB_FLAG TK_STUB_LIB_SPEC TK_INCLUDE TK_LIBRARY TK_DEPS TK_XINCLUDES X_CFLAGS X_LDFLAGS X_LIBS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
318 ac_subst_files='host_makefile_frag'
319 ac_pwd=`pwd`
320
321 # Initialize some variables set by options.
322 ac_init_help=
323 ac_init_version=false
324 # The variables have the same names as the options, with
325 # dashes changed to underlines.
326 cache_file=/dev/null
327 exec_prefix=NONE
328 no_create=
329 no_recursion=
330 prefix=NONE
331 program_prefix=NONE
332 program_suffix=NONE
333 program_transform_name=s,x,x,
334 silent=
335 site=
336 srcdir=
337 verbose=
338 x_includes=NONE
339 x_libraries=NONE
340
341 # Installation directory options.
342 # These are left unexpanded so users can "make install exec_prefix=/foo"
343 # and all the variables that are supposed to be based on exec_prefix
344 # by default will actually change.
345 # Use braces instead of parens because sh, perl, etc. also accept them.
346 bindir='${exec_prefix}/bin'
347 sbindir='${exec_prefix}/sbin'
348 libexecdir='${exec_prefix}/libexec'
349 datadir='${prefix}/share'
350 sysconfdir='${prefix}/etc'
351 sharedstatedir='${prefix}/com'
352 localstatedir='${prefix}/var'
353 libdir='${exec_prefix}/lib'
354 includedir='${prefix}/include'
355 oldincludedir='/usr/include'
356 infodir='${prefix}/info'
357 mandir='${prefix}/man'
358
359 ac_prev=
360 for ac_option
361 do
362 # If the previous option needs an argument, assign it.
363 if test -n "$ac_prev"; then
364 eval "$ac_prev=\$ac_option"
365 ac_prev=
366 continue
367 fi
368
369 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
370
371 # Accept the important Cygnus configure options, so we can diagnose typos.
372
373 case $ac_option in
374
375 -bindir | --bindir | --bindi | --bind | --bin | --bi)
376 ac_prev=bindir ;;
377 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
378 bindir=$ac_optarg ;;
379
380 -build | --build | --buil | --bui | --bu)
381 ac_prev=build_alias ;;
382 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
383 build_alias=$ac_optarg ;;
384
385 -cache-file | --cache-file | --cache-fil | --cache-fi \
386 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
387 ac_prev=cache_file ;;
388 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
389 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
390 cache_file=$ac_optarg ;;
391
392 --config-cache | -C)
393 cache_file=config.cache ;;
394
395 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
396 ac_prev=datadir ;;
397 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
398 | --da=*)
399 datadir=$ac_optarg ;;
400
401 -disable-* | --disable-*)
402 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
403 # Reject names that are not valid shell variable names.
404 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
405 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
406 { (exit 1); exit 1; }; }
407 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
408 eval "enable_$ac_feature=no" ;;
409
410 -enable-* | --enable-*)
411 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
412 # Reject names that are not valid shell variable names.
413 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
414 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
415 { (exit 1); exit 1; }; }
416 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
417 case $ac_option in
418 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) ac_optarg=yes ;;
420 esac
421 eval "enable_$ac_feature='$ac_optarg'" ;;
422
423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
425 | --exec | --exe | --ex)
426 ac_prev=exec_prefix ;;
427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
429 | --exec=* | --exe=* | --ex=*)
430 exec_prefix=$ac_optarg ;;
431
432 -gas | --gas | --ga | --g)
433 # Obsolete; use --with-gas.
434 with_gas=yes ;;
435
436 -help | --help | --hel | --he | -h)
437 ac_init_help=long ;;
438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
439 ac_init_help=recursive ;;
440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
441 ac_init_help=short ;;
442
443 -host | --host | --hos | --ho)
444 ac_prev=host_alias ;;
445 -host=* | --host=* | --hos=* | --ho=*)
446 host_alias=$ac_optarg ;;
447
448 -includedir | --includedir | --includedi | --included | --include \
449 | --includ | --inclu | --incl | --inc)
450 ac_prev=includedir ;;
451 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
452 | --includ=* | --inclu=* | --incl=* | --inc=*)
453 includedir=$ac_optarg ;;
454
455 -infodir | --infodir | --infodi | --infod | --info | --inf)
456 ac_prev=infodir ;;
457 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
458 infodir=$ac_optarg ;;
459
460 -libdir | --libdir | --libdi | --libd)
461 ac_prev=libdir ;;
462 -libdir=* | --libdir=* | --libdi=* | --libd=*)
463 libdir=$ac_optarg ;;
464
465 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
466 | --libexe | --libex | --libe)
467 ac_prev=libexecdir ;;
468 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
469 | --libexe=* | --libex=* | --libe=*)
470 libexecdir=$ac_optarg ;;
471
472 -localstatedir | --localstatedir | --localstatedi | --localstated \
473 | --localstate | --localstat | --localsta | --localst \
474 | --locals | --local | --loca | --loc | --lo)
475 ac_prev=localstatedir ;;
476 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
477 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
478 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
479 localstatedir=$ac_optarg ;;
480
481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
482 ac_prev=mandir ;;
483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
484 mandir=$ac_optarg ;;
485
486 -nfp | --nfp | --nf)
487 # Obsolete; use --without-fp.
488 with_fp=no ;;
489
490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
491 | --no-cr | --no-c | -n)
492 no_create=yes ;;
493
494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
496 no_recursion=yes ;;
497
498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
500 | --oldin | --oldi | --old | --ol | --o)
501 ac_prev=oldincludedir ;;
502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
505 oldincludedir=$ac_optarg ;;
506
507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
508 ac_prev=prefix ;;
509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
510 prefix=$ac_optarg ;;
511
512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
513 | --program-pre | --program-pr | --program-p)
514 ac_prev=program_prefix ;;
515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
517 program_prefix=$ac_optarg ;;
518
519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
520 | --program-suf | --program-su | --program-s)
521 ac_prev=program_suffix ;;
522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
524 program_suffix=$ac_optarg ;;
525
526 -program-transform-name | --program-transform-name \
527 | --program-transform-nam | --program-transform-na \
528 | --program-transform-n | --program-transform- \
529 | --program-transform | --program-transfor \
530 | --program-transfo | --program-transf \
531 | --program-trans | --program-tran \
532 | --progr-tra | --program-tr | --program-t)
533 ac_prev=program_transform_name ;;
534 -program-transform-name=* | --program-transform-name=* \
535 | --program-transform-nam=* | --program-transform-na=* \
536 | --program-transform-n=* | --program-transform-=* \
537 | --program-transform=* | --program-transfor=* \
538 | --program-transfo=* | --program-transf=* \
539 | --program-trans=* | --program-tran=* \
540 | --progr-tra=* | --program-tr=* | --program-t=*)
541 program_transform_name=$ac_optarg ;;
542
543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
544 | -silent | --silent | --silen | --sile | --sil)
545 silent=yes ;;
546
547 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
548 ac_prev=sbindir ;;
549 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
550 | --sbi=* | --sb=*)
551 sbindir=$ac_optarg ;;
552
553 -sharedstatedir | --sharedstatedir | --sharedstatedi \
554 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
555 | --sharedst | --shareds | --shared | --share | --shar \
556 | --sha | --sh)
557 ac_prev=sharedstatedir ;;
558 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
559 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
560 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
561 | --sha=* | --sh=*)
562 sharedstatedir=$ac_optarg ;;
563
564 -site | --site | --sit)
565 ac_prev=site ;;
566 -site=* | --site=* | --sit=*)
567 site=$ac_optarg ;;
568
569 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
570 ac_prev=srcdir ;;
571 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
572 srcdir=$ac_optarg ;;
573
574 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
575 | --syscon | --sysco | --sysc | --sys | --sy)
576 ac_prev=sysconfdir ;;
577 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
578 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
579 sysconfdir=$ac_optarg ;;
580
581 -target | --target | --targe | --targ | --tar | --ta | --t)
582 ac_prev=target_alias ;;
583 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
584 target_alias=$ac_optarg ;;
585
586 -v | -verbose | --verbose | --verbos | --verbo | --verb)
587 verbose=yes ;;
588
589 -version | --version | --versio | --versi | --vers | -V)
590 ac_init_version=: ;;
591
592 -with-* | --with-*)
593 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
594 # Reject names that are not valid shell variable names.
595 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596 { echo "$as_me: error: invalid package name: $ac_package" >&2
597 { (exit 1); exit 1; }; }
598 ac_package=`echo $ac_package| sed 's/-/_/g'`
599 case $ac_option in
600 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
601 *) ac_optarg=yes ;;
602 esac
603 eval "with_$ac_package='$ac_optarg'" ;;
604
605 -without-* | --without-*)
606 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
607 # Reject names that are not valid shell variable names.
608 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
609 { echo "$as_me: error: invalid package name: $ac_package" >&2
610 { (exit 1); exit 1; }; }
611 ac_package=`echo $ac_package | sed 's/-/_/g'`
612 eval "with_$ac_package=no" ;;
613
614 --x)
615 # Obsolete; use --with-x.
616 with_x=yes ;;
617
618 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
619 | --x-incl | --x-inc | --x-in | --x-i)
620 ac_prev=x_includes ;;
621 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
622 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
623 x_includes=$ac_optarg ;;
624
625 -x-libraries | --x-libraries | --x-librarie | --x-librari \
626 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
627 ac_prev=x_libraries ;;
628 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
629 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
630 x_libraries=$ac_optarg ;;
631
632 -*) { echo "$as_me: error: unrecognized option: $ac_option
633 Try \`$0 --help' for more information." >&2
634 { (exit 1); exit 1; }; }
635 ;;
636
637 *=*)
638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
639 # Reject names that are not valid shell variable names.
640 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
641 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
642 { (exit 1); exit 1; }; }
643 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
644 eval "$ac_envvar='$ac_optarg'"
645 export $ac_envvar ;;
646
647 *)
648 # FIXME: should be removed in autoconf 3.0.
649 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
651 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 ;;
654
655 esac
656 done
657
658 if test -n "$ac_prev"; then
659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
660 { echo "$as_me: error: missing argument to $ac_option" >&2
661 { (exit 1); exit 1; }; }
662 fi
663
664 # Be sure to have absolute paths.
665 for ac_var in exec_prefix prefix
666 do
667 eval ac_val=$`echo $ac_var`
668 case $ac_val in
669 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
670 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
671 { (exit 1); exit 1; }; };;
672 esac
673 done
674
675 # Be sure to have absolute paths.
676 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
677 localstatedir libdir includedir oldincludedir infodir mandir
678 do
679 eval ac_val=$`echo $ac_var`
680 case $ac_val in
681 [\\/$]* | ?:[\\/]* ) ;;
682 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
683 { (exit 1); exit 1; }; };;
684 esac
685 done
686
687 # There might be people who depend on the old broken behavior: `$host'
688 # used to hold the argument of --host etc.
689 # FIXME: To remove some day.
690 build=$build_alias
691 host=$host_alias
692 target=$target_alias
693
694 # FIXME: To remove some day.
695 if test "x$host_alias" != x; then
696 if test "x$build_alias" = x; then
697 cross_compiling=maybe
698 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
699 If a cross compiler is detected then cross compile mode will be used." >&2
700 elif test "x$build_alias" != "x$host_alias"; then
701 cross_compiling=yes
702 fi
703 fi
704
705 ac_tool_prefix=
706 test -n "$host_alias" && ac_tool_prefix=$host_alias-
707
708 test "$silent" = yes && exec 6>/dev/null
709
710
711 # Find the source files, if location was not specified.
712 if test -z "$srcdir"; then
713 ac_srcdir_defaulted=yes
714 # Try the directory containing this script, then its parent.
715 ac_confdir=`(dirname "$0") 2>/dev/null ||
716 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
717 X"$0" : 'X\(//\)[^/]' \| \
718 X"$0" : 'X\(//\)$' \| \
719 X"$0" : 'X\(/\)' \| \
720 . : '\(.\)' 2>/dev/null ||
721 echo X"$0" |
722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
724 /^X\(\/\/\)$/{ s//\1/; q; }
725 /^X\(\/\).*/{ s//\1/; q; }
726 s/.*/./; q'`
727 srcdir=$ac_confdir
728 if test ! -r $srcdir/$ac_unique_file; then
729 srcdir=..
730 fi
731 else
732 ac_srcdir_defaulted=no
733 fi
734 if test ! -r $srcdir/$ac_unique_file; then
735 if test "$ac_srcdir_defaulted" = yes; then
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
737 { (exit 1); exit 1; }; }
738 else
739 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
740 { (exit 1); exit 1; }; }
741 fi
742 fi
743 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
744 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
745 { (exit 1); exit 1; }; }
746 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
747 ac_env_build_alias_set=${build_alias+set}
748 ac_env_build_alias_value=$build_alias
749 ac_cv_env_build_alias_set=${build_alias+set}
750 ac_cv_env_build_alias_value=$build_alias
751 ac_env_host_alias_set=${host_alias+set}
752 ac_env_host_alias_value=$host_alias
753 ac_cv_env_host_alias_set=${host_alias+set}
754 ac_cv_env_host_alias_value=$host_alias
755 ac_env_target_alias_set=${target_alias+set}
756 ac_env_target_alias_value=$target_alias
757 ac_cv_env_target_alias_set=${target_alias+set}
758 ac_cv_env_target_alias_value=$target_alias
759 ac_env_CC_set=${CC+set}
760 ac_env_CC_value=$CC
761 ac_cv_env_CC_set=${CC+set}
762 ac_cv_env_CC_value=$CC
763 ac_env_CFLAGS_set=${CFLAGS+set}
764 ac_env_CFLAGS_value=$CFLAGS
765 ac_cv_env_CFLAGS_set=${CFLAGS+set}
766 ac_cv_env_CFLAGS_value=$CFLAGS
767 ac_env_LDFLAGS_set=${LDFLAGS+set}
768 ac_env_LDFLAGS_value=$LDFLAGS
769 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
770 ac_cv_env_LDFLAGS_value=$LDFLAGS
771 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
772 ac_env_CPPFLAGS_value=$CPPFLAGS
773 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
774 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
775 ac_env_CPP_set=${CPP+set}
776 ac_env_CPP_value=$CPP
777 ac_cv_env_CPP_set=${CPP+set}
778 ac_cv_env_CPP_value=$CPP
779
780 #
781 # Report the --help message.
782 #
783 if test "$ac_init_help" = "long"; then
784 # Omit some internal or obsolete options to make the list less imposing.
785 # This message is too long to be a string in the A/UX 3.1 sh.
786 cat <<_ACEOF
787 \`configure' configures this package to adapt to many kinds of systems.
788
789 Usage: $0 [OPTION]... [VAR=VALUE]...
790
791 To assign environment variables (e.g., CC, CFLAGS...), specify them as
792 VAR=VALUE. See below for descriptions of some of the useful variables.
793
794 Defaults for the options are specified in brackets.
795
796 Configuration:
797 -h, --help display this help and exit
798 --help=short display options specific to this package
799 --help=recursive display the short help of all the included packages
800 -V, --version display version information and exit
801 -q, --quiet, --silent do not print \`checking...' messages
802 --cache-file=FILE cache test results in FILE [disabled]
803 -C, --config-cache alias for \`--cache-file=config.cache'
804 -n, --no-create do not create output files
805 --srcdir=DIR find the sources in DIR [configure dir or \`..']
806
807 _ACEOF
808
809 cat <<_ACEOF
810 Installation directories:
811 --prefix=PREFIX install architecture-independent files in PREFIX
812 [$ac_default_prefix]
813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
814 [PREFIX]
815
816 By default, \`make install' will install all the files in
817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
819 for instance \`--prefix=\$HOME'.
820
821 For better control, use the options below.
822
823 Fine tuning of the installation directories:
824 --bindir=DIR user executables [EPREFIX/bin]
825 --sbindir=DIR system admin executables [EPREFIX/sbin]
826 --libexecdir=DIR program executables [EPREFIX/libexec]
827 --datadir=DIR read-only architecture-independent data [PREFIX/share]
828 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
829 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
830 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
831 --libdir=DIR object code libraries [EPREFIX/lib]
832 --includedir=DIR C header files [PREFIX/include]
833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
834 --infodir=DIR info documentation [PREFIX/info]
835 --mandir=DIR man documentation [PREFIX/man]
836 _ACEOF
837
838 cat <<\_ACEOF
839
840 Program names:
841 --program-prefix=PREFIX prepend PREFIX to installed program names
842 --program-suffix=SUFFIX append SUFFIX to installed program names
843 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
844
845 X features:
846 --x-includes=DIR X include files are in DIR
847 --x-libraries=DIR X library files are in DIR
848
849 System types:
850 --build=BUILD configure for building on BUILD [guessed]
851 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 --target=TARGET configure for building compilers for TARGET [HOST]
853 _ACEOF
854 fi
855
856 if test -n "$ac_init_help"; then
857
858 cat <<\_ACEOF
859
860 Optional Features:
861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
863 --enable-maintainer-mode enable make rules and dependencies not useful
864 (and sometimes confusing) to the casual installer
865 --disable-dependency-tracking speeds up one-time build
866 --enable-dependency-tracking do not reject slow dependency extractors
867 --enable-targets alternative target configurations
868 --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)
869 --disable-gdbcli disable command-line interface (CLI)
870 --disable-gdbmi disable machine-interface (MI)
871 --enable-tui enable full-screen terminal user interface (TUI)
872 --enable-gdbtk enable gdbtk graphical user interface (GUI)
873 --enable-profiling enable profiling of GDB
874 --disable-rpath do not hardcode runtime library paths
875 --enable-werror treat compile warnings as errors
876 --enable-build-warnings Enable build-time compiler warnings if gcc is used
877 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
878 --enable-sim Link gdb with simulator
879 --enable-multi-ice build the multi-ice-gdb-server
880
881 Optional Packages:
882 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
883 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
884 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
885 --with-libunwind Use libunwind frame unwinding support
886 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
887 --with-bugurl=URL Direct users to URL to report a bug
888 --with-system-readline use installed readline library
889 --with-expat include expat support (auto/yes/no)
890 --with-gnu-ld assume the C compiler uses GNU ld default=no
891 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
892 --without-libexpat-prefix don't search for libexpat in includedir and libdir
893 --with-python include python support (auto/yes/no/<path>)
894 --without-included-regex don't use included regex; this is the default
895 on systems with version 2 of the GNU C library
896 (use with caution on other system)
897 --with-sysroot=DIR Search for usr/lib et al within DIR.
898 --with-system-gdbinit=file Automatically load a system-wide gdbinit file
899 --with-tcl directory containing tcl configuration (tclConfig.sh)
900 --with-tk directory containing tk configuration (tkConfig.sh)
901 --with-x use the X Window System
902 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
903
904 Some influential environment variables:
905 CC C compiler command
906 CFLAGS C compiler flags
907 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
908 nonstandard directory <lib dir>
909 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
910 headers in a nonstandard directory <include dir>
911 CPP C preprocessor
912
913 Use these variables to override the choices made by `configure' or to help
914 it to find libraries and programs with nonstandard names/locations.
915
916 _ACEOF
917 fi
918
919 if test "$ac_init_help" = "recursive"; then
920 # If there are subdirs, report their specific --help.
921 ac_popdir=`pwd`
922 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
923 test -d $ac_dir || continue
924 ac_builddir=.
925
926 if test "$ac_dir" != .; then
927 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
928 # A "../" for each directory in $ac_dir_suffix.
929 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
930 else
931 ac_dir_suffix= ac_top_builddir=
932 fi
933
934 case $srcdir in
935 .) # No --srcdir option. We are building in place.
936 ac_srcdir=.
937 if test -z "$ac_top_builddir"; then
938 ac_top_srcdir=.
939 else
940 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
941 fi ;;
942 [\\/]* | ?:[\\/]* ) # Absolute path.
943 ac_srcdir=$srcdir$ac_dir_suffix;
944 ac_top_srcdir=$srcdir ;;
945 *) # Relative path.
946 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
947 ac_top_srcdir=$ac_top_builddir$srcdir ;;
948 esac
949
950 # Do not use `cd foo && pwd` to compute absolute paths, because
951 # the directories may not exist.
952 case `pwd` in
953 .) ac_abs_builddir="$ac_dir";;
954 *)
955 case "$ac_dir" in
956 .) ac_abs_builddir=`pwd`;;
957 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
958 *) ac_abs_builddir=`pwd`/"$ac_dir";;
959 esac;;
960 esac
961 case $ac_abs_builddir in
962 .) ac_abs_top_builddir=${ac_top_builddir}.;;
963 *)
964 case ${ac_top_builddir}. in
965 .) ac_abs_top_builddir=$ac_abs_builddir;;
966 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
967 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
968 esac;;
969 esac
970 case $ac_abs_builddir in
971 .) ac_abs_srcdir=$ac_srcdir;;
972 *)
973 case $ac_srcdir in
974 .) ac_abs_srcdir=$ac_abs_builddir;;
975 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
976 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
977 esac;;
978 esac
979 case $ac_abs_builddir in
980 .) ac_abs_top_srcdir=$ac_top_srcdir;;
981 *)
982 case $ac_top_srcdir in
983 .) ac_abs_top_srcdir=$ac_abs_builddir;;
984 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
985 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
986 esac;;
987 esac
988
989 cd $ac_dir
990 # Check for guested configure; otherwise get Cygnus style configure.
991 if test -f $ac_srcdir/configure.gnu; then
992 echo
993 $SHELL $ac_srcdir/configure.gnu --help=recursive
994 elif test -f $ac_srcdir/configure; then
995 echo
996 $SHELL $ac_srcdir/configure --help=recursive
997 elif test -f $ac_srcdir/configure.ac ||
998 test -f $ac_srcdir/configure.in; then
999 echo
1000 $ac_configure --help
1001 else
1002 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1003 fi
1004 cd $ac_popdir
1005 done
1006 fi
1007
1008 test -n "$ac_init_help" && exit 0
1009 if $ac_init_version; then
1010 cat <<\_ACEOF
1011
1012 Copyright (C) 2003 Free Software Foundation, Inc.
1013 This configure script is free software; the Free Software Foundation
1014 gives unlimited permission to copy, distribute and modify it.
1015 _ACEOF
1016 exit 0
1017 fi
1018 exec 5>config.log
1019 cat >&5 <<_ACEOF
1020 This file contains any messages produced by compilers while
1021 running configure, to aid debugging if configure makes a mistake.
1022
1023 It was created by $as_me, which was
1024 generated by GNU Autoconf 2.59. Invocation command line was
1025
1026 $ $0 $@
1027
1028 _ACEOF
1029 {
1030 cat <<_ASUNAME
1031 ## --------- ##
1032 ## Platform. ##
1033 ## --------- ##
1034
1035 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1036 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1037 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1038 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1039 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1040
1041 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1042 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1043
1044 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1045 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1046 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1047 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1048 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1049 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1050 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1051
1052 _ASUNAME
1053
1054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1055 for as_dir in $PATH
1056 do
1057 IFS=$as_save_IFS
1058 test -z "$as_dir" && as_dir=.
1059 echo "PATH: $as_dir"
1060 done
1061
1062 } >&5
1063
1064 cat >&5 <<_ACEOF
1065
1066
1067 ## ----------- ##
1068 ## Core tests. ##
1069 ## ----------- ##
1070
1071 _ACEOF
1072
1073
1074 # Keep a trace of the command line.
1075 # Strip out --no-create and --no-recursion so they do not pile up.
1076 # Strip out --silent because we don't want to record it for future runs.
1077 # Also quote any args containing shell meta-characters.
1078 # Make two passes to allow for proper duplicate-argument suppression.
1079 ac_configure_args=
1080 ac_configure_args0=
1081 ac_configure_args1=
1082 ac_sep=
1083 ac_must_keep_next=false
1084 for ac_pass in 1 2
1085 do
1086 for ac_arg
1087 do
1088 case $ac_arg in
1089 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 continue ;;
1093 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1094 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1095 esac
1096 case $ac_pass in
1097 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1098 2)
1099 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1100 if test $ac_must_keep_next = true; then
1101 ac_must_keep_next=false # Got value, back to normal.
1102 else
1103 case $ac_arg in
1104 *=* | --config-cache | -C | -disable-* | --disable-* \
1105 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1106 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1107 | -with-* | --with-* | -without-* | --without-* | --x)
1108 case "$ac_configure_args0 " in
1109 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1110 esac
1111 ;;
1112 -* ) ac_must_keep_next=true ;;
1113 esac
1114 fi
1115 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1116 # Get rid of the leading space.
1117 ac_sep=" "
1118 ;;
1119 esac
1120 done
1121 done
1122 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1123 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1124
1125 # When interrupted or exit'd, cleanup temporary files, and complete
1126 # config.log. We remove comments because anyway the quotes in there
1127 # would cause problems or look ugly.
1128 # WARNING: Be sure not to use single quotes in there, as some shells,
1129 # such as our DU 5.0 friend, will then `close' the trap.
1130 trap 'exit_status=$?
1131 # Save into config.log some information that might help in debugging.
1132 {
1133 echo
1134
1135 cat <<\_ASBOX
1136 ## ---------------- ##
1137 ## Cache variables. ##
1138 ## ---------------- ##
1139 _ASBOX
1140 echo
1141 # The following way of writing the cache mishandles newlines in values,
1142 {
1143 (set) 2>&1 |
1144 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1145 *ac_space=\ *)
1146 sed -n \
1147 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1149 ;;
1150 *)
1151 sed -n \
1152 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1153 ;;
1154 esac;
1155 }
1156 echo
1157
1158 cat <<\_ASBOX
1159 ## ----------------- ##
1160 ## Output variables. ##
1161 ## ----------------- ##
1162 _ASBOX
1163 echo
1164 for ac_var in $ac_subst_vars
1165 do
1166 eval ac_val=$`echo $ac_var`
1167 echo "$ac_var='"'"'$ac_val'"'"'"
1168 done | sort
1169 echo
1170
1171 if test -n "$ac_subst_files"; then
1172 cat <<\_ASBOX
1173 ## ------------- ##
1174 ## Output files. ##
1175 ## ------------- ##
1176 _ASBOX
1177 echo
1178 for ac_var in $ac_subst_files
1179 do
1180 eval ac_val=$`echo $ac_var`
1181 echo "$ac_var='"'"'$ac_val'"'"'"
1182 done | sort
1183 echo
1184 fi
1185
1186 if test -s confdefs.h; then
1187 cat <<\_ASBOX
1188 ## ----------- ##
1189 ## confdefs.h. ##
1190 ## ----------- ##
1191 _ASBOX
1192 echo
1193 sed "/^$/d" confdefs.h | sort
1194 echo
1195 fi
1196 test "$ac_signal" != 0 &&
1197 echo "$as_me: caught signal $ac_signal"
1198 echo "$as_me: exit $exit_status"
1199 } >&5
1200 rm -f core *.core &&
1201 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1202 exit $exit_status
1203 ' 0
1204 for ac_signal in 1 2 13 15; do
1205 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1206 done
1207 ac_signal=0
1208
1209 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1210 rm -rf conftest* confdefs.h
1211 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1212 echo >confdefs.h
1213
1214 # Predefined preprocessor variables.
1215
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_NAME "$PACKAGE_NAME"
1218 _ACEOF
1219
1220
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1223 _ACEOF
1224
1225
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1228 _ACEOF
1229
1230
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_STRING "$PACKAGE_STRING"
1233 _ACEOF
1234
1235
1236 cat >>confdefs.h <<_ACEOF
1237 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1238 _ACEOF
1239
1240
1241 # Let the site file select an alternate cache file if it wants to.
1242 # Prefer explicitly selected file to automatically selected ones.
1243 if test -z "$CONFIG_SITE"; then
1244 if test "x$prefix" != xNONE; then
1245 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1246 else
1247 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1248 fi
1249 fi
1250 for ac_site_file in $CONFIG_SITE; do
1251 if test -r "$ac_site_file"; then
1252 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1253 echo "$as_me: loading site script $ac_site_file" >&6;}
1254 sed 's/^/| /' "$ac_site_file" >&5
1255 . "$ac_site_file"
1256 fi
1257 done
1258
1259 if test -r "$cache_file"; then
1260 # Some versions of bash will fail to source /dev/null (special
1261 # files actually), so we avoid doing that.
1262 if test -f "$cache_file"; then
1263 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1264 echo "$as_me: loading cache $cache_file" >&6;}
1265 case $cache_file in
1266 [\\/]* | ?:[\\/]* ) . $cache_file;;
1267 *) . ./$cache_file;;
1268 esac
1269 fi
1270 else
1271 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1272 echo "$as_me: creating cache $cache_file" >&6;}
1273 >$cache_file
1274 fi
1275
1276 # Check that the precious variables saved in the cache have kept the same
1277 # value.
1278 ac_cache_corrupted=false
1279 for ac_var in `(set) 2>&1 |
1280 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1281 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1282 eval ac_new_set=\$ac_env_${ac_var}_set
1283 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1284 eval ac_new_val="\$ac_env_${ac_var}_value"
1285 case $ac_old_set,$ac_new_set in
1286 set,)
1287 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1288 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1289 ac_cache_corrupted=: ;;
1290 ,set)
1291 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1293 ac_cache_corrupted=: ;;
1294 ,);;
1295 *)
1296 if test "x$ac_old_val" != "x$ac_new_val"; then
1297 # differences in whitespace do not lead to failure.
1298 ac_old_val_w=`echo x $ac_old_val`
1299 ac_new_val_w=`echo x $ac_new_val`
1300 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1301 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303 ac_cache_corrupted=:
1304 else
1305 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1306 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1307 eval $ac_var=\$ac_old_val
1308 fi
1309 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1310 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1311 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1312 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1313 fi;;
1314 esac
1315 # Pass precious variables to config.status.
1316 if test "$ac_new_set" = set; then
1317 case $ac_new_val in
1318 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1319 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1320 *) ac_arg=$ac_var=$ac_new_val ;;
1321 esac
1322 case " $ac_configure_args " in
1323 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1324 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1325 esac
1326 fi
1327 done
1328 if $ac_cache_corrupted; then
1329 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1330 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1331 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1332 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1333 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1334 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1335 { (exit 1); exit 1; }; }
1336 fi
1337
1338 ac_ext=c
1339 ac_cpp='$CPP $CPPFLAGS'
1340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1343
1344
1345 gl_header_list="$gl_header_list stdint.h"
1346 gl_header_list="$gl_header_list wchar.h"
1347 gl_header_list="$gl_header_list string.h"
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368 ac_config_headers="$ac_config_headers config.h:config.in"
1369
1370 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1371 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1372 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1373 if test "${enable_maintainer_mode+set}" = set; then
1374 enableval="$enable_maintainer_mode"
1375 USE_MAINTAINER_MODE=$enableval
1376 else
1377 USE_MAINTAINER_MODE=no
1378 fi;
1379 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1380 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1381
1382
1383 if test $USE_MAINTAINER_MODE = yes; then
1384 MAINTAINER_MODE_TRUE=
1385 MAINTAINER_MODE_FALSE='#'
1386 else
1387 MAINTAINER_MODE_TRUE='#'
1388 MAINTAINER_MODE_FALSE=
1389 fi
1390
1391 MAINT=$MAINTAINER_MODE_TRUE
1392
1393
1394
1395 ac_ext=c
1396 ac_cpp='$CPP $CPPFLAGS'
1397 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1398 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1399 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1400 if test -n "$ac_tool_prefix"; then
1401 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1402 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1403 echo "$as_me:$LINENO: checking for $ac_word" >&5
1404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405 if test "${ac_cv_prog_CC+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1407 else
1408 if test -n "$CC"; then
1409 ac_cv_prog_CC="$CC" # Let the user override the test.
1410 else
1411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412 for as_dir in $PATH
1413 do
1414 IFS=$as_save_IFS
1415 test -z "$as_dir" && as_dir=.
1416 for ac_exec_ext in '' $ac_executable_extensions; do
1417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1418 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420 break 2
1421 fi
1422 done
1423 done
1424
1425 fi
1426 fi
1427 CC=$ac_cv_prog_CC
1428 if test -n "$CC"; then
1429 echo "$as_me:$LINENO: result: $CC" >&5
1430 echo "${ECHO_T}$CC" >&6
1431 else
1432 echo "$as_me:$LINENO: result: no" >&5
1433 echo "${ECHO_T}no" >&6
1434 fi
1435
1436 fi
1437 if test -z "$ac_cv_prog_CC"; then
1438 ac_ct_CC=$CC
1439 # Extract the first word of "gcc", so it can be a program name with args.
1440 set dummy gcc; ac_word=$2
1441 echo "$as_me:$LINENO: checking for $ac_word" >&5
1442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1444 echo $ECHO_N "(cached) $ECHO_C" >&6
1445 else
1446 if test -n "$ac_ct_CC"; then
1447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1448 else
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 for as_dir in $PATH
1451 do
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 for ac_exec_ext in '' $ac_executable_extensions; do
1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1456 ac_cv_prog_ac_ct_CC="gcc"
1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 break 2
1459 fi
1460 done
1461 done
1462
1463 fi
1464 fi
1465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1466 if test -n "$ac_ct_CC"; then
1467 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1468 echo "${ECHO_T}$ac_ct_CC" >&6
1469 else
1470 echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1472 fi
1473
1474 CC=$ac_ct_CC
1475 else
1476 CC="$ac_cv_prog_CC"
1477 fi
1478
1479 if test -z "$CC"; then
1480 if test -n "$ac_tool_prefix"; then
1481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1482 set dummy ${ac_tool_prefix}cc; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_prog_CC+set}" = set; then
1486 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488 if test -n "$CC"; then
1489 ac_cv_prog_CC="$CC" # Let the user override the test.
1490 else
1491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494 IFS=$as_save_IFS
1495 test -z "$as_dir" && as_dir=.
1496 for ac_exec_ext in '' $ac_executable_extensions; do
1497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498 ac_cv_prog_CC="${ac_tool_prefix}cc"
1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500 break 2
1501 fi
1502 done
1503 done
1504
1505 fi
1506 fi
1507 CC=$ac_cv_prog_CC
1508 if test -n "$CC"; then
1509 echo "$as_me:$LINENO: result: $CC" >&5
1510 echo "${ECHO_T}$CC" >&6
1511 else
1512 echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1514 fi
1515
1516 fi
1517 if test -z "$ac_cv_prog_CC"; then
1518 ac_ct_CC=$CC
1519 # Extract the first word of "cc", so it can be a program name with args.
1520 set dummy cc; ac_word=$2
1521 echo "$as_me:$LINENO: checking for $ac_word" >&5
1522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1523 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1524 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 else
1526 if test -n "$ac_ct_CC"; then
1527 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1528 else
1529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 for as_dir in $PATH
1531 do
1532 IFS=$as_save_IFS
1533 test -z "$as_dir" && as_dir=.
1534 for ac_exec_ext in '' $ac_executable_extensions; do
1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536 ac_cv_prog_ac_ct_CC="cc"
1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 break 2
1539 fi
1540 done
1541 done
1542
1543 fi
1544 fi
1545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1546 if test -n "$ac_ct_CC"; then
1547 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1548 echo "${ECHO_T}$ac_ct_CC" >&6
1549 else
1550 echo "$as_me:$LINENO: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1552 fi
1553
1554 CC=$ac_ct_CC
1555 else
1556 CC="$ac_cv_prog_CC"
1557 fi
1558
1559 fi
1560 if test -z "$CC"; then
1561 # Extract the first word of "cc", so it can be a program name with args.
1562 set dummy cc; ac_word=$2
1563 echo "$as_me:$LINENO: checking for $ac_word" >&5
1564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565 if test "${ac_cv_prog_CC+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568 if test -n "$CC"; then
1569 ac_cv_prog_CC="$CC" # Let the user override the test.
1570 else
1571 ac_prog_rejected=no
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1574 do
1575 IFS=$as_save_IFS
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1580 ac_prog_rejected=yes
1581 continue
1582 fi
1583 ac_cv_prog_CC="cc"
1584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1585 break 2
1586 fi
1587 done
1588 done
1589
1590 if test $ac_prog_rejected = yes; then
1591 # We found a bogon in the path, so make sure we never use it.
1592 set dummy $ac_cv_prog_CC
1593 shift
1594 if test $# != 0; then
1595 # We chose a different compiler from the bogus one.
1596 # However, it has the same basename, so the bogon will be chosen
1597 # first if we set CC to just the basename; use the full file name.
1598 shift
1599 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1600 fi
1601 fi
1602 fi
1603 fi
1604 CC=$ac_cv_prog_CC
1605 if test -n "$CC"; then
1606 echo "$as_me:$LINENO: result: $CC" >&5
1607 echo "${ECHO_T}$CC" >&6
1608 else
1609 echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1611 fi
1612
1613 fi
1614 if test -z "$CC"; then
1615 if test -n "$ac_tool_prefix"; then
1616 for ac_prog in cl
1617 do
1618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1619 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623 echo $ECHO_N "(cached) $ECHO_C" >&6
1624 else
1625 if test -n "$CC"; then
1626 ac_cv_prog_CC="$CC" # Let the user override the test.
1627 else
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1630 do
1631 IFS=$as_save_IFS
1632 test -z "$as_dir" && as_dir=.
1633 for ac_exec_ext in '' $ac_executable_extensions; do
1634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637 break 2
1638 fi
1639 done
1640 done
1641
1642 fi
1643 fi
1644 CC=$ac_cv_prog_CC
1645 if test -n "$CC"; then
1646 echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1648 else
1649 echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1651 fi
1652
1653 test -n "$CC" && break
1654 done
1655 fi
1656 if test -z "$CC"; then
1657 ac_ct_CC=$CC
1658 for ac_prog in cl
1659 do
1660 # Extract the first word of "$ac_prog", so it can be a program name with args.
1661 set dummy $ac_prog; ac_word=$2
1662 echo "$as_me:$LINENO: checking for $ac_word" >&5
1663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1664 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1665 echo $ECHO_N "(cached) $ECHO_C" >&6
1666 else
1667 if test -n "$ac_ct_CC"; then
1668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1669 else
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1671 for as_dir in $PATH
1672 do
1673 IFS=$as_save_IFS
1674 test -z "$as_dir" && as_dir=.
1675 for ac_exec_ext in '' $ac_executable_extensions; do
1676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1677 ac_cv_prog_ac_ct_CC="$ac_prog"
1678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1679 break 2
1680 fi
1681 done
1682 done
1683
1684 fi
1685 fi
1686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1687 if test -n "$ac_ct_CC"; then
1688 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1689 echo "${ECHO_T}$ac_ct_CC" >&6
1690 else
1691 echo "$as_me:$LINENO: result: no" >&5
1692 echo "${ECHO_T}no" >&6
1693 fi
1694
1695 test -n "$ac_ct_CC" && break
1696 done
1697
1698 CC=$ac_ct_CC
1699 fi
1700
1701 fi
1702
1703
1704 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1705 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1706 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1707 See \`config.log' for more details." >&5
1708 echo "$as_me: error: no acceptable C compiler found in \$PATH
1709 See \`config.log' for more details." >&2;}
1710 { (exit 1); exit 1; }; }; }
1711
1712 # Provide some information about the compiler.
1713 echo "$as_me:$LINENO:" \
1714 "checking for C compiler version" >&5
1715 ac_compiler=`set X $ac_compile; echo $2`
1716 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1717 (eval $ac_compiler --version </dev/null >&5) 2>&5
1718 ac_status=$?
1719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1720 (exit $ac_status); }
1721 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1722 (eval $ac_compiler -v </dev/null >&5) 2>&5
1723 ac_status=$?
1724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1725 (exit $ac_status); }
1726 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1727 (eval $ac_compiler -V </dev/null >&5) 2>&5
1728 ac_status=$?
1729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1730 (exit $ac_status); }
1731
1732 cat >conftest.$ac_ext <<_ACEOF
1733 /* confdefs.h. */
1734 _ACEOF
1735 cat confdefs.h >>conftest.$ac_ext
1736 cat >>conftest.$ac_ext <<_ACEOF
1737 /* end confdefs.h. */
1738
1739 int
1740 main ()
1741 {
1742
1743 ;
1744 return 0;
1745 }
1746 _ACEOF
1747 ac_clean_files_save=$ac_clean_files
1748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1749 # Try to create an executable without -o first, disregard a.out.
1750 # It will help us diagnose broken compilers, and finding out an intuition
1751 # of exeext.
1752 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1753 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1755 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1756 (eval $ac_link_default) 2>&5
1757 ac_status=$?
1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1759 (exit $ac_status); }; then
1760 # Find the output, starting from the most likely. This scheme is
1761 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1762 # resort.
1763
1764 # Be careful to initialize this variable, since it used to be cached.
1765 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1766 ac_cv_exeext=
1767 # b.out is created by i960 compilers.
1768 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1769 do
1770 test -f "$ac_file" || continue
1771 case $ac_file in
1772 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1773 ;;
1774 conftest.$ac_ext )
1775 # This is the source file.
1776 ;;
1777 [ab].out )
1778 # We found the default executable, but exeext='' is most
1779 # certainly right.
1780 break;;
1781 *.* )
1782 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1783 # FIXME: I believe we export ac_cv_exeext for Libtool,
1784 # but it would be cool to find out if it's true. Does anybody
1785 # maintain Libtool? --akim.
1786 export ac_cv_exeext
1787 break;;
1788 * )
1789 break;;
1790 esac
1791 done
1792 else
1793 echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1797 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1798 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1799 See \`config.log' for more details." >&5
1800 echo "$as_me: error: C compiler cannot create executables
1801 See \`config.log' for more details." >&2;}
1802 { (exit 77); exit 77; }; }; }
1803 fi
1804
1805 ac_exeext=$ac_cv_exeext
1806 echo "$as_me:$LINENO: result: $ac_file" >&5
1807 echo "${ECHO_T}$ac_file" >&6
1808
1809 # Check the compiler produces executables we can run. If not, either
1810 # the compiler is broken, or we cross compile.
1811 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1812 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1813 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1814 # If not cross compiling, check that we can run a simple program.
1815 if test "$cross_compiling" != yes; then
1816 if { ac_try='./$ac_file'
1817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1818 (eval $ac_try) 2>&5
1819 ac_status=$?
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }; }; then
1822 cross_compiling=no
1823 else
1824 if test "$cross_compiling" = maybe; then
1825 cross_compiling=yes
1826 else
1827 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1828 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1829 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1830 If you meant to cross compile, use \`--host'.
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: cannot run C compiled programs.
1833 If you meant to cross compile, use \`--host'.
1834 See \`config.log' for more details." >&2;}
1835 { (exit 1); exit 1; }; }; }
1836 fi
1837 fi
1838 fi
1839 echo "$as_me:$LINENO: result: yes" >&5
1840 echo "${ECHO_T}yes" >&6
1841
1842 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1843 ac_clean_files=$ac_clean_files_save
1844 # Check the compiler produces executables we can run. If not, either
1845 # the compiler is broken, or we cross compile.
1846 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1847 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1848 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1849 echo "${ECHO_T}$cross_compiling" >&6
1850
1851 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1852 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1854 (eval $ac_link) 2>&5
1855 ac_status=$?
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }; then
1858 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1859 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1860 # work properly (i.e., refer to `conftest.exe'), while it won't with
1861 # `rm'.
1862 for ac_file in conftest.exe conftest conftest.*; do
1863 test -f "$ac_file" || continue
1864 case $ac_file in
1865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1867 export ac_cv_exeext
1868 break;;
1869 * ) break;;
1870 esac
1871 done
1872 else
1873 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1874 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1875 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1876 See \`config.log' for more details." >&5
1877 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1878 See \`config.log' for more details." >&2;}
1879 { (exit 1); exit 1; }; }; }
1880 fi
1881
1882 rm -f conftest$ac_cv_exeext
1883 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1884 echo "${ECHO_T}$ac_cv_exeext" >&6
1885
1886 rm -f conftest.$ac_ext
1887 EXEEXT=$ac_cv_exeext
1888 ac_exeext=$EXEEXT
1889 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1890 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1891 if test "${ac_cv_objext+set}" = set; then
1892 echo $ECHO_N "(cached) $ECHO_C" >&6
1893 else
1894 cat >conftest.$ac_ext <<_ACEOF
1895 /* confdefs.h. */
1896 _ACEOF
1897 cat confdefs.h >>conftest.$ac_ext
1898 cat >>conftest.$ac_ext <<_ACEOF
1899 /* end confdefs.h. */
1900
1901 int
1902 main ()
1903 {
1904
1905 ;
1906 return 0;
1907 }
1908 _ACEOF
1909 rm -f conftest.o conftest.obj
1910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1911 (eval $ac_compile) 2>&5
1912 ac_status=$?
1913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1914 (exit $ac_status); }; then
1915 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1916 case $ac_file in
1917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1919 break;;
1920 esac
1921 done
1922 else
1923 echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1925
1926 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1927 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1928 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1929 See \`config.log' for more details." >&5
1930 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1931 See \`config.log' for more details." >&2;}
1932 { (exit 1); exit 1; }; }; }
1933 fi
1934
1935 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1936 fi
1937 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1938 echo "${ECHO_T}$ac_cv_objext" >&6
1939 OBJEXT=$ac_cv_objext
1940 ac_objext=$OBJEXT
1941 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1942 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1943 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1944 echo $ECHO_N "(cached) $ECHO_C" >&6
1945 else
1946 cat >conftest.$ac_ext <<_ACEOF
1947 /* confdefs.h. */
1948 _ACEOF
1949 cat confdefs.h >>conftest.$ac_ext
1950 cat >>conftest.$ac_ext <<_ACEOF
1951 /* end confdefs.h. */
1952
1953 int
1954 main ()
1955 {
1956 #ifndef __GNUC__
1957 choke me
1958 #endif
1959
1960 ;
1961 return 0;
1962 }
1963 _ACEOF
1964 rm -f conftest.$ac_objext
1965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1966 (eval $ac_compile) 2>conftest.er1
1967 ac_status=$?
1968 grep -v '^ *+' conftest.er1 >conftest.err
1969 rm -f conftest.er1
1970 cat conftest.err >&5
1971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1972 (exit $ac_status); } &&
1973 { ac_try='test -z "$ac_c_werror_flag"
1974 || test ! -s conftest.err'
1975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1976 (eval $ac_try) 2>&5
1977 ac_status=$?
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; } &&
1980 { ac_try='test -s conftest.$ac_objext'
1981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982 (eval $ac_try) 2>&5
1983 ac_status=$?
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }; }; then
1986 ac_compiler_gnu=yes
1987 else
1988 echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1990
1991 ac_compiler_gnu=no
1992 fi
1993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1995
1996 fi
1997 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1998 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1999 GCC=`test $ac_compiler_gnu = yes && echo yes`
2000 ac_test_CFLAGS=${CFLAGS+set}
2001 ac_save_CFLAGS=$CFLAGS
2002 CFLAGS="-g"
2003 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2004 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2005 if test "${ac_cv_prog_cc_g+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2007 else
2008 cat >conftest.$ac_ext <<_ACEOF
2009 /* confdefs.h. */
2010 _ACEOF
2011 cat confdefs.h >>conftest.$ac_ext
2012 cat >>conftest.$ac_ext <<_ACEOF
2013 /* end confdefs.h. */
2014
2015 int
2016 main ()
2017 {
2018
2019 ;
2020 return 0;
2021 }
2022 _ACEOF
2023 rm -f conftest.$ac_objext
2024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2025 (eval $ac_compile) 2>conftest.er1
2026 ac_status=$?
2027 grep -v '^ *+' conftest.er1 >conftest.err
2028 rm -f conftest.er1
2029 cat conftest.err >&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); } &&
2032 { ac_try='test -z "$ac_c_werror_flag"
2033 || test ! -s conftest.err'
2034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }; } &&
2039 { ac_try='test -s conftest.$ac_objext'
2040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2041 (eval $ac_try) 2>&5
2042 ac_status=$?
2043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2044 (exit $ac_status); }; }; then
2045 ac_cv_prog_cc_g=yes
2046 else
2047 echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2049
2050 ac_cv_prog_cc_g=no
2051 fi
2052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2053 fi
2054 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2055 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2056 if test "$ac_test_CFLAGS" = set; then
2057 CFLAGS=$ac_save_CFLAGS
2058 elif test $ac_cv_prog_cc_g = yes; then
2059 if test "$GCC" = yes; then
2060 CFLAGS="-g -O2"
2061 else
2062 CFLAGS="-g"
2063 fi
2064 else
2065 if test "$GCC" = yes; then
2066 CFLAGS="-O2"
2067 else
2068 CFLAGS=
2069 fi
2070 fi
2071 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2072 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2073 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 else
2076 ac_cv_prog_cc_stdc=no
2077 ac_save_CC=$CC
2078 cat >conftest.$ac_ext <<_ACEOF
2079 /* confdefs.h. */
2080 _ACEOF
2081 cat confdefs.h >>conftest.$ac_ext
2082 cat >>conftest.$ac_ext <<_ACEOF
2083 /* end confdefs.h. */
2084 #include <stdarg.h>
2085 #include <stdio.h>
2086 #include <sys/types.h>
2087 #include <sys/stat.h>
2088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2089 struct buf { int x; };
2090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2091 static char *e (p, i)
2092 char **p;
2093 int i;
2094 {
2095 return p[i];
2096 }
2097 static char *f (char * (*g) (char **, int), char **p, ...)
2098 {
2099 char *s;
2100 va_list v;
2101 va_start (v,p);
2102 s = g (p, va_arg (v,int));
2103 va_end (v);
2104 return s;
2105 }
2106
2107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2108 function prototypes and stuff, but not '\xHH' hex character constants.
2109 These don't provoke an error unfortunately, instead are silently treated
2110 as 'x'. The following induces an error, until -std1 is added to get
2111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2112 array size at least. It's necessary to write '\x00'==0 to get something
2113 that's true only with -std1. */
2114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2115
2116 int test (int i, double x);
2117 struct s1 {int (*f) (int a);};
2118 struct s2 {int (*f) (double a);};
2119 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2120 int argc;
2121 char **argv;
2122 int
2123 main ()
2124 {
2125 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2126 ;
2127 return 0;
2128 }
2129 _ACEOF
2130 # Don't try gcc -ansi; that turns off useful extensions and
2131 # breaks some systems' header files.
2132 # AIX -qlanglvl=ansi
2133 # Ultrix and OSF/1 -std1
2134 # HP-UX 10.20 and later -Ae
2135 # HP-UX older versions -Aa -D_HPUX_SOURCE
2136 # SVR4 -Xc -D__EXTENSIONS__
2137 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2138 do
2139 CC="$ac_save_CC $ac_arg"
2140 rm -f conftest.$ac_objext
2141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2142 (eval $ac_compile) 2>conftest.er1
2143 ac_status=$?
2144 grep -v '^ *+' conftest.er1 >conftest.err
2145 rm -f conftest.er1
2146 cat conftest.err >&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); } &&
2149 { ac_try='test -z "$ac_c_werror_flag"
2150 || test ! -s conftest.err'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2152 (eval $ac_try) 2>&5
2153 ac_status=$?
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; } &&
2156 { ac_try='test -s conftest.$ac_objext'
2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 (eval $ac_try) 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; }; then
2162 ac_cv_prog_cc_stdc=$ac_arg
2163 break
2164 else
2165 echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2167
2168 fi
2169 rm -f conftest.err conftest.$ac_objext
2170 done
2171 rm -f conftest.$ac_ext conftest.$ac_objext
2172 CC=$ac_save_CC
2173
2174 fi
2175
2176 case "x$ac_cv_prog_cc_stdc" in
2177 x|xno)
2178 echo "$as_me:$LINENO: result: none needed" >&5
2179 echo "${ECHO_T}none needed" >&6 ;;
2180 *)
2181 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2182 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2183 CC="$CC $ac_cv_prog_cc_stdc" ;;
2184 esac
2185
2186 # Some people use a C++ compiler to compile C. Since we use `exit',
2187 # in C++ we need to declare it. In case someone uses the same compiler
2188 # for both compiling C and C++ we need to have the C++ compiler decide
2189 # the declaration of exit, since it's the most demanding environment.
2190 cat >conftest.$ac_ext <<_ACEOF
2191 #ifndef __cplusplus
2192 choke me
2193 #endif
2194 _ACEOF
2195 rm -f conftest.$ac_objext
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>conftest.er1
2198 ac_status=$?
2199 grep -v '^ *+' conftest.er1 >conftest.err
2200 rm -f conftest.er1
2201 cat conftest.err >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); } &&
2204 { ac_try='test -z "$ac_c_werror_flag"
2205 || test ! -s conftest.err'
2206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 (eval $ac_try) 2>&5
2208 ac_status=$?
2209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210 (exit $ac_status); }; } &&
2211 { ac_try='test -s conftest.$ac_objext'
2212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2213 (eval $ac_try) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; }; then
2217 for ac_declaration in \
2218 '' \
2219 'extern "C" void std::exit (int) throw (); using std::exit;' \
2220 'extern "C" void std::exit (int); using std::exit;' \
2221 'extern "C" void exit (int) throw ();' \
2222 'extern "C" void exit (int);' \
2223 'void exit (int);'
2224 do
2225 cat >conftest.$ac_ext <<_ACEOF
2226 /* confdefs.h. */
2227 _ACEOF
2228 cat confdefs.h >>conftest.$ac_ext
2229 cat >>conftest.$ac_ext <<_ACEOF
2230 /* end confdefs.h. */
2231 $ac_declaration
2232 #include <stdlib.h>
2233 int
2234 main ()
2235 {
2236 exit (42);
2237 ;
2238 return 0;
2239 }
2240 _ACEOF
2241 rm -f conftest.$ac_objext
2242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2243 (eval $ac_compile) 2>conftest.er1
2244 ac_status=$?
2245 grep -v '^ *+' conftest.er1 >conftest.err
2246 rm -f conftest.er1
2247 cat conftest.err >&5
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); } &&
2250 { ac_try='test -z "$ac_c_werror_flag"
2251 || test ! -s conftest.err'
2252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2253 (eval $ac_try) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; } &&
2257 { ac_try='test -s conftest.$ac_objext'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2263 :
2264 else
2265 echo "$as_me: failed program was:" >&5
2266 sed 's/^/| /' conftest.$ac_ext >&5
2267
2268 continue
2269 fi
2270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2271 cat >conftest.$ac_ext <<_ACEOF
2272 /* confdefs.h. */
2273 _ACEOF
2274 cat confdefs.h >>conftest.$ac_ext
2275 cat >>conftest.$ac_ext <<_ACEOF
2276 /* end confdefs.h. */
2277 $ac_declaration
2278 int
2279 main ()
2280 {
2281 exit (42);
2282 ;
2283 return 0;
2284 }
2285 _ACEOF
2286 rm -f conftest.$ac_objext
2287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2288 (eval $ac_compile) 2>conftest.er1
2289 ac_status=$?
2290 grep -v '^ *+' conftest.er1 >conftest.err
2291 rm -f conftest.er1
2292 cat conftest.err >&5
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
2295 { ac_try='test -z "$ac_c_werror_flag"
2296 || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 (eval $ac_try) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 break
2309 else
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2312
2313 fi
2314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2315 done
2316 rm -f conftest*
2317 if test -n "$ac_declaration"; then
2318 echo '#ifdef __cplusplus' >>confdefs.h
2319 echo $ac_declaration >>confdefs.h
2320 echo '#endif' >>confdefs.h
2321 fi
2322
2323 else
2324 echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2326
2327 fi
2328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2329 ac_ext=c
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2334
2335
2336 cat >>confdefs.h <<\_ACEOF
2337 #define _GNU_SOURCE 1
2338 _ACEOF
2339
2340
2341
2342 ac_ext=c
2343 ac_cpp='$CPP $CPPFLAGS'
2344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2348 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2349 # On Suns, sometimes $CPP names a directory.
2350 if test -n "$CPP" && test -d "$CPP"; then
2351 CPP=
2352 fi
2353 if test -z "$CPP"; then
2354 if test "${ac_cv_prog_CPP+set}" = set; then
2355 echo $ECHO_N "(cached) $ECHO_C" >&6
2356 else
2357 # Double quotes because CPP needs to be expanded
2358 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2359 do
2360 ac_preproc_ok=false
2361 for ac_c_preproc_warn_flag in '' yes
2362 do
2363 # Use a header file that comes with gcc, so configuring glibc
2364 # with a fresh cross-compiler works.
2365 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2366 # <limits.h> exists even on freestanding compilers.
2367 # On the NeXT, cc -E runs the code through the compiler's parser,
2368 # not just through cpp. "Syntax error" is here to catch this case.
2369 cat >conftest.$ac_ext <<_ACEOF
2370 /* confdefs.h. */
2371 _ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2375 #ifdef __STDC__
2376 # include <limits.h>
2377 #else
2378 # include <assert.h>
2379 #endif
2380 Syntax error
2381 _ACEOF
2382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2384 ac_status=$?
2385 grep -v '^ *+' conftest.er1 >conftest.err
2386 rm -f conftest.er1
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } >/dev/null; then
2390 if test -s conftest.err; then
2391 ac_cpp_err=$ac_c_preproc_warn_flag
2392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2393 else
2394 ac_cpp_err=
2395 fi
2396 else
2397 ac_cpp_err=yes
2398 fi
2399 if test -z "$ac_cpp_err"; then
2400 :
2401 else
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 # Broken: fails on valid input.
2406 continue
2407 fi
2408 rm -f conftest.err conftest.$ac_ext
2409
2410 # OK, works on sane cases. Now check whether non-existent headers
2411 # can be detected and how.
2412 cat >conftest.$ac_ext <<_ACEOF
2413 /* confdefs.h. */
2414 _ACEOF
2415 cat confdefs.h >>conftest.$ac_ext
2416 cat >>conftest.$ac_ext <<_ACEOF
2417 /* end confdefs.h. */
2418 #include <ac_nonexistent.h>
2419 _ACEOF
2420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2422 ac_status=$?
2423 grep -v '^ *+' conftest.er1 >conftest.err
2424 rm -f conftest.er1
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } >/dev/null; then
2428 if test -s conftest.err; then
2429 ac_cpp_err=$ac_c_preproc_warn_flag
2430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2431 else
2432 ac_cpp_err=
2433 fi
2434 else
2435 ac_cpp_err=yes
2436 fi
2437 if test -z "$ac_cpp_err"; then
2438 # Broken: success on invalid input.
2439 continue
2440 else
2441 echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444 # Passes both tests.
2445 ac_preproc_ok=:
2446 break
2447 fi
2448 rm -f conftest.err conftest.$ac_ext
2449
2450 done
2451 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2452 rm -f conftest.err conftest.$ac_ext
2453 if $ac_preproc_ok; then
2454 break
2455 fi
2456
2457 done
2458 ac_cv_prog_CPP=$CPP
2459
2460 fi
2461 CPP=$ac_cv_prog_CPP
2462 else
2463 ac_cv_prog_CPP=$CPP
2464 fi
2465 echo "$as_me:$LINENO: result: $CPP" >&5
2466 echo "${ECHO_T}$CPP" >&6
2467 ac_preproc_ok=false
2468 for ac_c_preproc_warn_flag in '' yes
2469 do
2470 # Use a header file that comes with gcc, so configuring glibc
2471 # with a fresh cross-compiler works.
2472 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2473 # <limits.h> exists even on freestanding compilers.
2474 # On the NeXT, cc -E runs the code through the compiler's parser,
2475 # not just through cpp. "Syntax error" is here to catch this case.
2476 cat >conftest.$ac_ext <<_ACEOF
2477 /* confdefs.h. */
2478 _ACEOF
2479 cat confdefs.h >>conftest.$ac_ext
2480 cat >>conftest.$ac_ext <<_ACEOF
2481 /* end confdefs.h. */
2482 #ifdef __STDC__
2483 # include <limits.h>
2484 #else
2485 # include <assert.h>
2486 #endif
2487 Syntax error
2488 _ACEOF
2489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2491 ac_status=$?
2492 grep -v '^ *+' conftest.er1 >conftest.err
2493 rm -f conftest.er1
2494 cat conftest.err >&5
2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496 (exit $ac_status); } >/dev/null; then
2497 if test -s conftest.err; then
2498 ac_cpp_err=$ac_c_preproc_warn_flag
2499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2500 else
2501 ac_cpp_err=
2502 fi
2503 else
2504 ac_cpp_err=yes
2505 fi
2506 if test -z "$ac_cpp_err"; then
2507 :
2508 else
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2511
2512 # Broken: fails on valid input.
2513 continue
2514 fi
2515 rm -f conftest.err conftest.$ac_ext
2516
2517 # OK, works on sane cases. Now check whether non-existent headers
2518 # can be detected and how.
2519 cat >conftest.$ac_ext <<_ACEOF
2520 /* confdefs.h. */
2521 _ACEOF
2522 cat confdefs.h >>conftest.$ac_ext
2523 cat >>conftest.$ac_ext <<_ACEOF
2524 /* end confdefs.h. */
2525 #include <ac_nonexistent.h>
2526 _ACEOF
2527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2529 ac_status=$?
2530 grep -v '^ *+' conftest.er1 >conftest.err
2531 rm -f conftest.er1
2532 cat conftest.err >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); } >/dev/null; then
2535 if test -s conftest.err; then
2536 ac_cpp_err=$ac_c_preproc_warn_flag
2537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2538 else
2539 ac_cpp_err=
2540 fi
2541 else
2542 ac_cpp_err=yes
2543 fi
2544 if test -z "$ac_cpp_err"; then
2545 # Broken: success on invalid input.
2546 continue
2547 else
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 # Passes both tests.
2552 ac_preproc_ok=:
2553 break
2554 fi
2555 rm -f conftest.err conftest.$ac_ext
2556
2557 done
2558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2559 rm -f conftest.err conftest.$ac_ext
2560 if $ac_preproc_ok; then
2561 :
2562 else
2563 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2564 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2566 See \`config.log' for more details." >&5
2567 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2568 See \`config.log' for more details." >&2;}
2569 { (exit 1); exit 1; }; }; }
2570 fi
2571
2572 ac_ext=c
2573 ac_cpp='$CPP $CPPFLAGS'
2574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2577
2578
2579 echo "$as_me:$LINENO: checking for egrep" >&5
2580 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2581 if test "${ac_cv_prog_egrep+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2585 then ac_cv_prog_egrep='grep -E'
2586 else ac_cv_prog_egrep='egrep'
2587 fi
2588 fi
2589 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2590 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2591 EGREP=$ac_cv_prog_egrep
2592
2593
2594
2595 echo "$as_me:$LINENO: checking for AIX" >&5
2596 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2597 cat >conftest.$ac_ext <<_ACEOF
2598 /* confdefs.h. */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h. */
2603 #ifdef _AIX
2604 yes
2605 #endif
2606
2607 _ACEOF
2608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2609 $EGREP "yes" >/dev/null 2>&1; then
2610 echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6
2612 cat >>confdefs.h <<\_ACEOF
2613 #define _ALL_SOURCE 1
2614 _ACEOF
2615
2616 else
2617 echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2619 fi
2620 rm -f conftest*
2621
2622
2623 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2624 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2625 if test "${ac_cv_search_strerror+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 else
2628 ac_func_search_save_LIBS=$LIBS
2629 ac_cv_search_strerror=no
2630 cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h. */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2636
2637 /* Override any gcc2 internal prototype to avoid an error. */
2638 #ifdef __cplusplus
2639 extern "C"
2640 #endif
2641 /* We use char because int might match the return type of a gcc2
2642 builtin and then its argument prototype would still apply. */
2643 char strerror ();
2644 int
2645 main ()
2646 {
2647 strerror ();
2648 ;
2649 return 0;
2650 }
2651 _ACEOF
2652 rm -f conftest.$ac_objext conftest$ac_exeext
2653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2654 (eval $ac_link) 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -z "$ac_c_werror_flag"
2662 || test ! -s conftest.err'
2663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; } &&
2668 { ac_try='test -s conftest$ac_exeext'
2669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 (eval $ac_try) 2>&5
2671 ac_status=$?
2672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; }; then
2674 ac_cv_search_strerror="none required"
2675 else
2676 echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679 fi
2680 rm -f conftest.err conftest.$ac_objext \
2681 conftest$ac_exeext conftest.$ac_ext
2682 if test "$ac_cv_search_strerror" = no; then
2683 for ac_lib in cposix; do
2684 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2685 cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h. */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2691
2692 /* Override any gcc2 internal prototype to avoid an error. */
2693 #ifdef __cplusplus
2694 extern "C"
2695 #endif
2696 /* We use char because int might match the return type of a gcc2
2697 builtin and then its argument prototype would still apply. */
2698 char strerror ();
2699 int
2700 main ()
2701 {
2702 strerror ();
2703 ;
2704 return 0;
2705 }
2706 _ACEOF
2707 rm -f conftest.$ac_objext conftest$ac_exeext
2708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2709 (eval $ac_link) 2>conftest.er1
2710 ac_status=$?
2711 grep -v '^ *+' conftest.er1 >conftest.err
2712 rm -f conftest.er1
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } &&
2716 { ac_try='test -z "$ac_c_werror_flag"
2717 || test ! -s conftest.err'
2718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2719 (eval $ac_try) 2>&5
2720 ac_status=$?
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; } &&
2723 { ac_try='test -s conftest$ac_exeext'
2724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2725 (eval $ac_try) 2>&5
2726 ac_status=$?
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2729 ac_cv_search_strerror="-l$ac_lib"
2730 break
2731 else
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735 fi
2736 rm -f conftest.err conftest.$ac_objext \
2737 conftest$ac_exeext conftest.$ac_ext
2738 done
2739 fi
2740 LIBS=$ac_func_search_save_LIBS
2741 fi
2742 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2743 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2744 if test "$ac_cv_search_strerror" != no; then
2745 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2746
2747 fi
2748
2749 if test -n "$ac_tool_prefix"; then
2750 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2751 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2752 echo "$as_me:$LINENO: checking for $ac_word" >&5
2753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2754 if test "${ac_cv_prog_RANLIB+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 else
2757 if test -n "$RANLIB"; then
2758 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2759 else
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763 IFS=$as_save_IFS
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769 break 2
2770 fi
2771 done
2772 done
2773
2774 fi
2775 fi
2776 RANLIB=$ac_cv_prog_RANLIB
2777 if test -n "$RANLIB"; then
2778 echo "$as_me:$LINENO: result: $RANLIB" >&5
2779 echo "${ECHO_T}$RANLIB" >&6
2780 else
2781 echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6
2783 fi
2784
2785 fi
2786 if test -z "$ac_cv_prog_RANLIB"; then
2787 ac_ct_RANLIB=$RANLIB
2788 # Extract the first word of "ranlib", so it can be a program name with args.
2789 set dummy ranlib; ac_word=$2
2790 echo "$as_me:$LINENO: checking for $ac_word" >&5
2791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2792 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795 if test -n "$ac_ct_RANLIB"; then
2796 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_exec_ext in '' $ac_executable_extensions; do
2804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2805 ac_cv_prog_ac_ct_RANLIB="ranlib"
2806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 break 2
2808 fi
2809 done
2810 done
2811
2812 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2813 fi
2814 fi
2815 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2816 if test -n "$ac_ct_RANLIB"; then
2817 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2818 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2819 else
2820 echo "$as_me:$LINENO: result: no" >&5
2821 echo "${ECHO_T}no" >&6
2822 fi
2823
2824 RANLIB=$ac_ct_RANLIB
2825 else
2826 RANLIB="$ac_cv_prog_RANLIB"
2827 fi
2828
2829 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2830 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2831 if test "${ac_cv_header_stdc+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 else
2834 cat >conftest.$ac_ext <<_ACEOF
2835 /* confdefs.h. */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2840 #include <stdlib.h>
2841 #include <stdarg.h>
2842 #include <string.h>
2843 #include <float.h>
2844
2845 int
2846 main ()
2847 {
2848
2849 ;
2850 return 0;
2851 }
2852 _ACEOF
2853 rm -f conftest.$ac_objext
2854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2855 (eval $ac_compile) 2>conftest.er1
2856 ac_status=$?
2857 grep -v '^ *+' conftest.er1 >conftest.err
2858 rm -f conftest.er1
2859 cat conftest.err >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 { ac_try='test -z "$ac_c_werror_flag"
2863 || test ! -s conftest.err'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865 (eval $ac_try) 2>&5
2866 ac_status=$?
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; } &&
2869 { ac_try='test -s conftest.$ac_objext'
2870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871 (eval $ac_try) 2>&5
2872 ac_status=$?
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; }; then
2875 ac_cv_header_stdc=yes
2876 else
2877 echo "$as_me: failed program was:" >&5
2878 sed 's/^/| /' conftest.$ac_ext >&5
2879
2880 ac_cv_header_stdc=no
2881 fi
2882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2883
2884 if test $ac_cv_header_stdc = yes; then
2885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2886 cat >conftest.$ac_ext <<_ACEOF
2887 /* confdefs.h. */
2888 _ACEOF
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2892 #include <string.h>
2893
2894 _ACEOF
2895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2896 $EGREP "memchr" >/dev/null 2>&1; then
2897 :
2898 else
2899 ac_cv_header_stdc=no
2900 fi
2901 rm -f conftest*
2902
2903 fi
2904
2905 if test $ac_cv_header_stdc = yes; then
2906 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2907 cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h. */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2913 #include <stdlib.h>
2914
2915 _ACEOF
2916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2917 $EGREP "free" >/dev/null 2>&1; then
2918 :
2919 else
2920 ac_cv_header_stdc=no
2921 fi
2922 rm -f conftest*
2923
2924 fi
2925
2926 if test $ac_cv_header_stdc = yes; then
2927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2928 if test "$cross_compiling" = yes; then
2929 :
2930 else
2931 cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h. */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2937 #include <ctype.h>
2938 #if ((' ' & 0x0FF) == 0x020)
2939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2941 #else
2942 # define ISLOWER(c) \
2943 (('a' <= (c) && (c) <= 'i') \
2944 || ('j' <= (c) && (c) <= 'r') \
2945 || ('s' <= (c) && (c) <= 'z'))
2946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2947 #endif
2948
2949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2950 int
2951 main ()
2952 {
2953 int i;
2954 for (i = 0; i < 256; i++)
2955 if (XOR (islower (i), ISLOWER (i))
2956 || toupper (i) != TOUPPER (i))
2957 exit(2);
2958 exit (0);
2959 }
2960 _ACEOF
2961 rm -f conftest$ac_exeext
2962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2963 (eval $ac_link) 2>&5
2964 ac_status=$?
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 (eval $ac_try) 2>&5
2969 ac_status=$?
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }; }; then
2972 :
2973 else
2974 echo "$as_me: program exited with status $ac_status" >&5
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978 ( exit $ac_status )
2979 ac_cv_header_stdc=no
2980 fi
2981 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2982 fi
2983 fi
2984 fi
2985 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2986 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2987 if test $ac_cv_header_stdc = yes; then
2988
2989 cat >>confdefs.h <<\_ACEOF
2990 #define STDC_HEADERS 1
2991 _ACEOF
2992
2993 fi
2994
2995 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3006 inttypes.h stdint.h unistd.h
3007 do
3008 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3009 echo "$as_me:$LINENO: checking for $ac_header" >&5
3010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014 cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h. */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020 $ac_includes_default
3021
3022 #include <$ac_header>
3023 _ACEOF
3024 rm -f conftest.$ac_objext
3025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3026 (eval $ac_compile) 2>conftest.er1
3027 ac_status=$?
3028 grep -v '^ *+' conftest.er1 >conftest.err
3029 rm -f conftest.er1
3030 cat conftest.err >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } &&
3033 { ac_try='test -z "$ac_c_werror_flag"
3034 || test ! -s conftest.err'
3035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 (eval $ac_try) 2>&5
3037 ac_status=$?
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; } &&
3040 { ac_try='test -s conftest.$ac_objext'
3041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042 (eval $ac_try) 2>&5
3043 ac_status=$?
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; }; then
3046 eval "$as_ac_Header=yes"
3047 else
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3050
3051 eval "$as_ac_Header=no"
3052 fi
3053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3054 fi
3055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3058 cat >>confdefs.h <<_ACEOF
3059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3060 _ACEOF
3061
3062 fi
3063
3064 done
3065
3066
3067
3068 if test "${ac_cv_header_minix_config_h+set}" = set; then
3069 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3070 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3071 if test "${ac_cv_header_minix_config_h+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 fi
3074 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3075 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3076 else
3077 # Is the header compilable?
3078 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3079 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h. */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3086 $ac_includes_default
3087 #include <minix/config.h>
3088 _ACEOF
3089 rm -f conftest.$ac_objext
3090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3091 (eval $ac_compile) 2>conftest.er1
3092 ac_status=$?
3093 grep -v '^ *+' conftest.er1 >conftest.err
3094 rm -f conftest.er1
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try='test -z "$ac_c_werror_flag"
3099 || test ! -s conftest.err'
3100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 (eval $ac_try) 2>&5
3102 ac_status=$?
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; } &&
3105 { ac_try='test -s conftest.$ac_objext'
3106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3107 (eval $ac_try) 2>&5
3108 ac_status=$?
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; }; then
3111 ac_header_compiler=yes
3112 else
3113 echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116 ac_header_compiler=no
3117 fi
3118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3120 echo "${ECHO_T}$ac_header_compiler" >&6
3121
3122 # Is the header present?
3123 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3124 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3125 cat >conftest.$ac_ext <<_ACEOF
3126 /* confdefs.h. */
3127 _ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131 #include <minix/config.h>
3132 _ACEOF
3133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3135 ac_status=$?
3136 grep -v '^ *+' conftest.er1 >conftest.err
3137 rm -f conftest.er1
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null; then
3141 if test -s conftest.err; then
3142 ac_cpp_err=$ac_c_preproc_warn_flag
3143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3144 else
3145 ac_cpp_err=
3146 fi
3147 else
3148 ac_cpp_err=yes
3149 fi
3150 if test -z "$ac_cpp_err"; then
3151 ac_header_preproc=yes
3152 else
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3155
3156 ac_header_preproc=no
3157 fi
3158 rm -f conftest.err conftest.$ac_ext
3159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3160 echo "${ECHO_T}$ac_header_preproc" >&6
3161
3162 # So? What about this header?
3163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3164 yes:no: )
3165 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3166 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3167 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3168 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3169 ac_header_preproc=yes
3170 ;;
3171 no:yes:* )
3172 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3173 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3174 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3175 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3176 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3177 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3178 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3179 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3180 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3181 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3182 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3183 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3184 (
3185 cat <<\_ASBOX
3186 ## ------------------------------------------ ##
3187 ## Report this to the AC_PACKAGE_NAME lists. ##
3188 ## ------------------------------------------ ##
3189 _ASBOX
3190 ) |
3191 sed "s/^/$as_me: WARNING: /" >&2
3192 ;;
3193 esac
3194 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3195 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3196 if test "${ac_cv_header_minix_config_h+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199 ac_cv_header_minix_config_h=$ac_header_preproc
3200 fi
3201 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3202 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3203
3204 fi
3205 if test $ac_cv_header_minix_config_h = yes; then
3206 MINIX=yes
3207 else
3208 MINIX=
3209 fi
3210
3211
3212 if test "$MINIX" = yes; then
3213
3214 cat >>confdefs.h <<\_ACEOF
3215 #define _POSIX_SOURCE 1
3216 _ACEOF
3217
3218
3219 cat >>confdefs.h <<\_ACEOF
3220 #define _POSIX_1_SOURCE 2
3221 _ACEOF
3222
3223
3224 cat >>confdefs.h <<\_ACEOF
3225 #define _MINIX 1
3226 _ACEOF
3227
3228 fi
3229
3230
3231
3232 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3233 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3234 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3235 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 else
3237 cat >conftest.$ac_ext <<_ACEOF
3238 /* confdefs.h. */
3239 _ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3243
3244 # define __EXTENSIONS__ 1
3245 $ac_includes_default
3246 int
3247 main ()
3248 {
3249
3250 ;
3251 return 0;
3252 }
3253 _ACEOF
3254 rm -f conftest.$ac_objext
3255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3256 (eval $ac_compile) 2>conftest.er1
3257 ac_status=$?
3258 grep -v '^ *+' conftest.er1 >conftest.err
3259 rm -f conftest.er1
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } &&
3263 { ac_try='test -z "$ac_c_werror_flag"
3264 || test ! -s conftest.err'
3265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 (eval $ac_try) 2>&5
3267 ac_status=$?
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); }; } &&
3270 { ac_try='test -s conftest.$ac_objext'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272 (eval $ac_try) 2>&5
3273 ac_status=$?
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; }; then
3276 ac_cv_safe_to_define___extensions__=yes
3277 else
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280
3281 ac_cv_safe_to_define___extensions__=no
3282 fi
3283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3284 fi
3285 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3286 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3287 test $ac_cv_safe_to_define___extensions__ = yes &&
3288 cat >>confdefs.h <<\_ACEOF
3289 #define __EXTENSIONS__ 1
3290 _ACEOF
3291
3292 cat >>confdefs.h <<\_ACEOF
3293 #define _ALL_SOURCE 1
3294 _ACEOF
3295
3296 cat >>confdefs.h <<\_ACEOF
3297 #define _GNU_SOURCE 1
3298 _ACEOF
3299
3300 cat >>confdefs.h <<\_ACEOF
3301 #define _POSIX_PTHREAD_SEMANTICS 1
3302 _ACEOF
3303
3304 cat >>confdefs.h <<\_ACEOF
3305 #define _TANDEM_SOURCE 1
3306 _ACEOF
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3318 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3319 if test "${am_cv_prog_cc_stdc+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322 am_cv_prog_cc_stdc=no
3323 ac_save_CC="$CC"
3324 # Don't try gcc -ansi; that turns off useful extensions and
3325 # breaks some systems' header files.
3326 # AIX -qlanglvl=ansi
3327 # Ultrix and OSF/1 -std1
3328 # HP-UX 10.20 and later -Ae
3329 # HP-UX older versions -Aa -D_HPUX_SOURCE
3330 # SVR4 -Xc -D__EXTENSIONS__
3331 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 do
3333 CC="$ac_save_CC $ac_arg"
3334 cat >conftest.$ac_ext <<_ACEOF
3335 /* confdefs.h. */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3340 #include <stdarg.h>
3341 #include <stdio.h>
3342 #include <sys/types.h>
3343 #include <sys/stat.h>
3344 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3345 struct buf { int x; };
3346 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3347 static char *e (p, i)
3348 char **p;
3349 int i;
3350 {
3351 return p[i];
3352 }
3353 static char *f (char * (*g) (char **, int), char **p, ...)
3354 {
3355 char *s;
3356 va_list v;
3357 va_start (v,p);
3358 s = g (p, va_arg (v,int));
3359 va_end (v);
3360 return s;
3361 }
3362 int test (int i, double x);
3363 struct s1 {int (*f) (int a);};
3364 struct s2 {int (*f) (double a);};
3365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3366 int argc;
3367 char **argv;
3368
3369 int
3370 main ()
3371 {
3372
3373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3374
3375 ;
3376 return 0;
3377 }
3378 _ACEOF
3379 rm -f conftest.$ac_objext
3380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381 (eval $ac_compile) 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } &&
3388 { ac_try='test -z "$ac_c_werror_flag"
3389 || test ! -s conftest.err'
3390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3391 (eval $ac_try) 2>&5
3392 ac_status=$?
3393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394 (exit $ac_status); }; } &&
3395 { ac_try='test -s conftest.$ac_objext'
3396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3397 (eval $ac_try) 2>&5
3398 ac_status=$?
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }; }; then
3401 am_cv_prog_cc_stdc="$ac_arg"; break
3402 else
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3405
3406 fi
3407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3408 done
3409 CC="$ac_save_CC"
3410
3411 fi
3412
3413 if test -z "$am_cv_prog_cc_stdc"; then
3414 echo "$as_me:$LINENO: result: none needed" >&5
3415 echo "${ECHO_T}none needed" >&6
3416 else
3417 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3418 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3419 fi
3420 case "x$am_cv_prog_cc_stdc" in
3421 x|xno) ;;
3422 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3423 esac
3424
3425
3426 ac_aux_dir=
3427 for ac_dir in .. $srcdir/..; do
3428 if test -f $ac_dir/install-sh; then
3429 ac_aux_dir=$ac_dir
3430 ac_install_sh="$ac_aux_dir/install-sh -c"
3431 break
3432 elif test -f $ac_dir/install.sh; then
3433 ac_aux_dir=$ac_dir
3434 ac_install_sh="$ac_aux_dir/install.sh -c"
3435 break
3436 elif test -f $ac_dir/shtool; then
3437 ac_aux_dir=$ac_dir
3438 ac_install_sh="$ac_aux_dir/shtool install -c"
3439 break
3440 fi
3441 done
3442 if test -z "$ac_aux_dir"; then
3443 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3444 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3445 { (exit 1); exit 1; }; }
3446 fi
3447 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3448 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3449 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3450
3451 # Make sure we can run config.sub.
3452 $ac_config_sub sun4 >/dev/null 2>&1 ||
3453 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3454 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3455 { (exit 1); exit 1; }; }
3456
3457 echo "$as_me:$LINENO: checking build system type" >&5
3458 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3459 if test "${ac_cv_build+set}" = set; then
3460 echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462 ac_cv_build_alias=$build_alias
3463 test -z "$ac_cv_build_alias" &&
3464 ac_cv_build_alias=`$ac_config_guess`
3465 test -z "$ac_cv_build_alias" &&
3466 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3467 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3468 { (exit 1); exit 1; }; }
3469 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3470 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3471 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3472 { (exit 1); exit 1; }; }
3473
3474 fi
3475 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3476 echo "${ECHO_T}$ac_cv_build" >&6
3477 build=$ac_cv_build
3478 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3479 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3480 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3481
3482
3483 echo "$as_me:$LINENO: checking host system type" >&5
3484 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3485 if test "${ac_cv_host+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 ac_cv_host_alias=$host_alias
3489 test -z "$ac_cv_host_alias" &&
3490 ac_cv_host_alias=$ac_cv_build_alias
3491 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3492 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3493 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3494 { (exit 1); exit 1; }; }
3495
3496 fi
3497 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3498 echo "${ECHO_T}$ac_cv_host" >&6
3499 host=$ac_cv_host
3500 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3501 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3502 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3503
3504
3505 echo "$as_me:$LINENO: checking target system type" >&5
3506 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3507 if test "${ac_cv_target+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510 ac_cv_target_alias=$target_alias
3511 test "x$ac_cv_target_alias" = "x" &&
3512 ac_cv_target_alias=$ac_cv_host_alias
3513 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3514 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3515 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3516 { (exit 1); exit 1; }; }
3517
3518 fi
3519 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3520 echo "${ECHO_T}$ac_cv_target" >&6
3521 target=$ac_cv_target
3522 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3523 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3524 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3525
3526
3527 # The aliases save the names the user supplied, while $host etc.
3528 # will get canonicalized.
3529 test -n "$target_alias" &&
3530 test "$program_prefix$program_suffix$program_transform_name" = \
3531 NONENONEs,x,x, &&
3532 program_prefix=${target_alias}-
3533
3534 # Dependency checking.
3535 rm -rf .tst 2>/dev/null
3536 mkdir .tst 2>/dev/null
3537 if test -d .tst; then
3538 am__leading_dot=.
3539 else
3540 am__leading_dot=_
3541 fi
3542 rmdir .tst 2>/dev/null
3543
3544 DEPDIR="${am__leading_dot}deps"
3545
3546 ac_config_commands="$ac_config_commands depdir"
3547
3548
3549 depcc="$CC" am_compiler_list=
3550
3551 am_depcomp=$ac_aux_dir/depcomp
3552 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3553 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3554 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3555 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557 if test -f "$am_depcomp"; then
3558 # We make a subdir and do the tests there. Otherwise we can end up
3559 # making bogus files that we don't know about and never remove. For
3560 # instance it was reported that on HP-UX the gcc test will end up
3561 # making a dummy file named `D' -- because `-MD' means `put the output
3562 # in D'.
3563 mkdir conftest.dir
3564 # Copy depcomp to subdir because otherwise we won't find it if we're
3565 # using a relative directory.
3566 cp "$am_depcomp" conftest.dir
3567 cd conftest.dir
3568 # We will build objects and dependencies in a subdirectory because
3569 # it helps to detect inapplicable dependency modes. For instance
3570 # both Tru64's cc and ICC support -MD to output dependencies as a
3571 # side effect of compilation, but ICC will put the dependencies in
3572 # the current directory while Tru64 will put them in the object
3573 # directory.
3574 mkdir sub
3575
3576 am_cv_CC_dependencies_compiler_type=none
3577 if test "$am_compiler_list" = ""; then
3578 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3579 fi
3580 for depmode in $am_compiler_list; do
3581 if test $depmode = none; then break; fi
3582
3583 echo "$as_me:$LINENO: trying $depmode" >&5
3584 # Setup a source with many dependencies, because some compilers
3585 # like to wrap large dependency lists on column 80 (with \), and
3586 # we should not choose a depcomp mode which is confused by this.
3587 #
3588 # We need to recreate these files for each test, as the compiler may
3589 # overwrite some of them when testing with obscure command lines.
3590 # This happens at least with the AIX C compiler.
3591 : > sub/conftest.c
3592 for i in 1 2 3 4 5 6; do
3593 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3594 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3595 # Solaris 8's {/usr,}/bin/sh.
3596 touch sub/conftst$i.h
3597 done
3598 echo "include sub/conftest.Po" > confmf
3599
3600 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3601 # mode. It turns out that the SunPro C++ compiler does not properly
3602 # handle `-M -o', and we need to detect this.
3603 depcmd="depmode=$depmode \
3604 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3605 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3606 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3607 echo "| $depcmd" | sed -e 's/ */ /g' >&5
3608 if env $depcmd > conftest.err 2>&1 &&
3609 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3610 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3611 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3612 # icc doesn't choke on unknown options, it will just issue warnings
3613 # or remarks (even with -Werror). So we grep stderr for any message
3614 # that says an option was ignored or not supported.
3615 # When given -MP, icc 7.0 and 7.1 complain thusly:
3616 # icc: Command line warning: ignoring option '-M'; no argument required
3617 # The diagnosis changed in icc 8.0:
3618 # icc: Command line remark: option '-MP' not supported
3619 if (grep 'ignoring option' conftest.err ||
3620 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3621 am_cv_CC_dependencies_compiler_type=$depmode
3622 echo "$as_me:$LINENO: success" >&5
3623 break
3624 fi
3625 fi
3626 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3627 sed -e 's/^/| /' < conftest.err >&5
3628 done
3629
3630 cd ..
3631 rm -rf conftest.dir
3632 else
3633 am_cv_CC_dependencies_compiler_type=none
3634 fi
3635
3636 fi
3637 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3638 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3639 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3640 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3641 echo "$as_me: error: no usable dependency style found" >&2;}
3642 { (exit 1); exit 1; }; }
3643 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3644
3645 fi
3646
3647
3648 # Check for the 'make' the user wants to use.
3649 for ac_prog in make
3650 do
3651 # Extract the first word of "$ac_prog", so it can be a program name with args.
3652 set dummy $ac_prog; ac_word=$2
3653 echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3655 if test "${ac_cv_prog_MAKE+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 if test -n "$MAKE"; then
3659 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_prog_MAKE="$ac_prog"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3671 fi
3672 done
3673 done
3674
3675 fi
3676 fi
3677 MAKE=$ac_cv_prog_MAKE
3678 if test -n "$MAKE"; then
3679 echo "$as_me:$LINENO: result: $MAKE" >&5
3680 echo "${ECHO_T}$MAKE" >&6
3681 else
3682 echo "$as_me:$LINENO: result: no" >&5
3683 echo "${ECHO_T}no" >&6
3684 fi
3685
3686 test -n "$MAKE" && break
3687 done
3688
3689 MAKE_IS_GNU=
3690 case "`$MAKE --version 2>&1 | sed 1q`" in
3691 *GNU*)
3692 MAKE_IS_GNU=yes
3693 ;;
3694 esac
3695
3696
3697 if test "$MAKE_IS_GNU" = yes; then
3698 GMAKE_TRUE=
3699 GMAKE_FALSE='#'
3700 else
3701 GMAKE_TRUE='#'
3702 GMAKE_FALSE=
3703 fi
3704
3705 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3706 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3707 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3708 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3710 else
3711 cat >conftest.make <<\_ACEOF
3712 all:
3713 @echo 'ac_maketemp="$(MAKE)"'
3714 _ACEOF
3715 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3716 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3717 if test -n "$ac_maketemp"; then
3718 eval ac_cv_prog_make_${ac_make}_set=yes
3719 else
3720 eval ac_cv_prog_make_${ac_make}_set=no
3721 fi
3722 rm -f conftest.make
3723 fi
3724 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3725 echo "$as_me:$LINENO: result: yes" >&5
3726 echo "${ECHO_T}yes" >&6
3727 SET_MAKE=
3728 else
3729 echo "$as_me:$LINENO: result: no" >&5
3730 echo "${ECHO_T}no" >&6
3731 SET_MAKE="MAKE=${MAKE-make}"
3732 fi
3733
3734
3735
3736 CONFIG_OBS=
3737 CONFIG_DEPS=
3738 CONFIG_SRCS=
3739 ENABLE_CFLAGS=
3740
3741 CONFIG_ALL=
3742 CONFIG_CLEAN=
3743 CONFIG_INSTALL=
3744 CONFIG_UNINSTALL=
3745
3746 # If we haven't got the data from the intl directory,
3747 # assume NLS is disabled.
3748 USE_NLS=no
3749 LIBINTL=
3750 LIBINTL_DEP=
3751 INCINTL=
3752 XGETTEXT=
3753 GMSGFMT=
3754 POSUB=
3755
3756 if test -f ../intl/config.intl; then
3757 . ../intl/config.intl
3758 fi
3759 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3760 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3761 if test x"$USE_NLS" != xyes; then
3762 echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3764 else
3765 echo "$as_me:$LINENO: result: yes" >&5
3766 echo "${ECHO_T}yes" >&6
3767
3768 cat >>confdefs.h <<\_ACEOF
3769 #define ENABLE_NLS 1
3770 _ACEOF
3771
3772
3773 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3774 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3775 # Look for .po and .gmo files in the source directory.
3776 CATALOGS=
3777 XLINGUAS=
3778 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3779 # If there aren't any .gmo files the shell will give us the
3780 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3781 # weeded out.
3782 case "$cat" in *\**)
3783 continue;;
3784 esac
3785 # The quadruple backslash is collapsed to a double backslash
3786 # by the backticks, then collapsed again by the double quotes,
3787 # leaving us with one backslash in the sed expression (right
3788 # before the dot that mustn't act as a wildcard).
3789 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3790 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3791 # The user is allowed to set LINGUAS to a list of languages to
3792 # install catalogs for. If it's empty that means "all of them."
3793 if test "x$LINGUAS" = x; then
3794 CATALOGS="$CATALOGS $cat"
3795 XLINGUAS="$XLINGUAS $lang"
3796 else
3797 case "$LINGUAS" in *$lang*)
3798 CATALOGS="$CATALOGS $cat"
3799 XLINGUAS="$XLINGUAS $lang"
3800 ;;
3801 esac
3802 fi
3803 done
3804 LINGUAS="$XLINGUAS"
3805 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3806 echo "${ECHO_T}$LINGUAS" >&6
3807
3808
3809 DATADIRNAME=share
3810
3811 INSTOBJEXT=.mo
3812
3813 GENCAT=gencat
3814
3815 CATOBJEXT=.gmo
3816
3817 fi
3818
3819 localedir='${datadir}/locale'
3820
3821
3822 if test x"$USE_NLS" = xyes; then
3823 CONFIG_ALL="$CONFIG_ALL all-po"
3824 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3825 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3826 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3827 fi
3828
3829
3830 GNULIB_MEMMEM=0;
3831 GNULIB_MEMPCPY=0;
3832 GNULIB_MEMRCHR=0;
3833 GNULIB_STPCPY=0;
3834 GNULIB_STPNCPY=0;
3835 GNULIB_STRCHRNUL=0;
3836 GNULIB_STRDUP=0;
3837 GNULIB_STRNDUP=0;
3838 GNULIB_STRNLEN=0;
3839 GNULIB_STRPBRK=0;
3840 GNULIB_STRSEP=0;
3841 GNULIB_STRSTR=0;
3842 GNULIB_STRCASESTR=0;
3843 GNULIB_STRTOK_R=0;
3844 GNULIB_MBSLEN=0;
3845 GNULIB_MBSNLEN=0;
3846 GNULIB_MBSCHR=0;
3847 GNULIB_MBSRCHR=0;
3848 GNULIB_MBSSTR=0;
3849 GNULIB_MBSCASECMP=0;
3850 GNULIB_MBSNCASECMP=0;
3851 GNULIB_MBSPCASECMP=0;
3852 GNULIB_MBSCASESTR=0;
3853 GNULIB_MBSCSPN=0;
3854 GNULIB_MBSPBRK=0;
3855 GNULIB_MBSSPN=0;
3856 GNULIB_MBSSEP=0;
3857 GNULIB_MBSTOK_R=0;
3858 GNULIB_STRERROR=0;
3859 GNULIB_STRSIGNAL=0;
3860 HAVE_DECL_MEMMEM=1;
3861 HAVE_MEMPCPY=1;
3862 HAVE_DECL_MEMRCHR=1;
3863 HAVE_STPCPY=1;
3864 HAVE_STPNCPY=1;
3865 HAVE_STRCHRNUL=1;
3866 HAVE_DECL_STRDUP=1;
3867 HAVE_STRNDUP=1;
3868 HAVE_DECL_STRNDUP=1;
3869 HAVE_DECL_STRNLEN=1;
3870 HAVE_STRPBRK=1;
3871 HAVE_STRSEP=1;
3872 HAVE_STRCASESTR=1;
3873 HAVE_DECL_STRTOK_R=1;
3874 HAVE_DECL_STRERROR=1;
3875 HAVE_DECL_STRSIGNAL=1;
3876 REPLACE_STRERROR=0;
3877 REPLACE_STRSIGNAL=0;
3878 REPLACE_MEMMEM=0;
3879 REPLACE_STRCASESTR=0;
3880 REPLACE_STRSTR=0;
3881
3882
3883 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3884 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3885 if test "${ac_cv_have_decl_memmem+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h. */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3894 $ac_includes_default
3895 int
3896 main ()
3897 {
3898 #ifndef memmem
3899 char *p = (char *) memmem;
3900 #endif
3901
3902 ;
3903 return 0;
3904 }
3905 _ACEOF
3906 rm -f conftest.$ac_objext
3907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3908 (eval $ac_compile) 2>conftest.er1
3909 ac_status=$?
3910 grep -v '^ *+' conftest.er1 >conftest.err
3911 rm -f conftest.er1
3912 cat conftest.err >&5
3913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3914 (exit $ac_status); } &&
3915 { ac_try='test -z "$ac_c_werror_flag"
3916 || test ! -s conftest.err'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; } &&
3922 { ac_try='test -s conftest.$ac_objext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3928 ac_cv_have_decl_memmem=yes
3929 else
3930 echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3932
3933 ac_cv_have_decl_memmem=no
3934 fi
3935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3936 fi
3937 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3938 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3939 if test $ac_cv_have_decl_memmem = yes; then
3940
3941 cat >>confdefs.h <<_ACEOF
3942 #define HAVE_DECL_MEMMEM 1
3943 _ACEOF
3944
3945
3946 else
3947 cat >>confdefs.h <<_ACEOF
3948 #define HAVE_DECL_MEMMEM 0
3949 _ACEOF
3950
3951
3952 fi
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968 for ac_func in memmem
3969 do
3970 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3971 echo "$as_me:$LINENO: checking for $ac_func" >&5
3972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3973 if eval "test \"\${$as_ac_var+set}\" = set"; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3984 #define $ac_func innocuous_$ac_func
3985
3986 /* System header to define __stub macros and hopefully few prototypes,
3987 which can conflict with char $ac_func (); below.
3988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989 <limits.h> exists even on freestanding compilers. */
3990
3991 #ifdef __STDC__
3992 # include <limits.h>
3993 #else
3994 # include <assert.h>
3995 #endif
3996
3997 #undef $ac_func
3998
3999 /* Override any gcc2 internal prototype to avoid an error. */
4000 #ifdef __cplusplus
4001 extern "C"
4002 {
4003 #endif
4004 /* We use char because int might match the return type of a gcc2
4005 builtin and then its argument prototype would still apply. */
4006 char $ac_func ();
4007 /* The GNU C library defines this for functions which it implements
4008 to always fail with ENOSYS. Some functions are actually named
4009 something starting with __ and the normal name is an alias. */
4010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4011 choke me
4012 #else
4013 char (*f) () = $ac_func;
4014 #endif
4015 #ifdef __cplusplus
4016 }
4017 #endif
4018
4019 int
4020 main ()
4021 {
4022 return f != $ac_func;
4023 ;
4024 return 0;
4025 }
4026 _ACEOF
4027 rm -f conftest.$ac_objext conftest$ac_exeext
4028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4029 (eval $ac_link) 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } &&
4036 { ac_try='test -z "$ac_c_werror_flag"
4037 || test ! -s conftest.err'
4038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 (eval $ac_try) 2>&5
4040 ac_status=$?
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); }; } &&
4043 { ac_try='test -s conftest$ac_exeext'
4044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045 (eval $ac_try) 2>&5
4046 ac_status=$?
4047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048 (exit $ac_status); }; }; then
4049 eval "$as_ac_var=yes"
4050 else
4051 echo "$as_me: failed program was:" >&5
4052 sed 's/^/| /' conftest.$ac_ext >&5
4053
4054 eval "$as_ac_var=no"
4055 fi
4056 rm -f conftest.err conftest.$ac_objext \
4057 conftest$ac_exeext conftest.$ac_ext
4058 fi
4059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4060 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4061 if test `eval echo '${'$as_ac_var'}'` = yes; then
4062 cat >>confdefs.h <<_ACEOF
4063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4064 _ACEOF
4065
4066 else
4067
4068 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4069
4070 fi
4071 done
4072
4073
4074
4075 :
4076
4077
4078
4079
4080
4081 if test $ac_cv_have_decl_memmem = no; then
4082 HAVE_DECL_MEMMEM=0
4083 fi
4084 :
4085
4086
4087 echo "$as_me:$LINENO: checking for long long int" >&5
4088 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4089 if test "${ac_cv_type_long_long_int+set}" = set; then
4090 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 else
4092 cat >conftest.$ac_ext <<_ACEOF
4093
4094 /* confdefs.h. */
4095 _ACEOF
4096 cat confdefs.h >>conftest.$ac_ext
4097 cat >>conftest.$ac_ext <<_ACEOF
4098 /* end confdefs.h. */
4099 /* For now, do not test the preprocessor; as of 2007 there are too many
4100 implementations with broken preprocessors. Perhaps this can
4101 be revisited in 2012. In the meantime, code should not expect
4102 #if to work with literals wider than 32 bits. */
4103 /* Test literals. */
4104 long long int ll = 9223372036854775807ll;
4105 long long int nll = -9223372036854775807LL;
4106 unsigned long long int ull = 18446744073709551615ULL;
4107 /* Test constant expressions. */
4108 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4109 ? 1 : -1)];
4110 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4111 ? 1 : -1)];
4112 int i = 63;
4113 int
4114 main ()
4115 {
4116 /* Test availability of runtime routines for shift and division. */
4117 long long int llmax = 9223372036854775807ll;
4118 unsigned long long int ullmax = 18446744073709551615ull;
4119 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4120 | (llmax / ll) | (llmax % ll)
4121 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4122 | (ullmax / ull) | (ullmax % ull));
4123 ;
4124 return 0;
4125 }
4126
4127 _ACEOF
4128 rm -f conftest.$ac_objext conftest$ac_exeext
4129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4130 (eval $ac_link) 2>conftest.er1
4131 ac_status=$?
4132 grep -v '^ *+' conftest.er1 >conftest.err
4133 rm -f conftest.er1
4134 cat conftest.err >&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); } &&
4137 { ac_try='test -z "$ac_c_werror_flag"
4138 || test ! -s conftest.err'
4139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140 (eval $ac_try) 2>&5
4141 ac_status=$?
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; } &&
4144 { ac_try='test -s conftest$ac_exeext'
4145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4146 (eval $ac_try) 2>&5
4147 ac_status=$?
4148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); }; }; then
4150 if test "$cross_compiling" = yes; then
4151 ac_cv_type_long_long_int=yes
4152 else
4153 cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h. */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h. */
4159 #include <limits.h>
4160 #ifndef LLONG_MAX
4161 # define HALF \
4162 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4163 # define LLONG_MAX (HALF - 1 + HALF)
4164 #endif
4165 int
4166 main ()
4167 {
4168 long long int n = 1;
4169 int i;
4170 for (i = 0; ; i++)
4171 {
4172 long long int m = n << i;
4173 if (m >> i != n)
4174 return 1;
4175 if (LLONG_MAX / 2 < m)
4176 break;
4177 }
4178 return 0;
4179 ;
4180 return 0;
4181 }
4182 _ACEOF
4183 rm -f conftest$ac_exeext
4184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4185 (eval $ac_link) 2>&5
4186 ac_status=$?
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4190 (eval $ac_try) 2>&5
4191 ac_status=$?
4192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); }; }; then
4194 ac_cv_type_long_long_int=yes
4195 else
4196 echo "$as_me: program exited with status $ac_status" >&5
4197 echo "$as_me: failed program was:" >&5
4198 sed 's/^/| /' conftest.$ac_ext >&5
4199
4200 ( exit $ac_status )
4201 ac_cv_type_long_long_int=no
4202 fi
4203 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4204 fi
4205 else
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4208
4209 ac_cv_type_long_long_int=no
4210 fi
4211 rm -f conftest.err conftest.$ac_objext \
4212 conftest$ac_exeext conftest.$ac_ext
4213 fi
4214 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4215 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4216 if test $ac_cv_type_long_long_int = yes; then
4217
4218 cat >>confdefs.h <<\_ACEOF
4219 #define HAVE_LONG_LONG_INT 1
4220 _ACEOF
4221
4222 fi
4223
4224
4225 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4226 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4227 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230 cat >conftest.$ac_ext <<_ACEOF
4231
4232 /* confdefs.h. */
4233 _ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4237 /* For now, do not test the preprocessor; as of 2007 there are too many
4238 implementations with broken preprocessors. Perhaps this can
4239 be revisited in 2012. In the meantime, code should not expect
4240 #if to work with literals wider than 32 bits. */
4241 /* Test literals. */
4242 long long int ll = 9223372036854775807ll;
4243 long long int nll = -9223372036854775807LL;
4244 unsigned long long int ull = 18446744073709551615ULL;
4245 /* Test constant expressions. */
4246 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4247 ? 1 : -1)];
4248 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4249 ? 1 : -1)];
4250 int i = 63;
4251 int
4252 main ()
4253 {
4254 /* Test availability of runtime routines for shift and division. */
4255 long long int llmax = 9223372036854775807ll;
4256 unsigned long long int ullmax = 18446744073709551615ull;
4257 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4258 | (llmax / ll) | (llmax % ll)
4259 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4260 | (ullmax / ull) | (ullmax % ull));
4261 ;
4262 return 0;
4263 }
4264
4265 _ACEOF
4266 rm -f conftest.$ac_objext conftest$ac_exeext
4267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4268 (eval $ac_link) 2>conftest.er1
4269 ac_status=$?
4270 grep -v '^ *+' conftest.er1 >conftest.err
4271 rm -f conftest.er1
4272 cat conftest.err >&5
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); } &&
4275 { ac_try='test -z "$ac_c_werror_flag"
4276 || test ! -s conftest.err'
4277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4278 (eval $ac_try) 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; } &&
4282 { ac_try='test -s conftest$ac_exeext'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284 (eval $ac_try) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4288 ac_cv_type_unsigned_long_long_int=yes
4289 else
4290 echo "$as_me: failed program was:" >&5
4291 sed 's/^/| /' conftest.$ac_ext >&5
4292
4293 ac_cv_type_unsigned_long_long_int=no
4294 fi
4295 rm -f conftest.err conftest.$ac_objext \
4296 conftest$ac_exeext conftest.$ac_ext
4297 fi
4298 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4299 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4300 if test $ac_cv_type_unsigned_long_long_int = yes; then
4301
4302 cat >>confdefs.h <<\_ACEOF
4303 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4304 _ACEOF
4305
4306 fi
4307
4308
4309
4310 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4311 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4312 if test "${gl_cv_have_include_next+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315 rm -rf conftestd1 conftestd2
4316 mkdir conftestd1 conftestd2
4317 cat <<EOF > conftestd1/conftest.h
4318 #define DEFINED_IN_CONFTESTD1
4319 #include_next <conftest.h>
4320 #ifdef DEFINED_IN_CONFTESTD2
4321 int foo;
4322 #else
4323 #error "include_next doesn't work"
4324 #endif
4325 EOF
4326 cat <<EOF > conftestd2/conftest.h
4327 #ifndef DEFINED_IN_CONFTESTD1
4328 #error "include_next test doesn't work"
4329 #endif
4330 #define DEFINED_IN_CONFTESTD2
4331 EOF
4332 save_CPPFLAGS="$CPPFLAGS"
4333 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4334 cat >conftest.$ac_ext <<_ACEOF
4335 #include <conftest.h>
4336 _ACEOF
4337 rm -f conftest.$ac_objext
4338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4339 (eval $ac_compile) 2>conftest.er1
4340 ac_status=$?
4341 grep -v '^ *+' conftest.er1 >conftest.err
4342 rm -f conftest.er1
4343 cat conftest.err >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); } &&
4346 { ac_try='test -z "$ac_c_werror_flag"
4347 || test ! -s conftest.err'
4348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4349 (eval $ac_try) 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); }; } &&
4353 { ac_try='test -s conftest.$ac_objext'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4355 (eval $ac_try) 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; }; then
4359 gl_cv_have_include_next=yes
4360 else
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4363
4364 gl_cv_have_include_next=no
4365 fi
4366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4367 CPPFLAGS="$save_CPPFLAGS"
4368 rm -rf conftestd1 conftestd2
4369
4370 fi
4371 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4372 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4373 if test $gl_cv_have_include_next = yes; then
4374
4375
4376 cat >>confdefs.h <<\_ACEOF
4377 #define HAVE_INCLUDE_NEXT 1
4378 _ACEOF
4379
4380
4381 INCLUDE_NEXT=include_next
4382 else
4383 INCLUDE_NEXT=include
4384 fi
4385
4386
4387
4388
4389
4390
4391
4392 for ac_header in $gl_header_list
4393 do
4394 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4396 echo "$as_me:$LINENO: checking for $ac_header" >&5
4397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 fi
4401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4402 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4403 else
4404 # Is the header compilable?
4405 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4407 cat >conftest.$ac_ext <<_ACEOF
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */
4413 $ac_includes_default
4414 #include <$ac_header>
4415 _ACEOF
4416 rm -f conftest.$ac_objext
4417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418 (eval $ac_compile) 2>conftest.er1
4419 ac_status=$?
4420 grep -v '^ *+' conftest.er1 >conftest.err
4421 rm -f conftest.er1
4422 cat conftest.err >&5
4423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } &&
4425 { ac_try='test -z "$ac_c_werror_flag"
4426 || test ! -s conftest.err'
4427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4428 (eval $ac_try) 2>&5
4429 ac_status=$?
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; } &&
4432 { ac_try='test -s conftest.$ac_objext'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4434 (eval $ac_try) 2>&5
4435 ac_status=$?
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4438 ac_header_compiler=yes
4439 else
4440 echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4442
4443 ac_header_compiler=no
4444 fi
4445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4446 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4447 echo "${ECHO_T}$ac_header_compiler" >&6
4448
4449 # Is the header present?
4450 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4452 cat >conftest.$ac_ext <<_ACEOF
4453 /* confdefs.h. */
4454 _ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 #include <$ac_header>
4459 _ACEOF
4460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4462 ac_status=$?
4463 grep -v '^ *+' conftest.er1 >conftest.err
4464 rm -f conftest.er1
4465 cat conftest.err >&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } >/dev/null; then
4468 if test -s conftest.err; then
4469 ac_cpp_err=$ac_c_preproc_warn_flag
4470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4471 else
4472 ac_cpp_err=
4473 fi
4474 else
4475 ac_cpp_err=yes
4476 fi
4477 if test -z "$ac_cpp_err"; then
4478 ac_header_preproc=yes
4479 else
4480 echo "$as_me: failed program was:" >&5
4481 sed 's/^/| /' conftest.$ac_ext >&5
4482
4483 ac_header_preproc=no
4484 fi
4485 rm -f conftest.err conftest.$ac_ext
4486 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4487 echo "${ECHO_T}$ac_header_preproc" >&6
4488
4489 # So? What about this header?
4490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4491 yes:no: )
4492 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4493 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4496 ac_header_preproc=yes
4497 ;;
4498 no:yes:* )
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4500 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4502 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4504 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4506 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4510 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4511 (
4512 cat <<\_ASBOX
4513 ## ------------------------------------------ ##
4514 ## Report this to the AC_PACKAGE_NAME lists. ##
4515 ## ------------------------------------------ ##
4516 _ASBOX
4517 ) |
4518 sed "s/^/$as_me: WARNING: /" >&2
4519 ;;
4520 esac
4521 echo "$as_me:$LINENO: checking for $ac_header" >&5
4522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4524 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 else
4526 eval "$as_ac_Header=\$ac_header_preproc"
4527 fi
4528 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4529 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4530
4531 fi
4532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4533 cat >>confdefs.h <<_ACEOF
4534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4535 _ACEOF
4536
4537 fi
4538
4539 done
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4553 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4554 if test "${ac_cv_c_restrict+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557 ac_cv_c_restrict=no
4558 # The order here caters to the fact that C++ does not require restrict.
4559 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4560 cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h. */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 typedef int * int_ptr;
4567 int foo (int_ptr $ac_kw ip) {
4568 return ip[0];
4569 }
4570 int
4571 main ()
4572 {
4573 int s[1];
4574 int * $ac_kw t = s;
4575 t[0] = 0;
4576 return foo(t)
4577 ;
4578 return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4583 (eval $ac_compile) 2>conftest.er1
4584 ac_status=$?
4585 grep -v '^ *+' conftest.er1 >conftest.err
4586 rm -f conftest.er1
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } &&
4590 { ac_try='test -z "$ac_c_werror_flag"
4591 || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4593 (eval $ac_try) 2>&5
4594 ac_status=$?
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4599 (eval $ac_try) 2>&5
4600 ac_status=$?
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4603 ac_cv_c_restrict=$ac_kw
4604 else
4605 echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4607
4608 fi
4609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4610 test "$ac_cv_c_restrict" != no && break
4611 done
4612
4613 fi
4614 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4615 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4616
4617
4618 case $ac_cv_c_restrict in
4619 restrict) ;;
4620 no) cat >>confdefs.h <<\_ACEOF
4621 #define restrict
4622 _ACEOF
4623 ;;
4624 *) cat >>confdefs.h <<_ACEOF
4625 #define restrict $ac_cv_c_restrict
4626 _ACEOF
4627 ;;
4628 esac
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642 :
4643
4644
4645
4646
4647
4648
4649
4650 if test $gl_cv_have_include_next = yes; then
4651 gl_cv_next_string_h='<'string.h'>'
4652 else
4653 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4654 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4655 if test "${gl_cv_next_string_h+set}" = set; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658
4659 if test $ac_cv_header_string_h = yes; then
4660 cat >conftest.$ac_ext <<_ACEOF
4661 /* confdefs.h. */
4662 _ACEOF
4663 cat confdefs.h >>conftest.$ac_ext
4664 cat >>conftest.$ac_ext <<_ACEOF
4665 /* end confdefs.h. */
4666 #include <string.h>
4667
4668 _ACEOF
4669 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 sed -n '\#/string.h#{
4671 s#.*"\(.*/string.h\)".*#\1#
4672 s#^/[^/]#//&#
4673 p
4674 q
4675 }'`'"'
4676 else
4677 gl_cv_next_string_h='<'string.h'>'
4678 fi
4679
4680 fi
4681 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4682 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4683 fi
4684 NEXT_STRING_H=$gl_cv_next_string_h
4685
4686
4687
4688
4689
4690 GNULIB_WCWIDTH=0;
4691 HAVE_DECL_WCWIDTH=1;
4692 REPLACE_WCWIDTH=0;
4693 WCHAR_H=
4694
4695
4696
4697
4698
4699 if false; then
4700 GL_COND_LIBTOOL_TRUE=
4701 GL_COND_LIBTOOL_FALSE='#'
4702 else
4703 GL_COND_LIBTOOL_TRUE='#'
4704 GL_COND_LIBTOOL_FALSE=
4705 fi
4706
4707 gl_cond_libtool=false
4708 gl_libdeps=
4709 gl_ltlibdeps=
4710
4711
4712
4713 gl_source_base='gnulib'
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723 for ac_func in memchr
4724 do
4725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4726 echo "$as_me:$LINENO: checking for $ac_func" >&5
4727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4728 if eval "test \"\${$as_ac_var+set}\" = set"; then
4729 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 else
4731 cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h. */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4739 #define $ac_func innocuous_$ac_func
4740
4741 /* System header to define __stub macros and hopefully few prototypes,
4742 which can conflict with char $ac_func (); below.
4743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4744 <limits.h> exists even on freestanding compilers. */
4745
4746 #ifdef __STDC__
4747 # include <limits.h>
4748 #else
4749 # include <assert.h>
4750 #endif
4751
4752 #undef $ac_func
4753
4754 /* Override any gcc2 internal prototype to avoid an error. */
4755 #ifdef __cplusplus
4756 extern "C"
4757 {
4758 #endif
4759 /* We use char because int might match the return type of a gcc2
4760 builtin and then its argument prototype would still apply. */
4761 char $ac_func ();
4762 /* The GNU C library defines this for functions which it implements
4763 to always fail with ENOSYS. Some functions are actually named
4764 something starting with __ and the normal name is an alias. */
4765 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4766 choke me
4767 #else
4768 char (*f) () = $ac_func;
4769 #endif
4770 #ifdef __cplusplus
4771 }
4772 #endif
4773
4774 int
4775 main ()
4776 {
4777 return f != $ac_func;
4778 ;
4779 return 0;
4780 }
4781 _ACEOF
4782 rm -f conftest.$ac_objext conftest$ac_exeext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4784 (eval $ac_link) 2>conftest.er1
4785 ac_status=$?
4786 grep -v '^ *+' conftest.er1 >conftest.err
4787 rm -f conftest.er1
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } &&
4791 { ac_try='test -z "$ac_c_werror_flag"
4792 || test ! -s conftest.err'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 (eval $ac_try) 2>&5
4795 ac_status=$?
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; } &&
4798 { ac_try='test -s conftest$ac_exeext'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4800 (eval $ac_try) 2>&5
4801 ac_status=$?
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4804 eval "$as_ac_var=yes"
4805 else
4806 echo "$as_me: failed program was:" >&5
4807 sed 's/^/| /' conftest.$ac_ext >&5
4808
4809 eval "$as_ac_var=no"
4810 fi
4811 rm -f conftest.err conftest.$ac_objext \
4812 conftest$ac_exeext conftest.$ac_ext
4813 fi
4814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4815 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4816 if test `eval echo '${'$as_ac_var'}'` = yes; then
4817 cat >>confdefs.h <<_ACEOF
4818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4819 _ACEOF
4820
4821 else
4822
4823 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4824
4825 fi
4826 done
4827
4828
4829 if test $ac_cv_func_memchr = no; then
4830
4831
4832 for ac_header in bp-sym.h
4833 do
4834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4836 echo "$as_me:$LINENO: checking for $ac_header" >&5
4837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 fi
4841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4843 else
4844 # Is the header compilable?
4845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 $ac_includes_default
4854 #include <$ac_header>
4855 _ACEOF
4856 rm -f conftest.$ac_objext
4857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4858 (eval $ac_compile) 2>conftest.er1
4859 ac_status=$?
4860 grep -v '^ *+' conftest.er1 >conftest.err
4861 rm -f conftest.er1
4862 cat conftest.err >&5
4863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864 (exit $ac_status); } &&
4865 { ac_try='test -z "$ac_c_werror_flag"
4866 || test ! -s conftest.err'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; } &&
4872 { ac_try='test -s conftest.$ac_objext'
4873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 (eval $ac_try) 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 ac_header_compiler=yes
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 ac_header_compiler=no
4884 fi
4885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4887 echo "${ECHO_T}$ac_header_compiler" >&6
4888
4889 # Is the header present?
4890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4892 cat >conftest.$ac_ext <<_ACEOF
4893 /* confdefs.h. */
4894 _ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4898 #include <$ac_header>
4899 _ACEOF
4900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4902 ac_status=$?
4903 grep -v '^ *+' conftest.er1 >conftest.err
4904 rm -f conftest.er1
4905 cat conftest.err >&5
4906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4907 (exit $ac_status); } >/dev/null; then
4908 if test -s conftest.err; then
4909 ac_cpp_err=$ac_c_preproc_warn_flag
4910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4911 else
4912 ac_cpp_err=
4913 fi
4914 else
4915 ac_cpp_err=yes
4916 fi
4917 if test -z "$ac_cpp_err"; then
4918 ac_header_preproc=yes
4919 else
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4922
4923 ac_header_preproc=no
4924 fi
4925 rm -f conftest.err conftest.$ac_ext
4926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4927 echo "${ECHO_T}$ac_header_preproc" >&6
4928
4929 # So? What about this header?
4930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4931 yes:no: )
4932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4936 ac_header_preproc=yes
4937 ;;
4938 no:yes:* )
4939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4951 (
4952 cat <<\_ASBOX
4953 ## ------------------------------------------ ##
4954 ## Report this to the AC_PACKAGE_NAME lists. ##
4955 ## ------------------------------------------ ##
4956 _ASBOX
4957 ) |
4958 sed "s/^/$as_me: WARNING: /" >&2
4959 ;;
4960 esac
4961 echo "$as_me:$LINENO: checking for $ac_header" >&5
4962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966 eval "$as_ac_Header=\$ac_header_preproc"
4967 fi
4968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4970
4971 fi
4972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4973 cat >>confdefs.h <<_ACEOF
4974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4975 _ACEOF
4976
4977 fi
4978
4979 done
4980
4981
4982 fi
4983
4984
4985 echo "$as_me:$LINENO: checking for working memcmp" >&5
4986 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4987 if test "${ac_cv_func_memcmp_working+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 else
4990 if test "$cross_compiling" = yes; then
4991 ac_cv_func_memcmp_working=no
4992 else
4993 cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h. */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999 $ac_includes_default
5000 int
5001 main ()
5002 {
5003
5004 /* Some versions of memcmp are not 8-bit clean. */
5005 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5006 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5007 exit (1);
5008
5009 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5010 or more and with at least one buffer not starting on a 4-byte boundary.
5011 William Lewis provided this test program. */
5012 {
5013 char foo[21];
5014 char bar[21];
5015 int i;
5016 for (i = 0; i < 4; i++)
5017 {
5018 char *a = foo + i;
5019 char *b = bar + i;
5020 strcpy (a, "--------01111111");
5021 strcpy (b, "--------10000000");
5022 if (memcmp (a, b, 16) >= 0)
5023 exit (1);
5024 }
5025 exit (0);
5026 }
5027
5028 ;
5029 return 0;
5030 }
5031 _ACEOF
5032 rm -f conftest$ac_exeext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5034 (eval $ac_link) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_cv_func_memcmp_working=yes
5044 else
5045 echo "$as_me: program exited with status $ac_status" >&5
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5048
5049 ( exit $ac_status )
5050 ac_cv_func_memcmp_working=no
5051 fi
5052 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5053 fi
5054 fi
5055 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5056 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5057 test $ac_cv_func_memcmp_working = no &&
5058
5059
5060
5061
5062
5063
5064 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5065
5066
5067 if test $ac_cv_func_memcmp_working = no; then
5068
5069 cat >>confdefs.h <<\_ACEOF
5070 #define memcmp rpl_memcmp
5071 _ACEOF
5072
5073 :
5074 fi
5075
5076
5077
5078 if test $ac_cv_have_decl_memmem = yes; then
5079 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5080 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5081 if test "${gl_cv_func_memmem_works+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084 if test "$cross_compiling" = yes; then
5085 gl_cv_func_memmem_works="guessing no"
5086 else
5087 cat >conftest.$ac_ext <<_ACEOF
5088 /* confdefs.h. */
5089 _ACEOF
5090 cat confdefs.h >>conftest.$ac_ext
5091 cat >>conftest.$ac_ext <<_ACEOF
5092 /* end confdefs.h. */
5093
5094 #include <string.h> /* for memmem */
5095 #include <stdlib.h> /* for malloc */
5096 #include <unistd.h> /* for alarm */
5097
5098 int
5099 main ()
5100 {
5101 size_t m = 1000000;
5102 char *haystack = (char *) malloc (2 * m + 1);
5103 char *needle = (char *) malloc (m + 1);
5104 void *result = 0;
5105 /* Failure to compile this test due to missing alarm is okay,
5106 since all such platforms (mingw) also lack memmem. */
5107 alarm (5);
5108 /* Check for quadratic performance. */
5109 if (haystack && needle)
5110 {
5111 memset (haystack, 'A', 2 * m);
5112 haystack[2 * m] = 'B';
5113 memset (needle, 'A', m);
5114 needle[m] = 'B';
5115 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5116 }
5117 /* Check for empty needle behavior. */
5118 return !result || !memmem ("a", 1, 0, 0);
5119 ;
5120 return 0;
5121 }
5122 _ACEOF
5123 rm -f conftest$ac_exeext
5124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5125 (eval $ac_link) 2>&5
5126 ac_status=$?
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 (eval $ac_try) 2>&5
5131 ac_status=$?
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; }; then
5134 gl_cv_func_memmem_works=yes
5135 else
5136 echo "$as_me: program exited with status $ac_status" >&5
5137 echo "$as_me: failed program was:" >&5
5138 sed 's/^/| /' conftest.$ac_ext >&5
5139
5140 ( exit $ac_status )
5141 gl_cv_func_memmem_works=no
5142 fi
5143 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5144 fi
5145 fi
5146 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5147 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5148 if test "$gl_cv_func_memmem_works" != yes; then
5149 REPLACE_MEMMEM=1
5150
5151
5152
5153
5154
5155
5156
5157 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5158
5159 fi
5160 fi
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174 for ac_func in memmem
5175 do
5176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5177 echo "$as_me:$LINENO: checking for $ac_func" >&5
5178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5179 if eval "test \"\${$as_ac_var+set}\" = set"; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 else
5182 cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h. */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h. */
5188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5190 #define $ac_func innocuous_$ac_func
5191
5192 /* System header to define __stub macros and hopefully few prototypes,
5193 which can conflict with char $ac_func (); below.
5194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5195 <limits.h> exists even on freestanding compilers. */
5196
5197 #ifdef __STDC__
5198 # include <limits.h>
5199 #else
5200 # include <assert.h>
5201 #endif
5202
5203 #undef $ac_func
5204
5205 /* Override any gcc2 internal prototype to avoid an error. */
5206 #ifdef __cplusplus
5207 extern "C"
5208 {
5209 #endif
5210 /* We use char because int might match the return type of a gcc2
5211 builtin and then its argument prototype would still apply. */
5212 char $ac_func ();
5213 /* The GNU C library defines this for functions which it implements
5214 to always fail with ENOSYS. Some functions are actually named
5215 something starting with __ and the normal name is an alias. */
5216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5217 choke me
5218 #else
5219 char (*f) () = $ac_func;
5220 #endif
5221 #ifdef __cplusplus
5222 }
5223 #endif
5224
5225 int
5226 main ()
5227 {
5228 return f != $ac_func;
5229 ;
5230 return 0;
5231 }
5232 _ACEOF
5233 rm -f conftest.$ac_objext conftest$ac_exeext
5234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5235 (eval $ac_link) 2>conftest.er1
5236 ac_status=$?
5237 grep -v '^ *+' conftest.er1 >conftest.err
5238 rm -f conftest.er1
5239 cat conftest.err >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); } &&
5242 { ac_try='test -z "$ac_c_werror_flag"
5243 || test ! -s conftest.err'
5244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 (eval $ac_try) 2>&5
5246 ac_status=$?
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); }; } &&
5249 { ac_try='test -s conftest$ac_exeext'
5250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5251 (eval $ac_try) 2>&5
5252 ac_status=$?
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; }; then
5255 eval "$as_ac_var=yes"
5256 else
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5259
5260 eval "$as_ac_var=no"
5261 fi
5262 rm -f conftest.err conftest.$ac_objext \
5263 conftest$ac_exeext conftest.$ac_ext
5264 fi
5265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5266 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5267 if test `eval echo '${'$as_ac_var'}'` = yes; then
5268 cat >>confdefs.h <<_ACEOF
5269 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5270 _ACEOF
5271
5272 else
5273
5274 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5275
5276 fi
5277 done
5278
5279
5280
5281 :
5282
5283
5284
5285
5286
5287 if test $ac_cv_have_decl_memmem = no; then
5288 HAVE_DECL_MEMMEM=0
5289 fi
5290 :
5291
5292
5293
5294 GNULIB_MEMMEM=1
5295
5296
5297
5298
5299 if test $ac_cv_type_long_long_int = yes; then
5300 HAVE_LONG_LONG_INT=1
5301 else
5302 HAVE_LONG_LONG_INT=0
5303 fi
5304
5305
5306 if test $ac_cv_type_unsigned_long_long_int = yes; then
5307 HAVE_UNSIGNED_LONG_LONG_INT=1
5308 else
5309 HAVE_UNSIGNED_LONG_LONG_INT=0
5310 fi
5311
5312
5313 if test $ac_cv_header_inttypes_h = yes; then
5314 HAVE_INTTYPES_H=1
5315 else
5316 HAVE_INTTYPES_H=0
5317 fi
5318
5319
5320 if test $ac_cv_header_sys_types_h = yes; then
5321 HAVE_SYS_TYPES_H=1
5322 else
5323 HAVE_SYS_TYPES_H=0
5324 fi
5325
5326
5327
5328
5329
5330 :
5331
5332
5333
5334
5335
5336
5337
5338 if test $gl_cv_have_include_next = yes; then
5339 gl_cv_next_stdint_h='<'stdint.h'>'
5340 else
5341 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5342 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5343 if test "${gl_cv_next_stdint_h+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346
5347 if test $ac_cv_header_stdint_h = yes; then
5348 cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h. */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h. */
5354 #include <stdint.h>
5355
5356 _ACEOF
5357 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5358 sed -n '\#/stdint.h#{
5359 s#.*"\(.*/stdint.h\)".*#\1#
5360 s#^/[^/]#//&#
5361 p
5362 q
5363 }'`'"'
5364 else
5365 gl_cv_next_stdint_h='<'stdint.h'>'
5366 fi
5367
5368 fi
5369 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5370 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5371 fi
5372 NEXT_STDINT_H=$gl_cv_next_stdint_h
5373
5374
5375
5376 if test $ac_cv_header_stdint_h = yes; then
5377 HAVE_STDINT_H=1
5378 else
5379 HAVE_STDINT_H=0
5380 fi
5381
5382
5383 if test $ac_cv_header_stdint_h = yes; then
5384 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5385 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5386 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 gl_cv_header_working_stdint_h=no
5390 cat >conftest.$ac_ext <<_ACEOF
5391
5392 /* confdefs.h. */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5397
5398 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5399 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5400 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5401 #include <stdint.h>
5402 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5403 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5404 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5405 #endif
5406
5407
5408 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5409 included before <wchar.h>. */
5410 #include <stddef.h>
5411 #include <signal.h>
5412 #if HAVE_WCHAR_H
5413 # include <stdio.h>
5414 # include <time.h>
5415 # include <wchar.h>
5416 #endif
5417
5418
5419 #ifdef INT8_MAX
5420 int8_t a1 = INT8_MAX;
5421 int8_t a1min = INT8_MIN;
5422 #endif
5423 #ifdef INT16_MAX
5424 int16_t a2 = INT16_MAX;
5425 int16_t a2min = INT16_MIN;
5426 #endif
5427 #ifdef INT32_MAX
5428 int32_t a3 = INT32_MAX;
5429 int32_t a3min = INT32_MIN;
5430 #endif
5431 #ifdef INT64_MAX
5432 int64_t a4 = INT64_MAX;
5433 int64_t a4min = INT64_MIN;
5434 #endif
5435 #ifdef UINT8_MAX
5436 uint8_t b1 = UINT8_MAX;
5437 #else
5438 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5439 #endif
5440 #ifdef UINT16_MAX
5441 uint16_t b2 = UINT16_MAX;
5442 #endif
5443 #ifdef UINT32_MAX
5444 uint32_t b3 = UINT32_MAX;
5445 #endif
5446 #ifdef UINT64_MAX
5447 uint64_t b4 = UINT64_MAX;
5448 #endif
5449 int_least8_t c1 = INT8_C (0x7f);
5450 int_least8_t c1max = INT_LEAST8_MAX;
5451 int_least8_t c1min = INT_LEAST8_MIN;
5452 int_least16_t c2 = INT16_C (0x7fff);
5453 int_least16_t c2max = INT_LEAST16_MAX;
5454 int_least16_t c2min = INT_LEAST16_MIN;
5455 int_least32_t c3 = INT32_C (0x7fffffff);
5456 int_least32_t c3max = INT_LEAST32_MAX;
5457 int_least32_t c3min = INT_LEAST32_MIN;
5458 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5459 int_least64_t c4max = INT_LEAST64_MAX;
5460 int_least64_t c4min = INT_LEAST64_MIN;
5461 uint_least8_t d1 = UINT8_C (0xff);
5462 uint_least8_t d1max = UINT_LEAST8_MAX;
5463 uint_least16_t d2 = UINT16_C (0xffff);
5464 uint_least16_t d2max = UINT_LEAST16_MAX;
5465 uint_least32_t d3 = UINT32_C (0xffffffff);
5466 uint_least32_t d3max = UINT_LEAST32_MAX;
5467 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5468 uint_least64_t d4max = UINT_LEAST64_MAX;
5469 int_fast8_t e1 = INT_FAST8_MAX;
5470 int_fast8_t e1min = INT_FAST8_MIN;
5471 int_fast16_t e2 = INT_FAST16_MAX;
5472 int_fast16_t e2min = INT_FAST16_MIN;
5473 int_fast32_t e3 = INT_FAST32_MAX;
5474 int_fast32_t e3min = INT_FAST32_MIN;
5475 int_fast64_t e4 = INT_FAST64_MAX;
5476 int_fast64_t e4min = INT_FAST64_MIN;
5477 uint_fast8_t f1 = UINT_FAST8_MAX;
5478 uint_fast16_t f2 = UINT_FAST16_MAX;
5479 uint_fast32_t f3 = UINT_FAST32_MAX;
5480 uint_fast64_t f4 = UINT_FAST64_MAX;
5481 #ifdef INTPTR_MAX
5482 intptr_t g = INTPTR_MAX;
5483 intptr_t gmin = INTPTR_MIN;
5484 #endif
5485 #ifdef UINTPTR_MAX
5486 uintptr_t h = UINTPTR_MAX;
5487 #endif
5488 intmax_t i = INTMAX_MAX;
5489 uintmax_t j = UINTMAX_MAX;
5490
5491 #include <limits.h> /* for CHAR_BIT */
5492 #define TYPE_MINIMUM(t) \
5493 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5494 #define TYPE_MAXIMUM(t) \
5495 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5496 struct s {
5497 int check_PTRDIFF:
5498 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5499 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5500 ? 1 : -1;
5501 /* Detect bug in FreeBSD 6.0 / ia64. */
5502 int check_SIG_ATOMIC:
5503 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5504 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5505 ? 1 : -1;
5506 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5507 int check_WCHAR:
5508 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5509 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5510 ? 1 : -1;
5511 /* Detect bug in mingw. */
5512 int check_WINT:
5513 WINT_MIN == TYPE_MINIMUM (wint_t)
5514 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5515 ? 1 : -1;
5516
5517 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5518 int check_UINT8_C:
5519 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5520 int check_UINT16_C:
5521 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5522
5523 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5524 #ifdef UINT8_MAX
5525 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5526 #endif
5527 #ifdef UINT16_MAX
5528 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5529 #endif
5530 #ifdef UINT32_MAX
5531 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5532 #endif
5533 #ifdef UINT64_MAX
5534 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5535 #endif
5536 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5537 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5538 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5539 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5540 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5541 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5542 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5543 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5544 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5545 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5546 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5547 };
5548
5549 int
5550 main ()
5551 {
5552
5553 ;
5554 return 0;
5555 }
5556 _ACEOF
5557 rm -f conftest.$ac_objext
5558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559 (eval $ac_compile) 2>conftest.er1
5560 ac_status=$?
5561 grep -v '^ *+' conftest.er1 >conftest.err
5562 rm -f conftest.er1
5563 cat conftest.err >&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); } &&
5566 { ac_try='test -z "$ac_c_werror_flag"
5567 || test ! -s conftest.err'
5568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569 (eval $ac_try) 2>&5
5570 ac_status=$?
5571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572 (exit $ac_status); }; } &&
5573 { ac_try='test -s conftest.$ac_objext'
5574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5575 (eval $ac_try) 2>&5
5576 ac_status=$?
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); }; }; then
5579 gl_cv_header_working_stdint_h=yes
5580 else
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5583
5584 fi
5585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5586 fi
5587 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5588 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5589 fi
5590 if test "$gl_cv_header_working_stdint_h" = yes; then
5591 STDINT_H=
5592 else
5593
5594
5595 for ac_header in sys/inttypes.h sys/bitypes.h
5596 do
5597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5599 echo "$as_me:$LINENO: checking for $ac_header" >&5
5600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 fi
5604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5606 else
5607 # Is the header compilable?
5608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5610 cat >conftest.$ac_ext <<_ACEOF
5611 /* confdefs.h. */
5612 _ACEOF
5613 cat confdefs.h >>conftest.$ac_ext
5614 cat >>conftest.$ac_ext <<_ACEOF
5615 /* end confdefs.h. */
5616 $ac_includes_default
5617 #include <$ac_header>
5618 _ACEOF
5619 rm -f conftest.$ac_objext
5620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621 (eval $ac_compile) 2>conftest.er1
5622 ac_status=$?
5623 grep -v '^ *+' conftest.er1 >conftest.err
5624 rm -f conftest.er1
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } &&
5628 { ac_try='test -z "$ac_c_werror_flag"
5629 || test ! -s conftest.err'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 (eval $ac_try) 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; } &&
5635 { ac_try='test -s conftest.$ac_objext'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 (eval $ac_try) 2>&5
5638 ac_status=$?
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5641 ac_header_compiler=yes
5642 else
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5645
5646 ac_header_compiler=no
5647 fi
5648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5649 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5650 echo "${ECHO_T}$ac_header_compiler" >&6
5651
5652 # Is the header present?
5653 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5654 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5655 cat >conftest.$ac_ext <<_ACEOF
5656 /* confdefs.h. */
5657 _ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #include <$ac_header>
5662 _ACEOF
5663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } >/dev/null; then
5671 if test -s conftest.err; then
5672 ac_cpp_err=$ac_c_preproc_warn_flag
5673 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5674 else
5675 ac_cpp_err=
5676 fi
5677 else
5678 ac_cpp_err=yes
5679 fi
5680 if test -z "$ac_cpp_err"; then
5681 ac_header_preproc=yes
5682 else
5683 echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5685
5686 ac_header_preproc=no
5687 fi
5688 rm -f conftest.err conftest.$ac_ext
5689 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5690 echo "${ECHO_T}$ac_header_preproc" >&6
5691
5692 # So? What about this header?
5693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5694 yes:no: )
5695 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5696 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5698 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5699 ac_header_preproc=yes
5700 ;;
5701 no:yes:* )
5702 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5703 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5704 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5705 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5706 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5707 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5709 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5711 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5713 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5714 (
5715 cat <<\_ASBOX
5716 ## ------------------------------------------ ##
5717 ## Report this to the AC_PACKAGE_NAME lists. ##
5718 ## ------------------------------------------ ##
5719 _ASBOX
5720 ) |
5721 sed "s/^/$as_me: WARNING: /" >&2
5722 ;;
5723 esac
5724 echo "$as_me:$LINENO: checking for $ac_header" >&5
5725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5728 else
5729 eval "$as_ac_Header=\$ac_header_preproc"
5730 fi
5731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5733
5734 fi
5735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5736 cat >>confdefs.h <<_ACEOF
5737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5738 _ACEOF
5739
5740 fi
5741
5742 done
5743
5744 if test $ac_cv_header_sys_inttypes_h = yes; then
5745 HAVE_SYS_INTTYPES_H=1
5746 else
5747 HAVE_SYS_INTTYPES_H=0
5748 fi
5749
5750 if test $ac_cv_header_sys_bitypes_h = yes; then
5751 HAVE_SYS_BITYPES_H=1
5752 else
5753 HAVE_SYS_BITYPES_H=0
5754 fi
5755
5756
5757
5758 :
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5774 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5775 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5776 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5777 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 else
5779 if test "$cross_compiling" = yes; then
5780 # Depending upon the size, compute the lo and hi bounds.
5781 cat >conftest.$ac_ext <<_ACEOF
5782 /* confdefs.h. */
5783 _ACEOF
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787
5788 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5789 included before <wchar.h>. */
5790 #include <stddef.h>
5791 #include <signal.h>
5792 #if HAVE_WCHAR_H
5793 # include <stdio.h>
5794 # include <time.h>
5795 # include <wchar.h>
5796 #endif
5797
5798 #include <limits.h>
5799 int
5800 main ()
5801 {
5802 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5803 test_array [0] = 0
5804
5805 ;
5806 return 0;
5807 }
5808 _ACEOF
5809 rm -f conftest.$ac_objext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811 (eval $ac_compile) 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try='test -z "$ac_c_werror_flag"
5819 || test ! -s conftest.err'
5820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 (eval $ac_try) 2>&5
5822 ac_status=$?
5823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5824 (exit $ac_status); }; } &&
5825 { ac_try='test -s conftest.$ac_objext'
5826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 (eval $ac_try) 2>&5
5828 ac_status=$?
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; }; then
5831 ac_lo=0 ac_mid=0
5832 while :; do
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839
5840 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5841 included before <wchar.h>. */
5842 #include <stddef.h>
5843 #include <signal.h>
5844 #if HAVE_WCHAR_H
5845 # include <stdio.h>
5846 # include <time.h>
5847 # include <wchar.h>
5848 #endif
5849
5850 #include <limits.h>
5851 int
5852 main ()
5853 {
5854 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5855 test_array [0] = 0
5856
5857 ;
5858 return 0;
5859 }
5860 _ACEOF
5861 rm -f conftest.$ac_objext
5862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5863 (eval $ac_compile) 2>conftest.er1
5864 ac_status=$?
5865 grep -v '^ *+' conftest.er1 >conftest.err
5866 rm -f conftest.er1
5867 cat conftest.err >&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } &&
5870 { ac_try='test -z "$ac_c_werror_flag"
5871 || test ! -s conftest.err'
5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 (eval $ac_try) 2>&5
5874 ac_status=$?
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); }; } &&
5877 { ac_try='test -s conftest.$ac_objext'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 (eval $ac_try) 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; }; then
5883 ac_hi=$ac_mid; break
5884 else
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5887
5888 ac_lo=`expr $ac_mid + 1`
5889 if test $ac_lo -le $ac_mid; then
5890 ac_lo= ac_hi=
5891 break
5892 fi
5893 ac_mid=`expr 2 '*' $ac_mid + 1`
5894 fi
5895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5896 done
5897 else
5898 echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5900
5901 cat >conftest.$ac_ext <<_ACEOF
5902 /* confdefs.h. */
5903 _ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907
5908 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5909 included before <wchar.h>. */
5910 #include <stddef.h>
5911 #include <signal.h>
5912 #if HAVE_WCHAR_H
5913 # include <stdio.h>
5914 # include <time.h>
5915 # include <wchar.h>
5916 #endif
5917
5918 #include <limits.h>
5919 int
5920 main ()
5921 {
5922 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5923 test_array [0] = 0
5924
5925 ;
5926 return 0;
5927 }
5928 _ACEOF
5929 rm -f conftest.$ac_objext
5930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5931 (eval $ac_compile) 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } &&
5938 { ac_try='test -z "$ac_c_werror_flag"
5939 || test ! -s conftest.err'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 (eval $ac_try) 2>&5
5942 ac_status=$?
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; } &&
5945 { ac_try='test -s conftest.$ac_objext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947 (eval $ac_try) 2>&5
5948 ac_status=$?
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_hi=-1 ac_mid=-1
5952 while :; do
5953 cat >conftest.$ac_ext <<_ACEOF
5954 /* confdefs.h. */
5955 _ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959
5960 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5961 included before <wchar.h>. */
5962 #include <stddef.h>
5963 #include <signal.h>
5964 #if HAVE_WCHAR_H
5965 # include <stdio.h>
5966 # include <time.h>
5967 # include <wchar.h>
5968 #endif
5969
5970 #include <limits.h>
5971 int
5972 main ()
5973 {
5974 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5975 test_array [0] = 0
5976
5977 ;
5978 return 0;
5979 }
5980 _ACEOF
5981 rm -f conftest.$ac_objext
5982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5983 (eval $ac_compile) 2>conftest.er1
5984 ac_status=$?
5985 grep -v '^ *+' conftest.er1 >conftest.err
5986 rm -f conftest.er1
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } &&
5990 { ac_try='test -z "$ac_c_werror_flag"
5991 || test ! -s conftest.err'
5992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5993 (eval $ac_try) 2>&5
5994 ac_status=$?
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); }; } &&
5997 { ac_try='test -s conftest.$ac_objext'
5998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 (eval $ac_try) 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 ac_lo=$ac_mid; break
6004 else
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6007
6008 ac_hi=`expr '(' $ac_mid ')' - 1`
6009 if test $ac_mid -le $ac_hi; then
6010 ac_lo= ac_hi=
6011 break
6012 fi
6013 ac_mid=`expr 2 '*' $ac_mid`
6014 fi
6015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6016 done
6017 else
6018 echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6020
6021 ac_lo= ac_hi=
6022 fi
6023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6024 fi
6025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6026 # Binary search between lo and hi bounds.
6027 while test "x$ac_lo" != "x$ac_hi"; do
6028 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6029 cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h. */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h. */
6035
6036 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6037 included before <wchar.h>. */
6038 #include <stddef.h>
6039 #include <signal.h>
6040 #if HAVE_WCHAR_H
6041 # include <stdio.h>
6042 # include <time.h>
6043 # include <wchar.h>
6044 #endif
6045
6046 #include <limits.h>
6047 int
6048 main ()
6049 {
6050 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6051 test_array [0] = 0
6052
6053 ;
6054 return 0;
6055 }
6056 _ACEOF
6057 rm -f conftest.$ac_objext
6058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6059 (eval $ac_compile) 2>conftest.er1
6060 ac_status=$?
6061 grep -v '^ *+' conftest.er1 >conftest.err
6062 rm -f conftest.er1
6063 cat conftest.err >&5
6064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6065 (exit $ac_status); } &&
6066 { ac_try='test -z "$ac_c_werror_flag"
6067 || test ! -s conftest.err'
6068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 (eval $ac_try) 2>&5
6070 ac_status=$?
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); }; } &&
6073 { ac_try='test -s conftest.$ac_objext'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 (eval $ac_try) 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6079 ac_hi=$ac_mid
6080 else
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084 ac_lo=`expr '(' $ac_mid ')' + 1`
6085 fi
6086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6087 done
6088 case $ac_lo in
6089 ?*) result=$ac_lo;;
6090 '') result=unknown ;;
6091 esac
6092 else
6093 if test "$cross_compiling" = yes; then
6094 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6095 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6096 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6097 See \`config.log' for more details." >&5
6098 echo "$as_me: error: cannot run test program while cross compiling
6099 See \`config.log' for more details." >&2;}
6100 { (exit 1); exit 1; }; }; }
6101 else
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108
6109 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6110 included before <wchar.h>. */
6111 #include <stddef.h>
6112 #include <signal.h>
6113 #if HAVE_WCHAR_H
6114 # include <stdio.h>
6115 # include <time.h>
6116 # include <wchar.h>
6117 #endif
6118
6119 #include <limits.h>
6120 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6121 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6122 #include <stdio.h>
6123 #include <stdlib.h>
6124 int
6125 main ()
6126 {
6127
6128 FILE *f = fopen ("conftest.val", "w");
6129 if (! f)
6130 exit (1);
6131 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6132 {
6133 long i = longval ();
6134 if (i != (sizeof ($gltype) * CHAR_BIT))
6135 exit (1);
6136 fprintf (f, "%ld\n", i);
6137 }
6138 else
6139 {
6140 unsigned long i = ulongval ();
6141 if (i != (sizeof ($gltype) * CHAR_BIT))
6142 exit (1);
6143 fprintf (f, "%lu\n", i);
6144 }
6145 exit (ferror (f) || fclose (f) != 0);
6146
6147 ;
6148 return 0;
6149 }
6150 _ACEOF
6151 rm -f conftest$ac_exeext
6152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6153 (eval $ac_link) 2>&5
6154 ac_status=$?
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6158 (eval $ac_try) 2>&5
6159 ac_status=$?
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }; }; then
6162 result=`cat conftest.val`
6163 else
6164 echo "$as_me: program exited with status $ac_status" >&5
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168 ( exit $ac_status )
6169 result=unknown
6170 fi
6171 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6172 fi
6173 fi
6174 rm -f conftest.val
6175 eval gl_cv_bitsizeof_${gltype}=\$result
6176
6177 fi
6178 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6179 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6180 eval result=\$gl_cv_bitsizeof_${gltype}
6181 if test $result = unknown; then
6182 result=0
6183 fi
6184 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6185 cat >>confdefs.h <<_ACEOF
6186 #define BITSIZEOF_${GLTYPE} $result
6187 _ACEOF
6188
6189 eval BITSIZEOF_${GLTYPE}=\$result
6190 done
6191
6192
6193
6194
6195
6196
6197
6198 for gltype in sig_atomic_t wchar_t wint_t ; do
6199 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6200 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6201 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 else
6204 cat >conftest.$ac_ext <<_ACEOF
6205 /* confdefs.h. */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210
6211 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6212 included before <wchar.h>. */
6213 #include <stddef.h>
6214 #include <signal.h>
6215 #if HAVE_WCHAR_H
6216 # include <stdio.h>
6217 # include <time.h>
6218 # include <wchar.h>
6219 #endif
6220
6221 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6222 int
6223 main ()
6224 {
6225
6226 ;
6227 return 0;
6228 }
6229 _ACEOF
6230 rm -f conftest.$ac_objext
6231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6232 (eval $ac_compile) 2>conftest.er1
6233 ac_status=$?
6234 grep -v '^ *+' conftest.er1 >conftest.err
6235 rm -f conftest.er1
6236 cat conftest.err >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); } &&
6239 { ac_try='test -z "$ac_c_werror_flag"
6240 || test ! -s conftest.err'
6241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242 (eval $ac_try) 2>&5
6243 ac_status=$?
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); }; } &&
6246 { ac_try='test -s conftest.$ac_objext'
6247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248 (eval $ac_try) 2>&5
6249 ac_status=$?
6250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); }; }; then
6252 result=yes
6253 else
6254 echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 result=no
6258 fi
6259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6260 eval gl_cv_type_${gltype}_signed=\$result
6261
6262 fi
6263 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6264 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6265 eval result=\$gl_cv_type_${gltype}_signed
6266 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6267 if test "$result" = yes; then
6268 cat >>confdefs.h <<_ACEOF
6269 #define HAVE_SIGNED_${GLTYPE} 1
6270 _ACEOF
6271
6272 eval HAVE_SIGNED_${GLTYPE}=1
6273 else
6274 eval HAVE_SIGNED_${GLTYPE}=0
6275 fi
6276 done
6277
6278
6279 gl_cv_type_ptrdiff_t_signed=yes
6280 gl_cv_type_size_t_signed=no
6281
6282
6283
6284
6285
6286
6287
6288 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6289 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6290 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6291 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294 eval gl_cv_type_${gltype}_suffix=no
6295 eval result=\$gl_cv_type_${gltype}_signed
6296 if test "$result" = yes; then
6297 glsufu=
6298 else
6299 glsufu=u
6300 fi
6301 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6302 case $glsuf in
6303 '') gltype1='int';;
6304 l) gltype1='long int';;
6305 ll) gltype1='long long int';;
6306 i64) gltype1='__int64';;
6307 u) gltype1='unsigned int';;
6308 ul) gltype1='unsigned long int';;
6309 ull) gltype1='unsigned long long int';;
6310 ui64)gltype1='unsigned __int64';;
6311 esac
6312 cat >conftest.$ac_ext <<_ACEOF
6313 /* confdefs.h. */
6314 _ACEOF
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6318
6319 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6320 included before <wchar.h>. */
6321 #include <stddef.h>
6322 #include <signal.h>
6323 #if HAVE_WCHAR_H
6324 # include <stdio.h>
6325 # include <time.h>
6326 # include <wchar.h>
6327 #endif
6328
6329 extern $gltype foo;
6330 extern $gltype1 foo;
6331 int
6332 main ()
6333 {
6334
6335 ;
6336 return 0;
6337 }
6338 _ACEOF
6339 rm -f conftest.$ac_objext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341 (eval $ac_compile) 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -z "$ac_c_werror_flag"
6349 || test ! -s conftest.err'
6350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6351 (eval $ac_try) 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }; } &&
6355 { ac_try='test -s conftest.$ac_objext'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; }; then
6361 eval gl_cv_type_${gltype}_suffix=\$glsuf
6362 else
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366 fi
6367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6368 eval result=\$gl_cv_type_${gltype}_suffix
6369 test "$result" != no && break
6370 done
6371 fi
6372 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6373 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6374 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6375 eval result=\$gl_cv_type_${gltype}_suffix
6376 test "$result" = no && result=
6377 eval ${GLTYPE}_SUFFIX=\$result
6378 cat >>confdefs.h <<_ACEOF
6379 #define ${GLTYPE}_SUFFIX $result
6380 _ACEOF
6381
6382 done
6383
6384
6385
6386 STDINT_H=stdint.h
6387 fi
6388
6389
6390
6391
6392
6393
6394
6395 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6396 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6397 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400 cat >conftest.$ac_ext <<_ACEOF
6401 #include <wchar.h>
6402 wchar_t w;
6403 _ACEOF
6404 rm -f conftest.$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>conftest.er1
6407 ac_status=$?
6408 grep -v '^ *+' conftest.er1 >conftest.err
6409 rm -f conftest.er1
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -z "$ac_c_werror_flag"
6414 || test ! -s conftest.err'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 gl_cv_header_wchar_h_standalone=yes
6427 else
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431 gl_cv_header_wchar_h_standalone=no
6432 fi
6433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6434 fi
6435 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6436 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6437 if test $gl_cv_header_wchar_h_standalone != yes; then
6438 WCHAR_H=wchar.h
6439 fi
6440
6441
6442 :
6443
6444
6445
6446
6447
6448 if test $ac_cv_header_wchar_h = yes; then
6449 HAVE_WCHAR_H=1
6450 else
6451 HAVE_WCHAR_H=0
6452 fi
6453
6454
6455
6456
6457 :
6458
6459
6460
6461
6462
6463
6464
6465 if test $gl_cv_have_include_next = yes; then
6466 gl_cv_next_wchar_h='<'wchar.h'>'
6467 else
6468 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6469 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6470 if test "${gl_cv_next_wchar_h+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 else
6473
6474 if test $ac_cv_header_wchar_h = yes; then
6475 cat >conftest.$ac_ext <<_ACEOF
6476 /* confdefs.h. */
6477 _ACEOF
6478 cat confdefs.h >>conftest.$ac_ext
6479 cat >>conftest.$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6481 #include <wchar.h>
6482
6483 _ACEOF
6484 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6485 sed -n '\#/wchar.h#{
6486 s#.*"\(.*/wchar.h\)".*#\1#
6487 s#^/[^/]#//&#
6488 p
6489 q
6490 }'`'"'
6491 else
6492 gl_cv_next_wchar_h='<'wchar.h'>'
6493 fi
6494
6495 fi
6496 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6497 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6498 fi
6499 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6500
6501
6502
6503
6504
6505
6506
6507
6508 gltests_libdeps=
6509 gltests_ltlibdeps=
6510
6511
6512
6513 gl_source_base='tests'
6514
6515
6516
6517
6518 LIBGNU_LIBDEPS="$gl_libdeps"
6519
6520 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6521
6522
6523
6524 # For Makefile dependencies.
6525 GNULIB_STDINT_H=
6526 if test x"$STDINT_H" != x; then
6527 GNULIB_STDINT_H=gnulib/$STDINT_H
6528 fi
6529
6530
6531 PACKAGE=gdb
6532
6533 cat >>confdefs.h <<_ACEOF
6534 #define PACKAGE "$PACKAGE"
6535 _ACEOF
6536
6537
6538
6539 # GDB does not use automake, but gnulib does. This line lets us
6540 # generate its Makefile.in.
6541 am__api_version="1.9"
6542 # Find a good install program. We prefer a C program (faster),
6543 # so one script is as good as another. But avoid the broken or
6544 # incompatible versions:
6545 # SysV /etc/install, /usr/sbin/install
6546 # SunOS /usr/etc/install
6547 # IRIX /sbin/install
6548 # AIX /bin/install
6549 # AmigaOS /C/install, which installs bootblocks on floppy discs
6550 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6551 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6552 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6553 # OS/2's system install, which has a completely different semantic
6554 # ./install, which can be erroneously created by make from ./install.sh.
6555 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6556 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6557 if test -z "$INSTALL"; then
6558 if test "${ac_cv_path_install+set}" = set; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 else
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6562 for as_dir in $PATH
6563 do
6564 IFS=$as_save_IFS
6565 test -z "$as_dir" && as_dir=.
6566 # Account for people who put trailing slashes in PATH elements.
6567 case $as_dir/ in
6568 ./ | .// | /cC/* | \
6569 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6570 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6571 /usr/ucb/* ) ;;
6572 *)
6573 # OSF1 and SCO ODT 3.0 have their own names for install.
6574 # Don't use installbsd from OSF since it installs stuff as root
6575 # by default.
6576 for ac_prog in ginstall scoinst install; do
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6579 if test $ac_prog = install &&
6580 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6581 # AIX install. It has an incompatible calling convention.
6582 :
6583 elif test $ac_prog = install &&
6584 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6585 # program-specific install script used by HP pwplus--don't use.
6586 :
6587 else
6588 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6589 break 3
6590 fi
6591 fi
6592 done
6593 done
6594 ;;
6595 esac
6596 done
6597
6598
6599 fi
6600 if test "${ac_cv_path_install+set}" = set; then
6601 INSTALL=$ac_cv_path_install
6602 else
6603 # As a last resort, use the slow shell script. We don't cache a
6604 # path for INSTALL within a source directory, because that will
6605 # break other packages using the cache if that directory is
6606 # removed, or if the path is relative.
6607 INSTALL=$ac_install_sh
6608 fi
6609 fi
6610 echo "$as_me:$LINENO: result: $INSTALL" >&5
6611 echo "${ECHO_T}$INSTALL" >&6
6612
6613 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6614 # It thinks the first close brace ends the variable substitution.
6615 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6616
6617 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6618
6619 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6620
6621 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6622 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6623 # Just in case
6624 sleep 1
6625 echo timestamp > conftest.file
6626 # Do `set' in a subshell so we don't clobber the current shell's
6627 # arguments. Must try -L first in case configure is actually a
6628 # symlink; some systems play weird games with the mod time of symlinks
6629 # (eg FreeBSD returns the mod time of the symlink's containing
6630 # directory).
6631 if (
6632 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6633 if test "$*" = "X"; then
6634 # -L didn't work.
6635 set X `ls -t $srcdir/configure conftest.file`
6636 fi
6637 rm -f conftest.file
6638 if test "$*" != "X $srcdir/configure conftest.file" \
6639 && test "$*" != "X conftest.file $srcdir/configure"; then
6640
6641 # If neither matched, then we have a broken ls. This can happen
6642 # if, for instance, CONFIG_SHELL is bash and it inherits a
6643 # broken ls alias from the environment. This has actually
6644 # happened. Such a system could not be considered "sane".
6645 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6646 alias in your environment" >&5
6647 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6648 alias in your environment" >&2;}
6649 { (exit 1); exit 1; }; }
6650 fi
6651
6652 test "$2" = conftest.file
6653 )
6654 then
6655 # Ok.
6656 :
6657 else
6658 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6659 Check your system clock" >&5
6660 echo "$as_me: error: newly created file is older than distributed files!
6661 Check your system clock" >&2;}
6662 { (exit 1); exit 1; }; }
6663 fi
6664 echo "$as_me:$LINENO: result: yes" >&5
6665 echo "${ECHO_T}yes" >&6
6666 test "$program_prefix" != NONE &&
6667 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6668 # Use a double $ so make ignores it.
6669 test "$program_suffix" != NONE &&
6670 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6671 # Double any \ or $. echo might interpret backslashes.
6672 # By default was `s,x,x', remove it if useless.
6673 cat <<\_ACEOF >conftest.sed
6674 s/[\\$]/&&/g;s/;s,x,x,$//
6675 _ACEOF
6676 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6677 rm conftest.sed
6678
6679 # expand $ac_aux_dir to an absolute path
6680 am_aux_dir=`cd $ac_aux_dir && pwd`
6681
6682 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6683 # Use eval to expand $SHELL
6684 if eval "$MISSING --run true"; then
6685 am_missing_run="$MISSING --run "
6686 else
6687 am_missing_run=
6688 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6689 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6690 fi
6691
6692 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6693 # We used to keeping the `.' as first argument, in order to
6694 # allow $(mkdir_p) to be used without argument. As in
6695 # $(mkdir_p) $(somedir)
6696 # where $(somedir) is conditionally defined. However this is wrong
6697 # for two reasons:
6698 # 1. if the package is installed by a user who cannot write `.'
6699 # make install will fail,
6700 # 2. the above comment should most certainly read
6701 # $(mkdir_p) $(DESTDIR)$(somedir)
6702 # so it does not work when $(somedir) is undefined and
6703 # $(DESTDIR) is not.
6704 # To support the latter case, we have to write
6705 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6706 # so the `.' trick is pointless.
6707 mkdir_p='mkdir -p --'
6708 else
6709 # On NextStep and OpenStep, the `mkdir' command does not
6710 # recognize any option. It will interpret all options as
6711 # directories to create, and then abort because `.' already
6712 # exists.
6713 for d in ./-p ./--version;
6714 do
6715 test -d $d && rmdir $d
6716 done
6717 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6718 if test -f "$ac_aux_dir/mkinstalldirs"; then
6719 mkdir_p='$(mkinstalldirs)'
6720 else
6721 mkdir_p='$(install_sh) -d'
6722 fi
6723 fi
6724
6725 for ac_prog in gawk mawk nawk awk
6726 do
6727 # Extract the first word of "$ac_prog", so it can be a program name with args.
6728 set dummy $ac_prog; 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_AWK+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 else
6734 if test -n "$AWK"; then
6735 ac_cv_prog_AWK="$AWK" # 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_AWK="$ac_prog"
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 fi
6752 fi
6753 AWK=$ac_cv_prog_AWK
6754 if test -n "$AWK"; then
6755 echo "$as_me:$LINENO: result: $AWK" >&5
6756 echo "${ECHO_T}$AWK" >&6
6757 else
6758 echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6
6760 fi
6761
6762 test -n "$AWK" && break
6763 done
6764
6765 ac_config_commands="$ac_config_commands depfiles"
6766
6767
6768 am_make=${MAKE-make}
6769 cat > confinc << 'END'
6770 am__doit:
6771 @echo done
6772 .PHONY: am__doit
6773 END
6774 # If we don't find an include directive, just comment out the code.
6775 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6776 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6777 am__include="#"
6778 am__quote=
6779 _am_result=none
6780 # First try GNU make style include.
6781 echo "include confinc" > confmf
6782 # We grep out `Entering directory' and `Leaving directory'
6783 # messages which can occur if `w' ends up in MAKEFLAGS.
6784 # In particular we don't look at `^make:' because GNU make might
6785 # be invoked under some other name (usually "gmake"), in which
6786 # case it prints its new name instead of `make'.
6787 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6788 am__include=include
6789 am__quote=
6790 _am_result=GNU
6791 fi
6792 # Now try BSD make style include.
6793 if test "$am__include" = "#"; then
6794 echo '.include "confinc"' > confmf
6795 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6796 am__include=.include
6797 am__quote="\""
6798 _am_result=BSD
6799 fi
6800 fi
6801
6802
6803 echo "$as_me:$LINENO: result: $_am_result" >&5
6804 echo "${ECHO_T}$_am_result" >&6
6805 rm -f confinc confmf
6806
6807 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6808 if test "${enable_dependency_tracking+set}" = set; then
6809 enableval="$enable_dependency_tracking"
6810
6811 fi;
6812 if test "x$enable_dependency_tracking" != xno; then
6813 am_depcomp="$ac_aux_dir/depcomp"
6814 AMDEPBACKSLASH='\'
6815 fi
6816
6817
6818 if test "x$enable_dependency_tracking" != xno; then
6819 AMDEP_TRUE=
6820 AMDEP_FALSE='#'
6821 else
6822 AMDEP_TRUE='#'
6823 AMDEP_FALSE=
6824 fi
6825
6826
6827
6828 # test to see if srcdir already configured
6829 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6830 test -f $srcdir/config.status; then
6831 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6832 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6833 { (exit 1); exit 1; }; }
6834 fi
6835
6836 # test whether we have cygpath
6837 if test -z "$CYGPATH_W"; then
6838 if (cygpath --version) >/dev/null 2>/dev/null; then
6839 CYGPATH_W='cygpath -w'
6840 else
6841 CYGPATH_W=echo
6842 fi
6843 fi
6844
6845
6846 # Define the identity of the package.
6847 PACKAGE=gdb
6848 VERSION=UNUSED-VERSION
6849
6850
6851 # Some tools Automake needs.
6852
6853 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6854
6855
6856 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6857
6858
6859 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6860
6861
6862 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6863
6864
6865 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6866
6867 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6868
6869 # Installed binaries are usually stripped using `strip' when the user
6870 # run `make install-strip'. However `strip' might not be the right
6871 # tool to use in cross-compilation environments, therefore Automake
6872 # will honor the `STRIP' environment variable to overrule this program.
6873 if test "$cross_compiling" != no; then
6874 if test -n "$ac_tool_prefix"; then
6875 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6876 set dummy ${ac_tool_prefix}strip; ac_word=$2
6877 echo "$as_me:$LINENO: checking for $ac_word" >&5
6878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6879 if test "${ac_cv_prog_STRIP+set}" = set; then
6880 echo $ECHO_N "(cached) $ECHO_C" >&6
6881 else
6882 if test -n "$STRIP"; then
6883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6884 else
6885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6886 for as_dir in $PATH
6887 do
6888 IFS=$as_save_IFS
6889 test -z "$as_dir" && as_dir=.
6890 for ac_exec_ext in '' $ac_executable_extensions; do
6891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6892 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6894 break 2
6895 fi
6896 done
6897 done
6898
6899 fi
6900 fi
6901 STRIP=$ac_cv_prog_STRIP
6902 if test -n "$STRIP"; then
6903 echo "$as_me:$LINENO: result: $STRIP" >&5
6904 echo "${ECHO_T}$STRIP" >&6
6905 else
6906 echo "$as_me:$LINENO: result: no" >&5
6907 echo "${ECHO_T}no" >&6
6908 fi
6909
6910 fi
6911 if test -z "$ac_cv_prog_STRIP"; then
6912 ac_ct_STRIP=$STRIP
6913 # Extract the first word of "strip", so it can be a program name with args.
6914 set dummy strip; ac_word=$2
6915 echo "$as_me:$LINENO: checking for $ac_word" >&5
6916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6917 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6918 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 else
6920 if test -n "$ac_ct_STRIP"; then
6921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_ac_ct_STRIP="strip"
6931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934 done
6935 done
6936
6937 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6938 fi
6939 fi
6940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6941 if test -n "$ac_ct_STRIP"; then
6942 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6943 echo "${ECHO_T}$ac_ct_STRIP" >&6
6944 else
6945 echo "$as_me:$LINENO: result: no" >&5
6946 echo "${ECHO_T}no" >&6
6947 fi
6948
6949 STRIP=$ac_ct_STRIP
6950 else
6951 STRIP="$ac_cv_prog_STRIP"
6952 fi
6953
6954 fi
6955 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6956
6957 # We need awk for the "check" target. The system "awk" is bad on
6958 # some platforms.
6959 # Always define AMTAR for backward compatibility.
6960
6961 AMTAR=${AMTAR-"${am_missing_run}tar"}
6962
6963 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6964
6965
6966
6967
6968 depcc="$CC" am_compiler_list=
6969
6970 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6971 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6972 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6973 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 else
6975 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6976 # We make a subdir and do the tests there. Otherwise we can end up
6977 # making bogus files that we don't know about and never remove. For
6978 # instance it was reported that on HP-UX the gcc test will end up
6979 # making a dummy file named `D' -- because `-MD' means `put the output
6980 # in D'.
6981 mkdir conftest.dir
6982 # Copy depcomp to subdir because otherwise we won't find it if we're
6983 # using a relative directory.
6984 cp "$am_depcomp" conftest.dir
6985 cd conftest.dir
6986 # We will build objects and dependencies in a subdirectory because
6987 # it helps to detect inapplicable dependency modes. For instance
6988 # both Tru64's cc and ICC support -MD to output dependencies as a
6989 # side effect of compilation, but ICC will put the dependencies in
6990 # the current directory while Tru64 will put them in the object
6991 # directory.
6992 mkdir sub
6993
6994 am_cv_CC_dependencies_compiler_type=none
6995 if test "$am_compiler_list" = ""; then
6996 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6997 fi
6998 for depmode in $am_compiler_list; do
6999 # Setup a source with many dependencies, because some compilers
7000 # like to wrap large dependency lists on column 80 (with \), and
7001 # we should not choose a depcomp mode which is confused by this.
7002 #
7003 # We need to recreate these files for each test, as the compiler may
7004 # overwrite some of them when testing with obscure command lines.
7005 # This happens at least with the AIX C compiler.
7006 : > sub/conftest.c
7007 for i in 1 2 3 4 5 6; do
7008 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7009 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7010 # Solaris 8's {/usr,}/bin/sh.
7011 touch sub/conftst$i.h
7012 done
7013 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7014
7015 case $depmode in
7016 nosideeffect)
7017 # after this tag, mechanisms are not by side-effect, so they'll
7018 # only be used when explicitly requested
7019 if test "x$enable_dependency_tracking" = xyes; then
7020 continue
7021 else
7022 break
7023 fi
7024 ;;
7025 none) break ;;
7026 esac
7027 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7028 # mode. It turns out that the SunPro C++ compiler does not properly
7029 # handle `-M -o', and we need to detect this.
7030 if depmode=$depmode \
7031 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7033 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7034 >/dev/null 2>conftest.err &&
7035 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7036 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7037 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7038 # icc doesn't choke on unknown options, it will just issue warnings
7039 # or remarks (even with -Werror). So we grep stderr for any message
7040 # that says an option was ignored or not supported.
7041 # When given -MP, icc 7.0 and 7.1 complain thusly:
7042 # icc: Command line warning: ignoring option '-M'; no argument required
7043 # The diagnosis changed in icc 8.0:
7044 # icc: Command line remark: option '-MP' not supported
7045 if (grep 'ignoring option' conftest.err ||
7046 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7047 am_cv_CC_dependencies_compiler_type=$depmode
7048 break
7049 fi
7050 fi
7051 done
7052
7053 cd ..
7054 rm -rf conftest.dir
7055 else
7056 am_cv_CC_dependencies_compiler_type=none
7057 fi
7058
7059 fi
7060 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7061 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7062 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7063
7064
7065
7066 if
7067 test "x$enable_dependency_tracking" != xno \
7068 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7069 am__fastdepCC_TRUE=
7070 am__fastdepCC_FALSE='#'
7071 else
7072 am__fastdepCC_TRUE='#'
7073 am__fastdepCC_FALSE=
7074 fi
7075
7076
7077
7078
7079 debugdir=${libdir}/debug
7080
7081
7082 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7083 if test "${with_separate_debug_dir+set}" = set; then
7084 withval="$with_separate_debug_dir"
7085 debugdir="${withval}"
7086 fi;
7087
7088
7089 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7091 ac_define_dir=`eval echo $debugdir`
7092 ac_define_dir=`eval echo $ac_define_dir`
7093
7094 cat >>confdefs.h <<_ACEOF
7095 #define DEBUGDIR "$ac_define_dir"
7096 _ACEOF
7097
7098
7099 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7100
7101 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7102 if test "x$prefix" = xNONE; then
7103 test_prefix=/usr/local
7104 else
7105 test_prefix=$prefix
7106 fi
7107 else
7108 test_prefix=$exec_prefix
7109 fi
7110 case ${debugdir} in
7111 "${test_prefix}"|"${test_prefix}/"*|\
7112 '${exec_prefix}'|'${exec_prefix}/'*)
7113
7114 cat >>confdefs.h <<\_ACEOF
7115 #define DEBUGDIR_RELOCATABLE 1
7116 _ACEOF
7117
7118 ;;
7119 esac
7120
7121
7122
7123 subdirs="$subdirs doc testsuite"
7124
7125
7126 # Check whether to support alternative target configurations
7127 # Check whether --enable-targets or --disable-targets was given.
7128 if test "${enable_targets+set}" = set; then
7129 enableval="$enable_targets"
7130 case "${enableval}" in
7131 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7132 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7133 { (exit 1); exit 1; }; }
7134 ;;
7135 no) enable_targets= ;;
7136 *) enable_targets=$enableval ;;
7137 esac
7138 fi;
7139
7140 # Check whether to enable 64-bit support on 32-bit hosts
7141 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7142 if test "${enable_64_bit_bfd+set}" = set; then
7143 enableval="$enable_64_bit_bfd"
7144 case "${enableval}" in
7145 yes) want64=true ;;
7146 no) want64=false ;;
7147 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7148 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7149 { (exit 1); exit 1; }; } ;;
7150 esac
7151 else
7152 want64=false
7153 fi;
7154 # Provide defaults for some variables set by the per-host and per-target
7155 # configuration.
7156 gdb_host_obs=posix-hdep.o
7157
7158 if test "${target}" = "${host}"; then
7159 gdb_native=yes
7160 else
7161 gdb_native=no
7162 fi
7163
7164 . $srcdir/configure.host
7165
7166 # Accumulate some settings from configure.tgt over all enabled targets
7167
7168 TARGET_OBS=
7169 all_targets=
7170
7171 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7172 do
7173 if test "$targ_alias" = "all"; then
7174 all_targets=true
7175 else
7176 # Canonicalize the secondary target names.
7177 result=`$ac_config_sub $targ_alias 2>/dev/null`
7178 if test -n "$result"; then
7179 targ=$result
7180 else
7181 targ=$targ_alias
7182 fi
7183
7184 . ${srcdir}/configure.tgt
7185
7186 # Target-specific object files
7187 for i in ${gdb_target_obs}; do
7188 case " $TARGET_OBS " in
7189 *" ${i} "*) ;;
7190 *)
7191 TARGET_OBS="$TARGET_OBS ${i}"
7192 ;;
7193 esac
7194 done
7195
7196 # Check whether this target needs 64-bit CORE_ADDR
7197 if test x${want64} = xfalse; then
7198 . ${srcdir}/../bfd/config.bfd
7199 fi
7200 fi
7201 done
7202
7203 if test x${all_targets} = xtrue; then
7204
7205 # We want all 64-bit targets if we either:
7206 # - run on a 64-bit host or
7207 # - already require 64-bit support for some other target or
7208 # - the --enable-64-bit-bfd option was supplied
7209 # Otherwise we only support all 32-bit targets.
7210 #
7211 # NOTE: This test must be in sync with the corresponding
7212 # tests in BFD!
7213
7214 if test x${want64} = xfalse; then
7215 echo "$as_me:$LINENO: checking for long" >&5
7216 echo $ECHO_N "checking for long... $ECHO_C" >&6
7217 if test "${ac_cv_type_long+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220 cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h. */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 $ac_includes_default
7227 int
7228 main ()
7229 {
7230 if ((long *) 0)
7231 return 0;
7232 if (sizeof (long))
7233 return 0;
7234 ;
7235 return 0;
7236 }
7237 _ACEOF
7238 rm -f conftest.$ac_objext
7239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7240 (eval $ac_compile) 2>conftest.er1
7241 ac_status=$?
7242 grep -v '^ *+' conftest.er1 >conftest.err
7243 rm -f conftest.er1
7244 cat conftest.err >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } &&
7247 { ac_try='test -z "$ac_c_werror_flag"
7248 || test ! -s conftest.err'
7249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 (eval $ac_try) 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; } &&
7254 { ac_try='test -s conftest.$ac_objext'
7255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 (eval $ac_try) 2>&5
7257 ac_status=$?
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; }; then
7260 ac_cv_type_long=yes
7261 else
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7264
7265 ac_cv_type_long=no
7266 fi
7267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7268 fi
7269 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7270 echo "${ECHO_T}$ac_cv_type_long" >&6
7271
7272 echo "$as_me:$LINENO: checking size of long" >&5
7273 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7274 if test "${ac_cv_sizeof_long+set}" = set; then
7275 echo $ECHO_N "(cached) $ECHO_C" >&6
7276 else
7277 if test "$ac_cv_type_long" = yes; then
7278 # The cast to unsigned long works around a bug in the HP C Compiler
7279 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7280 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7281 # This bug is HP SR number 8606223364.
7282 if test "$cross_compiling" = yes; then
7283 # Depending upon the size, compute the lo and hi bounds.
7284 cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h. */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 $ac_includes_default
7291 int
7292 main ()
7293 {
7294 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7295 test_array [0] = 0
7296
7297 ;
7298 return 0;
7299 }
7300 _ACEOF
7301 rm -f conftest.$ac_objext
7302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7303 (eval $ac_compile) 2>conftest.er1
7304 ac_status=$?
7305 grep -v '^ *+' conftest.er1 >conftest.err
7306 rm -f conftest.er1
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } &&
7310 { ac_try='test -z "$ac_c_werror_flag"
7311 || test ! -s conftest.err'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 (eval $ac_try) 2>&5
7314 ac_status=$?
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; } &&
7317 { ac_try='test -s conftest.$ac_objext'
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319 (eval $ac_try) 2>&5
7320 ac_status=$?
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; }; then
7323 ac_lo=0 ac_mid=0
7324 while :; do
7325 cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h. */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7331 $ac_includes_default
7332 int
7333 main ()
7334 {
7335 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7336 test_array [0] = 0
7337
7338 ;
7339 return 0;
7340 }
7341 _ACEOF
7342 rm -f conftest.$ac_objext
7343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7344 (eval $ac_compile) 2>conftest.er1
7345 ac_status=$?
7346 grep -v '^ *+' conftest.er1 >conftest.err
7347 rm -f conftest.er1
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } &&
7351 { ac_try='test -z "$ac_c_werror_flag"
7352 || test ! -s conftest.err'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7354 (eval $ac_try) 2>&5
7355 ac_status=$?
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; } &&
7358 { ac_try='test -s conftest.$ac_objext'
7359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7360 (eval $ac_try) 2>&5
7361 ac_status=$?
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }; }; then
7364 ac_hi=$ac_mid; break
7365 else
7366 echo "$as_me: failed program was:" >&5
7367 sed 's/^/| /' conftest.$ac_ext >&5
7368
7369 ac_lo=`expr $ac_mid + 1`
7370 if test $ac_lo -le $ac_mid; then
7371 ac_lo= ac_hi=
7372 break
7373 fi
7374 ac_mid=`expr 2 '*' $ac_mid + 1`
7375 fi
7376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7377 done
7378 else
7379 echo "$as_me: failed program was:" >&5
7380 sed 's/^/| /' conftest.$ac_ext >&5
7381
7382 cat >conftest.$ac_ext <<_ACEOF
7383 /* confdefs.h. */
7384 _ACEOF
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7388 $ac_includes_default
7389 int
7390 main ()
7391 {
7392 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7393 test_array [0] = 0
7394
7395 ;
7396 return 0;
7397 }
7398 _ACEOF
7399 rm -f conftest.$ac_objext
7400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7401 (eval $ac_compile) 2>conftest.er1
7402 ac_status=$?
7403 grep -v '^ *+' conftest.er1 >conftest.err
7404 rm -f conftest.er1
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try='test -z "$ac_c_werror_flag"
7409 || test ! -s conftest.err'
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); }; } &&
7415 { ac_try='test -s conftest.$ac_objext'
7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7417 (eval $ac_try) 2>&5
7418 ac_status=$?
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; }; then
7421 ac_hi=-1 ac_mid=-1
7422 while :; do
7423 cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h. */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 $ac_includes_default
7430 int
7431 main ()
7432 {
7433 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7434 test_array [0] = 0
7435
7436 ;
7437 return 0;
7438 }
7439 _ACEOF
7440 rm -f conftest.$ac_objext
7441 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7442 (eval $ac_compile) 2>conftest.er1
7443 ac_status=$?
7444 grep -v '^ *+' conftest.er1 >conftest.err
7445 rm -f conftest.er1
7446 cat conftest.err >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } &&
7449 { ac_try='test -z "$ac_c_werror_flag"
7450 || test ! -s conftest.err'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 (eval $ac_try) 2>&5
7453 ac_status=$?
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; } &&
7456 { ac_try='test -s conftest.$ac_objext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458 (eval $ac_try) 2>&5
7459 ac_status=$?
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7462 ac_lo=$ac_mid; break
7463 else
7464 echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7466
7467 ac_hi=`expr '(' $ac_mid ')' - 1`
7468 if test $ac_mid -le $ac_hi; then
7469 ac_lo= ac_hi=
7470 break
7471 fi
7472 ac_mid=`expr 2 '*' $ac_mid`
7473 fi
7474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7475 done
7476 else
7477 echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7479
7480 ac_lo= ac_hi=
7481 fi
7482 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7483 fi
7484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7485 # Binary search between lo and hi bounds.
7486 while test "x$ac_lo" != "x$ac_hi"; do
7487 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7488 cat >conftest.$ac_ext <<_ACEOF
7489 /* confdefs.h. */
7490 _ACEOF
7491 cat confdefs.h >>conftest.$ac_ext
7492 cat >>conftest.$ac_ext <<_ACEOF
7493 /* end confdefs.h. */
7494 $ac_includes_default
7495 int
7496 main ()
7497 {
7498 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7499 test_array [0] = 0
7500
7501 ;
7502 return 0;
7503 }
7504 _ACEOF
7505 rm -f conftest.$ac_objext
7506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7507 (eval $ac_compile) 2>conftest.er1
7508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } &&
7514 { ac_try='test -z "$ac_c_werror_flag"
7515 || test ! -s conftest.err'
7516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 (eval $ac_try) 2>&5
7518 ac_status=$?
7519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7520 (exit $ac_status); }; } &&
7521 { ac_try='test -s conftest.$ac_objext'
7522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 (eval $ac_try) 2>&5
7524 ac_status=$?
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }; }; then
7527 ac_hi=$ac_mid
7528 else
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7531
7532 ac_lo=`expr '(' $ac_mid ')' + 1`
7533 fi
7534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7535 done
7536 case $ac_lo in
7537 ?*) ac_cv_sizeof_long=$ac_lo;;
7538 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7539 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7540 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7541 See \`config.log' for more details." >&5
7542 echo "$as_me: error: cannot compute sizeof (long), 77
7543 See \`config.log' for more details." >&2;}
7544 { (exit 1); exit 1; }; }; } ;;
7545 esac
7546 else
7547 if test "$cross_compiling" = yes; then
7548 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7549 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7550 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7551 See \`config.log' for more details." >&5
7552 echo "$as_me: error: cannot run test program while cross compiling
7553 See \`config.log' for more details." >&2;}
7554 { (exit 1); exit 1; }; }; }
7555 else
7556 cat >conftest.$ac_ext <<_ACEOF
7557 /* confdefs.h. */
7558 _ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7562 $ac_includes_default
7563 long longval () { return (long) (sizeof (long)); }
7564 unsigned long ulongval () { return (long) (sizeof (long)); }
7565 #include <stdio.h>
7566 #include <stdlib.h>
7567 int
7568 main ()
7569 {
7570
7571 FILE *f = fopen ("conftest.val", "w");
7572 if (! f)
7573 exit (1);
7574 if (((long) (sizeof (long))) < 0)
7575 {
7576 long i = longval ();
7577 if (i != ((long) (sizeof (long))))
7578 exit (1);
7579 fprintf (f, "%ld\n", i);
7580 }
7581 else
7582 {
7583 unsigned long i = ulongval ();
7584 if (i != ((long) (sizeof (long))))
7585 exit (1);
7586 fprintf (f, "%lu\n", i);
7587 }
7588 exit (ferror (f) || fclose (f) != 0);
7589
7590 ;
7591 return 0;
7592 }
7593 _ACEOF
7594 rm -f conftest$ac_exeext
7595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7596 (eval $ac_link) 2>&5
7597 ac_status=$?
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601 (eval $ac_try) 2>&5
7602 ac_status=$?
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; }; then
7605 ac_cv_sizeof_long=`cat conftest.val`
7606 else
7607 echo "$as_me: program exited with status $ac_status" >&5
7608 echo "$as_me: failed program was:" >&5
7609 sed 's/^/| /' conftest.$ac_ext >&5
7610
7611 ( exit $ac_status )
7612 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7613 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7615 See \`config.log' for more details." >&5
7616 echo "$as_me: error: cannot compute sizeof (long), 77
7617 See \`config.log' for more details." >&2;}
7618 { (exit 1); exit 1; }; }; }
7619 fi
7620 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7621 fi
7622 fi
7623 rm -f conftest.val
7624 else
7625 ac_cv_sizeof_long=0
7626 fi
7627 fi
7628 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7629 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7630 cat >>confdefs.h <<_ACEOF
7631 #define SIZEOF_LONG $ac_cv_sizeof_long
7632 _ACEOF
7633
7634
7635 if test "x${ac_cv_sizeof_long}" = "x8"; then
7636 want64=true
7637 fi
7638 fi
7639 if test x${want64} = xtrue; then
7640 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7641 else
7642 TARGET_OBS='$(ALL_TARGET_OBS)'
7643 fi
7644 fi
7645
7646
7647
7648 # For other settings, only the main target counts.
7649 gdb_sim=
7650 gdb_osabi=
7651 build_gdbserver=
7652 targ=$target; . ${srcdir}/configure.tgt
7653
7654 # Fetch the default architecture and default target vector from BFD.
7655 targ=$target; . $srcdir/../bfd/config.bfd
7656
7657 # We only want the first architecture, so strip off the others if
7658 # there is more than one.
7659 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7660
7661 if test "x$targ_archs" != x; then
7662
7663 cat >>confdefs.h <<_ACEOF
7664 #define DEFAULT_BFD_ARCH $targ_archs
7665 _ACEOF
7666
7667 fi
7668 if test "x$targ_defvec" != x; then
7669
7670 cat >>confdefs.h <<_ACEOF
7671 #define DEFAULT_BFD_VEC $targ_defvec
7672 _ACEOF
7673
7674 fi
7675
7676 # The CLI cannot be disabled yet, but may be in the future.
7677
7678 # Enable CLI.
7679 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7680 if test "${enable_gdbcli+set}" = set; then
7681 enableval="$enable_gdbcli"
7682 case $enableval in
7683 yes)
7684 ;;
7685 no)
7686 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7687 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7688 { (exit 1); exit 1; }; } ;;
7689 *)
7690 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7691 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7692 { (exit 1); exit 1; }; } ;;
7693 esac
7694 else
7695 enable_gdbcli=yes
7696 fi;
7697 if test x"$enable_gdbcli" = xyes; then
7698 if test -d $srcdir/cli; then
7699 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7700 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7701 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7702 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7703 fi
7704 fi
7705
7706 # Enable MI.
7707 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7708 if test "${enable_gdbmi+set}" = set; then
7709 enableval="$enable_gdbmi"
7710 case $enableval in
7711 yes | no)
7712 ;;
7713 *)
7714 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7715 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7716 { (exit 1); exit 1; }; } ;;
7717 esac
7718 else
7719 enable_gdbmi=yes
7720 fi;
7721 if test x"$enable_gdbmi" = xyes; then
7722 if test -d $srcdir/mi; then
7723 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7724 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7725 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7726 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7727 fi
7728 fi
7729
7730 # Enable TUI.
7731 # Check whether --enable-tui or --disable-tui was given.
7732 if test "${enable_tui+set}" = set; then
7733 enableval="$enable_tui"
7734 case $enableval in
7735 yes | no | auto)
7736 ;;
7737 *)
7738 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7739 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7740 { (exit 1); exit 1; }; } ;;
7741 esac
7742 else
7743 enable_tui=auto
7744 fi;
7745
7746 # Enable gdbtk.
7747 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7748 if test "${enable_gdbtk+set}" = set; then
7749 enableval="$enable_gdbtk"
7750 case $enableval in
7751 yes | no)
7752 ;;
7753 *)
7754 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7755 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7756 { (exit 1); exit 1; }; } ;;
7757 esac
7758 else
7759 if test -d $srcdir/gdbtk; then
7760 enable_gdbtk=yes
7761 else
7762 enable_gdbtk=no
7763 fi
7764 fi;
7765 # We unconditionally disable gdbtk tests on selected platforms.
7766 case $host_os in
7767 go32* | windows*)
7768 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7769 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7770 enable_gdbtk=no ;;
7771 esac
7772
7773 # Libunwind support.
7774
7775 # Check whether --with-libunwind or --without-libunwind was given.
7776 if test "${with_libunwind+set}" = set; then
7777 withval="$with_libunwind"
7778 case "${withval}" in
7779 yes) enable_libunwind=yes ;;
7780 no) enable_libunwind=no ;;
7781 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7782 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7783 { (exit 1); exit 1; }; } ;;
7784 esac
7785 else
7786
7787
7788
7789 for ac_header in libunwind.h libunwind-ia64.h
7790 do
7791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7793 echo "$as_me:$LINENO: checking for $ac_header" >&5
7794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7797 fi
7798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7800 else
7801 # Is the header compilable?
7802 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7804 cat >conftest.$ac_ext <<_ACEOF
7805 /* confdefs.h. */
7806 _ACEOF
7807 cat confdefs.h >>conftest.$ac_ext
7808 cat >>conftest.$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7810 $ac_includes_default
7811 #include <$ac_header>
7812 _ACEOF
7813 rm -f conftest.$ac_objext
7814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7815 (eval $ac_compile) 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); } &&
7822 { ac_try='test -z "$ac_c_werror_flag"
7823 || test ! -s conftest.err'
7824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 (eval $ac_try) 2>&5
7826 ac_status=$?
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; } &&
7829 { ac_try='test -s conftest.$ac_objext'
7830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 (eval $ac_try) 2>&5
7832 ac_status=$?
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); }; }; then
7835 ac_header_compiler=yes
7836 else
7837 echo "$as_me: failed program was:" >&5
7838 sed 's/^/| /' conftest.$ac_ext >&5
7839
7840 ac_header_compiler=no
7841 fi
7842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7843 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7844 echo "${ECHO_T}$ac_header_compiler" >&6
7845
7846 # Is the header present?
7847 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7849 cat >conftest.$ac_ext <<_ACEOF
7850 /* confdefs.h. */
7851 _ACEOF
7852 cat confdefs.h >>conftest.$ac_ext
7853 cat >>conftest.$ac_ext <<_ACEOF
7854 /* end confdefs.h. */
7855 #include <$ac_header>
7856 _ACEOF
7857 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7858 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7859 ac_status=$?
7860 grep -v '^ *+' conftest.er1 >conftest.err
7861 rm -f conftest.er1
7862 cat conftest.err >&5
7863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } >/dev/null; then
7865 if test -s conftest.err; then
7866 ac_cpp_err=$ac_c_preproc_warn_flag
7867 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7868 else
7869 ac_cpp_err=
7870 fi
7871 else
7872 ac_cpp_err=yes
7873 fi
7874 if test -z "$ac_cpp_err"; then
7875 ac_header_preproc=yes
7876 else
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7879
7880 ac_header_preproc=no
7881 fi
7882 rm -f conftest.err conftest.$ac_ext
7883 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7884 echo "${ECHO_T}$ac_header_preproc" >&6
7885
7886 # So? What about this header?
7887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7888 yes:no: )
7889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7893 ac_header_preproc=yes
7894 ;;
7895 no:yes:* )
7896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7908 (
7909 cat <<\_ASBOX
7910 ## ------------------------------------------ ##
7911 ## Report this to the AC_PACKAGE_NAME lists. ##
7912 ## ------------------------------------------ ##
7913 _ASBOX
7914 ) |
7915 sed "s/^/$as_me: WARNING: /" >&2
7916 ;;
7917 esac
7918 echo "$as_me:$LINENO: checking for $ac_header" >&5
7919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7921 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 else
7923 eval "$as_ac_Header=\$ac_header_preproc"
7924 fi
7925 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7926 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7927
7928 fi
7929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7930 cat >>confdefs.h <<_ACEOF
7931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7932 _ACEOF
7933
7934 fi
7935
7936 done
7937
7938 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7939 enable_libunwind=yes;
7940 fi
7941
7942 fi;
7943
7944 if test x"$enable_libunwind" = xyes; then
7945
7946
7947 for ac_header in libunwind.h libunwind-ia64.h
7948 do
7949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7950 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7951 echo "$as_me:$LINENO: checking for $ac_header" >&5
7952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 fi
7956 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7957 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7958 else
7959 # Is the header compilable?
7960 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7962 cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h. */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7968 $ac_includes_default
7969 #include <$ac_header>
7970 _ACEOF
7971 rm -f conftest.$ac_objext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7973 (eval $ac_compile) 2>conftest.er1
7974 ac_status=$?
7975 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -f conftest.er1
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } &&
7980 { ac_try='test -z "$ac_c_werror_flag"
7981 || test ! -s conftest.err'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 (eval $ac_try) 2>&5
7984 ac_status=$?
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; } &&
7987 { ac_try='test -s conftest.$ac_objext'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 (eval $ac_try) 2>&5
7990 ac_status=$?
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7993 ac_header_compiler=yes
7994 else
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7997
7998 ac_header_compiler=no
7999 fi
8000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8001 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8002 echo "${ECHO_T}$ac_header_compiler" >&6
8003
8004 # Is the header present?
8005 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8006 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h. */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 #include <$ac_header>
8014 _ACEOF
8015 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } >/dev/null; then
8023 if test -s conftest.err; then
8024 ac_cpp_err=$ac_c_preproc_warn_flag
8025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8026 else
8027 ac_cpp_err=
8028 fi
8029 else
8030 ac_cpp_err=yes
8031 fi
8032 if test -z "$ac_cpp_err"; then
8033 ac_header_preproc=yes
8034 else
8035 echo "$as_me: failed program was:" >&5
8036 sed 's/^/| /' conftest.$ac_ext >&5
8037
8038 ac_header_preproc=no
8039 fi
8040 rm -f conftest.err conftest.$ac_ext
8041 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8042 echo "${ECHO_T}$ac_header_preproc" >&6
8043
8044 # So? What about this header?
8045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8046 yes:no: )
8047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8051 ac_header_preproc=yes
8052 ;;
8053 no:yes:* )
8054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8066 (
8067 cat <<\_ASBOX
8068 ## ------------------------------------------ ##
8069 ## Report this to the AC_PACKAGE_NAME lists. ##
8070 ## ------------------------------------------ ##
8071 _ASBOX
8072 ) |
8073 sed "s/^/$as_me: WARNING: /" >&2
8074 ;;
8075 esac
8076 echo "$as_me:$LINENO: checking for $ac_header" >&5
8077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 else
8081 eval "$as_ac_Header=\$ac_header_preproc"
8082 fi
8083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8085
8086 fi
8087 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8088 cat >>confdefs.h <<_ACEOF
8089 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8090 _ACEOF
8091
8092 fi
8093
8094 done
8095
8096
8097 cat >>confdefs.h <<\_ACEOF
8098 #define HAVE_LIBUNWIND 1
8099 _ACEOF
8100
8101 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8102 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8103 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8104 fi
8105
8106 # Profiling support.
8107 # Check whether --enable-profiling or --disable-profiling was given.
8108 if test "${enable_profiling+set}" = set; then
8109 enableval="$enable_profiling"
8110 case $enableval in
8111 yes | no)
8112 ;;
8113 *)
8114 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8115 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8116 { (exit 1); exit 1; }; } ;;
8117 esac
8118 else
8119 enable_profiling=no
8120 fi;
8121
8122
8123
8124 for ac_func in monstartup _mcleanup
8125 do
8126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8127 echo "$as_me:$LINENO: checking for $ac_func" >&5
8128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8129 if eval "test \"\${$as_ac_var+set}\" = set"; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132 cat >conftest.$ac_ext <<_ACEOF
8133 /* confdefs.h. */
8134 _ACEOF
8135 cat confdefs.h >>conftest.$ac_ext
8136 cat >>conftest.$ac_ext <<_ACEOF
8137 /* end confdefs.h. */
8138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8140 #define $ac_func innocuous_$ac_func
8141
8142 /* System header to define __stub macros and hopefully few prototypes,
8143 which can conflict with char $ac_func (); below.
8144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8145 <limits.h> exists even on freestanding compilers. */
8146
8147 #ifdef __STDC__
8148 # include <limits.h>
8149 #else
8150 # include <assert.h>
8151 #endif
8152
8153 #undef $ac_func
8154
8155 /* Override any gcc2 internal prototype to avoid an error. */
8156 #ifdef __cplusplus
8157 extern "C"
8158 {
8159 #endif
8160 /* We use char because int might match the return type of a gcc2
8161 builtin and then its argument prototype would still apply. */
8162 char $ac_func ();
8163 /* The GNU C library defines this for functions which it implements
8164 to always fail with ENOSYS. Some functions are actually named
8165 something starting with __ and the normal name is an alias. */
8166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8167 choke me
8168 #else
8169 char (*f) () = $ac_func;
8170 #endif
8171 #ifdef __cplusplus
8172 }
8173 #endif
8174
8175 int
8176 main ()
8177 {
8178 return f != $ac_func;
8179 ;
8180 return 0;
8181 }
8182 _ACEOF
8183 rm -f conftest.$ac_objext conftest$ac_exeext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8185 (eval $ac_link) 2>conftest.er1
8186 ac_status=$?
8187 grep -v '^ *+' conftest.er1 >conftest.err
8188 rm -f conftest.er1
8189 cat conftest.err >&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } &&
8192 { ac_try='test -z "$ac_c_werror_flag"
8193 || test ! -s conftest.err'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8195 (eval $ac_try) 2>&5
8196 ac_status=$?
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; } &&
8199 { ac_try='test -s conftest$ac_exeext'
8200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8201 (eval $ac_try) 2>&5
8202 ac_status=$?
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); }; }; then
8205 eval "$as_ac_var=yes"
8206 else
8207 echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8209
8210 eval "$as_ac_var=no"
8211 fi
8212 rm -f conftest.err conftest.$ac_objext \
8213 conftest$ac_exeext conftest.$ac_ext
8214 fi
8215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8217 if test `eval echo '${'$as_ac_var'}'` = yes; then
8218 cat >>confdefs.h <<_ACEOF
8219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8220 _ACEOF
8221
8222 fi
8223 done
8224
8225 echo "$as_me:$LINENO: checking for _etext" >&5
8226 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8227 if test "${ac_cv_var__etext+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230 cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h. */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h. */
8236 #include <stdlib.h>
8237 extern char _etext;
8238
8239 int
8240 main ()
8241 {
8242 free (&_etext);
8243 ;
8244 return 0;
8245 }
8246 _ACEOF
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8249 (eval $ac_link) 2>conftest.er1
8250 ac_status=$?
8251 grep -v '^ *+' conftest.er1 >conftest.err
8252 rm -f conftest.er1
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
8256 { ac_try='test -z "$ac_c_werror_flag"
8257 || test ! -s conftest.err'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8259 (eval $ac_try) 2>&5
8260 ac_status=$?
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; } &&
8263 { ac_try='test -s conftest$ac_exeext'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8265 (eval $ac_try) 2>&5
8266 ac_status=$?
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; }; then
8269 ac_cv_var__etext=yes
8270 else
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274 ac_cv_var__etext=no
8275 fi
8276 rm -f conftest.err conftest.$ac_objext \
8277 conftest$ac_exeext conftest.$ac_ext
8278 fi
8279 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8280 echo "${ECHO_T}$ac_cv_var__etext" >&6
8281 if test $ac_cv_var__etext = yes; then
8282
8283 cat >>confdefs.h <<\_ACEOF
8284 #define HAVE__ETEXT 1
8285 _ACEOF
8286
8287 fi
8288 echo "$as_me:$LINENO: checking for etext" >&5
8289 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8290 if test "${ac_cv_var_etext+set}" = set; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293 cat >conftest.$ac_ext <<_ACEOF
8294 /* confdefs.h. */
8295 _ACEOF
8296 cat confdefs.h >>conftest.$ac_ext
8297 cat >>conftest.$ac_ext <<_ACEOF
8298 /* end confdefs.h. */
8299 #include <stdlib.h>
8300 extern char etext;
8301
8302 int
8303 main ()
8304 {
8305 free (&etext);
8306 ;
8307 return 0;
8308 }
8309 _ACEOF
8310 rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8312 (eval $ac_link) 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -z "$ac_c_werror_flag"
8320 || test ! -s conftest.err'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; } &&
8326 { ac_try='test -s conftest$ac_exeext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_cv_var_etext=yes
8333 else
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337 ac_cv_var_etext=no
8338 fi
8339 rm -f conftest.err conftest.$ac_objext \
8340 conftest$ac_exeext conftest.$ac_ext
8341 fi
8342 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8343 echo "${ECHO_T}$ac_cv_var_etext" >&6
8344 if test $ac_cv_var_etext = yes; then
8345
8346 cat >>confdefs.h <<\_ACEOF
8347 #define HAVE_ETEXT 1
8348 _ACEOF
8349
8350 fi
8351 if test "$enable_profiling" = yes ; then
8352 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8353 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8354 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8355 { (exit 1); exit 1; }; }
8356 fi
8357 PROFILE_CFLAGS=-pg
8358 OLD_CFLAGS="$CFLAGS"
8359 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8360
8361 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8362 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8363 if test "${ac_cv_cc_supports_pg+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 else
8366 cat >conftest.$ac_ext <<_ACEOF
8367 /* confdefs.h. */
8368 _ACEOF
8369 cat confdefs.h >>conftest.$ac_ext
8370 cat >>conftest.$ac_ext <<_ACEOF
8371 /* end confdefs.h. */
8372
8373 int
8374 main ()
8375 {
8376 int x;
8377 ;
8378 return 0;
8379 }
8380 _ACEOF
8381 rm -f conftest.$ac_objext
8382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8383 (eval $ac_compile) 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } &&
8390 { ac_try='test -z "$ac_c_werror_flag"
8391 || test ! -s conftest.err'
8392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8393 (eval $ac_try) 2>&5
8394 ac_status=$?
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 (exit $ac_status); }; } &&
8397 { ac_try='test -s conftest.$ac_objext'
8398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 (eval $ac_try) 2>&5
8400 ac_status=$?
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); }; }; then
8403 ac_cv_cc_supports_pg=yes
8404 else
8405 echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8407
8408 ac_cv_cc_supports_pg=no
8409 fi
8410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8411 fi
8412 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8413 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8414
8415 if test $ac_cv_cc_supports_pg = no; then
8416 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8417 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8418 { (exit 1); exit 1; }; }
8419 fi
8420
8421 CFLAGS="$OLD_CFLAGS"
8422 fi
8423
8424
8425
8426 # Check whether --with-pkgversion or --without-pkgversion was given.
8427 if test "${with_pkgversion+set}" = set; then
8428 withval="$with_pkgversion"
8429 case "$withval" in
8430 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8431 echo "$as_me: error: package version not specified" >&2;}
8432 { (exit 1); exit 1; }; } ;;
8433 no) PKGVERSION= ;;
8434 *) PKGVERSION="($withval) " ;;
8435 esac
8436 else
8437 PKGVERSION="(GDB) "
8438
8439 fi;
8440
8441
8442
8443
8444 # Check whether --with-bugurl or --without-bugurl was given.
8445 if test "${with_bugurl+set}" = set; then
8446 withval="$with_bugurl"
8447 case "$withval" in
8448 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8449 echo "$as_me: error: bug URL not specified" >&2;}
8450 { (exit 1); exit 1; }; } ;;
8451 no) BUGURL=
8452 ;;
8453 *) BUGURL="$withval"
8454 ;;
8455 esac
8456 else
8457 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8458
8459 fi;
8460 case ${BUGURL} in
8461 "")
8462 REPORT_BUGS_TO=
8463 REPORT_BUGS_TEXI=
8464 ;;
8465 *)
8466 REPORT_BUGS_TO="<$BUGURL>"
8467 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8468 ;;
8469 esac;
8470
8471
8472
8473
8474 cat >>confdefs.h <<_ACEOF
8475 #define PKGVERSION "$PKGVERSION"
8476 _ACEOF
8477
8478
8479 cat >>confdefs.h <<_ACEOF
8480 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8481 _ACEOF
8482
8483
8484 # --------------------- #
8485 # Checks for programs. #
8486 # --------------------- #
8487
8488 for ac_prog in gawk mawk nawk awk
8489 do
8490 # Extract the first word of "$ac_prog", so it can be a program name with args.
8491 set dummy $ac_prog; ac_word=$2
8492 echo "$as_me:$LINENO: checking for $ac_word" >&5
8493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8494 if test "${ac_cv_prog_AWK+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8496 else
8497 if test -n "$AWK"; then
8498 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8499 else
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8502 do
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8507 ac_cv_prog_AWK="$ac_prog"
8508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8510 fi
8511 done
8512 done
8513
8514 fi
8515 fi
8516 AWK=$ac_cv_prog_AWK
8517 if test -n "$AWK"; then
8518 echo "$as_me:$LINENO: result: $AWK" >&5
8519 echo "${ECHO_T}$AWK" >&6
8520 else
8521 echo "$as_me:$LINENO: result: no" >&5
8522 echo "${ECHO_T}no" >&6
8523 fi
8524
8525 test -n "$AWK" && break
8526 done
8527
8528 # Find a good install program. We prefer a C program (faster),
8529 # so one script is as good as another. But avoid the broken or
8530 # incompatible versions:
8531 # SysV /etc/install, /usr/sbin/install
8532 # SunOS /usr/etc/install
8533 # IRIX /sbin/install
8534 # AIX /bin/install
8535 # AmigaOS /C/install, which installs bootblocks on floppy discs
8536 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8537 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8538 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8539 # OS/2's system install, which has a completely different semantic
8540 # ./install, which can be erroneously created by make from ./install.sh.
8541 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8542 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8543 if test -z "$INSTALL"; then
8544 if test "${ac_cv_path_install+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8549 do
8550 IFS=$as_save_IFS
8551 test -z "$as_dir" && as_dir=.
8552 # Account for people who put trailing slashes in PATH elements.
8553 case $as_dir/ in
8554 ./ | .// | /cC/* | \
8555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8556 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8557 /usr/ucb/* ) ;;
8558 *)
8559 # OSF1 and SCO ODT 3.0 have their own names for install.
8560 # Don't use installbsd from OSF since it installs stuff as root
8561 # by default.
8562 for ac_prog in ginstall scoinst install; do
8563 for ac_exec_ext in '' $ac_executable_extensions; do
8564 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8565 if test $ac_prog = install &&
8566 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8567 # AIX install. It has an incompatible calling convention.
8568 :
8569 elif test $ac_prog = install &&
8570 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8571 # program-specific install script used by HP pwplus--don't use.
8572 :
8573 else
8574 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8575 break 3
8576 fi
8577 fi
8578 done
8579 done
8580 ;;
8581 esac
8582 done
8583
8584
8585 fi
8586 if test "${ac_cv_path_install+set}" = set; then
8587 INSTALL=$ac_cv_path_install
8588 else
8589 # As a last resort, use the slow shell script. We don't cache a
8590 # path for INSTALL within a source directory, because that will
8591 # break other packages using the cache if that directory is
8592 # removed, or if the path is relative.
8593 INSTALL=$ac_install_sh
8594 fi
8595 fi
8596 echo "$as_me:$LINENO: result: $INSTALL" >&5
8597 echo "${ECHO_T}$INSTALL" >&6
8598
8599 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8600 # It thinks the first close brace ends the variable substitution.
8601 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8602
8603 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8604
8605 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8606
8607 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8608 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8609 LN_S=$as_ln_s
8610 if test "$LN_S" = "ln -s"; then
8611 echo "$as_me:$LINENO: result: yes" >&5
8612 echo "${ECHO_T}yes" >&6
8613 else
8614 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8615 echo "${ECHO_T}no, using $LN_S" >&6
8616 fi
8617
8618 if test -n "$ac_tool_prefix"; then
8619 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8620 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8621 echo "$as_me:$LINENO: checking for $ac_word" >&5
8622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8623 if test "${ac_cv_prog_RANLIB+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 else
8626 if test -n "$RANLIB"; then
8627 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8628 else
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 for as_dir in $PATH
8631 do
8632 IFS=$as_save_IFS
8633 test -z "$as_dir" && as_dir=.
8634 for ac_exec_ext in '' $ac_executable_extensions; do
8635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8636 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8638 break 2
8639 fi
8640 done
8641 done
8642
8643 fi
8644 fi
8645 RANLIB=$ac_cv_prog_RANLIB
8646 if test -n "$RANLIB"; then
8647 echo "$as_me:$LINENO: result: $RANLIB" >&5
8648 echo "${ECHO_T}$RANLIB" >&6
8649 else
8650 echo "$as_me:$LINENO: result: no" >&5
8651 echo "${ECHO_T}no" >&6
8652 fi
8653
8654 fi
8655 if test -z "$ac_cv_prog_RANLIB"; then
8656 ac_ct_RANLIB=$RANLIB
8657 # Extract the first word of "ranlib", so it can be a program name with args.
8658 set dummy ranlib; ac_word=$2
8659 echo "$as_me:$LINENO: checking for $ac_word" >&5
8660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8661 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664 if test -n "$ac_ct_RANLIB"; then
8665 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8666 else
8667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 for as_dir in $PATH
8669 do
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
8672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8674 ac_cv_prog_ac_ct_RANLIB="ranlib"
8675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 break 2
8677 fi
8678 done
8679 done
8680
8681 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8682 fi
8683 fi
8684 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8685 if test -n "$ac_ct_RANLIB"; then
8686 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8687 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8688 else
8689 echo "$as_me:$LINENO: result: no" >&5
8690 echo "${ECHO_T}no" >&6
8691 fi
8692
8693 RANLIB=$ac_ct_RANLIB
8694 else
8695 RANLIB="$ac_cv_prog_RANLIB"
8696 fi
8697
8698 for ac_prog in 'bison -y' byacc
8699 do
8700 # Extract the first word of "$ac_prog", so it can be a program name with args.
8701 set dummy $ac_prog; ac_word=$2
8702 echo "$as_me:$LINENO: checking for $ac_word" >&5
8703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8704 if test "${ac_cv_prog_YACC+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707 if test -n "$YACC"; then
8708 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8709 else
8710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8711 for as_dir in $PATH
8712 do
8713 IFS=$as_save_IFS
8714 test -z "$as_dir" && as_dir=.
8715 for ac_exec_ext in '' $ac_executable_extensions; do
8716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8717 ac_cv_prog_YACC="$ac_prog"
8718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8719 break 2
8720 fi
8721 done
8722 done
8723
8724 fi
8725 fi
8726 YACC=$ac_cv_prog_YACC
8727 if test -n "$YACC"; then
8728 echo "$as_me:$LINENO: result: $YACC" >&5
8729 echo "${ECHO_T}$YACC" >&6
8730 else
8731 echo "$as_me:$LINENO: result: no" >&5
8732 echo "${ECHO_T}no" >&6
8733 fi
8734
8735 test -n "$YACC" && break
8736 done
8737 test -n "$YACC" || YACC="yacc"
8738
8739
8740 if test -n "$ac_tool_prefix"; then
8741 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8742 set dummy ${ac_tool_prefix}ar; ac_word=$2
8743 echo "$as_me:$LINENO: checking for $ac_word" >&5
8744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8745 if test "${ac_cv_prog_AR+set}" = set; then
8746 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748 if test -n "$AR"; then
8749 ac_cv_prog_AR="$AR" # Let the user override the test.
8750 else
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 for as_dir in $PATH
8753 do
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8758 ac_cv_prog_AR="${ac_tool_prefix}ar"
8759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8760 break 2
8761 fi
8762 done
8763 done
8764
8765 fi
8766 fi
8767 AR=$ac_cv_prog_AR
8768 if test -n "$AR"; then
8769 echo "$as_me:$LINENO: result: $AR" >&5
8770 echo "${ECHO_T}$AR" >&6
8771 else
8772 echo "$as_me:$LINENO: result: no" >&5
8773 echo "${ECHO_T}no" >&6
8774 fi
8775
8776 fi
8777 if test -z "$ac_cv_prog_AR"; then
8778 ac_ct_AR=$AR
8779 # Extract the first word of "ar", so it can be a program name with args.
8780 set dummy ar; ac_word=$2
8781 echo "$as_me:$LINENO: checking for $ac_word" >&5
8782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8783 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786 if test -n "$ac_ct_AR"; then
8787 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8788 else
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8791 do
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796 ac_cv_prog_ac_ct_AR="ar"
8797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 break 2
8799 fi
8800 done
8801 done
8802
8803 fi
8804 fi
8805 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8806 if test -n "$ac_ct_AR"; then
8807 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8808 echo "${ECHO_T}$ac_ct_AR" >&6
8809 else
8810 echo "$as_me:$LINENO: result: no" >&5
8811 echo "${ECHO_T}no" >&6
8812 fi
8813
8814 AR=$ac_ct_AR
8815 else
8816 AR="$ac_cv_prog_AR"
8817 fi
8818
8819 if test -n "$ac_tool_prefix"; then
8820 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8821 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8822 echo "$as_me:$LINENO: checking for $ac_word" >&5
8823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8824 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827 if test -n "$DLLTOOL"; then
8828 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8829 else
8830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831 for as_dir in $PATH
8832 do
8833 IFS=$as_save_IFS
8834 test -z "$as_dir" && as_dir=.
8835 for ac_exec_ext in '' $ac_executable_extensions; do
8836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8837 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8839 break 2
8840 fi
8841 done
8842 done
8843
8844 fi
8845 fi
8846 DLLTOOL=$ac_cv_prog_DLLTOOL
8847 if test -n "$DLLTOOL"; then
8848 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8849 echo "${ECHO_T}$DLLTOOL" >&6
8850 else
8851 echo "$as_me:$LINENO: result: no" >&5
8852 echo "${ECHO_T}no" >&6
8853 fi
8854
8855 fi
8856 if test -z "$ac_cv_prog_DLLTOOL"; then
8857 ac_ct_DLLTOOL=$DLLTOOL
8858 # Extract the first word of "dlltool", so it can be a program name with args.
8859 set dummy dlltool; ac_word=$2
8860 echo "$as_me:$LINENO: checking for $ac_word" >&5
8861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8862 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 else
8865 if test -n "$ac_ct_DLLTOOL"; then
8866 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8867 else
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 for as_dir in $PATH
8870 do
8871 IFS=$as_save_IFS
8872 test -z "$as_dir" && as_dir=.
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8875 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8877 break 2
8878 fi
8879 done
8880 done
8881
8882 fi
8883 fi
8884 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8885 if test -n "$ac_ct_DLLTOOL"; then
8886 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8887 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8888 else
8889 echo "$as_me:$LINENO: result: no" >&5
8890 echo "${ECHO_T}no" >&6
8891 fi
8892
8893 DLLTOOL=$ac_ct_DLLTOOL
8894 else
8895 DLLTOOL="$ac_cv_prog_DLLTOOL"
8896 fi
8897
8898 if test -n "$ac_tool_prefix"; then
8899 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8900 set dummy ${ac_tool_prefix}windres; ac_word=$2
8901 echo "$as_me:$LINENO: checking for $ac_word" >&5
8902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8903 if test "${ac_cv_prog_WINDRES+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906 if test -n "$WINDRES"; then
8907 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8908 else
8909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8910 for as_dir in $PATH
8911 do
8912 IFS=$as_save_IFS
8913 test -z "$as_dir" && as_dir=.
8914 for ac_exec_ext in '' $ac_executable_extensions; do
8915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8916 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8918 break 2
8919 fi
8920 done
8921 done
8922
8923 fi
8924 fi
8925 WINDRES=$ac_cv_prog_WINDRES
8926 if test -n "$WINDRES"; then
8927 echo "$as_me:$LINENO: result: $WINDRES" >&5
8928 echo "${ECHO_T}$WINDRES" >&6
8929 else
8930 echo "$as_me:$LINENO: result: no" >&5
8931 echo "${ECHO_T}no" >&6
8932 fi
8933
8934 fi
8935 if test -z "$ac_cv_prog_WINDRES"; then
8936 ac_ct_WINDRES=$WINDRES
8937 # Extract the first word of "windres", so it can be a program name with args.
8938 set dummy windres; ac_word=$2
8939 echo "$as_me:$LINENO: checking for $ac_word" >&5
8940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8941 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944 if test -n "$ac_ct_WINDRES"; then
8945 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8946 else
8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948 for as_dir in $PATH
8949 do
8950 IFS=$as_save_IFS
8951 test -z "$as_dir" && as_dir=.
8952 for ac_exec_ext in '' $ac_executable_extensions; do
8953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8954 ac_cv_prog_ac_ct_WINDRES="windres"
8955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8956 break 2
8957 fi
8958 done
8959 done
8960
8961 fi
8962 fi
8963 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8964 if test -n "$ac_ct_WINDRES"; then
8965 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
8966 echo "${ECHO_T}$ac_ct_WINDRES" >&6
8967 else
8968 echo "$as_me:$LINENO: result: no" >&5
8969 echo "${ECHO_T}no" >&6
8970 fi
8971
8972 WINDRES=$ac_ct_WINDRES
8973 else
8974 WINDRES="$ac_cv_prog_WINDRES"
8975 fi
8976
8977
8978 # Needed for GNU/Hurd.
8979 if test -n "$ac_tool_prefix"; then
8980 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8981 set dummy ${ac_tool_prefix}mig; ac_word=$2
8982 echo "$as_me:$LINENO: checking for $ac_word" >&5
8983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8984 if test "${ac_cv_prog_MIG+set}" = set; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 else
8987 if test -n "$MIG"; then
8988 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8989 else
8990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8991 for as_dir in $PATH
8992 do
8993 IFS=$as_save_IFS
8994 test -z "$as_dir" && as_dir=.
8995 for ac_exec_ext in '' $ac_executable_extensions; do
8996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8997 ac_cv_prog_MIG="${ac_tool_prefix}mig"
8998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8999 break 2
9000 fi
9001 done
9002 done
9003
9004 fi
9005 fi
9006 MIG=$ac_cv_prog_MIG
9007 if test -n "$MIG"; then
9008 echo "$as_me:$LINENO: result: $MIG" >&5
9009 echo "${ECHO_T}$MIG" >&6
9010 else
9011 echo "$as_me:$LINENO: result: no" >&5
9012 echo "${ECHO_T}no" >&6
9013 fi
9014
9015 fi
9016 if test -z "$ac_cv_prog_MIG"; then
9017 ac_ct_MIG=$MIG
9018 # Extract the first word of "mig", so it can be a program name with args.
9019 set dummy mig; ac_word=$2
9020 echo "$as_me:$LINENO: checking for $ac_word" >&5
9021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9022 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025 if test -n "$ac_ct_MIG"; then
9026 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9027 else
9028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029 for as_dir in $PATH
9030 do
9031 IFS=$as_save_IFS
9032 test -z "$as_dir" && as_dir=.
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9035 ac_cv_prog_ac_ct_MIG="mig"
9036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9037 break 2
9038 fi
9039 done
9040 done
9041
9042 fi
9043 fi
9044 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9045 if test -n "$ac_ct_MIG"; then
9046 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9047 echo "${ECHO_T}$ac_ct_MIG" >&6
9048 else
9049 echo "$as_me:$LINENO: result: no" >&5
9050 echo "${ECHO_T}no" >&6
9051 fi
9052
9053 MIG=$ac_ct_MIG
9054 else
9055 MIG="$ac_cv_prog_MIG"
9056 fi
9057
9058
9059 # ---------------------- #
9060 # Checks for libraries. #
9061 # ---------------------- #
9062
9063 # We might need to link with -lm; most simulators need it.
9064
9065 echo "$as_me:$LINENO: checking for main in -lm" >&5
9066 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9067 if test "${ac_cv_lib_m_main+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9069 else
9070 ac_check_lib_save_LIBS=$LIBS
9071 LIBS="-lm $LIBS"
9072 cat >conftest.$ac_ext <<_ACEOF
9073 /* confdefs.h. */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9078
9079
9080 int
9081 main ()
9082 {
9083 main ();
9084 ;
9085 return 0;
9086 }
9087 _ACEOF
9088 rm -f conftest.$ac_objext conftest$ac_exeext
9089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9090 (eval $ac_link) 2>conftest.er1
9091 ac_status=$?
9092 grep -v '^ *+' conftest.er1 >conftest.err
9093 rm -f conftest.er1
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -z "$ac_c_werror_flag"
9098 || test ! -s conftest.err'
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 (eval $ac_try) 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; } &&
9104 { ac_try='test -s conftest$ac_exeext'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 (eval $ac_try) 2>&5
9107 ac_status=$?
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
9110 ac_cv_lib_m_main=yes
9111 else
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9114
9115 ac_cv_lib_m_main=no
9116 fi
9117 rm -f conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9119 LIBS=$ac_check_lib_save_LIBS
9120 fi
9121 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9122 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9123 if test $ac_cv_lib_m_main = yes; then
9124 cat >>confdefs.h <<_ACEOF
9125 #define HAVE_LIBM 1
9126 _ACEOF
9127
9128 LIBS="-lm $LIBS"
9129
9130 fi
9131
9132
9133 # We need to link with -lw to get `wctype' on Solaris before Solaris
9134 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9135 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9136 # is known to have this problem). Therefore we avoid libw if we can.
9137 echo "$as_me:$LINENO: checking for wctype" >&5
9138 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9139 if test "${ac_cv_func_wctype+set}" = set; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
9141 else
9142 cat >conftest.$ac_ext <<_ACEOF
9143 /* confdefs.h. */
9144 _ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h. */
9148 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9150 #define wctype innocuous_wctype
9151
9152 /* System header to define __stub macros and hopefully few prototypes,
9153 which can conflict with char wctype (); below.
9154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9155 <limits.h> exists even on freestanding compilers. */
9156
9157 #ifdef __STDC__
9158 # include <limits.h>
9159 #else
9160 # include <assert.h>
9161 #endif
9162
9163 #undef wctype
9164
9165 /* Override any gcc2 internal prototype to avoid an error. */
9166 #ifdef __cplusplus
9167 extern "C"
9168 {
9169 #endif
9170 /* We use char because int might match the return type of a gcc2
9171 builtin and then its argument prototype would still apply. */
9172 char wctype ();
9173 /* The GNU C library defines this for functions which it implements
9174 to always fail with ENOSYS. Some functions are actually named
9175 something starting with __ and the normal name is an alias. */
9176 #if defined (__stub_wctype) || defined (__stub___wctype)
9177 choke me
9178 #else
9179 char (*f) () = wctype;
9180 #endif
9181 #ifdef __cplusplus
9182 }
9183 #endif
9184
9185 int
9186 main ()
9187 {
9188 return f != wctype;
9189 ;
9190 return 0;
9191 }
9192 _ACEOF
9193 rm -f conftest.$ac_objext conftest$ac_exeext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195 (eval $ac_link) 2>conftest.er1
9196 ac_status=$?
9197 grep -v '^ *+' conftest.er1 >conftest.err
9198 rm -f conftest.er1
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -z "$ac_c_werror_flag"
9203 || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest$ac_exeext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 ac_cv_func_wctype=yes
9216 else
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9219
9220 ac_cv_func_wctype=no
9221 fi
9222 rm -f conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
9224 fi
9225 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9226 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9227 if test $ac_cv_func_wctype = yes; then
9228 :
9229 else
9230
9231 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9232 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9233 if test "${ac_cv_lib_w_wctype+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236 ac_check_lib_save_LIBS=$LIBS
9237 LIBS="-lw $LIBS"
9238 cat >conftest.$ac_ext <<_ACEOF
9239 /* confdefs.h. */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244
9245 /* Override any gcc2 internal prototype to avoid an error. */
9246 #ifdef __cplusplus
9247 extern "C"
9248 #endif
9249 /* We use char because int might match the return type of a gcc2
9250 builtin and then its argument prototype would still apply. */
9251 char wctype ();
9252 int
9253 main ()
9254 {
9255 wctype ();
9256 ;
9257 return 0;
9258 }
9259 _ACEOF
9260 rm -f conftest.$ac_objext conftest$ac_exeext
9261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9262 (eval $ac_link) 2>conftest.er1
9263 ac_status=$?
9264 grep -v '^ *+' conftest.er1 >conftest.err
9265 rm -f conftest.er1
9266 cat conftest.err >&5
9267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268 (exit $ac_status); } &&
9269 { ac_try='test -z "$ac_c_werror_flag"
9270 || test ! -s conftest.err'
9271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272 (eval $ac_try) 2>&5
9273 ac_status=$?
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 (exit $ac_status); }; } &&
9276 { ac_try='test -s conftest$ac_exeext'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; }; then
9282 ac_cv_lib_w_wctype=yes
9283 else
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9286
9287 ac_cv_lib_w_wctype=no
9288 fi
9289 rm -f conftest.err conftest.$ac_objext \
9290 conftest$ac_exeext conftest.$ac_ext
9291 LIBS=$ac_check_lib_save_LIBS
9292 fi
9293 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9294 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9295 if test $ac_cv_lib_w_wctype = yes; then
9296 cat >>confdefs.h <<_ACEOF
9297 #define HAVE_LIBW 1
9298 _ACEOF
9299
9300 LIBS="-lw $LIBS"
9301
9302 fi
9303
9304 fi
9305
9306
9307 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9308 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9309 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9310 if test "${ac_cv_search_gethostbyname+set}" = set; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 else
9313 ac_func_search_save_LIBS=$LIBS
9314 ac_cv_search_gethostbyname=no
9315 cat >conftest.$ac_ext <<_ACEOF
9316 /* confdefs.h. */
9317 _ACEOF
9318 cat confdefs.h >>conftest.$ac_ext
9319 cat >>conftest.$ac_ext <<_ACEOF
9320 /* end confdefs.h. */
9321
9322 /* Override any gcc2 internal prototype to avoid an error. */
9323 #ifdef __cplusplus
9324 extern "C"
9325 #endif
9326 /* We use char because int might match the return type of a gcc2
9327 builtin and then its argument prototype would still apply. */
9328 char gethostbyname ();
9329 int
9330 main ()
9331 {
9332 gethostbyname ();
9333 ;
9334 return 0;
9335 }
9336 _ACEOF
9337 rm -f conftest.$ac_objext conftest$ac_exeext
9338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9339 (eval $ac_link) 2>conftest.er1
9340 ac_status=$?
9341 grep -v '^ *+' conftest.er1 >conftest.err
9342 rm -f conftest.er1
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } &&
9346 { ac_try='test -z "$ac_c_werror_flag"
9347 || test ! -s conftest.err'
9348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9349 (eval $ac_try) 2>&5
9350 ac_status=$?
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); }; } &&
9353 { ac_try='test -s conftest$ac_exeext'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355 (eval $ac_try) 2>&5
9356 ac_status=$?
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; }; then
9359 ac_cv_search_gethostbyname="none required"
9360 else
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364 fi
9365 rm -f conftest.err conftest.$ac_objext \
9366 conftest$ac_exeext conftest.$ac_ext
9367 if test "$ac_cv_search_gethostbyname" = no; then
9368 for ac_lib in nsl; do
9369 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9370 cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h. */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9376
9377 /* Override any gcc2 internal prototype to avoid an error. */
9378 #ifdef __cplusplus
9379 extern "C"
9380 #endif
9381 /* We use char because int might match the return type of a gcc2
9382 builtin and then its argument prototype would still apply. */
9383 char gethostbyname ();
9384 int
9385 main ()
9386 {
9387 gethostbyname ();
9388 ;
9389 return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9394 (eval $ac_link) 2>conftest.er1
9395 ac_status=$?
9396 grep -v '^ *+' conftest.er1 >conftest.err
9397 rm -f conftest.er1
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } &&
9401 { ac_try='test -z "$ac_c_werror_flag"
9402 || test ! -s conftest.err'
9403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9404 (eval $ac_try) 2>&5
9405 ac_status=$?
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); }; } &&
9408 { ac_try='test -s conftest$ac_exeext'
9409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9410 (eval $ac_try) 2>&5
9411 ac_status=$?
9412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9413 (exit $ac_status); }; }; then
9414 ac_cv_search_gethostbyname="-l$ac_lib"
9415 break
9416 else
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9419
9420 fi
9421 rm -f conftest.err conftest.$ac_objext \
9422 conftest$ac_exeext conftest.$ac_ext
9423 done
9424 fi
9425 LIBS=$ac_func_search_save_LIBS
9426 fi
9427 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9428 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9429 if test "$ac_cv_search_gethostbyname" != no; then
9430 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9431
9432 fi
9433
9434
9435 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9436 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9437 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9438 if test "${ac_cv_search_socketpair+set}" = set; then
9439 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 else
9441 ac_func_search_save_LIBS=$LIBS
9442 ac_cv_search_socketpair=no
9443 cat >conftest.$ac_ext <<_ACEOF
9444 /* confdefs.h. */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449
9450 /* Override any gcc2 internal prototype to avoid an error. */
9451 #ifdef __cplusplus
9452 extern "C"
9453 #endif
9454 /* We use char because int might match the return type of a gcc2
9455 builtin and then its argument prototype would still apply. */
9456 char socketpair ();
9457 int
9458 main ()
9459 {
9460 socketpair ();
9461 ;
9462 return 0;
9463 }
9464 _ACEOF
9465 rm -f conftest.$ac_objext conftest$ac_exeext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467 (eval $ac_link) 2>conftest.er1
9468 ac_status=$?
9469 grep -v '^ *+' conftest.er1 >conftest.err
9470 rm -f conftest.er1
9471 cat conftest.err >&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); } &&
9474 { ac_try='test -z "$ac_c_werror_flag"
9475 || test ! -s conftest.err'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 (eval $ac_try) 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; } &&
9481 { ac_try='test -s conftest$ac_exeext'
9482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483 (eval $ac_try) 2>&5
9484 ac_status=$?
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9487 ac_cv_search_socketpair="none required"
9488 else
9489 echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9491
9492 fi
9493 rm -f conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495 if test "$ac_cv_search_socketpair" = no; then
9496 for ac_lib in socket; do
9497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h. */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504
9505 /* Override any gcc2 internal prototype to avoid an error. */
9506 #ifdef __cplusplus
9507 extern "C"
9508 #endif
9509 /* We use char because int might match the return type of a gcc2
9510 builtin and then its argument prototype would still apply. */
9511 char socketpair ();
9512 int
9513 main ()
9514 {
9515 socketpair ();
9516 ;
9517 return 0;
9518 }
9519 _ACEOF
9520 rm -f conftest.$ac_objext conftest$ac_exeext
9521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9522 (eval $ac_link) 2>conftest.er1
9523 ac_status=$?
9524 grep -v '^ *+' conftest.er1 >conftest.err
9525 rm -f conftest.er1
9526 cat conftest.err >&5
9527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } &&
9529 { ac_try='test -z "$ac_c_werror_flag"
9530 || test ! -s conftest.err'
9531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532 (eval $ac_try) 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; } &&
9536 { ac_try='test -s conftest$ac_exeext'
9537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538 (eval $ac_try) 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9542 ac_cv_search_socketpair="-l$ac_lib"
9543 break
9544 else
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9547
9548 fi
9549 rm -f conftest.err conftest.$ac_objext \
9550 conftest$ac_exeext conftest.$ac_ext
9551 done
9552 fi
9553 LIBS=$ac_func_search_save_LIBS
9554 fi
9555 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9556 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9557 if test "$ac_cv_search_socketpair" != no; then
9558 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9559
9560 fi
9561
9562
9563 # Link in zlib if we can. This allows us to read compressed debug sections.
9564 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9565 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9566 if test "${ac_cv_search_zlibVersion+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569 ac_func_search_save_LIBS=$LIBS
9570 ac_cv_search_zlibVersion=no
9571 cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h. */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9577
9578 /* Override any gcc2 internal prototype to avoid an error. */
9579 #ifdef __cplusplus
9580 extern "C"
9581 #endif
9582 /* We use char because int might match the return type of a gcc2
9583 builtin and then its argument prototype would still apply. */
9584 char zlibVersion ();
9585 int
9586 main ()
9587 {
9588 zlibVersion ();
9589 ;
9590 return 0;
9591 }
9592 _ACEOF
9593 rm -f conftest.$ac_objext conftest$ac_exeext
9594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9595 (eval $ac_link) 2>conftest.er1
9596 ac_status=$?
9597 grep -v '^ *+' conftest.er1 >conftest.err
9598 rm -f conftest.er1
9599 cat conftest.err >&5
9600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } &&
9602 { ac_try='test -z "$ac_c_werror_flag"
9603 || test ! -s conftest.err'
9604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 (eval $ac_try) 2>&5
9606 ac_status=$?
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); }; } &&
9609 { ac_try='test -s conftest$ac_exeext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9611 (eval $ac_try) 2>&5
9612 ac_status=$?
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_cv_search_zlibVersion="none required"
9616 else
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9619
9620 fi
9621 rm -f conftest.err conftest.$ac_objext \
9622 conftest$ac_exeext conftest.$ac_ext
9623 if test "$ac_cv_search_zlibVersion" = no; then
9624 for ac_lib in z; do
9625 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9626 cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h. */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9632
9633 /* Override any gcc2 internal prototype to avoid an error. */
9634 #ifdef __cplusplus
9635 extern "C"
9636 #endif
9637 /* We use char because int might match the return type of a gcc2
9638 builtin and then its argument prototype would still apply. */
9639 char zlibVersion ();
9640 int
9641 main ()
9642 {
9643 zlibVersion ();
9644 ;
9645 return 0;
9646 }
9647 _ACEOF
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9650 (eval $ac_link) 2>conftest.er1
9651 ac_status=$?
9652 grep -v '^ *+' conftest.er1 >conftest.err
9653 rm -f conftest.er1
9654 cat conftest.err >&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 { ac_try='test -z "$ac_c_werror_flag"
9658 || test ! -s conftest.err'
9659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 (eval $ac_try) 2>&5
9661 ac_status=$?
9662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663 (exit $ac_status); }; } &&
9664 { ac_try='test -s conftest$ac_exeext'
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 (eval $ac_try) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_cv_search_zlibVersion="-l$ac_lib"
9671 break
9672 else
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9675
9676 fi
9677 rm -f conftest.err conftest.$ac_objext \
9678 conftest$ac_exeext conftest.$ac_ext
9679 done
9680 fi
9681 LIBS=$ac_func_search_save_LIBS
9682 fi
9683 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9684 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9685 if test "$ac_cv_search_zlibVersion" != no; then
9686 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9687
9688 for ac_header in zlib.h
9689 do
9690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9691 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9692 echo "$as_me:$LINENO: checking for $ac_header" >&5
9693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 fi
9697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9699 else
9700 # Is the header compilable?
9701 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9702 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h. */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
9708 /* end confdefs.h. */
9709 $ac_includes_default
9710 #include <$ac_header>
9711 _ACEOF
9712 rm -f conftest.$ac_objext
9713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9714 (eval $ac_compile) 2>conftest.er1
9715 ac_status=$?
9716 grep -v '^ *+' conftest.er1 >conftest.err
9717 rm -f conftest.er1
9718 cat conftest.err >&5
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); } &&
9721 { ac_try='test -z "$ac_c_werror_flag"
9722 || test ! -s conftest.err'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9724 (eval $ac_try) 2>&5
9725 ac_status=$?
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; } &&
9728 { ac_try='test -s conftest.$ac_objext'
9729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730 (eval $ac_try) 2>&5
9731 ac_status=$?
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); }; }; then
9734 ac_header_compiler=yes
9735 else
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9738
9739 ac_header_compiler=no
9740 fi
9741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9742 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9743 echo "${ECHO_T}$ac_header_compiler" >&6
9744
9745 # Is the header present?
9746 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9747 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9748 cat >conftest.$ac_ext <<_ACEOF
9749 /* confdefs.h. */
9750 _ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 #include <$ac_header>
9755 _ACEOF
9756 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9757 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9758 ac_status=$?
9759 grep -v '^ *+' conftest.er1 >conftest.err
9760 rm -f conftest.er1
9761 cat conftest.err >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); } >/dev/null; then
9764 if test -s conftest.err; then
9765 ac_cpp_err=$ac_c_preproc_warn_flag
9766 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9767 else
9768 ac_cpp_err=
9769 fi
9770 else
9771 ac_cpp_err=yes
9772 fi
9773 if test -z "$ac_cpp_err"; then
9774 ac_header_preproc=yes
9775 else
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9778
9779 ac_header_preproc=no
9780 fi
9781 rm -f conftest.err conftest.$ac_ext
9782 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9783 echo "${ECHO_T}$ac_header_preproc" >&6
9784
9785 # So? What about this header?
9786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9787 yes:no: )
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9792 ac_header_preproc=yes
9793 ;;
9794 no:yes:* )
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9807 (
9808 cat <<\_ASBOX
9809 ## ------------------------------------------ ##
9810 ## Report this to the AC_PACKAGE_NAME lists. ##
9811 ## ------------------------------------------ ##
9812 _ASBOX
9813 ) |
9814 sed "s/^/$as_me: WARNING: /" >&2
9815 ;;
9816 esac
9817 echo "$as_me:$LINENO: checking for $ac_header" >&5
9818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9819 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822 eval "$as_ac_Header=\$ac_header_preproc"
9823 fi
9824 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9825 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9826
9827 fi
9828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9829 cat >>confdefs.h <<_ACEOF
9830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9831 _ACEOF
9832
9833 fi
9834
9835 done
9836
9837 fi
9838
9839
9840 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9841 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9842 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9843 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 else
9846 ac_func_search_save_LIBS=$LIBS
9847 ac_cv_search_dlgetmodinfo=no
9848 cat >conftest.$ac_ext <<_ACEOF
9849 /* confdefs.h. */
9850 _ACEOF
9851 cat confdefs.h >>conftest.$ac_ext
9852 cat >>conftest.$ac_ext <<_ACEOF
9853 /* end confdefs.h. */
9854
9855 /* Override any gcc2 internal prototype to avoid an error. */
9856 #ifdef __cplusplus
9857 extern "C"
9858 #endif
9859 /* We use char because int might match the return type of a gcc2
9860 builtin and then its argument prototype would still apply. */
9861 char dlgetmodinfo ();
9862 int
9863 main ()
9864 {
9865 dlgetmodinfo ();
9866 ;
9867 return 0;
9868 }
9869 _ACEOF
9870 rm -f conftest.$ac_objext conftest$ac_exeext
9871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9872 (eval $ac_link) 2>conftest.er1
9873 ac_status=$?
9874 grep -v '^ *+' conftest.er1 >conftest.err
9875 rm -f conftest.er1
9876 cat conftest.err >&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try='test -z "$ac_c_werror_flag"
9880 || test ! -s conftest.err'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 (eval $ac_try) 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; } &&
9886 { ac_try='test -s conftest$ac_exeext'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9888 (eval $ac_try) 2>&5
9889 ac_status=$?
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9892 ac_cv_search_dlgetmodinfo="none required"
9893 else
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897 fi
9898 rm -f conftest.err conftest.$ac_objext \
9899 conftest$ac_exeext conftest.$ac_ext
9900 if test "$ac_cv_search_dlgetmodinfo" = no; then
9901 for ac_lib in dl xpdl; do
9902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9903 cat >conftest.$ac_ext <<_ACEOF
9904 /* confdefs.h. */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909
9910 /* Override any gcc2 internal prototype to avoid an error. */
9911 #ifdef __cplusplus
9912 extern "C"
9913 #endif
9914 /* We use char because int might match the return type of a gcc2
9915 builtin and then its argument prototype would still apply. */
9916 char dlgetmodinfo ();
9917 int
9918 main ()
9919 {
9920 dlgetmodinfo ();
9921 ;
9922 return 0;
9923 }
9924 _ACEOF
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927 (eval $ac_link) 2>conftest.er1
9928 ac_status=$?
9929 grep -v '^ *+' conftest.er1 >conftest.err
9930 rm -f conftest.er1
9931 cat conftest.err >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try='test -z "$ac_c_werror_flag"
9935 || test ! -s conftest.err'
9936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9937 (eval $ac_try) 2>&5
9938 ac_status=$?
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); }; } &&
9941 { ac_try='test -s conftest$ac_exeext'
9942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9943 (eval $ac_try) 2>&5
9944 ac_status=$?
9945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9946 (exit $ac_status); }; }; then
9947 ac_cv_search_dlgetmodinfo="-l$ac_lib"
9948 break
9949 else
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 fi
9954 rm -f conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
9956 done
9957 fi
9958 LIBS=$ac_func_search_save_LIBS
9959 fi
9960 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
9961 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
9962 if test "$ac_cv_search_dlgetmodinfo" != no; then
9963 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
9964
9965 fi
9966
9967
9968 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9969 # There is a very specific comment in /usr/include/curses.h explaining that
9970 # termcap routines built into libcurses must not be used.
9971 #
9972 # The symptoms we observed so far is GDB unexpectedly changing
9973 # the terminal settings when tgetent is called - this is particularly
9974 # visible as the output is missing carriage returns, and so rapidly
9975 # becomes very hard to read.
9976 #
9977 # The readline configure script has already decided that libtermcap
9978 # was enough for its purposes, and so decided to build readline using
9979 # libtermcap. Since the TUI mode requires curses, building GDB with
9980 # TUI enabled results in both libraries to be used at the same time,
9981 # which is not allowed. This basically means that GDB with TUI is
9982 # broken on alpha-osf.
9983
9984 case $host_os in
9985 alpha*-*-osf* )
9986 if "$enable_tui" = "yes"; then
9987 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
9988 echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
9989 { (exit 1); exit 1; }; }
9990 fi
9991 if "$enable_tui" = "auto"; then
9992 enable_tui=no
9993 fi
9994 ;;
9995 esac
9996
9997 # Check whether we should enable the TUI, but only do so if we really
9998 # can.
9999 if test x"$enable_tui" != xno; then
10000 if test -d $srcdir/tui; then
10001 # For the TUI, we need enhanced curses functionality.
10002 #
10003 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10004 # curses library because the latter might not provide all the
10005 # functionality we need. However, this leads to problems on systems
10006 # where the linker searches /usr/local/lib, but the compiler doesn't
10007 # search /usr/local/include, if ncurses is installed in /usr/local. A
10008 # default installation of ncurses on alpha*-dec-osf* will lead to such
10009 # a situation.
10010 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10011 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10012 if test "${ac_cv_search_waddstr+set}" = set; then
10013 echo $ECHO_N "(cached) $ECHO_C" >&6
10014 else
10015 ac_func_search_save_LIBS=$LIBS
10016 ac_cv_search_waddstr=no
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="none required"
10062 else
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10065
10066 fi
10067 rm -f conftest.err conftest.$ac_objext \
10068 conftest$ac_exeext conftest.$ac_ext
10069 if test "$ac_cv_search_waddstr" = no; then
10070 for ac_lib in ncurses cursesX curses; do
10071 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10072 cat >conftest.$ac_ext <<_ACEOF
10073 /* confdefs.h. */
10074 _ACEOF
10075 cat confdefs.h >>conftest.$ac_ext
10076 cat >>conftest.$ac_ext <<_ACEOF
10077 /* end confdefs.h. */
10078
10079 /* Override any gcc2 internal prototype to avoid an error. */
10080 #ifdef __cplusplus
10081 extern "C"
10082 #endif
10083 /* We use char because int might match the return type of a gcc2
10084 builtin and then its argument prototype would still apply. */
10085 char waddstr ();
10086 int
10087 main ()
10088 {
10089 waddstr ();
10090 ;
10091 return 0;
10092 }
10093 _ACEOF
10094 rm -f conftest.$ac_objext conftest$ac_exeext
10095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10096 (eval $ac_link) 2>conftest.er1
10097 ac_status=$?
10098 grep -v '^ *+' conftest.er1 >conftest.err
10099 rm -f conftest.er1
10100 cat conftest.err >&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } &&
10103 { ac_try='test -z "$ac_c_werror_flag"
10104 || test ! -s conftest.err'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10107 ac_status=$?
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; } &&
10110 { ac_try='test -s conftest$ac_exeext'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10113 ac_status=$?
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; }; then
10116 ac_cv_search_waddstr="-l$ac_lib"
10117 break
10118 else
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10121
10122 fi
10123 rm -f conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10125 done
10126 fi
10127 LIBS=$ac_func_search_save_LIBS
10128 fi
10129 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10130 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10131 if test "$ac_cv_search_waddstr" != no; then
10132 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10133
10134 fi
10135
10136
10137 if test "$ac_cv_search_waddstr" != no; then
10138 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10139 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10140 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10141 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10142 CONFIG_ALL="${CONFIG_ALL} all-tui"
10143 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
10144 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
10145 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
10146 else
10147 if test x"$enable_tui" = xyes; then
10148 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10149 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10150 { (exit 1); exit 1; }; }
10151 else
10152 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10153 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10154 fi
10155 fi
10156 fi
10157 fi
10158
10159 # Since GDB uses Readline, we need termcap functionality. In many
10160 # cases this will be provided by the curses library, but some systems
10161 # have a seperate termcap library, or no curses library at all.
10162
10163 case $host_os in
10164 cygwin*)
10165 if test -d $srcdir/libtermcap; then
10166 LIBS="../libtermcap/libtermcap.a $LIBS"
10167 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10168 fi ;;
10169 go32* | *djgpp*)
10170 ac_cv_search_tgetent="none required"
10171 ;;
10172 *mingw32*)
10173 ac_cv_search_tgetent="none required"
10174 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
10175 ;;
10176 esac
10177
10178 # These are the libraries checked by Readline.
10179 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10180 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10181 if test "${ac_cv_search_tgetent+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 else
10184 ac_func_search_save_LIBS=$LIBS
10185 ac_cv_search_tgetent=no
10186 cat >conftest.$ac_ext <<_ACEOF
10187 /* confdefs.h. */
10188 _ACEOF
10189 cat confdefs.h >>conftest.$ac_ext
10190 cat >>conftest.$ac_ext <<_ACEOF
10191 /* end confdefs.h. */
10192
10193 /* Override any gcc2 internal prototype to avoid an error. */
10194 #ifdef __cplusplus
10195 extern "C"
10196 #endif
10197 /* We use char because int might match the return type of a gcc2
10198 builtin and then its argument prototype would still apply. */
10199 char tgetent ();
10200 int
10201 main ()
10202 {
10203 tgetent ();
10204 ;
10205 return 0;
10206 }
10207 _ACEOF
10208 rm -f conftest.$ac_objext conftest$ac_exeext
10209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210 (eval $ac_link) 2>conftest.er1
10211 ac_status=$?
10212 grep -v '^ *+' conftest.er1 >conftest.err
10213 rm -f conftest.er1
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } &&
10217 { ac_try='test -z "$ac_c_werror_flag"
10218 || test ! -s conftest.err'
10219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10220 (eval $ac_try) 2>&5
10221 ac_status=$?
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 (exit $ac_status); }; } &&
10224 { ac_try='test -s conftest$ac_exeext'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_cv_search_tgetent="none required"
10231 else
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10234
10235 fi
10236 rm -f conftest.err conftest.$ac_objext \
10237 conftest$ac_exeext conftest.$ac_ext
10238 if test "$ac_cv_search_tgetent" = no; then
10239 for ac_lib in termcap tinfo curses ncurses; do
10240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10241 cat >conftest.$ac_ext <<_ACEOF
10242 /* confdefs.h. */
10243 _ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10247
10248 /* Override any gcc2 internal prototype to avoid an error. */
10249 #ifdef __cplusplus
10250 extern "C"
10251 #endif
10252 /* We use char because int might match the return type of a gcc2
10253 builtin and then its argument prototype would still apply. */
10254 char tgetent ();
10255 int
10256 main ()
10257 {
10258 tgetent ();
10259 ;
10260 return 0;
10261 }
10262 _ACEOF
10263 rm -f conftest.$ac_objext conftest$ac_exeext
10264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10265 (eval $ac_link) 2>conftest.er1
10266 ac_status=$?
10267 grep -v '^ *+' conftest.er1 >conftest.err
10268 rm -f conftest.er1
10269 cat conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } &&
10272 { ac_try='test -z "$ac_c_werror_flag"
10273 || test ! -s conftest.err'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10276 ac_status=$?
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; } &&
10279 { ac_try='test -s conftest$ac_exeext'
10280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10281 (eval $ac_try) 2>&5
10282 ac_status=$?
10283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10284 (exit $ac_status); }; }; then
10285 ac_cv_search_tgetent="-l$ac_lib"
10286 break
10287 else
10288 echo "$as_me: failed program was:" >&5
10289 sed 's/^/| /' conftest.$ac_ext >&5
10290
10291 fi
10292 rm -f conftest.err conftest.$ac_objext \
10293 conftest$ac_exeext conftest.$ac_ext
10294 done
10295 fi
10296 LIBS=$ac_func_search_save_LIBS
10297 fi
10298 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10299 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10300 if test "$ac_cv_search_tgetent" != no; then
10301 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10302
10303 fi
10304
10305
10306 if test "$ac_cv_search_tgetent" = no; then
10307 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10308 echo "$as_me: error: no termcap library found" >&2;}
10309 { (exit 1); exit 1; }; }
10310 fi
10311
10312
10313 # Check whether --with-system-readline or --without-system-readline was given.
10314 if test "${with_system_readline+set}" = set; then
10315 withval="$with_system_readline"
10316
10317 fi;
10318
10319 if test "$with_system_readline" = yes; then
10320 READLINE=-lreadline
10321 READLINE_DEPS=
10322 READLINE_CFLAGS=
10323 else
10324 READLINE='$(READLINE_DIR)/libreadline.a'
10325 READLINE_DEPS='$(READLINE)'
10326 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10327 fi
10328
10329
10330
10331
10332
10333 # Check whether --with-expat or --without-expat was given.
10334 if test "${with_expat+set}" = set; then
10335 withval="$with_expat"
10336
10337 else
10338 with_expat=auto
10339 fi;
10340 echo "$as_me:$LINENO: checking whether to use expat" >&5
10341 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10342 echo "$as_me:$LINENO: result: $with_expat" >&5
10343 echo "${ECHO_T}$with_expat" >&6
10344
10345 if test "${with_expat}" = no; then
10346 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10347 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10348 HAVE_LIBEXPAT=no
10349 else
10350
10351 if test "X$prefix" = "XNONE"; then
10352 acl_final_prefix="$ac_default_prefix"
10353 else
10354 acl_final_prefix="$prefix"
10355 fi
10356 if test "X$exec_prefix" = "XNONE"; then
10357 acl_final_exec_prefix='${prefix}'
10358 else
10359 acl_final_exec_prefix="$exec_prefix"
10360 fi
10361 acl_save_prefix="$prefix"
10362 prefix="$acl_final_prefix"
10363 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10364 prefix="$acl_save_prefix"
10365
10366
10367 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10368 if test "${with_gnu_ld+set}" = set; then
10369 withval="$with_gnu_ld"
10370 test "$withval" = no || with_gnu_ld=yes
10371 else
10372 with_gnu_ld=no
10373 fi;
10374 # Prepare PATH_SEPARATOR.
10375 # The user is always right.
10376 if test "${PATH_SEPARATOR+set}" != set; then
10377 echo "#! /bin/sh" >conf$$.sh
10378 echo "exit 0" >>conf$$.sh
10379 chmod +x conf$$.sh
10380 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10381 PATH_SEPARATOR=';'
10382 else
10383 PATH_SEPARATOR=:
10384 fi
10385 rm -f conf$$.sh
10386 fi
10387 ac_prog=ld
10388 if test "$GCC" = yes; then
10389 # Check if gcc -print-prog-name=ld gives a path.
10390 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10391 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10392 case $host in
10393 *-*-mingw*)
10394 # gcc leaves a trailing carriage return which upsets mingw
10395 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10396 *)
10397 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10398 esac
10399 case $ac_prog in
10400 # Accept absolute paths.
10401 [\\/]* | [A-Za-z]:[\\/]*)
10402 re_direlt='/[^/][^/]*/\.\./'
10403 # Canonicalize the path of ld
10404 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10405 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10406 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10407 done
10408 test -z "$LD" && LD="$ac_prog"
10409 ;;
10410 "")
10411 # If it fails, then pretend we aren't using GCC.
10412 ac_prog=ld
10413 ;;
10414 *)
10415 # If it is relative, then search for the first ld in PATH.
10416 with_gnu_ld=unknown
10417 ;;
10418 esac
10419 elif test "$with_gnu_ld" = yes; then
10420 echo "$as_me:$LINENO: checking for GNU ld" >&5
10421 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10422 else
10423 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10424 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10425 fi
10426 if test "${acl_cv_path_LD+set}" = set; then
10427 echo $ECHO_N "(cached) $ECHO_C" >&6
10428 else
10429 if test -z "$LD"; then
10430 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10431 for ac_dir in $PATH; do
10432 test -z "$ac_dir" && ac_dir=.
10433 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10434 acl_cv_path_LD="$ac_dir/$ac_prog"
10435 # Check to see if the program is GNU ld. I'd rather use --version,
10436 # but apparently some GNU ld's only accept -v.
10437 # Break only if it was the GNU/non-GNU ld that we prefer.
10438 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10439 test "$with_gnu_ld" != no && break
10440 else
10441 test "$with_gnu_ld" != yes && break
10442 fi
10443 fi
10444 done
10445 IFS="$ac_save_ifs"
10446 else
10447 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10448 fi
10449 fi
10450
10451 LD="$acl_cv_path_LD"
10452 if test -n "$LD"; then
10453 echo "$as_me:$LINENO: result: $LD" >&5
10454 echo "${ECHO_T}$LD" >&6
10455 else
10456 echo "$as_me:$LINENO: result: no" >&5
10457 echo "${ECHO_T}no" >&6
10458 fi
10459 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10460 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10461 { (exit 1); exit 1; }; }
10462 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10463 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10464 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 else
10467 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10468 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10469 acl_cv_prog_gnu_ld=yes
10470 else
10471 acl_cv_prog_gnu_ld=no
10472 fi
10473 fi
10474 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10475 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10476 with_gnu_ld=$acl_cv_prog_gnu_ld
10477
10478
10479
10480 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10481 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10482 if test "${acl_cv_rpath+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 else
10485
10486 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10487 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10488 . ./conftest.sh
10489 rm -f ./conftest.sh
10490 acl_cv_rpath=done
10491
10492 fi
10493 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10494 echo "${ECHO_T}$acl_cv_rpath" >&6
10495 wl="$acl_cv_wl"
10496 libext="$acl_cv_libext"
10497 shlibext="$acl_cv_shlibext"
10498 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10499 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10500 hardcode_direct="$acl_cv_hardcode_direct"
10501 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10502 # Check whether --enable-rpath or --disable-rpath was given.
10503 if test "${enable_rpath+set}" = set; then
10504 enableval="$enable_rpath"
10505 :
10506 else
10507 enable_rpath=yes
10508 fi;
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518 use_additional=yes
10519
10520 acl_save_prefix="$prefix"
10521 prefix="$acl_final_prefix"
10522 acl_save_exec_prefix="$exec_prefix"
10523 exec_prefix="$acl_final_exec_prefix"
10524
10525 eval additional_includedir=\"$includedir\"
10526 eval additional_libdir=\"$libdir\"
10527
10528 exec_prefix="$acl_save_exec_prefix"
10529 prefix="$acl_save_prefix"
10530
10531
10532 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10533 if test "${with_libexpat_prefix+set}" = set; then
10534 withval="$with_libexpat_prefix"
10535
10536 if test "X$withval" = "Xno"; then
10537 use_additional=no
10538 else
10539 if test "X$withval" = "X"; then
10540
10541 acl_save_prefix="$prefix"
10542 prefix="$acl_final_prefix"
10543 acl_save_exec_prefix="$exec_prefix"
10544 exec_prefix="$acl_final_exec_prefix"
10545
10546 eval additional_includedir=\"$includedir\"
10547 eval additional_libdir=\"$libdir\"
10548
10549 exec_prefix="$acl_save_exec_prefix"
10550 prefix="$acl_save_prefix"
10551
10552 else
10553 additional_includedir="$withval/include"
10554 additional_libdir="$withval/lib"
10555 fi
10556 fi
10557
10558 fi;
10559 LIBEXPAT=
10560 LTLIBEXPAT=
10561 INCEXPAT=
10562 rpathdirs=
10563 ltrpathdirs=
10564 names_already_handled=
10565 names_next_round='expat '
10566 while test -n "$names_next_round"; do
10567 names_this_round="$names_next_round"
10568 names_next_round=
10569 for name in $names_this_round; do
10570 already_handled=
10571 for n in $names_already_handled; do
10572 if test "$n" = "$name"; then
10573 already_handled=yes
10574 break
10575 fi
10576 done
10577 if test -z "$already_handled"; then
10578 names_already_handled="$names_already_handled $name"
10579 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10580 eval value=\"\$HAVE_LIB$uppername\"
10581 if test -n "$value"; then
10582 if test "$value" = yes; then
10583 eval value=\"\$LIB$uppername\"
10584 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10585 eval value=\"\$LTLIB$uppername\"
10586 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10587 else
10588 :
10589 fi
10590 else
10591 found_dir=
10592 found_la=
10593 found_so=
10594 found_a=
10595 if test $use_additional = yes; then
10596 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10597 found_dir="$additional_libdir"
10598 found_so="$additional_libdir/lib$name.$shlibext"
10599 if test -f "$additional_libdir/lib$name.la"; then
10600 found_la="$additional_libdir/lib$name.la"
10601 fi
10602 else
10603 if test -f "$additional_libdir/lib$name.$libext"; then
10604 found_dir="$additional_libdir"
10605 found_a="$additional_libdir/lib$name.$libext"
10606 if test -f "$additional_libdir/lib$name.la"; then
10607 found_la="$additional_libdir/lib$name.la"
10608 fi
10609 fi
10610 fi
10611 fi
10612 if test "X$found_dir" = "X"; then
10613 for x in $LDFLAGS $LTLIBEXPAT; do
10614
10615 acl_save_prefix="$prefix"
10616 prefix="$acl_final_prefix"
10617 acl_save_exec_prefix="$exec_prefix"
10618 exec_prefix="$acl_final_exec_prefix"
10619 eval x=\"$x\"
10620 exec_prefix="$acl_save_exec_prefix"
10621 prefix="$acl_save_prefix"
10622
10623 case "$x" in
10624 -L*)
10625 dir=`echo "X$x" | sed -e 's/^X-L//'`
10626 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10627 found_dir="$dir"
10628 found_so="$dir/lib$name.$shlibext"
10629 if test -f "$dir/lib$name.la"; then
10630 found_la="$dir/lib$name.la"
10631 fi
10632 else
10633 if test -f "$dir/lib$name.$libext"; then
10634 found_dir="$dir"
10635 found_a="$dir/lib$name.$libext"
10636 if test -f "$dir/lib$name.la"; then
10637 found_la="$dir/lib$name.la"
10638 fi
10639 fi
10640 fi
10641 ;;
10642 esac
10643 if test "X$found_dir" != "X"; then
10644 break
10645 fi
10646 done
10647 fi
10648 if test "X$found_dir" != "X"; then
10649 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10650 if test "X$found_so" != "X"; then
10651 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10652 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10653 else
10654 haveit=
10655 for x in $ltrpathdirs; do
10656 if test "X$x" = "X$found_dir"; then
10657 haveit=yes
10658 break
10659 fi
10660 done
10661 if test -z "$haveit"; then
10662 ltrpathdirs="$ltrpathdirs $found_dir"
10663 fi
10664 if test "$hardcode_direct" = yes; then
10665 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10666 else
10667 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10668 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10669 haveit=
10670 for x in $rpathdirs; do
10671 if test "X$x" = "X$found_dir"; then
10672 haveit=yes
10673 break
10674 fi
10675 done
10676 if test -z "$haveit"; then
10677 rpathdirs="$rpathdirs $found_dir"
10678 fi
10679 else
10680 haveit=
10681 for x in $LDFLAGS $LIBEXPAT; do
10682
10683 acl_save_prefix="$prefix"
10684 prefix="$acl_final_prefix"
10685 acl_save_exec_prefix="$exec_prefix"
10686 exec_prefix="$acl_final_exec_prefix"
10687 eval x=\"$x\"
10688 exec_prefix="$acl_save_exec_prefix"
10689 prefix="$acl_save_prefix"
10690
10691 if test "X$x" = "X-L$found_dir"; then
10692 haveit=yes
10693 break
10694 fi
10695 done
10696 if test -z "$haveit"; then
10697 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10698 fi
10699 if test "$hardcode_minus_L" != no; then
10700 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10701 else
10702 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10703 fi
10704 fi
10705 fi
10706 fi
10707 else
10708 if test "X$found_a" != "X"; then
10709 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10710 else
10711 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10712 fi
10713 fi
10714 additional_includedir=
10715 case "$found_dir" in
10716 */lib | */lib/)
10717 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10718 additional_includedir="$basedir/include"
10719 ;;
10720 esac
10721 if test "X$additional_includedir" != "X"; then
10722 if test "X$additional_includedir" != "X/usr/include"; then
10723 haveit=
10724 if test "X$additional_includedir" = "X/usr/local/include"; then
10725 if test -n "$GCC"; then
10726 case $host_os in
10727 linux*) haveit=yes;;
10728 esac
10729 fi
10730 fi
10731 if test -z "$haveit"; then
10732 for x in $CPPFLAGS $INCEXPAT; 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-I$additional_includedir"; then
10743 haveit=yes
10744 break
10745 fi
10746 done
10747 if test -z "$haveit"; then
10748 if test -d "$additional_includedir"; then
10749 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10750 fi
10751 fi
10752 fi
10753 fi
10754 fi
10755 if test -n "$found_la"; then
10756 save_libdir="$libdir"
10757 case "$found_la" in
10758 */* | *\\*) . "$found_la" ;;
10759 *) . "./$found_la" ;;
10760 esac
10761 libdir="$save_libdir"
10762 for dep in $dependency_libs; do
10763 case "$dep" in
10764 -L*)
10765 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10766 if test "X$additional_libdir" != "X/usr/lib"; then
10767 haveit=
10768 if test "X$additional_libdir" = "X/usr/local/lib"; then
10769 if test -n "$GCC"; then
10770 case $host_os in
10771 linux*) haveit=yes;;
10772 esac
10773 fi
10774 fi
10775 if test -z "$haveit"; then
10776 haveit=
10777 for x in $LDFLAGS $LIBEXPAT; do
10778
10779 acl_save_prefix="$prefix"
10780 prefix="$acl_final_prefix"
10781 acl_save_exec_prefix="$exec_prefix"
10782 exec_prefix="$acl_final_exec_prefix"
10783 eval x=\"$x\"
10784 exec_prefix="$acl_save_exec_prefix"
10785 prefix="$acl_save_prefix"
10786
10787 if test "X$x" = "X-L$additional_libdir"; then
10788 haveit=yes
10789 break
10790 fi
10791 done
10792 if test -z "$haveit"; then
10793 if test -d "$additional_libdir"; then
10794 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10795 fi
10796 fi
10797 haveit=
10798 for x in $LDFLAGS $LTLIBEXPAT; do
10799
10800 acl_save_prefix="$prefix"
10801 prefix="$acl_final_prefix"
10802 acl_save_exec_prefix="$exec_prefix"
10803 exec_prefix="$acl_final_exec_prefix"
10804 eval x=\"$x\"
10805 exec_prefix="$acl_save_exec_prefix"
10806 prefix="$acl_save_prefix"
10807
10808 if test "X$x" = "X-L$additional_libdir"; then
10809 haveit=yes
10810 break
10811 fi
10812 done
10813 if test -z "$haveit"; then
10814 if test -d "$additional_libdir"; then
10815 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10816 fi
10817 fi
10818 fi
10819 fi
10820 ;;
10821 -R*)
10822 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10823 if test "$enable_rpath" != no; then
10824 haveit=
10825 for x in $rpathdirs; do
10826 if test "X$x" = "X$dir"; then
10827 haveit=yes
10828 break
10829 fi
10830 done
10831 if test -z "$haveit"; then
10832 rpathdirs="$rpathdirs $dir"
10833 fi
10834 haveit=
10835 for x in $ltrpathdirs; do
10836 if test "X$x" = "X$dir"; then
10837 haveit=yes
10838 break
10839 fi
10840 done
10841 if test -z "$haveit"; then
10842 ltrpathdirs="$ltrpathdirs $dir"
10843 fi
10844 fi
10845 ;;
10846 -l*)
10847 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10848 ;;
10849 *.la)
10850 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10851 ;;
10852 *)
10853 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10854 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10855 ;;
10856 esac
10857 done
10858 fi
10859 else
10860 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10861 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10862 fi
10863 fi
10864 fi
10865 done
10866 done
10867 if test "X$rpathdirs" != "X"; then
10868 if test -n "$hardcode_libdir_separator"; then
10869 alldirs=
10870 for found_dir in $rpathdirs; do
10871 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10872 done
10873 acl_save_libdir="$libdir"
10874 libdir="$alldirs"
10875 eval flag=\"$hardcode_libdir_flag_spec\"
10876 libdir="$acl_save_libdir"
10877 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10878 else
10879 for found_dir in $rpathdirs; do
10880 acl_save_libdir="$libdir"
10881 libdir="$found_dir"
10882 eval flag=\"$hardcode_libdir_flag_spec\"
10883 libdir="$acl_save_libdir"
10884 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10885 done
10886 fi
10887 fi
10888 if test "X$ltrpathdirs" != "X"; then
10889 for found_dir in $ltrpathdirs; do
10890 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10891 done
10892 fi
10893
10894
10895 ac_save_CPPFLAGS="$CPPFLAGS"
10896
10897 for element in $INCEXPAT; do
10898 haveit=
10899 for x in $CPPFLAGS; do
10900
10901 acl_save_prefix="$prefix"
10902 prefix="$acl_final_prefix"
10903 acl_save_exec_prefix="$exec_prefix"
10904 exec_prefix="$acl_final_exec_prefix"
10905 eval x=\"$x\"
10906 exec_prefix="$acl_save_exec_prefix"
10907 prefix="$acl_save_prefix"
10908
10909 if test "X$x" = "X$element"; then
10910 haveit=yes
10911 break
10912 fi
10913 done
10914 if test -z "$haveit"; then
10915 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10916 fi
10917 done
10918
10919
10920 echo "$as_me:$LINENO: checking for libexpat" >&5
10921 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
10922 if test "${ac_cv_libexpat+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 else
10925
10926 ac_save_LIBS="$LIBS"
10927 LIBS="$LIBS $LIBEXPAT"
10928 cat >conftest.$ac_ext <<_ACEOF
10929 /* confdefs.h. */
10930 _ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h. */
10934 #include "expat.h"
10935 int
10936 main ()
10937 {
10938 XML_Parser p = XML_ParserCreate (0);
10939 ;
10940 return 0;
10941 }
10942 _ACEOF
10943 rm -f conftest.$ac_objext conftest$ac_exeext
10944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10945 (eval $ac_link) 2>conftest.er1
10946 ac_status=$?
10947 grep -v '^ *+' conftest.er1 >conftest.err
10948 rm -f conftest.er1
10949 cat conftest.err >&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } &&
10952 { ac_try='test -z "$ac_c_werror_flag"
10953 || test ! -s conftest.err'
10954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10955 (eval $ac_try) 2>&5
10956 ac_status=$?
10957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958 (exit $ac_status); }; } &&
10959 { ac_try='test -s conftest$ac_exeext'
10960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10961 (eval $ac_try) 2>&5
10962 ac_status=$?
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); }; }; then
10965 ac_cv_libexpat=yes
10966 else
10967 echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10969
10970 ac_cv_libexpat=no
10971 fi
10972 rm -f conftest.err conftest.$ac_objext \
10973 conftest$ac_exeext conftest.$ac_ext
10974 LIBS="$ac_save_LIBS"
10975
10976 fi
10977 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
10978 echo "${ECHO_T}$ac_cv_libexpat" >&6
10979 if test "$ac_cv_libexpat" = yes; then
10980 HAVE_LIBEXPAT=yes
10981
10982 cat >>confdefs.h <<\_ACEOF
10983 #define HAVE_LIBEXPAT 1
10984 _ACEOF
10985
10986 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
10987 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
10988 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
10989 echo "${ECHO_T}$LIBEXPAT" >&6
10990 else
10991 HAVE_LIBEXPAT=no
10992 CPPFLAGS="$ac_save_CPPFLAGS"
10993 LIBEXPAT=
10994 LTLIBEXPAT=
10995 fi
10996
10997
10998
10999
11000
11001
11002 if test "$HAVE_LIBEXPAT" != yes; then
11003 if test "$with_expat" = yes; then
11004 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11005 echo "$as_me: error: expat is missing or unusable" >&2;}
11006 { (exit 1); exit 1; }; }
11007 else
11008 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11009 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11010 fi
11011 else
11012 save_LIBS=$LIBS
11013 LIBS="$LIBS $LIBEXPAT"
11014
11015 for ac_func in XML_StopParser
11016 do
11017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11018 echo "$as_me:$LINENO: checking for $ac_func" >&5
11019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11020 if eval "test \"\${$as_ac_var+set}\" = set"; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 else
11023 cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h. */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11031 #define $ac_func innocuous_$ac_func
11032
11033 /* System header to define __stub macros and hopefully few prototypes,
11034 which can conflict with char $ac_func (); below.
11035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11036 <limits.h> exists even on freestanding compilers. */
11037
11038 #ifdef __STDC__
11039 # include <limits.h>
11040 #else
11041 # include <assert.h>
11042 #endif
11043
11044 #undef $ac_func
11045
11046 /* Override any gcc2 internal prototype to avoid an error. */
11047 #ifdef __cplusplus
11048 extern "C"
11049 {
11050 #endif
11051 /* We use char because int might match the return type of a gcc2
11052 builtin and then its argument prototype would still apply. */
11053 char $ac_func ();
11054 /* The GNU C library defines this for functions which it implements
11055 to always fail with ENOSYS. Some functions are actually named
11056 something starting with __ and the normal name is an alias. */
11057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11058 choke me
11059 #else
11060 char (*f) () = $ac_func;
11061 #endif
11062 #ifdef __cplusplus
11063 }
11064 #endif
11065
11066 int
11067 main ()
11068 {
11069 return f != $ac_func;
11070 ;
11071 return 0;
11072 }
11073 _ACEOF
11074 rm -f conftest.$ac_objext conftest$ac_exeext
11075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11076 (eval $ac_link) 2>conftest.er1
11077 ac_status=$?
11078 grep -v '^ *+' conftest.er1 >conftest.err
11079 rm -f conftest.er1
11080 cat conftest.err >&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } &&
11083 { ac_try='test -z "$ac_c_werror_flag"
11084 || test ! -s conftest.err'
11085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11086 (eval $ac_try) 2>&5
11087 ac_status=$?
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); }; } &&
11090 { ac_try='test -s conftest$ac_exeext'
11091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11092 (eval $ac_try) 2>&5
11093 ac_status=$?
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); }; }; then
11096 eval "$as_ac_var=yes"
11097 else
11098 echo "$as_me: failed program was:" >&5
11099 sed 's/^/| /' conftest.$ac_ext >&5
11100
11101 eval "$as_ac_var=no"
11102 fi
11103 rm -f conftest.err conftest.$ac_objext \
11104 conftest$ac_exeext conftest.$ac_ext
11105 fi
11106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11108 if test `eval echo '${'$as_ac_var'}'` = yes; then
11109 cat >>confdefs.h <<_ACEOF
11110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11111 _ACEOF
11112
11113 fi
11114 done
11115
11116 LIBS=$save_LIBS
11117 fi
11118 fi
11119
11120
11121
11122
11123 # Check whether --with-python or --without-python was given.
11124 if test "${with_python+set}" = set; then
11125 withval="$with_python"
11126
11127 else
11128 with_python=auto
11129 fi;
11130 echo "$as_me:$LINENO: checking whether to use python" >&5
11131 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11132 echo "$as_me:$LINENO: result: $with_python" >&5
11133 echo "${ECHO_T}$with_python" >&6
11134
11135 if test "${with_python}" = no; then
11136 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11137 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11138 have_libpython=no
11139 else
11140 case "${with_python}" in
11141 yes | auto)
11142 # Leave as empty, use defaults.
11143 python_includes=
11144 python_libs=
11145 ;;
11146 /*)
11147 python_includes="-I${with_python}/include"
11148 python_libs="-L${with_python}/lib"
11149 ;;
11150 *)
11151 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11152 echo "$as_me: error: invalid value for --with-python" >&2;}
11153 { (exit 1); exit 1; }; }
11154 ;;
11155 esac
11156
11157 save_CPPFLAGS=$CPPFLAGS
11158 CPPFLAGS="$CPPFLAGS ${python_includes}"
11159 save_LIBS=$LIBS
11160 LIBS="$LIBS ${python_libs}"
11161 have_libpython=no
11162 if test "${have_libpython}" = no; then
11163
11164 version=python2.6
11165
11166
11167 HAVE_LIBPYTHON2_6=no
11168 echo "$as_me:$LINENO: checking for ${version}" >&5
11169 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11170 save_LIBS=$LIBS
11171 LIBS="$LIBS -l${version}"
11172 cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h. */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h. */
11178 #include "${version}/Python.h"
11179 int
11180 main ()
11181 {
11182 Py_Initialize ();
11183 ;
11184 return 0;
11185 }
11186 _ACEOF
11187 rm -f conftest.$ac_objext conftest$ac_exeext
11188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11189 (eval $ac_link) 2>conftest.er1
11190 ac_status=$?
11191 grep -v '^ *+' conftest.er1 >conftest.err
11192 rm -f conftest.er1
11193 cat conftest.err >&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
11196 { ac_try='test -z "$ac_c_werror_flag"
11197 || test ! -s conftest.err'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11200 ac_status=$?
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; } &&
11203 { ac_try='test -s conftest$ac_exeext'
11204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11205 (eval $ac_try) 2>&5
11206 ac_status=$?
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }; }; then
11209 HAVE_LIBPYTHON2_6=yes
11210 have_libpython=yes
11211 else
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11214
11215 LIBS=$save_LIBS
11216 fi
11217 rm -f conftest.err conftest.$ac_objext \
11218 conftest$ac_exeext conftest.$ac_ext
11219 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11220 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11221
11222 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11223
11224 cat >>confdefs.h <<\_ACEOF
11225 #define HAVE_LIBPYTHON2_6 1
11226 _ACEOF
11227
11228 fi
11229 fi
11230 if test ${have_libpython} = no; then
11231
11232 version=python2.5
11233
11234
11235 HAVE_LIBPYTHON2_5=no
11236 echo "$as_me:$LINENO: checking for ${version}" >&5
11237 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11238 save_LIBS=$LIBS
11239 LIBS="$LIBS -l${version}"
11240 cat >conftest.$ac_ext <<_ACEOF
11241 /* confdefs.h. */
11242 _ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 #include "${version}/Python.h"
11247 int
11248 main ()
11249 {
11250 Py_Initialize ();
11251 ;
11252 return 0;
11253 }
11254 _ACEOF
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11257 (eval $ac_link) 2>conftest.er1
11258 ac_status=$?
11259 grep -v '^ *+' conftest.er1 >conftest.err
11260 rm -f conftest.er1
11261 cat conftest.err >&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); } &&
11264 { ac_try='test -z "$ac_c_werror_flag"
11265 || test ! -s conftest.err'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11268 ac_status=$?
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; } &&
11271 { ac_try='test -s conftest$ac_exeext'
11272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273 (eval $ac_try) 2>&5
11274 ac_status=$?
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); }; }; then
11277 HAVE_LIBPYTHON2_5=yes
11278 have_libpython=yes
11279 else
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11282
11283 LIBS=$save_LIBS
11284 fi
11285 rm -f conftest.err conftest.$ac_objext \
11286 conftest$ac_exeext conftest.$ac_ext
11287 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11288 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11289
11290 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11291
11292 cat >>confdefs.h <<\_ACEOF
11293 #define HAVE_LIBPYTHON2_5 1
11294 _ACEOF
11295
11296 fi
11297 fi
11298 if test ${have_libpython} = no; then
11299
11300 version=python2.4
11301
11302
11303 HAVE_LIBPYTHON2_4=no
11304 echo "$as_me:$LINENO: checking for ${version}" >&5
11305 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11306 save_LIBS=$LIBS
11307 LIBS="$LIBS -l${version}"
11308 cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h. */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 #include "${version}/Python.h"
11315 int
11316 main ()
11317 {
11318 Py_Initialize ();
11319 ;
11320 return 0;
11321 }
11322 _ACEOF
11323 rm -f conftest.$ac_objext conftest$ac_exeext
11324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11325 (eval $ac_link) 2>conftest.er1
11326 ac_status=$?
11327 grep -v '^ *+' conftest.er1 >conftest.err
11328 rm -f conftest.er1
11329 cat conftest.err >&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } &&
11332 { ac_try='test -z "$ac_c_werror_flag"
11333 || test ! -s conftest.err'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; } &&
11339 { ac_try='test -s conftest$ac_exeext'
11340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11341 (eval $ac_try) 2>&5
11342 ac_status=$?
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); }; }; then
11345 HAVE_LIBPYTHON2_4=yes
11346 have_libpython=yes
11347 else
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11350
11351 LIBS=$save_LIBS
11352 fi
11353 rm -f conftest.err conftest.$ac_objext \
11354 conftest$ac_exeext conftest.$ac_ext
11355 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11356 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11357
11358 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11359
11360 cat >>confdefs.h <<\_ACEOF
11361 #define HAVE_LIBPYTHON2_4 1
11362 _ACEOF
11363
11364 fi
11365 fi
11366 if test ${have_libpython} = no; then
11367 case "${with_python}" in
11368 yes)
11369 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11370 echo "$as_me: error: python is missing or unusable" >&2;}
11371 { (exit 1); exit 1; }; }
11372 ;;
11373 auto)
11374 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11375 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11376 ;;
11377 *)
11378 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11379 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11380 { (exit 1); exit 1; }; }
11381 ;;
11382 esac
11383 CPPFLAGS=$save_CPPFLAGS
11384 LIBS=$save_LIBS
11385 fi
11386 fi
11387
11388 if test "${have_libpython}" = yes; then
11389
11390 cat >>confdefs.h <<\_ACEOF
11391 #define HAVE_PYTHON 1
11392 _ACEOF
11393
11394 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11395 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11396 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11397 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11398
11399 # Flags needed to compile Python code (taken from python-config --cflags).
11400 # We cannot call python-config directly because it will output whatever was
11401 # used when compiling the Python interpreter itself, including flags which
11402 # would make the python-related objects be compiled differently from the
11403 # rest of GDB (e.g., -O2 and -fPIC).
11404 if test "${GCC}" = yes; then
11405 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11406 fi
11407
11408 if test "x${tentative_python_cflags}" != x; then
11409 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11410 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11411 for flag in ${tentative_python_cflags}; do
11412 # Check that the compiler accepts it
11413 saved_CFLAGS="$CFLAGS"
11414 CFLAGS="$CFLAGS $flag"
11415 cat >conftest.$ac_ext <<_ACEOF
11416 /* confdefs.h. */
11417 _ACEOF
11418 cat confdefs.h >>conftest.$ac_ext
11419 cat >>conftest.$ac_ext <<_ACEOF
11420 /* end confdefs.h. */
11421
11422 int
11423 main ()
11424 {
11425
11426 ;
11427 return 0;
11428 }
11429 _ACEOF
11430 rm -f conftest.$ac_objext
11431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11432 (eval $ac_compile) 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try='test -z "$ac_c_werror_flag"
11440 || test ! -s conftest.err'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; } &&
11446 { ac_try='test -s conftest.$ac_objext'
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11449 ac_status=$?
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; }; then
11452 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11453 else
11454 echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.$ac_ext >&5
11456
11457 fi
11458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11459 CFLAGS="$saved_CFLAGS"
11460 done
11461 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11462 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11463 fi
11464 else
11465 # Even if Python support is not compiled in, we need to have these files
11466 # included in order to recognize the GDB command "python".
11467 CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
11468 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
11469 fi
11470
11471
11472 # ------------------------- #
11473 # Checks for header files. #
11474 # ------------------------- #
11475
11476
11477
11478
11479
11480
11481 ac_header_dirent=no
11482 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11483 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11484 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11485 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11486 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11487 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 else
11489 cat >conftest.$ac_ext <<_ACEOF
11490 /* confdefs.h. */
11491 _ACEOF
11492 cat confdefs.h >>conftest.$ac_ext
11493 cat >>conftest.$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 #include <sys/types.h>
11496 #include <$ac_hdr>
11497
11498 int
11499 main ()
11500 {
11501 if ((DIR *) 0)
11502 return 0;
11503 ;
11504 return 0;
11505 }
11506 _ACEOF
11507 rm -f conftest.$ac_objext
11508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11509 (eval $ac_compile) 2>conftest.er1
11510 ac_status=$?
11511 grep -v '^ *+' conftest.er1 >conftest.err
11512 rm -f conftest.er1
11513 cat conftest.err >&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); } &&
11516 { ac_try='test -z "$ac_c_werror_flag"
11517 || test ! -s conftest.err'
11518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11519 (eval $ac_try) 2>&5
11520 ac_status=$?
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); }; } &&
11523 { ac_try='test -s conftest.$ac_objext'
11524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525 (eval $ac_try) 2>&5
11526 ac_status=$?
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; }; then
11529 eval "$as_ac_Header=yes"
11530 else
11531 echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11533
11534 eval "$as_ac_Header=no"
11535 fi
11536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11537 fi
11538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11541 cat >>confdefs.h <<_ACEOF
11542 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11543 _ACEOF
11544
11545 ac_header_dirent=$ac_hdr; break
11546 fi
11547
11548 done
11549 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11550 if test $ac_header_dirent = dirent.h; then
11551 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11552 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11553 if test "${ac_cv_search_opendir+set}" = set; then
11554 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 else
11556 ac_func_search_save_LIBS=$LIBS
11557 ac_cv_search_opendir=no
11558 cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h. */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564
11565 /* Override any gcc2 internal prototype to avoid an error. */
11566 #ifdef __cplusplus
11567 extern "C"
11568 #endif
11569 /* We use char because int might match the return type of a gcc2
11570 builtin and then its argument prototype would still apply. */
11571 char opendir ();
11572 int
11573 main ()
11574 {
11575 opendir ();
11576 ;
11577 return 0;
11578 }
11579 _ACEOF
11580 rm -f conftest.$ac_objext conftest$ac_exeext
11581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11582 (eval $ac_link) 2>conftest.er1
11583 ac_status=$?
11584 grep -v '^ *+' conftest.er1 >conftest.err
11585 rm -f conftest.er1
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } &&
11589 { ac_try='test -z "$ac_c_werror_flag"
11590 || test ! -s conftest.err'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; } &&
11596 { ac_try='test -s conftest$ac_exeext'
11597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11598 (eval $ac_try) 2>&5
11599 ac_status=$?
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); }; }; then
11602 ac_cv_search_opendir="none required"
11603 else
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.$ac_ext >&5
11606
11607 fi
11608 rm -f conftest.err conftest.$ac_objext \
11609 conftest$ac_exeext conftest.$ac_ext
11610 if test "$ac_cv_search_opendir" = no; then
11611 for ac_lib in dir; do
11612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11613 cat >conftest.$ac_ext <<_ACEOF
11614 /* confdefs.h. */
11615 _ACEOF
11616 cat confdefs.h >>conftest.$ac_ext
11617 cat >>conftest.$ac_ext <<_ACEOF
11618 /* end confdefs.h. */
11619
11620 /* Override any gcc2 internal prototype to avoid an error. */
11621 #ifdef __cplusplus
11622 extern "C"
11623 #endif
11624 /* We use char because int might match the return type of a gcc2
11625 builtin and then its argument prototype would still apply. */
11626 char opendir ();
11627 int
11628 main ()
11629 {
11630 opendir ();
11631 ;
11632 return 0;
11633 }
11634 _ACEOF
11635 rm -f conftest.$ac_objext conftest$ac_exeext
11636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11637 (eval $ac_link) 2>conftest.er1
11638 ac_status=$?
11639 grep -v '^ *+' conftest.er1 >conftest.err
11640 rm -f conftest.er1
11641 cat conftest.err >&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
11644 { ac_try='test -z "$ac_c_werror_flag"
11645 || test ! -s conftest.err'
11646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11647 (eval $ac_try) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); }; } &&
11651 { ac_try='test -s conftest$ac_exeext'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 ac_cv_search_opendir="-l$ac_lib"
11658 break
11659 else
11660 echo "$as_me: failed program was:" >&5
11661 sed 's/^/| /' conftest.$ac_ext >&5
11662
11663 fi
11664 rm -f conftest.err conftest.$ac_objext \
11665 conftest$ac_exeext conftest.$ac_ext
11666 done
11667 fi
11668 LIBS=$ac_func_search_save_LIBS
11669 fi
11670 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11671 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11672 if test "$ac_cv_search_opendir" != no; then
11673 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11674
11675 fi
11676
11677 else
11678 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11679 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11680 if test "${ac_cv_search_opendir+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683 ac_func_search_save_LIBS=$LIBS
11684 ac_cv_search_opendir=no
11685 cat >conftest.$ac_ext <<_ACEOF
11686 /* confdefs.h. */
11687 _ACEOF
11688 cat confdefs.h >>conftest.$ac_ext
11689 cat >>conftest.$ac_ext <<_ACEOF
11690 /* end confdefs.h. */
11691
11692 /* Override any gcc2 internal prototype to avoid an error. */
11693 #ifdef __cplusplus
11694 extern "C"
11695 #endif
11696 /* We use char because int might match the return type of a gcc2
11697 builtin and then its argument prototype would still apply. */
11698 char opendir ();
11699 int
11700 main ()
11701 {
11702 opendir ();
11703 ;
11704 return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext conftest$ac_exeext
11708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11709 (eval $ac_link) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest$ac_exeext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_search_opendir="none required"
11730 else
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11733
11734 fi
11735 rm -f conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
11737 if test "$ac_cv_search_opendir" = no; then
11738 for ac_lib in x; do
11739 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11740 cat >conftest.$ac_ext <<_ACEOF
11741 /* confdefs.h. */
11742 _ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h. */
11746
11747 /* Override any gcc2 internal prototype to avoid an error. */
11748 #ifdef __cplusplus
11749 extern "C"
11750 #endif
11751 /* We use char because int might match the return type of a gcc2
11752 builtin and then its argument prototype would still apply. */
11753 char opendir ();
11754 int
11755 main ()
11756 {
11757 opendir ();
11758 ;
11759 return 0;
11760 }
11761 _ACEOF
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11764 (eval $ac_link) 2>conftest.er1
11765 ac_status=$?
11766 grep -v '^ *+' conftest.er1 >conftest.err
11767 rm -f conftest.er1
11768 cat conftest.err >&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } &&
11771 { ac_try='test -z "$ac_c_werror_flag"
11772 || test ! -s conftest.err'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; } &&
11778 { ac_try='test -s conftest$ac_exeext'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11784 ac_cv_search_opendir="-l$ac_lib"
11785 break
11786 else
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790 fi
11791 rm -f conftest.err conftest.$ac_objext \
11792 conftest$ac_exeext conftest.$ac_ext
11793 done
11794 fi
11795 LIBS=$ac_func_search_save_LIBS
11796 fi
11797 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11798 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11799 if test "$ac_cv_search_opendir" != no; then
11800 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11801
11802 fi
11803
11804 fi
11805
11806 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11807 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11808 if test "${ac_cv_header_stat_broken+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 else
11811 cat >conftest.$ac_ext <<_ACEOF
11812 /* confdefs.h. */
11813 _ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h. */
11817 #include <sys/types.h>
11818 #include <sys/stat.h>
11819
11820 #if defined(S_ISBLK) && defined(S_IFDIR)
11821 # if S_ISBLK (S_IFDIR)
11822 You lose.
11823 # endif
11824 #endif
11825
11826 #if defined(S_ISBLK) && defined(S_IFCHR)
11827 # if S_ISBLK (S_IFCHR)
11828 You lose.
11829 # endif
11830 #endif
11831
11832 #if defined(S_ISLNK) && defined(S_IFREG)
11833 # if S_ISLNK (S_IFREG)
11834 You lose.
11835 # endif
11836 #endif
11837
11838 #if defined(S_ISSOCK) && defined(S_IFREG)
11839 # if S_ISSOCK (S_IFREG)
11840 You lose.
11841 # endif
11842 #endif
11843
11844 _ACEOF
11845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11846 $EGREP "You lose" >/dev/null 2>&1; then
11847 ac_cv_header_stat_broken=yes
11848 else
11849 ac_cv_header_stat_broken=no
11850 fi
11851 rm -f conftest*
11852
11853 fi
11854 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11855 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11856 if test $ac_cv_header_stat_broken = yes; then
11857
11858 cat >>confdefs.h <<\_ACEOF
11859 #define STAT_MACROS_BROKEN 1
11860 _ACEOF
11861
11862 fi
11863
11864 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11865 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11866 if test "${ac_cv_header_stdc+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11868 else
11869 cat >conftest.$ac_ext <<_ACEOF
11870 /* confdefs.h. */
11871 _ACEOF
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11875 #include <stdlib.h>
11876 #include <stdarg.h>
11877 #include <string.h>
11878 #include <float.h>
11879
11880 int
11881 main ()
11882 {
11883
11884 ;
11885 return 0;
11886 }
11887 _ACEOF
11888 rm -f conftest.$ac_objext
11889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11890 (eval $ac_compile) 2>conftest.er1
11891 ac_status=$?
11892 grep -v '^ *+' conftest.er1 >conftest.err
11893 rm -f conftest.er1
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } &&
11897 { ac_try='test -z "$ac_c_werror_flag"
11898 || test ! -s conftest.err'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11901 ac_status=$?
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; } &&
11904 { ac_try='test -s conftest.$ac_objext'
11905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11906 (eval $ac_try) 2>&5
11907 ac_status=$?
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); }; }; then
11910 ac_cv_header_stdc=yes
11911 else
11912 echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11914
11915 ac_cv_header_stdc=no
11916 fi
11917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11918
11919 if test $ac_cv_header_stdc = yes; then
11920 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11921 cat >conftest.$ac_ext <<_ACEOF
11922 /* confdefs.h. */
11923 _ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 #include <string.h>
11928
11929 _ACEOF
11930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11931 $EGREP "memchr" >/dev/null 2>&1; then
11932 :
11933 else
11934 ac_cv_header_stdc=no
11935 fi
11936 rm -f conftest*
11937
11938 fi
11939
11940 if test $ac_cv_header_stdc = yes; then
11941 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11942 cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h. */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 #include <stdlib.h>
11949
11950 _ACEOF
11951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11952 $EGREP "free" >/dev/null 2>&1; then
11953 :
11954 else
11955 ac_cv_header_stdc=no
11956 fi
11957 rm -f conftest*
11958
11959 fi
11960
11961 if test $ac_cv_header_stdc = yes; then
11962 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11963 if test "$cross_compiling" = yes; then
11964 :
11965 else
11966 cat >conftest.$ac_ext <<_ACEOF
11967 /* confdefs.h. */
11968 _ACEOF
11969 cat confdefs.h >>conftest.$ac_ext
11970 cat >>conftest.$ac_ext <<_ACEOF
11971 /* end confdefs.h. */
11972 #include <ctype.h>
11973 #if ((' ' & 0x0FF) == 0x020)
11974 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11975 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11976 #else
11977 # define ISLOWER(c) \
11978 (('a' <= (c) && (c) <= 'i') \
11979 || ('j' <= (c) && (c) <= 'r') \
11980 || ('s' <= (c) && (c) <= 'z'))
11981 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11982 #endif
11983
11984 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11985 int
11986 main ()
11987 {
11988 int i;
11989 for (i = 0; i < 256; i++)
11990 if (XOR (islower (i), ISLOWER (i))
11991 || toupper (i) != TOUPPER (i))
11992 exit(2);
11993 exit (0);
11994 }
11995 _ACEOF
11996 rm -f conftest$ac_exeext
11997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11998 (eval $ac_link) 2>&5
11999 ac_status=$?
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12004 ac_status=$?
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; }; then
12007 :
12008 else
12009 echo "$as_me: program exited with status $ac_status" >&5
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12012
12013 ( exit $ac_status )
12014 ac_cv_header_stdc=no
12015 fi
12016 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12017 fi
12018 fi
12019 fi
12020 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12021 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12022 if test $ac_cv_header_stdc = yes; then
12023
12024 cat >>confdefs.h <<\_ACEOF
12025 #define STDC_HEADERS 1
12026 _ACEOF
12027
12028 fi
12029
12030 # elf_hp.h is for HP/UX 64-bit shared library support.
12031 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12032 # unconditionally, so what's the point in checking these?
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12071 thread_db.h gnu/libc-version.h signal.h stddef.h \
12072 stdlib.h string.h memory.h strings.h sys/fault.h \
12073 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12074 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12075 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
12076 sys/types.h sys/wait.h wait.h termios.h termio.h \
12077 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
12078 do
12079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12081 echo "$as_me:$LINENO: checking for $ac_header" >&5
12082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 fi
12086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12088 else
12089 # Is the header compilable?
12090 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12092 cat >conftest.$ac_ext <<_ACEOF
12093 /* confdefs.h. */
12094 _ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12098 $ac_includes_default
12099 #include <$ac_header>
12100 _ACEOF
12101 rm -f conftest.$ac_objext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12103 (eval $ac_compile) 2>conftest.er1
12104 ac_status=$?
12105 grep -v '^ *+' conftest.er1 >conftest.err
12106 rm -f conftest.er1
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } &&
12110 { ac_try='test -z "$ac_c_werror_flag"
12111 || test ! -s conftest.err'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12114 ac_status=$?
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; } &&
12117 { ac_try='test -s conftest.$ac_objext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12120 ac_status=$?
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 ac_header_compiler=yes
12124 else
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12127
12128 ac_header_compiler=no
12129 fi
12130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12132 echo "${ECHO_T}$ac_header_compiler" >&6
12133
12134 # Is the header present?
12135 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12137 cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h. */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h. */
12143 #include <$ac_header>
12144 _ACEOF
12145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12147 ac_status=$?
12148 grep -v '^ *+' conftest.er1 >conftest.err
12149 rm -f conftest.er1
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } >/dev/null; then
12153 if test -s conftest.err; then
12154 ac_cpp_err=$ac_c_preproc_warn_flag
12155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12156 else
12157 ac_cpp_err=
12158 fi
12159 else
12160 ac_cpp_err=yes
12161 fi
12162 if test -z "$ac_cpp_err"; then
12163 ac_header_preproc=yes
12164 else
12165 echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12167
12168 ac_header_preproc=no
12169 fi
12170 rm -f conftest.err conftest.$ac_ext
12171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12172 echo "${ECHO_T}$ac_header_preproc" >&6
12173
12174 # So? What about this header?
12175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12176 yes:no: )
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12181 ac_header_preproc=yes
12182 ;;
12183 no:yes:* )
12184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12196 (
12197 cat <<\_ASBOX
12198 ## ------------------------------------------ ##
12199 ## Report this to the AC_PACKAGE_NAME lists. ##
12200 ## ------------------------------------------ ##
12201 _ASBOX
12202 ) |
12203 sed "s/^/$as_me: WARNING: /" >&2
12204 ;;
12205 esac
12206 echo "$as_me:$LINENO: checking for $ac_header" >&5
12207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211 eval "$as_ac_Header=\$ac_header_preproc"
12212 fi
12213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12215
12216 fi
12217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12218 cat >>confdefs.h <<_ACEOF
12219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12220 _ACEOF
12221
12222 fi
12223
12224 done
12225
12226
12227 for ac_header in link.h
12228 do
12229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12230 echo "$as_me:$LINENO: checking for $ac_header" >&5
12231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12232 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12233 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 else
12235 cat >conftest.$ac_ext <<_ACEOF
12236 /* confdefs.h. */
12237 _ACEOF
12238 cat confdefs.h >>conftest.$ac_ext
12239 cat >>conftest.$ac_ext <<_ACEOF
12240 /* end confdefs.h. */
12241 #if HAVE_SYS_TYPES_H
12242 # include <sys/types.h>
12243 #endif
12244 #if HAVE_NLIST_H
12245 # include <nlist.h>
12246 #endif
12247
12248
12249 #include <$ac_header>
12250 _ACEOF
12251 rm -f conftest.$ac_objext
12252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12253 (eval $ac_compile) 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } &&
12260 { ac_try='test -z "$ac_c_werror_flag"
12261 || test ! -s conftest.err'
12262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12263 (eval $ac_try) 2>&5
12264 ac_status=$?
12265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266 (exit $ac_status); }; } &&
12267 { ac_try='test -s conftest.$ac_objext'
12268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269 (eval $ac_try) 2>&5
12270 ac_status=$?
12271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272 (exit $ac_status); }; }; then
12273 eval "$as_ac_Header=yes"
12274 else
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12277
12278 eval "$as_ac_Header=no"
12279 fi
12280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12281 fi
12282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12285 cat >>confdefs.h <<_ACEOF
12286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12287 _ACEOF
12288
12289 fi
12290
12291 done
12292
12293
12294 for ac_header in sys/proc.h
12295 do
12296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12297 echo "$as_me:$LINENO: checking for $ac_header" >&5
12298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12300 echo $ECHO_N "(cached) $ECHO_C" >&6
12301 else
12302 cat >conftest.$ac_ext <<_ACEOF
12303 /* confdefs.h. */
12304 _ACEOF
12305 cat confdefs.h >>conftest.$ac_ext
12306 cat >>conftest.$ac_ext <<_ACEOF
12307 /* end confdefs.h. */
12308 #if HAVE_SYS_PARAM_H
12309 # include <sys/param.h>
12310 #endif
12311
12312
12313 #include <$ac_header>
12314 _ACEOF
12315 rm -f conftest.$ac_objext
12316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12317 (eval $ac_compile) 2>conftest.er1
12318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try='test -z "$ac_c_werror_flag"
12325 || test ! -s conftest.err'
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12328 ac_status=$?
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; } &&
12331 { ac_try='test -s conftest.$ac_objext'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12337 eval "$as_ac_Header=yes"
12338 else
12339 echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.$ac_ext >&5
12341
12342 eval "$as_ac_Header=no"
12343 fi
12344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12345 fi
12346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12348 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12349 cat >>confdefs.h <<_ACEOF
12350 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12351 _ACEOF
12352
12353 fi
12354
12355 done
12356
12357
12358 for ac_header in sys/user.h
12359 do
12360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12361 echo "$as_me:$LINENO: checking for $ac_header" >&5
12362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12363 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366 cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h. */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 #if HAVE_SYS_PARAM_H
12373 # include <sys/param.h>
12374 #endif
12375
12376
12377 #include <$ac_header>
12378 _ACEOF
12379 rm -f conftest.$ac_objext
12380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12381 (eval $ac_compile) 2>conftest.er1
12382 ac_status=$?
12383 grep -v '^ *+' conftest.er1 >conftest.err
12384 rm -f conftest.er1
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
12388 { ac_try='test -z "$ac_c_werror_flag"
12389 || test ! -s conftest.err'
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; } &&
12395 { ac_try='test -s conftest.$ac_objext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 eval "$as_ac_Header=yes"
12402 else
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12405
12406 eval "$as_ac_Header=no"
12407 fi
12408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12409 fi
12410 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12411 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12413 cat >>confdefs.h <<_ACEOF
12414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12415 _ACEOF
12416
12417 fi
12418
12419 done
12420
12421
12422 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12423 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12424 # think that we don't have <curses.h> if we're using GCC.
12425 case $host_os in
12426 solaris2.[789])
12427 if test "$GCC" = yes; then
12428
12429 cat >>confdefs.h <<\_ACEOF
12430 #define _MSE_INT_H 1
12431 _ACEOF
12432
12433 fi ;;
12434 esac
12435
12436
12437
12438
12439
12440 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
12441 do
12442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12444 echo "$as_me:$LINENO: checking for $ac_header" >&5
12445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12446 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448 fi
12449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12451 else
12452 # Is the header compilable?
12453 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12455 cat >conftest.$ac_ext <<_ACEOF
12456 /* confdefs.h. */
12457 _ACEOF
12458 cat confdefs.h >>conftest.$ac_ext
12459 cat >>conftest.$ac_ext <<_ACEOF
12460 /* end confdefs.h. */
12461 $ac_includes_default
12462 #include <$ac_header>
12463 _ACEOF
12464 rm -f conftest.$ac_objext
12465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12466 (eval $ac_compile) 2>conftest.er1
12467 ac_status=$?
12468 grep -v '^ *+' conftest.er1 >conftest.err
12469 rm -f conftest.er1
12470 cat conftest.err >&5
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); } &&
12473 { ac_try='test -z "$ac_c_werror_flag"
12474 || test ! -s conftest.err'
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; } &&
12480 { ac_try='test -s conftest.$ac_objext'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 ac_header_compiler=yes
12487 else
12488 echo "$as_me: failed program was:" >&5
12489 sed 's/^/| /' conftest.$ac_ext >&5
12490
12491 ac_header_compiler=no
12492 fi
12493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12494 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12495 echo "${ECHO_T}$ac_header_compiler" >&6
12496
12497 # Is the header present?
12498 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12499 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12500 cat >conftest.$ac_ext <<_ACEOF
12501 /* confdefs.h. */
12502 _ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12506 #include <$ac_header>
12507 _ACEOF
12508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12510 ac_status=$?
12511 grep -v '^ *+' conftest.er1 >conftest.err
12512 rm -f conftest.er1
12513 cat conftest.err >&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } >/dev/null; then
12516 if test -s conftest.err; then
12517 ac_cpp_err=$ac_c_preproc_warn_flag
12518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12519 else
12520 ac_cpp_err=
12521 fi
12522 else
12523 ac_cpp_err=yes
12524 fi
12525 if test -z "$ac_cpp_err"; then
12526 ac_header_preproc=yes
12527 else
12528 echo "$as_me: failed program was:" >&5
12529 sed 's/^/| /' conftest.$ac_ext >&5
12530
12531 ac_header_preproc=no
12532 fi
12533 rm -f conftest.err conftest.$ac_ext
12534 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12535 echo "${ECHO_T}$ac_header_preproc" >&6
12536
12537 # So? What about this header?
12538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12539 yes:no: )
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12544 ac_header_preproc=yes
12545 ;;
12546 no:yes:* )
12547 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12549 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12550 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12551 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12553 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12554 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12557 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12559 (
12560 cat <<\_ASBOX
12561 ## ------------------------------------------ ##
12562 ## Report this to the AC_PACKAGE_NAME lists. ##
12563 ## ------------------------------------------ ##
12564 _ASBOX
12565 ) |
12566 sed "s/^/$as_me: WARNING: /" >&2
12567 ;;
12568 esac
12569 echo "$as_me:$LINENO: checking for $ac_header" >&5
12570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 else
12574 eval "$as_ac_Header=\$ac_header_preproc"
12575 fi
12576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12578
12579 fi
12580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12581 cat >>confdefs.h <<_ACEOF
12582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12583 _ACEOF
12584
12585 fi
12586
12587 done
12588
12589
12590 for ac_header in term.h
12591 do
12592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12593 echo "$as_me:$LINENO: checking for $ac_header" >&5
12594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12596 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 else
12598 cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h. */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 #if HAVE_CURSES_H
12605 # include <curses.h>
12606 #endif
12607
12608
12609 #include <$ac_header>
12610 _ACEOF
12611 rm -f conftest.$ac_objext
12612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12613 (eval $ac_compile) 2>conftest.er1
12614 ac_status=$?
12615 grep -v '^ *+' conftest.er1 >conftest.err
12616 rm -f conftest.er1
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } &&
12620 { ac_try='test -z "$ac_c_werror_flag"
12621 || test ! -s conftest.err'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; } &&
12627 { ac_try='test -s conftest.$ac_objext'
12628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
12633 eval "$as_ac_Header=yes"
12634 else
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12637
12638 eval "$as_ac_Header=no"
12639 fi
12640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12641 fi
12642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12645 cat >>confdefs.h <<_ACEOF
12646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12647 _ACEOF
12648
12649 fi
12650
12651 done
12652
12653
12654 # ------------------------- #
12655 # Checks for declarations. #
12656 # ------------------------- #
12657
12658 echo "$as_me:$LINENO: checking whether free is declared" >&5
12659 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12660 if test "${ac_cv_have_decl_free+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 else
12663 cat >conftest.$ac_ext <<_ACEOF
12664 /* confdefs.h. */
12665 _ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h. */
12669 $ac_includes_default
12670 int
12671 main ()
12672 {
12673 #ifndef free
12674 char *p = (char *) free;
12675 #endif
12676
12677 ;
12678 return 0;
12679 }
12680 _ACEOF
12681 rm -f conftest.$ac_objext
12682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12683 (eval $ac_compile) 2>conftest.er1
12684 ac_status=$?
12685 grep -v '^ *+' conftest.er1 >conftest.err
12686 rm -f conftest.er1
12687 cat conftest.err >&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } &&
12690 { ac_try='test -z "$ac_c_werror_flag"
12691 || test ! -s conftest.err'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12694 ac_status=$?
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; } &&
12697 { ac_try='test -s conftest.$ac_objext'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12700 ac_status=$?
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 ac_cv_have_decl_free=yes
12704 else
12705 echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12707
12708 ac_cv_have_decl_free=no
12709 fi
12710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12711 fi
12712 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12713 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12714 if test $ac_cv_have_decl_free = yes; then
12715
12716 cat >>confdefs.h <<_ACEOF
12717 #define HAVE_DECL_FREE 1
12718 _ACEOF
12719
12720
12721 else
12722 cat >>confdefs.h <<_ACEOF
12723 #define HAVE_DECL_FREE 0
12724 _ACEOF
12725
12726
12727 fi
12728 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
12729 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
12730 if test "${ac_cv_have_decl_malloc+set}" = set; then
12731 echo $ECHO_N "(cached) $ECHO_C" >&6
12732 else
12733 cat >conftest.$ac_ext <<_ACEOF
12734 /* confdefs.h. */
12735 _ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12739 $ac_includes_default
12740 int
12741 main ()
12742 {
12743 #ifndef malloc
12744 char *p = (char *) malloc;
12745 #endif
12746
12747 ;
12748 return 0;
12749 }
12750 _ACEOF
12751 rm -f conftest.$ac_objext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12753 (eval $ac_compile) 2>conftest.er1
12754 ac_status=$?
12755 grep -v '^ *+' conftest.er1 >conftest.err
12756 rm -f conftest.er1
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
12760 { ac_try='test -z "$ac_c_werror_flag"
12761 || test ! -s conftest.err'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; } &&
12767 { ac_try='test -s conftest.$ac_objext'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; }; then
12773 ac_cv_have_decl_malloc=yes
12774 else
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12777
12778 ac_cv_have_decl_malloc=no
12779 fi
12780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12781 fi
12782 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
12783 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
12784 if test $ac_cv_have_decl_malloc = yes; then
12785
12786 cat >>confdefs.h <<_ACEOF
12787 #define HAVE_DECL_MALLOC 1
12788 _ACEOF
12789
12790
12791 else
12792 cat >>confdefs.h <<_ACEOF
12793 #define HAVE_DECL_MALLOC 0
12794 _ACEOF
12795
12796
12797 fi
12798 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
12799 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
12800 if test "${ac_cv_have_decl_realloc+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 else
12803 cat >conftest.$ac_ext <<_ACEOF
12804 /* confdefs.h. */
12805 _ACEOF
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h. */
12809 $ac_includes_default
12810 int
12811 main ()
12812 {
12813 #ifndef realloc
12814 char *p = (char *) realloc;
12815 #endif
12816
12817 ;
12818 return 0;
12819 }
12820 _ACEOF
12821 rm -f conftest.$ac_objext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823 (eval $ac_compile) 2>conftest.er1
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } &&
12830 { ac_try='test -z "$ac_c_werror_flag"
12831 || test ! -s conftest.err'
12832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12833 (eval $ac_try) 2>&5
12834 ac_status=$?
12835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12836 (exit $ac_status); }; } &&
12837 { ac_try='test -s conftest.$ac_objext'
12838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12839 (eval $ac_try) 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12843 ac_cv_have_decl_realloc=yes
12844 else
12845 echo "$as_me: failed program was:" >&5
12846 sed 's/^/| /' conftest.$ac_ext >&5
12847
12848 ac_cv_have_decl_realloc=no
12849 fi
12850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12851 fi
12852 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
12853 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
12854 if test $ac_cv_have_decl_realloc = yes; then
12855
12856 cat >>confdefs.h <<_ACEOF
12857 #define HAVE_DECL_REALLOC 1
12858 _ACEOF
12859
12860
12861 else
12862 cat >>confdefs.h <<_ACEOF
12863 #define HAVE_DECL_REALLOC 0
12864 _ACEOF
12865
12866
12867 fi
12868 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
12869 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
12870 if test "${ac_cv_have_decl_strerror+set}" = set; then
12871 echo $ECHO_N "(cached) $ECHO_C" >&6
12872 else
12873 cat >conftest.$ac_ext <<_ACEOF
12874 /* confdefs.h. */
12875 _ACEOF
12876 cat confdefs.h >>conftest.$ac_ext
12877 cat >>conftest.$ac_ext <<_ACEOF
12878 /* end confdefs.h. */
12879 $ac_includes_default
12880 int
12881 main ()
12882 {
12883 #ifndef strerror
12884 char *p = (char *) strerror;
12885 #endif
12886
12887 ;
12888 return 0;
12889 }
12890 _ACEOF
12891 rm -f conftest.$ac_objext
12892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12893 (eval $ac_compile) 2>conftest.er1
12894 ac_status=$?
12895 grep -v '^ *+' conftest.er1 >conftest.err
12896 rm -f conftest.er1
12897 cat conftest.err >&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); } &&
12900 { ac_try='test -z "$ac_c_werror_flag"
12901 || test ! -s conftest.err'
12902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12903 (eval $ac_try) 2>&5
12904 ac_status=$?
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; } &&
12907 { ac_try='test -s conftest.$ac_objext'
12908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12909 (eval $ac_try) 2>&5
12910 ac_status=$?
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); }; }; then
12913 ac_cv_have_decl_strerror=yes
12914 else
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12917
12918 ac_cv_have_decl_strerror=no
12919 fi
12920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12921 fi
12922 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
12923 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
12924 if test $ac_cv_have_decl_strerror = yes; then
12925
12926 cat >>confdefs.h <<_ACEOF
12927 #define HAVE_DECL_STRERROR 1
12928 _ACEOF
12929
12930
12931 else
12932 cat >>confdefs.h <<_ACEOF
12933 #define HAVE_DECL_STRERROR 0
12934 _ACEOF
12935
12936
12937 fi
12938 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12939 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
12940 if test "${ac_cv_have_decl_strstr+set}" = set; then
12941 echo $ECHO_N "(cached) $ECHO_C" >&6
12942 else
12943 cat >conftest.$ac_ext <<_ACEOF
12944 /* confdefs.h. */
12945 _ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12949 $ac_includes_default
12950 int
12951 main ()
12952 {
12953 #ifndef strstr
12954 char *p = (char *) strstr;
12955 #endif
12956
12957 ;
12958 return 0;
12959 }
12960 _ACEOF
12961 rm -f conftest.$ac_objext
12962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12963 (eval $ac_compile) 2>conftest.er1
12964 ac_status=$?
12965 grep -v '^ *+' conftest.er1 >conftest.err
12966 rm -f conftest.er1
12967 cat conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } &&
12970 { ac_try='test -z "$ac_c_werror_flag"
12971 || test ! -s conftest.err'
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; } &&
12977 { ac_try='test -s conftest.$ac_objext'
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 ac_cv_have_decl_strstr=yes
12984 else
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12987
12988 ac_cv_have_decl_strstr=no
12989 fi
12990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12991 fi
12992 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12993 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12994 if test $ac_cv_have_decl_strstr = yes; then
12995
12996 cat >>confdefs.h <<_ACEOF
12997 #define HAVE_DECL_STRSTR 1
12998 _ACEOF
12999
13000
13001 else
13002 cat >>confdefs.h <<_ACEOF
13003 #define HAVE_DECL_STRSTR 0
13004 _ACEOF
13005
13006
13007 fi
13008 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13009 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13010 if test "${ac_cv_have_decl_getopt+set}" = set; then
13011 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 else
13013 cat >conftest.$ac_ext <<_ACEOF
13014 /* confdefs.h. */
13015 _ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13019 $ac_includes_default
13020 int
13021 main ()
13022 {
13023 #ifndef getopt
13024 char *p = (char *) getopt;
13025 #endif
13026
13027 ;
13028 return 0;
13029 }
13030 _ACEOF
13031 rm -f conftest.$ac_objext
13032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13033 (eval $ac_compile) 2>conftest.er1
13034 ac_status=$?
13035 grep -v '^ *+' conftest.er1 >conftest.err
13036 rm -f conftest.er1
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } &&
13040 { ac_try='test -z "$ac_c_werror_flag"
13041 || test ! -s conftest.err'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; } &&
13047 { ac_try='test -s conftest.$ac_objext'
13048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13049 (eval $ac_try) 2>&5
13050 ac_status=$?
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); }; }; then
13053 ac_cv_have_decl_getopt=yes
13054 else
13055 echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13057
13058 ac_cv_have_decl_getopt=no
13059 fi
13060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13061 fi
13062 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13063 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13064 if test $ac_cv_have_decl_getopt = yes; then
13065
13066 cat >>confdefs.h <<_ACEOF
13067 #define HAVE_DECL_GETOPT 1
13068 _ACEOF
13069
13070
13071 else
13072 cat >>confdefs.h <<_ACEOF
13073 #define HAVE_DECL_GETOPT 0
13074 _ACEOF
13075
13076
13077 fi
13078 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13079 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13080 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083 cat >conftest.$ac_ext <<_ACEOF
13084 /* confdefs.h. */
13085 _ACEOF
13086 cat confdefs.h >>conftest.$ac_ext
13087 cat >>conftest.$ac_ext <<_ACEOF
13088 /* end confdefs.h. */
13089 $ac_includes_default
13090 int
13091 main ()
13092 {
13093 #ifndef snprintf
13094 char *p = (char *) snprintf;
13095 #endif
13096
13097 ;
13098 return 0;
13099 }
13100 _ACEOF
13101 rm -f conftest.$ac_objext
13102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13103 (eval $ac_compile) 2>conftest.er1
13104 ac_status=$?
13105 grep -v '^ *+' conftest.er1 >conftest.err
13106 rm -f conftest.er1
13107 cat conftest.err >&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
13110 { ac_try='test -z "$ac_c_werror_flag"
13111 || test ! -s conftest.err'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; } &&
13117 { ac_try='test -s conftest.$ac_objext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 ac_cv_have_decl_snprintf=yes
13124 else
13125 echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13127
13128 ac_cv_have_decl_snprintf=no
13129 fi
13130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13131 fi
13132 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13133 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13134 if test $ac_cv_have_decl_snprintf = yes; then
13135
13136 cat >>confdefs.h <<_ACEOF
13137 #define HAVE_DECL_SNPRINTF 1
13138 _ACEOF
13139
13140
13141 else
13142 cat >>confdefs.h <<_ACEOF
13143 #define HAVE_DECL_SNPRINTF 0
13144 _ACEOF
13145
13146
13147 fi
13148 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13149 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13150 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13151 echo $ECHO_N "(cached) $ECHO_C" >&6
13152 else
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h. */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 $ac_includes_default
13160 int
13161 main ()
13162 {
13163 #ifndef vsnprintf
13164 char *p = (char *) vsnprintf;
13165 #endif
13166
13167 ;
13168 return 0;
13169 }
13170 _ACEOF
13171 rm -f conftest.$ac_objext
13172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13173 (eval $ac_compile) 2>conftest.er1
13174 ac_status=$?
13175 grep -v '^ *+' conftest.er1 >conftest.err
13176 rm -f conftest.er1
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try='test -z "$ac_c_werror_flag"
13181 || test ! -s conftest.err'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13184 ac_status=$?
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; } &&
13187 { ac_try='test -s conftest.$ac_objext'
13188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189 (eval $ac_try) 2>&5
13190 ac_status=$?
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; }; then
13193 ac_cv_have_decl_vsnprintf=yes
13194 else
13195 echo "$as_me: failed program was:" >&5
13196 sed 's/^/| /' conftest.$ac_ext >&5
13197
13198 ac_cv_have_decl_vsnprintf=no
13199 fi
13200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13201 fi
13202 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13203 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13204 if test $ac_cv_have_decl_vsnprintf = yes; then
13205
13206 cat >>confdefs.h <<_ACEOF
13207 #define HAVE_DECL_VSNPRINTF 1
13208 _ACEOF
13209
13210
13211 else
13212 cat >>confdefs.h <<_ACEOF
13213 #define HAVE_DECL_VSNPRINTF 0
13214 _ACEOF
13215
13216
13217 fi
13218
13219
13220
13221 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13222 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13223 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 else
13226 cat >conftest.$ac_ext <<_ACEOF
13227 /* confdefs.h. */
13228 _ACEOF
13229 cat confdefs.h >>conftest.$ac_ext
13230 cat >>conftest.$ac_ext <<_ACEOF
13231 /* end confdefs.h. */
13232 #include <locale.h>
13233 int
13234 main ()
13235 {
13236 return LC_MESSAGES
13237 ;
13238 return 0;
13239 }
13240 _ACEOF
13241 rm -f conftest.$ac_objext conftest$ac_exeext
13242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13243 (eval $ac_link) 2>conftest.er1
13244 ac_status=$?
13245 grep -v '^ *+' conftest.er1 >conftest.err
13246 rm -f conftest.er1
13247 cat conftest.err >&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
13250 { ac_try='test -z "$ac_c_werror_flag"
13251 || test ! -s conftest.err'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13254 ac_status=$?
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try='test -s conftest$ac_exeext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13260 ac_status=$?
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 am_cv_val_LC_MESSAGES=yes
13264 else
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13267
13268 am_cv_val_LC_MESSAGES=no
13269 fi
13270 rm -f conftest.err conftest.$ac_objext \
13271 conftest$ac_exeext conftest.$ac_ext
13272 fi
13273 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13274 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13275 if test $am_cv_val_LC_MESSAGES = yes; then
13276
13277 cat >>confdefs.h <<\_ACEOF
13278 #define HAVE_LC_MESSAGES 1
13279 _ACEOF
13280
13281 fi
13282
13283
13284 # ----------------------- #
13285 # Checks for structures. #
13286 # ----------------------- #
13287
13288 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13289 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13290 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13292 else
13293 cat >conftest.$ac_ext <<_ACEOF
13294 /* confdefs.h. */
13295 _ACEOF
13296 cat confdefs.h >>conftest.$ac_ext
13297 cat >>conftest.$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13299 $ac_includes_default
13300 int
13301 main ()
13302 {
13303 static struct stat ac_aggr;
13304 if (ac_aggr.st_blocks)
13305 return 0;
13306 ;
13307 return 0;
13308 }
13309 _ACEOF
13310 rm -f conftest.$ac_objext
13311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13312 (eval $ac_compile) 2>conftest.er1
13313 ac_status=$?
13314 grep -v '^ *+' conftest.er1 >conftest.err
13315 rm -f conftest.er1
13316 cat conftest.err >&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); } &&
13319 { ac_try='test -z "$ac_c_werror_flag"
13320 || test ! -s conftest.err'
13321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13322 (eval $ac_try) 2>&5
13323 ac_status=$?
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); }; } &&
13326 { ac_try='test -s conftest.$ac_objext'
13327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13328 (eval $ac_try) 2>&5
13329 ac_status=$?
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
13332 ac_cv_member_struct_stat_st_blocks=yes
13333 else
13334 echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13336
13337 cat >conftest.$ac_ext <<_ACEOF
13338 /* confdefs.h. */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13343 $ac_includes_default
13344 int
13345 main ()
13346 {
13347 static struct stat ac_aggr;
13348 if (sizeof ac_aggr.st_blocks)
13349 return 0;
13350 ;
13351 return 0;
13352 }
13353 _ACEOF
13354 rm -f conftest.$ac_objext
13355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13356 (eval $ac_compile) 2>conftest.er1
13357 ac_status=$?
13358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -z "$ac_c_werror_flag"
13364 || test ! -s conftest.err'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; } &&
13370 { ac_try='test -s conftest.$ac_objext'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_cv_member_struct_stat_st_blocks=yes
13377 else
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13380
13381 ac_cv_member_struct_stat_st_blocks=no
13382 fi
13383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13384 fi
13385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13386 fi
13387 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13388 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13389 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13390
13391 cat >>confdefs.h <<_ACEOF
13392 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13393 _ACEOF
13394
13395
13396 fi
13397 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13398 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13399 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 else
13402 cat >conftest.$ac_ext <<_ACEOF
13403 /* confdefs.h. */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13408 $ac_includes_default
13409 int
13410 main ()
13411 {
13412 static struct stat ac_aggr;
13413 if (ac_aggr.st_blksize)
13414 return 0;
13415 ;
13416 return 0;
13417 }
13418 _ACEOF
13419 rm -f conftest.$ac_objext
13420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13421 (eval $ac_compile) 2>conftest.er1
13422 ac_status=$?
13423 grep -v '^ *+' conftest.er1 >conftest.err
13424 rm -f conftest.er1
13425 cat conftest.err >&5
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); } &&
13428 { ac_try='test -z "$ac_c_werror_flag"
13429 || test ! -s conftest.err'
13430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; } &&
13435 { ac_try='test -s conftest.$ac_objext'
13436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13437 (eval $ac_try) 2>&5
13438 ac_status=$?
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13441 ac_cv_member_struct_stat_st_blksize=yes
13442 else
13443 echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13445
13446 cat >conftest.$ac_ext <<_ACEOF
13447 /* confdefs.h. */
13448 _ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h. */
13452 $ac_includes_default
13453 int
13454 main ()
13455 {
13456 static struct stat ac_aggr;
13457 if (sizeof ac_aggr.st_blksize)
13458 return 0;
13459 ;
13460 return 0;
13461 }
13462 _ACEOF
13463 rm -f conftest.$ac_objext
13464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13465 (eval $ac_compile) 2>conftest.er1
13466 ac_status=$?
13467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -z "$ac_c_werror_flag"
13473 || test ! -s conftest.err'
13474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13475 (eval $ac_try) 2>&5
13476 ac_status=$?
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); }; } &&
13479 { ac_try='test -s conftest.$ac_objext'
13480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13481 (eval $ac_try) 2>&5
13482 ac_status=$?
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); }; }; then
13485 ac_cv_member_struct_stat_st_blksize=yes
13486 else
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13489
13490 ac_cv_member_struct_stat_st_blksize=no
13491 fi
13492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13493 fi
13494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13495 fi
13496 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13497 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13498 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13499
13500 cat >>confdefs.h <<_ACEOF
13501 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13502 _ACEOF
13503
13504
13505 fi
13506
13507
13508 # ------------------ #
13509 # Checks for types. #
13510 # ------------------ #
13511
13512 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13513 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13514 if test "${ac_cv_type_signal+set}" = set; then
13515 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 else
13517 cat >conftest.$ac_ext <<_ACEOF
13518 /* confdefs.h. */
13519 _ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 #include <sys/types.h>
13524 #include <signal.h>
13525 #ifdef signal
13526 # undef signal
13527 #endif
13528 #ifdef __cplusplus
13529 extern "C" void (*signal (int, void (*)(int)))(int);
13530 #else
13531 void (*signal ()) ();
13532 #endif
13533
13534 int
13535 main ()
13536 {
13537 int i;
13538 ;
13539 return 0;
13540 }
13541 _ACEOF
13542 rm -f conftest.$ac_objext
13543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13544 (eval $ac_compile) 2>conftest.er1
13545 ac_status=$?
13546 grep -v '^ *+' conftest.er1 >conftest.err
13547 rm -f conftest.er1
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } &&
13551 { ac_try='test -z "$ac_c_werror_flag"
13552 || test ! -s conftest.err'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; } &&
13558 { ac_try='test -s conftest.$ac_objext'
13559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; }; then
13564 ac_cv_type_signal=void
13565 else
13566 echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13568
13569 ac_cv_type_signal=int
13570 fi
13571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13572 fi
13573 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13574 echo "${ECHO_T}$ac_cv_type_signal" >&6
13575
13576 cat >>confdefs.h <<_ACEOF
13577 #define RETSIGTYPE $ac_cv_type_signal
13578 _ACEOF
13579
13580
13581 echo "$as_me:$LINENO: checking for socklen_t" >&5
13582 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13583 if test "${ac_cv_type_socklen_t+set}" = set; then
13584 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586 cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h. */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h. */
13592 #include <sys/types.h>
13593 #include <sys/socket.h>
13594
13595
13596 int
13597 main ()
13598 {
13599 if ((socklen_t *) 0)
13600 return 0;
13601 if (sizeof (socklen_t))
13602 return 0;
13603 ;
13604 return 0;
13605 }
13606 _ACEOF
13607 rm -f conftest.$ac_objext
13608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13609 (eval $ac_compile) 2>conftest.er1
13610 ac_status=$?
13611 grep -v '^ *+' conftest.er1 >conftest.err
13612 rm -f conftest.er1
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
13616 { ac_try='test -z "$ac_c_werror_flag"
13617 || test ! -s conftest.err'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13620 ac_status=$?
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; } &&
13623 { ac_try='test -s conftest.$ac_objext'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13626 ac_status=$?
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; }; then
13629 ac_cv_type_socklen_t=yes
13630 else
13631 echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13633
13634 ac_cv_type_socklen_t=no
13635 fi
13636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13637 fi
13638 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13639 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13640 if test $ac_cv_type_socklen_t = yes; then
13641
13642 cat >>confdefs.h <<_ACEOF
13643 #define HAVE_SOCKLEN_T 1
13644 _ACEOF
13645
13646
13647 fi
13648
13649
13650 # ------------------------------------- #
13651 # Checks for compiler characteristics. #
13652 # ------------------------------------- #
13653
13654 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13655 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13656 if test "${ac_cv_c_const+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 else
13659 cat >conftest.$ac_ext <<_ACEOF
13660 /* confdefs.h. */
13661 _ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665
13666 int
13667 main ()
13668 {
13669 /* FIXME: Include the comments suggested by Paul. */
13670 #ifndef __cplusplus
13671 /* Ultrix mips cc rejects this. */
13672 typedef int charset[2];
13673 const charset x;
13674 /* SunOS 4.1.1 cc rejects this. */
13675 char const *const *ccp;
13676 char **p;
13677 /* NEC SVR4.0.2 mips cc rejects this. */
13678 struct point {int x, y;};
13679 static struct point const zero = {0,0};
13680 /* AIX XL C 1.02.0.0 rejects this.
13681 It does not let you subtract one const X* pointer from another in
13682 an arm of an if-expression whose if-part is not a constant
13683 expression */
13684 const char *g = "string";
13685 ccp = &g + (g ? g-g : 0);
13686 /* HPUX 7.0 cc rejects these. */
13687 ++ccp;
13688 p = (char**) ccp;
13689 ccp = (char const *const *) p;
13690 { /* SCO 3.2v4 cc rejects this. */
13691 char *t;
13692 char const *s = 0 ? (char *) 0 : (char const *) 0;
13693
13694 *t++ = 0;
13695 }
13696 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13697 int x[] = {25, 17};
13698 const int *foo = &x[0];
13699 ++foo;
13700 }
13701 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13702 typedef const int *iptr;
13703 iptr p = 0;
13704 ++p;
13705 }
13706 { /* AIX XL C 1.02.0.0 rejects this saying
13707 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13708 struct s { int j; const int *ap[3]; };
13709 struct s *b; b->j = 5;
13710 }
13711 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13712 const int foo = 10;
13713 }
13714 #endif
13715
13716 ;
13717 return 0;
13718 }
13719 _ACEOF
13720 rm -f conftest.$ac_objext
13721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13722 (eval $ac_compile) 2>conftest.er1
13723 ac_status=$?
13724 grep -v '^ *+' conftest.er1 >conftest.err
13725 rm -f conftest.er1
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try='test -z "$ac_c_werror_flag"
13730 || test ! -s conftest.err'
13731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13732 (eval $ac_try) 2>&5
13733 ac_status=$?
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); }; } &&
13736 { ac_try='test -s conftest.$ac_objext'
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; }; then
13742 ac_cv_c_const=yes
13743 else
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13746
13747 ac_cv_c_const=no
13748 fi
13749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13750 fi
13751 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13752 echo "${ECHO_T}$ac_cv_c_const" >&6
13753 if test $ac_cv_c_const = no; then
13754
13755 cat >>confdefs.h <<\_ACEOF
13756 #define const
13757 _ACEOF
13758
13759 fi
13760
13761 echo "$as_me:$LINENO: checking for inline" >&5
13762 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13763 if test "${ac_cv_c_inline+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 else
13766 ac_cv_c_inline=no
13767 for ac_kw in inline __inline__ __inline; do
13768 cat >conftest.$ac_ext <<_ACEOF
13769 /* confdefs.h. */
13770 _ACEOF
13771 cat confdefs.h >>conftest.$ac_ext
13772 cat >>conftest.$ac_ext <<_ACEOF
13773 /* end confdefs.h. */
13774 #ifndef __cplusplus
13775 typedef int foo_t;
13776 static $ac_kw foo_t static_foo () {return 0; }
13777 $ac_kw foo_t foo () {return 0; }
13778 #endif
13779
13780 _ACEOF
13781 rm -f conftest.$ac_objext
13782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13783 (eval $ac_compile) 2>conftest.er1
13784 ac_status=$?
13785 grep -v '^ *+' conftest.er1 >conftest.err
13786 rm -f conftest.er1
13787 cat conftest.err >&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } &&
13790 { ac_try='test -z "$ac_c_werror_flag"
13791 || test ! -s conftest.err'
13792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13793 (eval $ac_try) 2>&5
13794 ac_status=$?
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); }; } &&
13797 { ac_try='test -s conftest.$ac_objext'
13798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13799 (eval $ac_try) 2>&5
13800 ac_status=$?
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); }; }; then
13803 ac_cv_c_inline=$ac_kw; break
13804 else
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13807
13808 fi
13809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13810 done
13811
13812 fi
13813 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13814 echo "${ECHO_T}$ac_cv_c_inline" >&6
13815
13816
13817 case $ac_cv_c_inline in
13818 inline | yes) ;;
13819 *)
13820 case $ac_cv_c_inline in
13821 no) ac_val=;;
13822 *) ac_val=$ac_cv_c_inline;;
13823 esac
13824 cat >>confdefs.h <<_ACEOF
13825 #ifndef __cplusplus
13826 #define inline $ac_val
13827 #endif
13828 _ACEOF
13829 ;;
13830 esac
13831
13832 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13833 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13834 if test "${ac_cv_c_bigendian+set}" = set; then
13835 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 else
13837 # See if sys/param.h defines the BYTE_ORDER macro.
13838 cat >conftest.$ac_ext <<_ACEOF
13839 /* confdefs.h. */
13840 _ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h. */
13844 #include <sys/types.h>
13845 #include <sys/param.h>
13846
13847 int
13848 main ()
13849 {
13850 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13851 bogus endian macros
13852 #endif
13853
13854 ;
13855 return 0;
13856 }
13857 _ACEOF
13858 rm -f conftest.$ac_objext
13859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13860 (eval $ac_compile) 2>conftest.er1
13861 ac_status=$?
13862 grep -v '^ *+' conftest.er1 >conftest.err
13863 rm -f conftest.er1
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } &&
13867 { ac_try='test -z "$ac_c_werror_flag"
13868 || test ! -s conftest.err'
13869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13870 (eval $ac_try) 2>&5
13871 ac_status=$?
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); }; } &&
13874 { ac_try='test -s conftest.$ac_objext'
13875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13876 (eval $ac_try) 2>&5
13877 ac_status=$?
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; }; then
13880 # It does; now see whether it defined to BIG_ENDIAN or not.
13881 cat >conftest.$ac_ext <<_ACEOF
13882 /* confdefs.h. */
13883 _ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13887 #include <sys/types.h>
13888 #include <sys/param.h>
13889
13890 int
13891 main ()
13892 {
13893 #if BYTE_ORDER != BIG_ENDIAN
13894 not big endian
13895 #endif
13896
13897 ;
13898 return 0;
13899 }
13900 _ACEOF
13901 rm -f conftest.$ac_objext
13902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13903 (eval $ac_compile) 2>conftest.er1
13904 ac_status=$?
13905 grep -v '^ *+' conftest.er1 >conftest.err
13906 rm -f conftest.er1
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } &&
13910 { ac_try='test -z "$ac_c_werror_flag"
13911 || test ! -s conftest.err'
13912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; } &&
13917 { ac_try='test -s conftest.$ac_objext'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; }; then
13923 ac_cv_c_bigendian=yes
13924 else
13925 echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13927
13928 ac_cv_c_bigendian=no
13929 fi
13930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13931 else
13932 echo "$as_me: failed program was:" >&5
13933 sed 's/^/| /' conftest.$ac_ext >&5
13934
13935 # It does not; compile a test program.
13936 if test "$cross_compiling" = yes; then
13937 # try to guess the endianness by grepping values into an object file
13938 ac_cv_c_bigendian=unknown
13939 cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h. */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13946 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13947 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13948 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13949 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13950 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13951 int
13952 main ()
13953 {
13954 _ascii (); _ebcdic ();
13955 ;
13956 return 0;
13957 }
13958 _ACEOF
13959 rm -f conftest.$ac_objext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13961 (eval $ac_compile) 2>conftest.er1
13962 ac_status=$?
13963 grep -v '^ *+' conftest.er1 >conftest.err
13964 rm -f conftest.er1
13965 cat conftest.err >&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } &&
13968 { ac_try='test -z "$ac_c_werror_flag"
13969 || test ! -s conftest.err'
13970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971 (eval $ac_try) 2>&5
13972 ac_status=$?
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); }; } &&
13975 { ac_try='test -s conftest.$ac_objext'
13976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977 (eval $ac_try) 2>&5
13978 ac_status=$?
13979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); }; }; then
13981 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13982 ac_cv_c_bigendian=yes
13983 fi
13984 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13985 if test "$ac_cv_c_bigendian" = unknown; then
13986 ac_cv_c_bigendian=no
13987 else
13988 # finding both strings is unlikely to happen, but who knows?
13989 ac_cv_c_bigendian=unknown
13990 fi
13991 fi
13992 else
13993 echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13995
13996 fi
13997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13998 else
13999 cat >conftest.$ac_ext <<_ACEOF
14000 /* confdefs.h. */
14001 _ACEOF
14002 cat confdefs.h >>conftest.$ac_ext
14003 cat >>conftest.$ac_ext <<_ACEOF
14004 /* end confdefs.h. */
14005 int
14006 main ()
14007 {
14008 /* Are we little or big endian? From Harbison&Steele. */
14009 union
14010 {
14011 long l;
14012 char c[sizeof (long)];
14013 } u;
14014 u.l = 1;
14015 exit (u.c[sizeof (long) - 1] == 1);
14016 }
14017 _ACEOF
14018 rm -f conftest$ac_exeext
14019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14020 (eval $ac_link) 2>&5
14021 ac_status=$?
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14026 ac_status=$?
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
14029 ac_cv_c_bigendian=no
14030 else
14031 echo "$as_me: program exited with status $ac_status" >&5
14032 echo "$as_me: failed program was:" >&5
14033 sed 's/^/| /' conftest.$ac_ext >&5
14034
14035 ( exit $ac_status )
14036 ac_cv_c_bigendian=yes
14037 fi
14038 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14039 fi
14040 fi
14041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14042 fi
14043 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14044 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14045 case $ac_cv_c_bigendian in
14046 yes)
14047
14048 cat >>confdefs.h <<\_ACEOF
14049 #define WORDS_BIGENDIAN 1
14050 _ACEOF
14051 ;;
14052 no)
14053 ;;
14054 *)
14055 { { echo "$as_me:$LINENO: error: unknown endianness
14056 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14057 echo "$as_me: error: unknown endianness
14058 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14059 { (exit 1); exit 1; }; } ;;
14060 esac
14061
14062
14063 # ------------------------------ #
14064 # Checks for library functions. #
14065 # ------------------------------ #
14066
14067 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14068 # for constant arguments. Useless!
14069 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14070 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14071 if test "${ac_cv_working_alloca_h+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 else
14074 cat >conftest.$ac_ext <<_ACEOF
14075 /* confdefs.h. */
14076 _ACEOF
14077 cat confdefs.h >>conftest.$ac_ext
14078 cat >>conftest.$ac_ext <<_ACEOF
14079 /* end confdefs.h. */
14080 #include <alloca.h>
14081 int
14082 main ()
14083 {
14084 char *p = (char *) alloca (2 * sizeof (int));
14085 ;
14086 return 0;
14087 }
14088 _ACEOF
14089 rm -f conftest.$ac_objext conftest$ac_exeext
14090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14091 (eval $ac_link) 2>conftest.er1
14092 ac_status=$?
14093 grep -v '^ *+' conftest.er1 >conftest.err
14094 rm -f conftest.er1
14095 cat conftest.err >&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); } &&
14098 { ac_try='test -z "$ac_c_werror_flag"
14099 || test ! -s conftest.err'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; } &&
14105 { ac_try='test -s conftest$ac_exeext'
14106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14107 (eval $ac_try) 2>&5
14108 ac_status=$?
14109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14110 (exit $ac_status); }; }; then
14111 ac_cv_working_alloca_h=yes
14112 else
14113 echo "$as_me: failed program was:" >&5
14114 sed 's/^/| /' conftest.$ac_ext >&5
14115
14116 ac_cv_working_alloca_h=no
14117 fi
14118 rm -f conftest.err conftest.$ac_objext \
14119 conftest$ac_exeext conftest.$ac_ext
14120 fi
14121 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14122 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14123 if test $ac_cv_working_alloca_h = yes; then
14124
14125 cat >>confdefs.h <<\_ACEOF
14126 #define HAVE_ALLOCA_H 1
14127 _ACEOF
14128
14129 fi
14130
14131 echo "$as_me:$LINENO: checking for alloca" >&5
14132 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14133 if test "${ac_cv_func_alloca_works+set}" = set; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14135 else
14136 cat >conftest.$ac_ext <<_ACEOF
14137 /* confdefs.h. */
14138 _ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14142 #ifdef __GNUC__
14143 # define alloca __builtin_alloca
14144 #else
14145 # ifdef _MSC_VER
14146 # include <malloc.h>
14147 # define alloca _alloca
14148 # else
14149 # if HAVE_ALLOCA_H
14150 # include <alloca.h>
14151 # else
14152 # ifdef _AIX
14153 #pragma alloca
14154 # else
14155 # ifndef alloca /* predefined by HP cc +Olibcalls */
14156 char *alloca ();
14157 # endif
14158 # endif
14159 # endif
14160 # endif
14161 #endif
14162
14163 int
14164 main ()
14165 {
14166 char *p = (char *) alloca (1);
14167 ;
14168 return 0;
14169 }
14170 _ACEOF
14171 rm -f conftest.$ac_objext conftest$ac_exeext
14172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14173 (eval $ac_link) 2>conftest.er1
14174 ac_status=$?
14175 grep -v '^ *+' conftest.er1 >conftest.err
14176 rm -f conftest.er1
14177 cat conftest.err >&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
14180 { ac_try='test -z "$ac_c_werror_flag"
14181 || test ! -s conftest.err'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; } &&
14187 { ac_try='test -s conftest$ac_exeext'
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14190 ac_status=$?
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 ac_cv_func_alloca_works=yes
14194 else
14195 echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14197
14198 ac_cv_func_alloca_works=no
14199 fi
14200 rm -f conftest.err conftest.$ac_objext \
14201 conftest$ac_exeext conftest.$ac_ext
14202 fi
14203 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14204 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14205
14206 if test $ac_cv_func_alloca_works = yes; then
14207
14208 cat >>confdefs.h <<\_ACEOF
14209 #define HAVE_ALLOCA 1
14210 _ACEOF
14211
14212 else
14213 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14214 # that cause trouble. Some versions do not even contain alloca or
14215 # contain a buggy version. If you still want to use their alloca,
14216 # use ar to extract alloca.o from them instead of compiling alloca.c.
14217
14218 ALLOCA=alloca.$ac_objext
14219
14220 cat >>confdefs.h <<\_ACEOF
14221 #define C_ALLOCA 1
14222 _ACEOF
14223
14224
14225 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14226 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14227 if test "${ac_cv_os_cray+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 else
14230 cat >conftest.$ac_ext <<_ACEOF
14231 /* confdefs.h. */
14232 _ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 #if defined(CRAY) && ! defined(CRAY2)
14237 webecray
14238 #else
14239 wenotbecray
14240 #endif
14241
14242 _ACEOF
14243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14244 $EGREP "webecray" >/dev/null 2>&1; then
14245 ac_cv_os_cray=yes
14246 else
14247 ac_cv_os_cray=no
14248 fi
14249 rm -f conftest*
14250
14251 fi
14252 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14253 echo "${ECHO_T}$ac_cv_os_cray" >&6
14254 if test $ac_cv_os_cray = yes; then
14255 for ac_func in _getb67 GETB67 getb67; do
14256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14257 echo "$as_me:$LINENO: checking for $ac_func" >&5
14258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14259 if eval "test \"\${$as_ac_var+set}\" = set"; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 else
14262 cat >conftest.$ac_ext <<_ACEOF
14263 /* confdefs.h. */
14264 _ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14270 #define $ac_func innocuous_$ac_func
14271
14272 /* System header to define __stub macros and hopefully few prototypes,
14273 which can conflict with char $ac_func (); below.
14274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14275 <limits.h> exists even on freestanding compilers. */
14276
14277 #ifdef __STDC__
14278 # include <limits.h>
14279 #else
14280 # include <assert.h>
14281 #endif
14282
14283 #undef $ac_func
14284
14285 /* Override any gcc2 internal prototype to avoid an error. */
14286 #ifdef __cplusplus
14287 extern "C"
14288 {
14289 #endif
14290 /* We use char because int might match the return type of a gcc2
14291 builtin and then its argument prototype would still apply. */
14292 char $ac_func ();
14293 /* The GNU C library defines this for functions which it implements
14294 to always fail with ENOSYS. Some functions are actually named
14295 something starting with __ and the normal name is an alias. */
14296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14297 choke me
14298 #else
14299 char (*f) () = $ac_func;
14300 #endif
14301 #ifdef __cplusplus
14302 }
14303 #endif
14304
14305 int
14306 main ()
14307 {
14308 return f != $ac_func;
14309 ;
14310 return 0;
14311 }
14312 _ACEOF
14313 rm -f conftest.$ac_objext conftest$ac_exeext
14314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14315 (eval $ac_link) 2>conftest.er1
14316 ac_status=$?
14317 grep -v '^ *+' conftest.er1 >conftest.err
14318 rm -f conftest.er1
14319 cat conftest.err >&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 (exit $ac_status); } &&
14322 { ac_try='test -z "$ac_c_werror_flag"
14323 || test ! -s conftest.err'
14324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14325 (eval $ac_try) 2>&5
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest$ac_exeext'
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 eval "$as_ac_var=yes"
14336 else
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14339
14340 eval "$as_ac_var=no"
14341 fi
14342 rm -f conftest.err conftest.$ac_objext \
14343 conftest$ac_exeext conftest.$ac_ext
14344 fi
14345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14347 if test `eval echo '${'$as_ac_var'}'` = yes; then
14348
14349 cat >>confdefs.h <<_ACEOF
14350 #define CRAY_STACKSEG_END $ac_func
14351 _ACEOF
14352
14353 break
14354 fi
14355
14356 done
14357 fi
14358
14359 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14360 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14361 if test "${ac_cv_c_stack_direction+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 else
14364 if test "$cross_compiling" = yes; then
14365 ac_cv_c_stack_direction=0
14366 else
14367 cat >conftest.$ac_ext <<_ACEOF
14368 /* confdefs.h. */
14369 _ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 int
14374 find_stack_direction ()
14375 {
14376 static char *addr = 0;
14377 auto char dummy;
14378 if (addr == 0)
14379 {
14380 addr = &dummy;
14381 return find_stack_direction ();
14382 }
14383 else
14384 return (&dummy > addr) ? 1 : -1;
14385 }
14386
14387 int
14388 main ()
14389 {
14390 exit (find_stack_direction () < 0);
14391 }
14392 _ACEOF
14393 rm -f conftest$ac_exeext
14394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14395 (eval $ac_link) 2>&5
14396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14400 (eval $ac_try) 2>&5
14401 ac_status=$?
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 ac_cv_c_stack_direction=1
14405 else
14406 echo "$as_me: program exited with status $ac_status" >&5
14407 echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14409
14410 ( exit $ac_status )
14411 ac_cv_c_stack_direction=-1
14412 fi
14413 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14414 fi
14415 fi
14416 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14417 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14418
14419 cat >>confdefs.h <<_ACEOF
14420 #define STACK_DIRECTION $ac_cv_c_stack_direction
14421 _ACEOF
14422
14423
14424 fi
14425
14426
14427
14428 for ac_header in stdlib.h unistd.h
14429 do
14430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14431 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14432 echo "$as_me:$LINENO: checking for $ac_header" >&5
14433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 fi
14437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14439 else
14440 # Is the header compilable?
14441 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14443 cat >conftest.$ac_ext <<_ACEOF
14444 /* confdefs.h. */
14445 _ACEOF
14446 cat confdefs.h >>conftest.$ac_ext
14447 cat >>conftest.$ac_ext <<_ACEOF
14448 /* end confdefs.h. */
14449 $ac_includes_default
14450 #include <$ac_header>
14451 _ACEOF
14452 rm -f conftest.$ac_objext
14453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14454 (eval $ac_compile) 2>conftest.er1
14455 ac_status=$?
14456 grep -v '^ *+' conftest.er1 >conftest.err
14457 rm -f conftest.er1
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } &&
14461 { ac_try='test -z "$ac_c_werror_flag"
14462 || test ! -s conftest.err'
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14465 ac_status=$?
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; } &&
14468 { ac_try='test -s conftest.$ac_objext'
14469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470 (eval $ac_try) 2>&5
14471 ac_status=$?
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; }; then
14474 ac_header_compiler=yes
14475 else
14476 echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14478
14479 ac_header_compiler=no
14480 fi
14481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14482 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14483 echo "${ECHO_T}$ac_header_compiler" >&6
14484
14485 # Is the header present?
14486 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14488 cat >conftest.$ac_ext <<_ACEOF
14489 /* confdefs.h. */
14490 _ACEOF
14491 cat confdefs.h >>conftest.$ac_ext
14492 cat >>conftest.$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14494 #include <$ac_header>
14495 _ACEOF
14496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14498 ac_status=$?
14499 grep -v '^ *+' conftest.er1 >conftest.err
14500 rm -f conftest.er1
14501 cat conftest.err >&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); } >/dev/null; then
14504 if test -s conftest.err; then
14505 ac_cpp_err=$ac_c_preproc_warn_flag
14506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14507 else
14508 ac_cpp_err=
14509 fi
14510 else
14511 ac_cpp_err=yes
14512 fi
14513 if test -z "$ac_cpp_err"; then
14514 ac_header_preproc=yes
14515 else
14516 echo "$as_me: failed program was:" >&5
14517 sed 's/^/| /' conftest.$ac_ext >&5
14518
14519 ac_header_preproc=no
14520 fi
14521 rm -f conftest.err conftest.$ac_ext
14522 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14523 echo "${ECHO_T}$ac_header_preproc" >&6
14524
14525 # So? What about this header?
14526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14527 yes:no: )
14528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14532 ac_header_preproc=yes
14533 ;;
14534 no:yes:* )
14535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14547 (
14548 cat <<\_ASBOX
14549 ## ------------------------------------------ ##
14550 ## Report this to the AC_PACKAGE_NAME lists. ##
14551 ## ------------------------------------------ ##
14552 _ASBOX
14553 ) |
14554 sed "s/^/$as_me: WARNING: /" >&2
14555 ;;
14556 esac
14557 echo "$as_me:$LINENO: checking for $ac_header" >&5
14558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562 eval "$as_ac_Header=\$ac_header_preproc"
14563 fi
14564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14566
14567 fi
14568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14569 cat >>confdefs.h <<_ACEOF
14570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14571 _ACEOF
14572
14573 fi
14574
14575 done
14576
14577
14578 for ac_func in getpagesize
14579 do
14580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14581 echo "$as_me:$LINENO: checking for $ac_func" >&5
14582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14583 if eval "test \"\${$as_ac_var+set}\" = set"; then
14584 echo $ECHO_N "(cached) $ECHO_C" >&6
14585 else
14586 cat >conftest.$ac_ext <<_ACEOF
14587 /* confdefs.h. */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14593 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14594 #define $ac_func innocuous_$ac_func
14595
14596 /* System header to define __stub macros and hopefully few prototypes,
14597 which can conflict with char $ac_func (); below.
14598 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14599 <limits.h> exists even on freestanding compilers. */
14600
14601 #ifdef __STDC__
14602 # include <limits.h>
14603 #else
14604 # include <assert.h>
14605 #endif
14606
14607 #undef $ac_func
14608
14609 /* Override any gcc2 internal prototype to avoid an error. */
14610 #ifdef __cplusplus
14611 extern "C"
14612 {
14613 #endif
14614 /* We use char because int might match the return type of a gcc2
14615 builtin and then its argument prototype would still apply. */
14616 char $ac_func ();
14617 /* The GNU C library defines this for functions which it implements
14618 to always fail with ENOSYS. Some functions are actually named
14619 something starting with __ and the normal name is an alias. */
14620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14621 choke me
14622 #else
14623 char (*f) () = $ac_func;
14624 #endif
14625 #ifdef __cplusplus
14626 }
14627 #endif
14628
14629 int
14630 main ()
14631 {
14632 return f != $ac_func;
14633 ;
14634 return 0;
14635 }
14636 _ACEOF
14637 rm -f conftest.$ac_objext conftest$ac_exeext
14638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14639 (eval $ac_link) 2>conftest.er1
14640 ac_status=$?
14641 grep -v '^ *+' conftest.er1 >conftest.err
14642 rm -f conftest.er1
14643 cat conftest.err >&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } &&
14646 { ac_try='test -z "$ac_c_werror_flag"
14647 || test ! -s conftest.err'
14648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14649 (eval $ac_try) 2>&5
14650 ac_status=$?
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); }; } &&
14653 { ac_try='test -s conftest$ac_exeext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14656 ac_status=$?
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 eval "$as_ac_var=yes"
14660 else
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14663
14664 eval "$as_ac_var=no"
14665 fi
14666 rm -f conftest.err conftest.$ac_objext \
14667 conftest$ac_exeext conftest.$ac_ext
14668 fi
14669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14671 if test `eval echo '${'$as_ac_var'}'` = yes; then
14672 cat >>confdefs.h <<_ACEOF
14673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14674 _ACEOF
14675
14676 fi
14677 done
14678
14679 echo "$as_me:$LINENO: checking for working mmap" >&5
14680 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14681 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14683 else
14684 if test "$cross_compiling" = yes; then
14685 ac_cv_func_mmap_fixed_mapped=no
14686 else
14687 cat >conftest.$ac_ext <<_ACEOF
14688 /* confdefs.h. */
14689 _ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 $ac_includes_default
14694 /* malloc might have been renamed as rpl_malloc. */
14695 #undef malloc
14696
14697 /* Thanks to Mike Haertel and Jim Avera for this test.
14698 Here is a matrix of mmap possibilities:
14699 mmap private not fixed
14700 mmap private fixed at somewhere currently unmapped
14701 mmap private fixed at somewhere already mapped
14702 mmap shared not fixed
14703 mmap shared fixed at somewhere currently unmapped
14704 mmap shared fixed at somewhere already mapped
14705 For private mappings, we should verify that changes cannot be read()
14706 back from the file, nor mmap's back from the file at a different
14707 address. (There have been systems where private was not correctly
14708 implemented like the infamous i386 svr4.0, and systems where the
14709 VM page cache was not coherent with the file system buffer cache
14710 like early versions of FreeBSD and possibly contemporary NetBSD.)
14711 For shared mappings, we should conversely verify that changes get
14712 propagated back to all the places they're supposed to be.
14713
14714 Grep wants private fixed already mapped.
14715 The main things grep needs to know about mmap are:
14716 * does it exist and is it safe to write into the mmap'd area
14717 * how to use it (BSD variants) */
14718
14719 #include <fcntl.h>
14720 #include <sys/mman.h>
14721
14722 #if !STDC_HEADERS && !HAVE_STDLIB_H
14723 char *malloc ();
14724 #endif
14725
14726 /* This mess was copied from the GNU getpagesize.h. */
14727 #if !HAVE_GETPAGESIZE
14728 /* Assume that all systems that can run configure have sys/param.h. */
14729 # if !HAVE_SYS_PARAM_H
14730 # define HAVE_SYS_PARAM_H 1
14731 # endif
14732
14733 # ifdef _SC_PAGESIZE
14734 # define getpagesize() sysconf(_SC_PAGESIZE)
14735 # else /* no _SC_PAGESIZE */
14736 # if HAVE_SYS_PARAM_H
14737 # include <sys/param.h>
14738 # ifdef EXEC_PAGESIZE
14739 # define getpagesize() EXEC_PAGESIZE
14740 # else /* no EXEC_PAGESIZE */
14741 # ifdef NBPG
14742 # define getpagesize() NBPG * CLSIZE
14743 # ifndef CLSIZE
14744 # define CLSIZE 1
14745 # endif /* no CLSIZE */
14746 # else /* no NBPG */
14747 # ifdef NBPC
14748 # define getpagesize() NBPC
14749 # else /* no NBPC */
14750 # ifdef PAGESIZE
14751 # define getpagesize() PAGESIZE
14752 # endif /* PAGESIZE */
14753 # endif /* no NBPC */
14754 # endif /* no NBPG */
14755 # endif /* no EXEC_PAGESIZE */
14756 # else /* no HAVE_SYS_PARAM_H */
14757 # define getpagesize() 8192 /* punt totally */
14758 # endif /* no HAVE_SYS_PARAM_H */
14759 # endif /* no _SC_PAGESIZE */
14760
14761 #endif /* no HAVE_GETPAGESIZE */
14762
14763 int
14764 main ()
14765 {
14766 char *data, *data2, *data3;
14767 int i, pagesize;
14768 int fd;
14769
14770 pagesize = getpagesize ();
14771
14772 /* First, make a file with some known garbage in it. */
14773 data = (char *) malloc (pagesize);
14774 if (!data)
14775 exit (1);
14776 for (i = 0; i < pagesize; ++i)
14777 *(data + i) = rand ();
14778 umask (0);
14779 fd = creat ("conftest.mmap", 0600);
14780 if (fd < 0)
14781 exit (1);
14782 if (write (fd, data, pagesize) != pagesize)
14783 exit (1);
14784 close (fd);
14785
14786 /* Next, try to mmap the file at a fixed address which already has
14787 something else allocated at it. If we can, also make sure that
14788 we see the same garbage. */
14789 fd = open ("conftest.mmap", O_RDWR);
14790 if (fd < 0)
14791 exit (1);
14792 data2 = (char *) malloc (2 * pagesize);
14793 if (!data2)
14794 exit (1);
14795 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14796 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14797 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14798 exit (1);
14799 for (i = 0; i < pagesize; ++i)
14800 if (*(data + i) != *(data2 + i))
14801 exit (1);
14802
14803 /* Finally, make sure that changes to the mapped area do not
14804 percolate back to the file as seen by read(). (This is a bug on
14805 some variants of i386 svr4.0.) */
14806 for (i = 0; i < pagesize; ++i)
14807 *(data2 + i) = *(data2 + i) + 1;
14808 data3 = (char *) malloc (pagesize);
14809 if (!data3)
14810 exit (1);
14811 if (read (fd, data3, pagesize) != pagesize)
14812 exit (1);
14813 for (i = 0; i < pagesize; ++i)
14814 if (*(data + i) != *(data3 + i))
14815 exit (1);
14816 close (fd);
14817 exit (0);
14818 }
14819 _ACEOF
14820 rm -f conftest$ac_exeext
14821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14822 (eval $ac_link) 2>&5
14823 ac_status=$?
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14828 ac_status=$?
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 ac_cv_func_mmap_fixed_mapped=yes
14832 else
14833 echo "$as_me: program exited with status $ac_status" >&5
14834 echo "$as_me: failed program was:" >&5
14835 sed 's/^/| /' conftest.$ac_ext >&5
14836
14837 ( exit $ac_status )
14838 ac_cv_func_mmap_fixed_mapped=no
14839 fi
14840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14841 fi
14842 fi
14843 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14844 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14845 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14846
14847 cat >>confdefs.h <<\_ACEOF
14848 #define HAVE_MMAP 1
14849 _ACEOF
14850
14851 fi
14852 rm -f conftest.mmap
14853
14854 echo "$as_me:$LINENO: checking for pid_t" >&5
14855 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14856 if test "${ac_cv_type_pid_t+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14858 else
14859 cat >conftest.$ac_ext <<_ACEOF
14860 /* confdefs.h. */
14861 _ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14865 $ac_includes_default
14866 int
14867 main ()
14868 {
14869 if ((pid_t *) 0)
14870 return 0;
14871 if (sizeof (pid_t))
14872 return 0;
14873 ;
14874 return 0;
14875 }
14876 _ACEOF
14877 rm -f conftest.$ac_objext
14878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14879 (eval $ac_compile) 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag"
14887 || test ! -s conftest.err'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14890 ac_status=$?
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; } &&
14893 { ac_try='test -s conftest.$ac_objext'
14894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14895 (eval $ac_try) 2>&5
14896 ac_status=$?
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); }; }; then
14899 ac_cv_type_pid_t=yes
14900 else
14901 echo "$as_me: failed program was:" >&5
14902 sed 's/^/| /' conftest.$ac_ext >&5
14903
14904 ac_cv_type_pid_t=no
14905 fi
14906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14907 fi
14908 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14909 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14910 if test $ac_cv_type_pid_t = yes; then
14911 :
14912 else
14913
14914 cat >>confdefs.h <<_ACEOF
14915 #define pid_t int
14916 _ACEOF
14917
14918 fi
14919
14920
14921
14922 for ac_header in unistd.h vfork.h
14923 do
14924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14925 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14926 echo "$as_me:$LINENO: checking for $ac_header" >&5
14927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 fi
14931 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14932 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14933 else
14934 # Is the header compilable?
14935 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14937 cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h. */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h. */
14943 $ac_includes_default
14944 #include <$ac_header>
14945 _ACEOF
14946 rm -f conftest.$ac_objext
14947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14948 (eval $ac_compile) 2>conftest.er1
14949 ac_status=$?
14950 grep -v '^ *+' conftest.er1 >conftest.err
14951 rm -f conftest.er1
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } &&
14955 { ac_try='test -z "$ac_c_werror_flag"
14956 || test ! -s conftest.err'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14959 ac_status=$?
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; } &&
14962 { ac_try='test -s conftest.$ac_objext'
14963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14965 ac_status=$?
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; }; then
14968 ac_header_compiler=yes
14969 else
14970 echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14972
14973 ac_header_compiler=no
14974 fi
14975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14977 echo "${ECHO_T}$ac_header_compiler" >&6
14978
14979 # Is the header present?
14980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14982 cat >conftest.$ac_ext <<_ACEOF
14983 /* confdefs.h. */
14984 _ACEOF
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14988 #include <$ac_header>
14989 _ACEOF
14990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } >/dev/null; then
14998 if test -s conftest.err; then
14999 ac_cpp_err=$ac_c_preproc_warn_flag
15000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15001 else
15002 ac_cpp_err=
15003 fi
15004 else
15005 ac_cpp_err=yes
15006 fi
15007 if test -z "$ac_cpp_err"; then
15008 ac_header_preproc=yes
15009 else
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013 ac_header_preproc=no
15014 fi
15015 rm -f conftest.err conftest.$ac_ext
15016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15017 echo "${ECHO_T}$ac_header_preproc" >&6
15018
15019 # So? What about this header?
15020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15021 yes:no: )
15022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15026 ac_header_preproc=yes
15027 ;;
15028 no:yes:* )
15029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15041 (
15042 cat <<\_ASBOX
15043 ## ------------------------------------------ ##
15044 ## Report this to the AC_PACKAGE_NAME lists. ##
15045 ## ------------------------------------------ ##
15046 _ASBOX
15047 ) |
15048 sed "s/^/$as_me: WARNING: /" >&2
15049 ;;
15050 esac
15051 echo "$as_me:$LINENO: checking for $ac_header" >&5
15052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 else
15056 eval "$as_ac_Header=\$ac_header_preproc"
15057 fi
15058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15060
15061 fi
15062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15063 cat >>confdefs.h <<_ACEOF
15064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15065 _ACEOF
15066
15067 fi
15068
15069 done
15070
15071
15072
15073 for ac_func in fork vfork
15074 do
15075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15076 echo "$as_me:$LINENO: checking for $ac_func" >&5
15077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15078 if eval "test \"\${$as_ac_var+set}\" = set"; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 else
15081 cat >conftest.$ac_ext <<_ACEOF
15082 /* confdefs.h. */
15083 _ACEOF
15084 cat confdefs.h >>conftest.$ac_ext
15085 cat >>conftest.$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15089 #define $ac_func innocuous_$ac_func
15090
15091 /* System header to define __stub macros and hopefully few prototypes,
15092 which can conflict with char $ac_func (); below.
15093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15094 <limits.h> exists even on freestanding compilers. */
15095
15096 #ifdef __STDC__
15097 # include <limits.h>
15098 #else
15099 # include <assert.h>
15100 #endif
15101
15102 #undef $ac_func
15103
15104 /* Override any gcc2 internal prototype to avoid an error. */
15105 #ifdef __cplusplus
15106 extern "C"
15107 {
15108 #endif
15109 /* We use char because int might match the return type of a gcc2
15110 builtin and then its argument prototype would still apply. */
15111 char $ac_func ();
15112 /* The GNU C library defines this for functions which it implements
15113 to always fail with ENOSYS. Some functions are actually named
15114 something starting with __ and the normal name is an alias. */
15115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15116 choke me
15117 #else
15118 char (*f) () = $ac_func;
15119 #endif
15120 #ifdef __cplusplus
15121 }
15122 #endif
15123
15124 int
15125 main ()
15126 {
15127 return f != $ac_func;
15128 ;
15129 return 0;
15130 }
15131 _ACEOF
15132 rm -f conftest.$ac_objext conftest$ac_exeext
15133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15134 (eval $ac_link) 2>conftest.er1
15135 ac_status=$?
15136 grep -v '^ *+' conftest.er1 >conftest.err
15137 rm -f conftest.er1
15138 cat conftest.err >&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } &&
15141 { ac_try='test -z "$ac_c_werror_flag"
15142 || test ! -s conftest.err'
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; } &&
15148 { ac_try='test -s conftest$ac_exeext'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }; then
15154 eval "$as_ac_var=yes"
15155 else
15156 echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15158
15159 eval "$as_ac_var=no"
15160 fi
15161 rm -f conftest.err conftest.$ac_objext \
15162 conftest$ac_exeext conftest.$ac_ext
15163 fi
15164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15165 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15166 if test `eval echo '${'$as_ac_var'}'` = yes; then
15167 cat >>confdefs.h <<_ACEOF
15168 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15169 _ACEOF
15170
15171 fi
15172 done
15173
15174 if test "x$ac_cv_func_fork" = xyes; then
15175 echo "$as_me:$LINENO: checking for working fork" >&5
15176 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15177 if test "${ac_cv_func_fork_works+set}" = set; then
15178 echo $ECHO_N "(cached) $ECHO_C" >&6
15179 else
15180 if test "$cross_compiling" = yes; then
15181 ac_cv_func_fork_works=cross
15182 else
15183 cat >conftest.$ac_ext <<_ACEOF
15184 /* By Ruediger Kuhlmann. */
15185 #include <sys/types.h>
15186 #if HAVE_UNISTD_H
15187 # include <unistd.h>
15188 #endif
15189 /* Some systems only have a dummy stub for fork() */
15190 int main ()
15191 {
15192 if (fork() < 0)
15193 exit (1);
15194 exit (0);
15195 }
15196 _ACEOF
15197 rm -f conftest$ac_exeext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15199 (eval $ac_link) 2>&5
15200 ac_status=$?
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15205 ac_status=$?
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; }; then
15208 ac_cv_func_fork_works=yes
15209 else
15210 echo "$as_me: program exited with status $ac_status" >&5
15211 echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.$ac_ext >&5
15213
15214 ( exit $ac_status )
15215 ac_cv_func_fork_works=no
15216 fi
15217 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15218 fi
15219 fi
15220 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15221 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15222
15223 else
15224 ac_cv_func_fork_works=$ac_cv_func_fork
15225 fi
15226 if test "x$ac_cv_func_fork_works" = xcross; then
15227 case $host in
15228 *-*-amigaos* | *-*-msdosdjgpp*)
15229 # Override, as these systems have only a dummy fork() stub
15230 ac_cv_func_fork_works=no
15231 ;;
15232 *)
15233 ac_cv_func_fork_works=yes
15234 ;;
15235 esac
15236 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15237 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15238 fi
15239 ac_cv_func_vfork_works=$ac_cv_func_vfork
15240 if test "x$ac_cv_func_vfork" = xyes; then
15241 echo "$as_me:$LINENO: checking for working vfork" >&5
15242 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15243 if test "${ac_cv_func_vfork_works+set}" = set; then
15244 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 else
15246 if test "$cross_compiling" = yes; then
15247 ac_cv_func_vfork_works=cross
15248 else
15249 cat >conftest.$ac_ext <<_ACEOF
15250 /* confdefs.h. */
15251 _ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15255 /* Thanks to Paul Eggert for this test. */
15256 #include <stdio.h>
15257 #include <stdlib.h>
15258 #include <sys/types.h>
15259 #include <sys/stat.h>
15260 #include <sys/wait.h>
15261 #if HAVE_UNISTD_H
15262 # include <unistd.h>
15263 #endif
15264 #if HAVE_VFORK_H
15265 # include <vfork.h>
15266 #endif
15267 /* On some sparc systems, changes by the child to local and incoming
15268 argument registers are propagated back to the parent. The compiler
15269 is told about this with #include <vfork.h>, but some compilers
15270 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15271 static variable whose address is put into a register that is
15272 clobbered by the vfork. */
15273 static void
15274 #ifdef __cplusplus
15275 sparc_address_test (int arg)
15276 # else
15277 sparc_address_test (arg) int arg;
15278 #endif
15279 {
15280 static pid_t child;
15281 if (!child) {
15282 child = vfork ();
15283 if (child < 0) {
15284 perror ("vfork");
15285 _exit(2);
15286 }
15287 if (!child) {
15288 arg = getpid();
15289 write(-1, "", 0);
15290 _exit (arg);
15291 }
15292 }
15293 }
15294
15295 int
15296 main ()
15297 {
15298 pid_t parent = getpid ();
15299 pid_t child;
15300
15301 sparc_address_test (0);
15302
15303 child = vfork ();
15304
15305 if (child == 0) {
15306 /* Here is another test for sparc vfork register problems. This
15307 test uses lots of local variables, at least as many local
15308 variables as main has allocated so far including compiler
15309 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15310 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15311 reuse the register of parent for one of the local variables,
15312 since it will think that parent can't possibly be used any more
15313 in this routine. Assigning to the local variable will thus
15314 munge parent in the parent process. */
15315 pid_t
15316 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15317 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15318 /* Convince the compiler that p..p7 are live; otherwise, it might
15319 use the same hardware register for all 8 local variables. */
15320 if (p != p1 || p != p2 || p != p3 || p != p4
15321 || p != p5 || p != p6 || p != p7)
15322 _exit(1);
15323
15324 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15325 from child file descriptors. If the child closes a descriptor
15326 before it execs or exits, this munges the parent's descriptor
15327 as well. Test for this by closing stdout in the child. */
15328 _exit(close(fileno(stdout)) != 0);
15329 } else {
15330 int status;
15331 struct stat st;
15332
15333 while (wait(&status) != child)
15334 ;
15335 exit(
15336 /* Was there some problem with vforking? */
15337 child < 0
15338
15339 /* Did the child fail? (This shouldn't happen.) */
15340 || status
15341
15342 /* Did the vfork/compiler bug occur? */
15343 || parent != getpid()
15344
15345 /* Did the file descriptor bug occur? */
15346 || fstat(fileno(stdout), &st) != 0
15347 );
15348 }
15349 }
15350 _ACEOF
15351 rm -f conftest$ac_exeext
15352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15353 (eval $ac_link) 2>&5
15354 ac_status=$?
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358 (eval $ac_try) 2>&5
15359 ac_status=$?
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); }; }; then
15362 ac_cv_func_vfork_works=yes
15363 else
15364 echo "$as_me: program exited with status $ac_status" >&5
15365 echo "$as_me: failed program was:" >&5
15366 sed 's/^/| /' conftest.$ac_ext >&5
15367
15368 ( exit $ac_status )
15369 ac_cv_func_vfork_works=no
15370 fi
15371 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15372 fi
15373 fi
15374 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15375 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15376
15377 fi;
15378 if test "x$ac_cv_func_fork_works" = xcross; then
15379 ac_cv_func_vfork_works=$ac_cv_func_vfork
15380 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15381 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15382 fi
15383
15384 if test "x$ac_cv_func_vfork_works" = xyes; then
15385
15386 cat >>confdefs.h <<\_ACEOF
15387 #define HAVE_WORKING_VFORK 1
15388 _ACEOF
15389
15390 else
15391
15392 cat >>confdefs.h <<\_ACEOF
15393 #define vfork fork
15394 _ACEOF
15395
15396 fi
15397 if test "x$ac_cv_func_fork_works" = xyes; then
15398
15399 cat >>confdefs.h <<\_ACEOF
15400 #define HAVE_WORKING_FORK 1
15401 _ACEOF
15402
15403 fi
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424 for ac_func in canonicalize_file_name realpath getrusage getuid \
15425 getgid poll pread64 sbrk setpgid setpgrp setsid \
15426 sigaction sigprocmask sigsetmask socketpair syscall \
15427 ttrace wborder setlocale
15428 do
15429 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15430 echo "$as_me:$LINENO: checking for $ac_func" >&5
15431 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15432 if eval "test \"\${$as_ac_var+set}\" = set"; then
15433 echo $ECHO_N "(cached) $ECHO_C" >&6
15434 else
15435 cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h. */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15443 #define $ac_func innocuous_$ac_func
15444
15445 /* System header to define __stub macros and hopefully few prototypes,
15446 which can conflict with char $ac_func (); below.
15447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15448 <limits.h> exists even on freestanding compilers. */
15449
15450 #ifdef __STDC__
15451 # include <limits.h>
15452 #else
15453 # include <assert.h>
15454 #endif
15455
15456 #undef $ac_func
15457
15458 /* Override any gcc2 internal prototype to avoid an error. */
15459 #ifdef __cplusplus
15460 extern "C"
15461 {
15462 #endif
15463 /* We use char because int might match the return type of a gcc2
15464 builtin and then its argument prototype would still apply. */
15465 char $ac_func ();
15466 /* The GNU C library defines this for functions which it implements
15467 to always fail with ENOSYS. Some functions are actually named
15468 something starting with __ and the normal name is an alias. */
15469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15470 choke me
15471 #else
15472 char (*f) () = $ac_func;
15473 #endif
15474 #ifdef __cplusplus
15475 }
15476 #endif
15477
15478 int
15479 main ()
15480 {
15481 return f != $ac_func;
15482 ;
15483 return 0;
15484 }
15485 _ACEOF
15486 rm -f conftest.$ac_objext conftest$ac_exeext
15487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15488 (eval $ac_link) 2>conftest.er1
15489 ac_status=$?
15490 grep -v '^ *+' conftest.er1 >conftest.err
15491 rm -f conftest.er1
15492 cat conftest.err >&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); } &&
15495 { ac_try='test -z "$ac_c_werror_flag"
15496 || test ! -s conftest.err'
15497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498 (eval $ac_try) 2>&5
15499 ac_status=$?
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); }; } &&
15502 { ac_try='test -s conftest$ac_exeext'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15505 ac_status=$?
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15508 eval "$as_ac_var=yes"
15509 else
15510 echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15512
15513 eval "$as_ac_var=no"
15514 fi
15515 rm -f conftest.err conftest.$ac_objext \
15516 conftest$ac_exeext conftest.$ac_ext
15517 fi
15518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15519 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15520 if test `eval echo '${'$as_ac_var'}'` = yes; then
15521 cat >>confdefs.h <<_ACEOF
15522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15523 _ACEOF
15524
15525 fi
15526 done
15527
15528
15529 # Check the return and argument types of ptrace. No canned test for
15530 # this, so roll our own.
15531 gdb_ptrace_headers='
15532 #if HAVE_SYS_TYPES_H
15533 # include <sys/types.h>
15534 #endif
15535 #if HAVE_SYS_PTRACE_H
15536 # include <sys/ptrace.h>
15537 #endif
15538 #if HAVE_UNISTD_H
15539 # include <unistd.h>
15540 #endif
15541 '
15542 # There is no point in checking if we don't have a prototype.
15543 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
15544 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
15545 if test "${ac_cv_have_decl_ptrace+set}" = set; then
15546 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 else
15548 cat >conftest.$ac_ext <<_ACEOF
15549 /* confdefs.h. */
15550 _ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h. */
15554 $gdb_ptrace_headers
15555
15556 int
15557 main ()
15558 {
15559 #ifndef ptrace
15560 char *p = (char *) ptrace;
15561 #endif
15562
15563 ;
15564 return 0;
15565 }
15566 _ACEOF
15567 rm -f conftest.$ac_objext
15568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15569 (eval $ac_compile) 2>conftest.er1
15570 ac_status=$?
15571 grep -v '^ *+' conftest.er1 >conftest.err
15572 rm -f conftest.er1
15573 cat conftest.err >&5
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); } &&
15576 { ac_try='test -z "$ac_c_werror_flag"
15577 || test ! -s conftest.err'
15578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15579 (eval $ac_try) 2>&5
15580 ac_status=$?
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); }; } &&
15583 { ac_try='test -s conftest.$ac_objext'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
15589 ac_cv_have_decl_ptrace=yes
15590 else
15591 echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15593
15594 ac_cv_have_decl_ptrace=no
15595 fi
15596 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15597 fi
15598 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
15599 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
15600 if test $ac_cv_have_decl_ptrace = yes; then
15601
15602 cat >>confdefs.h <<_ACEOF
15603 #define HAVE_DECL_PTRACE 1
15604 _ACEOF
15605
15606
15607 else
15608 cat >>confdefs.h <<_ACEOF
15609 #define HAVE_DECL_PTRACE 0
15610 _ACEOF
15611
15612
15613 : ${gdb_cv_func_ptrace_ret='int'}
15614 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15615
15616 fi
15617
15618
15619 # Check return type. Varargs (used on GNU/Linux) conflict with the
15620 # empty argument list, so check for that explicitly.
15621 echo "$as_me:$LINENO: checking return type of ptrace" >&5
15622 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
15623 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 else
15626 cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h. */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h. */
15632 $gdb_ptrace_headers
15633 int
15634 main ()
15635 {
15636 extern long ptrace (enum __ptrace_request, ...);
15637 ;
15638 return 0;
15639 }
15640 _ACEOF
15641 rm -f conftest.$ac_objext
15642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15643 (eval $ac_compile) 2>conftest.er1
15644 ac_status=$?
15645 grep -v '^ *+' conftest.er1 >conftest.err
15646 rm -f conftest.er1
15647 cat conftest.err >&5
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } &&
15650 { ac_try='test -z "$ac_c_werror_flag"
15651 || test ! -s conftest.err'
15652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653 (eval $ac_try) 2>&5
15654 ac_status=$?
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); }; } &&
15657 { ac_try='test -s conftest.$ac_objext'
15658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659 (eval $ac_try) 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); }; }; then
15663 gdb_cv_func_ptrace_ret='long'
15664 else
15665 echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15667
15668 cat >conftest.$ac_ext <<_ACEOF
15669 /* confdefs.h. */
15670 _ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15674 $gdb_ptrace_headers
15675 int
15676 main ()
15677 {
15678 extern int ptrace ();
15679 ;
15680 return 0;
15681 }
15682 _ACEOF
15683 rm -f conftest.$ac_objext
15684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15685 (eval $ac_compile) 2>conftest.er1
15686 ac_status=$?
15687 grep -v '^ *+' conftest.er1 >conftest.err
15688 rm -f conftest.er1
15689 cat conftest.err >&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } &&
15692 { ac_try='test -z "$ac_c_werror_flag"
15693 || test ! -s conftest.err'
15694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15696 ac_status=$?
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; } &&
15699 { ac_try='test -s conftest.$ac_objext'
15700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15701 (eval $ac_try) 2>&5
15702 ac_status=$?
15703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704 (exit $ac_status); }; }; then
15705 gdb_cv_func_ptrace_ret='int'
15706 else
15707 echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15709
15710 gdb_cv_func_ptrace_ret='long'
15711 fi
15712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15713 fi
15714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15715 fi
15716 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
15717 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
15718
15719 cat >>confdefs.h <<_ACEOF
15720 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15721 _ACEOF
15722
15723 # Check argument types.
15724 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
15725 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
15726 if test "${gdb_cv_func_ptrace_args+set}" = set; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 else
15729
15730 cat >conftest.$ac_ext <<_ACEOF
15731 /* confdefs.h. */
15732 _ACEOF
15733 cat confdefs.h >>conftest.$ac_ext
15734 cat >>conftest.$ac_ext <<_ACEOF
15735 /* end confdefs.h. */
15736 $gdb_ptrace_headers
15737 int
15738 main ()
15739 {
15740 extern long ptrace (enum __ptrace_request, ...);
15741 ;
15742 return 0;
15743 }
15744 _ACEOF
15745 rm -f conftest.$ac_objext
15746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15747 (eval $ac_compile) 2>conftest.er1
15748 ac_status=$?
15749 grep -v '^ *+' conftest.er1 >conftest.err
15750 rm -f conftest.er1
15751 cat conftest.err >&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } &&
15754 { ac_try='test -z "$ac_c_werror_flag"
15755 || test ! -s conftest.err'
15756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15757 (eval $ac_try) 2>&5
15758 ac_status=$?
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); }; } &&
15761 { ac_try='test -s conftest.$ac_objext'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767 gdb_cv_func_ptrace_args='int,int,long,long'
15768 else
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15771
15772
15773 for gdb_arg1 in 'int' 'long'; do
15774 for gdb_arg2 in 'pid_t' 'int' 'long'; do
15775 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15776 for gdb_arg4 in 'int' 'long'; do
15777 cat >conftest.$ac_ext <<_ACEOF
15778 /* confdefs.h. */
15779 _ACEOF
15780 cat confdefs.h >>conftest.$ac_ext
15781 cat >>conftest.$ac_ext <<_ACEOF
15782 /* end confdefs.h. */
15783 $gdb_ptrace_headers
15784 int
15785 main ()
15786 {
15787
15788 extern $gdb_cv_func_ptrace_ret
15789 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15790
15791 ;
15792 return 0;
15793 }
15794 _ACEOF
15795 rm -f conftest.$ac_objext
15796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15797 (eval $ac_compile) 2>conftest.er1
15798 ac_status=$?
15799 grep -v '^ *+' conftest.er1 >conftest.err
15800 rm -f conftest.er1
15801 cat conftest.err >&5
15802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803 (exit $ac_status); } &&
15804 { ac_try='test -z "$ac_c_werror_flag"
15805 || test ! -s conftest.err'
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; } &&
15811 { ac_try='test -s conftest.$ac_objext'
15812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813 (eval $ac_try) 2>&5
15814 ac_status=$?
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; }; then
15817 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15818 break 4;
15819 else
15820 echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15822
15823 fi
15824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15825 for gdb_arg5 in 'int *' 'int' 'long'; do
15826 cat >conftest.$ac_ext <<_ACEOF
15827 /* confdefs.h. */
15828 _ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 $gdb_ptrace_headers
15833 int
15834 main ()
15835 {
15836
15837 extern $gdb_cv_func_ptrace_ret
15838 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15839
15840 ;
15841 return 0;
15842 }
15843 _ACEOF
15844 rm -f conftest.$ac_objext
15845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15846 (eval $ac_compile) 2>conftest.er1
15847 ac_status=$?
15848 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1
15850 cat conftest.err >&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
15853 { ac_try='test -z "$ac_c_werror_flag"
15854 || test ! -s conftest.err'
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; } &&
15860 { ac_try='test -s conftest.$ac_objext'
15861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15862 (eval $ac_try) 2>&5
15863 ac_status=$?
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); }; }; then
15866
15867 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15868 break 5;
15869 else
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15872
15873 fi
15874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15875 done
15876 done
15877 done
15878 done
15879 done
15880 # Provide a safe default value.
15881 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15882
15883 fi
15884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15885 fi
15886 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
15887 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
15888 ac_save_IFS=$IFS; IFS=','
15889 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15890 IFS=$ac_save_IFS
15891 shift
15892
15893 cat >>confdefs.h <<_ACEOF
15894 #define PTRACE_TYPE_ARG3 $3
15895 _ACEOF
15896
15897 if test -n "$5"; then
15898
15899 cat >>confdefs.h <<_ACEOF
15900 #define PTRACE_TYPE_ARG5 $5
15901 _ACEOF
15902
15903 fi
15904
15905 if test "$cross_compiling" = no; then
15906 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
15907 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
15908 if test "${ac_cv_func_setpgrp_void+set}" = set; then
15909 echo $ECHO_N "(cached) $ECHO_C" >&6
15910 else
15911 if test "$cross_compiling" = yes; then
15912 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
15913 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
15914 { (exit 1); exit 1; }; }
15915 else
15916 cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h. */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15922 #if HAVE_UNISTD_H
15923 # include <unistd.h>
15924 #endif
15925
15926 int
15927 main ()
15928 {
15929 /* If this system has a BSD-style setpgrp which takes arguments,
15930 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15931 exit successfully. */
15932 exit (setpgrp (1,1) == -1 ? 0 : 1);
15933 ;
15934 return 0;
15935 }
15936 _ACEOF
15937 rm -f conftest$ac_exeext
15938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15939 (eval $ac_link) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15944 (eval $ac_try) 2>&5
15945 ac_status=$?
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); }; }; then
15948 ac_cv_func_setpgrp_void=no
15949 else
15950 echo "$as_me: program exited with status $ac_status" >&5
15951 echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15953
15954 ( exit $ac_status )
15955 ac_cv_func_setpgrp_void=yes
15956 fi
15957 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15958 fi
15959 fi
15960 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
15961 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
15962 if test $ac_cv_func_setpgrp_void = yes; then
15963
15964 cat >>confdefs.h <<\_ACEOF
15965 #define SETPGRP_VOID 1
15966 _ACEOF
15967
15968 fi
15969
15970 else
15971 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
15972 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
15973 if test "${ac_cv_func_setpgrp_void+set}" = set; then
15974 echo $ECHO_N "(cached) $ECHO_C" >&6
15975 else
15976 cat >conftest.$ac_ext <<_ACEOF
15977 /* confdefs.h. */
15978 _ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h. */
15982
15983 #include <unistd.h>
15984
15985 int
15986 main ()
15987 {
15988
15989 if (setpgrp(1,1) == -1)
15990 exit (0);
15991 else
15992 exit (1);
15993
15994 ;
15995 return 0;
15996 }
15997 _ACEOF
15998 rm -f conftest.$ac_objext
15999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16000 (eval $ac_compile) 2>conftest.er1
16001 ac_status=$?
16002 grep -v '^ *+' conftest.er1 >conftest.err
16003 rm -f conftest.er1
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); } &&
16007 { ac_try='test -z "$ac_c_werror_flag"
16008 || test ! -s conftest.err'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; } &&
16014 { ac_try='test -s conftest.$ac_objext'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16017 ac_status=$?
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16020 ac_cv_func_setpgrp_void=no
16021 else
16022 echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16024
16025 ac_cv_func_setpgrp_void=yes
16026 fi
16027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16028 fi
16029 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16030 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16031 if test $ac_cv_func_setpgrp_void = yes; then
16032 cat >>confdefs.h <<\_ACEOF
16033 #define SETPGRP_VOID 1
16034 _ACEOF
16035
16036 fi
16037 fi
16038
16039 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16040 # since sigsetjmp might only be defined as a macro.
16041 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16042 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16043 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16045 else
16046 cat >conftest.$ac_ext <<_ACEOF
16047 /* confdefs.h. */
16048 _ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16052
16053 #include <setjmp.h>
16054
16055 int
16056 main ()
16057 {
16058 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16059 ;
16060 return 0;
16061 }
16062 _ACEOF
16063 rm -f conftest.$ac_objext
16064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16065 (eval $ac_compile) 2>conftest.er1
16066 ac_status=$?
16067 grep -v '^ *+' conftest.er1 >conftest.err
16068 rm -f conftest.er1
16069 cat conftest.err >&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); } &&
16072 { ac_try='test -z "$ac_c_werror_flag"
16073 || test ! -s conftest.err'
16074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16075 (eval $ac_try) 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }; } &&
16079 { ac_try='test -s conftest.$ac_objext'
16080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16081 (eval $ac_try) 2>&5
16082 ac_status=$?
16083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16084 (exit $ac_status); }; }; then
16085 gdb_cv_func_sigsetjmp=yes
16086 else
16087 echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16089
16090 gdb_cv_func_sigsetjmp=no
16091 fi
16092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16093 fi
16094 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16095 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16096 if test $gdb_cv_func_sigsetjmp = yes; then
16097
16098 cat >>confdefs.h <<\_ACEOF
16099 #define HAVE_SIGSETJMP 1
16100 _ACEOF
16101
16102 fi
16103
16104 # Assume we'll default to using the included libiberty regex.
16105 gdb_use_included_regex=yes
16106
16107 # However, if the system regex is GNU regex, then default to *not*
16108 # using the included regex.
16109 echo "$as_me:$LINENO: checking for GNU regex" >&5
16110 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16111 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16112 echo $ECHO_N "(cached) $ECHO_C" >&6
16113 else
16114 cat >conftest.$ac_ext <<_ACEOF
16115 /* confdefs.h. */
16116 _ACEOF
16117 cat confdefs.h >>conftest.$ac_ext
16118 cat >>conftest.$ac_ext <<_ACEOF
16119 /* end confdefs.h. */
16120 #include <gnu-versions.h>
16121 int
16122 main ()
16123 {
16124 #define REGEX_INTERFACE_VERSION 1
16125 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16126 # error "Version mismatch"
16127 #endif
16128 ;
16129 return 0;
16130 }
16131 _ACEOF
16132 rm -f conftest.$ac_objext
16133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16134 (eval $ac_compile) 2>conftest.er1
16135 ac_status=$?
16136 grep -v '^ *+' conftest.er1 >conftest.err
16137 rm -f conftest.er1
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } &&
16141 { ac_try='test -z "$ac_c_werror_flag"
16142 || test ! -s conftest.err'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; } &&
16148 { ac_try='test -s conftest.$ac_objext'
16149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16150 (eval $ac_try) 2>&5
16151 ac_status=$?
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); }; }; then
16154 gdb_cv_have_gnu_regex=yes
16155 else
16156 echo "$as_me: failed program was:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16158
16159 gdb_cv_have_gnu_regex=no
16160 fi
16161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16162 fi
16163 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16164 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16165 if test $gdb_cv_have_gnu_regex = yes; then
16166 gdb_use_included_regex=no
16167 fi
16168
16169
16170 # Check whether --with-included-regex or --without-included-regex was given.
16171 if test "${with_included_regex+set}" = set; then
16172 withval="$with_included_regex"
16173 gdb_with_regex=$withval
16174 else
16175 gdb_with_regex=$gdb_use_included_regex
16176 fi;
16177 if test "$gdb_with_regex" = yes; then
16178
16179 cat >>confdefs.h <<\_ACEOF
16180 #define USE_INCLUDED_REGEX 1
16181 _ACEOF
16182
16183 fi
16184
16185 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16186 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16187 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16188 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16190 else
16191 cat >conftest.$ac_ext <<_ACEOF
16192 /* confdefs.h. */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16197 #include <sys/param.h>
16198 #include <sys/proc.h>
16199
16200
16201 int
16202 main ()
16203 {
16204 static struct thread ac_aggr;
16205 if (ac_aggr.td_pcb)
16206 return 0;
16207 ;
16208 return 0;
16209 }
16210 _ACEOF
16211 rm -f conftest.$ac_objext
16212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16213 (eval $ac_compile) 2>conftest.er1
16214 ac_status=$?
16215 grep -v '^ *+' conftest.er1 >conftest.err
16216 rm -f conftest.er1
16217 cat conftest.err >&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); } &&
16220 { ac_try='test -z "$ac_c_werror_flag"
16221 || test ! -s conftest.err'
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16224 ac_status=$?
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; } &&
16227 { ac_try='test -s conftest.$ac_objext'
16228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229 (eval $ac_try) 2>&5
16230 ac_status=$?
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); }; }; then
16233 ac_cv_member_struct_thread_td_pcb=yes
16234 else
16235 echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16237
16238 cat >conftest.$ac_ext <<_ACEOF
16239 /* confdefs.h. */
16240 _ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244 #include <sys/param.h>
16245 #include <sys/proc.h>
16246
16247
16248 int
16249 main ()
16250 {
16251 static struct thread ac_aggr;
16252 if (sizeof ac_aggr.td_pcb)
16253 return 0;
16254 ;
16255 return 0;
16256 }
16257 _ACEOF
16258 rm -f conftest.$ac_objext
16259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16260 (eval $ac_compile) 2>conftest.er1
16261 ac_status=$?
16262 grep -v '^ *+' conftest.er1 >conftest.err
16263 rm -f conftest.er1
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } &&
16267 { ac_try='test -z "$ac_c_werror_flag"
16268 || test ! -s conftest.err'
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16271 ac_status=$?
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; } &&
16274 { ac_try='test -s conftest.$ac_objext'
16275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276 (eval $ac_try) 2>&5
16277 ac_status=$?
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; }; then
16280 ac_cv_member_struct_thread_td_pcb=yes
16281 else
16282 echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.$ac_ext >&5
16284
16285 ac_cv_member_struct_thread_td_pcb=no
16286 fi
16287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16288 fi
16289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16290 fi
16291 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16292 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16293 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16294
16295 cat >>confdefs.h <<_ACEOF
16296 #define HAVE_STRUCT_THREAD_TD_PCB 1
16297 _ACEOF
16298
16299
16300 fi
16301
16302
16303 # See if <sys/lwp.h> defines `struct lwp`.
16304 echo "$as_me:$LINENO: checking for struct lwp" >&5
16305 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16306 if test "${gdb_cv_struct_lwp+set}" = set; then
16307 echo $ECHO_N "(cached) $ECHO_C" >&6
16308 else
16309 cat >conftest.$ac_ext <<_ACEOF
16310 /* confdefs.h. */
16311 _ACEOF
16312 cat confdefs.h >>conftest.$ac_ext
16313 cat >>conftest.$ac_ext <<_ACEOF
16314 /* end confdefs.h. */
16315 #include <sys/param.h>
16316 #include <sys/lwp.h>
16317 int
16318 main ()
16319 {
16320 struct lwp l;
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 gdb_cv_struct_lwp=yes
16348 else
16349 echo "$as_me: failed program was:" >&5
16350 sed 's/^/| /' conftest.$ac_ext >&5
16351
16352 gdb_cv_struct_lwp=no
16353 fi
16354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16355 fi
16356 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16357 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16358 if test $gdb_cv_struct_lwp = yes; then
16359
16360 cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_STRUCT_LWP 1
16362 _ACEOF
16363
16364 fi
16365
16366 # See if <machine/reg.h> degines `struct reg'.
16367 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16368 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16369 if test "${gdb_cv_struct_reg+set}" = set; then
16370 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 else
16372 cat >conftest.$ac_ext <<_ACEOF
16373 /* confdefs.h. */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */
16378 #include <sys/types.h>
16379 #include <machine/reg.h>
16380 int
16381 main ()
16382 {
16383 struct reg r;
16384 ;
16385 return 0;
16386 }
16387 _ACEOF
16388 rm -f conftest.$ac_objext
16389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16390 (eval $ac_compile) 2>conftest.er1
16391 ac_status=$?
16392 grep -v '^ *+' conftest.er1 >conftest.err
16393 rm -f conftest.er1
16394 cat conftest.err >&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); } &&
16397 { ac_try='test -z "$ac_c_werror_flag"
16398 || test ! -s conftest.err'
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; } &&
16404 { ac_try='test -s conftest.$ac_objext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 gdb_cv_struct_reg=yes
16411 else
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 gdb_cv_struct_reg=no
16416 fi
16417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16418 fi
16419 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16420 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16421 if test $gdb_cv_struct_reg = yes; then
16422
16423 cat >>confdefs.h <<\_ACEOF
16424 #define HAVE_STRUCT_REG 1
16425 _ACEOF
16426
16427 fi
16428
16429 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16430 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16431 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16432 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16433 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16434 echo $ECHO_N "(cached) $ECHO_C" >&6
16435 else
16436 cat >conftest.$ac_ext <<_ACEOF
16437 /* confdefs.h. */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16442 #include <machine/reg.h>
16443
16444 int
16445 main ()
16446 {
16447 static struct reg ac_aggr;
16448 if (ac_aggr.r_fs)
16449 return 0;
16450 ;
16451 return 0;
16452 }
16453 _ACEOF
16454 rm -f conftest.$ac_objext
16455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16456 (eval $ac_compile) 2>conftest.er1
16457 ac_status=$?
16458 grep -v '^ *+' conftest.er1 >conftest.err
16459 rm -f conftest.er1
16460 cat conftest.err >&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } &&
16463 { ac_try='test -z "$ac_c_werror_flag"
16464 || test ! -s conftest.err'
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16467 ac_status=$?
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; } &&
16470 { ac_try='test -s conftest.$ac_objext'
16471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472 (eval $ac_try) 2>&5
16473 ac_status=$?
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); }; }; then
16476 ac_cv_member_struct_reg_r_fs=yes
16477 else
16478 echo "$as_me: failed program was:" >&5
16479 sed 's/^/| /' conftest.$ac_ext >&5
16480
16481 cat >conftest.$ac_ext <<_ACEOF
16482 /* confdefs.h. */
16483 _ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h. */
16487 #include <machine/reg.h>
16488
16489 int
16490 main ()
16491 {
16492 static struct reg ac_aggr;
16493 if (sizeof ac_aggr.r_fs)
16494 return 0;
16495 ;
16496 return 0;
16497 }
16498 _ACEOF
16499 rm -f conftest.$ac_objext
16500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16501 (eval $ac_compile) 2>conftest.er1
16502 ac_status=$?
16503 grep -v '^ *+' conftest.er1 >conftest.err
16504 rm -f conftest.er1
16505 cat conftest.err >&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
16508 { ac_try='test -z "$ac_c_werror_flag"
16509 || test ! -s conftest.err'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16512 ac_status=$?
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; } &&
16515 { ac_try='test -s conftest.$ac_objext'
16516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517 (eval $ac_try) 2>&5
16518 ac_status=$?
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
16521 ac_cv_member_struct_reg_r_fs=yes
16522 else
16523 echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16525
16526 ac_cv_member_struct_reg_r_fs=no
16527 fi
16528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16529 fi
16530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16531 fi
16532 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
16533 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
16534 if test $ac_cv_member_struct_reg_r_fs = yes; then
16535
16536 cat >>confdefs.h <<_ACEOF
16537 #define HAVE_STRUCT_REG_R_FS 1
16538 _ACEOF
16539
16540
16541 fi
16542 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
16543 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
16544 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
16545 echo $ECHO_N "(cached) $ECHO_C" >&6
16546 else
16547 cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h. */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16553 #include <machine/reg.h>
16554
16555 int
16556 main ()
16557 {
16558 static struct reg ac_aggr;
16559 if (ac_aggr.r_gs)
16560 return 0;
16561 ;
16562 return 0;
16563 }
16564 _ACEOF
16565 rm -f conftest.$ac_objext
16566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16567 (eval $ac_compile) 2>conftest.er1
16568 ac_status=$?
16569 grep -v '^ *+' conftest.er1 >conftest.err
16570 rm -f conftest.er1
16571 cat conftest.err >&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); } &&
16574 { ac_try='test -z "$ac_c_werror_flag"
16575 || test ! -s conftest.err'
16576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577 (eval $ac_try) 2>&5
16578 ac_status=$?
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); }; } &&
16581 { ac_try='test -s conftest.$ac_objext'
16582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16583 (eval $ac_try) 2>&5
16584 ac_status=$?
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; }; then
16587 ac_cv_member_struct_reg_r_gs=yes
16588 else
16589 echo "$as_me: failed program was:" >&5
16590 sed 's/^/| /' conftest.$ac_ext >&5
16591
16592 cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h. */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h. */
16598 #include <machine/reg.h>
16599
16600 int
16601 main ()
16602 {
16603 static struct reg ac_aggr;
16604 if (sizeof ac_aggr.r_gs)
16605 return 0;
16606 ;
16607 return 0;
16608 }
16609 _ACEOF
16610 rm -f conftest.$ac_objext
16611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16612 (eval $ac_compile) 2>conftest.er1
16613 ac_status=$?
16614 grep -v '^ *+' conftest.er1 >conftest.err
16615 rm -f conftest.er1
16616 cat conftest.err >&5
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } &&
16619 { ac_try='test -z "$ac_c_werror_flag"
16620 || test ! -s conftest.err'
16621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16622 (eval $ac_try) 2>&5
16623 ac_status=$?
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); }; } &&
16626 { ac_try='test -s conftest.$ac_objext'
16627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16628 (eval $ac_try) 2>&5
16629 ac_status=$?
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); }; }; then
16632 ac_cv_member_struct_reg_r_gs=yes
16633 else
16634 echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16636
16637 ac_cv_member_struct_reg_r_gs=no
16638 fi
16639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16640 fi
16641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16642 fi
16643 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
16644 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
16645 if test $ac_cv_member_struct_reg_r_gs = yes; then
16646
16647 cat >>confdefs.h <<_ACEOF
16648 #define HAVE_STRUCT_REG_R_GS 1
16649 _ACEOF
16650
16651
16652 fi
16653
16654
16655 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16656 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
16657 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
16658 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
16659 echo $ECHO_N "(cached) $ECHO_C" >&6
16660 else
16661 cat >conftest.$ac_ext <<_ACEOF
16662 /* confdefs.h. */
16663 _ACEOF
16664 cat confdefs.h >>conftest.$ac_ext
16665 cat >>conftest.$ac_ext <<_ACEOF
16666 /* end confdefs.h. */
16667 #include <sys/ptrace.h>
16668 int
16669 main ()
16670 {
16671 PTRACE_GETREGS;
16672 ;
16673 return 0;
16674 }
16675 _ACEOF
16676 rm -f conftest.$ac_objext
16677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16678 (eval $ac_compile) 2>conftest.er1
16679 ac_status=$?
16680 grep -v '^ *+' conftest.er1 >conftest.err
16681 rm -f conftest.er1
16682 cat conftest.err >&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); } &&
16685 { ac_try='test -z "$ac_c_werror_flag"
16686 || test ! -s conftest.err'
16687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688 (eval $ac_try) 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); }; } &&
16692 { ac_try='test -s conftest.$ac_objext'
16693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16694 (eval $ac_try) 2>&5
16695 ac_status=$?
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }; }; then
16698 gdb_cv_have_ptrace_getregs=yes
16699 else
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16702
16703 gdb_cv_have_ptrace_getregs=no
16704 fi
16705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16706 fi
16707
16708 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
16709 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
16710 if test $gdb_cv_have_ptrace_getregs = yes; then
16711
16712 cat >>confdefs.h <<\_ACEOF
16713 #define HAVE_PTRACE_GETREGS 1
16714 _ACEOF
16715
16716 fi
16717
16718 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16719 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
16720 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
16721 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16723 else
16724 cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h. */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h. */
16730 #include <sys/ptrace.h>
16731 int
16732 main ()
16733 {
16734 PTRACE_GETFPXREGS;
16735 ;
16736 return 0;
16737 }
16738 _ACEOF
16739 rm -f conftest.$ac_objext
16740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16741 (eval $ac_compile) 2>conftest.er1
16742 ac_status=$?
16743 grep -v '^ *+' conftest.er1 >conftest.err
16744 rm -f conftest.er1
16745 cat conftest.err >&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); } &&
16748 { ac_try='test -z "$ac_c_werror_flag"
16749 || test ! -s conftest.err'
16750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 (eval $ac_try) 2>&5
16752 ac_status=$?
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); }; } &&
16755 { ac_try='test -s conftest.$ac_objext'
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
16758 ac_status=$?
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; }; then
16761 gdb_cv_have_ptrace_getfpxregs=yes
16762 else
16763 echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16765
16766 gdb_cv_have_ptrace_getfpxregs=no
16767 fi
16768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16769 fi
16770
16771 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16772 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
16773 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
16774
16775 cat >>confdefs.h <<\_ACEOF
16776 #define HAVE_PTRACE_GETFPXREGS 1
16777 _ACEOF
16778
16779 fi
16780
16781 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16782 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
16783 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
16784 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16786 else
16787 cat >conftest.$ac_ext <<_ACEOF
16788 /* confdefs.h. */
16789 _ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h. */
16793 #include <sys/types.h>
16794 #include <sys/ptrace.h>
16795 int
16796 main ()
16797 {
16798 PT_GETDBREGS;
16799 ;
16800 return 0;
16801 }
16802 _ACEOF
16803 rm -f conftest.$ac_objext
16804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16805 (eval $ac_compile) 2>conftest.er1
16806 ac_status=$?
16807 grep -v '^ *+' conftest.er1 >conftest.err
16808 rm -f conftest.er1
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -z "$ac_c_werror_flag"
16813 || test ! -s conftest.err'
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; } &&
16819 { ac_try='test -s conftest.$ac_objext'
16820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16822 ac_status=$?
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; }; then
16825 gdb_cv_have_pt_getdbregs=yes
16826 else
16827 echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16829
16830 gdb_cv_have_pt_getdbregs=no
16831 fi
16832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16833 fi
16834
16835 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
16836 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
16837 if test $gdb_cv_have_pt_getdbregs = yes; then
16838
16839 cat >>confdefs.h <<\_ACEOF
16840 #define HAVE_PT_GETDBREGS 1
16841 _ACEOF
16842
16843 fi
16844
16845 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
16846 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
16847 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
16848 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851 cat >conftest.$ac_ext <<_ACEOF
16852 /* confdefs.h. */
16853 _ACEOF
16854 cat confdefs.h >>conftest.$ac_ext
16855 cat >>conftest.$ac_ext <<_ACEOF
16856 /* end confdefs.h. */
16857 #include <sys/types.h>
16858 #include <sys/ptrace.h>
16859 int
16860 main ()
16861 {
16862 PT_GETXMMREGS;
16863 ;
16864 return 0;
16865 }
16866 _ACEOF
16867 rm -f conftest.$ac_objext
16868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16869 (eval $ac_compile) 2>conftest.er1
16870 ac_status=$?
16871 grep -v '^ *+' conftest.er1 >conftest.err
16872 rm -f conftest.er1
16873 cat conftest.err >&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try='test -z "$ac_c_werror_flag"
16877 || test ! -s conftest.err'
16878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16879 (eval $ac_try) 2>&5
16880 ac_status=$?
16881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882 (exit $ac_status); }; } &&
16883 { ac_try='test -s conftest.$ac_objext'
16884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16885 (eval $ac_try) 2>&5
16886 ac_status=$?
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; }; then
16889 gdb_cv_have_pt_getxmmregs=yes
16890 else
16891 echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.$ac_ext >&5
16893
16894 gdb_cv_have_pt_getxmmregs=no
16895 fi
16896 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16897 fi
16898
16899 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
16900 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
16901 if test $gdb_cv_have_pt_getxmmregs = yes; then
16902
16903 cat >>confdefs.h <<\_ACEOF
16904 #define HAVE_PT_GETXMMREGS 1
16905 _ACEOF
16906
16907 fi
16908
16909 # Detect which type of /proc is in use, such as for Unixware or Solaris.
16910
16911 if test "${target}" = "${host}"; then
16912 case "${host}" in
16913 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
16914
16915 cat >>confdefs.h <<\_ACEOF
16916 #define NEW_PROC_API 1
16917 _ACEOF
16918
16919 ;;
16920 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
16921
16922 cat >>confdefs.h <<\_ACEOF
16923 #define NEW_PROC_API 1
16924 _ACEOF
16925
16926 ;;
16927 mips-sgi-irix5*)
16928 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
16929
16930 cat >>confdefs.h <<\_ACEOF
16931 #define _KMEMUSER 1
16932 _ACEOF
16933
16934 ;;
16935 esac
16936 fi
16937
16938 if test "$ac_cv_header_sys_procfs_h" = yes; then
16939 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
16940 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
16941 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
16942 echo $ECHO_N "(cached) $ECHO_C" >&6
16943 else
16944 cat >conftest.$ac_ext <<_ACEOF
16945 /* confdefs.h. */
16946 _ACEOF
16947 cat confdefs.h >>conftest.$ac_ext
16948 cat >>conftest.$ac_ext <<_ACEOF
16949 /* end confdefs.h. */
16950
16951 #define _SYSCALL32
16952 #include <sys/procfs.h>
16953 int
16954 main ()
16955 {
16956 pstatus_t avar
16957 ;
16958 return 0;
16959 }
16960 _ACEOF
16961 rm -f conftest.$ac_objext
16962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16963 (eval $ac_compile) 2>conftest.er1
16964 ac_status=$?
16965 grep -v '^ *+' conftest.er1 >conftest.err
16966 rm -f conftest.er1
16967 cat conftest.err >&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); } &&
16970 { ac_try='test -z "$ac_c_werror_flag"
16971 || test ! -s conftest.err'
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16974 ac_status=$?
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; } &&
16977 { ac_try='test -s conftest.$ac_objext'
16978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16979 (eval $ac_try) 2>&5
16980 ac_status=$?
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; }; then
16983 bfd_cv_have_sys_procfs_type_pstatus_t=yes
16984 else
16985 echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.$ac_ext >&5
16987
16988 bfd_cv_have_sys_procfs_type_pstatus_t=no
16989
16990 fi
16991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16992 fi
16993
16994 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
16995
16996 cat >>confdefs.h <<\_ACEOF
16997 #define HAVE_PSTATUS_T 1
16998 _ACEOF
16999
17000 fi
17001 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17002 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17003
17004 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17005 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17006 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17007 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 else
17009 cat >conftest.$ac_ext <<_ACEOF
17010 /* confdefs.h. */
17011 _ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17015
17016 #define _SYSCALL32
17017 #include <sys/procfs.h>
17018 int
17019 main ()
17020 {
17021 prrun_t avar
17022 ;
17023 return 0;
17024 }
17025 _ACEOF
17026 rm -f conftest.$ac_objext
17027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17028 (eval $ac_compile) 2>conftest.er1
17029 ac_status=$?
17030 grep -v '^ *+' conftest.er1 >conftest.err
17031 rm -f conftest.er1
17032 cat conftest.err >&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } &&
17035 { ac_try='test -z "$ac_c_werror_flag"
17036 || test ! -s conftest.err'
17037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17038 (eval $ac_try) 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; } &&
17042 { ac_try='test -s conftest.$ac_objext'
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17045 ac_status=$?
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048 bfd_cv_have_sys_procfs_type_prrun_t=yes
17049 else
17050 echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17052
17053 bfd_cv_have_sys_procfs_type_prrun_t=no
17054
17055 fi
17056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17057 fi
17058
17059 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17060
17061 cat >>confdefs.h <<\_ACEOF
17062 #define HAVE_PRRUN_T 1
17063 _ACEOF
17064
17065 fi
17066 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17067 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17068
17069 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17070 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17071 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17072 echo $ECHO_N "(cached) $ECHO_C" >&6
17073 else
17074 cat >conftest.$ac_ext <<_ACEOF
17075 /* confdefs.h. */
17076 _ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17080
17081 #define _SYSCALL32
17082 #include <sys/procfs.h>
17083 int
17084 main ()
17085 {
17086 gregset_t avar
17087 ;
17088 return 0;
17089 }
17090 _ACEOF
17091 rm -f conftest.$ac_objext
17092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17093 (eval $ac_compile) 2>conftest.er1
17094 ac_status=$?
17095 grep -v '^ *+' conftest.er1 >conftest.err
17096 rm -f conftest.er1
17097 cat conftest.err >&5
17098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099 (exit $ac_status); } &&
17100 { ac_try='test -z "$ac_c_werror_flag"
17101 || test ! -s conftest.err'
17102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17103 (eval $ac_try) 2>&5
17104 ac_status=$?
17105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17106 (exit $ac_status); }; } &&
17107 { ac_try='test -s conftest.$ac_objext'
17108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17109 (eval $ac_try) 2>&5
17110 ac_status=$?
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 bfd_cv_have_sys_procfs_type_gregset_t=yes
17114 else
17115 echo "$as_me: failed program was:" >&5
17116 sed 's/^/| /' conftest.$ac_ext >&5
17117
17118 bfd_cv_have_sys_procfs_type_gregset_t=no
17119
17120 fi
17121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17122 fi
17123
17124 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17125
17126 cat >>confdefs.h <<\_ACEOF
17127 #define HAVE_GREGSET_T 1
17128 _ACEOF
17129
17130 fi
17131 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17132 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17133
17134 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17135 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17136 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17138 else
17139 cat >conftest.$ac_ext <<_ACEOF
17140 /* confdefs.h. */
17141 _ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17145
17146 #define _SYSCALL32
17147 #include <sys/procfs.h>
17148 int
17149 main ()
17150 {
17151 fpregset_t avar
17152 ;
17153 return 0;
17154 }
17155 _ACEOF
17156 rm -f conftest.$ac_objext
17157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17158 (eval $ac_compile) 2>conftest.er1
17159 ac_status=$?
17160 grep -v '^ *+' conftest.er1 >conftest.err
17161 rm -f conftest.er1
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag"
17166 || test ! -s conftest.err'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17169 ac_status=$?
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try='test -s conftest.$ac_objext'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17175 ac_status=$?
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 bfd_cv_have_sys_procfs_type_fpregset_t=yes
17179 else
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17182
17183 bfd_cv_have_sys_procfs_type_fpregset_t=no
17184
17185 fi
17186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17187 fi
17188
17189 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17190
17191 cat >>confdefs.h <<\_ACEOF
17192 #define HAVE_FPREGSET_T 1
17193 _ACEOF
17194
17195 fi
17196 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17197 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17198
17199 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17200 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17201 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17202 echo $ECHO_N "(cached) $ECHO_C" >&6
17203 else
17204 cat >conftest.$ac_ext <<_ACEOF
17205 /* confdefs.h. */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17210
17211 #define _SYSCALL32
17212 #include <sys/procfs.h>
17213 int
17214 main ()
17215 {
17216 prgregset_t avar
17217 ;
17218 return 0;
17219 }
17220 _ACEOF
17221 rm -f conftest.$ac_objext
17222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17223 (eval $ac_compile) 2>conftest.er1
17224 ac_status=$?
17225 grep -v '^ *+' conftest.er1 >conftest.err
17226 rm -f conftest.er1
17227 cat conftest.err >&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); } &&
17230 { ac_try='test -z "$ac_c_werror_flag"
17231 || test ! -s conftest.err'
17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233 (eval $ac_try) 2>&5
17234 ac_status=$?
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; } &&
17237 { ac_try='test -s conftest.$ac_objext'
17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239 (eval $ac_try) 2>&5
17240 ac_status=$?
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; }; then
17243 bfd_cv_have_sys_procfs_type_prgregset_t=yes
17244 else
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248 bfd_cv_have_sys_procfs_type_prgregset_t=no
17249
17250 fi
17251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17252 fi
17253
17254 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17255
17256 cat >>confdefs.h <<\_ACEOF
17257 #define HAVE_PRGREGSET_T 1
17258 _ACEOF
17259
17260 fi
17261 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17262 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17263
17264 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17265 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17266 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269 cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h. */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17275
17276 #define _SYSCALL32
17277 #include <sys/procfs.h>
17278 int
17279 main ()
17280 {
17281 prfpregset_t avar
17282 ;
17283 return 0;
17284 }
17285 _ACEOF
17286 rm -f conftest.$ac_objext
17287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17288 (eval $ac_compile) 2>conftest.er1
17289 ac_status=$?
17290 grep -v '^ *+' conftest.er1 >conftest.err
17291 rm -f conftest.er1
17292 cat conftest.err >&5
17293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17294 (exit $ac_status); } &&
17295 { ac_try='test -z "$ac_c_werror_flag"
17296 || test ! -s conftest.err'
17297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17298 (eval $ac_try) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; } &&
17302 { ac_try='test -s conftest.$ac_objext'
17303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17304 (eval $ac_try) 2>&5
17305 ac_status=$?
17306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17307 (exit $ac_status); }; }; then
17308 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17309 else
17310 echo "$as_me: failed program was:" >&5
17311 sed 's/^/| /' conftest.$ac_ext >&5
17312
17313 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17314
17315 fi
17316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17317 fi
17318
17319 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17320
17321 cat >>confdefs.h <<\_ACEOF
17322 #define HAVE_PRFPREGSET_T 1
17323 _ACEOF
17324
17325 fi
17326 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17327 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17328
17329 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17330 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17331 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
17333 else
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h. */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h. */
17340
17341 #define _SYSCALL32
17342 #include <sys/procfs.h>
17343 int
17344 main ()
17345 {
17346 prgregset32_t avar
17347 ;
17348 return 0;
17349 }
17350 _ACEOF
17351 rm -f conftest.$ac_objext
17352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17353 (eval $ac_compile) 2>conftest.er1
17354 ac_status=$?
17355 grep -v '^ *+' conftest.er1 >conftest.err
17356 rm -f conftest.er1
17357 cat conftest.err >&5
17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17359 (exit $ac_status); } &&
17360 { ac_try='test -z "$ac_c_werror_flag"
17361 || test ! -s conftest.err'
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17364 ac_status=$?
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; } &&
17367 { ac_try='test -s conftest.$ac_objext'
17368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17369 (eval $ac_try) 2>&5
17370 ac_status=$?
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); }; }; then
17373 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17374 else
17375 echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17377
17378 bfd_cv_have_sys_procfs_type_prgregset32_t=no
17379
17380 fi
17381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17382 fi
17383
17384 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17385
17386 cat >>confdefs.h <<\_ACEOF
17387 #define HAVE_PRGREGSET32_T 1
17388 _ACEOF
17389
17390 fi
17391 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17392 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17393
17394 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17395 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17396 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17398 else
17399 cat >conftest.$ac_ext <<_ACEOF
17400 /* confdefs.h. */
17401 _ACEOF
17402 cat confdefs.h >>conftest.$ac_ext
17403 cat >>conftest.$ac_ext <<_ACEOF
17404 /* end confdefs.h. */
17405
17406 #define _SYSCALL32
17407 #include <sys/procfs.h>
17408 int
17409 main ()
17410 {
17411 prfpregset32_t avar
17412 ;
17413 return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17418 (eval $ac_compile) 2>conftest.er1
17419 ac_status=$?
17420 grep -v '^ *+' conftest.er1 >conftest.err
17421 rm -f conftest.er1
17422 cat conftest.err >&5
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
17425 { ac_try='test -z "$ac_c_werror_flag"
17426 || test ! -s conftest.err'
17427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428 (eval $ac_try) 2>&5
17429 ac_status=$?
17430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431 (exit $ac_status); }; } &&
17432 { ac_try='test -s conftest.$ac_objext'
17433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17434 (eval $ac_try) 2>&5
17435 ac_status=$?
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); }; }; then
17438 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
17439 else
17440 echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
17444
17445 fi
17446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17447 fi
17448
17449 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17450
17451 cat >>confdefs.h <<\_ACEOF
17452 #define HAVE_PRFPREGSET32_T 1
17453 _ACEOF
17454
17455 fi
17456 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17457 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
17458
17459 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17460 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
17461 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
17462 echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464 cat >conftest.$ac_ext <<_ACEOF
17465 /* confdefs.h. */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470
17471 #define _SYSCALL32
17472 #include <sys/procfs.h>
17473 int
17474 main ()
17475 {
17476 lwpid_t avar
17477 ;
17478 return 0;
17479 }
17480 _ACEOF
17481 rm -f conftest.$ac_objext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17483 (eval $ac_compile) 2>conftest.er1
17484 ac_status=$?
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try='test -z "$ac_c_werror_flag"
17491 || test ! -s conftest.err'
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; } &&
17497 { ac_try='test -s conftest.$ac_objext'
17498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17499 (eval $ac_try) 2>&5
17500 ac_status=$?
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 bfd_cv_have_sys_procfs_type_lwpid_t=yes
17504 else
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17507
17508 bfd_cv_have_sys_procfs_type_lwpid_t=no
17509
17510 fi
17511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17512 fi
17513
17514 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
17515
17516 cat >>confdefs.h <<\_ACEOF
17517 #define HAVE_LWPID_T 1
17518 _ACEOF
17519
17520 fi
17521 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
17522 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
17523
17524 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
17525 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
17526 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
17527 echo $ECHO_N "(cached) $ECHO_C" >&6
17528 else
17529 cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h. */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535
17536 #define _SYSCALL32
17537 #include <sys/procfs.h>
17538 int
17539 main ()
17540 {
17541 psaddr_t avar
17542 ;
17543 return 0;
17544 }
17545 _ACEOF
17546 rm -f conftest.$ac_objext
17547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17548 (eval $ac_compile) 2>conftest.er1
17549 ac_status=$?
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -z "$ac_c_werror_flag"
17556 || test ! -s conftest.err'
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest.$ac_objext'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 bfd_cv_have_sys_procfs_type_psaddr_t=yes
17569 else
17570 echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17572
17573 bfd_cv_have_sys_procfs_type_psaddr_t=no
17574
17575 fi
17576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17577 fi
17578
17579 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
17580
17581 cat >>confdefs.h <<\_ACEOF
17582 #define HAVE_PSADDR_T 1
17583 _ACEOF
17584
17585 fi
17586 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
17587 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
17588
17589 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
17590 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
17591 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
17592 echo $ECHO_N "(cached) $ECHO_C" >&6
17593 else
17594 cat >conftest.$ac_ext <<_ACEOF
17595 /* confdefs.h. */
17596 _ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17600
17601 #define _SYSCALL32
17602 #include <sys/procfs.h>
17603 int
17604 main ()
17605 {
17606 prsysent_t avar
17607 ;
17608 return 0;
17609 }
17610 _ACEOF
17611 rm -f conftest.$ac_objext
17612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17613 (eval $ac_compile) 2>conftest.er1
17614 ac_status=$?
17615 grep -v '^ *+' conftest.er1 >conftest.err
17616 rm -f conftest.er1
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } &&
17620 { ac_try='test -z "$ac_c_werror_flag"
17621 || test ! -s conftest.err'
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; } &&
17627 { ac_try='test -s conftest.$ac_objext'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; }; then
17633 bfd_cv_have_sys_procfs_type_prsysent_t=yes
17634 else
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17637
17638 bfd_cv_have_sys_procfs_type_prsysent_t=no
17639
17640 fi
17641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17642 fi
17643
17644 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
17645
17646 cat >>confdefs.h <<\_ACEOF
17647 #define HAVE_PRSYSENT_T 1
17648 _ACEOF
17649
17650 fi
17651 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
17652 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
17653
17654 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
17655 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
17656 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 else
17659 cat >conftest.$ac_ext <<_ACEOF
17660 /* confdefs.h. */
17661 _ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17665
17666 #define _SYSCALL32
17667 #include <sys/procfs.h>
17668 int
17669 main ()
17670 {
17671 pr_sigset_t avar
17672 ;
17673 return 0;
17674 }
17675 _ACEOF
17676 rm -f conftest.$ac_objext
17677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17678 (eval $ac_compile) 2>conftest.er1
17679 ac_status=$?
17680 grep -v '^ *+' conftest.er1 >conftest.err
17681 rm -f conftest.er1
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } &&
17685 { ac_try='test -z "$ac_c_werror_flag"
17686 || test ! -s conftest.err'
17687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17688 (eval $ac_try) 2>&5
17689 ac_status=$?
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); }; } &&
17692 { ac_try='test -s conftest.$ac_objext'
17693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17694 (eval $ac_try) 2>&5
17695 ac_status=$?
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); }; }; then
17698 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
17699 else
17700 echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17702
17703 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
17704
17705 fi
17706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17707 fi
17708
17709 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
17710
17711 cat >>confdefs.h <<\_ACEOF
17712 #define HAVE_PR_SIGSET_T 1
17713 _ACEOF
17714
17715 fi
17716 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
17717 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
17718
17719 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
17720 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
17721 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
17723 else
17724 cat >conftest.$ac_ext <<_ACEOF
17725 /* confdefs.h. */
17726 _ACEOF
17727 cat confdefs.h >>conftest.$ac_ext
17728 cat >>conftest.$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17730
17731 #define _SYSCALL32
17732 #include <sys/procfs.h>
17733 int
17734 main ()
17735 {
17736 pr_sigaction64_t avar
17737 ;
17738 return 0;
17739 }
17740 _ACEOF
17741 rm -f conftest.$ac_objext
17742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17743 (eval $ac_compile) 2>conftest.er1
17744 ac_status=$?
17745 grep -v '^ *+' conftest.er1 >conftest.err
17746 rm -f conftest.er1
17747 cat conftest.err >&5
17748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17749 (exit $ac_status); } &&
17750 { ac_try='test -z "$ac_c_werror_flag"
17751 || test ! -s conftest.err'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; } &&
17757 { ac_try='test -s conftest.$ac_objext'
17758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759 (eval $ac_try) 2>&5
17760 ac_status=$?
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; }; then
17763 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
17764 else
17765 echo "$as_me: failed program was:" >&5
17766 sed 's/^/| /' conftest.$ac_ext >&5
17767
17768 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
17769
17770 fi
17771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17772 fi
17773
17774 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
17775
17776 cat >>confdefs.h <<\_ACEOF
17777 #define HAVE_PR_SIGACTION64_T 1
17778 _ACEOF
17779
17780 fi
17781 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
17782 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
17783
17784 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
17785 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
17786 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17788 else
17789 cat >conftest.$ac_ext <<_ACEOF
17790 /* confdefs.h. */
17791 _ACEOF
17792 cat confdefs.h >>conftest.$ac_ext
17793 cat >>conftest.$ac_ext <<_ACEOF
17794 /* end confdefs.h. */
17795
17796 #define _SYSCALL32
17797 #include <sys/procfs.h>
17798 int
17799 main ()
17800 {
17801 pr_siginfo64_t avar
17802 ;
17803 return 0;
17804 }
17805 _ACEOF
17806 rm -f conftest.$ac_objext
17807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17808 (eval $ac_compile) 2>conftest.er1
17809 ac_status=$?
17810 grep -v '^ *+' conftest.er1 >conftest.err
17811 rm -f conftest.er1
17812 cat conftest.err >&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); } &&
17815 { ac_try='test -z "$ac_c_werror_flag"
17816 || test ! -s conftest.err'
17817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17818 (eval $ac_try) 2>&5
17819 ac_status=$?
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); }; } &&
17822 { ac_try='test -s conftest.$ac_objext'
17823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17825 ac_status=$?
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; }; then
17828 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
17829 else
17830 echo "$as_me: failed program was:" >&5
17831 sed 's/^/| /' conftest.$ac_ext >&5
17832
17833 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
17834
17835 fi
17836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17837 fi
17838
17839 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
17840
17841 cat >>confdefs.h <<\_ACEOF
17842 #define HAVE_PR_SIGINFO64_T 1
17843 _ACEOF
17844
17845 fi
17846 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
17847 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
17848
17849
17850
17851
17852
17853 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17854 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
17855 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
17856 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
17857 echo $ECHO_N "(cached) $ECHO_C" >&6
17858 else
17859 if test "$cross_compiling" = yes; then
17860 gdb_cv_prfpregset_t_broken=yes
17861 else
17862 cat >conftest.$ac_ext <<_ACEOF
17863 /* confdefs.h. */
17864 _ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h. */
17868 #include <sys/procfs.h>
17869 int main ()
17870 {
17871 if (sizeof (prfpregset_t) == sizeof (void *))
17872 return 1;
17873 return 0;
17874 }
17875 _ACEOF
17876 rm -f conftest$ac_exeext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17878 (eval $ac_link) 2>&5
17879 ac_status=$?
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17883 (eval $ac_try) 2>&5
17884 ac_status=$?
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); }; }; then
17887 gdb_cv_prfpregset_t_broken=no
17888 else
17889 echo "$as_me: program exited with status $ac_status" >&5
17890 echo "$as_me: failed program was:" >&5
17891 sed 's/^/| /' conftest.$ac_ext >&5
17892
17893 ( exit $ac_status )
17894 gdb_cv_prfpregset_t_broken=yes
17895 fi
17896 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17897 fi
17898 fi
17899
17900 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
17901 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
17902 if test $gdb_cv_prfpregset_t_broken = yes; then
17903
17904 cat >>confdefs.h <<\_ACEOF
17905 #define PRFPREGSET_T_BROKEN 1
17906 _ACEOF
17907
17908 fi
17909 fi
17910
17911
17912 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
17913 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
17914 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
17915 echo $ECHO_N "(cached) $ECHO_C" >&6
17916 else
17917 cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h. */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17923 #include <unistd.h>
17924 #include <sys/types.h>
17925 #include <sys/procfs.h>
17926
17927 int
17928 main ()
17929 {
17930
17931 int dummy;;
17932 dummy = ioctl(0, PIOCSET, &dummy);
17933
17934 ;
17935 return 0;
17936 }
17937 _ACEOF
17938 rm -f conftest.$ac_objext
17939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17940 (eval $ac_compile) 2>conftest.er1
17941 ac_status=$?
17942 grep -v '^ *+' conftest.er1 >conftest.err
17943 rm -f conftest.er1
17944 cat conftest.err >&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } &&
17947 { ac_try='test -z "$ac_c_werror_flag"
17948 || test ! -s conftest.err'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17951 ac_status=$?
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; } &&
17954 { ac_try='test -s conftest.$ac_objext'
17955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17956 (eval $ac_try) 2>&5
17957 ac_status=$?
17958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17959 (exit $ac_status); }; }; then
17960 gdb_cv_have_procfs_piocset=yes
17961 else
17962 echo "$as_me: failed program was:" >&5
17963 sed 's/^/| /' conftest.$ac_ext >&5
17964
17965 gdb_cv_have_procfs_piocset=no
17966 fi
17967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17968 fi
17969
17970 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
17971 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
17972 if test $gdb_cv_have_procfs_piocset = yes; then
17973
17974 cat >>confdefs.h <<\_ACEOF
17975 #define HAVE_PROCFS_PIOCSET 1
17976 _ACEOF
17977
17978 fi
17979 fi
17980
17981 if test ${host} = ${target} ; then
17982
17983 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
17984 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
17985 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 else
17988 cat >conftest.$ac_ext <<_ACEOF
17989 /* confdefs.h. */
17990 _ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h. */
17994 #include <link.h>
17995 int
17996 main ()
17997 {
17998 struct link_map lm; (void) lm.l_addr;
17999 ;
18000 return 0;
18001 }
18002 _ACEOF
18003 rm -f conftest.$ac_objext
18004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18005 (eval $ac_compile) 2>conftest.er1
18006 ac_status=$?
18007 grep -v '^ *+' conftest.er1 >conftest.err
18008 rm -f conftest.er1
18009 cat conftest.err >&5
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); } &&
18012 { ac_try='test -z "$ac_c_werror_flag"
18013 || test ! -s conftest.err'
18014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18015 (eval $ac_try) 2>&5
18016 ac_status=$?
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); }; } &&
18019 { ac_try='test -s conftest.$ac_objext'
18020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18021 (eval $ac_try) 2>&5
18022 ac_status=$?
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; }; then
18025 gdb_cv_have_struct_link_map_with_l_members=yes
18026 else
18027 echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18029
18030 gdb_cv_have_struct_link_map_with_l_members=no
18031 fi
18032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18033 fi
18034
18035 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18036 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18037 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18038
18039 cat >>confdefs.h <<\_ACEOF
18040 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18041 _ACEOF
18042
18043 fi
18044
18045
18046 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18047 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18048 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18050 else
18051 cat >conftest.$ac_ext <<_ACEOF
18052 /* confdefs.h. */
18053 _ACEOF
18054 cat confdefs.h >>conftest.$ac_ext
18055 cat >>conftest.$ac_ext <<_ACEOF
18056 /* end confdefs.h. */
18057 #include <sys/types.h>
18058 #include <link.h>
18059 int
18060 main ()
18061 {
18062 struct link_map lm; (void) lm.lm_addr;
18063 ;
18064 return 0;
18065 }
18066 _ACEOF
18067 rm -f conftest.$ac_objext
18068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18069 (eval $ac_compile) 2>conftest.er1
18070 ac_status=$?
18071 grep -v '^ *+' conftest.er1 >conftest.err
18072 rm -f conftest.er1
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } &&
18076 { ac_try='test -z "$ac_c_werror_flag"
18077 || test ! -s conftest.err'
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; } &&
18083 { ac_try='test -s conftest.$ac_objext'
18084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
18089 gdb_cv_have_struct_link_map_with_lm_members=yes
18090 else
18091 echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18093
18094 gdb_cv_have_struct_link_map_with_lm_members=no
18095 fi
18096 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18097 fi
18098
18099 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18100 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18101 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18102
18103 cat >>confdefs.h <<\_ACEOF
18104 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18105 _ACEOF
18106
18107 fi
18108
18109
18110 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18111 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18112 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18114 else
18115 cat >conftest.$ac_ext <<_ACEOF
18116 /* confdefs.h. */
18117 _ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18121 #include <sys/types.h>
18122 #ifdef HAVE_NLIST_H
18123 #include <nlist.h>
18124 #endif
18125 #include <link.h>
18126 int
18127 main ()
18128 {
18129 struct so_map lm; (void) lm.som_addr;
18130 ;
18131 return 0;
18132 }
18133 _ACEOF
18134 rm -f conftest.$ac_objext
18135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18136 (eval $ac_compile) 2>conftest.er1
18137 ac_status=$?
18138 grep -v '^ *+' conftest.er1 >conftest.err
18139 rm -f conftest.er1
18140 cat conftest.err >&5
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); } &&
18143 { ac_try='test -z "$ac_c_werror_flag"
18144 || test ! -s conftest.err'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18147 ac_status=$?
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; } &&
18150 { ac_try='test -s conftest.$ac_objext'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; }; then
18156 gdb_cv_have_struct_so_map_with_som_members=yes
18157 else
18158 echo "$as_me: failed program was:" >&5
18159 sed 's/^/| /' conftest.$ac_ext >&5
18160
18161 gdb_cv_have_struct_so_map_with_som_members=no
18162 fi
18163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18164 fi
18165
18166 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18167 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18168 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18169
18170 cat >>confdefs.h <<\_ACEOF
18171 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18172 _ACEOF
18173
18174 fi
18175
18176
18177 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18178 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18179 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18180 echo $ECHO_N "(cached) $ECHO_C" >&6
18181 else
18182 cat >conftest.$ac_ext <<_ACEOF
18183 /* confdefs.h. */
18184 _ACEOF
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h. */
18188 #define _SYSCALL32
18189 #include <sys/link.h>
18190 int
18191 main ()
18192 {
18193 struct link_map32 l;
18194 ;
18195 return 0;
18196 }
18197 _ACEOF
18198 rm -f conftest.$ac_objext
18199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18200 (eval $ac_compile) 2>conftest.er1
18201 ac_status=$?
18202 grep -v '^ *+' conftest.er1 >conftest.err
18203 rm -f conftest.er1
18204 cat conftest.err >&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } &&
18207 { ac_try='test -z "$ac_c_werror_flag"
18208 || test ! -s conftest.err'
18209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18210 (eval $ac_try) 2>&5
18211 ac_status=$?
18212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18213 (exit $ac_status); }; } &&
18214 { ac_try='test -s conftest.$ac_objext'
18215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18216 (eval $ac_try) 2>&5
18217 ac_status=$?
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); }; }; then
18220 gdb_cv_have_struct_link_map32=yes
18221 else
18222 echo "$as_me: failed program was:" >&5
18223 sed 's/^/| /' conftest.$ac_ext >&5
18224
18225 gdb_cv_have_struct_link_map32=no
18226 fi
18227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18228 fi
18229
18230 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18231 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18232 if test $gdb_cv_have_struct_link_map32 = yes; then
18233
18234 cat >>confdefs.h <<\_ACEOF
18235 #define HAVE_STRUCT_LINK_MAP32 1
18236 _ACEOF
18237
18238
18239 cat >>confdefs.h <<\_ACEOF
18240 #define _SYSCALL32 1
18241 _ACEOF
18242
18243 fi
18244 fi
18245
18246 # Check if the compiler supports the `long long' type.
18247
18248 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18249 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18250 if test "${gdb_cv_c_long_long+set}" = set; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18252 else
18253 cat >conftest.$ac_ext <<_ACEOF
18254 /* confdefs.h. */
18255 _ACEOF
18256 cat confdefs.h >>conftest.$ac_ext
18257 cat >>conftest.$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18259 extern long long foo;
18260 int
18261 main ()
18262 {
18263 switch (foo & 2) { case 0: return 1; }
18264 ;
18265 return 0;
18266 }
18267 _ACEOF
18268 rm -f conftest.$ac_objext
18269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18270 (eval $ac_compile) 2>conftest.er1
18271 ac_status=$?
18272 grep -v '^ *+' conftest.er1 >conftest.err
18273 rm -f conftest.er1
18274 cat conftest.err >&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); } &&
18277 { ac_try='test -z "$ac_c_werror_flag"
18278 || test ! -s conftest.err'
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; } &&
18284 { ac_try='test -s conftest.$ac_objext'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18290 gdb_cv_c_long_long=yes
18291 else
18292 echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18294
18295 gdb_cv_c_long_long=no
18296 fi
18297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18298 fi
18299 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18300 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18301 if test $gdb_cv_c_long_long = yes; then
18302
18303 cat >>confdefs.h <<\_ACEOF
18304 #define CC_HAS_LONG_LONG 1
18305 _ACEOF
18306
18307 fi
18308
18309 # Check if the compiler and runtime support printing long longs.
18310
18311 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18312 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18313 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18315 else
18316 if test "$cross_compiling" = yes; then
18317 gdb_cv_printf_has_long_long=no
18318 else
18319 cat >conftest.$ac_ext <<_ACEOF
18320 /* confdefs.h. */
18321 _ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h. */
18325 $ac_includes_default
18326 int
18327 main ()
18328 {
18329 char buf[32];
18330 long long l = 0;
18331 l = (l << 16) + 0x0123;
18332 l = (l << 16) + 0x4567;
18333 l = (l << 16) + 0x89ab;
18334 l = (l << 16) + 0xcdef;
18335 sprintf (buf, "0x%016llx", l);
18336 return (strcmp ("0x0123456789abcdef", buf));
18337 ;
18338 return 0;
18339 }
18340 _ACEOF
18341 rm -f conftest$ac_exeext
18342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18343 (eval $ac_link) 2>&5
18344 ac_status=$?
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18352 gdb_cv_printf_has_long_long=yes
18353 else
18354 echo "$as_me: program exited with status $ac_status" >&5
18355 echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18357
18358 ( exit $ac_status )
18359 gdb_cv_printf_has_long_long=no
18360 fi
18361 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18362 fi
18363 fi
18364 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18365 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18366 if test $gdb_cv_printf_has_long_long = yes; then
18367
18368 cat >>confdefs.h <<\_ACEOF
18369 #define PRINTF_HAS_LONG_LONG 1
18370 _ACEOF
18371
18372 fi
18373
18374 # Check if the compiler and runtime support printing decfloats.
18375
18376 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
18377 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
18378 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 else
18381 if test "$cross_compiling" = yes; then
18382 gdb_cv_printf_has_decfloat=no
18383 else
18384 cat >conftest.$ac_ext <<_ACEOF
18385 /* confdefs.h. */
18386 _ACEOF
18387 cat confdefs.h >>conftest.$ac_ext
18388 cat >>conftest.$ac_ext <<_ACEOF
18389 /* end confdefs.h. */
18390 $ac_includes_default
18391 int
18392 main ()
18393 {
18394 char buf[64];
18395 _Decimal32 d32 = 1.2345df;
18396 _Decimal64 d64 = 1.2345dd;
18397 _Decimal128 d128 = 1.2345dl;
18398 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
18399 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
18400 ;
18401 return 0;
18402 }
18403 _ACEOF
18404 rm -f conftest$ac_exeext
18405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18406 (eval $ac_link) 2>&5
18407 ac_status=$?
18408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18411 (eval $ac_try) 2>&5
18412 ac_status=$?
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); }; }; then
18415 gdb_cv_printf_has_decfloat=yes
18416 else
18417 echo "$as_me: program exited with status $ac_status" >&5
18418 echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18420
18421 ( exit $ac_status )
18422 gdb_cv_printf_has_decfloat=no
18423 fi
18424 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18425 fi
18426 fi
18427 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
18428 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
18429 if test $gdb_cv_printf_has_decfloat = yes; then
18430
18431 cat >>confdefs.h <<\_ACEOF
18432 #define PRINTF_HAS_DECFLOAT 1
18433 _ACEOF
18434
18435 fi
18436
18437 # Check if the compiler supports the `long double' type. We can't use
18438 # AC_C_LONG_DOUBLE because that one does additional checks on the
18439 # constants defined in <float.h> that fail on some systems,
18440 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18441
18442 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18443 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18444 if test "${gdb_cv_c_long_double+set}" = set; then
18445 echo $ECHO_N "(cached) $ECHO_C" >&6
18446 else
18447 cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h. */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453 long double foo;
18454 _ACEOF
18455 rm -f conftest.$ac_objext
18456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18457 (eval $ac_compile) 2>conftest.er1
18458 ac_status=$?
18459 grep -v '^ *+' conftest.er1 >conftest.err
18460 rm -f conftest.er1
18461 cat conftest.err >&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } &&
18464 { ac_try='test -z "$ac_c_werror_flag"
18465 || test ! -s conftest.err'
18466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18467 (eval $ac_try) 2>&5
18468 ac_status=$?
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); }; } &&
18471 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
18477 gdb_cv_c_long_double=yes
18478 else
18479 echo "$as_me: failed program was:" >&5
18480 sed 's/^/| /' conftest.$ac_ext >&5
18481
18482 gdb_cv_c_long_double=no
18483 fi
18484 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18485 fi
18486 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18487 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18488 if test $gdb_cv_c_long_double = yes; then
18489
18490 cat >>confdefs.h <<\_ACEOF
18491 #define HAVE_LONG_DOUBLE 1
18492 _ACEOF
18493
18494 fi
18495
18496 # Check if the compiler and runtime support printing long doubles.
18497
18498 echo "$as_me:$LINENO: checking for long double support in printf" >&5
18499 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
18500 if test "${gdb_cv_printf_has_long_double+set}" = set; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 else
18503 if test "$cross_compiling" = yes; then
18504 gdb_cv_printf_has_long_double=no
18505 else
18506 cat >conftest.$ac_ext <<_ACEOF
18507 /* confdefs.h. */
18508 _ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512 $ac_includes_default
18513 int
18514 main ()
18515 {
18516 char buf[16];
18517 long double f = 3.141592653;
18518 sprintf (buf, "%Lg", f);
18519 return (strncmp ("3.14159", buf, 7));
18520 ;
18521 return 0;
18522 }
18523 _ACEOF
18524 rm -f conftest$ac_exeext
18525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18526 (eval $ac_link) 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; }; then
18535 gdb_cv_printf_has_long_double=yes
18536 else
18537 echo "$as_me: program exited with status $ac_status" >&5
18538 echo "$as_me: failed program was:" >&5
18539 sed 's/^/| /' conftest.$ac_ext >&5
18540
18541 ( exit $ac_status )
18542 gdb_cv_printf_has_long_double=no
18543 fi
18544 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18545 fi
18546 fi
18547 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
18548 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
18549 if test $gdb_cv_printf_has_long_double = yes; then
18550
18551 cat >>confdefs.h <<\_ACEOF
18552 #define PRINTF_HAS_LONG_DOUBLE 1
18553 _ACEOF
18554
18555 fi
18556
18557 # Check if the compiler and runtime support scanning long doubles.
18558
18559 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
18560 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
18561 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 else
18564 if test "$cross_compiling" = yes; then
18565 gdb_cv_scanf_has_long_double=no
18566 else
18567 cat >conftest.$ac_ext <<_ACEOF
18568 /* confdefs.h. */
18569 _ACEOF
18570 cat confdefs.h >>conftest.$ac_ext
18571 cat >>conftest.$ac_ext <<_ACEOF
18572 /* end confdefs.h. */
18573 #include <stdio.h>
18574 int
18575 main ()
18576 {
18577 char *buf = "3.141592653";
18578 long double f = 0;
18579 sscanf (buf, "%Lg", &f);
18580 return !(f > 3.14159 && f < 3.14160);
18581 ;
18582 return 0;
18583 }
18584 _ACEOF
18585 rm -f conftest$ac_exeext
18586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18587 (eval $ac_link) 2>&5
18588 ac_status=$?
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18592 (eval $ac_try) 2>&5
18593 ac_status=$?
18594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18595 (exit $ac_status); }; }; then
18596 gdb_cv_scanf_has_long_double=yes
18597 else
18598 echo "$as_me: program exited with status $ac_status" >&5
18599 echo "$as_me: failed program was:" >&5
18600 sed 's/^/| /' conftest.$ac_ext >&5
18601
18602 ( exit $ac_status )
18603 gdb_cv_scanf_has_long_double=no
18604 fi
18605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18606 fi
18607 fi
18608 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
18609 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
18610 if test $gdb_cv_scanf_has_long_double = yes; then
18611
18612 cat >>confdefs.h <<\_ACEOF
18613 #define SCANF_HAS_LONG_DOUBLE 1
18614 _ACEOF
18615
18616 fi
18617
18618 case ${host_os} in
18619 aix*)
18620 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
18621 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
18622 if test "${gdb_cv_bigtoc+set}" = set; then
18623 echo $ECHO_N "(cached) $ECHO_C" >&6
18624 else
18625
18626 SAVE_LDFLAGS=$LDFLAGS
18627
18628 case $GCC in
18629 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
18630 *) gdb_cv_bigtoc=-bbigtoc ;;
18631 esac
18632
18633 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
18634 cat >conftest.$ac_ext <<_ACEOF
18635 /* confdefs.h. */
18636 _ACEOF
18637 cat confdefs.h >>conftest.$ac_ext
18638 cat >>conftest.$ac_ext <<_ACEOF
18639 /* end confdefs.h. */
18640
18641 int
18642 main ()
18643 {
18644 int i;
18645 ;
18646 return 0;
18647 }
18648 _ACEOF
18649 rm -f conftest.$ac_objext conftest$ac_exeext
18650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18651 (eval $ac_link) 2>conftest.er1
18652 ac_status=$?
18653 grep -v '^ *+' conftest.er1 >conftest.err
18654 rm -f conftest.er1
18655 cat conftest.err >&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } &&
18658 { ac_try='test -z "$ac_c_werror_flag"
18659 || test ! -s conftest.err'
18660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661 (eval $ac_try) 2>&5
18662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; } &&
18665 { ac_try='test -s conftest$ac_exeext'
18666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18667 (eval $ac_try) 2>&5
18668 ac_status=$?
18669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18670 (exit $ac_status); }; }; then
18671 :
18672 else
18673 echo "$as_me: failed program was:" >&5
18674 sed 's/^/| /' conftest.$ac_ext >&5
18675
18676 gdb_cv_bigtoc=
18677 fi
18678 rm -f conftest.err conftest.$ac_objext \
18679 conftest$ac_exeext conftest.$ac_ext
18680 LDFLAGS="${SAVE_LDFLAGS}"
18681
18682 fi
18683 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
18684 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
18685 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
18686 ;;
18687 esac
18688
18689
18690
18691 if test ${build} = ${host} -a ${host} = ${target} ; then
18692 case ${host_os} in
18693 hpux*)
18694 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
18695 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
18696 if test -f /usr/include/dce/cma_config.h ; then
18697 if test "$GCC" = "yes" ; then
18698 echo "$as_me:$LINENO: result: yes" >&5
18699 echo "${ECHO_T}yes" >&6
18700
18701 cat >>confdefs.h <<\_ACEOF
18702 #define HAVE_HPUX_THREAD_SUPPORT 1
18703 _ACEOF
18704
18705 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
18706 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
18707 else
18708 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
18709 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
18710 fi
18711 else
18712 echo "$as_me:$LINENO: result: no" >&5
18713 echo "${ECHO_T}no" >&6
18714 fi
18715 ;;
18716 solaris*)
18717 # See if thread_db library is around for Solaris thread debugging.
18718 # Note that we must explicitly test for version 1 of the library
18719 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
18720 # the same API.
18721 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
18722 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
18723 if test -f /usr/lib/libthread_db.so.1 ; then
18724 echo "$as_me:$LINENO: result: yes" >&5
18725 echo "${ECHO_T}yes" >&6
18726
18727 cat >>confdefs.h <<\_ACEOF
18728 #define HAVE_THREAD_DB_LIB 1
18729 _ACEOF
18730
18731 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
18732 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
18733
18734 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18735 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18736 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18738 else
18739 ac_check_lib_save_LIBS=$LIBS
18740 LIBS="-ldl $LIBS"
18741 cat >conftest.$ac_ext <<_ACEOF
18742 /* confdefs.h. */
18743 _ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h. */
18747
18748 /* Override any gcc2 internal prototype to avoid an error. */
18749 #ifdef __cplusplus
18750 extern "C"
18751 #endif
18752 /* We use char because int might match the return type of a gcc2
18753 builtin and then its argument prototype would still apply. */
18754 char dlopen ();
18755 int
18756 main ()
18757 {
18758 dlopen ();
18759 ;
18760 return 0;
18761 }
18762 _ACEOF
18763 rm -f conftest.$ac_objext conftest$ac_exeext
18764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18765 (eval $ac_link) 2>conftest.er1
18766 ac_status=$?
18767 grep -v '^ *+' conftest.er1 >conftest.err
18768 rm -f conftest.er1
18769 cat conftest.err >&5
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); } &&
18772 { ac_try='test -z "$ac_c_werror_flag"
18773 || test ! -s conftest.err'
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; } &&
18779 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18785 ac_cv_lib_dl_dlopen=yes
18786 else
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18789
18790 ac_cv_lib_dl_dlopen=no
18791 fi
18792 rm -f conftest.err conftest.$ac_objext \
18793 conftest$ac_exeext conftest.$ac_ext
18794 LIBS=$ac_check_lib_save_LIBS
18795 fi
18796 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18797 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18798 if test $ac_cv_lib_dl_dlopen = yes; then
18799 cat >>confdefs.h <<_ACEOF
18800 #define HAVE_LIBDL 1
18801 _ACEOF
18802
18803 LIBS="-ldl $LIBS"
18804
18805 fi
18806
18807 if test "$GCC" = "yes" ; then
18808 # The GNU linker requires the -export-dynamic option to make
18809 # all symbols visible in the dynamic symbol table.
18810 hold_ldflags=$LDFLAGS
18811 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
18812 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
18813 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
18814 cat >conftest.$ac_ext <<_ACEOF
18815 /* confdefs.h. */
18816 _ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18820
18821 int
18822 main ()
18823 {
18824 int i;
18825 ;
18826 return 0;
18827 }
18828 _ACEOF
18829 rm -f conftest.$ac_objext conftest$ac_exeext
18830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18831 (eval $ac_link) 2>conftest.er1
18832 ac_status=$?
18833 grep -v '^ *+' conftest.er1 >conftest.err
18834 rm -f conftest.er1
18835 cat conftest.err >&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); } &&
18838 { ac_try='test -z "$ac_c_werror_flag"
18839 || test ! -s conftest.err'
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; } &&
18845 { ac_try='test -s conftest$ac_exeext'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 found=yes
18852 else
18853 echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18855
18856 found=no
18857 fi
18858 rm -f conftest.err conftest.$ac_objext \
18859 conftest$ac_exeext conftest.$ac_ext
18860 LDFLAGS=$hold_ldflags
18861 echo "$as_me:$LINENO: result: $found" >&5
18862 echo "${ECHO_T}$found" >&6
18863 if test $found = yes; then
18864 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
18865 fi
18866 fi
18867 # Sun randomly tweaked the prototypes in <proc_service.h>
18868 # at one point.
18869 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
18870 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
18871 if test "${gdb_cv_proc_service_is_old+set}" = set; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 else
18874
18875 cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h. */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18881
18882 #include <proc_service.h>
18883 ps_err_e ps_pdwrite
18884 (struct ps_prochandle*, psaddr_t, const void*, size_t);
18885
18886 int
18887 main ()
18888 {
18889
18890 ;
18891 return 0;
18892 }
18893 _ACEOF
18894 rm -f conftest.$ac_objext
18895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18896 (eval $ac_compile) 2>conftest.er1
18897 ac_status=$?
18898 grep -v '^ *+' conftest.er1 >conftest.err
18899 rm -f conftest.er1
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try='test -z "$ac_c_werror_flag"
18904 || test ! -s conftest.err'
18905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906 (eval $ac_try) 2>&5
18907 ac_status=$?
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); }; } &&
18910 { ac_try='test -s conftest.$ac_objext'
18911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18912 (eval $ac_try) 2>&5
18913 ac_status=$?
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); }; }; then
18916 gdb_cv_proc_service_is_old=no
18917 else
18918 echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18920
18921 gdb_cv_proc_service_is_old=yes
18922 fi
18923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18924
18925 fi
18926
18927 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
18928 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
18929 if test $gdb_cv_proc_service_is_old = yes; then
18930
18931 cat >>confdefs.h <<\_ACEOF
18932 #define PROC_SERVICE_IS_OLD 1
18933 _ACEOF
18934
18935 fi
18936 else
18937 echo "$as_me:$LINENO: result: no" >&5
18938 echo "${ECHO_T}no" >&6
18939 fi
18940 ;;
18941 aix*)
18942 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
18943 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
18944 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
18945 echo $ECHO_N "(cached) $ECHO_C" >&6
18946 else
18947 cat >conftest.$ac_ext <<_ACEOF
18948 /* confdefs.h. */
18949 _ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h. */
18953 #include <sys/pthdebug.h>
18954 int
18955 main ()
18956 {
18957 #ifndef PTHDB_VERSION_3
18958 #error
18959 #endif
18960 ;
18961 return 0;
18962 }
18963 _ACEOF
18964 rm -f conftest.$ac_objext
18965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18966 (eval $ac_compile) 2>conftest.er1
18967 ac_status=$?
18968 grep -v '^ *+' conftest.er1 >conftest.err
18969 rm -f conftest.er1
18970 cat conftest.err >&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } &&
18973 { ac_try='test -z "$ac_c_werror_flag"
18974 || test ! -s conftest.err'
18975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976 (eval $ac_try) 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest.$ac_objext'
18981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982 (eval $ac_try) 2>&5
18983 ac_status=$?
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; }; then
18986 gdb_cv_have_aix_thread_debug=yes
18987 else
18988 echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18990
18991 gdb_cv_have_aix_thread_debug=no
18992 fi
18993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18994 fi
18995
18996 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
18997 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
18998 if test $gdb_cv_have_aix_thread_debug = yes; then
18999 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19000 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19001 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19002 fi
19003 ;;
19004 esac
19005
19006 fi
19007
19008 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19009 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19010 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19011 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19013 else
19014 cat >conftest.$ac_ext <<_ACEOF
19015 /* confdefs.h. */
19016 _ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 #include <thread_db.h>
19021 int
19022 main ()
19023 {
19024 int i = TD_NOTALLOC;
19025 ;
19026 return 0;
19027 }
19028 _ACEOF
19029 rm -f conftest.$ac_objext
19030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19031 (eval $ac_compile) 2>conftest.er1
19032 ac_status=$?
19033 grep -v '^ *+' conftest.er1 >conftest.err
19034 rm -f conftest.er1
19035 cat conftest.err >&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); } &&
19038 { ac_try='test -z "$ac_c_werror_flag"
19039 || test ! -s conftest.err'
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; } &&
19045 { ac_try='test -s conftest.$ac_objext'
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; }; then
19051 gdb_cv_thread_db_h_has_td_notalloc=yes
19052 else
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19055
19056 gdb_cv_thread_db_h_has_td_notalloc=no
19057
19058 fi
19059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19060
19061 fi
19062 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19063 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19064 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
19065 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
19066 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
19067 echo $ECHO_N "(cached) $ECHO_C" >&6
19068 else
19069 cat >conftest.$ac_ext <<_ACEOF
19070 /* confdefs.h. */
19071 _ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h. */
19075 #include <thread_db.h>
19076 int
19077 main ()
19078 {
19079 int i = TD_VERSION;
19080 ;
19081 return 0;
19082 }
19083 _ACEOF
19084 rm -f conftest.$ac_objext
19085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19086 (eval $ac_compile) 2>conftest.er1
19087 ac_status=$?
19088 grep -v '^ *+' conftest.er1 >conftest.err
19089 rm -f conftest.er1
19090 cat conftest.err >&5
19091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19092 (exit $ac_status); } &&
19093 { ac_try='test -z "$ac_c_werror_flag"
19094 || test ! -s conftest.err'
19095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19096 (eval $ac_try) 2>&5
19097 ac_status=$?
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; } &&
19100 { ac_try='test -s conftest.$ac_objext'
19101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19102 (eval $ac_try) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); }; }; then
19106 gdb_cv_thread_db_h_has_td_version=yes
19107 else
19108 echo "$as_me: failed program was:" >&5
19109 sed 's/^/| /' conftest.$ac_ext >&5
19110
19111 gdb_cv_thread_db_h_has_td_version=no
19112
19113 fi
19114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19115
19116 fi
19117 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
19118 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
19119 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
19120 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
19121 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
19122 echo $ECHO_N "(cached) $ECHO_C" >&6
19123 else
19124 cat >conftest.$ac_ext <<_ACEOF
19125 /* confdefs.h. */
19126 _ACEOF
19127 cat confdefs.h >>conftest.$ac_ext
19128 cat >>conftest.$ac_ext <<_ACEOF
19129 /* end confdefs.h. */
19130 #include <thread_db.h>
19131 int
19132 main ()
19133 {
19134 int i = TD_NOTLS;
19135 ;
19136 return 0;
19137 }
19138 _ACEOF
19139 rm -f conftest.$ac_objext
19140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19141 (eval $ac_compile) 2>conftest.er1
19142 ac_status=$?
19143 grep -v '^ *+' conftest.er1 >conftest.err
19144 rm -f conftest.er1
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); } &&
19148 { ac_try='test -z "$ac_c_werror_flag"
19149 || test ! -s conftest.err'
19150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19151 (eval $ac_try) 2>&5
19152 ac_status=$?
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); }; } &&
19155 { ac_try='test -s conftest.$ac_objext'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19158 ac_status=$?
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; }; then
19161 gdb_cv_thread_db_h_has_td_notls=yes
19162 else
19163 echo "$as_me: failed program was:" >&5
19164 sed 's/^/| /' conftest.$ac_ext >&5
19165
19166 gdb_cv_thread_db_h_has_td_notls=no
19167
19168 fi
19169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19170
19171 fi
19172 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
19173 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
19174 fi
19175 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19176
19177 cat >>confdefs.h <<\_ACEOF
19178 #define THREAD_DB_HAS_TD_NOTALLOC 1
19179 _ACEOF
19180
19181 fi
19182 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
19183
19184 cat >>confdefs.h <<\_ACEOF
19185 #define THREAD_DB_HAS_TD_VERSION 1
19186 _ACEOF
19187
19188 fi
19189 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
19190
19191 cat >>confdefs.h <<\_ACEOF
19192 #define THREAD_DB_HAS_TD_NOTLS 1
19193 _ACEOF
19194
19195 fi
19196
19197 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19198 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19199 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19200 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19201 echo $ECHO_N "(cached) $ECHO_C" >&6
19202 else
19203 cat >conftest.$ac_ext <<_ACEOF
19204 /* confdefs.h. */
19205 _ACEOF
19206 cat confdefs.h >>conftest.$ac_ext
19207 cat >>conftest.$ac_ext <<_ACEOF
19208 /* end confdefs.h. */
19209 #include <sys/syscall.h>
19210 int
19211 main ()
19212 {
19213 int i = __NR_tkill;
19214 ;
19215 return 0;
19216 }
19217 _ACEOF
19218 rm -f conftest.$ac_objext
19219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19220 (eval $ac_compile) 2>conftest.er1
19221 ac_status=$?
19222 grep -v '^ *+' conftest.er1 >conftest.err
19223 rm -f conftest.er1
19224 cat conftest.err >&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); } &&
19227 { ac_try='test -z "$ac_c_werror_flag"
19228 || test ! -s conftest.err'
19229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230 (eval $ac_try) 2>&5
19231 ac_status=$?
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); }; } &&
19234 { ac_try='test -s conftest.$ac_objext'
19235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236 (eval $ac_try) 2>&5
19237 ac_status=$?
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; }; then
19240 gdb_cv_sys_syscall_h_has_tkill=yes
19241 else
19242 echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.$ac_ext >&5
19244
19245 gdb_cv_sys_syscall_h_has_tkill=no
19246
19247 fi
19248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19249
19250 fi
19251 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19252 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19253 fi
19254 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19255
19256 cat >>confdefs.h <<\_ACEOF
19257 #define HAVE_TKILL_SYSCALL 1
19258 _ACEOF
19259
19260 fi
19261
19262 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
19263 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
19264 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
19265 echo $ECHO_N "(cached) $ECHO_C" >&6
19266 else
19267 cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h. */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h. */
19273 #include <sys/personality.h>
19274
19275 int
19276 main ()
19277 {
19278 #ifndef ADDR_NO_RANDOMIZE
19279 char *p = (char *) ADDR_NO_RANDOMIZE;
19280 #endif
19281
19282 ;
19283 return 0;
19284 }
19285 _ACEOF
19286 rm -f conftest.$ac_objext
19287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19288 (eval $ac_compile) 2>conftest.er1
19289 ac_status=$?
19290 grep -v '^ *+' conftest.er1 >conftest.err
19291 rm -f conftest.er1
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } &&
19295 { ac_try='test -z "$ac_c_werror_flag"
19296 || test ! -s conftest.err'
19297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19298 (eval $ac_try) 2>&5
19299 ac_status=$?
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); }; } &&
19302 { ac_try='test -s conftest.$ac_objext'
19303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304 (eval $ac_try) 2>&5
19305 ac_status=$?
19306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307 (exit $ac_status); }; }; then
19308 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
19309 else
19310 echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19312
19313 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
19314 fi
19315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19316 fi
19317 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
19318 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
19319 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
19320
19321 cat >>confdefs.h <<_ACEOF
19322 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
19323 _ACEOF
19324
19325
19326 else
19327 cat >>confdefs.h <<_ACEOF
19328 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
19329 _ACEOF
19330
19331
19332 fi
19333
19334
19335
19336 if test "$cross_compiling" = yes; then
19337 cat >conftest.$ac_ext <<_ACEOF
19338 /* confdefs.h. */
19339 _ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h. */
19343 #include <sys/personality.h>
19344 int
19345 main ()
19346 {
19347
19348 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19349 # define ADDR_NO_RANDOMIZE 0x0040000
19350 # endif
19351 /* Test the flag could be set and stays set. */
19352 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19353 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19354 return 1
19355 ;
19356 return 0;
19357 }
19358 _ACEOF
19359 rm -f conftest.$ac_objext conftest$ac_exeext
19360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19361 (eval $ac_link) 2>conftest.er1
19362 ac_status=$?
19363 grep -v '^ *+' conftest.er1 >conftest.err
19364 rm -f conftest.er1
19365 cat conftest.err >&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } &&
19368 { ac_try='test -z "$ac_c_werror_flag"
19369 || test ! -s conftest.err'
19370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19371 (eval $ac_try) 2>&5
19372 ac_status=$?
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); }; } &&
19375 { ac_try='test -s conftest$ac_exeext'
19376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19377 (eval $ac_try) 2>&5
19378 ac_status=$?
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; }; then
19381 have_personality=true
19382 else
19383 echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.$ac_ext >&5
19385
19386 have_personality=false
19387 fi
19388 rm -f conftest.err conftest.$ac_objext \
19389 conftest$ac_exeext conftest.$ac_ext
19390 else
19391 cat >conftest.$ac_ext <<_ACEOF
19392 /* confdefs.h. */
19393 _ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h. */
19397 #include <sys/personality.h>
19398 int
19399 main ()
19400 {
19401
19402 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19403 # define ADDR_NO_RANDOMIZE 0x0040000
19404 # endif
19405 /* Test the flag could be set and stays set. */
19406 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19407 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19408 return 1
19409 ;
19410 return 0;
19411 }
19412 _ACEOF
19413 rm -f conftest$ac_exeext
19414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19415 (eval $ac_link) 2>&5
19416 ac_status=$?
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19420 (eval $ac_try) 2>&5
19421 ac_status=$?
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; }; then
19424 have_personality=true
19425 else
19426 echo "$as_me: program exited with status $ac_status" >&5
19427 echo "$as_me: failed program was:" >&5
19428 sed 's/^/| /' conftest.$ac_ext >&5
19429
19430 ( exit $ac_status )
19431 have_personality=false
19432 fi
19433 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19434 fi
19435 if $have_personality
19436 then
19437
19438 cat >>confdefs.h <<\_ACEOF
19439 #define HAVE_PERSONALITY 1
19440 _ACEOF
19441
19442 fi
19443
19444
19445
19446 # Check whether --with-sysroot or --without-sysroot was given.
19447 if test "${with_sysroot+set}" = set; then
19448 withval="$with_sysroot"
19449
19450 case ${with_sysroot} in
19451 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19452 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19453 esac
19454
19455 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19456
19457 if test "x$prefix" = xNONE; then
19458 test_prefix=/usr/local
19459 else
19460 test_prefix=$prefix
19461 fi
19462 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19463 test_exec_prefix=$test_prefix
19464 else
19465 test_exec_prefix=$exec_prefix
19466 fi
19467 case ${TARGET_SYSTEM_ROOT} in
19468 "${test_prefix}"|"${test_prefix}/"*|\
19469 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19470 '${prefix}'|'${prefix}/'*|\
19471 '${exec_prefix}'|'${exec_prefix}/'*)
19472 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19473 TARGET_SYSTEM_ROOT_DEFINE="$t"
19474 ;;
19475 esac
19476
19477 else
19478
19479 TARGET_SYSTEM_ROOT=
19480 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19481
19482 fi;
19483
19484
19485
19486 system_gdbinit=
19487
19488 # Check whether --with-system-gdbinit or --without-system-gdbinit was given.
19489 if test "${with_system_gdbinit+set}" = set; then
19490 withval="$with_system_gdbinit"
19491 system_gdbinit=${withval}
19492 fi;
19493
19494
19495 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19496 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19497 ac_define_dir=`eval echo $system_gdbinit`
19498 ac_define_dir=`eval echo $ac_define_dir`
19499
19500 cat >>confdefs.h <<_ACEOF
19501 #define SYSTEM_GDBINIT "$ac_define_dir"
19502 _ACEOF
19503
19504
19505
19506 if test "x$prefix" = xNONE; then
19507 test_prefix=$ac_default_prefix
19508 else
19509 test_prefix=$prefix
19510 fi
19511 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19512 test_exec_prefix=$test_prefix
19513 else
19514 test_exec_prefix=$exec_prefix
19515 fi
19516 case ${system_gdbinit} in
19517 "${test_prefix}"|"${test_prefix}/"*|\
19518 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19519 '${prefix}'|'${prefix}/'*|\
19520 '${exec_prefix}'|'${exec_prefix}/'*)
19521
19522 cat >>confdefs.h <<\_ACEOF
19523 #define SYSTEM_GDBINIT_RELOCATABLE 1
19524 _ACEOF
19525
19526 ;;
19527 esac
19528
19529 # Check whether --enable-werror or --disable-werror was given.
19530 if test "${enable_werror+set}" = set; then
19531 enableval="$enable_werror"
19532 case "${enableval}" in
19533 yes | y) ERROR_ON_WARNING="yes" ;;
19534 no | n) ERROR_ON_WARNING="no" ;;
19535 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19536 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19537 { (exit 1); exit 1; }; } ;;
19538 esac
19539 fi;
19540
19541 # Enable -Werror by default when using gcc
19542 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19543 ERROR_ON_WARNING=yes
19544 fi
19545
19546 WERROR_CFLAGS=""
19547 if test "${ERROR_ON_WARNING}" = yes ; then
19548 WERROR_CFLAGS="-Werror"
19549 fi
19550
19551 # The entries after -Wno-pointer-sign are disabled warnings which may
19552 # be enabled in the future, which can not currently be used to build
19553 # GDB.
19554 # NOTE: If you change this list, remember to update
19555 # gdb/doc/gdbint.texinfo.
19556 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
19557 -Wformat-nonliteral -Wno-pointer-sign \
19558 -Wno-unused -Wno-switch -Wno-char-subscripts"
19559
19560 # Enable -Wno-format by default when using gcc on mingw since many
19561 # GCC versions complain about %I64.
19562 case "${host}" in
19563 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
19564 esac
19565
19566 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19567 if test "${enable_build_warnings+set}" = set; then
19568 enableval="$enable_build_warnings"
19569 case "${enableval}" in
19570 yes) ;;
19571 no) build_warnings="-w";;
19572 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19573 build_warnings="${build_warnings} ${t}";;
19574 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19575 build_warnings="${t} ${build_warnings}";;
19576 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19577 esac
19578 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19579 echo "Setting compiler warning flags = $build_warnings" 6>&1
19580 fi
19581 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19582 if test "${enable_gdb_build_warnings+set}" = set; then
19583 enableval="$enable_gdb_build_warnings"
19584 case "${enableval}" in
19585 yes) ;;
19586 no) build_warnings="-w";;
19587 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19588 build_warnings="${build_warnings} ${t}";;
19589 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19590 build_warnings="${t} ${build_warnings}";;
19591 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19592 esac
19593 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19594 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19595 fi
19596 fi; WARN_CFLAGS=""
19597 if test "x${build_warnings}" != x -a "x$GCC" = xyes
19598 then
19599 echo "$as_me:$LINENO: checking compiler warning flags" >&5
19600 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
19601 # Separate out the -Werror flag as some files just cannot be
19602 # compiled with it enabled.
19603 for w in ${build_warnings}; do
19604 case $w in
19605 -Werr*) WERROR_CFLAGS=-Werror ;;
19606 *) # Check that GCC accepts it
19607 saved_CFLAGS="$CFLAGS"
19608 CFLAGS="$CFLAGS $w"
19609 cat >conftest.$ac_ext <<_ACEOF
19610 /* confdefs.h. */
19611 _ACEOF
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h. */
19615
19616 int
19617 main ()
19618 {
19619
19620 ;
19621 return 0;
19622 }
19623 _ACEOF
19624 rm -f conftest.$ac_objext
19625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19626 (eval $ac_compile) 2>conftest.er1
19627 ac_status=$?
19628 grep -v '^ *+' conftest.er1 >conftest.err
19629 rm -f conftest.er1
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } &&
19633 { ac_try='test -z "$ac_c_werror_flag"
19634 || test ! -s conftest.err'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19643 ac_status=$?
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
19646 WARN_CFLAGS="${WARN_CFLAGS} $w"
19647 else
19648 echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19650
19651 fi
19652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19653 CFLAGS="$saved_CFLAGS"
19654 esac
19655 done
19656 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
19657 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
19658 fi
19659
19660
19661
19662 # In the Cygwin environment, we need some additional flags.
19663 echo "$as_me:$LINENO: checking for cygwin" >&5
19664 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
19665 if test "${gdb_cv_os_cygwin+set}" = set; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19667 else
19668 cat >conftest.$ac_ext <<_ACEOF
19669 /* confdefs.h. */
19670 _ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19674
19675 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
19676 lose
19677 #endif
19678 _ACEOF
19679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19680 $EGREP "lose" >/dev/null 2>&1; then
19681 gdb_cv_os_cygwin=yes
19682 else
19683 gdb_cv_os_cygwin=no
19684 fi
19685 rm -f conftest*
19686
19687 fi
19688 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19689 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
19690
19691
19692 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
19693 case ${host} in
19694 *go32* ) SER_HARDWIRE=ser-go32.o ;;
19695 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
19696 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
19697 esac
19698
19699
19700 # libreadline needs libuser32.a in a cygwin environment
19701 WIN32LIBS=
19702 if test x$gdb_cv_os_cygwin = xyes; then
19703 WIN32LIBS="-luser32"
19704 case "${target}" in
19705 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
19706 ;;
19707 esac
19708 fi
19709
19710 # The ser-tcp.c module requires sockets.
19711 case ${host} in
19712 *mingw32*)
19713
19714 cat >>confdefs.h <<\_ACEOF
19715 #define USE_WIN32API 1
19716 _ACEOF
19717
19718 WIN32LIBS="$WIN32LIBS -lws2_32"
19719 ;;
19720 esac
19721
19722
19723 # Add ELF support to GDB, but only if BFD includes ELF support.
19724 OLD_CFLAGS=$CFLAGS
19725 OLD_LDFLAGS=$LDFLAGS
19726 OLD_LIBS=$LIBS
19727 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
19728 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
19729 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
19730 LIBS="-lbfd -liberty $intl $LIBS"
19731 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
19732 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
19733 if test "${gdb_cv_var_elf+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 else
19736 cat >conftest.$ac_ext <<_ACEOF
19737 /* confdefs.h. */
19738 _ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19742 #include <stdlib.h>
19743 #include "bfd.h"
19744 #include "elf-bfd.h"
19745
19746 int
19747 main ()
19748 {
19749 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
19750 ;
19751 return 0;
19752 }
19753 _ACEOF
19754 rm -f conftest.$ac_objext conftest$ac_exeext
19755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19756 (eval $ac_link) 2>conftest.er1
19757 ac_status=$?
19758 grep -v '^ *+' conftest.er1 >conftest.err
19759 rm -f conftest.er1
19760 cat conftest.err >&5
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); } &&
19763 { ac_try='test -z "$ac_c_werror_flag"
19764 || test ! -s conftest.err'
19765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19766 (eval $ac_try) 2>&5
19767 ac_status=$?
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); }; } &&
19770 { ac_try='test -s conftest$ac_exeext'
19771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19772 (eval $ac_try) 2>&5
19773 ac_status=$?
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); }; }; then
19776 gdb_cv_var_elf=yes
19777 else
19778 echo "$as_me: failed program was:" >&5
19779 sed 's/^/| /' conftest.$ac_ext >&5
19780
19781 gdb_cv_var_elf=no
19782 fi
19783 rm -f conftest.err conftest.$ac_objext \
19784 conftest$ac_exeext conftest.$ac_ext
19785 fi
19786 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
19787 echo "${ECHO_T}$gdb_cv_var_elf" >&6
19788 if test $gdb_cv_var_elf = yes; then
19789 CONFIG_OBS="$CONFIG_OBS elfread.o"
19790
19791 cat >>confdefs.h <<\_ACEOF
19792 #define HAVE_ELF 1
19793 _ACEOF
19794
19795 fi
19796 CFLAGS=$OLD_CFLAGS
19797 LDFLAGS=$OLD_LDFLAGS
19798 LIBS=$OLD_LIBS
19799
19800 # Add any host-specific objects to GDB.
19801 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
19802
19803 LIBGUI="../libgui/src/libgui.a"
19804 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
19805
19806
19807
19808 WIN32LDAPP=
19809
19810
19811
19812 case "${host}" in
19813 *-*-cygwin* | *-*-mingw* )
19814 configdir="win"
19815 ;;
19816 *)
19817 configdir="unix"
19818 ;;
19819 esac
19820
19821 GDBTKLIBS=
19822 if test "${enable_gdbtk}" = "yes"; then
19823
19824 # Gdbtk must have an absolute path to srcdir in order to run
19825 # properly when not installed.
19826 here=`pwd`
19827 cd ${srcdir}
19828 GDBTK_SRC_DIR=`pwd`
19829 cd $here
19830
19831
19832 #
19833 # Ok, lets find the tcl configuration
19834 # First, look for one uninstalled.
19835 # the alternative search directory is invoked by --with-tcl
19836 #
19837
19838 if test x"${no_tcl}" = x ; then
19839 # we reset no_tcl in case something fails here
19840 no_tcl=true
19841
19842 # Check whether --with-tcl or --without-tcl was given.
19843 if test "${with_tcl+set}" = set; then
19844 withval="$with_tcl"
19845 with_tclconfig=${withval}
19846 fi;
19847 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19848 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19849 if test "${ac_cv_c_tclconfig+set}" = set; then
19850 echo $ECHO_N "(cached) $ECHO_C" >&6
19851 else
19852
19853
19854 # First check to see if --with-tcl was specified.
19855 case "${host}" in
19856 *-*-cygwin*) platDir="win" ;;
19857 *) platDir="unix" ;;
19858 esac
19859 if test x"${with_tclconfig}" != x ; then
19860 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19861 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19862 else
19863 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19864 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19865 { (exit 1); exit 1; }; }
19866 fi
19867 fi
19868
19869 # then check for a private Tcl installation
19870 if test x"${ac_cv_c_tclconfig}" = x ; then
19871 for i in \
19872 ../tcl \
19873 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19874 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
19875 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
19876 ../../tcl \
19877 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19878 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
19879 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
19880 ../../../tcl \
19881 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19882 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
19883 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
19884 if test -f "$i/$platDir/tclConfig.sh" ; then
19885 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
19886 break
19887 fi
19888 done
19889 fi
19890
19891 # on Darwin, check in Framework installation locations
19892 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
19893 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
19894 `ls -d /Library/Frameworks 2>/dev/null` \
19895 `ls -d /Network/Library/Frameworks 2>/dev/null` \
19896 `ls -d /System/Library/Frameworks 2>/dev/null` \
19897 ; do
19898 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
19899 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
19900 break
19901 fi
19902 done
19903 fi
19904
19905 # check in a few common install locations
19906 if test x"${ac_cv_c_tclconfig}" = x ; then
19907 for i in `ls -d ${libdir} 2>/dev/null` \
19908 `ls -d ${exec_prefix}/lib 2>/dev/null` \
19909 `ls -d ${prefix}/lib 2>/dev/null` \
19910 `ls -d /usr/local/lib 2>/dev/null` \
19911 `ls -d /usr/contrib/lib 2>/dev/null` \
19912 `ls -d /usr/lib 2>/dev/null` \
19913 ; do
19914 if test -f "$i/tclConfig.sh" ; then
19915 ac_cv_c_tclconfig=`(cd $i; pwd)`
19916 break
19917 fi
19918 done
19919 fi
19920
19921 # check in a few other private locations
19922 if test x"${ac_cv_c_tclconfig}" = x ; then
19923 for i in \
19924 ${srcdir}/../tcl \
19925 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19926 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
19927 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
19928 if test -f "$i/$platDir/tclConfig.sh" ; then
19929 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
19930 break
19931 fi
19932 done
19933 fi
19934
19935 fi
19936
19937
19938 if test x"${ac_cv_c_tclconfig}" = x ; then
19939 TCL_BIN_DIR="# no Tcl configs found"
19940 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19941 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19942 exit 0
19943 else
19944 no_tcl=
19945 TCL_BIN_DIR=${ac_cv_c_tclconfig}
19946 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
19947 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
19948 fi
19949 fi
19950
19951 if test -z "${no_tcl}"; then
19952
19953 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
19954 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
19955
19956 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
19957 echo "$as_me:$LINENO: result: loading" >&5
19958 echo "${ECHO_T}loading" >&6
19959 . ${TCL_BIN_DIR}/tclConfig.sh
19960 else
19961 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
19962 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
19963 fi
19964
19965 # eval is required to do the TCL_DBGX substitution
19966 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
19967 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
19968
19969 # If the TCL_BIN_DIR is the build directory (not the install directory),
19970 # then set the common variable name to the value of the build variables.
19971 # For example, the variable TCL_LIB_SPEC will be set to the value
19972 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
19973 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
19974 # installed and uninstalled version of Tcl.
19975 if test -f ${TCL_BIN_DIR}/Makefile ; then
19976 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
19977 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
19978 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
19979 elif test "`uname -s`" = "Darwin"; then
19980 # If Tcl was built as a framework, attempt to use the libraries
19981 # from the framework at the given location so that linking works
19982 # against Tcl.framework installed in an arbitary location.
19983 case ${TCL_DEFS} in
19984 *TCL_FRAMEWORK*)
19985 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
19986 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
19987 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
19988 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
19989 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
19990 break
19991 fi
19992 done
19993 fi
19994 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
19995 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
19996 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
19997 fi
19998 ;;
19999 esac
20000 fi
20001
20002 # eval is required to do the TCL_DBGX substitution
20003 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20004 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20005 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20006 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022 # Check for in-tree tcl
20023 here=`pwd`
20024 cd ${srcdir}/..
20025 topdir=`pwd`
20026 cd ${here}
20027
20028 intree="no"
20029 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
20030 intree="yes"
20031 fi
20032
20033 # Find Tcl private headers
20034 if test x"${intree}" = xno; then
20035
20036 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
20037 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
20038 private_dir=""
20039 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
20040 if test -f ${dir}/tclInt.h ; then
20041 private_dir=${dir}
20042 fi
20043
20044 if test x"${private_dir}" = x; then
20045 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
20046 echo "$as_me: error: could not find private Tcl headers" >&2;}
20047 { (exit 1); exit 1; }; }
20048 else
20049 TCL_PRIVATE_INCLUDE="-I${private_dir}"
20050 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20051 echo "${ECHO_T}${private_dir}" >&6
20052 fi
20053
20054 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
20055 TCL_LIBRARY="${TCL_LIB_SPEC}"
20056 TCL_DEPS=""
20057 else
20058 # If building tcl in the same src tree, private headers
20059 # are not needed, but we need to be sure to use the right
20060 # headers library
20061 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
20062 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
20063 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
20064 fi
20065
20066
20067
20068
20069 # If $no_tk is nonempty, then we can't do Tk, and there is no
20070 # point to doing Tcl.
20071 if test -z "${no_tk}"; then
20072
20073 #
20074 # Ok, lets find the tk configuration
20075 # First, look for one uninstalled.
20076 # the alternative search directory is invoked by --with-tk
20077 #
20078
20079 if test x"${no_tk}" = x ; then
20080 # we reset no_tk in case something fails here
20081 no_tk=true
20082
20083 # Check whether --with-tk or --without-tk was given.
20084 if test "${with_tk+set}" = set; then
20085 withval="$with_tk"
20086 with_tkconfig=${withval}
20087 fi;
20088 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20089 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20090 if test "${ac_cv_c_tkconfig+set}" = set; then
20091 echo $ECHO_N "(cached) $ECHO_C" >&6
20092 else
20093
20094
20095 # First check to see if --with-tkconfig was specified.
20096 if test x"${with_tkconfig}" != x ; then
20097 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20098 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20099 else
20100 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20101 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20102 { (exit 1); exit 1; }; }
20103 fi
20104 fi
20105
20106 # then check for a private Tk library
20107 case "${host}" in
20108 *-*-cygwin*) platDir="win" ;;
20109 *) platDir="unix" ;;
20110 esac
20111 if test x"${ac_cv_c_tkconfig}" = x ; then
20112 for i in \
20113 ../tk \
20114 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20115 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
20116 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
20117 ../../tk \
20118 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20119 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
20120 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
20121 ../../../tk \
20122 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20123 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
20124 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
20125 if test -f "$i/$platDir/tkConfig.sh" ; then
20126 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20127 break
20128 fi
20129 done
20130 fi
20131
20132 # on Darwin, check in Framework installation locations
20133 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
20134 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20135 `ls -d /Library/Frameworks 2>/dev/null` \
20136 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20137 `ls -d /System/Library/Frameworks 2>/dev/null` \
20138 ; do
20139 if test -f "$i/Tk.framework/tkConfig.sh" ; then
20140 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
20141 break
20142 fi
20143 done
20144 fi
20145
20146 # check in a few common install locations
20147 if test x"${ac_cv_c_tkconfig}" = x ; then
20148 for i in `ls -d ${libdir} 2>/dev/null` \
20149 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20150 `ls -d ${prefix}/lib 2>/dev/null` \
20151 `ls -d /usr/local/lib 2>/dev/null` \
20152 `ls -d /usr/contrib/lib 2>/dev/null` \
20153 `ls -d /usr/lib 2>/dev/null` \
20154 ; do
20155 if test -f "$i/tkConfig.sh" ; then
20156 ac_cv_c_tkconfig=`(cd $i; pwd)`
20157 break
20158 fi
20159 done
20160 fi
20161 # check in a few other private locations
20162 if test x"${ac_cv_c_tkconfig}" = x ; then
20163 for i in \
20164 ${srcdir}/../tk \
20165 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20166 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
20167 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
20168 if test -f "$i/$platDir/tkConfig.sh" ; then
20169 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20170 break
20171 fi
20172 done
20173 fi
20174
20175 fi
20176
20177
20178 if test x"${ac_cv_c_tkconfig}" = x ; then
20179 TK_BIN_DIR="# no Tk configs found"
20180 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20181 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20182 exit 0
20183 else
20184 no_tk=
20185 TK_BIN_DIR=${ac_cv_c_tkconfig}
20186 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
20187 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
20188 fi
20189 fi
20190
20191
20192 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
20193 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
20194
20195 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
20196 echo "$as_me:$LINENO: result: loading" >&5
20197 echo "${ECHO_T}loading" >&6
20198 . ${TK_BIN_DIR}/tkConfig.sh
20199 else
20200 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
20201 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
20202 fi
20203
20204 # eval is required to do the TK_DBGX substitution
20205 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
20206 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
20207
20208 # If the TK_BIN_DIR is the build directory (not the install directory),
20209 # then set the common variable name to the value of the build variables.
20210 # For example, the variable TK_LIB_SPEC will be set to the value
20211 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
20212 # instead of TK_BUILD_LIB_SPEC since it will work with both an
20213 # installed and uninstalled version of Tcl.
20214 if test -f ${TK_BIN_DIR}/Makefile ; then
20215 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
20216 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
20217 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
20218 elif test "`uname -s`" = "Darwin"; then
20219 # If Tk was built as a framework, attempt to use the libraries
20220 # from the framework at the given location so that linking works
20221 # against Tk.framework installed in an arbitary location.
20222 case ${TK_DEFS} in
20223 *TK_FRAMEWORK*)
20224 if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then
20225 for i in "`cd ${TK_BIN_DIR}; pwd`" \
20226 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
20227 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
20228 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
20229 break
20230 fi
20231 done
20232 fi
20233 if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then
20234 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
20235 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
20236 fi
20237 ;;
20238 esac
20239 fi
20240
20241 # eval is required to do the TK_DBGX substitution
20242 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
20243 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
20244 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
20245 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
20246
20247
20248
20249
20250
20251
20252
20253
20254
20255
20256
20257
20258
20259
20260 # Check for in-tree Tk
20261 intree="no"
20262 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
20263 intree="yes"
20264 fi
20265
20266 # Find Tk private headers
20267 if test x"${intree}" = xno; then
20268
20269 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20270 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20271 private_dir=""
20272 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
20273 if test -f ${dir}/tkInt.h; then
20274 private_dir=${dir}
20275 fi
20276
20277 if test x"${private_dir}" = x; then
20278 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
20279 echo "$as_me: error: could not find Tk private headers" >&2;}
20280 { (exit 1); exit 1; }; }
20281 else
20282 TK_PRIVATE_INCLUDE="-I${private_dir}"
20283 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20284 echo "${ECHO_T}${private_dir}" >&6
20285 fi
20286
20287 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
20288 TK_LIBRARY=${TK_LIB_SPEC}
20289 TK_DEPS=""
20290 else
20291 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
20292 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
20293 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
20294 fi
20295
20296
20297
20298
20299
20300 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20301
20302 # Include some libraries that Tcl and Tk want.
20303 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20304 # Yes, the ordering seems wrong here. But it isn't.
20305 # TK_LIBS is the list of libraries that need to be linked
20306 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20307 # were in LIBS then any link tests after this point would
20308 # try to include things like `$(LIBGUI)', which wouldn't work.
20309 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20310
20311 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20312 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20313 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20314 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20315 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20316 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20317 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20318
20319 if test x$gdb_cv_os_cygwin = xyes; then
20320 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20321 WIN32LDAPP="-Wl,--subsystem,console"
20322 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20323 fi
20324 fi
20325 fi
20326
20327
20328
20329 subdirs="$subdirs gdbtk"
20330
20331 fi
20332
20333
20334
20335
20336
20337
20338
20339
20340 echo "$as_me:$LINENO: checking for X" >&5
20341 echo $ECHO_N "checking for X... $ECHO_C" >&6
20342
20343
20344 # Check whether --with-x or --without-x was given.
20345 if test "${with_x+set}" = set; then
20346 withval="$with_x"
20347
20348 fi;
20349 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20350 if test "x$with_x" = xno; then
20351 # The user explicitly disabled X.
20352 have_x=disabled
20353 else
20354 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20355 # Both variables are already set.
20356 have_x=yes
20357 else
20358 if test "${ac_cv_have_x+set}" = set; then
20359 echo $ECHO_N "(cached) $ECHO_C" >&6
20360 else
20361 # One or both of the vars are not set, and there is no cached value.
20362 ac_x_includes=no ac_x_libraries=no
20363 rm -fr conftest.dir
20364 if mkdir conftest.dir; then
20365 cd conftest.dir
20366 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20367 cat >Imakefile <<'_ACEOF'
20368 acfindx:
20369 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20370 _ACEOF
20371 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20372 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20373 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20374 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20375 for ac_extension in a so sl; do
20376 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20377 test -f $ac_im_libdir/libX11.$ac_extension; then
20378 ac_im_usrlibdir=$ac_im_libdir; break
20379 fi
20380 done
20381 # Screen out bogus values from the imake configuration. They are
20382 # bogus both because they are the default anyway, and because
20383 # using them would break gcc on systems where it needs fixed includes.
20384 case $ac_im_incroot in
20385 /usr/include) ;;
20386 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20387 esac
20388 case $ac_im_usrlibdir in
20389 /usr/lib | /lib) ;;
20390 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20391 esac
20392 fi
20393 cd ..
20394 rm -fr conftest.dir
20395 fi
20396
20397 # Standard set of common directories for X headers.
20398 # Check X11 before X11Rn because it is often a symlink to the current release.
20399 ac_x_header_dirs='
20400 /usr/X11/include
20401 /usr/X11R6/include
20402 /usr/X11R5/include
20403 /usr/X11R4/include
20404
20405 /usr/include/X11
20406 /usr/include/X11R6
20407 /usr/include/X11R5
20408 /usr/include/X11R4
20409
20410 /usr/local/X11/include
20411 /usr/local/X11R6/include
20412 /usr/local/X11R5/include
20413 /usr/local/X11R4/include
20414
20415 /usr/local/include/X11
20416 /usr/local/include/X11R6
20417 /usr/local/include/X11R5
20418 /usr/local/include/X11R4
20419
20420 /usr/X386/include
20421 /usr/x386/include
20422 /usr/XFree86/include/X11
20423
20424 /usr/include
20425 /usr/local/include
20426 /usr/unsupported/include
20427 /usr/athena/include
20428 /usr/local/x11r5/include
20429 /usr/lpp/Xamples/include
20430
20431 /usr/openwin/include
20432 /usr/openwin/share/include'
20433
20434 if test "$ac_x_includes" = no; then
20435 # Guess where to find include files, by looking for Intrinsic.h.
20436 # First, try using that file with no special directory specified.
20437 cat >conftest.$ac_ext <<_ACEOF
20438 /* confdefs.h. */
20439 _ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20443 #include <X11/Intrinsic.h>
20444 _ACEOF
20445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20446 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20447 ac_status=$?
20448 grep -v '^ *+' conftest.er1 >conftest.err
20449 rm -f conftest.er1
20450 cat conftest.err >&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } >/dev/null; then
20453 if test -s conftest.err; then
20454 ac_cpp_err=$ac_c_preproc_warn_flag
20455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20456 else
20457 ac_cpp_err=
20458 fi
20459 else
20460 ac_cpp_err=yes
20461 fi
20462 if test -z "$ac_cpp_err"; then
20463 # We can compile using X headers with no special include directory.
20464 ac_x_includes=
20465 else
20466 echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20468
20469 for ac_dir in $ac_x_header_dirs; do
20470 if test -r "$ac_dir/X11/Intrinsic.h"; then
20471 ac_x_includes=$ac_dir
20472 break
20473 fi
20474 done
20475 fi
20476 rm -f conftest.err conftest.$ac_ext
20477 fi # $ac_x_includes = no
20478
20479 if test "$ac_x_libraries" = no; then
20480 # Check for the libraries.
20481 # See if we find them without any special options.
20482 # Don't add to $LIBS permanently.
20483 ac_save_LIBS=$LIBS
20484 LIBS="-lXt $LIBS"
20485 cat >conftest.$ac_ext <<_ACEOF
20486 /* confdefs.h. */
20487 _ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20491 #include <X11/Intrinsic.h>
20492 int
20493 main ()
20494 {
20495 XtMalloc (0)
20496 ;
20497 return 0;
20498 }
20499 _ACEOF
20500 rm -f conftest.$ac_objext conftest$ac_exeext
20501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20502 (eval $ac_link) 2>conftest.er1
20503 ac_status=$?
20504 grep -v '^ *+' conftest.er1 >conftest.err
20505 rm -f conftest.er1
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } &&
20509 { ac_try='test -z "$ac_c_werror_flag"
20510 || test ! -s conftest.err'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; } &&
20516 { ac_try='test -s conftest$ac_exeext'
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518 (eval $ac_try) 2>&5
20519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; }; then
20522 LIBS=$ac_save_LIBS
20523 # We can link X programs with no special library path.
20524 ac_x_libraries=
20525 else
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20528
20529 LIBS=$ac_save_LIBS
20530 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20531 do
20532 # Don't even attempt the hair of trying to link an X program!
20533 for ac_extension in a so sl; do
20534 if test -r $ac_dir/libXt.$ac_extension; then
20535 ac_x_libraries=$ac_dir
20536 break 2
20537 fi
20538 done
20539 done
20540 fi
20541 rm -f conftest.err conftest.$ac_objext \
20542 conftest$ac_exeext conftest.$ac_ext
20543 fi # $ac_x_libraries = no
20544
20545 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20546 # Didn't find X anywhere. Cache the known absence of X.
20547 ac_cv_have_x="have_x=no"
20548 else
20549 # Record where we found X for the cache.
20550 ac_cv_have_x="have_x=yes \
20551 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20552 fi
20553 fi
20554
20555 fi
20556 eval "$ac_cv_have_x"
20557 fi # $with_x != no
20558
20559 if test "$have_x" != yes; then
20560 echo "$as_me:$LINENO: result: $have_x" >&5
20561 echo "${ECHO_T}$have_x" >&6
20562 no_x=yes
20563 else
20564 # If each of the values was on the command line, it overrides each guess.
20565 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20566 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20567 # Update the cache value to reflect the command line values.
20568 ac_cv_have_x="have_x=yes \
20569 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20570 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20571 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20572 fi
20573
20574
20575 # Unlike the sim directory, whether a simulator is linked is controlled by
20576 # presence of a gdb_sim definition in the target configure.tgt entry.
20577 # This code just checks for a few cases where we'd like to ignore those
20578 # definitions, even when they're present in the '.mt' file. These cases
20579 # are when --disable-sim is specified, or if the simulator directory is
20580 # not part of the source tree.
20581 #
20582 # Check whether --enable-sim or --disable-sim was given.
20583 if test "${enable_sim+set}" = set; then
20584 enableval="$enable_sim"
20585 echo "enable_sim = $enable_sim";
20586 echo "enableval = ${enableval}";
20587 case "${enableval}" in
20588 yes) ignore_sim=false ;;
20589 no) ignore_sim=true ;;
20590 *) ignore_sim=false ;;
20591 esac
20592 else
20593 ignore_sim=false
20594 fi;
20595
20596 if test ! -d "${srcdir}/../sim"; then
20597 ignore_sim=true
20598 fi
20599
20600 SIM=
20601 SIM_OBS=
20602 if test "${ignore_sim}" = "false"; then
20603 if test x"${gdb_sim}" != x ; then
20604 SIM="${gdb_sim}"
20605 SIM_OBS="remote-sim.o"
20606
20607 cat >>confdefs.h <<\_ACEOF
20608 #define WITH_SIM 1
20609 _ACEOF
20610
20611 fi
20612 fi
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627 # List of host floatformats.
20628
20629 cat >>confdefs.h <<_ACEOF
20630 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
20631 _ACEOF
20632
20633
20634 cat >>confdefs.h <<_ACEOF
20635 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
20636 _ACEOF
20637
20638
20639 cat >>confdefs.h <<_ACEOF
20640 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
20641 _ACEOF
20642
20643
20644 # target_subdir is used by the testsuite to find the target libraries.
20645 target_subdir=
20646 if test "${host}" != "${target}"; then
20647 target_subdir="${target_alias}/"
20648 fi
20649
20650
20651 frags=
20652 if test "${gdb_native}" = "yes"; then
20653 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
20654 if test ! -f ${host_makefile_frag}; then
20655 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
20656 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
20657 { (exit 1); exit 1; }; }
20658 fi
20659 frags="$frags $host_makefile_frag"
20660 else
20661 host_makefile_frag=/dev/null
20662 fi
20663
20664
20665
20666
20667 if test "${gdb_native}" = "yes"; then
20668 # We pick this up from the host configuration file (.mh) because we
20669 # do not have a native configuration Makefile fragment.
20670 nativefile=`sed -n '
20671 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
20672 ' ${host_makefile_frag}`
20673 fi
20674
20675
20676 if test x"${gdb_osabi}" != x ; then
20677
20678 cat >>confdefs.h <<_ACEOF
20679 #define GDB_OSABI_DEFAULT $gdb_osabi
20680 _ACEOF
20681
20682 fi
20683
20684 # Enable multi-ice-gdb-server.
20685 # Check whether --enable-multi-ice or --disable-multi-ice was given.
20686 if test "${enable_multi_ice+set}" = set; then
20687 enableval="$enable_multi_ice"
20688 case $enableval in
20689 yes | no)
20690 ;;
20691 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
20692 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
20693 { (exit 1); exit 1; }; } ;;
20694 esac
20695 fi;
20696 if test "x$enable_multi_ice" = xyes; then
20697
20698
20699 subdirs="$subdirs multi-ice"
20700
20701 fi
20702
20703 # We only build gdbserver automatically in a native configuration.
20704 if test "$gdb_native" = "yes"; then
20705 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
20706 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
20707 if test "x$build_gdbserver" = xyes; then
20708 echo "$as_me:$LINENO: result: yes" >&5
20709 echo "${ECHO_T}yes" >&6
20710
20711
20712 subdirs="$subdirs gdbserver"
20713
20714 else
20715 echo "$as_me:$LINENO: result: no" >&5
20716 echo "${ECHO_T}no" >&6
20717 fi
20718 fi
20719
20720 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
20721 # to an empty version.
20722
20723 files=
20724 links=
20725
20726 rm -f nm.h
20727 nm_h=""
20728 if test "${nativefile}" != ""; then
20729 nm_h=nm.h
20730 case "${nativefile}" in
20731 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
20732 * ) GDB_NM_FILE="${nativefile}"
20733 esac
20734 files="${files} ${GDB_NM_FILE}"
20735 links="${links} nm.h"
20736
20737 cat >>confdefs.h <<_ACEOF
20738 #define GDB_NM_FILE "${GDB_NM_FILE}"
20739 _ACEOF
20740
20741 fi
20742
20743
20744 ac_sources="$files"
20745 ac_dests="$links"
20746 while test -n "$ac_sources"; do
20747 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
20748 set $ac_sources; ac_source=$1; shift; ac_sources=$*
20749 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
20750 done
20751 ac_config_links="$ac_config_links $ac_config_links_1"
20752
20753
20754
20755
20756
20757
20758 cat >>confdefs.h <<\_ACEOF
20759 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
20760 _ACEOF
20761
20762
20763
20764
20765
20766 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
20767 if test "${with_libiconv_prefix+set}" = set; then
20768 withval="$with_libiconv_prefix"
20769
20770 for dir in `echo "$withval" | tr : ' '`; do
20771 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
20772 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
20773 done
20774
20775 fi;
20776
20777 echo "$as_me:$LINENO: checking for iconv" >&5
20778 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
20779 if test "${am_cv_func_iconv+set}" = set; then
20780 echo $ECHO_N "(cached) $ECHO_C" >&6
20781 else
20782
20783 am_cv_func_iconv="no, consider installing GNU libiconv"
20784 am_cv_lib_iconv=no
20785 cat >conftest.$ac_ext <<_ACEOF
20786 /* confdefs.h. */
20787 _ACEOF
20788 cat confdefs.h >>conftest.$ac_ext
20789 cat >>conftest.$ac_ext <<_ACEOF
20790 /* end confdefs.h. */
20791 #include <stdlib.h>
20792 #include <iconv.h>
20793 int
20794 main ()
20795 {
20796 iconv_t cd = iconv_open("","");
20797 iconv(cd,NULL,NULL,NULL,NULL);
20798 iconv_close(cd);
20799 ;
20800 return 0;
20801 }
20802 _ACEOF
20803 rm -f conftest.$ac_objext conftest$ac_exeext
20804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20805 (eval $ac_link) 2>conftest.er1
20806 ac_status=$?
20807 grep -v '^ *+' conftest.er1 >conftest.err
20808 rm -f conftest.er1
20809 cat conftest.err >&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); } &&
20812 { ac_try='test -z "$ac_c_werror_flag"
20813 || test ! -s conftest.err'
20814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815 (eval $ac_try) 2>&5
20816 ac_status=$?
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); }; } &&
20819 { ac_try='test -s conftest$ac_exeext'
20820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20821 (eval $ac_try) 2>&5
20822 ac_status=$?
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }; then
20825 am_cv_func_iconv=yes
20826 else
20827 echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20829
20830 fi
20831 rm -f conftest.err conftest.$ac_objext \
20832 conftest$ac_exeext conftest.$ac_ext
20833 if test "$am_cv_func_iconv" != yes; then
20834 am_save_LIBS="$LIBS"
20835 LIBS="$LIBS -liconv"
20836 cat >conftest.$ac_ext <<_ACEOF
20837 /* confdefs.h. */
20838 _ACEOF
20839 cat confdefs.h >>conftest.$ac_ext
20840 cat >>conftest.$ac_ext <<_ACEOF
20841 /* end confdefs.h. */
20842 #include <stdlib.h>
20843 #include <iconv.h>
20844 int
20845 main ()
20846 {
20847 iconv_t cd = iconv_open("","");
20848 iconv(cd,NULL,NULL,NULL,NULL);
20849 iconv_close(cd);
20850 ;
20851 return 0;
20852 }
20853 _ACEOF
20854 rm -f conftest.$ac_objext conftest$ac_exeext
20855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20856 (eval $ac_link) 2>conftest.er1
20857 ac_status=$?
20858 grep -v '^ *+' conftest.er1 >conftest.err
20859 rm -f conftest.er1
20860 cat conftest.err >&5
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } &&
20863 { ac_try='test -z "$ac_c_werror_flag"
20864 || test ! -s conftest.err'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20867 ac_status=$?
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; } &&
20870 { ac_try='test -s conftest$ac_exeext'
20871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20872 (eval $ac_try) 2>&5
20873 ac_status=$?
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); }; }; then
20876 am_cv_lib_iconv=yes
20877 am_cv_func_iconv=yes
20878 else
20879 echo "$as_me: failed program was:" >&5
20880 sed 's/^/| /' conftest.$ac_ext >&5
20881
20882 fi
20883 rm -f conftest.err conftest.$ac_objext \
20884 conftest$ac_exeext conftest.$ac_ext
20885 LIBS="$am_save_LIBS"
20886 fi
20887
20888 fi
20889 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
20890 echo "${ECHO_T}$am_cv_func_iconv" >&6
20891 if test "$am_cv_func_iconv" = yes; then
20892
20893 cat >>confdefs.h <<\_ACEOF
20894 #define HAVE_ICONV 1
20895 _ACEOF
20896
20897 echo "$as_me:$LINENO: checking for iconv declaration" >&5
20898 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
20899 if test "${am_cv_proto_iconv+set}" = set; then
20900 echo $ECHO_N "(cached) $ECHO_C" >&6
20901 else
20902
20903 cat >conftest.$ac_ext <<_ACEOF
20904 /* confdefs.h. */
20905 _ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h. */
20909
20910 #include <stdlib.h>
20911 #include <iconv.h>
20912 extern
20913 #ifdef __cplusplus
20914 "C"
20915 #endif
20916 #if defined(__STDC__) || defined(__cplusplus)
20917 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20918 #else
20919 size_t iconv();
20920 #endif
20921
20922 int
20923 main ()
20924 {
20925
20926 ;
20927 return 0;
20928 }
20929 _ACEOF
20930 rm -f conftest.$ac_objext
20931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20932 (eval $ac_compile) 2>conftest.er1
20933 ac_status=$?
20934 grep -v '^ *+' conftest.er1 >conftest.err
20935 rm -f conftest.er1
20936 cat conftest.err >&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } &&
20939 { ac_try='test -z "$ac_c_werror_flag"
20940 || test ! -s conftest.err'
20941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942 (eval $ac_try) 2>&5
20943 ac_status=$?
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); }; } &&
20946 { ac_try='test -s conftest.$ac_objext'
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 am_cv_proto_iconv_arg1=""
20953 else
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20956
20957 am_cv_proto_iconv_arg1="const"
20958 fi
20959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20960 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);"
20961 fi
20962
20963 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20964 echo "$as_me:$LINENO: result: ${ac_t:-
20965 }$am_cv_proto_iconv" >&5
20966 echo "${ECHO_T}${ac_t:-
20967 }$am_cv_proto_iconv" >&6
20968
20969 cat >>confdefs.h <<_ACEOF
20970 #define ICONV_CONST $am_cv_proto_iconv_arg1
20971 _ACEOF
20972
20973 fi
20974 LIBICONV=
20975 if test "$am_cv_lib_iconv" = yes; then
20976 LIBICONV="-liconv"
20977 fi
20978
20979
20980
20981 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
20982 ac_config_commands="$ac_config_commands default"
20983 cat >confcache <<\_ACEOF
20984 # This file is a shell script that caches the results of configure
20985 # tests run on this system so they can be shared between configure
20986 # scripts and configure runs, see configure's option --config-cache.
20987 # It is not useful on other systems. If it contains results you don't
20988 # want to keep, you may remove or edit it.
20989 #
20990 # config.status only pays attention to the cache file if you give it
20991 # the --recheck option to rerun configure.
20992 #
20993 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20994 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20995 # following values.
20996
20997 _ACEOF
20998
20999 # The following way of writing the cache mishandles newlines in values,
21000 # but we know of no workaround that is simple, portable, and efficient.
21001 # So, don't put newlines in cache variables' values.
21002 # Ultrix sh set writes to stderr and can't be redirected directly,
21003 # and sets the high bit in the cache file unless we assign to the vars.
21004 {
21005 (set) 2>&1 |
21006 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21007 *ac_space=\ *)
21008 # `set' does not quote correctly, so add quotes (double-quote
21009 # substitution turns \\\\ into \\, and sed turns \\ into \).
21010 sed -n \
21011 "s/'/'\\\\''/g;
21012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21013 ;;
21014 *)
21015 # `set' quotes correctly as required by POSIX, so do not add quotes.
21016 sed -n \
21017 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21018 ;;
21019 esac;
21020 } |
21021 sed '
21022 t clear
21023 : clear
21024 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21025 t end
21026 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21027 : end' >>confcache
21028 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21029 if test -w $cache_file; then
21030 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21031 cat confcache >$cache_file
21032 else
21033 echo "not updating unwritable cache $cache_file"
21034 fi
21035 fi
21036 rm -f confcache
21037
21038 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21039 # Let make expand exec_prefix.
21040 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21041
21042 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21043 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21044 # trailing colons and then remove the whole line if VPATH becomes empty
21045 # (actually we leave an empty line to preserve line numbers).
21046 if test "x$srcdir" = x.; then
21047 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21048 s/:*\$(srcdir):*/:/;
21049 s/:*\${srcdir}:*/:/;
21050 s/:*@srcdir@:*/:/;
21051 s/^\([^=]*=[ ]*\):*/\1/;
21052 s/:*$//;
21053 s/^[^=]*=[ ]*$//;
21054 }'
21055 fi
21056
21057 DEFS=-DHAVE_CONFIG_H
21058
21059 ac_libobjs=
21060 ac_ltlibobjs=
21061 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21062 # 1. Remove the extension, and $U if already installed.
21063 ac_i=`echo "$ac_i" |
21064 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21065 # 2. Add them.
21066 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21067 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21068 done
21069 LIBOBJS=$ac_libobjs
21070
21071 LTLIBOBJS=$ac_ltlibobjs
21072
21073
21074 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21075 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21076 Usually this means the macro was only invoked conditionally." >&5
21077 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21078 Usually this means the macro was only invoked conditionally." >&2;}
21079 { (exit 1); exit 1; }; }
21080 fi
21081 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
21082 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
21083 Usually this means the macro was only invoked conditionally." >&5
21084 echo "$as_me: error: conditional \"GMAKE\" was never defined.
21085 Usually this means the macro was only invoked conditionally." >&2;}
21086 { (exit 1); exit 1; }; }
21087 fi
21088 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21089 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21090 Usually this means the macro was only invoked conditionally." >&5
21091 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21092 Usually this means the macro was only invoked conditionally." >&2;}
21093 { (exit 1); exit 1; }; }
21094 fi
21095
21096 gl_libobjs=
21097 gl_ltlibobjs=
21098 if test -n "$gl_LIBOBJS"; then
21099 # Remove the extension.
21100 sed_drop_objext='s/\.o$//;s/\.obj$//'
21101 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21102 gl_libobjs="$gl_libobjs $i.$ac_objext"
21103 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21104 done
21105 fi
21106 gl_LIBOBJS=$gl_libobjs
21107
21108 gl_LTLIBOBJS=$gl_ltlibobjs
21109
21110
21111
21112 gltests_libobjs=
21113 gltests_ltlibobjs=
21114 if test -n "$gltests_LIBOBJS"; then
21115 # Remove the extension.
21116 sed_drop_objext='s/\.o$//;s/\.obj$//'
21117 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21118 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21119 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21120 done
21121 fi
21122 gltests_LIBOBJS=$gltests_libobjs
21123
21124 gltests_LTLIBOBJS=$gltests_ltlibobjs
21125
21126
21127 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21128 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21129 Usually this means the macro was only invoked conditionally." >&5
21130 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21131 Usually this means the macro was only invoked conditionally." >&2;}
21132 { (exit 1); exit 1; }; }
21133 fi
21134 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21135 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21136 Usually this means the macro was only invoked conditionally." >&5
21137 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21138 Usually this means the macro was only invoked conditionally." >&2;}
21139 { (exit 1); exit 1; }; }
21140 fi
21141
21142 : ${CONFIG_STATUS=./config.status}
21143 ac_clean_files_save=$ac_clean_files
21144 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21145 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21146 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21147 cat >$CONFIG_STATUS <<_ACEOF
21148 #! $SHELL
21149 # Generated by $as_me.
21150 # Run this file to recreate the current configuration.
21151 # Compiler output produced by configure, useful for debugging
21152 # configure, is in config.log if it exists.
21153
21154 debug=false
21155 ac_cs_recheck=false
21156 ac_cs_silent=false
21157 SHELL=\${CONFIG_SHELL-$SHELL}
21158 _ACEOF
21159
21160 cat >>$CONFIG_STATUS <<\_ACEOF
21161 ## --------------------- ##
21162 ## M4sh Initialization. ##
21163 ## --------------------- ##
21164
21165 # Be Bourne compatible
21166 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21167 emulate sh
21168 NULLCMD=:
21169 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21170 # is contrary to our usage. Disable this feature.
21171 alias -g '${1+"$@"}'='"$@"'
21172 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21173 set -o posix
21174 fi
21175 DUALCASE=1; export DUALCASE # for MKS sh
21176
21177 # Support unset when possible.
21178 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21179 as_unset=unset
21180 else
21181 as_unset=false
21182 fi
21183
21184
21185 # Work around bugs in pre-3.0 UWIN ksh.
21186 $as_unset ENV MAIL MAILPATH
21187 PS1='$ '
21188 PS2='> '
21189 PS4='+ '
21190
21191 # NLS nuisances.
21192 for as_var in \
21193 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21194 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21195 LC_TELEPHONE LC_TIME
21196 do
21197 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21198 eval $as_var=C; export $as_var
21199 else
21200 $as_unset $as_var
21201 fi
21202 done
21203
21204 # Required to use basename.
21205 if expr a : '\(a\)' >/dev/null 2>&1; then
21206 as_expr=expr
21207 else
21208 as_expr=false
21209 fi
21210
21211 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21212 as_basename=basename
21213 else
21214 as_basename=false
21215 fi
21216
21217
21218 # Name of the executable.
21219 as_me=`$as_basename "$0" ||
21220 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21221 X"$0" : 'X\(//\)$' \| \
21222 X"$0" : 'X\(/\)$' \| \
21223 . : '\(.\)' 2>/dev/null ||
21224 echo X/"$0" |
21225 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21226 /^X\/\(\/\/\)$/{ s//\1/; q; }
21227 /^X\/\(\/\).*/{ s//\1/; q; }
21228 s/.*/./; q'`
21229
21230
21231 # PATH needs CR, and LINENO needs CR and PATH.
21232 # Avoid depending upon Character Ranges.
21233 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21234 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21235 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21236 as_cr_digits='0123456789'
21237 as_cr_alnum=$as_cr_Letters$as_cr_digits
21238
21239 # The user is always right.
21240 if test "${PATH_SEPARATOR+set}" != set; then
21241 echo "#! /bin/sh" >conf$$.sh
21242 echo "exit 0" >>conf$$.sh
21243 chmod +x conf$$.sh
21244 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21245 PATH_SEPARATOR=';'
21246 else
21247 PATH_SEPARATOR=:
21248 fi
21249 rm -f conf$$.sh
21250 fi
21251
21252
21253 as_lineno_1=$LINENO
21254 as_lineno_2=$LINENO
21255 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21256 test "x$as_lineno_1" != "x$as_lineno_2" &&
21257 test "x$as_lineno_3" = "x$as_lineno_2" || {
21258 # Find who we are. Look in the path if we contain no path at all
21259 # relative or not.
21260 case $0 in
21261 *[\\/]* ) as_myself=$0 ;;
21262 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21263 for as_dir in $PATH
21264 do
21265 IFS=$as_save_IFS
21266 test -z "$as_dir" && as_dir=.
21267 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21268 done
21269
21270 ;;
21271 esac
21272 # We did not find ourselves, most probably we were run as `sh COMMAND'
21273 # in which case we are not to be found in the path.
21274 if test "x$as_myself" = x; then
21275 as_myself=$0
21276 fi
21277 if test ! -f "$as_myself"; then
21278 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21279 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21280 { (exit 1); exit 1; }; }
21281 fi
21282 case $CONFIG_SHELL in
21283 '')
21284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21285 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21286 do
21287 IFS=$as_save_IFS
21288 test -z "$as_dir" && as_dir=.
21289 for as_base in sh bash ksh sh5; do
21290 case $as_dir in
21291 /*)
21292 if ("$as_dir/$as_base" -c '
21293 as_lineno_1=$LINENO
21294 as_lineno_2=$LINENO
21295 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21296 test "x$as_lineno_1" != "x$as_lineno_2" &&
21297 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21298 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21299 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21300 CONFIG_SHELL=$as_dir/$as_base
21301 export CONFIG_SHELL
21302 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21303 fi;;
21304 esac
21305 done
21306 done
21307 ;;
21308 esac
21309
21310 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21311 # uniformly replaced by the line number. The first 'sed' inserts a
21312 # line-number line before each line; the second 'sed' does the real
21313 # work. The second script uses 'N' to pair each line-number line
21314 # with the numbered line, and appends trailing '-' during
21315 # substitution so that $LINENO is not a special case at line end.
21316 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21317 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21318 sed '=' <$as_myself |
21319 sed '
21320 N
21321 s,$,-,
21322 : loop
21323 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21324 t loop
21325 s,-$,,
21326 s,^['$as_cr_digits']*\n,,
21327 ' >$as_me.lineno &&
21328 chmod +x $as_me.lineno ||
21329 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21330 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21331 { (exit 1); exit 1; }; }
21332
21333 # Don't try to exec as it changes $[0], causing all sort of problems
21334 # (the dirname of $[0] is not the place where we might find the
21335 # original and so on. Autoconf is especially sensible to this).
21336 . ./$as_me.lineno
21337 # Exit status is that of the last command.
21338 exit
21339 }
21340
21341
21342 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21343 *c*,-n*) ECHO_N= ECHO_C='
21344 ' ECHO_T=' ' ;;
21345 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21346 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21347 esac
21348
21349 if expr a : '\(a\)' >/dev/null 2>&1; then
21350 as_expr=expr
21351 else
21352 as_expr=false
21353 fi
21354
21355 rm -f conf$$ conf$$.exe conf$$.file
21356 echo >conf$$.file
21357 if ln -s conf$$.file conf$$ 2>/dev/null; then
21358 # We could just check for DJGPP; but this test a) works b) is more generic
21359 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21360 if test -f conf$$.exe; then
21361 # Don't use ln at all; we don't have any links
21362 as_ln_s='cp -p'
21363 else
21364 as_ln_s='ln -s'
21365 fi
21366 elif ln conf$$.file conf$$ 2>/dev/null; then
21367 as_ln_s=ln
21368 else
21369 as_ln_s='cp -p'
21370 fi
21371 rm -f conf$$ conf$$.exe conf$$.file
21372
21373 if mkdir -p . 2>/dev/null; then
21374 as_mkdir_p=:
21375 else
21376 test -d ./-p && rmdir ./-p
21377 as_mkdir_p=false
21378 fi
21379
21380 as_executable_p="test -f"
21381
21382 # Sed expression to map a string onto a valid CPP name.
21383 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21384
21385 # Sed expression to map a string onto a valid variable name.
21386 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21387
21388
21389 # IFS
21390 # We need space, tab and new line, in precisely that order.
21391 as_nl='
21392 '
21393 IFS=" $as_nl"
21394
21395 # CDPATH.
21396 $as_unset CDPATH
21397
21398 exec 6>&1
21399
21400 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21401 # report actual input values of CONFIG_FILES etc. instead of their
21402 # values after options handling. Logging --version etc. is OK.
21403 exec 5>>config.log
21404 {
21405 echo
21406 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21407 ## Running $as_me. ##
21408 _ASBOX
21409 } >&5
21410 cat >&5 <<_CSEOF
21411
21412 This file was extended by $as_me, which was
21413 generated by GNU Autoconf 2.59. Invocation command line was
21414
21415 CONFIG_FILES = $CONFIG_FILES
21416 CONFIG_HEADERS = $CONFIG_HEADERS
21417 CONFIG_LINKS = $CONFIG_LINKS
21418 CONFIG_COMMANDS = $CONFIG_COMMANDS
21419 $ $0 $@
21420
21421 _CSEOF
21422 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21423 echo >&5
21424 _ACEOF
21425
21426 # Files that config.status was made for.
21427 if test -n "$ac_config_files"; then
21428 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21429 fi
21430
21431 if test -n "$ac_config_headers"; then
21432 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21433 fi
21434
21435 if test -n "$ac_config_links"; then
21436 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21437 fi
21438
21439 if test -n "$ac_config_commands"; then
21440 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21441 fi
21442
21443 cat >>$CONFIG_STATUS <<\_ACEOF
21444
21445 ac_cs_usage="\
21446 \`$as_me' instantiates files from templates according to the
21447 current configuration.
21448
21449 Usage: $0 [OPTIONS] [FILE]...
21450
21451 -h, --help print this help, then exit
21452 -V, --version print version number, then exit
21453 -q, --quiet do not print progress messages
21454 -d, --debug don't remove temporary files
21455 --recheck update $as_me by reconfiguring in the same conditions
21456 --file=FILE[:TEMPLATE]
21457 instantiate the configuration file FILE
21458 --header=FILE[:TEMPLATE]
21459 instantiate the configuration header FILE
21460
21461 Configuration files:
21462 $config_files
21463
21464 Configuration headers:
21465 $config_headers
21466
21467 Configuration links:
21468 $config_links
21469
21470 Configuration commands:
21471 $config_commands
21472
21473 Report bugs to <bug-autoconf@gnu.org>."
21474 _ACEOF
21475
21476 cat >>$CONFIG_STATUS <<_ACEOF
21477 ac_cs_version="\\
21478 config.status
21479 configured by $0, generated by GNU Autoconf 2.59,
21480 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21481
21482 Copyright (C) 2003 Free Software Foundation, Inc.
21483 This config.status script is free software; the Free Software Foundation
21484 gives unlimited permission to copy, distribute and modify it."
21485 srcdir=$srcdir
21486 INSTALL="$INSTALL"
21487 _ACEOF
21488
21489 cat >>$CONFIG_STATUS <<\_ACEOF
21490 # If no file are specified by the user, then we need to provide default
21491 # value. By we need to know if files were specified by the user.
21492 ac_need_defaults=:
21493 while test $# != 0
21494 do
21495 case $1 in
21496 --*=*)
21497 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21498 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21499 ac_shift=:
21500 ;;
21501 -*)
21502 ac_option=$1
21503 ac_optarg=$2
21504 ac_shift=shift
21505 ;;
21506 *) # This is not an option, so the user has probably given explicit
21507 # arguments.
21508 ac_option=$1
21509 ac_need_defaults=false;;
21510 esac
21511
21512 case $ac_option in
21513 # Handling of the options.
21514 _ACEOF
21515 cat >>$CONFIG_STATUS <<\_ACEOF
21516 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21517 ac_cs_recheck=: ;;
21518 --version | --vers* | -V )
21519 echo "$ac_cs_version"; exit 0 ;;
21520 --he | --h)
21521 # Conflict between --help and --header
21522 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21523 Try \`$0 --help' for more information." >&5
21524 echo "$as_me: error: ambiguous option: $1
21525 Try \`$0 --help' for more information." >&2;}
21526 { (exit 1); exit 1; }; };;
21527 --help | --hel | -h )
21528 echo "$ac_cs_usage"; exit 0 ;;
21529 --debug | --d* | -d )
21530 debug=: ;;
21531 --file | --fil | --fi | --f )
21532 $ac_shift
21533 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21534 ac_need_defaults=false;;
21535 --header | --heade | --head | --hea )
21536 $ac_shift
21537 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21538 ac_need_defaults=false;;
21539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21540 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21541 ac_cs_silent=: ;;
21542
21543 # This is an error.
21544 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21545 Try \`$0 --help' for more information." >&5
21546 echo "$as_me: error: unrecognized option: $1
21547 Try \`$0 --help' for more information." >&2;}
21548 { (exit 1); exit 1; }; } ;;
21549
21550 *) ac_config_targets="$ac_config_targets $1" ;;
21551
21552 esac
21553 shift
21554 done
21555
21556 ac_configure_extra_args=
21557
21558 if $ac_cs_silent; then
21559 exec 6>/dev/null
21560 ac_configure_extra_args="$ac_configure_extra_args --silent"
21561 fi
21562
21563 _ACEOF
21564 cat >>$CONFIG_STATUS <<_ACEOF
21565 if \$ac_cs_recheck; then
21566 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21567 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21568 fi
21569
21570 _ACEOF
21571
21572 cat >>$CONFIG_STATUS <<_ACEOF
21573 #
21574 # INIT-COMMANDS section.
21575 #
21576
21577 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
21578 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21579
21580 gdb_host_cpu=$gdb_host_cpu
21581 nativefile=$nativefile
21582
21583
21584 _ACEOF
21585
21586
21587
21588 cat >>$CONFIG_STATUS <<\_ACEOF
21589 for ac_config_target in $ac_config_targets
21590 do
21591 case "$ac_config_target" in
21592 # Handling of arguments.
21593 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21594 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
21595 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
21596 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
21597 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
21598 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21599 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21600 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21601 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21602 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21603 { (exit 1); exit 1; }; };;
21604 esac
21605 done
21606
21607 # If the user did not use the arguments to specify the items to instantiate,
21608 # then the envvar interface is used. Set only those that are not.
21609 # We use the long form for the default assignment because of an extremely
21610 # bizarre bug on SunOS 4.1.3.
21611 if $ac_need_defaults; then
21612 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21613 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21614 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21615 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21616 fi
21617
21618 # Have a temporary directory for convenience. Make it in the build tree
21619 # simply because there is no reason to put it here, and in addition,
21620 # creating and moving files from /tmp can sometimes cause problems.
21621 # Create a temporary directory, and hook for its removal unless debugging.
21622 $debug ||
21623 {
21624 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21625 trap '{ (exit 1); exit 1; }' 1 2 13 15
21626 }
21627
21628 # Create a (secure) tmp directory for tmp files.
21629
21630 {
21631 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21632 test -n "$tmp" && test -d "$tmp"
21633 } ||
21634 {
21635 tmp=./confstat$$-$RANDOM
21636 (umask 077 && mkdir $tmp)
21637 } ||
21638 {
21639 echo "$me: cannot create a temporary directory in ." >&2
21640 { (exit 1); exit 1; }
21641 }
21642
21643 _ACEOF
21644
21645 cat >>$CONFIG_STATUS <<_ACEOF
21646
21647 #
21648 # CONFIG_FILES section.
21649 #
21650
21651 # No need to generate the scripts if there are no CONFIG_FILES.
21652 # This happens for instance when ./config.status config.h
21653 if test -n "\$CONFIG_FILES"; then
21654 # Protect against being on the right side of a sed subst in config.status.
21655 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21656 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21657 s,@SHELL@,$SHELL,;t t
21658 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21659 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21660 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21661 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21662 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21663 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21664 s,@exec_prefix@,$exec_prefix,;t t
21665 s,@prefix@,$prefix,;t t
21666 s,@program_transform_name@,$program_transform_name,;t t
21667 s,@bindir@,$bindir,;t t
21668 s,@sbindir@,$sbindir,;t t
21669 s,@libexecdir@,$libexecdir,;t t
21670 s,@datadir@,$datadir,;t t
21671 s,@sysconfdir@,$sysconfdir,;t t
21672 s,@sharedstatedir@,$sharedstatedir,;t t
21673 s,@localstatedir@,$localstatedir,;t t
21674 s,@libdir@,$libdir,;t t
21675 s,@includedir@,$includedir,;t t
21676 s,@oldincludedir@,$oldincludedir,;t t
21677 s,@infodir@,$infodir,;t t
21678 s,@mandir@,$mandir,;t t
21679 s,@build_alias@,$build_alias,;t t
21680 s,@host_alias@,$host_alias,;t t
21681 s,@target_alias@,$target_alias,;t t
21682 s,@DEFS@,$DEFS,;t t
21683 s,@ECHO_C@,$ECHO_C,;t t
21684 s,@ECHO_N@,$ECHO_N,;t t
21685 s,@ECHO_T@,$ECHO_T,;t t
21686 s,@LIBS@,$LIBS,;t t
21687 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21688 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21689 s,@MAINT@,$MAINT,;t t
21690 s,@CC@,$CC,;t t
21691 s,@CFLAGS@,$CFLAGS,;t t
21692 s,@LDFLAGS@,$LDFLAGS,;t t
21693 s,@CPPFLAGS@,$CPPFLAGS,;t t
21694 s,@ac_ct_CC@,$ac_ct_CC,;t t
21695 s,@EXEEXT@,$EXEEXT,;t t
21696 s,@OBJEXT@,$OBJEXT,;t t
21697 s,@CPP@,$CPP,;t t
21698 s,@EGREP@,$EGREP,;t t
21699 s,@RANLIB@,$RANLIB,;t t
21700 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21701 s,@build@,$build,;t t
21702 s,@build_cpu@,$build_cpu,;t t
21703 s,@build_vendor@,$build_vendor,;t t
21704 s,@build_os@,$build_os,;t t
21705 s,@host@,$host,;t t
21706 s,@host_cpu@,$host_cpu,;t t
21707 s,@host_vendor@,$host_vendor,;t t
21708 s,@host_os@,$host_os,;t t
21709 s,@target@,$target,;t t
21710 s,@target_cpu@,$target_cpu,;t t
21711 s,@target_vendor@,$target_vendor,;t t
21712 s,@target_os@,$target_os,;t t
21713 s,@am__leading_dot@,$am__leading_dot,;t t
21714 s,@DEPDIR@,$DEPDIR,;t t
21715 s,@CCDEPMODE@,$CCDEPMODE,;t t
21716 s,@MAKE@,$MAKE,;t t
21717 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
21718 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
21719 s,@SET_MAKE@,$SET_MAKE,;t t
21720 s,@USE_NLS@,$USE_NLS,;t t
21721 s,@LIBINTL@,$LIBINTL,;t t
21722 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21723 s,@INCINTL@,$INCINTL,;t t
21724 s,@XGETTEXT@,$XGETTEXT,;t t
21725 s,@GMSGFMT@,$GMSGFMT,;t t
21726 s,@POSUB@,$POSUB,;t t
21727 s,@CATALOGS@,$CATALOGS,;t t
21728 s,@DATADIRNAME@,$DATADIRNAME,;t t
21729 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21730 s,@GENCAT@,$GENCAT,;t t
21731 s,@CATOBJEXT@,$CATOBJEXT,;t t
21732 s,@localedir@,$localedir,;t t
21733 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
21734 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
21735 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
21736 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
21737 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
21738 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
21739 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
21740 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
21741 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
21742 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
21743 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
21744 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
21745 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
21746 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
21747 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
21748 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
21749 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
21750 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
21751 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
21752 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
21753 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
21754 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
21755 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
21756 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
21757 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
21758 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
21759 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
21760 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
21761 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
21762 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
21763 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
21764 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
21765 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
21766 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
21767 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
21768 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
21769 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
21770 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
21771 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
21772 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
21773 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
21774 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
21775 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
21776 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
21777 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
21778 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
21779 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
21780 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
21781 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
21782 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
21783 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
21784 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
21785 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
21786 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
21787 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
21788 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
21789 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
21790 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
21791 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
21792 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
21793 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
21794 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
21795 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
21796 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
21797 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
21798 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
21799 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
21800 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
21801 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
21802 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
21803 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
21804 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
21805 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
21806 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
21807 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
21808 s,@STDINT_H@,$STDINT_H,;t t
21809 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
21810 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
21811 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
21812 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
21813 s,@WCHAR_H@,$WCHAR_H,;t t
21814 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
21815 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
21816 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
21817 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
21818 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
21819 s,@PACKAGE@,$PACKAGE,;t t
21820 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21821 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21822 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21823 s,@CYGPATH_W@,$CYGPATH_W,;t t
21824 s,@PYTHON2_4@,$PYTHON2_4,;t t
21825 s,@ACLOCAL@,$ACLOCAL,;t t
21826 s,@AUTOCONF@,$AUTOCONF,;t t
21827 s,@AUTOMAKE@,$AUTOMAKE,;t t
21828 s,@AUTOHEADER@,$AUTOHEADER,;t t
21829 s,@MAKEINFO@,$MAKEINFO,;t t
21830 s,@install_sh@,$install_sh,;t t
21831 s,@STRIP@,$STRIP,;t t
21832 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21833 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21834 s,@mkdir_p@,$mkdir_p,;t t
21835 s,@AWK@,$AWK,;t t
21836 s,@AMTAR@,$AMTAR,;t t
21837 s,@am__tar@,$am__tar,;t t
21838 s,@am__untar@,$am__untar,;t t
21839 s,@am__include@,$am__include,;t t
21840 s,@am__quote@,$am__quote,;t t
21841 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21842 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21843 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21844 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21845 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21846 s,@subdirs@,$subdirs,;t t
21847 s,@TARGET_OBS@,$TARGET_OBS,;t t
21848 s,@PKGVERSION@,$PKGVERSION,;t t
21849 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21850 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
21851 s,@LN_S@,$LN_S,;t t
21852 s,@YACC@,$YACC,;t t
21853 s,@AR@,$AR,;t t
21854 s,@ac_ct_AR@,$ac_ct_AR,;t t
21855 s,@DLLTOOL@,$DLLTOOL,;t t
21856 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21857 s,@WINDRES@,$WINDRES,;t t
21858 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
21859 s,@MIG@,$MIG,;t t
21860 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
21861 s,@READLINE@,$READLINE,;t t
21862 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
21863 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
21864 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
21865 s,@LIBEXPAT@,$LIBEXPAT,;t t
21866 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
21867 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
21868 s,@ALLOCA@,$ALLOCA,;t t
21869 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
21870 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
21871 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
21872 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
21873 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
21874 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
21875 s,@WIN32LIBS@,$WIN32LIBS,;t t
21876 s,@LIBGUI@,$LIBGUI,;t t
21877 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
21878 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
21879 s,@TCL_VERSION@,$TCL_VERSION,;t t
21880 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
21881 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
21882 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
21883 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
21884 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
21885 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
21886 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
21887 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
21888 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
21889 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
21890 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
21891 s,@TCL_DEPS@,$TCL_DEPS,;t t
21892 s,@TK_VERSION@,$TK_VERSION,;t t
21893 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
21894 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
21895 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
21896 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
21897 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
21898 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
21899 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
21900 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
21901 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
21902 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
21903 s,@TK_DEPS@,$TK_DEPS,;t t
21904 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
21905 s,@X_CFLAGS@,$X_CFLAGS,;t t
21906 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
21907 s,@X_LIBS@,$X_LIBS,;t t
21908 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
21909 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
21910 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
21911 s,@SIM@,$SIM,;t t
21912 s,@SIM_OBS@,$SIM_OBS,;t t
21913 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
21914 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
21915 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
21916 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
21917 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
21918 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
21919 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
21920 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
21921 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
21922 s,@target_subdir@,$target_subdir,;t t
21923 s,@frags@,$frags,;t t
21924 s,@nm_h@,$nm_h,;t t
21925 s,@LIBICONV@,$LIBICONV,;t t
21926 s,@LIBOBJS@,$LIBOBJS,;t t
21927 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21928 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
21929 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
21930 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
21931 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
21932 /@host_makefile_frag@/r $host_makefile_frag
21933 s,@host_makefile_frag@,,;t t
21934 CEOF
21935
21936 _ACEOF
21937
21938 cat >>$CONFIG_STATUS <<\_ACEOF
21939 # Split the substitutions into bite-sized pieces for seds with
21940 # small command number limits, like on Digital OSF/1 and HP-UX.
21941 ac_max_sed_lines=48
21942 ac_sed_frag=1 # Number of current file.
21943 ac_beg=1 # First line for current file.
21944 ac_end=$ac_max_sed_lines # Line after last line for current file.
21945 ac_more_lines=:
21946 ac_sed_cmds=
21947 while $ac_more_lines; do
21948 if test $ac_beg -gt 1; then
21949 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21950 else
21951 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21952 fi
21953 if test ! -s $tmp/subs.frag; then
21954 ac_more_lines=false
21955 else
21956 # The purpose of the label and of the branching condition is to
21957 # speed up the sed processing (if there are no `@' at all, there
21958 # is no need to browse any of the substitutions).
21959 # These are the two extra sed commands mentioned above.
21960 (echo ':t
21961 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21962 if test -z "$ac_sed_cmds"; then
21963 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21964 else
21965 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21966 fi
21967 ac_sed_frag=`expr $ac_sed_frag + 1`
21968 ac_beg=$ac_end
21969 ac_end=`expr $ac_end + $ac_max_sed_lines`
21970 fi
21971 done
21972 if test -z "$ac_sed_cmds"; then
21973 ac_sed_cmds=cat
21974 fi
21975 fi # test -n "$CONFIG_FILES"
21976
21977 _ACEOF
21978 cat >>$CONFIG_STATUS <<\_ACEOF
21979 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21980 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21981 case $ac_file in
21982 - | *:- | *:-:* ) # input from stdin
21983 cat >$tmp/stdin
21984 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21986 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21987 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21988 * ) ac_file_in=$ac_file.in ;;
21989 esac
21990
21991 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21992 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21994 X"$ac_file" : 'X\(//\)[^/]' \| \
21995 X"$ac_file" : 'X\(//\)$' \| \
21996 X"$ac_file" : 'X\(/\)' \| \
21997 . : '\(.\)' 2>/dev/null ||
21998 echo X"$ac_file" |
21999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22000 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22001 /^X\(\/\/\)$/{ s//\1/; q; }
22002 /^X\(\/\).*/{ s//\1/; q; }
22003 s/.*/./; q'`
22004 { if $as_mkdir_p; then
22005 mkdir -p "$ac_dir"
22006 else
22007 as_dir="$ac_dir"
22008 as_dirs=
22009 while test ! -d "$as_dir"; do
22010 as_dirs="$as_dir $as_dirs"
22011 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22012 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22013 X"$as_dir" : 'X\(//\)[^/]' \| \
22014 X"$as_dir" : 'X\(//\)$' \| \
22015 X"$as_dir" : 'X\(/\)' \| \
22016 . : '\(.\)' 2>/dev/null ||
22017 echo X"$as_dir" |
22018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22020 /^X\(\/\/\)$/{ s//\1/; q; }
22021 /^X\(\/\).*/{ s//\1/; q; }
22022 s/.*/./; q'`
22023 done
22024 test ! -n "$as_dirs" || mkdir $as_dirs
22025 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22026 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22027 { (exit 1); exit 1; }; }; }
22028
22029 ac_builddir=.
22030
22031 if test "$ac_dir" != .; then
22032 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22033 # A "../" for each directory in $ac_dir_suffix.
22034 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22035 else
22036 ac_dir_suffix= ac_top_builddir=
22037 fi
22038
22039 case $srcdir in
22040 .) # No --srcdir option. We are building in place.
22041 ac_srcdir=.
22042 if test -z "$ac_top_builddir"; then
22043 ac_top_srcdir=.
22044 else
22045 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22046 fi ;;
22047 [\\/]* | ?:[\\/]* ) # Absolute path.
22048 ac_srcdir=$srcdir$ac_dir_suffix;
22049 ac_top_srcdir=$srcdir ;;
22050 *) # Relative path.
22051 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22052 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22053 esac
22054
22055 # Do not use `cd foo && pwd` to compute absolute paths, because
22056 # the directories may not exist.
22057 case `pwd` in
22058 .) ac_abs_builddir="$ac_dir";;
22059 *)
22060 case "$ac_dir" in
22061 .) ac_abs_builddir=`pwd`;;
22062 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22063 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22064 esac;;
22065 esac
22066 case $ac_abs_builddir in
22067 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22068 *)
22069 case ${ac_top_builddir}. in
22070 .) ac_abs_top_builddir=$ac_abs_builddir;;
22071 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22072 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22073 esac;;
22074 esac
22075 case $ac_abs_builddir in
22076 .) ac_abs_srcdir=$ac_srcdir;;
22077 *)
22078 case $ac_srcdir in
22079 .) ac_abs_srcdir=$ac_abs_builddir;;
22080 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22081 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22082 esac;;
22083 esac
22084 case $ac_abs_builddir in
22085 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22086 *)
22087 case $ac_top_srcdir in
22088 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22089 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22090 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22091 esac;;
22092 esac
22093
22094
22095 case $INSTALL in
22096 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22097 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22098 esac
22099
22100 if test x"$ac_file" != x-; then
22101 { echo "$as_me:$LINENO: creating $ac_file" >&5
22102 echo "$as_me: creating $ac_file" >&6;}
22103 rm -f "$ac_file"
22104 fi
22105 # Let's still pretend it is `configure' which instantiates (i.e., don't
22106 # use $as_me), people would be surprised to read:
22107 # /* config.h. Generated by config.status. */
22108 if test x"$ac_file" = x-; then
22109 configure_input=
22110 else
22111 configure_input="$ac_file. "
22112 fi
22113 configure_input=$configure_input"Generated from `echo $ac_file_in |
22114 sed 's,.*/,,'` by configure."
22115
22116 # First look for the input files in the build tree, otherwise in the
22117 # src tree.
22118 ac_file_inputs=`IFS=:
22119 for f in $ac_file_in; do
22120 case $f in
22121 -) echo $tmp/stdin ;;
22122 [\\/$]*)
22123 # Absolute (can't be DOS-style, as IFS=:)
22124 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22125 echo "$as_me: error: cannot find input file: $f" >&2;}
22126 { (exit 1); exit 1; }; }
22127 echo "$f";;
22128 *) # Relative
22129 if test -f "$f"; then
22130 # Build tree
22131 echo "$f"
22132 elif test -f "$srcdir/$f"; then
22133 # Source tree
22134 echo "$srcdir/$f"
22135 else
22136 # /dev/null tree
22137 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22138 echo "$as_me: error: cannot find input file: $f" >&2;}
22139 { (exit 1); exit 1; }; }
22140 fi;;
22141 esac
22142 done` || { (exit 1); exit 1; }
22143 _ACEOF
22144 cat >>$CONFIG_STATUS <<_ACEOF
22145 sed "$ac_vpsub
22146 $extrasub
22147 _ACEOF
22148 cat >>$CONFIG_STATUS <<\_ACEOF
22149 :t
22150 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22151 s,@configure_input@,$configure_input,;t t
22152 s,@srcdir@,$ac_srcdir,;t t
22153 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22154 s,@top_srcdir@,$ac_top_srcdir,;t t
22155 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22156 s,@builddir@,$ac_builddir,;t t
22157 s,@abs_builddir@,$ac_abs_builddir,;t t
22158 s,@top_builddir@,$ac_top_builddir,;t t
22159 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22160 s,@INSTALL@,$ac_INSTALL,;t t
22161 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22162 rm -f $tmp/stdin
22163 if test x"$ac_file" != x-; then
22164 mv $tmp/out $ac_file
22165 else
22166 cat $tmp/out
22167 rm -f $tmp/out
22168 fi
22169
22170 done
22171 _ACEOF
22172 cat >>$CONFIG_STATUS <<\_ACEOF
22173
22174 #
22175 # CONFIG_HEADER section.
22176 #
22177
22178 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22179 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22180 #
22181 # ac_d sets the value in "#define NAME VALUE" lines.
22182 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22183 ac_dB='[ ].*$,\1#\2'
22184 ac_dC=' '
22185 ac_dD=',;t'
22186 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22187 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22188 ac_uB='$,\1#\2define\3'
22189 ac_uC=' '
22190 ac_uD=',;t'
22191
22192 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22193 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22194 case $ac_file in
22195 - | *:- | *:-:* ) # input from stdin
22196 cat >$tmp/stdin
22197 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22198 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22199 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22200 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22201 * ) ac_file_in=$ac_file.in ;;
22202 esac
22203
22204 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22205 echo "$as_me: creating $ac_file" >&6;}
22206
22207 # First look for the input files in the build tree, otherwise in the
22208 # src tree.
22209 ac_file_inputs=`IFS=:
22210 for f in $ac_file_in; do
22211 case $f in
22212 -) echo $tmp/stdin ;;
22213 [\\/$]*)
22214 # Absolute (can't be DOS-style, as IFS=:)
22215 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22216 echo "$as_me: error: cannot find input file: $f" >&2;}
22217 { (exit 1); exit 1; }; }
22218 # Do quote $f, to prevent DOS paths from being IFS'd.
22219 echo "$f";;
22220 *) # Relative
22221 if test -f "$f"; then
22222 # Build tree
22223 echo "$f"
22224 elif test -f "$srcdir/$f"; then
22225 # Source tree
22226 echo "$srcdir/$f"
22227 else
22228 # /dev/null tree
22229 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22230 echo "$as_me: error: cannot find input file: $f" >&2;}
22231 { (exit 1); exit 1; }; }
22232 fi;;
22233 esac
22234 done` || { (exit 1); exit 1; }
22235 # Remove the trailing spaces.
22236 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22237
22238 _ACEOF
22239
22240 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22241 # `conftest.undefs', that substitutes the proper values into
22242 # config.h.in to produce config.h. The first handles `#define'
22243 # templates, and the second `#undef' templates.
22244 # And first: Protect against being on the right side of a sed subst in
22245 # config.status. Protect against being in an unquoted here document
22246 # in config.status.
22247 rm -f conftest.defines conftest.undefs
22248 # Using a here document instead of a string reduces the quoting nightmare.
22249 # Putting comments in sed scripts is not portable.
22250 #
22251 # `end' is used to avoid that the second main sed command (meant for
22252 # 0-ary CPP macros) applies to n-ary macro definitions.
22253 # See the Autoconf documentation for `clear'.
22254 cat >confdef2sed.sed <<\_ACEOF
22255 s/[\\&,]/\\&/g
22256 s,[\\$`],\\&,g
22257 t clear
22258 : clear
22259 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22260 t end
22261 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22262 : end
22263 _ACEOF
22264 # If some macros were called several times there might be several times
22265 # the same #defines, which is useless. Nevertheless, we may not want to
22266 # sort them, since we want the *last* AC-DEFINE to be honored.
22267 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22268 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22269 rm -f confdef2sed.sed
22270
22271 # This sed command replaces #undef with comments. This is necessary, for
22272 # example, in the case of _POSIX_SOURCE, which is predefined and required
22273 # on some systems where configure will not decide to define it.
22274 cat >>conftest.undefs <<\_ACEOF
22275 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22276 _ACEOF
22277
22278 # Break up conftest.defines because some shells have a limit on the size
22279 # of here documents, and old seds have small limits too (100 cmds).
22280 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22281 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22282 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22283 echo ' :' >>$CONFIG_STATUS
22284 rm -f conftest.tail
22285 while grep . conftest.defines >/dev/null
22286 do
22287 # Write a limited-size here document to $tmp/defines.sed.
22288 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22289 # Speed up: don't consider the non `#define' lines.
22290 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22291 # Work around the forget-to-reset-the-flag bug.
22292 echo 't clr' >>$CONFIG_STATUS
22293 echo ': clr' >>$CONFIG_STATUS
22294 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22295 echo 'CEOF
22296 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22297 rm -f $tmp/in
22298 mv $tmp/out $tmp/in
22299 ' >>$CONFIG_STATUS
22300 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22301 rm -f conftest.defines
22302 mv conftest.tail conftest.defines
22303 done
22304 rm -f conftest.defines
22305 echo ' fi # grep' >>$CONFIG_STATUS
22306 echo >>$CONFIG_STATUS
22307
22308 # Break up conftest.undefs because some shells have a limit on the size
22309 # of here documents, and old seds have small limits too (100 cmds).
22310 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22311 rm -f conftest.tail
22312 while grep . conftest.undefs >/dev/null
22313 do
22314 # Write a limited-size here document to $tmp/undefs.sed.
22315 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22316 # Speed up: don't consider the non `#undef'
22317 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22318 # Work around the forget-to-reset-the-flag bug.
22319 echo 't clr' >>$CONFIG_STATUS
22320 echo ': clr' >>$CONFIG_STATUS
22321 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22322 echo 'CEOF
22323 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22324 rm -f $tmp/in
22325 mv $tmp/out $tmp/in
22326 ' >>$CONFIG_STATUS
22327 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22328 rm -f conftest.undefs
22329 mv conftest.tail conftest.undefs
22330 done
22331 rm -f conftest.undefs
22332
22333 cat >>$CONFIG_STATUS <<\_ACEOF
22334 # Let's still pretend it is `configure' which instantiates (i.e., don't
22335 # use $as_me), people would be surprised to read:
22336 # /* config.h. Generated by config.status. */
22337 if test x"$ac_file" = x-; then
22338 echo "/* Generated by configure. */" >$tmp/config.h
22339 else
22340 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22341 fi
22342 cat $tmp/in >>$tmp/config.h
22343 rm -f $tmp/in
22344 if test x"$ac_file" != x-; then
22345 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22346 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22347 echo "$as_me: $ac_file is unchanged" >&6;}
22348 else
22349 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22350 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22351 X"$ac_file" : 'X\(//\)[^/]' \| \
22352 X"$ac_file" : 'X\(//\)$' \| \
22353 X"$ac_file" : 'X\(/\)' \| \
22354 . : '\(.\)' 2>/dev/null ||
22355 echo X"$ac_file" |
22356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22357 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22358 /^X\(\/\/\)$/{ s//\1/; q; }
22359 /^X\(\/\).*/{ s//\1/; q; }
22360 s/.*/./; q'`
22361 { if $as_mkdir_p; then
22362 mkdir -p "$ac_dir"
22363 else
22364 as_dir="$ac_dir"
22365 as_dirs=
22366 while test ! -d "$as_dir"; do
22367 as_dirs="$as_dir $as_dirs"
22368 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22370 X"$as_dir" : 'X\(//\)[^/]' \| \
22371 X"$as_dir" : 'X\(//\)$' \| \
22372 X"$as_dir" : 'X\(/\)' \| \
22373 . : '\(.\)' 2>/dev/null ||
22374 echo X"$as_dir" |
22375 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22376 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22377 /^X\(\/\/\)$/{ s//\1/; q; }
22378 /^X\(\/\).*/{ s//\1/; q; }
22379 s/.*/./; q'`
22380 done
22381 test ! -n "$as_dirs" || mkdir $as_dirs
22382 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22383 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22384 { (exit 1); exit 1; }; }; }
22385
22386 rm -f $ac_file
22387 mv $tmp/config.h $ac_file
22388 fi
22389 else
22390 cat $tmp/config.h
22391 rm -f $tmp/config.h
22392 fi
22393 # Compute $ac_file's index in $config_headers.
22394 _am_stamp_count=1
22395 for _am_header in $config_headers :; do
22396 case $_am_header in
22397 $ac_file | $ac_file:* )
22398 break ;;
22399 * )
22400 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22401 esac
22402 done
22403 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22404 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22405 X$ac_file : 'X\(//\)[^/]' \| \
22406 X$ac_file : 'X\(//\)$' \| \
22407 X$ac_file : 'X\(/\)' \| \
22408 . : '\(.\)' 2>/dev/null ||
22409 echo X$ac_file |
22410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22411 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22412 /^X\(\/\/\)$/{ s//\1/; q; }
22413 /^X\(\/\).*/{ s//\1/; q; }
22414 s/.*/./; q'`/stamp-h$_am_stamp_count
22415 done
22416 _ACEOF
22417 cat >>$CONFIG_STATUS <<\_ACEOF
22418
22419 #
22420 # CONFIG_LINKS section.
22421 #
22422
22423 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22424 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22425 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22426
22427 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22428 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22429
22430 if test ! -r $srcdir/$ac_source; then
22431 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22432 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22433 { (exit 1); exit 1; }; }
22434 fi
22435 rm -f $ac_dest
22436
22437 # Make relative symlinks.
22438 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22439 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22440 X"$ac_dest" : 'X\(//\)[^/]' \| \
22441 X"$ac_dest" : 'X\(//\)$' \| \
22442 X"$ac_dest" : 'X\(/\)' \| \
22443 . : '\(.\)' 2>/dev/null ||
22444 echo X"$ac_dest" |
22445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22446 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22447 /^X\(\/\/\)$/{ s//\1/; q; }
22448 /^X\(\/\).*/{ s//\1/; q; }
22449 s/.*/./; q'`
22450 { if $as_mkdir_p; then
22451 mkdir -p "$ac_dest_dir"
22452 else
22453 as_dir="$ac_dest_dir"
22454 as_dirs=
22455 while test ! -d "$as_dir"; do
22456 as_dirs="$as_dir $as_dirs"
22457 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22459 X"$as_dir" : 'X\(//\)[^/]' \| \
22460 X"$as_dir" : 'X\(//\)$' \| \
22461 X"$as_dir" : 'X\(/\)' \| \
22462 . : '\(.\)' 2>/dev/null ||
22463 echo X"$as_dir" |
22464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22466 /^X\(\/\/\)$/{ s//\1/; q; }
22467 /^X\(\/\).*/{ s//\1/; q; }
22468 s/.*/./; q'`
22469 done
22470 test ! -n "$as_dirs" || mkdir $as_dirs
22471 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22472 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22473 { (exit 1); exit 1; }; }; }
22474
22475 ac_builddir=.
22476
22477 if test "$ac_dest_dir" != .; then
22478 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22479 # A "../" for each directory in $ac_dir_suffix.
22480 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22481 else
22482 ac_dir_suffix= ac_top_builddir=
22483 fi
22484
22485 case $srcdir in
22486 .) # No --srcdir option. We are building in place.
22487 ac_srcdir=.
22488 if test -z "$ac_top_builddir"; then
22489 ac_top_srcdir=.
22490 else
22491 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22492 fi ;;
22493 [\\/]* | ?:[\\/]* ) # Absolute path.
22494 ac_srcdir=$srcdir$ac_dir_suffix;
22495 ac_top_srcdir=$srcdir ;;
22496 *) # Relative path.
22497 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22498 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22499 esac
22500
22501 # Do not use `cd foo && pwd` to compute absolute paths, because
22502 # the directories may not exist.
22503 case `pwd` in
22504 .) ac_abs_builddir="$ac_dest_dir";;
22505 *)
22506 case "$ac_dest_dir" in
22507 .) ac_abs_builddir=`pwd`;;
22508 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22509 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22510 esac;;
22511 esac
22512 case $ac_abs_builddir in
22513 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22514 *)
22515 case ${ac_top_builddir}. in
22516 .) ac_abs_top_builddir=$ac_abs_builddir;;
22517 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22518 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22519 esac;;
22520 esac
22521 case $ac_abs_builddir in
22522 .) ac_abs_srcdir=$ac_srcdir;;
22523 *)
22524 case $ac_srcdir in
22525 .) ac_abs_srcdir=$ac_abs_builddir;;
22526 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22527 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22528 esac;;
22529 esac
22530 case $ac_abs_builddir in
22531 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22532 *)
22533 case $ac_top_srcdir in
22534 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22535 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22536 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22537 esac;;
22538 esac
22539
22540
22541 case $srcdir in
22542 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22543 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22544 esac
22545
22546 # Try a symlink, then a hard link, then a copy.
22547 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22548 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22549 cp -p $srcdir/$ac_source $ac_dest ||
22550 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22551 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22552 { (exit 1); exit 1; }; }
22553 done
22554 _ACEOF
22555 cat >>$CONFIG_STATUS <<\_ACEOF
22556
22557 #
22558 # CONFIG_COMMANDS section.
22559 #
22560 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22561 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22562 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22563 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22564 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22565 X"$ac_dest" : 'X\(//\)[^/]' \| \
22566 X"$ac_dest" : 'X\(//\)$' \| \
22567 X"$ac_dest" : 'X\(/\)' \| \
22568 . : '\(.\)' 2>/dev/null ||
22569 echo X"$ac_dest" |
22570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22571 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22572 /^X\(\/\/\)$/{ s//\1/; q; }
22573 /^X\(\/\).*/{ s//\1/; q; }
22574 s/.*/./; q'`
22575 { if $as_mkdir_p; then
22576 mkdir -p "$ac_dir"
22577 else
22578 as_dir="$ac_dir"
22579 as_dirs=
22580 while test ! -d "$as_dir"; do
22581 as_dirs="$as_dir $as_dirs"
22582 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22583 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22584 X"$as_dir" : 'X\(//\)[^/]' \| \
22585 X"$as_dir" : 'X\(//\)$' \| \
22586 X"$as_dir" : 'X\(/\)' \| \
22587 . : '\(.\)' 2>/dev/null ||
22588 echo X"$as_dir" |
22589 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22590 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22591 /^X\(\/\/\)$/{ s//\1/; q; }
22592 /^X\(\/\).*/{ s//\1/; q; }
22593 s/.*/./; q'`
22594 done
22595 test ! -n "$as_dirs" || mkdir $as_dirs
22596 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22597 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22598 { (exit 1); exit 1; }; }; }
22599
22600 ac_builddir=.
22601
22602 if test "$ac_dir" != .; then
22603 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22604 # A "../" for each directory in $ac_dir_suffix.
22605 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22606 else
22607 ac_dir_suffix= ac_top_builddir=
22608 fi
22609
22610 case $srcdir in
22611 .) # No --srcdir option. We are building in place.
22612 ac_srcdir=.
22613 if test -z "$ac_top_builddir"; then
22614 ac_top_srcdir=.
22615 else
22616 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22617 fi ;;
22618 [\\/]* | ?:[\\/]* ) # Absolute path.
22619 ac_srcdir=$srcdir$ac_dir_suffix;
22620 ac_top_srcdir=$srcdir ;;
22621 *) # Relative path.
22622 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22623 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22624 esac
22625
22626 # Do not use `cd foo && pwd` to compute absolute paths, because
22627 # the directories may not exist.
22628 case `pwd` in
22629 .) ac_abs_builddir="$ac_dir";;
22630 *)
22631 case "$ac_dir" in
22632 .) ac_abs_builddir=`pwd`;;
22633 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22634 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22635 esac;;
22636 esac
22637 case $ac_abs_builddir in
22638 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22639 *)
22640 case ${ac_top_builddir}. in
22641 .) ac_abs_top_builddir=$ac_abs_builddir;;
22642 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22643 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22644 esac;;
22645 esac
22646 case $ac_abs_builddir in
22647 .) ac_abs_srcdir=$ac_srcdir;;
22648 *)
22649 case $ac_srcdir in
22650 .) ac_abs_srcdir=$ac_abs_builddir;;
22651 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22652 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22653 esac;;
22654 esac
22655 case $ac_abs_builddir in
22656 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22657 *)
22658 case $ac_top_srcdir in
22659 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22660 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22661 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22662 esac;;
22663 esac
22664
22665
22666 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22667 echo "$as_me: executing $ac_dest commands" >&6;}
22668 case $ac_dest in
22669 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
22670 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22671 # Strip MF so we end up with the name of the file.
22672 mf=`echo "$mf" | sed -e 's/:.*$//'`
22673 # Check whether this is an Automake generated Makefile or not.
22674 # We used to match only the files named `Makefile.in', but
22675 # some people rename them; so instead we look at the file content.
22676 # Grep'ing the first line is not enough: some people post-process
22677 # each Makefile.in and add a new line on top of each file to say so.
22678 # So let's grep whole file.
22679 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22680 dirpart=`(dirname "$mf") 2>/dev/null ||
22681 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22682 X"$mf" : 'X\(//\)[^/]' \| \
22683 X"$mf" : 'X\(//\)$' \| \
22684 X"$mf" : 'X\(/\)' \| \
22685 . : '\(.\)' 2>/dev/null ||
22686 echo X"$mf" |
22687 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22688 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22689 /^X\(\/\/\)$/{ s//\1/; q; }
22690 /^X\(\/\).*/{ s//\1/; q; }
22691 s/.*/./; q'`
22692 else
22693 continue
22694 fi
22695 # Extract the definition of DEPDIR, am__include, and am__quote
22696 # from the Makefile without running `make'.
22697 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22698 test -z "$DEPDIR" && continue
22699 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22700 test -z "am__include" && continue
22701 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22702 # When using ansi2knr, U may be empty or an underscore; expand it
22703 U=`sed -n 's/^U = //p' < "$mf"`
22704 # Find all dependency output files, they are included files with
22705 # $(DEPDIR) in their names. We invoke sed twice because it is the
22706 # simplest approach to changing $(DEPDIR) to its actual value in the
22707 # expansion.
22708 for file in `sed -n "
22709 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22710 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22711 # Make sure the directory exists.
22712 test -f "$dirpart/$file" && continue
22713 fdir=`(dirname "$file") 2>/dev/null ||
22714 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22715 X"$file" : 'X\(//\)[^/]' \| \
22716 X"$file" : 'X\(//\)$' \| \
22717 X"$file" : 'X\(/\)' \| \
22718 . : '\(.\)' 2>/dev/null ||
22719 echo X"$file" |
22720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22722 /^X\(\/\/\)$/{ s//\1/; q; }
22723 /^X\(\/\).*/{ s//\1/; q; }
22724 s/.*/./; q'`
22725 { if $as_mkdir_p; then
22726 mkdir -p $dirpart/$fdir
22727 else
22728 as_dir=$dirpart/$fdir
22729 as_dirs=
22730 while test ! -d "$as_dir"; do
22731 as_dirs="$as_dir $as_dirs"
22732 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22733 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22734 X"$as_dir" : 'X\(//\)[^/]' \| \
22735 X"$as_dir" : 'X\(//\)$' \| \
22736 X"$as_dir" : 'X\(/\)' \| \
22737 . : '\(.\)' 2>/dev/null ||
22738 echo X"$as_dir" |
22739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22740 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22741 /^X\(\/\/\)$/{ s//\1/; q; }
22742 /^X\(\/\).*/{ s//\1/; q; }
22743 s/.*/./; q'`
22744 done
22745 test ! -n "$as_dirs" || mkdir $as_dirs
22746 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22747 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22748 { (exit 1); exit 1; }; }; }
22749
22750 # echo "creating $dirpart/$file"
22751 echo '# dummy' > "$dirpart/$file"
22752 done
22753 done
22754 ;;
22755 default )
22756
22757 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
22758 mv -f Makefile.tmp Makefile
22759
22760
22761 case x$CONFIG_HEADERS in
22762 xconfig.h:config.in)
22763 echo > stamp-h ;;
22764 esac
22765 ;;
22766 esac
22767 done
22768 _ACEOF
22769
22770 cat >>$CONFIG_STATUS <<\_ACEOF
22771
22772 { (exit 0); exit 0; }
22773 _ACEOF
22774 chmod +x $CONFIG_STATUS
22775 ac_clean_files=$ac_clean_files_save
22776
22777
22778 # configure is writing to config.log, and then calls config.status.
22779 # config.status does its own redirection, appending to config.log.
22780 # Unfortunately, on DOS this fails, as config.log is still kept open
22781 # by configure, so config.status won't be able to write to it; its
22782 # output is simply discarded. So we exec the FD to /dev/null,
22783 # effectively closing config.log, so it can be properly (re)opened and
22784 # appended to by config.status. When coming back to configure, we
22785 # need to make the FD available again.
22786 if test "$no_create" != yes; then
22787 ac_cs_success=:
22788 ac_config_status_args=
22789 test "$silent" = yes &&
22790 ac_config_status_args="$ac_config_status_args --quiet"
22791 exec 5>/dev/null
22792 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22793 exec 5>>config.log
22794 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22795 # would make configure fail if this is the last instruction.
22796 $ac_cs_success || { (exit 1); exit 1; }
22797 fi
22798
22799 #
22800 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
22801 #
22802 if test "$no_recursion" != yes; then
22803
22804 # Remove --cache-file and --srcdir arguments so they do not pile up.
22805 ac_sub_configure_args=
22806 ac_prev=
22807 eval "set x $ac_configure_args"
22808 shift
22809 for ac_arg
22810 do
22811 if test -n "$ac_prev"; then
22812 ac_prev=
22813 continue
22814 fi
22815 case $ac_arg in
22816 -cache-file | --cache-file | --cache-fil | --cache-fi \
22817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22818 ac_prev=cache_file ;;
22819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22821 | --c=*)
22822 ;;
22823 --config-cache | -C)
22824 ;;
22825 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22826 ac_prev=srcdir ;;
22827 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22828 ;;
22829 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22830 ac_prev=prefix ;;
22831 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22832 ;;
22833 *)
22834 case $ac_arg in
22835 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22836 esac
22837 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22838 esac
22839 done
22840
22841 # Always prepend --prefix to ensure using the same prefix
22842 # in subdir configurations.
22843 ac_arg="--prefix=$prefix"
22844 case $ac_arg in
22845 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22846 esac
22847 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22848
22849 ac_popdir=`pwd`
22850 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22851
22852 # Do not complain, so a configure script can configure whichever
22853 # parts of a large source tree are present.
22854 test -d "$srcdir/$ac_dir" || continue
22855
22856 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
22857 echo "$as_me: configuring in $ac_dir" >&6;}
22858 { if $as_mkdir_p; then
22859 mkdir -p "$ac_dir"
22860 else
22861 as_dir="$ac_dir"
22862 as_dirs=
22863 while test ! -d "$as_dir"; do
22864 as_dirs="$as_dir $as_dirs"
22865 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22867 X"$as_dir" : 'X\(//\)[^/]' \| \
22868 X"$as_dir" : 'X\(//\)$' \| \
22869 X"$as_dir" : 'X\(/\)' \| \
22870 . : '\(.\)' 2>/dev/null ||
22871 echo X"$as_dir" |
22872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22874 /^X\(\/\/\)$/{ s//\1/; q; }
22875 /^X\(\/\).*/{ s//\1/; q; }
22876 s/.*/./; q'`
22877 done
22878 test ! -n "$as_dirs" || mkdir $as_dirs
22879 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22881 { (exit 1); exit 1; }; }; }
22882
22883 ac_builddir=.
22884
22885 if test "$ac_dir" != .; then
22886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22887 # A "../" for each directory in $ac_dir_suffix.
22888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22889 else
22890 ac_dir_suffix= ac_top_builddir=
22891 fi
22892
22893 case $srcdir in
22894 .) # No --srcdir option. We are building in place.
22895 ac_srcdir=.
22896 if test -z "$ac_top_builddir"; then
22897 ac_top_srcdir=.
22898 else
22899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22900 fi ;;
22901 [\\/]* | ?:[\\/]* ) # Absolute path.
22902 ac_srcdir=$srcdir$ac_dir_suffix;
22903 ac_top_srcdir=$srcdir ;;
22904 *) # Relative path.
22905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22907 esac
22908
22909 # Do not use `cd foo && pwd` to compute absolute paths, because
22910 # the directories may not exist.
22911 case `pwd` in
22912 .) ac_abs_builddir="$ac_dir";;
22913 *)
22914 case "$ac_dir" in
22915 .) ac_abs_builddir=`pwd`;;
22916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22917 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22918 esac;;
22919 esac
22920 case $ac_abs_builddir in
22921 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22922 *)
22923 case ${ac_top_builddir}. in
22924 .) ac_abs_top_builddir=$ac_abs_builddir;;
22925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22927 esac;;
22928 esac
22929 case $ac_abs_builddir in
22930 .) ac_abs_srcdir=$ac_srcdir;;
22931 *)
22932 case $ac_srcdir in
22933 .) ac_abs_srcdir=$ac_abs_builddir;;
22934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22936 esac;;
22937 esac
22938 case $ac_abs_builddir in
22939 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22940 *)
22941 case $ac_top_srcdir in
22942 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22945 esac;;
22946 esac
22947
22948
22949 cd "$ac_dir"
22950
22951 # Check for guested configure; otherwise get Cygnus style configure.
22952 if test -f "$ac_srcdir/configure.gnu"; then
22953 ac_sub_configure=$ac_srcdir/configure.gnu
22954 elif test -f "$ac_srcdir/configure"; then
22955 ac_sub_configure=$ac_srcdir/configure
22956 elif test -f "$ac_srcdir/configure.in"; then
22957 # This should be Cygnus configure.
22958 ac_sub_configure=$ac_aux_dir/configure
22959 else
22960 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22962 ac_sub_configure=
22963 fi
22964
22965 # The recursion is here.
22966 if test -n "$ac_sub_configure"; then
22967 # Make the cache file name correct relative to the subdirectory.
22968 case $cache_file in
22969 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22970 *) # Relative path.
22971 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
22972 esac
22973
22974 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22975 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22976 # The eval makes quoting arguments work.
22977 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22978 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22979 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22980 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22981 { (exit 1); exit 1; }; }
22982 fi
22983
22984 cd "$ac_popdir"
22985 done
22986 fi
22987
22988
22989 exit 0
This page took 0.689048 seconds and 4 git commands to generate.