* configure: Rebuild.
[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-tcl directory containing tcl configuration (tclConfig.sh)
899 --with-tk directory containing tk configuration (tkConfig.sh)
900 --with-x use the X Window System
901 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
902
903 Some influential environment variables:
904 CC C compiler command
905 CFLAGS C compiler flags
906 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
907 nonstandard directory <lib dir>
908 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
909 headers in a nonstandard directory <include dir>
910 CPP C preprocessor
911
912 Use these variables to override the choices made by `configure' or to help
913 it to find libraries and programs with nonstandard names/locations.
914
915 _ACEOF
916 fi
917
918 if test "$ac_init_help" = "recursive"; then
919 # If there are subdirs, report their specific --help.
920 ac_popdir=`pwd`
921 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
922 test -d $ac_dir || continue
923 ac_builddir=.
924
925 if test "$ac_dir" != .; then
926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
927 # A "../" for each directory in $ac_dir_suffix.
928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
929 else
930 ac_dir_suffix= ac_top_builddir=
931 fi
932
933 case $srcdir in
934 .) # No --srcdir option. We are building in place.
935 ac_srcdir=.
936 if test -z "$ac_top_builddir"; then
937 ac_top_srcdir=.
938 else
939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
940 fi ;;
941 [\\/]* | ?:[\\/]* ) # Absolute path.
942 ac_srcdir=$srcdir$ac_dir_suffix;
943 ac_top_srcdir=$srcdir ;;
944 *) # Relative path.
945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
947 esac
948
949 # Do not use `cd foo && pwd` to compute absolute paths, because
950 # the directories may not exist.
951 case `pwd` in
952 .) ac_abs_builddir="$ac_dir";;
953 *)
954 case "$ac_dir" in
955 .) ac_abs_builddir=`pwd`;;
956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
958 esac;;
959 esac
960 case $ac_abs_builddir in
961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
962 *)
963 case ${ac_top_builddir}. in
964 .) ac_abs_top_builddir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
967 esac;;
968 esac
969 case $ac_abs_builddir in
970 .) ac_abs_srcdir=$ac_srcdir;;
971 *)
972 case $ac_srcdir in
973 .) ac_abs_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
976 esac;;
977 esac
978 case $ac_abs_builddir in
979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
980 *)
981 case $ac_top_srcdir in
982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
985 esac;;
986 esac
987
988 cd $ac_dir
989 # Check for guested configure; otherwise get Cygnus style configure.
990 if test -f $ac_srcdir/configure.gnu; then
991 echo
992 $SHELL $ac_srcdir/configure.gnu --help=recursive
993 elif test -f $ac_srcdir/configure; then
994 echo
995 $SHELL $ac_srcdir/configure --help=recursive
996 elif test -f $ac_srcdir/configure.ac ||
997 test -f $ac_srcdir/configure.in; then
998 echo
999 $ac_configure --help
1000 else
1001 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002 fi
1003 cd $ac_popdir
1004 done
1005 fi
1006
1007 test -n "$ac_init_help" && exit 0
1008 if $ac_init_version; then
1009 cat <<\_ACEOF
1010
1011 Copyright (C) 2003 Free Software Foundation, Inc.
1012 This configure script is free software; the Free Software Foundation
1013 gives unlimited permission to copy, distribute and modify it.
1014 _ACEOF
1015 exit 0
1016 fi
1017 exec 5>config.log
1018 cat >&5 <<_ACEOF
1019 This file contains any messages produced by compilers while
1020 running configure, to aid debugging if configure makes a mistake.
1021
1022 It was created by $as_me, which was
1023 generated by GNU Autoconf 2.59. Invocation command line was
1024
1025 $ $0 $@
1026
1027 _ACEOF
1028 {
1029 cat <<_ASUNAME
1030 ## --------- ##
1031 ## Platform. ##
1032 ## --------- ##
1033
1034 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1035 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1036 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1037 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1038 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1039
1040 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1041 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1042
1043 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1044 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1045 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1046 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1047 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1048 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1049 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1050
1051 _ASUNAME
1052
1053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1054 for as_dir in $PATH
1055 do
1056 IFS=$as_save_IFS
1057 test -z "$as_dir" && as_dir=.
1058 echo "PATH: $as_dir"
1059 done
1060
1061 } >&5
1062
1063 cat >&5 <<_ACEOF
1064
1065
1066 ## ----------- ##
1067 ## Core tests. ##
1068 ## ----------- ##
1069
1070 _ACEOF
1071
1072
1073 # Keep a trace of the command line.
1074 # Strip out --no-create and --no-recursion so they do not pile up.
1075 # Strip out --silent because we don't want to record it for future runs.
1076 # Also quote any args containing shell meta-characters.
1077 # Make two passes to allow for proper duplicate-argument suppression.
1078 ac_configure_args=
1079 ac_configure_args0=
1080 ac_configure_args1=
1081 ac_sep=
1082 ac_must_keep_next=false
1083 for ac_pass in 1 2
1084 do
1085 for ac_arg
1086 do
1087 case $ac_arg in
1088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 continue ;;
1092 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1093 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1094 esac
1095 case $ac_pass in
1096 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1097 2)
1098 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1099 if test $ac_must_keep_next = true; then
1100 ac_must_keep_next=false # Got value, back to normal.
1101 else
1102 case $ac_arg in
1103 *=* | --config-cache | -C | -disable-* | --disable-* \
1104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1106 | -with-* | --with-* | -without-* | --without-* | --x)
1107 case "$ac_configure_args0 " in
1108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1109 esac
1110 ;;
1111 -* ) ac_must_keep_next=true ;;
1112 esac
1113 fi
1114 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1115 # Get rid of the leading space.
1116 ac_sep=" "
1117 ;;
1118 esac
1119 done
1120 done
1121 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1122 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1123
1124 # When interrupted or exit'd, cleanup temporary files, and complete
1125 # config.log. We remove comments because anyway the quotes in there
1126 # would cause problems or look ugly.
1127 # WARNING: Be sure not to use single quotes in there, as some shells,
1128 # such as our DU 5.0 friend, will then `close' the trap.
1129 trap 'exit_status=$?
1130 # Save into config.log some information that might help in debugging.
1131 {
1132 echo
1133
1134 cat <<\_ASBOX
1135 ## ---------------- ##
1136 ## Cache variables. ##
1137 ## ---------------- ##
1138 _ASBOX
1139 echo
1140 # The following way of writing the cache mishandles newlines in values,
1141 {
1142 (set) 2>&1 |
1143 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1144 *ac_space=\ *)
1145 sed -n \
1146 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1147 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1148 ;;
1149 *)
1150 sed -n \
1151 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1152 ;;
1153 esac;
1154 }
1155 echo
1156
1157 cat <<\_ASBOX
1158 ## ----------------- ##
1159 ## Output variables. ##
1160 ## ----------------- ##
1161 _ASBOX
1162 echo
1163 for ac_var in $ac_subst_vars
1164 do
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1167 done | sort
1168 echo
1169
1170 if test -n "$ac_subst_files"; then
1171 cat <<\_ASBOX
1172 ## ------------- ##
1173 ## Output files. ##
1174 ## ------------- ##
1175 _ASBOX
1176 echo
1177 for ac_var in $ac_subst_files
1178 do
1179 eval ac_val=$`echo $ac_var`
1180 echo "$ac_var='"'"'$ac_val'"'"'"
1181 done | sort
1182 echo
1183 fi
1184
1185 if test -s confdefs.h; then
1186 cat <<\_ASBOX
1187 ## ----------- ##
1188 ## confdefs.h. ##
1189 ## ----------- ##
1190 _ASBOX
1191 echo
1192 sed "/^$/d" confdefs.h | sort
1193 echo
1194 fi
1195 test "$ac_signal" != 0 &&
1196 echo "$as_me: caught signal $ac_signal"
1197 echo "$as_me: exit $exit_status"
1198 } >&5
1199 rm -f core *.core &&
1200 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1201 exit $exit_status
1202 ' 0
1203 for ac_signal in 1 2 13 15; do
1204 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1205 done
1206 ac_signal=0
1207
1208 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1209 rm -rf conftest* confdefs.h
1210 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1211 echo >confdefs.h
1212
1213 # Predefined preprocessor variables.
1214
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_NAME "$PACKAGE_NAME"
1217 _ACEOF
1218
1219
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1222 _ACEOF
1223
1224
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1227 _ACEOF
1228
1229
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_STRING "$PACKAGE_STRING"
1232 _ACEOF
1233
1234
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1237 _ACEOF
1238
1239
1240 # Let the site file select an alternate cache file if it wants to.
1241 # Prefer explicitly selected file to automatically selected ones.
1242 if test -z "$CONFIG_SITE"; then
1243 if test "x$prefix" != xNONE; then
1244 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1245 else
1246 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1247 fi
1248 fi
1249 for ac_site_file in $CONFIG_SITE; do
1250 if test -r "$ac_site_file"; then
1251 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1252 echo "$as_me: loading site script $ac_site_file" >&6;}
1253 sed 's/^/| /' "$ac_site_file" >&5
1254 . "$ac_site_file"
1255 fi
1256 done
1257
1258 if test -r "$cache_file"; then
1259 # Some versions of bash will fail to source /dev/null (special
1260 # files actually), so we avoid doing that.
1261 if test -f "$cache_file"; then
1262 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1263 echo "$as_me: loading cache $cache_file" >&6;}
1264 case $cache_file in
1265 [\\/]* | ?:[\\/]* ) . $cache_file;;
1266 *) . ./$cache_file;;
1267 esac
1268 fi
1269 else
1270 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1271 echo "$as_me: creating cache $cache_file" >&6;}
1272 >$cache_file
1273 fi
1274
1275 # Check that the precious variables saved in the cache have kept the same
1276 # value.
1277 ac_cache_corrupted=false
1278 for ac_var in `(set) 2>&1 |
1279 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1280 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1281 eval ac_new_set=\$ac_env_${ac_var}_set
1282 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1283 eval ac_new_val="\$ac_env_${ac_var}_value"
1284 case $ac_old_set,$ac_new_set in
1285 set,)
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1289 ,set)
1290 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1291 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1292 ac_cache_corrupted=: ;;
1293 ,);;
1294 *)
1295 if test "x$ac_old_val" != "x$ac_new_val"; then
1296 # differences in whitespace do not lead to failure.
1297 ac_old_val_w=`echo x $ac_old_val`
1298 ac_new_val_w=`echo x $ac_new_val`
1299 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1300 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1301 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1302 ac_cache_corrupted=:
1303 else
1304 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1305 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1306 eval $ac_var=\$ac_old_val
1307 fi
1308 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1309 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1310 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1311 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1312 fi;;
1313 esac
1314 # Pass precious variables to config.status.
1315 if test "$ac_new_set" = set; then
1316 case $ac_new_val in
1317 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1319 *) ac_arg=$ac_var=$ac_new_val ;;
1320 esac
1321 case " $ac_configure_args " in
1322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1323 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1324 esac
1325 fi
1326 done
1327 if $ac_cache_corrupted; then
1328 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1329 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1330 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334 { (exit 1); exit 1; }; }
1335 fi
1336
1337 ac_ext=c
1338 ac_cpp='$CPP $CPPFLAGS'
1339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1342
1343
1344 gl_header_list="$gl_header_list stdint.h"
1345 gl_header_list="$gl_header_list wchar.h"
1346 gl_header_list="$gl_header_list string.h"
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367 ac_config_headers="$ac_config_headers config.h:config.in"
1368
1369 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1370 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1371 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1372 if test "${enable_maintainer_mode+set}" = set; then
1373 enableval="$enable_maintainer_mode"
1374 USE_MAINTAINER_MODE=$enableval
1375 else
1376 USE_MAINTAINER_MODE=no
1377 fi;
1378 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1379 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1380
1381
1382 if test $USE_MAINTAINER_MODE = yes; then
1383 MAINTAINER_MODE_TRUE=
1384 MAINTAINER_MODE_FALSE='#'
1385 else
1386 MAINTAINER_MODE_TRUE='#'
1387 MAINTAINER_MODE_FALSE=
1388 fi
1389
1390 MAINT=$MAINTAINER_MODE_TRUE
1391
1392
1393
1394 ac_ext=c
1395 ac_cpp='$CPP $CPPFLAGS'
1396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1399 if test -n "$ac_tool_prefix"; then
1400 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1401 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1402 echo "$as_me:$LINENO: checking for $ac_word" >&5
1403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1404 if test "${ac_cv_prog_CC+set}" = set; then
1405 echo $ECHO_N "(cached) $ECHO_C" >&6
1406 else
1407 if test -n "$CC"; then
1408 ac_cv_prog_CC="$CC" # Let the user override the test.
1409 else
1410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1411 for as_dir in $PATH
1412 do
1413 IFS=$as_save_IFS
1414 test -z "$as_dir" && as_dir=.
1415 for ac_exec_ext in '' $ac_executable_extensions; do
1416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1417 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1419 break 2
1420 fi
1421 done
1422 done
1423
1424 fi
1425 fi
1426 CC=$ac_cv_prog_CC
1427 if test -n "$CC"; then
1428 echo "$as_me:$LINENO: result: $CC" >&5
1429 echo "${ECHO_T}$CC" >&6
1430 else
1431 echo "$as_me:$LINENO: result: no" >&5
1432 echo "${ECHO_T}no" >&6
1433 fi
1434
1435 fi
1436 if test -z "$ac_cv_prog_CC"; then
1437 ac_ct_CC=$CC
1438 # Extract the first word of "gcc", so it can be a program name with args.
1439 set dummy gcc; ac_word=$2
1440 echo "$as_me:$LINENO: checking for $ac_word" >&5
1441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1443 echo $ECHO_N "(cached) $ECHO_C" >&6
1444 else
1445 if test -n "$ac_ct_CC"; then
1446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1447 else
1448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1450 do
1451 IFS=$as_save_IFS
1452 test -z "$as_dir" && as_dir=.
1453 for ac_exec_ext in '' $ac_executable_extensions; do
1454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455 ac_cv_prog_ac_ct_CC="gcc"
1456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 break 2
1458 fi
1459 done
1460 done
1461
1462 fi
1463 fi
1464 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1465 if test -n "$ac_ct_CC"; then
1466 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1467 echo "${ECHO_T}$ac_ct_CC" >&6
1468 else
1469 echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1471 fi
1472
1473 CC=$ac_ct_CC
1474 else
1475 CC="$ac_cv_prog_CC"
1476 fi
1477
1478 if test -z "$CC"; then
1479 if test -n "$ac_tool_prefix"; then
1480 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1481 set dummy ${ac_tool_prefix}cc; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_CC+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487 if test -n "$CC"; then
1488 ac_cv_prog_CC="$CC" # Let the user override the test.
1489 else
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1492 do
1493 IFS=$as_save_IFS
1494 test -z "$as_dir" && as_dir=.
1495 for ac_exec_ext in '' $ac_executable_extensions; do
1496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497 ac_cv_prog_CC="${ac_tool_prefix}cc"
1498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 break 2
1500 fi
1501 done
1502 done
1503
1504 fi
1505 fi
1506 CC=$ac_cv_prog_CC
1507 if test -n "$CC"; then
1508 echo "$as_me:$LINENO: result: $CC" >&5
1509 echo "${ECHO_T}$CC" >&6
1510 else
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1513 fi
1514
1515 fi
1516 if test -z "$ac_cv_prog_CC"; then
1517 ac_ct_CC=$CC
1518 # Extract the first word of "cc", so it can be a program name with args.
1519 set dummy cc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 if test -n "$ac_ct_CC"; then
1526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1527 else
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1530 do
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_ac_ct_CC="cc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537 break 2
1538 fi
1539 done
1540 done
1541
1542 fi
1543 fi
1544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1545 if test -n "$ac_ct_CC"; then
1546 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1547 echo "${ECHO_T}$ac_ct_CC" >&6
1548 else
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1551 fi
1552
1553 CC=$ac_ct_CC
1554 else
1555 CC="$ac_cv_prog_CC"
1556 fi
1557
1558 fi
1559 if test -z "$CC"; then
1560 # Extract the first word of "cc", so it can be a program name with args.
1561 set dummy cc; ac_word=$2
1562 echo "$as_me:$LINENO: checking for $ac_word" >&5
1563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1564 if test "${ac_cv_prog_CC+set}" = set; then
1565 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567 if test -n "$CC"; then
1568 ac_cv_prog_CC="$CC" # Let the user override the test.
1569 else
1570 ac_prog_rejected=no
1571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 for as_dir in $PATH
1573 do
1574 IFS=$as_save_IFS
1575 test -z "$as_dir" && as_dir=.
1576 for ac_exec_ext in '' $ac_executable_extensions; do
1577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1578 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1579 ac_prog_rejected=yes
1580 continue
1581 fi
1582 ac_cv_prog_CC="cc"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1584 break 2
1585 fi
1586 done
1587 done
1588
1589 if test $ac_prog_rejected = yes; then
1590 # We found a bogon in the path, so make sure we never use it.
1591 set dummy $ac_cv_prog_CC
1592 shift
1593 if test $# != 0; then
1594 # We chose a different compiler from the bogus one.
1595 # However, it has the same basename, so the bogon will be chosen
1596 # first if we set CC to just the basename; use the full file name.
1597 shift
1598 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1599 fi
1600 fi
1601 fi
1602 fi
1603 CC=$ac_cv_prog_CC
1604 if test -n "$CC"; then
1605 echo "$as_me:$LINENO: result: $CC" >&5
1606 echo "${ECHO_T}$CC" >&6
1607 else
1608 echo "$as_me:$LINENO: result: no" >&5
1609 echo "${ECHO_T}no" >&6
1610 fi
1611
1612 fi
1613 if test -z "$CC"; then
1614 if test -n "$ac_tool_prefix"; then
1615 for ac_prog in cl
1616 do
1617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1619 echo "$as_me:$LINENO: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 else
1624 if test -n "$CC"; then
1625 ac_cv_prog_CC="$CC" # Let the user override the test.
1626 else
1627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628 for as_dir in $PATH
1629 do
1630 IFS=$as_save_IFS
1631 test -z "$as_dir" && as_dir=.
1632 for ac_exec_ext in '' $ac_executable_extensions; do
1633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 break 2
1637 fi
1638 done
1639 done
1640
1641 fi
1642 fi
1643 CC=$ac_cv_prog_CC
1644 if test -n "$CC"; then
1645 echo "$as_me:$LINENO: result: $CC" >&5
1646 echo "${ECHO_T}$CC" >&6
1647 else
1648 echo "$as_me:$LINENO: result: no" >&5
1649 echo "${ECHO_T}no" >&6
1650 fi
1651
1652 test -n "$CC" && break
1653 done
1654 fi
1655 if test -z "$CC"; then
1656 ac_ct_CC=$CC
1657 for ac_prog in cl
1658 do
1659 # Extract the first word of "$ac_prog", so it can be a program name with args.
1660 set dummy $ac_prog; ac_word=$2
1661 echo "$as_me:$LINENO: checking for $ac_word" >&5
1662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666 if test -n "$ac_ct_CC"; then
1667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1668 else
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1671 do
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 for ac_exec_ext in '' $ac_executable_extensions; do
1675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1676 ac_cv_prog_ac_ct_CC="$ac_prog"
1677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1678 break 2
1679 fi
1680 done
1681 done
1682
1683 fi
1684 fi
1685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1686 if test -n "$ac_ct_CC"; then
1687 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1688 echo "${ECHO_T}$ac_ct_CC" >&6
1689 else
1690 echo "$as_me:$LINENO: result: no" >&5
1691 echo "${ECHO_T}no" >&6
1692 fi
1693
1694 test -n "$ac_ct_CC" && break
1695 done
1696
1697 CC=$ac_ct_CC
1698 fi
1699
1700 fi
1701
1702
1703 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1704 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1705 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1706 See \`config.log' for more details." >&5
1707 echo "$as_me: error: no acceptable C compiler found in \$PATH
1708 See \`config.log' for more details." >&2;}
1709 { (exit 1); exit 1; }; }; }
1710
1711 # Provide some information about the compiler.
1712 echo "$as_me:$LINENO:" \
1713 "checking for C compiler version" >&5
1714 ac_compiler=`set X $ac_compile; echo $2`
1715 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1716 (eval $ac_compiler --version </dev/null >&5) 2>&5
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
1720 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1721 (eval $ac_compiler -v </dev/null >&5) 2>&5
1722 ac_status=$?
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1725 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1726 (eval $ac_compiler -V </dev/null >&5) 2>&5
1727 ac_status=$?
1728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1729 (exit $ac_status); }
1730
1731 cat >conftest.$ac_ext <<_ACEOF
1732 /* confdefs.h. */
1733 _ACEOF
1734 cat confdefs.h >>conftest.$ac_ext
1735 cat >>conftest.$ac_ext <<_ACEOF
1736 /* end confdefs.h. */
1737
1738 int
1739 main ()
1740 {
1741
1742 ;
1743 return 0;
1744 }
1745 _ACEOF
1746 ac_clean_files_save=$ac_clean_files
1747 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1748 # Try to create an executable without -o first, disregard a.out.
1749 # It will help us diagnose broken compilers, and finding out an intuition
1750 # of exeext.
1751 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1752 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1753 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1754 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1755 (eval $ac_link_default) 2>&5
1756 ac_status=$?
1757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1758 (exit $ac_status); }; then
1759 # Find the output, starting from the most likely. This scheme is
1760 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1761 # resort.
1762
1763 # Be careful to initialize this variable, since it used to be cached.
1764 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1765 ac_cv_exeext=
1766 # b.out is created by i960 compilers.
1767 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1768 do
1769 test -f "$ac_file" || continue
1770 case $ac_file in
1771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1772 ;;
1773 conftest.$ac_ext )
1774 # This is the source file.
1775 ;;
1776 [ab].out )
1777 # We found the default executable, but exeext='' is most
1778 # certainly right.
1779 break;;
1780 *.* )
1781 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1782 # FIXME: I believe we export ac_cv_exeext for Libtool,
1783 # but it would be cool to find out if it's true. Does anybody
1784 # maintain Libtool? --akim.
1785 export ac_cv_exeext
1786 break;;
1787 * )
1788 break;;
1789 esac
1790 done
1791 else
1792 echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1796 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1797 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1798 See \`config.log' for more details." >&5
1799 echo "$as_me: error: C compiler cannot create executables
1800 See \`config.log' for more details." >&2;}
1801 { (exit 77); exit 77; }; }; }
1802 fi
1803
1804 ac_exeext=$ac_cv_exeext
1805 echo "$as_me:$LINENO: result: $ac_file" >&5
1806 echo "${ECHO_T}$ac_file" >&6
1807
1808 # Check the compiler produces executables we can run. If not, either
1809 # the compiler is broken, or we cross compile.
1810 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1811 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1812 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1813 # If not cross compiling, check that we can run a simple program.
1814 if test "$cross_compiling" != yes; then
1815 if { ac_try='./$ac_file'
1816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1817 (eval $ac_try) 2>&5
1818 ac_status=$?
1819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1820 (exit $ac_status); }; }; then
1821 cross_compiling=no
1822 else
1823 if test "$cross_compiling" = maybe; then
1824 cross_compiling=yes
1825 else
1826 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1827 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1828 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1829 If you meant to cross compile, use \`--host'.
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: cannot run C compiled programs.
1832 If you meant to cross compile, use \`--host'.
1833 See \`config.log' for more details." >&2;}
1834 { (exit 1); exit 1; }; }; }
1835 fi
1836 fi
1837 fi
1838 echo "$as_me:$LINENO: result: yes" >&5
1839 echo "${ECHO_T}yes" >&6
1840
1841 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1842 ac_clean_files=$ac_clean_files_save
1843 # Check the compiler produces executables we can run. If not, either
1844 # the compiler is broken, or we cross compile.
1845 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1846 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1847 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1848 echo "${ECHO_T}$cross_compiling" >&6
1849
1850 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1851 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1853 (eval $ac_link) 2>&5
1854 ac_status=$?
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }; then
1857 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1858 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1859 # work properly (i.e., refer to `conftest.exe'), while it won't with
1860 # `rm'.
1861 for ac_file in conftest.exe conftest conftest.*; do
1862 test -f "$ac_file" || continue
1863 case $ac_file in
1864 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1865 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1866 export ac_cv_exeext
1867 break;;
1868 * ) break;;
1869 esac
1870 done
1871 else
1872 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1873 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1874 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1875 See \`config.log' for more details." >&5
1876 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1877 See \`config.log' for more details." >&2;}
1878 { (exit 1); exit 1; }; }; }
1879 fi
1880
1881 rm -f conftest$ac_cv_exeext
1882 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1883 echo "${ECHO_T}$ac_cv_exeext" >&6
1884
1885 rm -f conftest.$ac_ext
1886 EXEEXT=$ac_cv_exeext
1887 ac_exeext=$EXEEXT
1888 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1889 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1890 if test "${ac_cv_objext+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893 cat >conftest.$ac_ext <<_ACEOF
1894 /* confdefs.h. */
1895 _ACEOF
1896 cat confdefs.h >>conftest.$ac_ext
1897 cat >>conftest.$ac_ext <<_ACEOF
1898 /* end confdefs.h. */
1899
1900 int
1901 main ()
1902 {
1903
1904 ;
1905 return 0;
1906 }
1907 _ACEOF
1908 rm -f conftest.o conftest.obj
1909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1910 (eval $ac_compile) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }; then
1914 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1915 case $ac_file in
1916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1917 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1918 break;;
1919 esac
1920 done
1921 else
1922 echo "$as_me: failed program was:" >&5
1923 sed 's/^/| /' conftest.$ac_ext >&5
1924
1925 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1926 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1927 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1928 See \`config.log' for more details." >&5
1929 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1930 See \`config.log' for more details." >&2;}
1931 { (exit 1); exit 1; }; }; }
1932 fi
1933
1934 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1935 fi
1936 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1937 echo "${ECHO_T}$ac_cv_objext" >&6
1938 OBJEXT=$ac_cv_objext
1939 ac_objext=$OBJEXT
1940 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1941 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1942 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944 else
1945 cat >conftest.$ac_ext <<_ACEOF
1946 /* confdefs.h. */
1947 _ACEOF
1948 cat confdefs.h >>conftest.$ac_ext
1949 cat >>conftest.$ac_ext <<_ACEOF
1950 /* end confdefs.h. */
1951
1952 int
1953 main ()
1954 {
1955 #ifndef __GNUC__
1956 choke me
1957 #endif
1958
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 rm -f conftest.$ac_objext
1964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1965 (eval $ac_compile) 2>conftest.er1
1966 ac_status=$?
1967 grep -v '^ *+' conftest.er1 >conftest.err
1968 rm -f conftest.er1
1969 cat conftest.err >&5
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); } &&
1972 { ac_try='test -z "$ac_c_werror_flag"
1973 || test ! -s conftest.err'
1974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1975 (eval $ac_try) 2>&5
1976 ac_status=$?
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978 (exit $ac_status); }; } &&
1979 { ac_try='test -s conftest.$ac_objext'
1980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1981 (eval $ac_try) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; }; then
1985 ac_compiler_gnu=yes
1986 else
1987 echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_compiler_gnu=no
1991 fi
1992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1993 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1994
1995 fi
1996 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1997 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1998 GCC=`test $ac_compiler_gnu = yes && echo yes`
1999 ac_test_CFLAGS=${CFLAGS+set}
2000 ac_save_CFLAGS=$CFLAGS
2001 CFLAGS="-g"
2002 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2003 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2004 if test "${ac_cv_prog_cc_g+set}" = set; then
2005 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 else
2007 cat >conftest.$ac_ext <<_ACEOF
2008 /* confdefs.h. */
2009 _ACEOF
2010 cat confdefs.h >>conftest.$ac_ext
2011 cat >>conftest.$ac_ext <<_ACEOF
2012 /* end confdefs.h. */
2013
2014 int
2015 main ()
2016 {
2017
2018 ;
2019 return 0;
2020 }
2021 _ACEOF
2022 rm -f conftest.$ac_objext
2023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2024 (eval $ac_compile) 2>conftest.er1
2025 ac_status=$?
2026 grep -v '^ *+' conftest.er1 >conftest.err
2027 rm -f conftest.er1
2028 cat conftest.err >&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); } &&
2031 { ac_try='test -z "$ac_c_werror_flag"
2032 || test ! -s conftest.err'
2033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2034 (eval $ac_try) 2>&5
2035 ac_status=$?
2036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2037 (exit $ac_status); }; } &&
2038 { ac_try='test -s conftest.$ac_objext'
2039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2040 (eval $ac_try) 2>&5
2041 ac_status=$?
2042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043 (exit $ac_status); }; }; then
2044 ac_cv_prog_cc_g=yes
2045 else
2046 echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2048
2049 ac_cv_prog_cc_g=no
2050 fi
2051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2055 if test "$ac_test_CFLAGS" = set; then
2056 CFLAGS=$ac_save_CFLAGS
2057 elif test $ac_cv_prog_cc_g = yes; then
2058 if test "$GCC" = yes; then
2059 CFLAGS="-g -O2"
2060 else
2061 CFLAGS="-g"
2062 fi
2063 else
2064 if test "$GCC" = yes; then
2065 CFLAGS="-O2"
2066 else
2067 CFLAGS=
2068 fi
2069 fi
2070 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2071 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2072 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075 ac_cv_prog_cc_stdc=no
2076 ac_save_CC=$CC
2077 cat >conftest.$ac_ext <<_ACEOF
2078 /* confdefs.h. */
2079 _ACEOF
2080 cat confdefs.h >>conftest.$ac_ext
2081 cat >>conftest.$ac_ext <<_ACEOF
2082 /* end confdefs.h. */
2083 #include <stdarg.h>
2084 #include <stdio.h>
2085 #include <sys/types.h>
2086 #include <sys/stat.h>
2087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2088 struct buf { int x; };
2089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2090 static char *e (p, i)
2091 char **p;
2092 int i;
2093 {
2094 return p[i];
2095 }
2096 static char *f (char * (*g) (char **, int), char **p, ...)
2097 {
2098 char *s;
2099 va_list v;
2100 va_start (v,p);
2101 s = g (p, va_arg (v,int));
2102 va_end (v);
2103 return s;
2104 }
2105
2106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2107 function prototypes and stuff, but not '\xHH' hex character constants.
2108 These don't provoke an error unfortunately, instead are silently treated
2109 as 'x'. The following induces an error, until -std1 is added to get
2110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2111 array size at least. It's necessary to write '\x00'==0 to get something
2112 that's true only with -std1. */
2113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2114
2115 int test (int i, double x);
2116 struct s1 {int (*f) (int a);};
2117 struct s2 {int (*f) (double a);};
2118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2119 int argc;
2120 char **argv;
2121 int
2122 main ()
2123 {
2124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2125 ;
2126 return 0;
2127 }
2128 _ACEOF
2129 # Don't try gcc -ansi; that turns off useful extensions and
2130 # breaks some systems' header files.
2131 # AIX -qlanglvl=ansi
2132 # Ultrix and OSF/1 -std1
2133 # HP-UX 10.20 and later -Ae
2134 # HP-UX older versions -Aa -D_HPUX_SOURCE
2135 # SVR4 -Xc -D__EXTENSIONS__
2136 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2137 do
2138 CC="$ac_save_CC $ac_arg"
2139 rm -f conftest.$ac_objext
2140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2141 (eval $ac_compile) 2>conftest.er1
2142 ac_status=$?
2143 grep -v '^ *+' conftest.er1 >conftest.err
2144 rm -f conftest.er1
2145 cat conftest.err >&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); } &&
2148 { ac_try='test -z "$ac_c_werror_flag"
2149 || test ! -s conftest.err'
2150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 (eval $ac_try) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; } &&
2155 { ac_try='test -s conftest.$ac_objext'
2156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 (eval $ac_try) 2>&5
2158 ac_status=$?
2159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160 (exit $ac_status); }; }; then
2161 ac_cv_prog_cc_stdc=$ac_arg
2162 break
2163 else
2164 echo "$as_me: failed program was:" >&5
2165 sed 's/^/| /' conftest.$ac_ext >&5
2166
2167 fi
2168 rm -f conftest.err conftest.$ac_objext
2169 done
2170 rm -f conftest.$ac_ext conftest.$ac_objext
2171 CC=$ac_save_CC
2172
2173 fi
2174
2175 case "x$ac_cv_prog_cc_stdc" in
2176 x|xno)
2177 echo "$as_me:$LINENO: result: none needed" >&5
2178 echo "${ECHO_T}none needed" >&6 ;;
2179 *)
2180 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2181 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2182 CC="$CC $ac_cv_prog_cc_stdc" ;;
2183 esac
2184
2185 # Some people use a C++ compiler to compile C. Since we use `exit',
2186 # in C++ we need to declare it. In case someone uses the same compiler
2187 # for both compiling C and C++ we need to have the C++ compiler decide
2188 # the declaration of exit, since it's the most demanding environment.
2189 cat >conftest.$ac_ext <<_ACEOF
2190 #ifndef __cplusplus
2191 choke me
2192 #endif
2193 _ACEOF
2194 rm -f conftest.$ac_objext
2195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196 (eval $ac_compile) 2>conftest.er1
2197 ac_status=$?
2198 grep -v '^ *+' conftest.er1 >conftest.err
2199 rm -f conftest.er1
2200 cat conftest.err >&5
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); } &&
2203 { ac_try='test -z "$ac_c_werror_flag"
2204 || test ! -s conftest.err'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 (eval $ac_try) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; } &&
2210 { ac_try='test -s conftest.$ac_objext'
2211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212 (eval $ac_try) 2>&5
2213 ac_status=$?
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); }; }; then
2216 for ac_declaration in \
2217 '' \
2218 'extern "C" void std::exit (int) throw (); using std::exit;' \
2219 'extern "C" void std::exit (int); using std::exit;' \
2220 'extern "C" void exit (int) throw ();' \
2221 'extern "C" void exit (int);' \
2222 'void exit (int);'
2223 do
2224 cat >conftest.$ac_ext <<_ACEOF
2225 /* confdefs.h. */
2226 _ACEOF
2227 cat confdefs.h >>conftest.$ac_ext
2228 cat >>conftest.$ac_ext <<_ACEOF
2229 /* end confdefs.h. */
2230 $ac_declaration
2231 #include <stdlib.h>
2232 int
2233 main ()
2234 {
2235 exit (42);
2236 ;
2237 return 0;
2238 }
2239 _ACEOF
2240 rm -f conftest.$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>conftest.er1
2243 ac_status=$?
2244 grep -v '^ *+' conftest.er1 >conftest.err
2245 rm -f conftest.er1
2246 cat conftest.err >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); } &&
2249 { ac_try='test -z "$ac_c_werror_flag"
2250 || test ! -s conftest.err'
2251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 (eval $ac_try) 2>&5
2253 ac_status=$?
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); }; } &&
2256 { ac_try='test -s conftest.$ac_objext'
2257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2258 (eval $ac_try) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }; }; then
2262 :
2263 else
2264 echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2266
2267 continue
2268 fi
2269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2270 cat >conftest.$ac_ext <<_ACEOF
2271 /* confdefs.h. */
2272 _ACEOF
2273 cat confdefs.h >>conftest.$ac_ext
2274 cat >>conftest.$ac_ext <<_ACEOF
2275 /* end confdefs.h. */
2276 $ac_declaration
2277 int
2278 main ()
2279 {
2280 exit (42);
2281 ;
2282 return 0;
2283 }
2284 _ACEOF
2285 rm -f conftest.$ac_objext
2286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2287 (eval $ac_compile) 2>conftest.er1
2288 ac_status=$?
2289 grep -v '^ *+' conftest.er1 >conftest.err
2290 rm -f conftest.er1
2291 cat conftest.err >&5
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); } &&
2294 { ac_try='test -z "$ac_c_werror_flag"
2295 || test ! -s conftest.err'
2296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 (eval $ac_try) 2>&5
2298 ac_status=$?
2299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300 (exit $ac_status); }; } &&
2301 { ac_try='test -s conftest.$ac_objext'
2302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 (eval $ac_try) 2>&5
2304 ac_status=$?
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); }; }; then
2307 break
2308 else
2309 echo "$as_me: failed program was:" >&5
2310 sed 's/^/| /' conftest.$ac_ext >&5
2311
2312 fi
2313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2314 done
2315 rm -f conftest*
2316 if test -n "$ac_declaration"; then
2317 echo '#ifdef __cplusplus' >>confdefs.h
2318 echo $ac_declaration >>confdefs.h
2319 echo '#endif' >>confdefs.h
2320 fi
2321
2322 else
2323 echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325
2326 fi
2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328 ac_ext=c
2329 ac_cpp='$CPP $CPPFLAGS'
2330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2333
2334
2335 cat >>confdefs.h <<\_ACEOF
2336 #define _GNU_SOURCE 1
2337 _ACEOF
2338
2339
2340
2341 ac_ext=c
2342 ac_cpp='$CPP $CPPFLAGS'
2343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2346 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2347 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2348 # On Suns, sometimes $CPP names a directory.
2349 if test -n "$CPP" && test -d "$CPP"; then
2350 CPP=
2351 fi
2352 if test -z "$CPP"; then
2353 if test "${ac_cv_prog_CPP+set}" = set; then
2354 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356 # Double quotes because CPP needs to be expanded
2357 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2358 do
2359 ac_preproc_ok=false
2360 for ac_c_preproc_warn_flag in '' yes
2361 do
2362 # Use a header file that comes with gcc, so configuring glibc
2363 # with a fresh cross-compiler works.
2364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2365 # <limits.h> exists even on freestanding compilers.
2366 # On the NeXT, cc -E runs the code through the compiler's parser,
2367 # not just through cpp. "Syntax error" is here to catch this case.
2368 cat >conftest.$ac_ext <<_ACEOF
2369 /* confdefs.h. */
2370 _ACEOF
2371 cat confdefs.h >>conftest.$ac_ext
2372 cat >>conftest.$ac_ext <<_ACEOF
2373 /* end confdefs.h. */
2374 #ifdef __STDC__
2375 # include <limits.h>
2376 #else
2377 # include <assert.h>
2378 #endif
2379 Syntax error
2380 _ACEOF
2381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383 ac_status=$?
2384 grep -v '^ *+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } >/dev/null; then
2389 if test -s conftest.err; then
2390 ac_cpp_err=$ac_c_preproc_warn_flag
2391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2392 else
2393 ac_cpp_err=
2394 fi
2395 else
2396 ac_cpp_err=yes
2397 fi
2398 if test -z "$ac_cpp_err"; then
2399 :
2400 else
2401 echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 # Broken: fails on valid input.
2405 continue
2406 fi
2407 rm -f conftest.err conftest.$ac_ext
2408
2409 # OK, works on sane cases. Now check whether non-existent headers
2410 # can be detected and how.
2411 cat >conftest.$ac_ext <<_ACEOF
2412 /* confdefs.h. */
2413 _ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h. */
2417 #include <ac_nonexistent.h>
2418 _ACEOF
2419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2421 ac_status=$?
2422 grep -v '^ *+' conftest.er1 >conftest.err
2423 rm -f conftest.er1
2424 cat conftest.err >&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); } >/dev/null; then
2427 if test -s conftest.err; then
2428 ac_cpp_err=$ac_c_preproc_warn_flag
2429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2430 else
2431 ac_cpp_err=
2432 fi
2433 else
2434 ac_cpp_err=yes
2435 fi
2436 if test -z "$ac_cpp_err"; then
2437 # Broken: success on invalid input.
2438 continue
2439 else
2440 echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 # Passes both tests.
2444 ac_preproc_ok=:
2445 break
2446 fi
2447 rm -f conftest.err conftest.$ac_ext
2448
2449 done
2450 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2451 rm -f conftest.err conftest.$ac_ext
2452 if $ac_preproc_ok; then
2453 break
2454 fi
2455
2456 done
2457 ac_cv_prog_CPP=$CPP
2458
2459 fi
2460 CPP=$ac_cv_prog_CPP
2461 else
2462 ac_cv_prog_CPP=$CPP
2463 fi
2464 echo "$as_me:$LINENO: result: $CPP" >&5
2465 echo "${ECHO_T}$CPP" >&6
2466 ac_preproc_ok=false
2467 for ac_c_preproc_warn_flag in '' yes
2468 do
2469 # Use a header file that comes with gcc, so configuring glibc
2470 # with a fresh cross-compiler works.
2471 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2472 # <limits.h> exists even on freestanding compilers.
2473 # On the NeXT, cc -E runs the code through the compiler's parser,
2474 # not just through cpp. "Syntax error" is here to catch this case.
2475 cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h. */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h. */
2481 #ifdef __STDC__
2482 # include <limits.h>
2483 #else
2484 # include <assert.h>
2485 #endif
2486 Syntax error
2487 _ACEOF
2488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490 ac_status=$?
2491 grep -v '^ *+' conftest.er1 >conftest.err
2492 rm -f conftest.er1
2493 cat conftest.err >&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); } >/dev/null; then
2496 if test -s conftest.err; then
2497 ac_cpp_err=$ac_c_preproc_warn_flag
2498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2499 else
2500 ac_cpp_err=
2501 fi
2502 else
2503 ac_cpp_err=yes
2504 fi
2505 if test -z "$ac_cpp_err"; then
2506 :
2507 else
2508 echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 # Broken: fails on valid input.
2512 continue
2513 fi
2514 rm -f conftest.err conftest.$ac_ext
2515
2516 # OK, works on sane cases. Now check whether non-existent headers
2517 # can be detected and how.
2518 cat >conftest.$ac_ext <<_ACEOF
2519 /* confdefs.h. */
2520 _ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h. */
2524 #include <ac_nonexistent.h>
2525 _ACEOF
2526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2527 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 ac_status=$?
2529 grep -v '^ *+' conftest.er1 >conftest.err
2530 rm -f conftest.er1
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } >/dev/null; then
2534 if test -s conftest.err; then
2535 ac_cpp_err=$ac_c_preproc_warn_flag
2536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2537 else
2538 ac_cpp_err=
2539 fi
2540 else
2541 ac_cpp_err=yes
2542 fi
2543 if test -z "$ac_cpp_err"; then
2544 # Broken: success on invalid input.
2545 continue
2546 else
2547 echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550 # Passes both tests.
2551 ac_preproc_ok=:
2552 break
2553 fi
2554 rm -f conftest.err conftest.$ac_ext
2555
2556 done
2557 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2558 rm -f conftest.err conftest.$ac_ext
2559 if $ac_preproc_ok; then
2560 :
2561 else
2562 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2563 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2564 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2567 See \`config.log' for more details." >&2;}
2568 { (exit 1); exit 1; }; }; }
2569 fi
2570
2571 ac_ext=c
2572 ac_cpp='$CPP $CPPFLAGS'
2573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2576
2577
2578 echo "$as_me:$LINENO: checking for egrep" >&5
2579 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2580 if test "${ac_cv_prog_egrep+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2582 else
2583 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2584 then ac_cv_prog_egrep='grep -E'
2585 else ac_cv_prog_egrep='egrep'
2586 fi
2587 fi
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2589 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2590 EGREP=$ac_cv_prog_egrep
2591
2592
2593
2594 echo "$as_me:$LINENO: checking for AIX" >&5
2595 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2596 cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h. */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2602 #ifdef _AIX
2603 yes
2604 #endif
2605
2606 _ACEOF
2607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2608 $EGREP "yes" >/dev/null 2>&1; then
2609 echo "$as_me:$LINENO: result: yes" >&5
2610 echo "${ECHO_T}yes" >&6
2611 cat >>confdefs.h <<\_ACEOF
2612 #define _ALL_SOURCE 1
2613 _ACEOF
2614
2615 else
2616 echo "$as_me:$LINENO: result: no" >&5
2617 echo "${ECHO_T}no" >&6
2618 fi
2619 rm -f conftest*
2620
2621
2622 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2623 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2624 if test "${ac_cv_search_strerror+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 else
2627 ac_func_search_save_LIBS=$LIBS
2628 ac_cv_search_strerror=no
2629 cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h. */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2635
2636 /* Override any gcc2 internal prototype to avoid an error. */
2637 #ifdef __cplusplus
2638 extern "C"
2639 #endif
2640 /* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
2642 char strerror ();
2643 int
2644 main ()
2645 {
2646 strerror ();
2647 ;
2648 return 0;
2649 }
2650 _ACEOF
2651 rm -f conftest.$ac_objext conftest$ac_exeext
2652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2653 (eval $ac_link) 2>conftest.er1
2654 ac_status=$?
2655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try='test -z "$ac_c_werror_flag"
2661 || test ! -s conftest.err'
2662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); }; } &&
2667 { ac_try='test -s conftest$ac_exeext'
2668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 (eval $ac_try) 2>&5
2670 ac_status=$?
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); }; }; then
2673 ac_cv_search_strerror="none required"
2674 else
2675 echo "$as_me: failed program was:" >&5
2676 sed 's/^/| /' conftest.$ac_ext >&5
2677
2678 fi
2679 rm -f conftest.err conftest.$ac_objext \
2680 conftest$ac_exeext conftest.$ac_ext
2681 if test "$ac_cv_search_strerror" = no; then
2682 for ac_lib in cposix; do
2683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2684 cat >conftest.$ac_ext <<_ACEOF
2685 /* confdefs.h. */
2686 _ACEOF
2687 cat confdefs.h >>conftest.$ac_ext
2688 cat >>conftest.$ac_ext <<_ACEOF
2689 /* end confdefs.h. */
2690
2691 /* Override any gcc2 internal prototype to avoid an error. */
2692 #ifdef __cplusplus
2693 extern "C"
2694 #endif
2695 /* We use char because int might match the return type of a gcc2
2696 builtin and then its argument prototype would still apply. */
2697 char strerror ();
2698 int
2699 main ()
2700 {
2701 strerror ();
2702 ;
2703 return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext conftest$ac_exeext
2707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2708 (eval $ac_link) 2>conftest.er1
2709 ac_status=$?
2710 grep -v '^ *+' conftest.er1 >conftest.err
2711 rm -f conftest.er1
2712 cat conftest.err >&5
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); } &&
2715 { ac_try='test -z "$ac_c_werror_flag"
2716 || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 (eval $ac_try) 2>&5
2719 ac_status=$?
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest$ac_exeext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724 (eval $ac_try) 2>&5
2725 ac_status=$?
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2728 ac_cv_search_strerror="-l$ac_lib"
2729 break
2730 else
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734 fi
2735 rm -f conftest.err conftest.$ac_objext \
2736 conftest$ac_exeext conftest.$ac_ext
2737 done
2738 fi
2739 LIBS=$ac_func_search_save_LIBS
2740 fi
2741 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2742 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2743 if test "$ac_cv_search_strerror" != no; then
2744 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2745
2746 fi
2747
2748 if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2750 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2751 echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2753 if test "${ac_cv_prog_RANLIB+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756 if test -n "$RANLIB"; then
2757 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770 done
2771 done
2772
2773 fi
2774 fi
2775 RANLIB=$ac_cv_prog_RANLIB
2776 if test -n "$RANLIB"; then
2777 echo "$as_me:$LINENO: result: $RANLIB" >&5
2778 echo "${ECHO_T}$RANLIB" >&6
2779 else
2780 echo "$as_me:$LINENO: result: no" >&5
2781 echo "${ECHO_T}no" >&6
2782 fi
2783
2784 fi
2785 if test -z "$ac_cv_prog_RANLIB"; then
2786 ac_ct_RANLIB=$RANLIB
2787 # Extract the first word of "ranlib", so it can be a program name with args.
2788 set dummy ranlib; ac_word=$2
2789 echo "$as_me:$LINENO: checking for $ac_word" >&5
2790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2791 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2792 echo $ECHO_N "(cached) $ECHO_C" >&6
2793 else
2794 if test -n "$ac_ct_RANLIB"; then
2795 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2796 else
2797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2798 for as_dir in $PATH
2799 do
2800 IFS=$as_save_IFS
2801 test -z "$as_dir" && as_dir=.
2802 for ac_exec_ext in '' $ac_executable_extensions; do
2803 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2804 ac_cv_prog_ac_ct_RANLIB="ranlib"
2805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 break 2
2807 fi
2808 done
2809 done
2810
2811 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2812 fi
2813 fi
2814 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2815 if test -n "$ac_ct_RANLIB"; then
2816 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2817 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2818 else
2819 echo "$as_me:$LINENO: result: no" >&5
2820 echo "${ECHO_T}no" >&6
2821 fi
2822
2823 RANLIB=$ac_ct_RANLIB
2824 else
2825 RANLIB="$ac_cv_prog_RANLIB"
2826 fi
2827
2828 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2829 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2830 if test "${ac_cv_header_stdc+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h. */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2839 #include <stdlib.h>
2840 #include <stdarg.h>
2841 #include <string.h>
2842 #include <float.h>
2843
2844 int
2845 main ()
2846 {
2847
2848 ;
2849 return 0;
2850 }
2851 _ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854 (eval $ac_compile) 2>conftest.er1
2855 ac_status=$?
2856 grep -v '^ *+' conftest.er1 >conftest.err
2857 rm -f conftest.er1
2858 cat conftest.err >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 { ac_try='test -z "$ac_c_werror_flag"
2862 || test ! -s conftest.err'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 (eval $ac_try) 2>&5
2865 ac_status=$?
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; } &&
2868 { ac_try='test -s conftest.$ac_objext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 ac_cv_header_stdc=yes
2875 else
2876 echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 ac_cv_header_stdc=no
2880 fi
2881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2882
2883 if test $ac_cv_header_stdc = yes; then
2884 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2885 cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h. */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2891 #include <string.h>
2892
2893 _ACEOF
2894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2895 $EGREP "memchr" >/dev/null 2>&1; then
2896 :
2897 else
2898 ac_cv_header_stdc=no
2899 fi
2900 rm -f conftest*
2901
2902 fi
2903
2904 if test $ac_cv_header_stdc = yes; then
2905 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2906 cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h. */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2912 #include <stdlib.h>
2913
2914 _ACEOF
2915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916 $EGREP "free" >/dev/null 2>&1; then
2917 :
2918 else
2919 ac_cv_header_stdc=no
2920 fi
2921 rm -f conftest*
2922
2923 fi
2924
2925 if test $ac_cv_header_stdc = yes; then
2926 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2927 if test "$cross_compiling" = yes; then
2928 :
2929 else
2930 cat >conftest.$ac_ext <<_ACEOF
2931 /* confdefs.h. */
2932 _ACEOF
2933 cat confdefs.h >>conftest.$ac_ext
2934 cat >>conftest.$ac_ext <<_ACEOF
2935 /* end confdefs.h. */
2936 #include <ctype.h>
2937 #if ((' ' & 0x0FF) == 0x020)
2938 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2939 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2940 #else
2941 # define ISLOWER(c) \
2942 (('a' <= (c) && (c) <= 'i') \
2943 || ('j' <= (c) && (c) <= 'r') \
2944 || ('s' <= (c) && (c) <= 'z'))
2945 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2946 #endif
2947
2948 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2949 int
2950 main ()
2951 {
2952 int i;
2953 for (i = 0; i < 256; i++)
2954 if (XOR (islower (i), ISLOWER (i))
2955 || toupper (i) != TOUPPER (i))
2956 exit(2);
2957 exit (0);
2958 }
2959 _ACEOF
2960 rm -f conftest$ac_exeext
2961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2962 (eval $ac_link) 2>&5
2963 ac_status=$?
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 (eval $ac_try) 2>&5
2968 ac_status=$?
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2971 :
2972 else
2973 echo "$as_me: program exited with status $ac_status" >&5
2974 echo "$as_me: failed program was:" >&5
2975 sed 's/^/| /' conftest.$ac_ext >&5
2976
2977 ( exit $ac_status )
2978 ac_cv_header_stdc=no
2979 fi
2980 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2981 fi
2982 fi
2983 fi
2984 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2985 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2986 if test $ac_cv_header_stdc = yes; then
2987
2988 cat >>confdefs.h <<\_ACEOF
2989 #define STDC_HEADERS 1
2990 _ACEOF
2991
2992 fi
2993
2994 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3005 inttypes.h stdint.h unistd.h
3006 do
3007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3008 echo "$as_me:$LINENO: checking for $ac_header" >&5
3009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3012 else
3013 cat >conftest.$ac_ext <<_ACEOF
3014 /* confdefs.h. */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3019 $ac_includes_default
3020
3021 #include <$ac_header>
3022 _ACEOF
3023 rm -f conftest.$ac_objext
3024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3025 (eval $ac_compile) 2>conftest.er1
3026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -z "$ac_c_werror_flag"
3033 || test ! -s conftest.err'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 (eval $ac_try) 2>&5
3036 ac_status=$?
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 (eval $ac_try) 2>&5
3042 ac_status=$?
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; }; then
3045 eval "$as_ac_Header=yes"
3046 else
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3049
3050 eval "$as_ac_Header=no"
3051 fi
3052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3053 fi
3054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3057 cat >>confdefs.h <<_ACEOF
3058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3059 _ACEOF
3060
3061 fi
3062
3063 done
3064
3065
3066
3067 if test "${ac_cv_header_minix_config_h+set}" = set; then
3068 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3069 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3070 if test "${ac_cv_header_minix_config_h+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 fi
3073 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3074 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3075 else
3076 # Is the header compilable?
3077 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3078 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3079 cat >conftest.$ac_ext <<_ACEOF
3080 /* confdefs.h. */
3081 _ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3085 $ac_includes_default
3086 #include <minix/config.h>
3087 _ACEOF
3088 rm -f conftest.$ac_objext
3089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3090 (eval $ac_compile) 2>conftest.er1
3091 ac_status=$?
3092 grep -v '^ *+' conftest.er1 >conftest.err
3093 rm -f conftest.er1
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } &&
3097 { ac_try='test -z "$ac_c_werror_flag"
3098 || test ! -s conftest.err'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3100 (eval $ac_try) 2>&5
3101 ac_status=$?
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; } &&
3104 { ac_try='test -s conftest.$ac_objext'
3105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106 (eval $ac_try) 2>&5
3107 ac_status=$?
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); }; }; then
3110 ac_header_compiler=yes
3111 else
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3114
3115 ac_header_compiler=no
3116 fi
3117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3118 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3119 echo "${ECHO_T}$ac_header_compiler" >&6
3120
3121 # Is the header present?
3122 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3123 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3124 cat >conftest.$ac_ext <<_ACEOF
3125 /* confdefs.h. */
3126 _ACEOF
3127 cat confdefs.h >>conftest.$ac_ext
3128 cat >>conftest.$ac_ext <<_ACEOF
3129 /* end confdefs.h. */
3130 #include <minix/config.h>
3131 _ACEOF
3132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null; then
3140 if test -s conftest.err; then
3141 ac_cpp_err=$ac_c_preproc_warn_flag
3142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3143 else
3144 ac_cpp_err=
3145 fi
3146 else
3147 ac_cpp_err=yes
3148 fi
3149 if test -z "$ac_cpp_err"; then
3150 ac_header_preproc=yes
3151 else
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155 ac_header_preproc=no
3156 fi
3157 rm -f conftest.err conftest.$ac_ext
3158 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3159 echo "${ECHO_T}$ac_header_preproc" >&6
3160
3161 # So? What about this header?
3162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3163 yes:no: )
3164 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3165 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3166 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3167 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3168 ac_header_preproc=yes
3169 ;;
3170 no:yes:* )
3171 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3172 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3173 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3174 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3175 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3176 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3177 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3178 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3179 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3180 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3181 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3182 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3183 (
3184 cat <<\_ASBOX
3185 ## ------------------------------------------ ##
3186 ## Report this to the AC_PACKAGE_NAME lists. ##
3187 ## ------------------------------------------ ##
3188 _ASBOX
3189 ) |
3190 sed "s/^/$as_me: WARNING: /" >&2
3191 ;;
3192 esac
3193 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3194 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3195 if test "${ac_cv_header_minix_config_h+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198 ac_cv_header_minix_config_h=$ac_header_preproc
3199 fi
3200 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3201 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3202
3203 fi
3204 if test $ac_cv_header_minix_config_h = yes; then
3205 MINIX=yes
3206 else
3207 MINIX=
3208 fi
3209
3210
3211 if test "$MINIX" = yes; then
3212
3213 cat >>confdefs.h <<\_ACEOF
3214 #define _POSIX_SOURCE 1
3215 _ACEOF
3216
3217
3218 cat >>confdefs.h <<\_ACEOF
3219 #define _POSIX_1_SOURCE 2
3220 _ACEOF
3221
3222
3223 cat >>confdefs.h <<\_ACEOF
3224 #define _MINIX 1
3225 _ACEOF
3226
3227 fi
3228
3229
3230
3231 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3232 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3233 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236 cat >conftest.$ac_ext <<_ACEOF
3237 /* confdefs.h. */
3238 _ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3242
3243 # define __EXTENSIONS__ 1
3244 $ac_includes_default
3245 int
3246 main ()
3247 {
3248
3249 ;
3250 return 0;
3251 }
3252 _ACEOF
3253 rm -f conftest.$ac_objext
3254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_cv_safe_to_define___extensions__=yes
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 ac_cv_safe_to_define___extensions__=no
3281 fi
3282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283 fi
3284 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3285 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3286 test $ac_cv_safe_to_define___extensions__ = yes &&
3287 cat >>confdefs.h <<\_ACEOF
3288 #define __EXTENSIONS__ 1
3289 _ACEOF
3290
3291 cat >>confdefs.h <<\_ACEOF
3292 #define _ALL_SOURCE 1
3293 _ACEOF
3294
3295 cat >>confdefs.h <<\_ACEOF
3296 #define _GNU_SOURCE 1
3297 _ACEOF
3298
3299 cat >>confdefs.h <<\_ACEOF
3300 #define _POSIX_PTHREAD_SEMANTICS 1
3301 _ACEOF
3302
3303 cat >>confdefs.h <<\_ACEOF
3304 #define _TANDEM_SOURCE 1
3305 _ACEOF
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3317 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3318 if test "${am_cv_prog_cc_stdc+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 am_cv_prog_cc_stdc=no
3322 ac_save_CC="$CC"
3323 # Don't try gcc -ansi; that turns off useful extensions and
3324 # breaks some systems' header files.
3325 # AIX -qlanglvl=ansi
3326 # Ultrix and OSF/1 -std1
3327 # HP-UX 10.20 and later -Ae
3328 # HP-UX older versions -Aa -D_HPUX_SOURCE
3329 # SVR4 -Xc -D__EXTENSIONS__
3330 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3331 do
3332 CC="$ac_save_CC $ac_arg"
3333 cat >conftest.$ac_ext <<_ACEOF
3334 /* confdefs.h. */
3335 _ACEOF
3336 cat confdefs.h >>conftest.$ac_ext
3337 cat >>conftest.$ac_ext <<_ACEOF
3338 /* end confdefs.h. */
3339 #include <stdarg.h>
3340 #include <stdio.h>
3341 #include <sys/types.h>
3342 #include <sys/stat.h>
3343 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3344 struct buf { int x; };
3345 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3346 static char *e (p, i)
3347 char **p;
3348 int i;
3349 {
3350 return p[i];
3351 }
3352 static char *f (char * (*g) (char **, int), char **p, ...)
3353 {
3354 char *s;
3355 va_list v;
3356 va_start (v,p);
3357 s = g (p, va_arg (v,int));
3358 va_end (v);
3359 return s;
3360 }
3361 int test (int i, double x);
3362 struct s1 {int (*f) (int a);};
3363 struct s2 {int (*f) (double a);};
3364 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3365 int argc;
3366 char **argv;
3367
3368 int
3369 main ()
3370 {
3371
3372 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 rm -f conftest.$ac_objext
3379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3380 (eval $ac_compile) 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } &&
3387 { ac_try='test -z "$ac_c_werror_flag"
3388 || test ! -s conftest.err'
3389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390 (eval $ac_try) 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; } &&
3394 { ac_try='test -s conftest.$ac_objext'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; }; then
3400 am_cv_prog_cc_stdc="$ac_arg"; break
3401 else
3402 echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405 fi
3406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407 done
3408 CC="$ac_save_CC"
3409
3410 fi
3411
3412 if test -z "$am_cv_prog_cc_stdc"; then
3413 echo "$as_me:$LINENO: result: none needed" >&5
3414 echo "${ECHO_T}none needed" >&6
3415 else
3416 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3417 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3418 fi
3419 case "x$am_cv_prog_cc_stdc" in
3420 x|xno) ;;
3421 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3422 esac
3423
3424
3425 ac_aux_dir=
3426 for ac_dir in .. $srcdir/..; do
3427 if test -f $ac_dir/install-sh; then
3428 ac_aux_dir=$ac_dir
3429 ac_install_sh="$ac_aux_dir/install-sh -c"
3430 break
3431 elif test -f $ac_dir/install.sh; then
3432 ac_aux_dir=$ac_dir
3433 ac_install_sh="$ac_aux_dir/install.sh -c"
3434 break
3435 elif test -f $ac_dir/shtool; then
3436 ac_aux_dir=$ac_dir
3437 ac_install_sh="$ac_aux_dir/shtool install -c"
3438 break
3439 fi
3440 done
3441 if test -z "$ac_aux_dir"; then
3442 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3443 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3444 { (exit 1); exit 1; }; }
3445 fi
3446 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3447 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3448 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3449
3450 # Make sure we can run config.sub.
3451 $ac_config_sub sun4 >/dev/null 2>&1 ||
3452 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3453 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3454 { (exit 1); exit 1; }; }
3455
3456 echo "$as_me:$LINENO: checking build system type" >&5
3457 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3458 if test "${ac_cv_build+set}" = set; then
3459 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461 ac_cv_build_alias=$build_alias
3462 test -z "$ac_cv_build_alias" &&
3463 ac_cv_build_alias=`$ac_config_guess`
3464 test -z "$ac_cv_build_alias" &&
3465 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3466 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3467 { (exit 1); exit 1; }; }
3468 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3470 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3471 { (exit 1); exit 1; }; }
3472
3473 fi
3474 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3475 echo "${ECHO_T}$ac_cv_build" >&6
3476 build=$ac_cv_build
3477 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3478 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3479 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3480
3481
3482 echo "$as_me:$LINENO: checking host system type" >&5
3483 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3484 if test "${ac_cv_host+set}" = set; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 else
3487 ac_cv_host_alias=$host_alias
3488 test -z "$ac_cv_host_alias" &&
3489 ac_cv_host_alias=$ac_cv_build_alias
3490 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3492 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3493 { (exit 1); exit 1; }; }
3494
3495 fi
3496 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3497 echo "${ECHO_T}$ac_cv_host" >&6
3498 host=$ac_cv_host
3499 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3500 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3501 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3502
3503
3504 echo "$as_me:$LINENO: checking target system type" >&5
3505 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3506 if test "${ac_cv_target+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509 ac_cv_target_alias=$target_alias
3510 test "x$ac_cv_target_alias" = "x" &&
3511 ac_cv_target_alias=$ac_cv_host_alias
3512 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3513 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3514 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3515 { (exit 1); exit 1; }; }
3516
3517 fi
3518 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3519 echo "${ECHO_T}$ac_cv_target" >&6
3520 target=$ac_cv_target
3521 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3522 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3523 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3524
3525
3526 # The aliases save the names the user supplied, while $host etc.
3527 # will get canonicalized.
3528 test -n "$target_alias" &&
3529 test "$program_prefix$program_suffix$program_transform_name" = \
3530 NONENONEs,x,x, &&
3531 program_prefix=${target_alias}-
3532
3533 # Dependency checking.
3534 rm -rf .tst 2>/dev/null
3535 mkdir .tst 2>/dev/null
3536 if test -d .tst; then
3537 am__leading_dot=.
3538 else
3539 am__leading_dot=_
3540 fi
3541 rmdir .tst 2>/dev/null
3542
3543 DEPDIR="${am__leading_dot}deps"
3544
3545 ac_config_commands="$ac_config_commands depdir"
3546
3547
3548 depcc="$CC" am_compiler_list=
3549
3550 am_depcomp=$ac_aux_dir/depcomp
3551 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3552 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3553 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556 if test -f "$am_depcomp"; then
3557 # We make a subdir and do the tests there. Otherwise we can end up
3558 # making bogus files that we don't know about and never remove. For
3559 # instance it was reported that on HP-UX the gcc test will end up
3560 # making a dummy file named `D' -- because `-MD' means `put the output
3561 # in D'.
3562 mkdir conftest.dir
3563 # Copy depcomp to subdir because otherwise we won't find it if we're
3564 # using a relative directory.
3565 cp "$am_depcomp" conftest.dir
3566 cd conftest.dir
3567 # We will build objects and dependencies in a subdirectory because
3568 # it helps to detect inapplicable dependency modes. For instance
3569 # both Tru64's cc and ICC support -MD to output dependencies as a
3570 # side effect of compilation, but ICC will put the dependencies in
3571 # the current directory while Tru64 will put them in the object
3572 # directory.
3573 mkdir sub
3574
3575 am_cv_CC_dependencies_compiler_type=none
3576 if test "$am_compiler_list" = ""; then
3577 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3578 fi
3579 for depmode in $am_compiler_list; do
3580 if test $depmode = none; then break; fi
3581
3582 echo "$as_me:$LINENO: trying $depmode" >&5
3583 # Setup a source with many dependencies, because some compilers
3584 # like to wrap large dependency lists on column 80 (with \), and
3585 # we should not choose a depcomp mode which is confused by this.
3586 #
3587 # We need to recreate these files for each test, as the compiler may
3588 # overwrite some of them when testing with obscure command lines.
3589 # This happens at least with the AIX C compiler.
3590 : > sub/conftest.c
3591 for i in 1 2 3 4 5 6; do
3592 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3593 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3594 # Solaris 8's {/usr,}/bin/sh.
3595 touch sub/conftst$i.h
3596 done
3597 echo "include sub/conftest.Po" > confmf
3598
3599 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3600 # mode. It turns out that the SunPro C++ compiler does not properly
3601 # handle `-M -o', and we need to detect this.
3602 depcmd="depmode=$depmode \
3603 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3604 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3605 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3606 echo "| $depcmd" | sed -e 's/ */ /g' >&5
3607 if env $depcmd > conftest.err 2>&1 &&
3608 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3609 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3610 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3611 # icc doesn't choke on unknown options, it will just issue warnings
3612 # or remarks (even with -Werror). So we grep stderr for any message
3613 # that says an option was ignored or not supported.
3614 # When given -MP, icc 7.0 and 7.1 complain thusly:
3615 # icc: Command line warning: ignoring option '-M'; no argument required
3616 # The diagnosis changed in icc 8.0:
3617 # icc: Command line remark: option '-MP' not supported
3618 if (grep 'ignoring option' conftest.err ||
3619 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3620 am_cv_CC_dependencies_compiler_type=$depmode
3621 echo "$as_me:$LINENO: success" >&5
3622 break
3623 fi
3624 fi
3625 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3626 sed -e 's/^/| /' < conftest.err >&5
3627 done
3628
3629 cd ..
3630 rm -rf conftest.dir
3631 else
3632 am_cv_CC_dependencies_compiler_type=none
3633 fi
3634
3635 fi
3636 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3637 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3638 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3639 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3640 echo "$as_me: error: no usable dependency style found" >&2;}
3641 { (exit 1); exit 1; }; }
3642 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3643
3644 fi
3645
3646
3647 # Check for the 'make' the user wants to use.
3648 for ac_prog in make
3649 do
3650 # Extract the first word of "$ac_prog", so it can be a program name with args.
3651 set dummy $ac_prog; ac_word=$2
3652 echo "$as_me:$LINENO: checking for $ac_word" >&5
3653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3654 if test "${ac_cv_prog_MAKE+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657 if test -n "$MAKE"; then
3658 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3662 do
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3667 ac_cv_prog_MAKE="$ac_prog"
3668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3670 fi
3671 done
3672 done
3673
3674 fi
3675 fi
3676 MAKE=$ac_cv_prog_MAKE
3677 if test -n "$MAKE"; then
3678 echo "$as_me:$LINENO: result: $MAKE" >&5
3679 echo "${ECHO_T}$MAKE" >&6
3680 else
3681 echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6
3683 fi
3684
3685 test -n "$MAKE" && break
3686 done
3687
3688 MAKE_IS_GNU=
3689 case "`$MAKE --version 2>&1 | sed 1q`" in
3690 *GNU*)
3691 MAKE_IS_GNU=yes
3692 ;;
3693 esac
3694
3695
3696 if test "$MAKE_IS_GNU" = yes; then
3697 GMAKE_TRUE=
3698 GMAKE_FALSE='#'
3699 else
3700 GMAKE_TRUE='#'
3701 GMAKE_FALSE=
3702 fi
3703
3704 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3705 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3706 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3707 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3708 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710 cat >conftest.make <<\_ACEOF
3711 all:
3712 @echo 'ac_maketemp="$(MAKE)"'
3713 _ACEOF
3714 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3715 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3716 if test -n "$ac_maketemp"; then
3717 eval ac_cv_prog_make_${ac_make}_set=yes
3718 else
3719 eval ac_cv_prog_make_${ac_make}_set=no
3720 fi
3721 rm -f conftest.make
3722 fi
3723 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3724 echo "$as_me:$LINENO: result: yes" >&5
3725 echo "${ECHO_T}yes" >&6
3726 SET_MAKE=
3727 else
3728 echo "$as_me:$LINENO: result: no" >&5
3729 echo "${ECHO_T}no" >&6
3730 SET_MAKE="MAKE=${MAKE-make}"
3731 fi
3732
3733
3734
3735 CONFIG_OBS=
3736 CONFIG_DEPS=
3737 CONFIG_SRCS=
3738 ENABLE_CFLAGS=
3739
3740 CONFIG_ALL=
3741 CONFIG_CLEAN=
3742 CONFIG_INSTALL=
3743 CONFIG_UNINSTALL=
3744
3745 # If we haven't got the data from the intl directory,
3746 # assume NLS is disabled.
3747 USE_NLS=no
3748 LIBINTL=
3749 LIBINTL_DEP=
3750 INCINTL=
3751 XGETTEXT=
3752 GMSGFMT=
3753 POSUB=
3754
3755 if test -f ../intl/config.intl; then
3756 . ../intl/config.intl
3757 fi
3758 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3759 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3760 if test x"$USE_NLS" != xyes; then
3761 echo "$as_me:$LINENO: result: no" >&5
3762 echo "${ECHO_T}no" >&6
3763 else
3764 echo "$as_me:$LINENO: result: yes" >&5
3765 echo "${ECHO_T}yes" >&6
3766
3767 cat >>confdefs.h <<\_ACEOF
3768 #define ENABLE_NLS 1
3769 _ACEOF
3770
3771
3772 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3773 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3774 # Look for .po and .gmo files in the source directory.
3775 CATALOGS=
3776 XLINGUAS=
3777 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3778 # If there aren't any .gmo files the shell will give us the
3779 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3780 # weeded out.
3781 case "$cat" in *\**)
3782 continue;;
3783 esac
3784 # The quadruple backslash is collapsed to a double backslash
3785 # by the backticks, then collapsed again by the double quotes,
3786 # leaving us with one backslash in the sed expression (right
3787 # before the dot that mustn't act as a wildcard).
3788 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3789 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3790 # The user is allowed to set LINGUAS to a list of languages to
3791 # install catalogs for. If it's empty that means "all of them."
3792 if test "x$LINGUAS" = x; then
3793 CATALOGS="$CATALOGS $cat"
3794 XLINGUAS="$XLINGUAS $lang"
3795 else
3796 case "$LINGUAS" in *$lang*)
3797 CATALOGS="$CATALOGS $cat"
3798 XLINGUAS="$XLINGUAS $lang"
3799 ;;
3800 esac
3801 fi
3802 done
3803 LINGUAS="$XLINGUAS"
3804 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3805 echo "${ECHO_T}$LINGUAS" >&6
3806
3807
3808 DATADIRNAME=share
3809
3810 INSTOBJEXT=.mo
3811
3812 GENCAT=gencat
3813
3814 CATOBJEXT=.gmo
3815
3816 fi
3817
3818 localedir='${datadir}/locale'
3819
3820
3821 if test x"$USE_NLS" = xyes; then
3822 CONFIG_ALL="$CONFIG_ALL all-po"
3823 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3824 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3825 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3826 fi
3827
3828
3829 GNULIB_MEMMEM=0;
3830 GNULIB_MEMPCPY=0;
3831 GNULIB_MEMRCHR=0;
3832 GNULIB_STPCPY=0;
3833 GNULIB_STPNCPY=0;
3834 GNULIB_STRCHRNUL=0;
3835 GNULIB_STRDUP=0;
3836 GNULIB_STRNDUP=0;
3837 GNULIB_STRNLEN=0;
3838 GNULIB_STRPBRK=0;
3839 GNULIB_STRSEP=0;
3840 GNULIB_STRSTR=0;
3841 GNULIB_STRCASESTR=0;
3842 GNULIB_STRTOK_R=0;
3843 GNULIB_MBSLEN=0;
3844 GNULIB_MBSNLEN=0;
3845 GNULIB_MBSCHR=0;
3846 GNULIB_MBSRCHR=0;
3847 GNULIB_MBSSTR=0;
3848 GNULIB_MBSCASECMP=0;
3849 GNULIB_MBSNCASECMP=0;
3850 GNULIB_MBSPCASECMP=0;
3851 GNULIB_MBSCASESTR=0;
3852 GNULIB_MBSCSPN=0;
3853 GNULIB_MBSPBRK=0;
3854 GNULIB_MBSSPN=0;
3855 GNULIB_MBSSEP=0;
3856 GNULIB_MBSTOK_R=0;
3857 GNULIB_STRERROR=0;
3858 GNULIB_STRSIGNAL=0;
3859 HAVE_DECL_MEMMEM=1;
3860 HAVE_MEMPCPY=1;
3861 HAVE_DECL_MEMRCHR=1;
3862 HAVE_STPCPY=1;
3863 HAVE_STPNCPY=1;
3864 HAVE_STRCHRNUL=1;
3865 HAVE_DECL_STRDUP=1;
3866 HAVE_STRNDUP=1;
3867 HAVE_DECL_STRNDUP=1;
3868 HAVE_DECL_STRNLEN=1;
3869 HAVE_STRPBRK=1;
3870 HAVE_STRSEP=1;
3871 HAVE_STRCASESTR=1;
3872 HAVE_DECL_STRTOK_R=1;
3873 HAVE_DECL_STRERROR=1;
3874 HAVE_DECL_STRSIGNAL=1;
3875 REPLACE_STRERROR=0;
3876 REPLACE_STRSIGNAL=0;
3877 REPLACE_MEMMEM=0;
3878 REPLACE_STRCASESTR=0;
3879 REPLACE_STRSTR=0;
3880
3881
3882 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3883 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3884 if test "${ac_cv_have_decl_memmem+set}" = set; then
3885 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 else
3887 cat >conftest.$ac_ext <<_ACEOF
3888 /* confdefs.h. */
3889 _ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3893 $ac_includes_default
3894 int
3895 main ()
3896 {
3897 #ifndef memmem
3898 char *p = (char *) memmem;
3899 #endif
3900
3901 ;
3902 return 0;
3903 }
3904 _ACEOF
3905 rm -f conftest.$ac_objext
3906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907 (eval $ac_compile) 2>conftest.er1
3908 ac_status=$?
3909 grep -v '^ *+' conftest.er1 >conftest.err
3910 rm -f conftest.er1
3911 cat conftest.err >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); } &&
3914 { ac_try='test -z "$ac_c_werror_flag"
3915 || test ! -s conftest.err'
3916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917 (eval $ac_try) 2>&5
3918 ac_status=$?
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); }; } &&
3921 { ac_try='test -s conftest.$ac_objext'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; }; then
3927 ac_cv_have_decl_memmem=yes
3928 else
3929 echo "$as_me: failed program was:" >&5
3930 sed 's/^/| /' conftest.$ac_ext >&5
3931
3932 ac_cv_have_decl_memmem=no
3933 fi
3934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3935 fi
3936 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3937 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3938 if test $ac_cv_have_decl_memmem = yes; then
3939
3940 cat >>confdefs.h <<_ACEOF
3941 #define HAVE_DECL_MEMMEM 1
3942 _ACEOF
3943
3944
3945 else
3946 cat >>confdefs.h <<_ACEOF
3947 #define HAVE_DECL_MEMMEM 0
3948 _ACEOF
3949
3950
3951 fi
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967 for ac_func in memmem
3968 do
3969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3970 echo "$as_me:$LINENO: checking for $ac_func" >&5
3971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3972 if eval "test \"\${$as_ac_var+set}\" = set"; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975 cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h. */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h. */
3981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3983 #define $ac_func innocuous_$ac_func
3984
3985 /* System header to define __stub macros and hopefully few prototypes,
3986 which can conflict with char $ac_func (); below.
3987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3988 <limits.h> exists even on freestanding compilers. */
3989
3990 #ifdef __STDC__
3991 # include <limits.h>
3992 #else
3993 # include <assert.h>
3994 #endif
3995
3996 #undef $ac_func
3997
3998 /* Override any gcc2 internal prototype to avoid an error. */
3999 #ifdef __cplusplus
4000 extern "C"
4001 {
4002 #endif
4003 /* We use char because int might match the return type of a gcc2
4004 builtin and then its argument prototype would still apply. */
4005 char $ac_func ();
4006 /* The GNU C library defines this for functions which it implements
4007 to always fail with ENOSYS. Some functions are actually named
4008 something starting with __ and the normal name is an alias. */
4009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4010 choke me
4011 #else
4012 char (*f) () = $ac_func;
4013 #endif
4014 #ifdef __cplusplus
4015 }
4016 #endif
4017
4018 int
4019 main ()
4020 {
4021 return f != $ac_func;
4022 ;
4023 return 0;
4024 }
4025 _ACEOF
4026 rm -f conftest.$ac_objext conftest$ac_exeext
4027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4028 (eval $ac_link) 2>conftest.er1
4029 ac_status=$?
4030 grep -v '^ *+' conftest.er1 >conftest.err
4031 rm -f conftest.er1
4032 cat conftest.err >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } &&
4035 { ac_try='test -z "$ac_c_werror_flag"
4036 || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try='test -s conftest$ac_exeext'
4043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4044 (eval $ac_try) 2>&5
4045 ac_status=$?
4046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); }; }; then
4048 eval "$as_ac_var=yes"
4049 else
4050 echo "$as_me: failed program was:" >&5
4051 sed 's/^/| /' conftest.$ac_ext >&5
4052
4053 eval "$as_ac_var=no"
4054 fi
4055 rm -f conftest.err conftest.$ac_objext \
4056 conftest$ac_exeext conftest.$ac_ext
4057 fi
4058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4060 if test `eval echo '${'$as_ac_var'}'` = yes; then
4061 cat >>confdefs.h <<_ACEOF
4062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4063 _ACEOF
4064
4065 else
4066
4067 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4068
4069 fi
4070 done
4071
4072
4073
4074 :
4075
4076
4077
4078
4079
4080 if test $ac_cv_have_decl_memmem = no; then
4081 HAVE_DECL_MEMMEM=0
4082 fi
4083 :
4084
4085
4086 echo "$as_me:$LINENO: checking for long long int" >&5
4087 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4088 if test "${ac_cv_type_long_long_int+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091 cat >conftest.$ac_ext <<_ACEOF
4092
4093 /* confdefs.h. */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 /* For now, do not test the preprocessor; as of 2007 there are too many
4099 implementations with broken preprocessors. Perhaps this can
4100 be revisited in 2012. In the meantime, code should not expect
4101 #if to work with literals wider than 32 bits. */
4102 /* Test literals. */
4103 long long int ll = 9223372036854775807ll;
4104 long long int nll = -9223372036854775807LL;
4105 unsigned long long int ull = 18446744073709551615ULL;
4106 /* Test constant expressions. */
4107 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4108 ? 1 : -1)];
4109 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4110 ? 1 : -1)];
4111 int i = 63;
4112 int
4113 main ()
4114 {
4115 /* Test availability of runtime routines for shift and division. */
4116 long long int llmax = 9223372036854775807ll;
4117 unsigned long long int ullmax = 18446744073709551615ull;
4118 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4119 | (llmax / ll) | (llmax % ll)
4120 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4121 | (ullmax / ull) | (ullmax % ull));
4122 ;
4123 return 0;
4124 }
4125
4126 _ACEOF
4127 rm -f conftest.$ac_objext conftest$ac_exeext
4128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4129 (eval $ac_link) 2>conftest.er1
4130 ac_status=$?
4131 grep -v '^ *+' conftest.er1 >conftest.err
4132 rm -f conftest.er1
4133 cat conftest.err >&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); } &&
4136 { ac_try='test -z "$ac_c_werror_flag"
4137 || test ! -s conftest.err'
4138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 (eval $ac_try) 2>&5
4140 ac_status=$?
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); }; } &&
4143 { ac_try='test -s conftest$ac_exeext'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; }; then
4149 if test "$cross_compiling" = yes; then
4150 ac_cv_type_long_long_int=yes
4151 else
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h. */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4158 #include <limits.h>
4159 #ifndef LLONG_MAX
4160 # define HALF \
4161 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4162 # define LLONG_MAX (HALF - 1 + HALF)
4163 #endif
4164 int
4165 main ()
4166 {
4167 long long int n = 1;
4168 int i;
4169 for (i = 0; ; i++)
4170 {
4171 long long int m = n << i;
4172 if (m >> i != n)
4173 return 1;
4174 if (LLONG_MAX / 2 < m)
4175 break;
4176 }
4177 return 0;
4178 ;
4179 return 0;
4180 }
4181 _ACEOF
4182 rm -f conftest$ac_exeext
4183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4184 (eval $ac_link) 2>&5
4185 ac_status=$?
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 (eval $ac_try) 2>&5
4190 ac_status=$?
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; }; then
4193 ac_cv_type_long_long_int=yes
4194 else
4195 echo "$as_me: program exited with status $ac_status" >&5
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4198
4199 ( exit $ac_status )
4200 ac_cv_type_long_long_int=no
4201 fi
4202 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4203 fi
4204 else
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208 ac_cv_type_long_long_int=no
4209 fi
4210 rm -f conftest.err conftest.$ac_objext \
4211 conftest$ac_exeext conftest.$ac_ext
4212 fi
4213 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4214 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4215 if test $ac_cv_type_long_long_int = yes; then
4216
4217 cat >>confdefs.h <<\_ACEOF
4218 #define HAVE_LONG_LONG_INT 1
4219 _ACEOF
4220
4221 fi
4222
4223
4224 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4225 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4226 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4227 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 else
4229 cat >conftest.$ac_ext <<_ACEOF
4230
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4236 /* For now, do not test the preprocessor; as of 2007 there are too many
4237 implementations with broken preprocessors. Perhaps this can
4238 be revisited in 2012. In the meantime, code should not expect
4239 #if to work with literals wider than 32 bits. */
4240 /* Test literals. */
4241 long long int ll = 9223372036854775807ll;
4242 long long int nll = -9223372036854775807LL;
4243 unsigned long long int ull = 18446744073709551615ULL;
4244 /* Test constant expressions. */
4245 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4246 ? 1 : -1)];
4247 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4248 ? 1 : -1)];
4249 int i = 63;
4250 int
4251 main ()
4252 {
4253 /* Test availability of runtime routines for shift and division. */
4254 long long int llmax = 9223372036854775807ll;
4255 unsigned long long int ullmax = 18446744073709551615ull;
4256 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4257 | (llmax / ll) | (llmax % ll)
4258 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4259 | (ullmax / ull) | (ullmax % ull));
4260 ;
4261 return 0;
4262 }
4263
4264 _ACEOF
4265 rm -f conftest.$ac_objext conftest$ac_exeext
4266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4267 (eval $ac_link) 2>conftest.er1
4268 ac_status=$?
4269 grep -v '^ *+' conftest.er1 >conftest.err
4270 rm -f conftest.er1
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_c_werror_flag"
4275 || test ! -s conftest.err'
4276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4277 (eval $ac_try) 2>&5
4278 ac_status=$?
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try='test -s conftest$ac_exeext'
4282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4283 (eval $ac_try) 2>&5
4284 ac_status=$?
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); }; }; then
4287 ac_cv_type_unsigned_long_long_int=yes
4288 else
4289 echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292 ac_cv_type_unsigned_long_long_int=no
4293 fi
4294 rm -f conftest.err conftest.$ac_objext \
4295 conftest$ac_exeext conftest.$ac_ext
4296 fi
4297 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4298 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4299 if test $ac_cv_type_unsigned_long_long_int = yes; then
4300
4301 cat >>confdefs.h <<\_ACEOF
4302 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4303 _ACEOF
4304
4305 fi
4306
4307
4308
4309 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4310 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4311 if test "${gl_cv_have_include_next+set}" = set; then
4312 echo $ECHO_N "(cached) $ECHO_C" >&6
4313 else
4314 rm -rf conftestd1 conftestd2
4315 mkdir conftestd1 conftestd2
4316 cat <<EOF > conftestd1/conftest.h
4317 #define DEFINED_IN_CONFTESTD1
4318 #include_next <conftest.h>
4319 #ifdef DEFINED_IN_CONFTESTD2
4320 int foo;
4321 #else
4322 #error "include_next doesn't work"
4323 #endif
4324 EOF
4325 cat <<EOF > conftestd2/conftest.h
4326 #ifndef DEFINED_IN_CONFTESTD1
4327 #error "include_next test doesn't work"
4328 #endif
4329 #define DEFINED_IN_CONFTESTD2
4330 EOF
4331 save_CPPFLAGS="$CPPFLAGS"
4332 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4333 cat >conftest.$ac_ext <<_ACEOF
4334 #include <conftest.h>
4335 _ACEOF
4336 rm -f conftest.$ac_objext
4337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4338 (eval $ac_compile) 2>conftest.er1
4339 ac_status=$?
4340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
4343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4344 (exit $ac_status); } &&
4345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest.$ac_objext'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 gl_cv_have_include_next=yes
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 gl_cv_have_include_next=no
4364 fi
4365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4366 CPPFLAGS="$save_CPPFLAGS"
4367 rm -rf conftestd1 conftestd2
4368
4369 fi
4370 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4371 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4372 if test $gl_cv_have_include_next = yes; then
4373
4374
4375 cat >>confdefs.h <<\_ACEOF
4376 #define HAVE_INCLUDE_NEXT 1
4377 _ACEOF
4378
4379
4380 INCLUDE_NEXT=include_next
4381 else
4382 INCLUDE_NEXT=include
4383 fi
4384
4385
4386
4387
4388
4389
4390
4391 for ac_header in $gl_header_list
4392 do
4393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4395 echo "$as_me:$LINENO: checking for $ac_header" >&5
4396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4399 fi
4400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4402 else
4403 # Is the header compilable?
4404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4406 cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h. */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 $ac_includes_default
4413 #include <$ac_header>
4414 _ACEOF
4415 rm -f conftest.$ac_objext
4416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4417 (eval $ac_compile) 2>conftest.er1
4418 ac_status=$?
4419 grep -v '^ *+' conftest.er1 >conftest.err
4420 rm -f conftest.er1
4421 cat conftest.err >&5
4422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423 (exit $ac_status); } &&
4424 { ac_try='test -z "$ac_c_werror_flag"
4425 || test ! -s conftest.err'
4426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 (eval $ac_try) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; } &&
4431 { ac_try='test -s conftest.$ac_objext'
4432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4433 (eval $ac_try) 2>&5
4434 ac_status=$?
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); }; }; then
4437 ac_header_compiler=yes
4438 else
4439 echo "$as_me: failed program was:" >&5
4440 sed 's/^/| /' conftest.$ac_ext >&5
4441
4442 ac_header_compiler=no
4443 fi
4444 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4445 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4446 echo "${ECHO_T}$ac_header_compiler" >&6
4447
4448 # Is the header present?
4449 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4451 cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h. */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 #include <$ac_header>
4458 _ACEOF
4459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4461 ac_status=$?
4462 grep -v '^ *+' conftest.er1 >conftest.err
4463 rm -f conftest.er1
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } >/dev/null; then
4467 if test -s conftest.err; then
4468 ac_cpp_err=$ac_c_preproc_warn_flag
4469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4470 else
4471 ac_cpp_err=
4472 fi
4473 else
4474 ac_cpp_err=yes
4475 fi
4476 if test -z "$ac_cpp_err"; then
4477 ac_header_preproc=yes
4478 else
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4481
4482 ac_header_preproc=no
4483 fi
4484 rm -f conftest.err conftest.$ac_ext
4485 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4486 echo "${ECHO_T}$ac_header_preproc" >&6
4487
4488 # So? What about this header?
4489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4490 yes:no: )
4491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4495 ac_header_preproc=yes
4496 ;;
4497 no:yes:* )
4498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4510 (
4511 cat <<\_ASBOX
4512 ## ------------------------------------------ ##
4513 ## Report this to the AC_PACKAGE_NAME lists. ##
4514 ## ------------------------------------------ ##
4515 _ASBOX
4516 ) |
4517 sed "s/^/$as_me: WARNING: /" >&2
4518 ;;
4519 esac
4520 echo "$as_me:$LINENO: checking for $ac_header" >&5
4521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4522 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 else
4525 eval "$as_ac_Header=\$ac_header_preproc"
4526 fi
4527 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4528 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4529
4530 fi
4531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4532 cat >>confdefs.h <<_ACEOF
4533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4534 _ACEOF
4535
4536 fi
4537
4538 done
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4552 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4553 if test "${ac_cv_c_restrict+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 else
4556 ac_cv_c_restrict=no
4557 # The order here caters to the fact that C++ does not require restrict.
4558 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h. */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4565 typedef int * int_ptr;
4566 int foo (int_ptr $ac_kw ip) {
4567 return ip[0];
4568 }
4569 int
4570 main ()
4571 {
4572 int s[1];
4573 int * $ac_kw t = s;
4574 t[0] = 0;
4575 return foo(t)
4576 ;
4577 return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4582 (eval $ac_compile) 2>conftest.er1
4583 ac_status=$?
4584 grep -v '^ *+' conftest.er1 >conftest.err
4585 rm -f conftest.er1
4586 cat conftest.err >&5
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); } &&
4589 { ac_try='test -z "$ac_c_werror_flag"
4590 || test ! -s conftest.err'
4591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 (eval $ac_try) 2>&5
4593 ac_status=$?
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); }; } &&
4596 { ac_try='test -s conftest.$ac_objext'
4597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4598 (eval $ac_try) 2>&5
4599 ac_status=$?
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); }; }; then
4602 ac_cv_c_restrict=$ac_kw
4603 else
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4606
4607 fi
4608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4609 test "$ac_cv_c_restrict" != no && break
4610 done
4611
4612 fi
4613 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4614 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4615
4616
4617 case $ac_cv_c_restrict in
4618 restrict) ;;
4619 no) cat >>confdefs.h <<\_ACEOF
4620 #define restrict
4621 _ACEOF
4622 ;;
4623 *) cat >>confdefs.h <<_ACEOF
4624 #define restrict $ac_cv_c_restrict
4625 _ACEOF
4626 ;;
4627 esac
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641 :
4642
4643
4644
4645
4646
4647
4648
4649 if test $gl_cv_have_include_next = yes; then
4650 gl_cv_next_string_h='<'string.h'>'
4651 else
4652 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4653 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4654 if test "${gl_cv_next_string_h+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657
4658 if test $ac_cv_header_string_h = yes; then
4659 cat >conftest.$ac_ext <<_ACEOF
4660 /* confdefs.h. */
4661 _ACEOF
4662 cat confdefs.h >>conftest.$ac_ext
4663 cat >>conftest.$ac_ext <<_ACEOF
4664 /* end confdefs.h. */
4665 #include <string.h>
4666
4667 _ACEOF
4668 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4669 sed -n '\#/string.h#{
4670 s#.*"\(.*/string.h\)".*#\1#
4671 s#^/[^/]#//&#
4672 p
4673 q
4674 }'`'"'
4675 else
4676 gl_cv_next_string_h='<'string.h'>'
4677 fi
4678
4679 fi
4680 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4681 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4682 fi
4683 NEXT_STRING_H=$gl_cv_next_string_h
4684
4685
4686
4687
4688
4689 GNULIB_WCWIDTH=0;
4690 HAVE_DECL_WCWIDTH=1;
4691 REPLACE_WCWIDTH=0;
4692 WCHAR_H=
4693
4694
4695
4696
4697
4698 if false; then
4699 GL_COND_LIBTOOL_TRUE=
4700 GL_COND_LIBTOOL_FALSE='#'
4701 else
4702 GL_COND_LIBTOOL_TRUE='#'
4703 GL_COND_LIBTOOL_FALSE=
4704 fi
4705
4706 gl_cond_libtool=false
4707 gl_libdeps=
4708 gl_ltlibdeps=
4709
4710
4711
4712 gl_source_base='gnulib'
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722 for ac_func in memchr
4723 do
4724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4725 echo "$as_me:$LINENO: checking for $ac_func" >&5
4726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4727 if eval "test \"\${$as_ac_var+set}\" = set"; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 else
4730 cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h. */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4738 #define $ac_func innocuous_$ac_func
4739
4740 /* System header to define __stub macros and hopefully few prototypes,
4741 which can conflict with char $ac_func (); below.
4742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4743 <limits.h> exists even on freestanding compilers. */
4744
4745 #ifdef __STDC__
4746 # include <limits.h>
4747 #else
4748 # include <assert.h>
4749 #endif
4750
4751 #undef $ac_func
4752
4753 /* Override any gcc2 internal prototype to avoid an error. */
4754 #ifdef __cplusplus
4755 extern "C"
4756 {
4757 #endif
4758 /* We use char because int might match the return type of a gcc2
4759 builtin and then its argument prototype would still apply. */
4760 char $ac_func ();
4761 /* The GNU C library defines this for functions which it implements
4762 to always fail with ENOSYS. Some functions are actually named
4763 something starting with __ and the normal name is an alias. */
4764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4765 choke me
4766 #else
4767 char (*f) () = $ac_func;
4768 #endif
4769 #ifdef __cplusplus
4770 }
4771 #endif
4772
4773 int
4774 main ()
4775 {
4776 return f != $ac_func;
4777 ;
4778 return 0;
4779 }
4780 _ACEOF
4781 rm -f conftest.$ac_objext conftest$ac_exeext
4782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4783 (eval $ac_link) 2>conftest.er1
4784 ac_status=$?
4785 grep -v '^ *+' conftest.er1 >conftest.err
4786 rm -f conftest.er1
4787 cat conftest.err >&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -z "$ac_c_werror_flag"
4791 || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest$ac_exeext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 eval "$as_ac_var=yes"
4804 else
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808 eval "$as_ac_var=no"
4809 fi
4810 rm -f conftest.err conftest.$ac_objext \
4811 conftest$ac_exeext conftest.$ac_ext
4812 fi
4813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4815 if test `eval echo '${'$as_ac_var'}'` = yes; then
4816 cat >>confdefs.h <<_ACEOF
4817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4818 _ACEOF
4819
4820 else
4821
4822 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4823
4824 fi
4825 done
4826
4827
4828 if test $ac_cv_func_memchr = no; then
4829
4830
4831 for ac_header in bp-sym.h
4832 do
4833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835 echo "$as_me:$LINENO: checking for $ac_header" >&5
4836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 fi
4840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4842 else
4843 # Is the header compilable?
4844 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4845 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4846 cat >conftest.$ac_ext <<_ACEOF
4847 /* confdefs.h. */
4848 _ACEOF
4849 cat confdefs.h >>conftest.$ac_ext
4850 cat >>conftest.$ac_ext <<_ACEOF
4851 /* end confdefs.h. */
4852 $ac_includes_default
4853 #include <$ac_header>
4854 _ACEOF
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4858 ac_status=$?
4859 grep -v '^ *+' conftest.er1 >conftest.err
4860 rm -f conftest.er1
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -z "$ac_c_werror_flag"
4865 || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867 (eval $ac_try) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873 (eval $ac_try) 2>&5
4874 ac_status=$?
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4877 ac_header_compiler=yes
4878 else
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882 ac_header_compiler=no
4883 fi
4884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4886 echo "${ECHO_T}$ac_header_compiler" >&6
4887
4888 # Is the header present?
4889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4891 cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h. */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #include <$ac_header>
4898 _ACEOF
4899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } >/dev/null; then
4907 if test -s conftest.err; then
4908 ac_cpp_err=$ac_c_preproc_warn_flag
4909 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4910 else
4911 ac_cpp_err=
4912 fi
4913 else
4914 ac_cpp_err=yes
4915 fi
4916 if test -z "$ac_cpp_err"; then
4917 ac_header_preproc=yes
4918 else
4919 echo "$as_me: failed program was:" >&5
4920 sed 's/^/| /' conftest.$ac_ext >&5
4921
4922 ac_header_preproc=no
4923 fi
4924 rm -f conftest.err conftest.$ac_ext
4925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4926 echo "${ECHO_T}$ac_header_preproc" >&6
4927
4928 # So? What about this header?
4929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4930 yes:no: )
4931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4935 ac_header_preproc=yes
4936 ;;
4937 no:yes:* )
4938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4950 (
4951 cat <<\_ASBOX
4952 ## ------------------------------------------ ##
4953 ## Report this to the AC_PACKAGE_NAME lists. ##
4954 ## ------------------------------------------ ##
4955 _ASBOX
4956 ) |
4957 sed "s/^/$as_me: WARNING: /" >&2
4958 ;;
4959 esac
4960 echo "$as_me:$LINENO: checking for $ac_header" >&5
4961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4962 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965 eval "$as_ac_Header=\$ac_header_preproc"
4966 fi
4967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4969
4970 fi
4971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4972 cat >>confdefs.h <<_ACEOF
4973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4974 _ACEOF
4975
4976 fi
4977
4978 done
4979
4980
4981 fi
4982
4983
4984 echo "$as_me:$LINENO: checking for working memcmp" >&5
4985 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4986 if test "${ac_cv_func_memcmp_working+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989 if test "$cross_compiling" = yes; then
4990 ac_cv_func_memcmp_working=no
4991 else
4992 cat >conftest.$ac_ext <<_ACEOF
4993 /* confdefs.h. */
4994 _ACEOF
4995 cat confdefs.h >>conftest.$ac_ext
4996 cat >>conftest.$ac_ext <<_ACEOF
4997 /* end confdefs.h. */
4998 $ac_includes_default
4999 int
5000 main ()
5001 {
5002
5003 /* Some versions of memcmp are not 8-bit clean. */
5004 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5005 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5006 exit (1);
5007
5008 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5009 or more and with at least one buffer not starting on a 4-byte boundary.
5010 William Lewis provided this test program. */
5011 {
5012 char foo[21];
5013 char bar[21];
5014 int i;
5015 for (i = 0; i < 4; i++)
5016 {
5017 char *a = foo + i;
5018 char *b = bar + i;
5019 strcpy (a, "--------01111111");
5020 strcpy (b, "--------10000000");
5021 if (memcmp (a, b, 16) >= 0)
5022 exit (1);
5023 }
5024 exit (0);
5025 }
5026
5027 ;
5028 return 0;
5029 }
5030 _ACEOF
5031 rm -f conftest$ac_exeext
5032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033 (eval $ac_link) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 (eval $ac_try) 2>&5
5039 ac_status=$?
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5042 ac_cv_func_memcmp_working=yes
5043 else
5044 echo "$as_me: program exited with status $ac_status" >&5
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048 ( exit $ac_status )
5049 ac_cv_func_memcmp_working=no
5050 fi
5051 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5052 fi
5053 fi
5054 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5055 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5056 test $ac_cv_func_memcmp_working = no &&
5057
5058
5059
5060
5061
5062
5063 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5064
5065
5066 if test $ac_cv_func_memcmp_working = no; then
5067
5068 cat >>confdefs.h <<\_ACEOF
5069 #define memcmp rpl_memcmp
5070 _ACEOF
5071
5072 :
5073 fi
5074
5075
5076
5077 if test $ac_cv_have_decl_memmem = yes; then
5078 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5079 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5080 if test "${gl_cv_func_memmem_works+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083 if test "$cross_compiling" = yes; then
5084 gl_cv_func_memmem_works="guessing no"
5085 else
5086 cat >conftest.$ac_ext <<_ACEOF
5087 /* confdefs.h. */
5088 _ACEOF
5089 cat confdefs.h >>conftest.$ac_ext
5090 cat >>conftest.$ac_ext <<_ACEOF
5091 /* end confdefs.h. */
5092
5093 #include <string.h> /* for memmem */
5094 #include <stdlib.h> /* for malloc */
5095 #include <unistd.h> /* for alarm */
5096
5097 int
5098 main ()
5099 {
5100 size_t m = 1000000;
5101 char *haystack = (char *) malloc (2 * m + 1);
5102 char *needle = (char *) malloc (m + 1);
5103 void *result = 0;
5104 /* Failure to compile this test due to missing alarm is okay,
5105 since all such platforms (mingw) also lack memmem. */
5106 alarm (5);
5107 /* Check for quadratic performance. */
5108 if (haystack && needle)
5109 {
5110 memset (haystack, 'A', 2 * m);
5111 haystack[2 * m] = 'B';
5112 memset (needle, 'A', m);
5113 needle[m] = 'B';
5114 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5115 }
5116 /* Check for empty needle behavior. */
5117 return !result || !memmem ("a", 1, 0, 0);
5118 ;
5119 return 0;
5120 }
5121 _ACEOF
5122 rm -f conftest$ac_exeext
5123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5124 (eval $ac_link) 2>&5
5125 ac_status=$?
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5129 (eval $ac_try) 2>&5
5130 ac_status=$?
5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5132 (exit $ac_status); }; }; then
5133 gl_cv_func_memmem_works=yes
5134 else
5135 echo "$as_me: program exited with status $ac_status" >&5
5136 echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5138
5139 ( exit $ac_status )
5140 gl_cv_func_memmem_works=no
5141 fi
5142 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5143 fi
5144 fi
5145 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5146 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5147 if test "$gl_cv_func_memmem_works" != yes; then
5148 REPLACE_MEMMEM=1
5149
5150
5151
5152
5153
5154
5155
5156 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5157
5158 fi
5159 fi
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173 for ac_func in memmem
5174 do
5175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5176 echo "$as_me:$LINENO: checking for $ac_func" >&5
5177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5178 if eval "test \"\${$as_ac_var+set}\" = set"; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181 cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5189 #define $ac_func innocuous_$ac_func
5190
5191 /* System header to define __stub macros and hopefully few prototypes,
5192 which can conflict with char $ac_func (); below.
5193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5194 <limits.h> exists even on freestanding compilers. */
5195
5196 #ifdef __STDC__
5197 # include <limits.h>
5198 #else
5199 # include <assert.h>
5200 #endif
5201
5202 #undef $ac_func
5203
5204 /* Override any gcc2 internal prototype to avoid an error. */
5205 #ifdef __cplusplus
5206 extern "C"
5207 {
5208 #endif
5209 /* We use char because int might match the return type of a gcc2
5210 builtin and then its argument prototype would still apply. */
5211 char $ac_func ();
5212 /* The GNU C library defines this for functions which it implements
5213 to always fail with ENOSYS. Some functions are actually named
5214 something starting with __ and the normal name is an alias. */
5215 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5216 choke me
5217 #else
5218 char (*f) () = $ac_func;
5219 #endif
5220 #ifdef __cplusplus
5221 }
5222 #endif
5223
5224 int
5225 main ()
5226 {
5227 return f != $ac_func;
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 rm -f conftest.$ac_objext conftest$ac_exeext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5234 (eval $ac_link) 2>conftest.er1
5235 ac_status=$?
5236 grep -v '^ *+' conftest.er1 >conftest.err
5237 rm -f conftest.er1
5238 cat conftest.err >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); } &&
5241 { ac_try='test -z "$ac_c_werror_flag"
5242 || test ! -s conftest.err'
5243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5244 (eval $ac_try) 2>&5
5245 ac_status=$?
5246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5247 (exit $ac_status); }; } &&
5248 { ac_try='test -s conftest$ac_exeext'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5250 (eval $ac_try) 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; }; then
5254 eval "$as_ac_var=yes"
5255 else
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5258
5259 eval "$as_ac_var=no"
5260 fi
5261 rm -f conftest.err conftest.$ac_objext \
5262 conftest$ac_exeext conftest.$ac_ext
5263 fi
5264 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5265 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5266 if test `eval echo '${'$as_ac_var'}'` = yes; then
5267 cat >>confdefs.h <<_ACEOF
5268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5269 _ACEOF
5270
5271 else
5272
5273 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5274
5275 fi
5276 done
5277
5278
5279
5280 :
5281
5282
5283
5284
5285
5286 if test $ac_cv_have_decl_memmem = no; then
5287 HAVE_DECL_MEMMEM=0
5288 fi
5289 :
5290
5291
5292
5293 GNULIB_MEMMEM=1
5294
5295
5296
5297
5298 if test $ac_cv_type_long_long_int = yes; then
5299 HAVE_LONG_LONG_INT=1
5300 else
5301 HAVE_LONG_LONG_INT=0
5302 fi
5303
5304
5305 if test $ac_cv_type_unsigned_long_long_int = yes; then
5306 HAVE_UNSIGNED_LONG_LONG_INT=1
5307 else
5308 HAVE_UNSIGNED_LONG_LONG_INT=0
5309 fi
5310
5311
5312 if test $ac_cv_header_inttypes_h = yes; then
5313 HAVE_INTTYPES_H=1
5314 else
5315 HAVE_INTTYPES_H=0
5316 fi
5317
5318
5319 if test $ac_cv_header_sys_types_h = yes; then
5320 HAVE_SYS_TYPES_H=1
5321 else
5322 HAVE_SYS_TYPES_H=0
5323 fi
5324
5325
5326
5327
5328
5329 :
5330
5331
5332
5333
5334
5335
5336
5337 if test $gl_cv_have_include_next = yes; then
5338 gl_cv_next_stdint_h='<'stdint.h'>'
5339 else
5340 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5341 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5342 if test "${gl_cv_next_stdint_h+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 else
5345
5346 if test $ac_cv_header_stdint_h = yes; then
5347 cat >conftest.$ac_ext <<_ACEOF
5348 /* confdefs.h. */
5349 _ACEOF
5350 cat confdefs.h >>conftest.$ac_ext
5351 cat >>conftest.$ac_ext <<_ACEOF
5352 /* end confdefs.h. */
5353 #include <stdint.h>
5354
5355 _ACEOF
5356 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5357 sed -n '\#/stdint.h#{
5358 s#.*"\(.*/stdint.h\)".*#\1#
5359 s#^/[^/]#//&#
5360 p
5361 q
5362 }'`'"'
5363 else
5364 gl_cv_next_stdint_h='<'stdint.h'>'
5365 fi
5366
5367 fi
5368 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5369 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5370 fi
5371 NEXT_STDINT_H=$gl_cv_next_stdint_h
5372
5373
5374
5375 if test $ac_cv_header_stdint_h = yes; then
5376 HAVE_STDINT_H=1
5377 else
5378 HAVE_STDINT_H=0
5379 fi
5380
5381
5382 if test $ac_cv_header_stdint_h = yes; then
5383 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5384 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5385 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388 gl_cv_header_working_stdint_h=no
5389 cat >conftest.$ac_ext <<_ACEOF
5390
5391 /* confdefs.h. */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396
5397 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5398 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5399 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5400 #include <stdint.h>
5401 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5402 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5403 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5404 #endif
5405
5406
5407 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5408 included before <wchar.h>. */
5409 #include <stddef.h>
5410 #include <signal.h>
5411 #if HAVE_WCHAR_H
5412 # include <stdio.h>
5413 # include <time.h>
5414 # include <wchar.h>
5415 #endif
5416
5417
5418 #ifdef INT8_MAX
5419 int8_t a1 = INT8_MAX;
5420 int8_t a1min = INT8_MIN;
5421 #endif
5422 #ifdef INT16_MAX
5423 int16_t a2 = INT16_MAX;
5424 int16_t a2min = INT16_MIN;
5425 #endif
5426 #ifdef INT32_MAX
5427 int32_t a3 = INT32_MAX;
5428 int32_t a3min = INT32_MIN;
5429 #endif
5430 #ifdef INT64_MAX
5431 int64_t a4 = INT64_MAX;
5432 int64_t a4min = INT64_MIN;
5433 #endif
5434 #ifdef UINT8_MAX
5435 uint8_t b1 = UINT8_MAX;
5436 #else
5437 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5438 #endif
5439 #ifdef UINT16_MAX
5440 uint16_t b2 = UINT16_MAX;
5441 #endif
5442 #ifdef UINT32_MAX
5443 uint32_t b3 = UINT32_MAX;
5444 #endif
5445 #ifdef UINT64_MAX
5446 uint64_t b4 = UINT64_MAX;
5447 #endif
5448 int_least8_t c1 = INT8_C (0x7f);
5449 int_least8_t c1max = INT_LEAST8_MAX;
5450 int_least8_t c1min = INT_LEAST8_MIN;
5451 int_least16_t c2 = INT16_C (0x7fff);
5452 int_least16_t c2max = INT_LEAST16_MAX;
5453 int_least16_t c2min = INT_LEAST16_MIN;
5454 int_least32_t c3 = INT32_C (0x7fffffff);
5455 int_least32_t c3max = INT_LEAST32_MAX;
5456 int_least32_t c3min = INT_LEAST32_MIN;
5457 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5458 int_least64_t c4max = INT_LEAST64_MAX;
5459 int_least64_t c4min = INT_LEAST64_MIN;
5460 uint_least8_t d1 = UINT8_C (0xff);
5461 uint_least8_t d1max = UINT_LEAST8_MAX;
5462 uint_least16_t d2 = UINT16_C (0xffff);
5463 uint_least16_t d2max = UINT_LEAST16_MAX;
5464 uint_least32_t d3 = UINT32_C (0xffffffff);
5465 uint_least32_t d3max = UINT_LEAST32_MAX;
5466 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5467 uint_least64_t d4max = UINT_LEAST64_MAX;
5468 int_fast8_t e1 = INT_FAST8_MAX;
5469 int_fast8_t e1min = INT_FAST8_MIN;
5470 int_fast16_t e2 = INT_FAST16_MAX;
5471 int_fast16_t e2min = INT_FAST16_MIN;
5472 int_fast32_t e3 = INT_FAST32_MAX;
5473 int_fast32_t e3min = INT_FAST32_MIN;
5474 int_fast64_t e4 = INT_FAST64_MAX;
5475 int_fast64_t e4min = INT_FAST64_MIN;
5476 uint_fast8_t f1 = UINT_FAST8_MAX;
5477 uint_fast16_t f2 = UINT_FAST16_MAX;
5478 uint_fast32_t f3 = UINT_FAST32_MAX;
5479 uint_fast64_t f4 = UINT_FAST64_MAX;
5480 #ifdef INTPTR_MAX
5481 intptr_t g = INTPTR_MAX;
5482 intptr_t gmin = INTPTR_MIN;
5483 #endif
5484 #ifdef UINTPTR_MAX
5485 uintptr_t h = UINTPTR_MAX;
5486 #endif
5487 intmax_t i = INTMAX_MAX;
5488 uintmax_t j = UINTMAX_MAX;
5489
5490 #include <limits.h> /* for CHAR_BIT */
5491 #define TYPE_MINIMUM(t) \
5492 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5493 #define TYPE_MAXIMUM(t) \
5494 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5495 struct s {
5496 int check_PTRDIFF:
5497 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5498 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5499 ? 1 : -1;
5500 /* Detect bug in FreeBSD 6.0 / ia64. */
5501 int check_SIG_ATOMIC:
5502 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5503 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5504 ? 1 : -1;
5505 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5506 int check_WCHAR:
5507 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5508 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5509 ? 1 : -1;
5510 /* Detect bug in mingw. */
5511 int check_WINT:
5512 WINT_MIN == TYPE_MINIMUM (wint_t)
5513 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5514 ? 1 : -1;
5515
5516 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5517 int check_UINT8_C:
5518 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5519 int check_UINT16_C:
5520 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5521
5522 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5523 #ifdef UINT8_MAX
5524 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5525 #endif
5526 #ifdef UINT16_MAX
5527 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5528 #endif
5529 #ifdef UINT32_MAX
5530 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5531 #endif
5532 #ifdef UINT64_MAX
5533 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5534 #endif
5535 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5536 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5537 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5538 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5539 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5540 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5541 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5542 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5543 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5544 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5545 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5546 };
5547
5548 int
5549 main ()
5550 {
5551
5552 ;
5553 return 0;
5554 }
5555 _ACEOF
5556 rm -f conftest.$ac_objext
5557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5558 (eval $ac_compile) 2>conftest.er1
5559 ac_status=$?
5560 grep -v '^ *+' conftest.er1 >conftest.err
5561 rm -f conftest.er1
5562 cat conftest.err >&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -z "$ac_c_werror_flag"
5566 || test ! -s conftest.err'
5567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5568 (eval $ac_try) 2>&5
5569 ac_status=$?
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; } &&
5572 { ac_try='test -s conftest.$ac_objext'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; }; then
5578 gl_cv_header_working_stdint_h=yes
5579 else
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5582
5583 fi
5584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5585 fi
5586 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5587 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5588 fi
5589 if test "$gl_cv_header_working_stdint_h" = yes; then
5590 STDINT_H=
5591 else
5592
5593
5594 for ac_header in sys/inttypes.h sys/bitypes.h
5595 do
5596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5598 echo "$as_me:$LINENO: checking for $ac_header" >&5
5599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 fi
5603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5605 else
5606 # Is the header compilable?
5607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5609 cat >conftest.$ac_ext <<_ACEOF
5610 /* confdefs.h. */
5611 _ACEOF
5612 cat confdefs.h >>conftest.$ac_ext
5613 cat >>conftest.$ac_ext <<_ACEOF
5614 /* end confdefs.h. */
5615 $ac_includes_default
5616 #include <$ac_header>
5617 _ACEOF
5618 rm -f conftest.$ac_objext
5619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5620 (eval $ac_compile) 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 { ac_try='test -z "$ac_c_werror_flag"
5628 || test ! -s conftest.err'
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; } &&
5634 { ac_try='test -s conftest.$ac_objext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 (eval $ac_try) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_header_compiler=yes
5641 else
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645 ac_header_compiler=no
5646 fi
5647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649 echo "${ECHO_T}$ac_header_compiler" >&6
5650
5651 # Is the header present?
5652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 #include <$ac_header>
5661 _ACEOF
5662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } >/dev/null; then
5670 if test -s conftest.err; then
5671 ac_cpp_err=$ac_c_preproc_warn_flag
5672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5673 else
5674 ac_cpp_err=
5675 fi
5676 else
5677 ac_cpp_err=yes
5678 fi
5679 if test -z "$ac_cpp_err"; then
5680 ac_header_preproc=yes
5681 else
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5684
5685 ac_header_preproc=no
5686 fi
5687 rm -f conftest.err conftest.$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689 echo "${ECHO_T}$ac_header_preproc" >&6
5690
5691 # So? What about this header?
5692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5693 yes:no: )
5694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5698 ac_header_preproc=yes
5699 ;;
5700 no:yes:* )
5701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5713 (
5714 cat <<\_ASBOX
5715 ## ------------------------------------------ ##
5716 ## Report this to the AC_PACKAGE_NAME lists. ##
5717 ## ------------------------------------------ ##
5718 _ASBOX
5719 ) |
5720 sed "s/^/$as_me: WARNING: /" >&2
5721 ;;
5722 esac
5723 echo "$as_me:$LINENO: checking for $ac_header" >&5
5724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5726 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728 eval "$as_ac_Header=\$ac_header_preproc"
5729 fi
5730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5732
5733 fi
5734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5735 cat >>confdefs.h <<_ACEOF
5736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5737 _ACEOF
5738
5739 fi
5740
5741 done
5742
5743 if test $ac_cv_header_sys_inttypes_h = yes; then
5744 HAVE_SYS_INTTYPES_H=1
5745 else
5746 HAVE_SYS_INTTYPES_H=0
5747 fi
5748
5749 if test $ac_cv_header_sys_bitypes_h = yes; then
5750 HAVE_SYS_BITYPES_H=1
5751 else
5752 HAVE_SYS_BITYPES_H=0
5753 fi
5754
5755
5756
5757 :
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5773 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5774 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5775 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778 if test "$cross_compiling" = yes; then
5779 # Depending upon the size, compute the lo and hi bounds.
5780 cat >conftest.$ac_ext <<_ACEOF
5781 /* confdefs.h. */
5782 _ACEOF
5783 cat confdefs.h >>conftest.$ac_ext
5784 cat >>conftest.$ac_ext <<_ACEOF
5785 /* end confdefs.h. */
5786
5787 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5788 included before <wchar.h>. */
5789 #include <stddef.h>
5790 #include <signal.h>
5791 #if HAVE_WCHAR_H
5792 # include <stdio.h>
5793 # include <time.h>
5794 # include <wchar.h>
5795 #endif
5796
5797 #include <limits.h>
5798 int
5799 main ()
5800 {
5801 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5802 test_array [0] = 0
5803
5804 ;
5805 return 0;
5806 }
5807 _ACEOF
5808 rm -f conftest.$ac_objext
5809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5810 (eval $ac_compile) 2>conftest.er1
5811 ac_status=$?
5812 grep -v '^ *+' conftest.er1 >conftest.err
5813 rm -f conftest.er1
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -z "$ac_c_werror_flag"
5818 || test ! -s conftest.err'
5819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 (eval $ac_try) 2>&5
5821 ac_status=$?
5822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5823 (exit $ac_status); }; } &&
5824 { ac_try='test -s conftest.$ac_objext'
5825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5826 (eval $ac_try) 2>&5
5827 ac_status=$?
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); }; }; then
5830 ac_lo=0 ac_mid=0
5831 while :; do
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838
5839 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5840 included before <wchar.h>. */
5841 #include <stddef.h>
5842 #include <signal.h>
5843 #if HAVE_WCHAR_H
5844 # include <stdio.h>
5845 # include <time.h>
5846 # include <wchar.h>
5847 #endif
5848
5849 #include <limits.h>
5850 int
5851 main ()
5852 {
5853 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5854 test_array [0] = 0
5855
5856 ;
5857 return 0;
5858 }
5859 _ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5862 (eval $ac_compile) 2>conftest.er1
5863 ac_status=$?
5864 grep -v '^ *+' conftest.er1 >conftest.err
5865 rm -f conftest.er1
5866 cat conftest.err >&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try='test -z "$ac_c_werror_flag"
5870 || test ! -s conftest.err'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872 (eval $ac_try) 2>&5
5873 ac_status=$?
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; } &&
5876 { ac_try='test -s conftest.$ac_objext'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5878 (eval $ac_try) 2>&5
5879 ac_status=$?
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then
5882 ac_hi=$ac_mid; break
5883 else
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 ac_lo=`expr $ac_mid + 1`
5888 if test $ac_lo -le $ac_mid; then
5889 ac_lo= ac_hi=
5890 break
5891 fi
5892 ac_mid=`expr 2 '*' $ac_mid + 1`
5893 fi
5894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5895 done
5896 else
5897 echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5899
5900 cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h. */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5906
5907 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5908 included before <wchar.h>. */
5909 #include <stddef.h>
5910 #include <signal.h>
5911 #if HAVE_WCHAR_H
5912 # include <stdio.h>
5913 # include <time.h>
5914 # include <wchar.h>
5915 #endif
5916
5917 #include <limits.h>
5918 int
5919 main ()
5920 {
5921 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5922 test_array [0] = 0
5923
5924 ;
5925 return 0;
5926 }
5927 _ACEOF
5928 rm -f conftest.$ac_objext
5929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5930 (eval $ac_compile) 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -z "$ac_c_werror_flag"
5938 || test ! -s conftest.err'
5939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 (eval $ac_try) 2>&5
5941 ac_status=$?
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); }; } &&
5944 { ac_try='test -s conftest.$ac_objext'
5945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 (eval $ac_try) 2>&5
5947 ac_status=$?
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); }; }; then
5950 ac_hi=-1 ac_mid=-1
5951 while :; do
5952 cat >conftest.$ac_ext <<_ACEOF
5953 /* confdefs.h. */
5954 _ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958
5959 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5960 included before <wchar.h>. */
5961 #include <stddef.h>
5962 #include <signal.h>
5963 #if HAVE_WCHAR_H
5964 # include <stdio.h>
5965 # include <time.h>
5966 # include <wchar.h>
5967 #endif
5968
5969 #include <limits.h>
5970 int
5971 main ()
5972 {
5973 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5974 test_array [0] = 0
5975
5976 ;
5977 return 0;
5978 }
5979 _ACEOF
5980 rm -f conftest.$ac_objext
5981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982 (eval $ac_compile) 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } &&
5989 { ac_try='test -z "$ac_c_werror_flag"
5990 || test ! -s conftest.err'
5991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 (eval $ac_try) 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998 (eval $ac_try) 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); }; }; then
6002 ac_lo=$ac_mid; break
6003 else
6004 echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007 ac_hi=`expr '(' $ac_mid ')' - 1`
6008 if test $ac_mid -le $ac_hi; then
6009 ac_lo= ac_hi=
6010 break
6011 fi
6012 ac_mid=`expr 2 '*' $ac_mid`
6013 fi
6014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6015 done
6016 else
6017 echo "$as_me: failed program was:" >&5
6018 sed 's/^/| /' conftest.$ac_ext >&5
6019
6020 ac_lo= ac_hi=
6021 fi
6022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6023 fi
6024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6025 # Binary search between lo and hi bounds.
6026 while test "x$ac_lo" != "x$ac_hi"; do
6027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6028 cat >conftest.$ac_ext <<_ACEOF
6029 /* confdefs.h. */
6030 _ACEOF
6031 cat confdefs.h >>conftest.$ac_ext
6032 cat >>conftest.$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034
6035 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6036 included before <wchar.h>. */
6037 #include <stddef.h>
6038 #include <signal.h>
6039 #if HAVE_WCHAR_H
6040 # include <stdio.h>
6041 # include <time.h>
6042 # include <wchar.h>
6043 #endif
6044
6045 #include <limits.h>
6046 int
6047 main ()
6048 {
6049 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6050 test_array [0] = 0
6051
6052 ;
6053 return 0;
6054 }
6055 _ACEOF
6056 rm -f conftest.$ac_objext
6057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6058 (eval $ac_compile) 2>conftest.er1
6059 ac_status=$?
6060 grep -v '^ *+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -z "$ac_c_werror_flag"
6066 || test ! -s conftest.err'
6067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6068 (eval $ac_try) 2>&5
6069 ac_status=$?
6070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); }; } &&
6072 { ac_try='test -s conftest.$ac_objext'
6073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074 (eval $ac_try) 2>&5
6075 ac_status=$?
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); }; }; then
6078 ac_hi=$ac_mid
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6082
6083 ac_lo=`expr '(' $ac_mid ')' + 1`
6084 fi
6085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6086 done
6087 case $ac_lo in
6088 ?*) result=$ac_lo;;
6089 '') result=unknown ;;
6090 esac
6091 else
6092 if test "$cross_compiling" = yes; then
6093 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6094 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6095 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6096 See \`config.log' for more details." >&5
6097 echo "$as_me: error: cannot run test program while cross compiling
6098 See \`config.log' for more details." >&2;}
6099 { (exit 1); exit 1; }; }; }
6100 else
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107
6108 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6109 included before <wchar.h>. */
6110 #include <stddef.h>
6111 #include <signal.h>
6112 #if HAVE_WCHAR_H
6113 # include <stdio.h>
6114 # include <time.h>
6115 # include <wchar.h>
6116 #endif
6117
6118 #include <limits.h>
6119 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6120 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6121 #include <stdio.h>
6122 #include <stdlib.h>
6123 int
6124 main ()
6125 {
6126
6127 FILE *f = fopen ("conftest.val", "w");
6128 if (! f)
6129 exit (1);
6130 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6131 {
6132 long i = longval ();
6133 if (i != (sizeof ($gltype) * CHAR_BIT))
6134 exit (1);
6135 fprintf (f, "%ld\n", i);
6136 }
6137 else
6138 {
6139 unsigned long i = ulongval ();
6140 if (i != (sizeof ($gltype) * CHAR_BIT))
6141 exit (1);
6142 fprintf (f, "%lu\n", i);
6143 }
6144 exit (ferror (f) || fclose (f) != 0);
6145
6146 ;
6147 return 0;
6148 }
6149 _ACEOF
6150 rm -f conftest$ac_exeext
6151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6152 (eval $ac_link) 2>&5
6153 ac_status=$?
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157 (eval $ac_try) 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6161 result=`cat conftest.val`
6162 else
6163 echo "$as_me: program exited with status $ac_status" >&5
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167 ( exit $ac_status )
6168 result=unknown
6169 fi
6170 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6171 fi
6172 fi
6173 rm -f conftest.val
6174 eval gl_cv_bitsizeof_${gltype}=\$result
6175
6176 fi
6177 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6178 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6179 eval result=\$gl_cv_bitsizeof_${gltype}
6180 if test $result = unknown; then
6181 result=0
6182 fi
6183 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6184 cat >>confdefs.h <<_ACEOF
6185 #define BITSIZEOF_${GLTYPE} $result
6186 _ACEOF
6187
6188 eval BITSIZEOF_${GLTYPE}=\$result
6189 done
6190
6191
6192
6193
6194
6195
6196
6197 for gltype in sig_atomic_t wchar_t wint_t ; do
6198 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6199 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6200 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 else
6203 cat >conftest.$ac_ext <<_ACEOF
6204 /* confdefs.h. */
6205 _ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209
6210 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6211 included before <wchar.h>. */
6212 #include <stddef.h>
6213 #include <signal.h>
6214 #if HAVE_WCHAR_H
6215 # include <stdio.h>
6216 # include <time.h>
6217 # include <wchar.h>
6218 #endif
6219
6220 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6221 int
6222 main ()
6223 {
6224
6225 ;
6226 return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241 (eval $ac_try) 2>&5
6242 ac_status=$?
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 result=yes
6252 else
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 result=no
6257 fi
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6259 eval gl_cv_type_${gltype}_signed=\$result
6260
6261 fi
6262 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6263 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6264 eval result=\$gl_cv_type_${gltype}_signed
6265 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6266 if test "$result" = yes; then
6267 cat >>confdefs.h <<_ACEOF
6268 #define HAVE_SIGNED_${GLTYPE} 1
6269 _ACEOF
6270
6271 eval HAVE_SIGNED_${GLTYPE}=1
6272 else
6273 eval HAVE_SIGNED_${GLTYPE}=0
6274 fi
6275 done
6276
6277
6278 gl_cv_type_ptrdiff_t_signed=yes
6279 gl_cv_type_size_t_signed=no
6280
6281
6282
6283
6284
6285
6286
6287 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6288 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6289 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6290 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 eval gl_cv_type_${gltype}_suffix=no
6294 eval result=\$gl_cv_type_${gltype}_signed
6295 if test "$result" = yes; then
6296 glsufu=
6297 else
6298 glsufu=u
6299 fi
6300 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6301 case $glsuf in
6302 '') gltype1='int';;
6303 l) gltype1='long int';;
6304 ll) gltype1='long long int';;
6305 i64) gltype1='__int64';;
6306 u) gltype1='unsigned int';;
6307 ul) gltype1='unsigned long int';;
6308 ull) gltype1='unsigned long long int';;
6309 ui64)gltype1='unsigned __int64';;
6310 esac
6311 cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h. */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h. */
6317
6318 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6319 included before <wchar.h>. */
6320 #include <stddef.h>
6321 #include <signal.h>
6322 #if HAVE_WCHAR_H
6323 # include <stdio.h>
6324 # include <time.h>
6325 # include <wchar.h>
6326 #endif
6327
6328 extern $gltype foo;
6329 extern $gltype1 foo;
6330 int
6331 main ()
6332 {
6333
6334 ;
6335 return 0;
6336 }
6337 _ACEOF
6338 rm -f conftest.$ac_objext
6339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6340 (eval $ac_compile) 2>conftest.er1
6341 ac_status=$?
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } &&
6347 { ac_try='test -z "$ac_c_werror_flag"
6348 || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6350 (eval $ac_try) 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356 (eval $ac_try) 2>&5
6357 ac_status=$?
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 eval gl_cv_type_${gltype}_suffix=\$glsuf
6361 else
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6364
6365 fi
6366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6367 eval result=\$gl_cv_type_${gltype}_suffix
6368 test "$result" != no && break
6369 done
6370 fi
6371 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6372 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6373 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6374 eval result=\$gl_cv_type_${gltype}_suffix
6375 test "$result" = no && result=
6376 eval ${GLTYPE}_SUFFIX=\$result
6377 cat >>confdefs.h <<_ACEOF
6378 #define ${GLTYPE}_SUFFIX $result
6379 _ACEOF
6380
6381 done
6382
6383
6384
6385 STDINT_H=stdint.h
6386 fi
6387
6388
6389
6390
6391
6392
6393
6394 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6395 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6396 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6398 else
6399 cat >conftest.$ac_ext <<_ACEOF
6400 #include <wchar.h>
6401 wchar_t w;
6402 _ACEOF
6403 rm -f conftest.$ac_objext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6405 (eval $ac_compile) 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } &&
6412 { ac_try='test -z "$ac_c_werror_flag"
6413 || test ! -s conftest.err'
6414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6415 (eval $ac_try) 2>&5
6416 ac_status=$?
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest.$ac_objext'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 (eval $ac_try) 2>&5
6422 ac_status=$?
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; }; then
6425 gl_cv_header_wchar_h_standalone=yes
6426 else
6427 echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6429
6430 gl_cv_header_wchar_h_standalone=no
6431 fi
6432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6433 fi
6434 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6435 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6436 if test $gl_cv_header_wchar_h_standalone != yes; then
6437 WCHAR_H=wchar.h
6438 fi
6439
6440
6441 :
6442
6443
6444
6445
6446
6447 if test $ac_cv_header_wchar_h = yes; then
6448 HAVE_WCHAR_H=1
6449 else
6450 HAVE_WCHAR_H=0
6451 fi
6452
6453
6454
6455
6456 :
6457
6458
6459
6460
6461
6462
6463
6464 if test $gl_cv_have_include_next = yes; then
6465 gl_cv_next_wchar_h='<'wchar.h'>'
6466 else
6467 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6468 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6469 if test "${gl_cv_next_wchar_h+set}" = set; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 else
6472
6473 if test $ac_cv_header_wchar_h = yes; then
6474 cat >conftest.$ac_ext <<_ACEOF
6475 /* confdefs.h. */
6476 _ACEOF
6477 cat confdefs.h >>conftest.$ac_ext
6478 cat >>conftest.$ac_ext <<_ACEOF
6479 /* end confdefs.h. */
6480 #include <wchar.h>
6481
6482 _ACEOF
6483 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484 sed -n '\#/wchar.h#{
6485 s#.*"\(.*/wchar.h\)".*#\1#
6486 s#^/[^/]#//&#
6487 p
6488 q
6489 }'`'"'
6490 else
6491 gl_cv_next_wchar_h='<'wchar.h'>'
6492 fi
6493
6494 fi
6495 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6496 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6497 fi
6498 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6499
6500
6501
6502
6503
6504
6505
6506
6507 gltests_libdeps=
6508 gltests_ltlibdeps=
6509
6510
6511
6512 gl_source_base='tests'
6513
6514
6515
6516
6517 LIBGNU_LIBDEPS="$gl_libdeps"
6518
6519 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6520
6521
6522
6523 # For Makefile dependencies.
6524 GNULIB_STDINT_H=
6525 if test x"$STDINT_H" != x; then
6526 GNULIB_STDINT_H=gnulib/$STDINT_H
6527 fi
6528
6529
6530 PACKAGE=gdb
6531
6532 cat >>confdefs.h <<_ACEOF
6533 #define PACKAGE "$PACKAGE"
6534 _ACEOF
6535
6536
6537
6538 # GDB does not use automake, but gnulib does. This line lets us
6539 # generate its Makefile.in.
6540 am__api_version="1.9"
6541 # Find a good install program. We prefer a C program (faster),
6542 # so one script is as good as another. But avoid the broken or
6543 # incompatible versions:
6544 # SysV /etc/install, /usr/sbin/install
6545 # SunOS /usr/etc/install
6546 # IRIX /sbin/install
6547 # AIX /bin/install
6548 # AmigaOS /C/install, which installs bootblocks on floppy discs
6549 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6550 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6551 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6552 # OS/2's system install, which has a completely different semantic
6553 # ./install, which can be erroneously created by make from ./install.sh.
6554 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6555 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6556 if test -z "$INSTALL"; then
6557 if test "${ac_cv_path_install+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561 for as_dir in $PATH
6562 do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 # Account for people who put trailing slashes in PATH elements.
6566 case $as_dir/ in
6567 ./ | .// | /cC/* | \
6568 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6569 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6570 /usr/ucb/* ) ;;
6571 *)
6572 # OSF1 and SCO ODT 3.0 have their own names for install.
6573 # Don't use installbsd from OSF since it installs stuff as root
6574 # by default.
6575 for ac_prog in ginstall scoinst install; do
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6578 if test $ac_prog = install &&
6579 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6580 # AIX install. It has an incompatible calling convention.
6581 :
6582 elif test $ac_prog = install &&
6583 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6584 # program-specific install script used by HP pwplus--don't use.
6585 :
6586 else
6587 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6588 break 3
6589 fi
6590 fi
6591 done
6592 done
6593 ;;
6594 esac
6595 done
6596
6597
6598 fi
6599 if test "${ac_cv_path_install+set}" = set; then
6600 INSTALL=$ac_cv_path_install
6601 else
6602 # As a last resort, use the slow shell script. We don't cache a
6603 # path for INSTALL within a source directory, because that will
6604 # break other packages using the cache if that directory is
6605 # removed, or if the path is relative.
6606 INSTALL=$ac_install_sh
6607 fi
6608 fi
6609 echo "$as_me:$LINENO: result: $INSTALL" >&5
6610 echo "${ECHO_T}$INSTALL" >&6
6611
6612 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6613 # It thinks the first close brace ends the variable substitution.
6614 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6615
6616 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6617
6618 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6619
6620 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6621 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6622 # Just in case
6623 sleep 1
6624 echo timestamp > conftest.file
6625 # Do `set' in a subshell so we don't clobber the current shell's
6626 # arguments. Must try -L first in case configure is actually a
6627 # symlink; some systems play weird games with the mod time of symlinks
6628 # (eg FreeBSD returns the mod time of the symlink's containing
6629 # directory).
6630 if (
6631 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6632 if test "$*" = "X"; then
6633 # -L didn't work.
6634 set X `ls -t $srcdir/configure conftest.file`
6635 fi
6636 rm -f conftest.file
6637 if test "$*" != "X $srcdir/configure conftest.file" \
6638 && test "$*" != "X conftest.file $srcdir/configure"; then
6639
6640 # If neither matched, then we have a broken ls. This can happen
6641 # if, for instance, CONFIG_SHELL is bash and it inherits a
6642 # broken ls alias from the environment. This has actually
6643 # happened. Such a system could not be considered "sane".
6644 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6645 alias in your environment" >&5
6646 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6647 alias in your environment" >&2;}
6648 { (exit 1); exit 1; }; }
6649 fi
6650
6651 test "$2" = conftest.file
6652 )
6653 then
6654 # Ok.
6655 :
6656 else
6657 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6658 Check your system clock" >&5
6659 echo "$as_me: error: newly created file is older than distributed files!
6660 Check your system clock" >&2;}
6661 { (exit 1); exit 1; }; }
6662 fi
6663 echo "$as_me:$LINENO: result: yes" >&5
6664 echo "${ECHO_T}yes" >&6
6665 test "$program_prefix" != NONE &&
6666 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6667 # Use a double $ so make ignores it.
6668 test "$program_suffix" != NONE &&
6669 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6670 # Double any \ or $. echo might interpret backslashes.
6671 # By default was `s,x,x', remove it if useless.
6672 cat <<\_ACEOF >conftest.sed
6673 s/[\\$]/&&/g;s/;s,x,x,$//
6674 _ACEOF
6675 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6676 rm conftest.sed
6677
6678 # expand $ac_aux_dir to an absolute path
6679 am_aux_dir=`cd $ac_aux_dir && pwd`
6680
6681 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6682 # Use eval to expand $SHELL
6683 if eval "$MISSING --run true"; then
6684 am_missing_run="$MISSING --run "
6685 else
6686 am_missing_run=
6687 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6688 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6689 fi
6690
6691 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6692 # We used to keeping the `.' as first argument, in order to
6693 # allow $(mkdir_p) to be used without argument. As in
6694 # $(mkdir_p) $(somedir)
6695 # where $(somedir) is conditionally defined. However this is wrong
6696 # for two reasons:
6697 # 1. if the package is installed by a user who cannot write `.'
6698 # make install will fail,
6699 # 2. the above comment should most certainly read
6700 # $(mkdir_p) $(DESTDIR)$(somedir)
6701 # so it does not work when $(somedir) is undefined and
6702 # $(DESTDIR) is not.
6703 # To support the latter case, we have to write
6704 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6705 # so the `.' trick is pointless.
6706 mkdir_p='mkdir -p --'
6707 else
6708 # On NextStep and OpenStep, the `mkdir' command does not
6709 # recognize any option. It will interpret all options as
6710 # directories to create, and then abort because `.' already
6711 # exists.
6712 for d in ./-p ./--version;
6713 do
6714 test -d $d && rmdir $d
6715 done
6716 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6717 if test -f "$ac_aux_dir/mkinstalldirs"; then
6718 mkdir_p='$(mkinstalldirs)'
6719 else
6720 mkdir_p='$(install_sh) -d'
6721 fi
6722 fi
6723
6724 for ac_prog in gawk mawk nawk awk
6725 do
6726 # Extract the first word of "$ac_prog", so it can be a program name with args.
6727 set dummy $ac_prog; ac_word=$2
6728 echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730 if test "${ac_cv_prog_AWK+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733 if test -n "$AWK"; then
6734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743 ac_cv_prog_AWK="$ac_prog"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6746 fi
6747 done
6748 done
6749
6750 fi
6751 fi
6752 AWK=$ac_cv_prog_AWK
6753 if test -n "$AWK"; then
6754 echo "$as_me:$LINENO: result: $AWK" >&5
6755 echo "${ECHO_T}$AWK" >&6
6756 else
6757 echo "$as_me:$LINENO: result: no" >&5
6758 echo "${ECHO_T}no" >&6
6759 fi
6760
6761 test -n "$AWK" && break
6762 done
6763
6764 ac_config_commands="$ac_config_commands depfiles"
6765
6766
6767 am_make=${MAKE-make}
6768 cat > confinc << 'END'
6769 am__doit:
6770 @echo done
6771 .PHONY: am__doit
6772 END
6773 # If we don't find an include directive, just comment out the code.
6774 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6775 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6776 am__include="#"
6777 am__quote=
6778 _am_result=none
6779 # First try GNU make style include.
6780 echo "include confinc" > confmf
6781 # We grep out `Entering directory' and `Leaving directory'
6782 # messages which can occur if `w' ends up in MAKEFLAGS.
6783 # In particular we don't look at `^make:' because GNU make might
6784 # be invoked under some other name (usually "gmake"), in which
6785 # case it prints its new name instead of `make'.
6786 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6787 am__include=include
6788 am__quote=
6789 _am_result=GNU
6790 fi
6791 # Now try BSD make style include.
6792 if test "$am__include" = "#"; then
6793 echo '.include "confinc"' > confmf
6794 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6795 am__include=.include
6796 am__quote="\""
6797 _am_result=BSD
6798 fi
6799 fi
6800
6801
6802 echo "$as_me:$LINENO: result: $_am_result" >&5
6803 echo "${ECHO_T}$_am_result" >&6
6804 rm -f confinc confmf
6805
6806 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6807 if test "${enable_dependency_tracking+set}" = set; then
6808 enableval="$enable_dependency_tracking"
6809
6810 fi;
6811 if test "x$enable_dependency_tracking" != xno; then
6812 am_depcomp="$ac_aux_dir/depcomp"
6813 AMDEPBACKSLASH='\'
6814 fi
6815
6816
6817 if test "x$enable_dependency_tracking" != xno; then
6818 AMDEP_TRUE=
6819 AMDEP_FALSE='#'
6820 else
6821 AMDEP_TRUE='#'
6822 AMDEP_FALSE=
6823 fi
6824
6825
6826
6827 # test to see if srcdir already configured
6828 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6829 test -f $srcdir/config.status; then
6830 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6831 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6832 { (exit 1); exit 1; }; }
6833 fi
6834
6835 # test whether we have cygpath
6836 if test -z "$CYGPATH_W"; then
6837 if (cygpath --version) >/dev/null 2>/dev/null; then
6838 CYGPATH_W='cygpath -w'
6839 else
6840 CYGPATH_W=echo
6841 fi
6842 fi
6843
6844
6845 # Define the identity of the package.
6846 PACKAGE=gdb
6847 VERSION=UNUSED-VERSION
6848
6849
6850 # Some tools Automake needs.
6851
6852 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6853
6854
6855 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6856
6857
6858 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6859
6860
6861 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6862
6863
6864 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6865
6866 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6867
6868 # Installed binaries are usually stripped using `strip' when the user
6869 # run `make install-strip'. However `strip' might not be the right
6870 # tool to use in cross-compilation environments, therefore Automake
6871 # will honor the `STRIP' environment variable to overrule this program.
6872 if test "$cross_compiling" != no; then
6873 if test -n "$ac_tool_prefix"; then
6874 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6875 set dummy ${ac_tool_prefix}strip; ac_word=$2
6876 echo "$as_me:$LINENO: checking for $ac_word" >&5
6877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6878 if test "${ac_cv_prog_STRIP+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 if test -n "$STRIP"; then
6882 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895 done
6896 done
6897
6898 fi
6899 fi
6900 STRIP=$ac_cv_prog_STRIP
6901 if test -n "$STRIP"; then
6902 echo "$as_me:$LINENO: result: $STRIP" >&5
6903 echo "${ECHO_T}$STRIP" >&6
6904 else
6905 echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6
6907 fi
6908
6909 fi
6910 if test -z "$ac_cv_prog_STRIP"; then
6911 ac_ct_STRIP=$STRIP
6912 # Extract the first word of "strip", so it can be a program name with args.
6913 set dummy strip; ac_word=$2
6914 echo "$as_me:$LINENO: checking for $ac_word" >&5
6915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 else
6919 if test -n "$ac_ct_STRIP"; then
6920 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925 IFS=$as_save_IFS
6926 test -z "$as_dir" && as_dir=.
6927 for ac_exec_ext in '' $ac_executable_extensions; do
6928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6929 ac_cv_prog_ac_ct_STRIP="strip"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6931 break 2
6932 fi
6933 done
6934 done
6935
6936 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6937 fi
6938 fi
6939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6940 if test -n "$ac_ct_STRIP"; then
6941 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6942 echo "${ECHO_T}$ac_ct_STRIP" >&6
6943 else
6944 echo "$as_me:$LINENO: result: no" >&5
6945 echo "${ECHO_T}no" >&6
6946 fi
6947
6948 STRIP=$ac_ct_STRIP
6949 else
6950 STRIP="$ac_cv_prog_STRIP"
6951 fi
6952
6953 fi
6954 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6955
6956 # We need awk for the "check" target. The system "awk" is bad on
6957 # some platforms.
6958 # Always define AMTAR for backward compatibility.
6959
6960 AMTAR=${AMTAR-"${am_missing_run}tar"}
6961
6962 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6963
6964
6965
6966
6967 depcc="$CC" am_compiler_list=
6968
6969 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6970 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6971 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6975 # We make a subdir and do the tests there. Otherwise we can end up
6976 # making bogus files that we don't know about and never remove. For
6977 # instance it was reported that on HP-UX the gcc test will end up
6978 # making a dummy file named `D' -- because `-MD' means `put the output
6979 # in D'.
6980 mkdir conftest.dir
6981 # Copy depcomp to subdir because otherwise we won't find it if we're
6982 # using a relative directory.
6983 cp "$am_depcomp" conftest.dir
6984 cd conftest.dir
6985 # We will build objects and dependencies in a subdirectory because
6986 # it helps to detect inapplicable dependency modes. For instance
6987 # both Tru64's cc and ICC support -MD to output dependencies as a
6988 # side effect of compilation, but ICC will put the dependencies in
6989 # the current directory while Tru64 will put them in the object
6990 # directory.
6991 mkdir sub
6992
6993 am_cv_CC_dependencies_compiler_type=none
6994 if test "$am_compiler_list" = ""; then
6995 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6996 fi
6997 for depmode in $am_compiler_list; do
6998 # Setup a source with many dependencies, because some compilers
6999 # like to wrap large dependency lists on column 80 (with \), and
7000 # we should not choose a depcomp mode which is confused by this.
7001 #
7002 # We need to recreate these files for each test, as the compiler may
7003 # overwrite some of them when testing with obscure command lines.
7004 # This happens at least with the AIX C compiler.
7005 : > sub/conftest.c
7006 for i in 1 2 3 4 5 6; do
7007 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7008 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7009 # Solaris 8's {/usr,}/bin/sh.
7010 touch sub/conftst$i.h
7011 done
7012 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7013
7014 case $depmode in
7015 nosideeffect)
7016 # after this tag, mechanisms are not by side-effect, so they'll
7017 # only be used when explicitly requested
7018 if test "x$enable_dependency_tracking" = xyes; then
7019 continue
7020 else
7021 break
7022 fi
7023 ;;
7024 none) break ;;
7025 esac
7026 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7027 # mode. It turns out that the SunPro C++ compiler does not properly
7028 # handle `-M -o', and we need to detect this.
7029 if depmode=$depmode \
7030 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7032 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7033 >/dev/null 2>conftest.err &&
7034 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7035 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7036 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7037 # icc doesn't choke on unknown options, it will just issue warnings
7038 # or remarks (even with -Werror). So we grep stderr for any message
7039 # that says an option was ignored or not supported.
7040 # When given -MP, icc 7.0 and 7.1 complain thusly:
7041 # icc: Command line warning: ignoring option '-M'; no argument required
7042 # The diagnosis changed in icc 8.0:
7043 # icc: Command line remark: option '-MP' not supported
7044 if (grep 'ignoring option' conftest.err ||
7045 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7046 am_cv_CC_dependencies_compiler_type=$depmode
7047 break
7048 fi
7049 fi
7050 done
7051
7052 cd ..
7053 rm -rf conftest.dir
7054 else
7055 am_cv_CC_dependencies_compiler_type=none
7056 fi
7057
7058 fi
7059 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7060 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7061 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7062
7063
7064
7065 if
7066 test "x$enable_dependency_tracking" != xno \
7067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7068 am__fastdepCC_TRUE=
7069 am__fastdepCC_FALSE='#'
7070 else
7071 am__fastdepCC_TRUE='#'
7072 am__fastdepCC_FALSE=
7073 fi
7074
7075
7076
7077
7078 debugdir=${libdir}/debug
7079
7080
7081 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7082 if test "${with_separate_debug_dir+set}" = set; then
7083 withval="$with_separate_debug_dir"
7084 debugdir="${withval}"
7085 fi;
7086
7087
7088 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7089 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7090 ac_define_dir=`eval echo $debugdir`
7091 ac_define_dir=`eval echo $ac_define_dir`
7092
7093 cat >>confdefs.h <<_ACEOF
7094 #define DEBUGDIR "$ac_define_dir"
7095 _ACEOF
7096
7097
7098 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7099
7100 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7101 if test "x$prefix" = xNONE; then
7102 test_prefix=/usr/local
7103 else
7104 test_prefix=$prefix
7105 fi
7106 else
7107 test_prefix=$exec_prefix
7108 fi
7109 case ${debugdir} in
7110 "${test_prefix}"|"${test_prefix}/"*|\
7111 '${exec_prefix}'|'${exec_prefix}/'*)
7112
7113 cat >>confdefs.h <<\_ACEOF
7114 #define DEBUGDIR_RELOCATABLE 1
7115 _ACEOF
7116
7117 ;;
7118 esac
7119
7120
7121
7122 subdirs="$subdirs doc testsuite"
7123
7124
7125 # Check whether to support alternative target configurations
7126 # Check whether --enable-targets or --disable-targets was given.
7127 if test "${enable_targets+set}" = set; then
7128 enableval="$enable_targets"
7129 case "${enableval}" in
7130 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7131 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7132 { (exit 1); exit 1; }; }
7133 ;;
7134 no) enable_targets= ;;
7135 *) enable_targets=$enableval ;;
7136 esac
7137 fi;
7138
7139 # Check whether to enable 64-bit support on 32-bit hosts
7140 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7141 if test "${enable_64_bit_bfd+set}" = set; then
7142 enableval="$enable_64_bit_bfd"
7143 case "${enableval}" in
7144 yes) want64=true ;;
7145 no) want64=false ;;
7146 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7147 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7148 { (exit 1); exit 1; }; } ;;
7149 esac
7150 else
7151 want64=false
7152 fi;
7153 # Provide defaults for some variables set by the per-host and per-target
7154 # configuration.
7155 gdb_host_obs=posix-hdep.o
7156
7157 if test "${target}" = "${host}"; then
7158 gdb_native=yes
7159 else
7160 gdb_native=no
7161 fi
7162
7163 . $srcdir/configure.host
7164
7165 # Accumulate some settings from configure.tgt over all enabled targets
7166
7167 TARGET_OBS=
7168 all_targets=
7169
7170 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7171 do
7172 if test "$targ_alias" = "all"; then
7173 all_targets=true
7174 else
7175 # Canonicalize the secondary target names.
7176 result=`$ac_config_sub $targ_alias 2>/dev/null`
7177 if test -n "$result"; then
7178 targ=$result
7179 else
7180 targ=$targ_alias
7181 fi
7182
7183 . ${srcdir}/configure.tgt
7184
7185 # Target-specific object files
7186 for i in ${gdb_target_obs}; do
7187 case " $TARGET_OBS " in
7188 *" ${i} "*) ;;
7189 *)
7190 TARGET_OBS="$TARGET_OBS ${i}"
7191 ;;
7192 esac
7193 done
7194
7195 # Check whether this target needs 64-bit CORE_ADDR
7196 if test x${want64} = xfalse; then
7197 . ${srcdir}/../bfd/config.bfd
7198 fi
7199 fi
7200 done
7201
7202 if test x${all_targets} = xtrue; then
7203
7204 # We want all 64-bit targets if we either:
7205 # - run on a 64-bit host or
7206 # - already require 64-bit support for some other target or
7207 # - the --enable-64-bit-bfd option was supplied
7208 # Otherwise we only support all 32-bit targets.
7209 #
7210 # NOTE: This test must be in sync with the corresponding
7211 # tests in BFD!
7212
7213 if test x${want64} = xfalse; then
7214 echo "$as_me:$LINENO: checking for long" >&5
7215 echo $ECHO_N "checking for long... $ECHO_C" >&6
7216 if test "${ac_cv_type_long+set}" = set; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219 cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h. */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7225 $ac_includes_default
7226 int
7227 main ()
7228 {
7229 if ((long *) 0)
7230 return 0;
7231 if (sizeof (long))
7232 return 0;
7233 ;
7234 return 0;
7235 }
7236 _ACEOF
7237 rm -f conftest.$ac_objext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7239 (eval $ac_compile) 2>conftest.er1
7240 ac_status=$?
7241 grep -v '^ *+' conftest.er1 >conftest.err
7242 rm -f conftest.er1
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try='test -z "$ac_c_werror_flag"
7247 || test ! -s conftest.err'
7248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 (eval $ac_try) 2>&5
7250 ac_status=$?
7251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7252 (exit $ac_status); }; } &&
7253 { ac_try='test -s conftest.$ac_objext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 (eval $ac_try) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7259 ac_cv_type_long=yes
7260 else
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7263
7264 ac_cv_type_long=no
7265 fi
7266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7267 fi
7268 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7269 echo "${ECHO_T}$ac_cv_type_long" >&6
7270
7271 echo "$as_me:$LINENO: checking size of long" >&5
7272 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7273 if test "${ac_cv_sizeof_long+set}" = set; then
7274 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 else
7276 if test "$ac_cv_type_long" = yes; then
7277 # The cast to unsigned long works around a bug in the HP C Compiler
7278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7280 # This bug is HP SR number 8606223364.
7281 if test "$cross_compiling" = yes; then
7282 # Depending upon the size, compute the lo and hi bounds.
7283 cat >conftest.$ac_ext <<_ACEOF
7284 /* confdefs.h. */
7285 _ACEOF
7286 cat confdefs.h >>conftest.$ac_ext
7287 cat >>conftest.$ac_ext <<_ACEOF
7288 /* end confdefs.h. */
7289 $ac_includes_default
7290 int
7291 main ()
7292 {
7293 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7294 test_array [0] = 0
7295
7296 ;
7297 return 0;
7298 }
7299 _ACEOF
7300 rm -f conftest.$ac_objext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7302 (eval $ac_compile) 2>conftest.er1
7303 ac_status=$?
7304 grep -v '^ *+' conftest.er1 >conftest.err
7305 rm -f conftest.er1
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -z "$ac_c_werror_flag"
7310 || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 (eval $ac_try) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try='test -s conftest.$ac_objext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318 (eval $ac_try) 2>&5
7319 ac_status=$?
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 ac_lo=0 ac_mid=0
7323 while :; do
7324 cat >conftest.$ac_ext <<_ACEOF
7325 /* confdefs.h. */
7326 _ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7330 $ac_includes_default
7331 int
7332 main ()
7333 {
7334 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7335 test_array [0] = 0
7336
7337 ;
7338 return 0;
7339 }
7340 _ACEOF
7341 rm -f conftest.$ac_objext
7342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } &&
7350 { ac_try='test -z "$ac_c_werror_flag"
7351 || test ! -s conftest.err'
7352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 (eval $ac_try) 2>&5
7354 ac_status=$?
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; } &&
7357 { ac_try='test -s conftest.$ac_objext'
7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7359 (eval $ac_try) 2>&5
7360 ac_status=$?
7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); }; }; then
7363 ac_hi=$ac_mid; break
7364 else
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7367
7368 ac_lo=`expr $ac_mid + 1`
7369 if test $ac_lo -le $ac_mid; then
7370 ac_lo= ac_hi=
7371 break
7372 fi
7373 ac_mid=`expr 2 '*' $ac_mid + 1`
7374 fi
7375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7376 done
7377 else
7378 echo "$as_me: failed program was:" >&5
7379 sed 's/^/| /' conftest.$ac_ext >&5
7380
7381 cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h. */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h. */
7387 $ac_includes_default
7388 int
7389 main ()
7390 {
7391 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7392 test_array [0] = 0
7393
7394 ;
7395 return 0;
7396 }
7397 _ACEOF
7398 rm -f conftest.$ac_objext
7399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7400 (eval $ac_compile) 2>conftest.er1
7401 ac_status=$?
7402 grep -v '^ *+' conftest.er1 >conftest.err
7403 rm -f conftest.er1
7404 cat conftest.err >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -z "$ac_c_werror_flag"
7408 || test ! -s conftest.err'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7410 (eval $ac_try) 2>&5
7411 ac_status=$?
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; } &&
7414 { ac_try='test -s conftest.$ac_objext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
7420 ac_hi=-1 ac_mid=-1
7421 while :; do
7422 cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h. */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7429 int
7430 main ()
7431 {
7432 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7433 test_array [0] = 0
7434
7435 ;
7436 return 0;
7437 }
7438 _ACEOF
7439 rm -f conftest.$ac_objext
7440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7441 (eval $ac_compile) 2>conftest.er1
7442 ac_status=$?
7443 grep -v '^ *+' conftest.er1 >conftest.err
7444 rm -f conftest.er1
7445 cat conftest.err >&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } &&
7448 { ac_try='test -z "$ac_c_werror_flag"
7449 || test ! -s conftest.err'
7450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7451 (eval $ac_try) 2>&5
7452 ac_status=$?
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); }; } &&
7455 { ac_try='test -s conftest.$ac_objext'
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 (eval $ac_try) 2>&5
7458 ac_status=$?
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; }; then
7461 ac_lo=$ac_mid; break
7462 else
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7465
7466 ac_hi=`expr '(' $ac_mid ')' - 1`
7467 if test $ac_mid -le $ac_hi; then
7468 ac_lo= ac_hi=
7469 break
7470 fi
7471 ac_mid=`expr 2 '*' $ac_mid`
7472 fi
7473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7474 done
7475 else
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7478
7479 ac_lo= ac_hi=
7480 fi
7481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7484 # Binary search between lo and hi bounds.
7485 while test "x$ac_lo" != "x$ac_hi"; do
7486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7487 cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h. */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 $ac_includes_default
7494 int
7495 main ()
7496 {
7497 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7498 test_array [0] = 0
7499
7500 ;
7501 return 0;
7502 }
7503 _ACEOF
7504 rm -f conftest.$ac_objext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7506 (eval $ac_compile) 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try='test -z "$ac_c_werror_flag"
7514 || test ! -s conftest.err'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 (eval $ac_try) 2>&5
7517 ac_status=$?
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; } &&
7520 { ac_try='test -s conftest.$ac_objext'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 (eval $ac_try) 2>&5
7523 ac_status=$?
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7526 ac_hi=$ac_mid
7527 else
7528 echo "$as_me: failed program was:" >&5
7529 sed 's/^/| /' conftest.$ac_ext >&5
7530
7531 ac_lo=`expr '(' $ac_mid ')' + 1`
7532 fi
7533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7534 done
7535 case $ac_lo in
7536 ?*) ac_cv_sizeof_long=$ac_lo;;
7537 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7538 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7539 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7540 See \`config.log' for more details." >&5
7541 echo "$as_me: error: cannot compute sizeof (long), 77
7542 See \`config.log' for more details." >&2;}
7543 { (exit 1); exit 1; }; }; } ;;
7544 esac
7545 else
7546 if test "$cross_compiling" = yes; then
7547 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7548 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7549 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7550 See \`config.log' for more details." >&5
7551 echo "$as_me: error: cannot run test program while cross compiling
7552 See \`config.log' for more details." >&2;}
7553 { (exit 1); exit 1; }; }; }
7554 else
7555 cat >conftest.$ac_ext <<_ACEOF
7556 /* confdefs.h. */
7557 _ACEOF
7558 cat confdefs.h >>conftest.$ac_ext
7559 cat >>conftest.$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7562 long longval () { return (long) (sizeof (long)); }
7563 unsigned long ulongval () { return (long) (sizeof (long)); }
7564 #include <stdio.h>
7565 #include <stdlib.h>
7566 int
7567 main ()
7568 {
7569
7570 FILE *f = fopen ("conftest.val", "w");
7571 if (! f)
7572 exit (1);
7573 if (((long) (sizeof (long))) < 0)
7574 {
7575 long i = longval ();
7576 if (i != ((long) (sizeof (long))))
7577 exit (1);
7578 fprintf (f, "%ld\n", i);
7579 }
7580 else
7581 {
7582 unsigned long i = ulongval ();
7583 if (i != ((long) (sizeof (long))))
7584 exit (1);
7585 fprintf (f, "%lu\n", i);
7586 }
7587 exit (ferror (f) || fclose (f) != 0);
7588
7589 ;
7590 return 0;
7591 }
7592 _ACEOF
7593 rm -f conftest$ac_exeext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7595 (eval $ac_link) 2>&5
7596 ac_status=$?
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7600 (eval $ac_try) 2>&5
7601 ac_status=$?
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 ac_cv_sizeof_long=`cat conftest.val`
7605 else
7606 echo "$as_me: program exited with status $ac_status" >&5
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7609
7610 ( exit $ac_status )
7611 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7612 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7613 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7614 See \`config.log' for more details." >&5
7615 echo "$as_me: error: cannot compute sizeof (long), 77
7616 See \`config.log' for more details." >&2;}
7617 { (exit 1); exit 1; }; }; }
7618 fi
7619 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7620 fi
7621 fi
7622 rm -f conftest.val
7623 else
7624 ac_cv_sizeof_long=0
7625 fi
7626 fi
7627 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7628 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7629 cat >>confdefs.h <<_ACEOF
7630 #define SIZEOF_LONG $ac_cv_sizeof_long
7631 _ACEOF
7632
7633
7634 if test "x${ac_cv_sizeof_long}" = "x8"; then
7635 want64=true
7636 fi
7637 fi
7638 if test x${want64} = xtrue; then
7639 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7640 else
7641 TARGET_OBS='$(ALL_TARGET_OBS)'
7642 fi
7643 fi
7644
7645
7646
7647 # For other settings, only the main target counts.
7648 gdb_sim=
7649 gdb_osabi=
7650 build_gdbserver=
7651 targ=$target; . ${srcdir}/configure.tgt
7652
7653 # Fetch the default architecture and default target vector from BFD.
7654 targ=$target; . $srcdir/../bfd/config.bfd
7655
7656 # We only want the first architecture, so strip off the others if
7657 # there is more than one.
7658 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7659
7660 if test "x$targ_archs" != x; then
7661
7662 cat >>confdefs.h <<_ACEOF
7663 #define DEFAULT_BFD_ARCH $targ_archs
7664 _ACEOF
7665
7666 fi
7667 if test "x$targ_defvec" != x; then
7668
7669 cat >>confdefs.h <<_ACEOF
7670 #define DEFAULT_BFD_VEC $targ_defvec
7671 _ACEOF
7672
7673 fi
7674
7675 # The CLI cannot be disabled yet, but may be in the future.
7676
7677 # Enable CLI.
7678 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7679 if test "${enable_gdbcli+set}" = set; then
7680 enableval="$enable_gdbcli"
7681 case $enableval in
7682 yes)
7683 ;;
7684 no)
7685 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7686 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7687 { (exit 1); exit 1; }; } ;;
7688 *)
7689 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7690 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7691 { (exit 1); exit 1; }; } ;;
7692 esac
7693 else
7694 enable_gdbcli=yes
7695 fi;
7696 if test x"$enable_gdbcli" = xyes; then
7697 if test -d $srcdir/cli; then
7698 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7699 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7700 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7701 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7702 fi
7703 fi
7704
7705 # Enable MI.
7706 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7707 if test "${enable_gdbmi+set}" = set; then
7708 enableval="$enable_gdbmi"
7709 case $enableval in
7710 yes | no)
7711 ;;
7712 *)
7713 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7714 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7715 { (exit 1); exit 1; }; } ;;
7716 esac
7717 else
7718 enable_gdbmi=yes
7719 fi;
7720 if test x"$enable_gdbmi" = xyes; then
7721 if test -d $srcdir/mi; then
7722 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7723 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7724 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7725 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7726 fi
7727 fi
7728
7729 # Enable TUI.
7730 # Check whether --enable-tui or --disable-tui was given.
7731 if test "${enable_tui+set}" = set; then
7732 enableval="$enable_tui"
7733 case $enableval in
7734 yes | no | auto)
7735 ;;
7736 *)
7737 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7738 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7739 { (exit 1); exit 1; }; } ;;
7740 esac
7741 else
7742 enable_tui=auto
7743 fi;
7744
7745 # Enable gdbtk.
7746 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7747 if test "${enable_gdbtk+set}" = set; then
7748 enableval="$enable_gdbtk"
7749 case $enableval in
7750 yes | no)
7751 ;;
7752 *)
7753 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7754 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7755 { (exit 1); exit 1; }; } ;;
7756 esac
7757 else
7758 if test -d $srcdir/gdbtk; then
7759 enable_gdbtk=yes
7760 else
7761 enable_gdbtk=no
7762 fi
7763 fi;
7764 # We unconditionally disable gdbtk tests on selected platforms.
7765 case $host_os in
7766 go32* | windows*)
7767 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7768 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7769 enable_gdbtk=no ;;
7770 esac
7771
7772 # Libunwind support.
7773
7774 # Check whether --with-libunwind or --without-libunwind was given.
7775 if test "${with_libunwind+set}" = set; then
7776 withval="$with_libunwind"
7777 case "${withval}" in
7778 yes) enable_libunwind=yes ;;
7779 no) enable_libunwind=no ;;
7780 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7781 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7782 { (exit 1); exit 1; }; } ;;
7783 esac
7784 else
7785
7786
7787
7788 for ac_header in libunwind.h libunwind-ia64.h
7789 do
7790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7792 echo "$as_me:$LINENO: checking for $ac_header" >&5
7793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7794 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7795 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 fi
7797 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7798 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7799 else
7800 # Is the header compilable?
7801 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7803 cat >conftest.$ac_ext <<_ACEOF
7804 /* confdefs.h. */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7809 $ac_includes_default
7810 #include <$ac_header>
7811 _ACEOF
7812 rm -f conftest.$ac_objext
7813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7814 (eval $ac_compile) 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -z "$ac_c_werror_flag"
7822 || test ! -s conftest.err'
7823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824 (eval $ac_try) 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; } &&
7828 { ac_try='test -s conftest.$ac_objext'
7829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830 (eval $ac_try) 2>&5
7831 ac_status=$?
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); }; }; then
7834 ac_header_compiler=yes
7835 else
7836 echo "$as_me: failed program was:" >&5
7837 sed 's/^/| /' conftest.$ac_ext >&5
7838
7839 ac_header_compiler=no
7840 fi
7841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7842 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7843 echo "${ECHO_T}$ac_header_compiler" >&6
7844
7845 # Is the header present?
7846 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7848 cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h. */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 #include <$ac_header>
7855 _ACEOF
7856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7858 ac_status=$?
7859 grep -v '^ *+' conftest.er1 >conftest.err
7860 rm -f conftest.er1
7861 cat conftest.err >&5
7862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863 (exit $ac_status); } >/dev/null; then
7864 if test -s conftest.err; then
7865 ac_cpp_err=$ac_c_preproc_warn_flag
7866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7867 else
7868 ac_cpp_err=
7869 fi
7870 else
7871 ac_cpp_err=yes
7872 fi
7873 if test -z "$ac_cpp_err"; then
7874 ac_header_preproc=yes
7875 else
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7878
7879 ac_header_preproc=no
7880 fi
7881 rm -f conftest.err conftest.$ac_ext
7882 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7883 echo "${ECHO_T}$ac_header_preproc" >&6
7884
7885 # So? What about this header?
7886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7887 yes:no: )
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7892 ac_header_preproc=yes
7893 ;;
7894 no:yes:* )
7895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7898 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7902 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7907 (
7908 cat <<\_ASBOX
7909 ## ------------------------------------------ ##
7910 ## Report this to the AC_PACKAGE_NAME lists. ##
7911 ## ------------------------------------------ ##
7912 _ASBOX
7913 ) |
7914 sed "s/^/$as_me: WARNING: /" >&2
7915 ;;
7916 esac
7917 echo "$as_me:$LINENO: checking for $ac_header" >&5
7918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922 eval "$as_ac_Header=\$ac_header_preproc"
7923 fi
7924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7926
7927 fi
7928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7929 cat >>confdefs.h <<_ACEOF
7930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7931 _ACEOF
7932
7933 fi
7934
7935 done
7936
7937 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7938 enable_libunwind=yes;
7939 fi
7940
7941 fi;
7942
7943 if test x"$enable_libunwind" = xyes; then
7944
7945
7946 for ac_header in libunwind.h libunwind-ia64.h
7947 do
7948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7950 echo "$as_me:$LINENO: checking for $ac_header" >&5
7951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 fi
7955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7957 else
7958 # Is the header compilable?
7959 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7961 cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h. */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7967 $ac_includes_default
7968 #include <$ac_header>
7969 _ACEOF
7970 rm -f conftest.$ac_objext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972 (eval $ac_compile) 2>conftest.er1
7973 ac_status=$?
7974 grep -v '^ *+' conftest.er1 >conftest.err
7975 rm -f conftest.er1
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try='test -z "$ac_c_werror_flag"
7980 || test ! -s conftest.err'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982 (eval $ac_try) 2>&5
7983 ac_status=$?
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; } &&
7986 { ac_try='test -s conftest.$ac_objext'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988 (eval $ac_try) 2>&5
7989 ac_status=$?
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7992 ac_header_compiler=yes
7993 else
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7996
7997 ac_header_compiler=no
7998 fi
7999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8001 echo "${ECHO_T}$ac_header_compiler" >&6
8002
8003 # Is the header present?
8004 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 #include <$ac_header>
8013 _ACEOF
8014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8015 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8016 ac_status=$?
8017 grep -v '^ *+' conftest.er1 >conftest.err
8018 rm -f conftest.er1
8019 cat conftest.err >&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); } >/dev/null; then
8022 if test -s conftest.err; then
8023 ac_cpp_err=$ac_c_preproc_warn_flag
8024 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8025 else
8026 ac_cpp_err=
8027 fi
8028 else
8029 ac_cpp_err=yes
8030 fi
8031 if test -z "$ac_cpp_err"; then
8032 ac_header_preproc=yes
8033 else
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037 ac_header_preproc=no
8038 fi
8039 rm -f conftest.err conftest.$ac_ext
8040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8041 echo "${ECHO_T}$ac_header_preproc" >&6
8042
8043 # So? What about this header?
8044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8045 yes:no: )
8046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8050 ac_header_preproc=yes
8051 ;;
8052 no:yes:* )
8053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8065 (
8066 cat <<\_ASBOX
8067 ## ------------------------------------------ ##
8068 ## Report this to the AC_PACKAGE_NAME lists. ##
8069 ## ------------------------------------------ ##
8070 _ASBOX
8071 ) |
8072 sed "s/^/$as_me: WARNING: /" >&2
8073 ;;
8074 esac
8075 echo "$as_me:$LINENO: checking for $ac_header" >&5
8076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 else
8080 eval "$as_ac_Header=\$ac_header_preproc"
8081 fi
8082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8084
8085 fi
8086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8087 cat >>confdefs.h <<_ACEOF
8088 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8089 _ACEOF
8090
8091 fi
8092
8093 done
8094
8095
8096 cat >>confdefs.h <<\_ACEOF
8097 #define HAVE_LIBUNWIND 1
8098 _ACEOF
8099
8100 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8101 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8102 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8103 fi
8104
8105 # Profiling support.
8106 # Check whether --enable-profiling or --disable-profiling was given.
8107 if test "${enable_profiling+set}" = set; then
8108 enableval="$enable_profiling"
8109 case $enableval in
8110 yes | no)
8111 ;;
8112 *)
8113 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8114 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8115 { (exit 1); exit 1; }; } ;;
8116 esac
8117 else
8118 enable_profiling=no
8119 fi;
8120
8121
8122
8123 for ac_func in monstartup _mcleanup
8124 do
8125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8126 echo "$as_me:$LINENO: checking for $ac_func" >&5
8127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8128 if eval "test \"\${$as_ac_var+set}\" = set"; then
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8130 else
8131 cat >conftest.$ac_ext <<_ACEOF
8132 /* confdefs.h. */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8139 #define $ac_func innocuous_$ac_func
8140
8141 /* System header to define __stub macros and hopefully few prototypes,
8142 which can conflict with char $ac_func (); below.
8143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8144 <limits.h> exists even on freestanding compilers. */
8145
8146 #ifdef __STDC__
8147 # include <limits.h>
8148 #else
8149 # include <assert.h>
8150 #endif
8151
8152 #undef $ac_func
8153
8154 /* Override any gcc2 internal prototype to avoid an error. */
8155 #ifdef __cplusplus
8156 extern "C"
8157 {
8158 #endif
8159 /* We use char because int might match the return type of a gcc2
8160 builtin and then its argument prototype would still apply. */
8161 char $ac_func ();
8162 /* The GNU C library defines this for functions which it implements
8163 to always fail with ENOSYS. Some functions are actually named
8164 something starting with __ and the normal name is an alias. */
8165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8166 choke me
8167 #else
8168 char (*f) () = $ac_func;
8169 #endif
8170 #ifdef __cplusplus
8171 }
8172 #endif
8173
8174 int
8175 main ()
8176 {
8177 return f != $ac_func;
8178 ;
8179 return 0;
8180 }
8181 _ACEOF
8182 rm -f conftest.$ac_objext conftest$ac_exeext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8184 (eval $ac_link) 2>conftest.er1
8185 ac_status=$?
8186 grep -v '^ *+' conftest.er1 >conftest.err
8187 rm -f conftest.er1
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } &&
8191 { ac_try='test -z "$ac_c_werror_flag"
8192 || test ! -s conftest.err'
8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 (eval $ac_try) 2>&5
8195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; } &&
8198 { ac_try='test -s conftest$ac_exeext'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 (eval $ac_try) 2>&5
8201 ac_status=$?
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; }; then
8204 eval "$as_ac_var=yes"
8205 else
8206 echo "$as_me: failed program was:" >&5
8207 sed 's/^/| /' conftest.$ac_ext >&5
8208
8209 eval "$as_ac_var=no"
8210 fi
8211 rm -f conftest.err conftest.$ac_objext \
8212 conftest$ac_exeext conftest.$ac_ext
8213 fi
8214 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8215 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8216 if test `eval echo '${'$as_ac_var'}'` = yes; then
8217 cat >>confdefs.h <<_ACEOF
8218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8219 _ACEOF
8220
8221 fi
8222 done
8223
8224 echo "$as_me:$LINENO: checking for _etext" >&5
8225 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8226 if test "${ac_cv_var__etext+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h. */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 #include <stdlib.h>
8236 extern char _etext;
8237
8238 int
8239 main ()
8240 {
8241 free (&_etext);
8242 ;
8243 return 0;
8244 }
8245 _ACEOF
8246 rm -f conftest.$ac_objext conftest$ac_exeext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8248 (eval $ac_link) 2>conftest.er1
8249 ac_status=$?
8250 grep -v '^ *+' conftest.er1 >conftest.err
8251 rm -f conftest.er1
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } &&
8255 { ac_try='test -z "$ac_c_werror_flag"
8256 || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8258 (eval $ac_try) 2>&5
8259 ac_status=$?
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try='test -s conftest$ac_exeext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 (eval $ac_try) 2>&5
8265 ac_status=$?
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 ac_cv_var__etext=yes
8269 else
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8272
8273 ac_cv_var__etext=no
8274 fi
8275 rm -f conftest.err conftest.$ac_objext \
8276 conftest$ac_exeext conftest.$ac_ext
8277 fi
8278 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8279 echo "${ECHO_T}$ac_cv_var__etext" >&6
8280 if test $ac_cv_var__etext = yes; then
8281
8282 cat >>confdefs.h <<\_ACEOF
8283 #define HAVE__ETEXT 1
8284 _ACEOF
8285
8286 fi
8287 echo "$as_me:$LINENO: checking for etext" >&5
8288 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8289 if test "${ac_cv_var_etext+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292 cat >conftest.$ac_ext <<_ACEOF
8293 /* confdefs.h. */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h. */
8298 #include <stdlib.h>
8299 extern char etext;
8300
8301 int
8302 main ()
8303 {
8304 free (&etext);
8305 ;
8306 return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311 (eval $ac_link) 2>conftest.er1
8312 ac_status=$?
8313 grep -v '^ *+' conftest.er1 >conftest.err
8314 rm -f conftest.er1
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } &&
8318 { ac_try='test -z "$ac_c_werror_flag"
8319 || test ! -s conftest.err'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 (eval $ac_try) 2>&5
8322 ac_status=$?
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; } &&
8325 { ac_try='test -s conftest$ac_exeext'
8326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 (eval $ac_try) 2>&5
8328 ac_status=$?
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; }; then
8331 ac_cv_var_etext=yes
8332 else
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8335
8336 ac_cv_var_etext=no
8337 fi
8338 rm -f conftest.err conftest.$ac_objext \
8339 conftest$ac_exeext conftest.$ac_ext
8340 fi
8341 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8342 echo "${ECHO_T}$ac_cv_var_etext" >&6
8343 if test $ac_cv_var_etext = yes; then
8344
8345 cat >>confdefs.h <<\_ACEOF
8346 #define HAVE_ETEXT 1
8347 _ACEOF
8348
8349 fi
8350 if test "$enable_profiling" = yes ; then
8351 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8352 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8353 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8354 { (exit 1); exit 1; }; }
8355 fi
8356 PROFILE_CFLAGS=-pg
8357 OLD_CFLAGS="$CFLAGS"
8358 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8359
8360 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8361 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8362 if test "${ac_cv_cc_supports_pg+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371
8372 int
8373 main ()
8374 {
8375 int x;
8376 ;
8377 return 0;
8378 }
8379 _ACEOF
8380 rm -f conftest.$ac_objext
8381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8382 (eval $ac_compile) 2>conftest.er1
8383 ac_status=$?
8384 grep -v '^ *+' conftest.er1 >conftest.err
8385 rm -f conftest.er1
8386 cat conftest.err >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } &&
8389 { ac_try='test -z "$ac_c_werror_flag"
8390 || test ! -s conftest.err'
8391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 (eval $ac_try) 2>&5
8393 ac_status=$?
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; } &&
8396 { ac_try='test -s conftest.$ac_objext'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 (eval $ac_try) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 ac_cv_cc_supports_pg=yes
8403 else
8404 echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8406
8407 ac_cv_cc_supports_pg=no
8408 fi
8409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8410 fi
8411 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8412 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8413
8414 if test $ac_cv_cc_supports_pg = no; then
8415 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8416 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8417 { (exit 1); exit 1; }; }
8418 fi
8419
8420 CFLAGS="$OLD_CFLAGS"
8421 fi
8422
8423
8424
8425 # Check whether --with-pkgversion or --without-pkgversion was given.
8426 if test "${with_pkgversion+set}" = set; then
8427 withval="$with_pkgversion"
8428 case "$withval" in
8429 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8430 echo "$as_me: error: package version not specified" >&2;}
8431 { (exit 1); exit 1; }; } ;;
8432 no) PKGVERSION= ;;
8433 *) PKGVERSION="($withval) " ;;
8434 esac
8435 else
8436 PKGVERSION="(GDB) "
8437
8438 fi;
8439
8440
8441
8442
8443 # Check whether --with-bugurl or --without-bugurl was given.
8444 if test "${with_bugurl+set}" = set; then
8445 withval="$with_bugurl"
8446 case "$withval" in
8447 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8448 echo "$as_me: error: bug URL not specified" >&2;}
8449 { (exit 1); exit 1; }; } ;;
8450 no) BUGURL=
8451 ;;
8452 *) BUGURL="$withval"
8453 ;;
8454 esac
8455 else
8456 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8457
8458 fi;
8459 case ${BUGURL} in
8460 "")
8461 REPORT_BUGS_TO=
8462 REPORT_BUGS_TEXI=
8463 ;;
8464 *)
8465 REPORT_BUGS_TO="<$BUGURL>"
8466 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8467 ;;
8468 esac;
8469
8470
8471
8472
8473 cat >>confdefs.h <<_ACEOF
8474 #define PKGVERSION "$PKGVERSION"
8475 _ACEOF
8476
8477
8478 cat >>confdefs.h <<_ACEOF
8479 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8480 _ACEOF
8481
8482
8483 # --------------------- #
8484 # Checks for programs. #
8485 # --------------------- #
8486
8487 for ac_prog in gawk mawk nawk awk
8488 do
8489 # Extract the first word of "$ac_prog", so it can be a program name with args.
8490 set dummy $ac_prog; ac_word=$2
8491 echo "$as_me:$LINENO: checking for $ac_word" >&5
8492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8493 if test "${ac_cv_prog_AWK+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 else
8496 if test -n "$AWK"; then
8497 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8498 else
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500 for as_dir in $PATH
8501 do
8502 IFS=$as_save_IFS
8503 test -z "$as_dir" && as_dir=.
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8506 ac_cv_prog_AWK="$ac_prog"
8507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8508 break 2
8509 fi
8510 done
8511 done
8512
8513 fi
8514 fi
8515 AWK=$ac_cv_prog_AWK
8516 if test -n "$AWK"; then
8517 echo "$as_me:$LINENO: result: $AWK" >&5
8518 echo "${ECHO_T}$AWK" >&6
8519 else
8520 echo "$as_me:$LINENO: result: no" >&5
8521 echo "${ECHO_T}no" >&6
8522 fi
8523
8524 test -n "$AWK" && break
8525 done
8526
8527 # Find a good install program. We prefer a C program (faster),
8528 # so one script is as good as another. But avoid the broken or
8529 # incompatible versions:
8530 # SysV /etc/install, /usr/sbin/install
8531 # SunOS /usr/etc/install
8532 # IRIX /sbin/install
8533 # AIX /bin/install
8534 # AmigaOS /C/install, which installs bootblocks on floppy discs
8535 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8536 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8537 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8538 # OS/2's system install, which has a completely different semantic
8539 # ./install, which can be erroneously created by make from ./install.sh.
8540 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8541 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8542 if test -z "$INSTALL"; then
8543 if test "${ac_cv_path_install+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547 for as_dir in $PATH
8548 do
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
8551 # Account for people who put trailing slashes in PATH elements.
8552 case $as_dir/ in
8553 ./ | .// | /cC/* | \
8554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8555 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8556 /usr/ucb/* ) ;;
8557 *)
8558 # OSF1 and SCO ODT 3.0 have their own names for install.
8559 # Don't use installbsd from OSF since it installs stuff as root
8560 # by default.
8561 for ac_prog in ginstall scoinst install; do
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8564 if test $ac_prog = install &&
8565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8566 # AIX install. It has an incompatible calling convention.
8567 :
8568 elif test $ac_prog = install &&
8569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8570 # program-specific install script used by HP pwplus--don't use.
8571 :
8572 else
8573 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8574 break 3
8575 fi
8576 fi
8577 done
8578 done
8579 ;;
8580 esac
8581 done
8582
8583
8584 fi
8585 if test "${ac_cv_path_install+set}" = set; then
8586 INSTALL=$ac_cv_path_install
8587 else
8588 # As a last resort, use the slow shell script. We don't cache a
8589 # path for INSTALL within a source directory, because that will
8590 # break other packages using the cache if that directory is
8591 # removed, or if the path is relative.
8592 INSTALL=$ac_install_sh
8593 fi
8594 fi
8595 echo "$as_me:$LINENO: result: $INSTALL" >&5
8596 echo "${ECHO_T}$INSTALL" >&6
8597
8598 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8599 # It thinks the first close brace ends the variable substitution.
8600 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8601
8602 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8603
8604 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8605
8606 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8607 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8608 LN_S=$as_ln_s
8609 if test "$LN_S" = "ln -s"; then
8610 echo "$as_me:$LINENO: result: yes" >&5
8611 echo "${ECHO_T}yes" >&6
8612 else
8613 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8614 echo "${ECHO_T}no, using $LN_S" >&6
8615 fi
8616
8617 if test -n "$ac_tool_prefix"; then
8618 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8619 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8620 echo "$as_me:$LINENO: checking for $ac_word" >&5
8621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8622 if test "${ac_cv_prog_RANLIB+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 else
8625 if test -n "$RANLIB"; then
8626 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8627 else
8628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629 for as_dir in $PATH
8630 do
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8635 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8637 break 2
8638 fi
8639 done
8640 done
8641
8642 fi
8643 fi
8644 RANLIB=$ac_cv_prog_RANLIB
8645 if test -n "$RANLIB"; then
8646 echo "$as_me:$LINENO: result: $RANLIB" >&5
8647 echo "${ECHO_T}$RANLIB" >&6
8648 else
8649 echo "$as_me:$LINENO: result: no" >&5
8650 echo "${ECHO_T}no" >&6
8651 fi
8652
8653 fi
8654 if test -z "$ac_cv_prog_RANLIB"; then
8655 ac_ct_RANLIB=$RANLIB
8656 # Extract the first word of "ranlib", so it can be a program name with args.
8657 set dummy ranlib; ac_word=$2
8658 echo "$as_me:$LINENO: checking for $ac_word" >&5
8659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8660 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8662 else
8663 if test -n "$ac_ct_RANLIB"; then
8664 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8665 else
8666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8667 for as_dir in $PATH
8668 do
8669 IFS=$as_save_IFS
8670 test -z "$as_dir" && as_dir=.
8671 for ac_exec_ext in '' $ac_executable_extensions; do
8672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8673 ac_cv_prog_ac_ct_RANLIB="ranlib"
8674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8675 break 2
8676 fi
8677 done
8678 done
8679
8680 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8681 fi
8682 fi
8683 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8684 if test -n "$ac_ct_RANLIB"; then
8685 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8686 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8687 else
8688 echo "$as_me:$LINENO: result: no" >&5
8689 echo "${ECHO_T}no" >&6
8690 fi
8691
8692 RANLIB=$ac_ct_RANLIB
8693 else
8694 RANLIB="$ac_cv_prog_RANLIB"
8695 fi
8696
8697 for ac_prog in 'bison -y' byacc
8698 do
8699 # Extract the first word of "$ac_prog", so it can be a program name with args.
8700 set dummy $ac_prog; ac_word=$2
8701 echo "$as_me:$LINENO: checking for $ac_word" >&5
8702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8703 if test "${ac_cv_prog_YACC+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 else
8706 if test -n "$YACC"; then
8707 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8708 else
8709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710 for as_dir in $PATH
8711 do
8712 IFS=$as_save_IFS
8713 test -z "$as_dir" && as_dir=.
8714 for ac_exec_ext in '' $ac_executable_extensions; do
8715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8716 ac_cv_prog_YACC="$ac_prog"
8717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8718 break 2
8719 fi
8720 done
8721 done
8722
8723 fi
8724 fi
8725 YACC=$ac_cv_prog_YACC
8726 if test -n "$YACC"; then
8727 echo "$as_me:$LINENO: result: $YACC" >&5
8728 echo "${ECHO_T}$YACC" >&6
8729 else
8730 echo "$as_me:$LINENO: result: no" >&5
8731 echo "${ECHO_T}no" >&6
8732 fi
8733
8734 test -n "$YACC" && break
8735 done
8736 test -n "$YACC" || YACC="yacc"
8737
8738
8739 if test -n "$ac_tool_prefix"; then
8740 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8741 set dummy ${ac_tool_prefix}ar; ac_word=$2
8742 echo "$as_me:$LINENO: checking for $ac_word" >&5
8743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8744 if test "${ac_cv_prog_AR+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747 if test -n "$AR"; then
8748 ac_cv_prog_AR="$AR" # Let the user override the test.
8749 else
8750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 for as_dir in $PATH
8752 do
8753 IFS=$as_save_IFS
8754 test -z "$as_dir" && as_dir=.
8755 for ac_exec_ext in '' $ac_executable_extensions; do
8756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8757 ac_cv_prog_AR="${ac_tool_prefix}ar"
8758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8759 break 2
8760 fi
8761 done
8762 done
8763
8764 fi
8765 fi
8766 AR=$ac_cv_prog_AR
8767 if test -n "$AR"; then
8768 echo "$as_me:$LINENO: result: $AR" >&5
8769 echo "${ECHO_T}$AR" >&6
8770 else
8771 echo "$as_me:$LINENO: result: no" >&5
8772 echo "${ECHO_T}no" >&6
8773 fi
8774
8775 fi
8776 if test -z "$ac_cv_prog_AR"; then
8777 ac_ct_AR=$AR
8778 # Extract the first word of "ar", so it can be a program name with args.
8779 set dummy ar; ac_word=$2
8780 echo "$as_me:$LINENO: checking for $ac_word" >&5
8781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8782 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8783 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785 if test -n "$ac_ct_AR"; then
8786 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8787 else
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in $PATH
8790 do
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8795 ac_cv_prog_ac_ct_AR="ar"
8796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8798 fi
8799 done
8800 done
8801
8802 fi
8803 fi
8804 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8805 if test -n "$ac_ct_AR"; then
8806 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8807 echo "${ECHO_T}$ac_ct_AR" >&6
8808 else
8809 echo "$as_me:$LINENO: result: no" >&5
8810 echo "${ECHO_T}no" >&6
8811 fi
8812
8813 AR=$ac_ct_AR
8814 else
8815 AR="$ac_cv_prog_AR"
8816 fi
8817
8818 if test -n "$ac_tool_prefix"; then
8819 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8820 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8821 echo "$as_me:$LINENO: checking for $ac_word" >&5
8822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8823 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 else
8826 if test -n "$DLLTOOL"; then
8827 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8828 else
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 for as_dir in $PATH
8831 do
8832 IFS=$as_save_IFS
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8838 break 2
8839 fi
8840 done
8841 done
8842
8843 fi
8844 fi
8845 DLLTOOL=$ac_cv_prog_DLLTOOL
8846 if test -n "$DLLTOOL"; then
8847 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8848 echo "${ECHO_T}$DLLTOOL" >&6
8849 else
8850 echo "$as_me:$LINENO: result: no" >&5
8851 echo "${ECHO_T}no" >&6
8852 fi
8853
8854 fi
8855 if test -z "$ac_cv_prog_DLLTOOL"; then
8856 ac_ct_DLLTOOL=$DLLTOOL
8857 # Extract the first word of "dlltool", so it can be a program name with args.
8858 set dummy dlltool; ac_word=$2
8859 echo "$as_me:$LINENO: checking for $ac_word" >&5
8860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8861 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8863 else
8864 if test -n "$ac_ct_DLLTOOL"; then
8865 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8866 else
8867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8868 for as_dir in $PATH
8869 do
8870 IFS=$as_save_IFS
8871 test -z "$as_dir" && as_dir=.
8872 for ac_exec_ext in '' $ac_executable_extensions; do
8873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8874 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8876 break 2
8877 fi
8878 done
8879 done
8880
8881 fi
8882 fi
8883 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8884 if test -n "$ac_ct_DLLTOOL"; then
8885 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8886 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8887 else
8888 echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6
8890 fi
8891
8892 DLLTOOL=$ac_ct_DLLTOOL
8893 else
8894 DLLTOOL="$ac_cv_prog_DLLTOOL"
8895 fi
8896
8897 if test -n "$ac_tool_prefix"; then
8898 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8899 set dummy ${ac_tool_prefix}windres; ac_word=$2
8900 echo "$as_me:$LINENO: checking for $ac_word" >&5
8901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8902 if test "${ac_cv_prog_WINDRES+set}" = set; then
8903 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 else
8905 if test -n "$WINDRES"; then
8906 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8907 else
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 for as_dir in $PATH
8910 do
8911 IFS=$as_save_IFS
8912 test -z "$as_dir" && as_dir=.
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8915 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 break 2
8918 fi
8919 done
8920 done
8921
8922 fi
8923 fi
8924 WINDRES=$ac_cv_prog_WINDRES
8925 if test -n "$WINDRES"; then
8926 echo "$as_me:$LINENO: result: $WINDRES" >&5
8927 echo "${ECHO_T}$WINDRES" >&6
8928 else
8929 echo "$as_me:$LINENO: result: no" >&5
8930 echo "${ECHO_T}no" >&6
8931 fi
8932
8933 fi
8934 if test -z "$ac_cv_prog_WINDRES"; then
8935 ac_ct_WINDRES=$WINDRES
8936 # Extract the first word of "windres", so it can be a program name with args.
8937 set dummy windres; ac_word=$2
8938 echo "$as_me:$LINENO: checking for $ac_word" >&5
8939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8940 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8941 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 else
8943 if test -n "$ac_ct_WINDRES"; then
8944 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8945 else
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947 for as_dir in $PATH
8948 do
8949 IFS=$as_save_IFS
8950 test -z "$as_dir" && as_dir=.
8951 for ac_exec_ext in '' $ac_executable_extensions; do
8952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8953 ac_cv_prog_ac_ct_WINDRES="windres"
8954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8955 break 2
8956 fi
8957 done
8958 done
8959
8960 fi
8961 fi
8962 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
8963 if test -n "$ac_ct_WINDRES"; then
8964 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
8965 echo "${ECHO_T}$ac_ct_WINDRES" >&6
8966 else
8967 echo "$as_me:$LINENO: result: no" >&5
8968 echo "${ECHO_T}no" >&6
8969 fi
8970
8971 WINDRES=$ac_ct_WINDRES
8972 else
8973 WINDRES="$ac_cv_prog_WINDRES"
8974 fi
8975
8976
8977 # Needed for GNU/Hurd.
8978 if test -n "$ac_tool_prefix"; then
8979 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
8980 set dummy ${ac_tool_prefix}mig; ac_word=$2
8981 echo "$as_me:$LINENO: checking for $ac_word" >&5
8982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8983 if test "${ac_cv_prog_MIG+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986 if test -n "$MIG"; then
8987 ac_cv_prog_MIG="$MIG" # Let the user override the test.
8988 else
8989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 for as_dir in $PATH
8991 do
8992 IFS=$as_save_IFS
8993 test -z "$as_dir" && as_dir=.
8994 for ac_exec_ext in '' $ac_executable_extensions; do
8995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8996 ac_cv_prog_MIG="${ac_tool_prefix}mig"
8997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8998 break 2
8999 fi
9000 done
9001 done
9002
9003 fi
9004 fi
9005 MIG=$ac_cv_prog_MIG
9006 if test -n "$MIG"; then
9007 echo "$as_me:$LINENO: result: $MIG" >&5
9008 echo "${ECHO_T}$MIG" >&6
9009 else
9010 echo "$as_me:$LINENO: result: no" >&5
9011 echo "${ECHO_T}no" >&6
9012 fi
9013
9014 fi
9015 if test -z "$ac_cv_prog_MIG"; then
9016 ac_ct_MIG=$MIG
9017 # Extract the first word of "mig", so it can be a program name with args.
9018 set dummy mig; ac_word=$2
9019 echo "$as_me:$LINENO: checking for $ac_word" >&5
9020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9021 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024 if test -n "$ac_ct_MIG"; then
9025 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9026 else
9027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9028 for as_dir in $PATH
9029 do
9030 IFS=$as_save_IFS
9031 test -z "$as_dir" && as_dir=.
9032 for ac_exec_ext in '' $ac_executable_extensions; do
9033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9034 ac_cv_prog_ac_ct_MIG="mig"
9035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9036 break 2
9037 fi
9038 done
9039 done
9040
9041 fi
9042 fi
9043 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9044 if test -n "$ac_ct_MIG"; then
9045 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9046 echo "${ECHO_T}$ac_ct_MIG" >&6
9047 else
9048 echo "$as_me:$LINENO: result: no" >&5
9049 echo "${ECHO_T}no" >&6
9050 fi
9051
9052 MIG=$ac_ct_MIG
9053 else
9054 MIG="$ac_cv_prog_MIG"
9055 fi
9056
9057
9058 # ---------------------- #
9059 # Checks for libraries. #
9060 # ---------------------- #
9061
9062 # We might need to link with -lm; most simulators need it.
9063
9064 echo "$as_me:$LINENO: checking for main in -lm" >&5
9065 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9066 if test "${ac_cv_lib_m_main+set}" = set; then
9067 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 else
9069 ac_check_lib_save_LIBS=$LIBS
9070 LIBS="-lm $LIBS"
9071 cat >conftest.$ac_ext <<_ACEOF
9072 /* confdefs.h. */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9077
9078
9079 int
9080 main ()
9081 {
9082 main ();
9083 ;
9084 return 0;
9085 }
9086 _ACEOF
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089 (eval $ac_link) 2>conftest.er1
9090 ac_status=$?
9091 grep -v '^ *+' conftest.er1 >conftest.err
9092 rm -f conftest.er1
9093 cat conftest.err >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); } &&
9096 { ac_try='test -z "$ac_c_werror_flag"
9097 || test ! -s conftest.err'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099 (eval $ac_try) 2>&5
9100 ac_status=$?
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; } &&
9103 { ac_try='test -s conftest$ac_exeext'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9105 (eval $ac_try) 2>&5
9106 ac_status=$?
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; }; then
9109 ac_cv_lib_m_main=yes
9110 else
9111 echo "$as_me: failed program was:" >&5
9112 sed 's/^/| /' conftest.$ac_ext >&5
9113
9114 ac_cv_lib_m_main=no
9115 fi
9116 rm -f conftest.err conftest.$ac_objext \
9117 conftest$ac_exeext conftest.$ac_ext
9118 LIBS=$ac_check_lib_save_LIBS
9119 fi
9120 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9121 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9122 if test $ac_cv_lib_m_main = yes; then
9123 cat >>confdefs.h <<_ACEOF
9124 #define HAVE_LIBM 1
9125 _ACEOF
9126
9127 LIBS="-lm $LIBS"
9128
9129 fi
9130
9131
9132 # We need to link with -lw to get `wctype' on Solaris before Solaris
9133 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9134 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9135 # is known to have this problem). Therefore we avoid libw if we can.
9136 echo "$as_me:$LINENO: checking for wctype" >&5
9137 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9138 if test "${ac_cv_func_wctype+set}" = set; then
9139 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 else
9141 cat >conftest.$ac_ext <<_ACEOF
9142 /* confdefs.h. */
9143 _ACEOF
9144 cat confdefs.h >>conftest.$ac_ext
9145 cat >>conftest.$ac_ext <<_ACEOF
9146 /* end confdefs.h. */
9147 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9149 #define wctype innocuous_wctype
9150
9151 /* System header to define __stub macros and hopefully few prototypes,
9152 which can conflict with char wctype (); below.
9153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9154 <limits.h> exists even on freestanding compilers. */
9155
9156 #ifdef __STDC__
9157 # include <limits.h>
9158 #else
9159 # include <assert.h>
9160 #endif
9161
9162 #undef wctype
9163
9164 /* Override any gcc2 internal prototype to avoid an error. */
9165 #ifdef __cplusplus
9166 extern "C"
9167 {
9168 #endif
9169 /* We use char because int might match the return type of a gcc2
9170 builtin and then its argument prototype would still apply. */
9171 char wctype ();
9172 /* The GNU C library defines this for functions which it implements
9173 to always fail with ENOSYS. Some functions are actually named
9174 something starting with __ and the normal name is an alias. */
9175 #if defined (__stub_wctype) || defined (__stub___wctype)
9176 choke me
9177 #else
9178 char (*f) () = wctype;
9179 #endif
9180 #ifdef __cplusplus
9181 }
9182 #endif
9183
9184 int
9185 main ()
9186 {
9187 return f != wctype;
9188 ;
9189 return 0;
9190 }
9191 _ACEOF
9192 rm -f conftest.$ac_objext conftest$ac_exeext
9193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9194 (eval $ac_link) 2>conftest.er1
9195 ac_status=$?
9196 grep -v '^ *+' conftest.er1 >conftest.err
9197 rm -f conftest.er1
9198 cat conftest.err >&5
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); } &&
9201 { ac_try='test -z "$ac_c_werror_flag"
9202 || test ! -s conftest.err'
9203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204 (eval $ac_try) 2>&5
9205 ac_status=$?
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); }; } &&
9208 { ac_try='test -s conftest$ac_exeext'
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_cv_func_wctype=yes
9215 else
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9218
9219 ac_cv_func_wctype=no
9220 fi
9221 rm -f conftest.err conftest.$ac_objext \
9222 conftest$ac_exeext conftest.$ac_ext
9223 fi
9224 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9225 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9226 if test $ac_cv_func_wctype = yes; then
9227 :
9228 else
9229
9230 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9231 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9232 if test "${ac_cv_lib_w_wctype+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 else
9235 ac_check_lib_save_LIBS=$LIBS
9236 LIBS="-lw $LIBS"
9237 cat >conftest.$ac_ext <<_ACEOF
9238 /* confdefs.h. */
9239 _ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h. */
9243
9244 /* Override any gcc2 internal prototype to avoid an error. */
9245 #ifdef __cplusplus
9246 extern "C"
9247 #endif
9248 /* We use char because int might match the return type of a gcc2
9249 builtin and then its argument prototype would still apply. */
9250 char wctype ();
9251 int
9252 main ()
9253 {
9254 wctype ();
9255 ;
9256 return 0;
9257 }
9258 _ACEOF
9259 rm -f conftest.$ac_objext conftest$ac_exeext
9260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261 (eval $ac_link) 2>conftest.er1
9262 ac_status=$?
9263 grep -v '^ *+' conftest.er1 >conftest.err
9264 rm -f conftest.er1
9265 cat conftest.err >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } &&
9268 { ac_try='test -z "$ac_c_werror_flag"
9269 || test ! -s conftest.err'
9270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 (eval $ac_try) 2>&5
9272 ac_status=$?
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); }; } &&
9275 { ac_try='test -s conftest$ac_exeext'
9276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277 (eval $ac_try) 2>&5
9278 ac_status=$?
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; }; then
9281 ac_cv_lib_w_wctype=yes
9282 else
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9285
9286 ac_cv_lib_w_wctype=no
9287 fi
9288 rm -f conftest.err conftest.$ac_objext \
9289 conftest$ac_exeext conftest.$ac_ext
9290 LIBS=$ac_check_lib_save_LIBS
9291 fi
9292 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9293 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9294 if test $ac_cv_lib_w_wctype = yes; then
9295 cat >>confdefs.h <<_ACEOF
9296 #define HAVE_LIBW 1
9297 _ACEOF
9298
9299 LIBS="-lw $LIBS"
9300
9301 fi
9302
9303 fi
9304
9305
9306 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9307 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9308 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9309 if test "${ac_cv_search_gethostbyname+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9311 else
9312 ac_func_search_save_LIBS=$LIBS
9313 ac_cv_search_gethostbyname=no
9314 cat >conftest.$ac_ext <<_ACEOF
9315 /* confdefs.h. */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9320
9321 /* Override any gcc2 internal prototype to avoid an error. */
9322 #ifdef __cplusplus
9323 extern "C"
9324 #endif
9325 /* We use char because int might match the return type of a gcc2
9326 builtin and then its argument prototype would still apply. */
9327 char gethostbyname ();
9328 int
9329 main ()
9330 {
9331 gethostbyname ();
9332 ;
9333 return 0;
9334 }
9335 _ACEOF
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338 (eval $ac_link) 2>conftest.er1
9339 ac_status=$?
9340 grep -v '^ *+' conftest.er1 >conftest.err
9341 rm -f conftest.er1
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } &&
9345 { ac_try='test -z "$ac_c_werror_flag"
9346 || test ! -s conftest.err'
9347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 (eval $ac_try) 2>&5
9349 ac_status=$?
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); }; } &&
9352 { ac_try='test -s conftest$ac_exeext'
9353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 (eval $ac_try) 2>&5
9355 ac_status=$?
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); }; }; then
9358 ac_cv_search_gethostbyname="none required"
9359 else
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9362
9363 fi
9364 rm -f conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9366 if test "$ac_cv_search_gethostbyname" = no; then
9367 for ac_lib in nsl; do
9368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h. */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375
9376 /* Override any gcc2 internal prototype to avoid an error. */
9377 #ifdef __cplusplus
9378 extern "C"
9379 #endif
9380 /* We use char because int might match the return type of a gcc2
9381 builtin and then its argument prototype would still apply. */
9382 char gethostbyname ();
9383 int
9384 main ()
9385 {
9386 gethostbyname ();
9387 ;
9388 return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9393 (eval $ac_link) 2>conftest.er1
9394 ac_status=$?
9395 grep -v '^ *+' conftest.er1 >conftest.err
9396 rm -f conftest.er1
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } &&
9400 { ac_try='test -z "$ac_c_werror_flag"
9401 || test ! -s conftest.err'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; } &&
9407 { ac_try='test -s conftest$ac_exeext'
9408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409 (eval $ac_try) 2>&5
9410 ac_status=$?
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); }; }; then
9413 ac_cv_search_gethostbyname="-l$ac_lib"
9414 break
9415 else
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419 fi
9420 rm -f conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext conftest.$ac_ext
9422 done
9423 fi
9424 LIBS=$ac_func_search_save_LIBS
9425 fi
9426 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9427 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9428 if test "$ac_cv_search_gethostbyname" != no; then
9429 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9430
9431 fi
9432
9433
9434 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9435 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9436 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9437 if test "${ac_cv_search_socketpair+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 else
9440 ac_func_search_save_LIBS=$LIBS
9441 ac_cv_search_socketpair=no
9442 cat >conftest.$ac_ext <<_ACEOF
9443 /* confdefs.h. */
9444 _ACEOF
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448
9449 /* Override any gcc2 internal prototype to avoid an error. */
9450 #ifdef __cplusplus
9451 extern "C"
9452 #endif
9453 /* We use char because int might match the return type of a gcc2
9454 builtin and then its argument prototype would still apply. */
9455 char socketpair ();
9456 int
9457 main ()
9458 {
9459 socketpair ();
9460 ;
9461 return 0;
9462 }
9463 _ACEOF
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>conftest.er1
9467 ac_status=$?
9468 grep -v '^ *+' conftest.er1 >conftest.err
9469 rm -f conftest.er1
9470 cat conftest.err >&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); } &&
9473 { ac_try='test -z "$ac_c_werror_flag"
9474 || test ! -s conftest.err'
9475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476 (eval $ac_try) 2>&5
9477 ac_status=$?
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); }; } &&
9480 { ac_try='test -s conftest$ac_exeext'
9481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 (eval $ac_try) 2>&5
9483 ac_status=$?
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); }; }; then
9486 ac_cv_search_socketpair="none required"
9487 else
9488 echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9490
9491 fi
9492 rm -f conftest.err conftest.$ac_objext \
9493 conftest$ac_exeext conftest.$ac_ext
9494 if test "$ac_cv_search_socketpair" = no; then
9495 for ac_lib in socket; do
9496 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9497 cat >conftest.$ac_ext <<_ACEOF
9498 /* confdefs.h. */
9499 _ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9503
9504 /* Override any gcc2 internal prototype to avoid an error. */
9505 #ifdef __cplusplus
9506 extern "C"
9507 #endif
9508 /* We use char because int might match the return type of a gcc2
9509 builtin and then its argument prototype would still apply. */
9510 char socketpair ();
9511 int
9512 main ()
9513 {
9514 socketpair ();
9515 ;
9516 return 0;
9517 }
9518 _ACEOF
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9521 (eval $ac_link) 2>conftest.er1
9522 ac_status=$?
9523 grep -v '^ *+' conftest.er1 >conftest.err
9524 rm -f conftest.er1
9525 cat conftest.err >&5
9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527 (exit $ac_status); } &&
9528 { ac_try='test -z "$ac_c_werror_flag"
9529 || test ! -s conftest.err'
9530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9531 (eval $ac_try) 2>&5
9532 ac_status=$?
9533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9534 (exit $ac_status); }; } &&
9535 { ac_try='test -s conftest$ac_exeext'
9536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9537 (eval $ac_try) 2>&5
9538 ac_status=$?
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); }; }; then
9541 ac_cv_search_socketpair="-l$ac_lib"
9542 break
9543 else
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9546
9547 fi
9548 rm -f conftest.err conftest.$ac_objext \
9549 conftest$ac_exeext conftest.$ac_ext
9550 done
9551 fi
9552 LIBS=$ac_func_search_save_LIBS
9553 fi
9554 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9555 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9556 if test "$ac_cv_search_socketpair" != no; then
9557 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9558
9559 fi
9560
9561
9562 # Link in zlib if we can. This allows us to read compressed debug sections.
9563 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9564 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9565 if test "${ac_cv_search_zlibVersion+set}" = set; then
9566 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 else
9568 ac_func_search_save_LIBS=$LIBS
9569 ac_cv_search_zlibVersion=no
9570 cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h. */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576
9577 /* Override any gcc2 internal prototype to avoid an error. */
9578 #ifdef __cplusplus
9579 extern "C"
9580 #endif
9581 /* We use char because int might match the return type of a gcc2
9582 builtin and then its argument prototype would still apply. */
9583 char zlibVersion ();
9584 int
9585 main ()
9586 {
9587 zlibVersion ();
9588 ;
9589 return 0;
9590 }
9591 _ACEOF
9592 rm -f conftest.$ac_objext conftest$ac_exeext
9593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9594 (eval $ac_link) 2>conftest.er1
9595 ac_status=$?
9596 grep -v '^ *+' conftest.er1 >conftest.err
9597 rm -f conftest.er1
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } &&
9601 { ac_try='test -z "$ac_c_werror_flag"
9602 || test ! -s conftest.err'
9603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9604 (eval $ac_try) 2>&5
9605 ac_status=$?
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); }; } &&
9608 { ac_try='test -s conftest$ac_exeext'
9609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 (eval $ac_try) 2>&5
9611 ac_status=$?
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); }; }; then
9614 ac_cv_search_zlibVersion="none required"
9615 else
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9618
9619 fi
9620 rm -f conftest.err conftest.$ac_objext \
9621 conftest$ac_exeext conftest.$ac_ext
9622 if test "$ac_cv_search_zlibVersion" = no; then
9623 for ac_lib in z; do
9624 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9625 cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h. */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h. */
9631
9632 /* Override any gcc2 internal prototype to avoid an error. */
9633 #ifdef __cplusplus
9634 extern "C"
9635 #endif
9636 /* We use char because int might match the return type of a gcc2
9637 builtin and then its argument prototype would still apply. */
9638 char zlibVersion ();
9639 int
9640 main ()
9641 {
9642 zlibVersion ();
9643 ;
9644 return 0;
9645 }
9646 _ACEOF
9647 rm -f conftest.$ac_objext conftest$ac_exeext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9649 (eval $ac_link) 2>conftest.er1
9650 ac_status=$?
9651 grep -v '^ *+' conftest.er1 >conftest.err
9652 rm -f conftest.er1
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
9656 { ac_try='test -z "$ac_c_werror_flag"
9657 || test ! -s conftest.err'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9659 (eval $ac_try) 2>&5
9660 ac_status=$?
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; } &&
9663 { ac_try='test -s conftest$ac_exeext'
9664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 (eval $ac_try) 2>&5
9666 ac_status=$?
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); }; }; then
9669 ac_cv_search_zlibVersion="-l$ac_lib"
9670 break
9671 else
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.$ac_ext >&5
9674
9675 fi
9676 rm -f conftest.err conftest.$ac_objext \
9677 conftest$ac_exeext conftest.$ac_ext
9678 done
9679 fi
9680 LIBS=$ac_func_search_save_LIBS
9681 fi
9682 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9683 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9684 if test "$ac_cv_search_zlibVersion" != no; then
9685 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9686
9687 for ac_header in zlib.h
9688 do
9689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9691 echo "$as_me:$LINENO: checking for $ac_header" >&5
9692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 fi
9696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9698 else
9699 # Is the header compilable?
9700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9702 cat >conftest.$ac_ext <<_ACEOF
9703 /* confdefs.h. */
9704 _ACEOF
9705 cat confdefs.h >>conftest.$ac_ext
9706 cat >>conftest.$ac_ext <<_ACEOF
9707 /* end confdefs.h. */
9708 $ac_includes_default
9709 #include <$ac_header>
9710 _ACEOF
9711 rm -f conftest.$ac_objext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9713 (eval $ac_compile) 2>conftest.er1
9714 ac_status=$?
9715 grep -v '^ *+' conftest.er1 >conftest.err
9716 rm -f conftest.er1
9717 cat conftest.err >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); } &&
9720 { ac_try='test -z "$ac_c_werror_flag"
9721 || test ! -s conftest.err'
9722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9723 (eval $ac_try) 2>&5
9724 ac_status=$?
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); }; } &&
9727 { ac_try='test -s conftest.$ac_objext'
9728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9729 (eval $ac_try) 2>&5
9730 ac_status=$?
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); }; }; then
9733 ac_header_compiler=yes
9734 else
9735 echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738 ac_header_compiler=no
9739 fi
9740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9742 echo "${ECHO_T}$ac_header_compiler" >&6
9743
9744 # Is the header present?
9745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9747 cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h. */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h. */
9753 #include <$ac_header>
9754 _ACEOF
9755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } >/dev/null; then
9763 if test -s conftest.err; then
9764 ac_cpp_err=$ac_c_preproc_warn_flag
9765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9766 else
9767 ac_cpp_err=
9768 fi
9769 else
9770 ac_cpp_err=yes
9771 fi
9772 if test -z "$ac_cpp_err"; then
9773 ac_header_preproc=yes
9774 else
9775 echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9777
9778 ac_header_preproc=no
9779 fi
9780 rm -f conftest.err conftest.$ac_ext
9781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9782 echo "${ECHO_T}$ac_header_preproc" >&6
9783
9784 # So? What about this header?
9785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9786 yes:no: )
9787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9791 ac_header_preproc=yes
9792 ;;
9793 no:yes:* )
9794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9806 (
9807 cat <<\_ASBOX
9808 ## ------------------------------------------ ##
9809 ## Report this to the AC_PACKAGE_NAME lists. ##
9810 ## ------------------------------------------ ##
9811 _ASBOX
9812 ) |
9813 sed "s/^/$as_me: WARNING: /" >&2
9814 ;;
9815 esac
9816 echo "$as_me:$LINENO: checking for $ac_header" >&5
9817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 else
9821 eval "$as_ac_Header=\$ac_header_preproc"
9822 fi
9823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9825
9826 fi
9827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9828 cat >>confdefs.h <<_ACEOF
9829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9830 _ACEOF
9831
9832 fi
9833
9834 done
9835
9836 fi
9837
9838
9839 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9840 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9841 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9842 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 else
9845 ac_func_search_save_LIBS=$LIBS
9846 ac_cv_search_dlgetmodinfo=no
9847 cat >conftest.$ac_ext <<_ACEOF
9848 /* confdefs.h. */
9849 _ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9853
9854 /* Override any gcc2 internal prototype to avoid an error. */
9855 #ifdef __cplusplus
9856 extern "C"
9857 #endif
9858 /* We use char because int might match the return type of a gcc2
9859 builtin and then its argument prototype would still apply. */
9860 char dlgetmodinfo ();
9861 int
9862 main ()
9863 {
9864 dlgetmodinfo ();
9865 ;
9866 return 0;
9867 }
9868 _ACEOF
9869 rm -f conftest.$ac_objext conftest$ac_exeext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871 (eval $ac_link) 2>conftest.er1
9872 ac_status=$?
9873 grep -v '^ *+' conftest.er1 >conftest.err
9874 rm -f conftest.er1
9875 cat conftest.err >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } &&
9878 { ac_try='test -z "$ac_c_werror_flag"
9879 || test ! -s conftest.err'
9880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 (eval $ac_try) 2>&5
9882 ac_status=$?
9883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9884 (exit $ac_status); }; } &&
9885 { ac_try='test -s conftest$ac_exeext'
9886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 (eval $ac_try) 2>&5
9888 ac_status=$?
9889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9890 (exit $ac_status); }; }; then
9891 ac_cv_search_dlgetmodinfo="none required"
9892 else
9893 echo "$as_me: failed program was:" >&5
9894 sed 's/^/| /' conftest.$ac_ext >&5
9895
9896 fi
9897 rm -f conftest.err conftest.$ac_objext \
9898 conftest$ac_exeext conftest.$ac_ext
9899 if test "$ac_cv_search_dlgetmodinfo" = no; then
9900 for ac_lib in dl xpdl; do
9901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9902 cat >conftest.$ac_ext <<_ACEOF
9903 /* confdefs.h. */
9904 _ACEOF
9905 cat confdefs.h >>conftest.$ac_ext
9906 cat >>conftest.$ac_ext <<_ACEOF
9907 /* end confdefs.h. */
9908
9909 /* Override any gcc2 internal prototype to avoid an error. */
9910 #ifdef __cplusplus
9911 extern "C"
9912 #endif
9913 /* We use char because int might match the return type of a gcc2
9914 builtin and then its argument prototype would still apply. */
9915 char dlgetmodinfo ();
9916 int
9917 main ()
9918 {
9919 dlgetmodinfo ();
9920 ;
9921 return 0;
9922 }
9923 _ACEOF
9924 rm -f conftest.$ac_objext conftest$ac_exeext
9925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9926 (eval $ac_link) 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } &&
9933 { ac_try='test -z "$ac_c_werror_flag"
9934 || test ! -s conftest.err'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 (eval $ac_try) 2>&5
9937 ac_status=$?
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; } &&
9940 { ac_try='test -s conftest$ac_exeext'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9942 (eval $ac_try) 2>&5
9943 ac_status=$?
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; }; then
9946 ac_cv_search_dlgetmodinfo="-l$ac_lib"
9947 break
9948 else
9949 echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9951
9952 fi
9953 rm -f conftest.err conftest.$ac_objext \
9954 conftest$ac_exeext conftest.$ac_ext
9955 done
9956 fi
9957 LIBS=$ac_func_search_save_LIBS
9958 fi
9959 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
9960 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
9961 if test "$ac_cv_search_dlgetmodinfo" != no; then
9962 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
9963
9964 fi
9965
9966
9967 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
9968 # There is a very specific comment in /usr/include/curses.h explaining that
9969 # termcap routines built into libcurses must not be used.
9970 #
9971 # The symptoms we observed so far is GDB unexpectedly changing
9972 # the terminal settings when tgetent is called - this is particularly
9973 # visible as the output is missing carriage returns, and so rapidly
9974 # becomes very hard to read.
9975 #
9976 # The readline configure script has already decided that libtermcap
9977 # was enough for its purposes, and so decided to build readline using
9978 # libtermcap. Since the TUI mode requires curses, building GDB with
9979 # TUI enabled results in both libraries to be used at the same time,
9980 # which is not allowed. This basically means that GDB with TUI is
9981 # broken on alpha-osf.
9982
9983 case $host_os in
9984 alpha*-*-osf* )
9985 if "$enable_tui" = "yes"; then
9986 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
9987 echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
9988 { (exit 1); exit 1; }; }
9989 fi
9990 if "$enable_tui" = "auto"; then
9991 enable_tui=no
9992 fi
9993 ;;
9994 esac
9995
9996 # Check whether we should enable the TUI, but only do so if we really
9997 # can.
9998 if test x"$enable_tui" != xno; then
9999 if test -d $srcdir/tui; then
10000 # For the TUI, we need enhanced curses functionality.
10001 #
10002 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10003 # curses library because the latter might not provide all the
10004 # functionality we need. However, this leads to problems on systems
10005 # where the linker searches /usr/local/lib, but the compiler doesn't
10006 # search /usr/local/include, if ncurses is installed in /usr/local. A
10007 # default installation of ncurses on alpha*-dec-osf* will lead to such
10008 # a situation.
10009 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10010 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10011 if test "${ac_cv_search_waddstr+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 else
10014 ac_func_search_save_LIBS=$LIBS
10015 ac_cv_search_waddstr=no
10016 cat >conftest.$ac_ext <<_ACEOF
10017 /* confdefs.h. */
10018 _ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10022
10023 /* Override any gcc2 internal prototype to avoid an error. */
10024 #ifdef __cplusplus
10025 extern "C"
10026 #endif
10027 /* We use char because int might match the return type of a gcc2
10028 builtin and then its argument prototype would still apply. */
10029 char waddstr ();
10030 int
10031 main ()
10032 {
10033 waddstr ();
10034 ;
10035 return 0;
10036 }
10037 _ACEOF
10038 rm -f conftest.$ac_objext conftest$ac_exeext
10039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10040 (eval $ac_link) 2>conftest.er1
10041 ac_status=$?
10042 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } &&
10047 { ac_try='test -z "$ac_c_werror_flag"
10048 || test ! -s conftest.err'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10051 ac_status=$?
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; } &&
10054 { ac_try='test -s conftest$ac_exeext'
10055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10056 (eval $ac_try) 2>&5
10057 ac_status=$?
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 ac_cv_search_waddstr="none required"
10061 else
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065 fi
10066 rm -f conftest.err conftest.$ac_objext \
10067 conftest$ac_exeext conftest.$ac_ext
10068 if test "$ac_cv_search_waddstr" = no; then
10069 for ac_lib in ncurses cursesX curses; do
10070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10071 cat >conftest.$ac_ext <<_ACEOF
10072 /* confdefs.h. */
10073 _ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10077
10078 /* Override any gcc2 internal prototype to avoid an error. */
10079 #ifdef __cplusplus
10080 extern "C"
10081 #endif
10082 /* We use char because int might match the return type of a gcc2
10083 builtin and then its argument prototype would still apply. */
10084 char waddstr ();
10085 int
10086 main ()
10087 {
10088 waddstr ();
10089 ;
10090 return 0;
10091 }
10092 _ACEOF
10093 rm -f conftest.$ac_objext conftest$ac_exeext
10094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10095 (eval $ac_link) 2>conftest.er1
10096 ac_status=$?
10097 grep -v '^ *+' conftest.er1 >conftest.err
10098 rm -f conftest.er1
10099 cat conftest.err >&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } &&
10102 { ac_try='test -z "$ac_c_werror_flag"
10103 || test ! -s conftest.err'
10104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105 (eval $ac_try) 2>&5
10106 ac_status=$?
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); }; } &&
10109 { ac_try='test -s conftest$ac_exeext'
10110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111 (eval $ac_try) 2>&5
10112 ac_status=$?
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); }; }; then
10115 ac_cv_search_waddstr="-l$ac_lib"
10116 break
10117 else
10118 echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10120
10121 fi
10122 rm -f conftest.err conftest.$ac_objext \
10123 conftest$ac_exeext conftest.$ac_ext
10124 done
10125 fi
10126 LIBS=$ac_func_search_save_LIBS
10127 fi
10128 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10129 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10130 if test "$ac_cv_search_waddstr" != no; then
10131 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10132
10133 fi
10134
10135
10136 if test "$ac_cv_search_waddstr" != no; then
10137 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10138 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10139 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10140 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10141 CONFIG_ALL="${CONFIG_ALL} all-tui"
10142 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
10143 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
10144 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
10145 else
10146 if test x"$enable_tui" = xyes; then
10147 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10148 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10149 { (exit 1); exit 1; }; }
10150 else
10151 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10152 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10153 fi
10154 fi
10155 fi
10156 fi
10157
10158 # Since GDB uses Readline, we need termcap functionality. In many
10159 # cases this will be provided by the curses library, but some systems
10160 # have a seperate termcap library, or no curses library at all.
10161
10162 case $host_os in
10163 cygwin*)
10164 if test -d $srcdir/libtermcap; then
10165 LIBS="../libtermcap/libtermcap.a $LIBS"
10166 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10167 fi ;;
10168 go32* | *djgpp*)
10169 ac_cv_search_tgetent="none required"
10170 ;;
10171 *mingw32*)
10172 ac_cv_search_tgetent="none required"
10173 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10174 ;;
10175 esac
10176
10177 # These are the libraries checked by Readline.
10178 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10179 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10180 if test "${ac_cv_search_tgetent+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10182 else
10183 ac_func_search_save_LIBS=$LIBS
10184 ac_cv_search_tgetent=no
10185 cat >conftest.$ac_ext <<_ACEOF
10186 /* confdefs.h. */
10187 _ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10191
10192 /* Override any gcc2 internal prototype to avoid an error. */
10193 #ifdef __cplusplus
10194 extern "C"
10195 #endif
10196 /* We use char because int might match the return type of a gcc2
10197 builtin and then its argument prototype would still apply. */
10198 char tgetent ();
10199 int
10200 main ()
10201 {
10202 tgetent ();
10203 ;
10204 return 0;
10205 }
10206 _ACEOF
10207 rm -f conftest.$ac_objext conftest$ac_exeext
10208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10209 (eval $ac_link) 2>conftest.er1
10210 ac_status=$?
10211 grep -v '^ *+' conftest.er1 >conftest.err
10212 rm -f conftest.er1
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } &&
10216 { ac_try='test -z "$ac_c_werror_flag"
10217 || test ! -s conftest.err'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10220 ac_status=$?
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; } &&
10223 { ac_try='test -s conftest$ac_exeext'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10226 ac_status=$?
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 ac_cv_search_tgetent="none required"
10230 else
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234 fi
10235 rm -f conftest.err conftest.$ac_objext \
10236 conftest$ac_exeext conftest.$ac_ext
10237 if test "$ac_cv_search_tgetent" = no; then
10238 for ac_lib in termcap tinfo curses ncurses; do
10239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246
10247 /* Override any gcc2 internal prototype to avoid an error. */
10248 #ifdef __cplusplus
10249 extern "C"
10250 #endif
10251 /* We use char because int might match the return type of a gcc2
10252 builtin and then its argument prototype would still apply. */
10253 char tgetent ();
10254 int
10255 main ()
10256 {
10257 tgetent ();
10258 ;
10259 return 0;
10260 }
10261 _ACEOF
10262 rm -f conftest.$ac_objext conftest$ac_exeext
10263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10264 (eval $ac_link) 2>conftest.er1
10265 ac_status=$?
10266 grep -v '^ *+' conftest.er1 >conftest.err
10267 rm -f conftest.er1
10268 cat conftest.err >&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } &&
10271 { ac_try='test -z "$ac_c_werror_flag"
10272 || test ! -s conftest.err'
10273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10274 (eval $ac_try) 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }; } &&
10278 { ac_try='test -s conftest$ac_exeext'
10279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280 (eval $ac_try) 2>&5
10281 ac_status=$?
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); }; }; then
10284 ac_cv_search_tgetent="-l$ac_lib"
10285 break
10286 else
10287 echo "$as_me: failed program was:" >&5
10288 sed 's/^/| /' conftest.$ac_ext >&5
10289
10290 fi
10291 rm -f conftest.err conftest.$ac_objext \
10292 conftest$ac_exeext conftest.$ac_ext
10293 done
10294 fi
10295 LIBS=$ac_func_search_save_LIBS
10296 fi
10297 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10298 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10299 if test "$ac_cv_search_tgetent" != no; then
10300 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10301
10302 fi
10303
10304
10305 if test "$ac_cv_search_tgetent" = no; then
10306 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10307 echo "$as_me: error: no termcap library found" >&2;}
10308 { (exit 1); exit 1; }; }
10309 fi
10310
10311
10312 # Check whether --with-system-readline or --without-system-readline was given.
10313 if test "${with_system_readline+set}" = set; then
10314 withval="$with_system_readline"
10315
10316 fi;
10317
10318 if test "$with_system_readline" = yes; then
10319 READLINE=-lreadline
10320 READLINE_DEPS=
10321 READLINE_CFLAGS=
10322 else
10323 READLINE='$(READLINE_DIR)/libreadline.a'
10324 READLINE_DEPS='$(READLINE)'
10325 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10326 fi
10327
10328
10329
10330
10331
10332 # Check whether --with-expat or --without-expat was given.
10333 if test "${with_expat+set}" = set; then
10334 withval="$with_expat"
10335
10336 else
10337 with_expat=auto
10338 fi;
10339 echo "$as_me:$LINENO: checking whether to use expat" >&5
10340 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10341 echo "$as_me:$LINENO: result: $with_expat" >&5
10342 echo "${ECHO_T}$with_expat" >&6
10343
10344 if test "${with_expat}" = no; then
10345 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10346 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10347 HAVE_LIBEXPAT=no
10348 else
10349
10350 if test "X$prefix" = "XNONE"; then
10351 acl_final_prefix="$ac_default_prefix"
10352 else
10353 acl_final_prefix="$prefix"
10354 fi
10355 if test "X$exec_prefix" = "XNONE"; then
10356 acl_final_exec_prefix='${prefix}'
10357 else
10358 acl_final_exec_prefix="$exec_prefix"
10359 fi
10360 acl_save_prefix="$prefix"
10361 prefix="$acl_final_prefix"
10362 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10363 prefix="$acl_save_prefix"
10364
10365
10366 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10367 if test "${with_gnu_ld+set}" = set; then
10368 withval="$with_gnu_ld"
10369 test "$withval" = no || with_gnu_ld=yes
10370 else
10371 with_gnu_ld=no
10372 fi;
10373 # Prepare PATH_SEPARATOR.
10374 # The user is always right.
10375 if test "${PATH_SEPARATOR+set}" != set; then
10376 echo "#! /bin/sh" >conf$$.sh
10377 echo "exit 0" >>conf$$.sh
10378 chmod +x conf$$.sh
10379 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10380 PATH_SEPARATOR=';'
10381 else
10382 PATH_SEPARATOR=:
10383 fi
10384 rm -f conf$$.sh
10385 fi
10386 ac_prog=ld
10387 if test "$GCC" = yes; then
10388 # Check if gcc -print-prog-name=ld gives a path.
10389 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10390 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10391 case $host in
10392 *-*-mingw*)
10393 # gcc leaves a trailing carriage return which upsets mingw
10394 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10395 *)
10396 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10397 esac
10398 case $ac_prog in
10399 # Accept absolute paths.
10400 [\\/]* | [A-Za-z]:[\\/]*)
10401 re_direlt='/[^/][^/]*/\.\./'
10402 # Canonicalize the path of ld
10403 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10404 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10405 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10406 done
10407 test -z "$LD" && LD="$ac_prog"
10408 ;;
10409 "")
10410 # If it fails, then pretend we aren't using GCC.
10411 ac_prog=ld
10412 ;;
10413 *)
10414 # If it is relative, then search for the first ld in PATH.
10415 with_gnu_ld=unknown
10416 ;;
10417 esac
10418 elif test "$with_gnu_ld" = yes; then
10419 echo "$as_me:$LINENO: checking for GNU ld" >&5
10420 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10421 else
10422 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10423 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10424 fi
10425 if test "${acl_cv_path_LD+set}" = set; then
10426 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 else
10428 if test -z "$LD"; then
10429 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10430 for ac_dir in $PATH; do
10431 test -z "$ac_dir" && ac_dir=.
10432 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10433 acl_cv_path_LD="$ac_dir/$ac_prog"
10434 # Check to see if the program is GNU ld. I'd rather use --version,
10435 # but apparently some GNU ld's only accept -v.
10436 # Break only if it was the GNU/non-GNU ld that we prefer.
10437 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10438 test "$with_gnu_ld" != no && break
10439 else
10440 test "$with_gnu_ld" != yes && break
10441 fi
10442 fi
10443 done
10444 IFS="$ac_save_ifs"
10445 else
10446 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10447 fi
10448 fi
10449
10450 LD="$acl_cv_path_LD"
10451 if test -n "$LD"; then
10452 echo "$as_me:$LINENO: result: $LD" >&5
10453 echo "${ECHO_T}$LD" >&6
10454 else
10455 echo "$as_me:$LINENO: result: no" >&5
10456 echo "${ECHO_T}no" >&6
10457 fi
10458 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10459 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10460 { (exit 1); exit 1; }; }
10461 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10462 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10463 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10465 else
10466 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10467 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10468 acl_cv_prog_gnu_ld=yes
10469 else
10470 acl_cv_prog_gnu_ld=no
10471 fi
10472 fi
10473 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10474 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10475 with_gnu_ld=$acl_cv_prog_gnu_ld
10476
10477
10478
10479 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10480 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10481 if test "${acl_cv_rpath+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 else
10484
10485 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10486 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10487 . ./conftest.sh
10488 rm -f ./conftest.sh
10489 acl_cv_rpath=done
10490
10491 fi
10492 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10493 echo "${ECHO_T}$acl_cv_rpath" >&6
10494 wl="$acl_cv_wl"
10495 libext="$acl_cv_libext"
10496 shlibext="$acl_cv_shlibext"
10497 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10498 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10499 hardcode_direct="$acl_cv_hardcode_direct"
10500 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10501 # Check whether --enable-rpath or --disable-rpath was given.
10502 if test "${enable_rpath+set}" = set; then
10503 enableval="$enable_rpath"
10504 :
10505 else
10506 enable_rpath=yes
10507 fi;
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517 use_additional=yes
10518
10519 acl_save_prefix="$prefix"
10520 prefix="$acl_final_prefix"
10521 acl_save_exec_prefix="$exec_prefix"
10522 exec_prefix="$acl_final_exec_prefix"
10523
10524 eval additional_includedir=\"$includedir\"
10525 eval additional_libdir=\"$libdir\"
10526
10527 exec_prefix="$acl_save_exec_prefix"
10528 prefix="$acl_save_prefix"
10529
10530
10531 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10532 if test "${with_libexpat_prefix+set}" = set; then
10533 withval="$with_libexpat_prefix"
10534
10535 if test "X$withval" = "Xno"; then
10536 use_additional=no
10537 else
10538 if test "X$withval" = "X"; then
10539
10540 acl_save_prefix="$prefix"
10541 prefix="$acl_final_prefix"
10542 acl_save_exec_prefix="$exec_prefix"
10543 exec_prefix="$acl_final_exec_prefix"
10544
10545 eval additional_includedir=\"$includedir\"
10546 eval additional_libdir=\"$libdir\"
10547
10548 exec_prefix="$acl_save_exec_prefix"
10549 prefix="$acl_save_prefix"
10550
10551 else
10552 additional_includedir="$withval/include"
10553 additional_libdir="$withval/lib"
10554 fi
10555 fi
10556
10557 fi;
10558 LIBEXPAT=
10559 LTLIBEXPAT=
10560 INCEXPAT=
10561 rpathdirs=
10562 ltrpathdirs=
10563 names_already_handled=
10564 names_next_round='expat '
10565 while test -n "$names_next_round"; do
10566 names_this_round="$names_next_round"
10567 names_next_round=
10568 for name in $names_this_round; do
10569 already_handled=
10570 for n in $names_already_handled; do
10571 if test "$n" = "$name"; then
10572 already_handled=yes
10573 break
10574 fi
10575 done
10576 if test -z "$already_handled"; then
10577 names_already_handled="$names_already_handled $name"
10578 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10579 eval value=\"\$HAVE_LIB$uppername\"
10580 if test -n "$value"; then
10581 if test "$value" = yes; then
10582 eval value=\"\$LIB$uppername\"
10583 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10584 eval value=\"\$LTLIB$uppername\"
10585 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10586 else
10587 :
10588 fi
10589 else
10590 found_dir=
10591 found_la=
10592 found_so=
10593 found_a=
10594 if test $use_additional = yes; then
10595 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10596 found_dir="$additional_libdir"
10597 found_so="$additional_libdir/lib$name.$shlibext"
10598 if test -f "$additional_libdir/lib$name.la"; then
10599 found_la="$additional_libdir/lib$name.la"
10600 fi
10601 else
10602 if test -f "$additional_libdir/lib$name.$libext"; then
10603 found_dir="$additional_libdir"
10604 found_a="$additional_libdir/lib$name.$libext"
10605 if test -f "$additional_libdir/lib$name.la"; then
10606 found_la="$additional_libdir/lib$name.la"
10607 fi
10608 fi
10609 fi
10610 fi
10611 if test "X$found_dir" = "X"; then
10612 for x in $LDFLAGS $LTLIBEXPAT; do
10613
10614 acl_save_prefix="$prefix"
10615 prefix="$acl_final_prefix"
10616 acl_save_exec_prefix="$exec_prefix"
10617 exec_prefix="$acl_final_exec_prefix"
10618 eval x=\"$x\"
10619 exec_prefix="$acl_save_exec_prefix"
10620 prefix="$acl_save_prefix"
10621
10622 case "$x" in
10623 -L*)
10624 dir=`echo "X$x" | sed -e 's/^X-L//'`
10625 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10626 found_dir="$dir"
10627 found_so="$dir/lib$name.$shlibext"
10628 if test -f "$dir/lib$name.la"; then
10629 found_la="$dir/lib$name.la"
10630 fi
10631 else
10632 if test -f "$dir/lib$name.$libext"; then
10633 found_dir="$dir"
10634 found_a="$dir/lib$name.$libext"
10635 if test -f "$dir/lib$name.la"; then
10636 found_la="$dir/lib$name.la"
10637 fi
10638 fi
10639 fi
10640 ;;
10641 esac
10642 if test "X$found_dir" != "X"; then
10643 break
10644 fi
10645 done
10646 fi
10647 if test "X$found_dir" != "X"; then
10648 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10649 if test "X$found_so" != "X"; then
10650 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10651 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10652 else
10653 haveit=
10654 for x in $ltrpathdirs; do
10655 if test "X$x" = "X$found_dir"; then
10656 haveit=yes
10657 break
10658 fi
10659 done
10660 if test -z "$haveit"; then
10661 ltrpathdirs="$ltrpathdirs $found_dir"
10662 fi
10663 if test "$hardcode_direct" = yes; then
10664 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10665 else
10666 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10667 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10668 haveit=
10669 for x in $rpathdirs; do
10670 if test "X$x" = "X$found_dir"; then
10671 haveit=yes
10672 break
10673 fi
10674 done
10675 if test -z "$haveit"; then
10676 rpathdirs="$rpathdirs $found_dir"
10677 fi
10678 else
10679 haveit=
10680 for x in $LDFLAGS $LIBEXPAT; do
10681
10682 acl_save_prefix="$prefix"
10683 prefix="$acl_final_prefix"
10684 acl_save_exec_prefix="$exec_prefix"
10685 exec_prefix="$acl_final_exec_prefix"
10686 eval x=\"$x\"
10687 exec_prefix="$acl_save_exec_prefix"
10688 prefix="$acl_save_prefix"
10689
10690 if test "X$x" = "X-L$found_dir"; then
10691 haveit=yes
10692 break
10693 fi
10694 done
10695 if test -z "$haveit"; then
10696 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10697 fi
10698 if test "$hardcode_minus_L" != no; then
10699 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10700 else
10701 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10702 fi
10703 fi
10704 fi
10705 fi
10706 else
10707 if test "X$found_a" != "X"; then
10708 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10709 else
10710 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10711 fi
10712 fi
10713 additional_includedir=
10714 case "$found_dir" in
10715 */lib | */lib/)
10716 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10717 additional_includedir="$basedir/include"
10718 ;;
10719 esac
10720 if test "X$additional_includedir" != "X"; then
10721 if test "X$additional_includedir" != "X/usr/include"; then
10722 haveit=
10723 if test "X$additional_includedir" = "X/usr/local/include"; then
10724 if test -n "$GCC"; then
10725 case $host_os in
10726 linux*) haveit=yes;;
10727 esac
10728 fi
10729 fi
10730 if test -z "$haveit"; then
10731 for x in $CPPFLAGS $INCEXPAT; do
10732
10733 acl_save_prefix="$prefix"
10734 prefix="$acl_final_prefix"
10735 acl_save_exec_prefix="$exec_prefix"
10736 exec_prefix="$acl_final_exec_prefix"
10737 eval x=\"$x\"
10738 exec_prefix="$acl_save_exec_prefix"
10739 prefix="$acl_save_prefix"
10740
10741 if test "X$x" = "X-I$additional_includedir"; then
10742 haveit=yes
10743 break
10744 fi
10745 done
10746 if test -z "$haveit"; then
10747 if test -d "$additional_includedir"; then
10748 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10749 fi
10750 fi
10751 fi
10752 fi
10753 fi
10754 if test -n "$found_la"; then
10755 save_libdir="$libdir"
10756 case "$found_la" in
10757 */* | *\\*) . "$found_la" ;;
10758 *) . "./$found_la" ;;
10759 esac
10760 libdir="$save_libdir"
10761 for dep in $dependency_libs; do
10762 case "$dep" in
10763 -L*)
10764 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10765 if test "X$additional_libdir" != "X/usr/lib"; then
10766 haveit=
10767 if test "X$additional_libdir" = "X/usr/local/lib"; then
10768 if test -n "$GCC"; then
10769 case $host_os in
10770 linux*) haveit=yes;;
10771 esac
10772 fi
10773 fi
10774 if test -z "$haveit"; then
10775 haveit=
10776 for x in $LDFLAGS $LIBEXPAT; do
10777
10778 acl_save_prefix="$prefix"
10779 prefix="$acl_final_prefix"
10780 acl_save_exec_prefix="$exec_prefix"
10781 exec_prefix="$acl_final_exec_prefix"
10782 eval x=\"$x\"
10783 exec_prefix="$acl_save_exec_prefix"
10784 prefix="$acl_save_prefix"
10785
10786 if test "X$x" = "X-L$additional_libdir"; then
10787 haveit=yes
10788 break
10789 fi
10790 done
10791 if test -z "$haveit"; then
10792 if test -d "$additional_libdir"; then
10793 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10794 fi
10795 fi
10796 haveit=
10797 for x in $LDFLAGS $LTLIBEXPAT; do
10798
10799 acl_save_prefix="$prefix"
10800 prefix="$acl_final_prefix"
10801 acl_save_exec_prefix="$exec_prefix"
10802 exec_prefix="$acl_final_exec_prefix"
10803 eval x=\"$x\"
10804 exec_prefix="$acl_save_exec_prefix"
10805 prefix="$acl_save_prefix"
10806
10807 if test "X$x" = "X-L$additional_libdir"; then
10808 haveit=yes
10809 break
10810 fi
10811 done
10812 if test -z "$haveit"; then
10813 if test -d "$additional_libdir"; then
10814 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10815 fi
10816 fi
10817 fi
10818 fi
10819 ;;
10820 -R*)
10821 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10822 if test "$enable_rpath" != no; then
10823 haveit=
10824 for x in $rpathdirs; do
10825 if test "X$x" = "X$dir"; then
10826 haveit=yes
10827 break
10828 fi
10829 done
10830 if test -z "$haveit"; then
10831 rpathdirs="$rpathdirs $dir"
10832 fi
10833 haveit=
10834 for x in $ltrpathdirs; do
10835 if test "X$x" = "X$dir"; then
10836 haveit=yes
10837 break
10838 fi
10839 done
10840 if test -z "$haveit"; then
10841 ltrpathdirs="$ltrpathdirs $dir"
10842 fi
10843 fi
10844 ;;
10845 -l*)
10846 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10847 ;;
10848 *.la)
10849 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10850 ;;
10851 *)
10852 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10853 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10854 ;;
10855 esac
10856 done
10857 fi
10858 else
10859 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10860 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10861 fi
10862 fi
10863 fi
10864 done
10865 done
10866 if test "X$rpathdirs" != "X"; then
10867 if test -n "$hardcode_libdir_separator"; then
10868 alldirs=
10869 for found_dir in $rpathdirs; do
10870 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10871 done
10872 acl_save_libdir="$libdir"
10873 libdir="$alldirs"
10874 eval flag=\"$hardcode_libdir_flag_spec\"
10875 libdir="$acl_save_libdir"
10876 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10877 else
10878 for found_dir in $rpathdirs; do
10879 acl_save_libdir="$libdir"
10880 libdir="$found_dir"
10881 eval flag=\"$hardcode_libdir_flag_spec\"
10882 libdir="$acl_save_libdir"
10883 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10884 done
10885 fi
10886 fi
10887 if test "X$ltrpathdirs" != "X"; then
10888 for found_dir in $ltrpathdirs; do
10889 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10890 done
10891 fi
10892
10893
10894 ac_save_CPPFLAGS="$CPPFLAGS"
10895
10896 for element in $INCEXPAT; do
10897 haveit=
10898 for x in $CPPFLAGS; do
10899
10900 acl_save_prefix="$prefix"
10901 prefix="$acl_final_prefix"
10902 acl_save_exec_prefix="$exec_prefix"
10903 exec_prefix="$acl_final_exec_prefix"
10904 eval x=\"$x\"
10905 exec_prefix="$acl_save_exec_prefix"
10906 prefix="$acl_save_prefix"
10907
10908 if test "X$x" = "X$element"; then
10909 haveit=yes
10910 break
10911 fi
10912 done
10913 if test -z "$haveit"; then
10914 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10915 fi
10916 done
10917
10918
10919 echo "$as_me:$LINENO: checking for libexpat" >&5
10920 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
10921 if test "${ac_cv_libexpat+set}" = set; then
10922 echo $ECHO_N "(cached) $ECHO_C" >&6
10923 else
10924
10925 ac_save_LIBS="$LIBS"
10926 LIBS="$LIBS $LIBEXPAT"
10927 cat >conftest.$ac_ext <<_ACEOF
10928 /* confdefs.h. */
10929 _ACEOF
10930 cat confdefs.h >>conftest.$ac_ext
10931 cat >>conftest.$ac_ext <<_ACEOF
10932 /* end confdefs.h. */
10933 #include "expat.h"
10934 int
10935 main ()
10936 {
10937 XML_Parser p = XML_ParserCreate (0);
10938 ;
10939 return 0;
10940 }
10941 _ACEOF
10942 rm -f conftest.$ac_objext conftest$ac_exeext
10943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10944 (eval $ac_link) 2>conftest.er1
10945 ac_status=$?
10946 grep -v '^ *+' conftest.er1 >conftest.err
10947 rm -f conftest.er1
10948 cat conftest.err >&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); } &&
10951 { ac_try='test -z "$ac_c_werror_flag"
10952 || test ! -s conftest.err'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; } &&
10958 { ac_try='test -s conftest$ac_exeext'
10959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10960 (eval $ac_try) 2>&5
10961 ac_status=$?
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); }; }; then
10964 ac_cv_libexpat=yes
10965 else
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10968
10969 ac_cv_libexpat=no
10970 fi
10971 rm -f conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext conftest.$ac_ext
10973 LIBS="$ac_save_LIBS"
10974
10975 fi
10976 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
10977 echo "${ECHO_T}$ac_cv_libexpat" >&6
10978 if test "$ac_cv_libexpat" = yes; then
10979 HAVE_LIBEXPAT=yes
10980
10981 cat >>confdefs.h <<\_ACEOF
10982 #define HAVE_LIBEXPAT 1
10983 _ACEOF
10984
10985 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
10986 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
10987 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
10988 echo "${ECHO_T}$LIBEXPAT" >&6
10989 else
10990 HAVE_LIBEXPAT=no
10991 CPPFLAGS="$ac_save_CPPFLAGS"
10992 LIBEXPAT=
10993 LTLIBEXPAT=
10994 fi
10995
10996
10997
10998
10999
11000
11001 if test "$HAVE_LIBEXPAT" != yes; then
11002 if test "$with_expat" = yes; then
11003 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11004 echo "$as_me: error: expat is missing or unusable" >&2;}
11005 { (exit 1); exit 1; }; }
11006 else
11007 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11008 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11009 fi
11010 else
11011 save_LIBS=$LIBS
11012 LIBS="$LIBS $LIBEXPAT"
11013
11014 for ac_func in XML_StopParser
11015 do
11016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11017 echo "$as_me:$LINENO: checking for $ac_func" >&5
11018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11019 if eval "test \"\${$as_ac_var+set}\" = set"; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11021 else
11022 cat >conftest.$ac_ext <<_ACEOF
11023 /* confdefs.h. */
11024 _ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11030 #define $ac_func innocuous_$ac_func
11031
11032 /* System header to define __stub macros and hopefully few prototypes,
11033 which can conflict with char $ac_func (); below.
11034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11035 <limits.h> exists even on freestanding compilers. */
11036
11037 #ifdef __STDC__
11038 # include <limits.h>
11039 #else
11040 # include <assert.h>
11041 #endif
11042
11043 #undef $ac_func
11044
11045 /* Override any gcc2 internal prototype to avoid an error. */
11046 #ifdef __cplusplus
11047 extern "C"
11048 {
11049 #endif
11050 /* We use char because int might match the return type of a gcc2
11051 builtin and then its argument prototype would still apply. */
11052 char $ac_func ();
11053 /* The GNU C library defines this for functions which it implements
11054 to always fail with ENOSYS. Some functions are actually named
11055 something starting with __ and the normal name is an alias. */
11056 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11057 choke me
11058 #else
11059 char (*f) () = $ac_func;
11060 #endif
11061 #ifdef __cplusplus
11062 }
11063 #endif
11064
11065 int
11066 main ()
11067 {
11068 return f != $ac_func;
11069 ;
11070 return 0;
11071 }
11072 _ACEOF
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11075 (eval $ac_link) 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } &&
11082 { ac_try='test -z "$ac_c_werror_flag"
11083 || test ! -s conftest.err'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11086 ac_status=$?
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; } &&
11089 { ac_try='test -s conftest$ac_exeext'
11090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11091 (eval $ac_try) 2>&5
11092 ac_status=$?
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); }; }; then
11095 eval "$as_ac_var=yes"
11096 else
11097 echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100 eval "$as_ac_var=no"
11101 fi
11102 rm -f conftest.err conftest.$ac_objext \
11103 conftest$ac_exeext conftest.$ac_ext
11104 fi
11105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11106 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11107 if test `eval echo '${'$as_ac_var'}'` = yes; then
11108 cat >>confdefs.h <<_ACEOF
11109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11110 _ACEOF
11111
11112 fi
11113 done
11114
11115 LIBS=$save_LIBS
11116 fi
11117 fi
11118
11119
11120
11121
11122 # Check whether --with-python or --without-python was given.
11123 if test "${with_python+set}" = set; then
11124 withval="$with_python"
11125
11126 else
11127 with_python=auto
11128 fi;
11129 echo "$as_me:$LINENO: checking whether to use python" >&5
11130 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11131 echo "$as_me:$LINENO: result: $with_python" >&5
11132 echo "${ECHO_T}$with_python" >&6
11133
11134 if test "${with_python}" = no; then
11135 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11136 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11137 have_libpython=no
11138 else
11139 case "${with_python}" in
11140 yes | auto)
11141 # Leave as empty, use defaults.
11142 python_includes=
11143 python_libs=
11144 ;;
11145 /*)
11146 python_includes="-I${with_python}/include"
11147 python_libs="-L${with_python}/lib"
11148 ;;
11149 *)
11150 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11151 echo "$as_me: error: invalid value for --with-python" >&2;}
11152 { (exit 1); exit 1; }; }
11153 ;;
11154 esac
11155
11156 save_CPPFLAGS=$CPPFLAGS
11157 CPPFLAGS="$CPPFLAGS ${python_includes}"
11158 save_LIBS=$LIBS
11159 LIBS="$LIBS ${python_libs}"
11160 have_libpython=no
11161 if test "${have_libpython}" = no; then
11162
11163 version=python2.6
11164
11165
11166 HAVE_LIBPYTHON2_6=no
11167 echo "$as_me:$LINENO: checking for ${version}" >&5
11168 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11169 save_LIBS=$LIBS
11170 LIBS="$LIBS -l${version}"
11171 cat >conftest.$ac_ext <<_ACEOF
11172 /* confdefs.h. */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 #include "${version}/Python.h"
11178 int
11179 main ()
11180 {
11181 Py_Initialize ();
11182 ;
11183 return 0;
11184 }
11185 _ACEOF
11186 rm -f conftest.$ac_objext conftest$ac_exeext
11187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11188 (eval $ac_link) 2>conftest.er1
11189 ac_status=$?
11190 grep -v '^ *+' conftest.er1 >conftest.err
11191 rm -f conftest.er1
11192 cat conftest.err >&5
11193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11194 (exit $ac_status); } &&
11195 { ac_try='test -z "$ac_c_werror_flag"
11196 || test ! -s conftest.err'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11199 ac_status=$?
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; } &&
11202 { ac_try='test -s conftest$ac_exeext'
11203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204 (eval $ac_try) 2>&5
11205 ac_status=$?
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; }; then
11208 HAVE_LIBPYTHON2_6=yes
11209 have_libpython=yes
11210 else
11211 echo "$as_me: failed program was:" >&5
11212 sed 's/^/| /' conftest.$ac_ext >&5
11213
11214 LIBS=$save_LIBS
11215 fi
11216 rm -f conftest.err conftest.$ac_objext \
11217 conftest$ac_exeext conftest.$ac_ext
11218 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11219 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11220
11221 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11222
11223 cat >>confdefs.h <<\_ACEOF
11224 #define HAVE_LIBPYTHON2_6 1
11225 _ACEOF
11226
11227 fi
11228 fi
11229 if test ${have_libpython} = no; then
11230
11231 version=python2.5
11232
11233
11234 HAVE_LIBPYTHON2_5=no
11235 echo "$as_me:$LINENO: checking for ${version}" >&5
11236 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11237 save_LIBS=$LIBS
11238 LIBS="$LIBS -l${version}"
11239 cat >conftest.$ac_ext <<_ACEOF
11240 /* confdefs.h. */
11241 _ACEOF
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 #include "${version}/Python.h"
11246 int
11247 main ()
11248 {
11249 Py_Initialize ();
11250 ;
11251 return 0;
11252 }
11253 _ACEOF
11254 rm -f conftest.$ac_objext conftest$ac_exeext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256 (eval $ac_link) 2>conftest.er1
11257 ac_status=$?
11258 grep -v '^ *+' conftest.er1 >conftest.err
11259 rm -f conftest.er1
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
11263 { ac_try='test -z "$ac_c_werror_flag"
11264 || test ! -s conftest.err'
11265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11266 (eval $ac_try) 2>&5
11267 ac_status=$?
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); }; } &&
11270 { ac_try='test -s conftest$ac_exeext'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11273 ac_status=$?
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; }; then
11276 HAVE_LIBPYTHON2_5=yes
11277 have_libpython=yes
11278 else
11279 echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11281
11282 LIBS=$save_LIBS
11283 fi
11284 rm -f conftest.err conftest.$ac_objext \
11285 conftest$ac_exeext conftest.$ac_ext
11286 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11287 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11288
11289 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11290
11291 cat >>confdefs.h <<\_ACEOF
11292 #define HAVE_LIBPYTHON2_5 1
11293 _ACEOF
11294
11295 fi
11296 fi
11297 if test ${have_libpython} = no; then
11298
11299 version=python2.4
11300
11301
11302 HAVE_LIBPYTHON2_4=no
11303 echo "$as_me:$LINENO: checking for ${version}" >&5
11304 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11305 save_LIBS=$LIBS
11306 LIBS="$LIBS -l${version}"
11307 cat >conftest.$ac_ext <<_ACEOF
11308 /* confdefs.h. */
11309 _ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11313 #include "${version}/Python.h"
11314 int
11315 main ()
11316 {
11317 Py_Initialize ();
11318 ;
11319 return 0;
11320 }
11321 _ACEOF
11322 rm -f conftest.$ac_objext conftest$ac_exeext
11323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11324 (eval $ac_link) 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } &&
11331 { ac_try='test -z "$ac_c_werror_flag"
11332 || test ! -s conftest.err'
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11335 ac_status=$?
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; } &&
11338 { ac_try='test -s conftest$ac_exeext'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11341 ac_status=$?
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; }; then
11344 HAVE_LIBPYTHON2_4=yes
11345 have_libpython=yes
11346 else
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11349
11350 LIBS=$save_LIBS
11351 fi
11352 rm -f conftest.err conftest.$ac_objext \
11353 conftest$ac_exeext conftest.$ac_ext
11354 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11355 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11356
11357 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11358
11359 cat >>confdefs.h <<\_ACEOF
11360 #define HAVE_LIBPYTHON2_4 1
11361 _ACEOF
11362
11363 fi
11364 fi
11365 if test ${have_libpython} = no; then
11366 case "${with_python}" in
11367 yes)
11368 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11369 echo "$as_me: error: python is missing or unusable" >&2;}
11370 { (exit 1); exit 1; }; }
11371 ;;
11372 auto)
11373 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11374 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11375 ;;
11376 *)
11377 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11378 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11379 { (exit 1); exit 1; }; }
11380 ;;
11381 esac
11382 CPPFLAGS=$save_CPPFLAGS
11383 LIBS=$save_LIBS
11384 fi
11385 fi
11386
11387 if test "${have_libpython}" = yes; then
11388
11389 cat >>confdefs.h <<\_ACEOF
11390 #define HAVE_PYTHON 1
11391 _ACEOF
11392
11393 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11394 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11395 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11396 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11397
11398 # Flags needed to compile Python code (taken from python-config --cflags).
11399 # We cannot call python-config directly because it will output whatever was
11400 # used when compiling the Python interpreter itself, including flags which
11401 # would make the python-related objects be compiled differently from the
11402 # rest of GDB (e.g., -O2 and -fPIC).
11403 if test "${GCC}" = yes; then
11404 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11405 fi
11406
11407 if test "x${tentative_python_cflags}" != x; then
11408 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11409 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11410 for flag in ${tentative_python_cflags}; do
11411 # Check that the compiler accepts it
11412 saved_CFLAGS="$CFLAGS"
11413 CFLAGS="$CFLAGS $flag"
11414 cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h. */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420
11421 int
11422 main ()
11423 {
11424
11425 ;
11426 return 0;
11427 }
11428 _ACEOF
11429 rm -f conftest.$ac_objext
11430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11431 (eval $ac_compile) 2>conftest.er1
11432 ac_status=$?
11433 grep -v '^ *+' conftest.er1 >conftest.err
11434 rm -f conftest.er1
11435 cat conftest.err >&5
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); } &&
11438 { ac_try='test -z "$ac_c_werror_flag"
11439 || test ! -s conftest.err'
11440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11441 (eval $ac_try) 2>&5
11442 ac_status=$?
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); }; } &&
11445 { ac_try='test -s conftest.$ac_objext'
11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11447 (eval $ac_try) 2>&5
11448 ac_status=$?
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); }; }; then
11451 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11452 else
11453 echo "$as_me: failed program was:" >&5
11454 sed 's/^/| /' conftest.$ac_ext >&5
11455
11456 fi
11457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11458 CFLAGS="$saved_CFLAGS"
11459 done
11460 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11461 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11462 fi
11463 else
11464 # Even if Python support is not compiled in, we need to have these files
11465 # included in order to recognize the GDB command "python".
11466 CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
11467 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
11468 fi
11469
11470
11471 # ------------------------- #
11472 # Checks for header files. #
11473 # ------------------------- #
11474
11475
11476
11477
11478
11479
11480 ac_header_dirent=no
11481 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11482 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11483 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11484 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 else
11488 cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h. */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 #include <sys/types.h>
11495 #include <$ac_hdr>
11496
11497 int
11498 main ()
11499 {
11500 if ((DIR *) 0)
11501 return 0;
11502 ;
11503 return 0;
11504 }
11505 _ACEOF
11506 rm -f conftest.$ac_objext
11507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11508 (eval $ac_compile) 2>conftest.er1
11509 ac_status=$?
11510 grep -v '^ *+' conftest.er1 >conftest.err
11511 rm -f conftest.er1
11512 cat conftest.err >&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } &&
11515 { ac_try='test -z "$ac_c_werror_flag"
11516 || test ! -s conftest.err'
11517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11518 (eval $ac_try) 2>&5
11519 ac_status=$?
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); }; } &&
11522 { ac_try='test -s conftest.$ac_objext'
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; }; then
11528 eval "$as_ac_Header=yes"
11529 else
11530 echo "$as_me: failed program was:" >&5
11531 sed 's/^/| /' conftest.$ac_ext >&5
11532
11533 eval "$as_ac_Header=no"
11534 fi
11535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11536 fi
11537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11540 cat >>confdefs.h <<_ACEOF
11541 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11542 _ACEOF
11543
11544 ac_header_dirent=$ac_hdr; break
11545 fi
11546
11547 done
11548 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11549 if test $ac_header_dirent = dirent.h; then
11550 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11551 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11552 if test "${ac_cv_search_opendir+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 else
11555 ac_func_search_save_LIBS=$LIBS
11556 ac_cv_search_opendir=no
11557 cat >conftest.$ac_ext <<_ACEOF
11558 /* confdefs.h. */
11559 _ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11563
11564 /* Override any gcc2 internal prototype to avoid an error. */
11565 #ifdef __cplusplus
11566 extern "C"
11567 #endif
11568 /* We use char because int might match the return type of a gcc2
11569 builtin and then its argument prototype would still apply. */
11570 char opendir ();
11571 int
11572 main ()
11573 {
11574 opendir ();
11575 ;
11576 return 0;
11577 }
11578 _ACEOF
11579 rm -f conftest.$ac_objext conftest$ac_exeext
11580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11581 (eval $ac_link) 2>conftest.er1
11582 ac_status=$?
11583 grep -v '^ *+' conftest.er1 >conftest.err
11584 rm -f conftest.er1
11585 cat conftest.err >&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); } &&
11588 { ac_try='test -z "$ac_c_werror_flag"
11589 || test ! -s conftest.err'
11590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11591 (eval $ac_try) 2>&5
11592 ac_status=$?
11593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594 (exit $ac_status); }; } &&
11595 { ac_try='test -s conftest$ac_exeext'
11596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11597 (eval $ac_try) 2>&5
11598 ac_status=$?
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); }; }; then
11601 ac_cv_search_opendir="none required"
11602 else
11603 echo "$as_me: failed program was:" >&5
11604 sed 's/^/| /' conftest.$ac_ext >&5
11605
11606 fi
11607 rm -f conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11609 if test "$ac_cv_search_opendir" = no; then
11610 for ac_lib in dir; do
11611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11612 cat >conftest.$ac_ext <<_ACEOF
11613 /* confdefs.h. */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h. */
11618
11619 /* Override any gcc2 internal prototype to avoid an error. */
11620 #ifdef __cplusplus
11621 extern "C"
11622 #endif
11623 /* We use char because int might match the return type of a gcc2
11624 builtin and then its argument prototype would still apply. */
11625 char opendir ();
11626 int
11627 main ()
11628 {
11629 opendir ();
11630 ;
11631 return 0;
11632 }
11633 _ACEOF
11634 rm -f conftest.$ac_objext conftest$ac_exeext
11635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11636 (eval $ac_link) 2>conftest.er1
11637 ac_status=$?
11638 grep -v '^ *+' conftest.er1 >conftest.err
11639 rm -f conftest.er1
11640 cat conftest.err >&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); } &&
11643 { ac_try='test -z "$ac_c_werror_flag"
11644 || test ! -s conftest.err'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11647 ac_status=$?
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; } &&
11650 { ac_try='test -s conftest$ac_exeext'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 ac_cv_search_opendir="-l$ac_lib"
11657 break
11658 else
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11661
11662 fi
11663 rm -f conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
11665 done
11666 fi
11667 LIBS=$ac_func_search_save_LIBS
11668 fi
11669 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11670 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11671 if test "$ac_cv_search_opendir" != no; then
11672 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11673
11674 fi
11675
11676 else
11677 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11678 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11679 if test "${ac_cv_search_opendir+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11681 else
11682 ac_func_search_save_LIBS=$LIBS
11683 ac_cv_search_opendir=no
11684 cat >conftest.$ac_ext <<_ACEOF
11685 /* confdefs.h. */
11686 _ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690
11691 /* Override any gcc2 internal prototype to avoid an error. */
11692 #ifdef __cplusplus
11693 extern "C"
11694 #endif
11695 /* We use char because int might match the return type of a gcc2
11696 builtin and then its argument prototype would still apply. */
11697 char opendir ();
11698 int
11699 main ()
11700 {
11701 opendir ();
11702 ;
11703 return 0;
11704 }
11705 _ACEOF
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11708 (eval $ac_link) 2>conftest.er1
11709 ac_status=$?
11710 grep -v '^ *+' conftest.er1 >conftest.err
11711 rm -f conftest.er1
11712 cat conftest.err >&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } &&
11715 { ac_try='test -z "$ac_c_werror_flag"
11716 || test ! -s conftest.err'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest$ac_exeext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11725 ac_status=$?
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 ac_cv_search_opendir="none required"
11729 else
11730 echo "$as_me: failed program was:" >&5
11731 sed 's/^/| /' conftest.$ac_ext >&5
11732
11733 fi
11734 rm -f conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11736 if test "$ac_cv_search_opendir" = no; then
11737 for ac_lib in x; do
11738 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11739 cat >conftest.$ac_ext <<_ACEOF
11740 /* confdefs.h. */
11741 _ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11745
11746 /* Override any gcc2 internal prototype to avoid an error. */
11747 #ifdef __cplusplus
11748 extern "C"
11749 #endif
11750 /* We use char because int might match the return type of a gcc2
11751 builtin and then its argument prototype would still apply. */
11752 char opendir ();
11753 int
11754 main ()
11755 {
11756 opendir ();
11757 ;
11758 return 0;
11759 }
11760 _ACEOF
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11763 (eval $ac_link) 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_c_werror_flag"
11771 || test ! -s conftest.err'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11774 ac_status=$?
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; } &&
11777 { ac_try='test -s conftest$ac_exeext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783 ac_cv_search_opendir="-l$ac_lib"
11784 break
11785 else
11786 echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11788
11789 fi
11790 rm -f conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11792 done
11793 fi
11794 LIBS=$ac_func_search_save_LIBS
11795 fi
11796 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11797 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11798 if test "$ac_cv_search_opendir" != no; then
11799 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11800
11801 fi
11802
11803 fi
11804
11805 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11806 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11807 if test "${ac_cv_header_stat_broken+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810 cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h. */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 #include <sys/types.h>
11817 #include <sys/stat.h>
11818
11819 #if defined(S_ISBLK) && defined(S_IFDIR)
11820 # if S_ISBLK (S_IFDIR)
11821 You lose.
11822 # endif
11823 #endif
11824
11825 #if defined(S_ISBLK) && defined(S_IFCHR)
11826 # if S_ISBLK (S_IFCHR)
11827 You lose.
11828 # endif
11829 #endif
11830
11831 #if defined(S_ISLNK) && defined(S_IFREG)
11832 # if S_ISLNK (S_IFREG)
11833 You lose.
11834 # endif
11835 #endif
11836
11837 #if defined(S_ISSOCK) && defined(S_IFREG)
11838 # if S_ISSOCK (S_IFREG)
11839 You lose.
11840 # endif
11841 #endif
11842
11843 _ACEOF
11844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11845 $EGREP "You lose" >/dev/null 2>&1; then
11846 ac_cv_header_stat_broken=yes
11847 else
11848 ac_cv_header_stat_broken=no
11849 fi
11850 rm -f conftest*
11851
11852 fi
11853 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11854 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11855 if test $ac_cv_header_stat_broken = yes; then
11856
11857 cat >>confdefs.h <<\_ACEOF
11858 #define STAT_MACROS_BROKEN 1
11859 _ACEOF
11860
11861 fi
11862
11863 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11864 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11865 if test "${ac_cv_header_stdc+set}" = set; then
11866 echo $ECHO_N "(cached) $ECHO_C" >&6
11867 else
11868 cat >conftest.$ac_ext <<_ACEOF
11869 /* confdefs.h. */
11870 _ACEOF
11871 cat confdefs.h >>conftest.$ac_ext
11872 cat >>conftest.$ac_ext <<_ACEOF
11873 /* end confdefs.h. */
11874 #include <stdlib.h>
11875 #include <stdarg.h>
11876 #include <string.h>
11877 #include <float.h>
11878
11879 int
11880 main ()
11881 {
11882
11883 ;
11884 return 0;
11885 }
11886 _ACEOF
11887 rm -f conftest.$ac_objext
11888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11889 (eval $ac_compile) 2>conftest.er1
11890 ac_status=$?
11891 grep -v '^ *+' conftest.er1 >conftest.err
11892 rm -f conftest.er1
11893 cat conftest.err >&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); } &&
11896 { ac_try='test -z "$ac_c_werror_flag"
11897 || test ! -s conftest.err'
11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899 (eval $ac_try) 2>&5
11900 ac_status=$?
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); }; } &&
11903 { ac_try='test -s conftest.$ac_objext'
11904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11905 (eval $ac_try) 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 ac_cv_header_stdc=yes
11910 else
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11913
11914 ac_cv_header_stdc=no
11915 fi
11916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11917
11918 if test $ac_cv_header_stdc = yes; then
11919 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11920 cat >conftest.$ac_ext <<_ACEOF
11921 /* confdefs.h. */
11922 _ACEOF
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h. */
11926 #include <string.h>
11927
11928 _ACEOF
11929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11930 $EGREP "memchr" >/dev/null 2>&1; then
11931 :
11932 else
11933 ac_cv_header_stdc=no
11934 fi
11935 rm -f conftest*
11936
11937 fi
11938
11939 if test $ac_cv_header_stdc = yes; then
11940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11941 cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h. */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947 #include <stdlib.h>
11948
11949 _ACEOF
11950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11951 $EGREP "free" >/dev/null 2>&1; then
11952 :
11953 else
11954 ac_cv_header_stdc=no
11955 fi
11956 rm -f conftest*
11957
11958 fi
11959
11960 if test $ac_cv_header_stdc = yes; then
11961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11962 if test "$cross_compiling" = yes; then
11963 :
11964 else
11965 cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h. */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11971 #include <ctype.h>
11972 #if ((' ' & 0x0FF) == 0x020)
11973 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11974 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11975 #else
11976 # define ISLOWER(c) \
11977 (('a' <= (c) && (c) <= 'i') \
11978 || ('j' <= (c) && (c) <= 'r') \
11979 || ('s' <= (c) && (c) <= 'z'))
11980 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11981 #endif
11982
11983 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11984 int
11985 main ()
11986 {
11987 int i;
11988 for (i = 0; i < 256; i++)
11989 if (XOR (islower (i), ISLOWER (i))
11990 || toupper (i) != TOUPPER (i))
11991 exit(2);
11992 exit (0);
11993 }
11994 _ACEOF
11995 rm -f conftest$ac_exeext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997 (eval $ac_link) 2>&5
11998 ac_status=$?
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12002 (eval $ac_try) 2>&5
12003 ac_status=$?
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); }; }; then
12006 :
12007 else
12008 echo "$as_me: program exited with status $ac_status" >&5
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12011
12012 ( exit $ac_status )
12013 ac_cv_header_stdc=no
12014 fi
12015 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12016 fi
12017 fi
12018 fi
12019 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12020 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12021 if test $ac_cv_header_stdc = yes; then
12022
12023 cat >>confdefs.h <<\_ACEOF
12024 #define STDC_HEADERS 1
12025 _ACEOF
12026
12027 fi
12028
12029 # elf_hp.h is for HP/UX 64-bit shared library support.
12030 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12031 # unconditionally, so what's the point in checking these?
12032
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 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12069 thread_db.h gnu/libc-version.h signal.h stddef.h \
12070 stdlib.h string.h memory.h strings.h sys/fault.h \
12071 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12072 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12073 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
12074 sys/types.h sys/wait.h wait.h termios.h termio.h \
12075 sgtty.h unistd.h elf_hp.h ctype.h time.h
12076 do
12077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12079 echo "$as_me:$LINENO: checking for $ac_header" >&5
12080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12083 fi
12084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12086 else
12087 # Is the header compilable?
12088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12090 cat >conftest.$ac_ext <<_ACEOF
12091 /* confdefs.h. */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12096 $ac_includes_default
12097 #include <$ac_header>
12098 _ACEOF
12099 rm -f conftest.$ac_objext
12100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12101 (eval $ac_compile) 2>conftest.er1
12102 ac_status=$?
12103 grep -v '^ *+' conftest.er1 >conftest.err
12104 rm -f conftest.er1
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } &&
12108 { ac_try='test -z "$ac_c_werror_flag"
12109 || test ! -s conftest.err'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12112 ac_status=$?
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; } &&
12115 { ac_try='test -s conftest.$ac_objext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12118 ac_status=$?
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 ac_header_compiler=yes
12122 else
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12125
12126 ac_header_compiler=no
12127 fi
12128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12130 echo "${ECHO_T}$ac_header_compiler" >&6
12131
12132 # Is the header present?
12133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h. */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 #include <$ac_header>
12142 _ACEOF
12143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12145 ac_status=$?
12146 grep -v '^ *+' conftest.er1 >conftest.err
12147 rm -f conftest.er1
12148 cat conftest.err >&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } >/dev/null; then
12151 if test -s conftest.err; then
12152 ac_cpp_err=$ac_c_preproc_warn_flag
12153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12154 else
12155 ac_cpp_err=
12156 fi
12157 else
12158 ac_cpp_err=yes
12159 fi
12160 if test -z "$ac_cpp_err"; then
12161 ac_header_preproc=yes
12162 else
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.$ac_ext >&5
12165
12166 ac_header_preproc=no
12167 fi
12168 rm -f conftest.err conftest.$ac_ext
12169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12170 echo "${ECHO_T}$ac_header_preproc" >&6
12171
12172 # So? What about this header?
12173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12174 yes:no: )
12175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12179 ac_header_preproc=yes
12180 ;;
12181 no:yes:* )
12182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12194 (
12195 cat <<\_ASBOX
12196 ## ------------------------------------------ ##
12197 ## Report this to the AC_PACKAGE_NAME lists. ##
12198 ## ------------------------------------------ ##
12199 _ASBOX
12200 ) |
12201 sed "s/^/$as_me: WARNING: /" >&2
12202 ;;
12203 esac
12204 echo "$as_me:$LINENO: checking for $ac_header" >&5
12205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12208 else
12209 eval "$as_ac_Header=\$ac_header_preproc"
12210 fi
12211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12213
12214 fi
12215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12216 cat >>confdefs.h <<_ACEOF
12217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12218 _ACEOF
12219
12220 fi
12221
12222 done
12223
12224
12225 for ac_header in link.h
12226 do
12227 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12228 echo "$as_me:$LINENO: checking for $ac_header" >&5
12229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12230 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233 cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h. */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 #if HAVE_SYS_TYPES_H
12240 # include <sys/types.h>
12241 #endif
12242 #if HAVE_NLIST_H
12243 # include <nlist.h>
12244 #endif
12245
12246
12247 #include <$ac_header>
12248 _ACEOF
12249 rm -f conftest.$ac_objext
12250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12251 (eval $ac_compile) 2>conftest.er1
12252 ac_status=$?
12253 grep -v '^ *+' conftest.er1 >conftest.err
12254 rm -f conftest.er1
12255 cat conftest.err >&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } &&
12258 { ac_try='test -z "$ac_c_werror_flag"
12259 || test ! -s conftest.err'
12260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261 (eval $ac_try) 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; } &&
12265 { ac_try='test -s conftest.$ac_objext'
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; }; then
12271 eval "$as_ac_Header=yes"
12272 else
12273 echo "$as_me: failed program was:" >&5
12274 sed 's/^/| /' conftest.$ac_ext >&5
12275
12276 eval "$as_ac_Header=no"
12277 fi
12278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12279 fi
12280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12281 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12283 cat >>confdefs.h <<_ACEOF
12284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12285 _ACEOF
12286
12287 fi
12288
12289 done
12290
12291
12292 for ac_header in sys/proc.h
12293 do
12294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12295 echo "$as_me:$LINENO: checking for $ac_header" >&5
12296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12299 else
12300 cat >conftest.$ac_ext <<_ACEOF
12301 /* confdefs.h. */
12302 _ACEOF
12303 cat confdefs.h >>conftest.$ac_ext
12304 cat >>conftest.$ac_ext <<_ACEOF
12305 /* end confdefs.h. */
12306 #if HAVE_SYS_PARAM_H
12307 # include <sys/param.h>
12308 #endif
12309
12310
12311 #include <$ac_header>
12312 _ACEOF
12313 rm -f conftest.$ac_objext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12315 (eval $ac_compile) 2>conftest.er1
12316 ac_status=$?
12317 grep -v '^ *+' conftest.er1 >conftest.err
12318 rm -f conftest.er1
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
12322 { ac_try='test -z "$ac_c_werror_flag"
12323 || test ! -s conftest.err'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest.$ac_objext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12332 ac_status=$?
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 eval "$as_ac_Header=yes"
12336 else
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12339
12340 eval "$as_ac_Header=no"
12341 fi
12342 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12343 fi
12344 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12345 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12347 cat >>confdefs.h <<_ACEOF
12348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12349 _ACEOF
12350
12351 fi
12352
12353 done
12354
12355
12356 for ac_header in sys/user.h
12357 do
12358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12359 echo "$as_me:$LINENO: checking for $ac_header" >&5
12360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12363 else
12364 cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h. */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12370 #if HAVE_SYS_PARAM_H
12371 # include <sys/param.h>
12372 #endif
12373
12374
12375 #include <$ac_header>
12376 _ACEOF
12377 rm -f conftest.$ac_objext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12379 (eval $ac_compile) 2>conftest.er1
12380 ac_status=$?
12381 grep -v '^ *+' conftest.er1 >conftest.err
12382 rm -f conftest.er1
12383 cat conftest.err >&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } &&
12386 { ac_try='test -z "$ac_c_werror_flag"
12387 || test ! -s conftest.err'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; } &&
12393 { ac_try='test -s conftest.$ac_objext'
12394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395 (eval $ac_try) 2>&5
12396 ac_status=$?
12397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398 (exit $ac_status); }; }; then
12399 eval "$as_ac_Header=yes"
12400 else
12401 echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12403
12404 eval "$as_ac_Header=no"
12405 fi
12406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12407 fi
12408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12411 cat >>confdefs.h <<_ACEOF
12412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12413 _ACEOF
12414
12415 fi
12416
12417 done
12418
12419
12420 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12421 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12422 # think that we don't have <curses.h> if we're using GCC.
12423 case $host_os in
12424 solaris2.[789])
12425 if test "$GCC" = yes; then
12426
12427 cat >>confdefs.h <<\_ACEOF
12428 #define _MSE_INT_H 1
12429 _ACEOF
12430
12431 fi ;;
12432 esac
12433
12434
12435
12436
12437
12438 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
12439 do
12440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12442 echo "$as_me:$LINENO: checking for $ac_header" >&5
12443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12445 echo $ECHO_N "(cached) $ECHO_C" >&6
12446 fi
12447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12449 else
12450 # Is the header compilable?
12451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12453 cat >conftest.$ac_ext <<_ACEOF
12454 /* confdefs.h. */
12455 _ACEOF
12456 cat confdefs.h >>conftest.$ac_ext
12457 cat >>conftest.$ac_ext <<_ACEOF
12458 /* end confdefs.h. */
12459 $ac_includes_default
12460 #include <$ac_header>
12461 _ACEOF
12462 rm -f conftest.$ac_objext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12464 (eval $ac_compile) 2>conftest.er1
12465 ac_status=$?
12466 grep -v '^ *+' conftest.er1 >conftest.err
12467 rm -f conftest.er1
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -z "$ac_c_werror_flag"
12472 || test ! -s conftest.err'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try='test -s conftest.$ac_objext'
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 ac_header_compiler=yes
12485 else
12486 echo "$as_me: failed program was:" >&5
12487 sed 's/^/| /' conftest.$ac_ext >&5
12488
12489 ac_header_compiler=no
12490 fi
12491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12493 echo "${ECHO_T}$ac_header_compiler" >&6
12494
12495 # Is the header present?
12496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12498 cat >conftest.$ac_ext <<_ACEOF
12499 /* confdefs.h. */
12500 _ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h. */
12504 #include <$ac_header>
12505 _ACEOF
12506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12508 ac_status=$?
12509 grep -v '^ *+' conftest.er1 >conftest.err
12510 rm -f conftest.er1
12511 cat conftest.err >&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } >/dev/null; then
12514 if test -s conftest.err; then
12515 ac_cpp_err=$ac_c_preproc_warn_flag
12516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12517 else
12518 ac_cpp_err=
12519 fi
12520 else
12521 ac_cpp_err=yes
12522 fi
12523 if test -z "$ac_cpp_err"; then
12524 ac_header_preproc=yes
12525 else
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12528
12529 ac_header_preproc=no
12530 fi
12531 rm -f conftest.err conftest.$ac_ext
12532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12533 echo "${ECHO_T}$ac_header_preproc" >&6
12534
12535 # So? What about this header?
12536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12537 yes:no: )
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12542 ac_header_preproc=yes
12543 ;;
12544 no:yes:* )
12545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12557 (
12558 cat <<\_ASBOX
12559 ## ------------------------------------------ ##
12560 ## Report this to the AC_PACKAGE_NAME lists. ##
12561 ## ------------------------------------------ ##
12562 _ASBOX
12563 ) |
12564 sed "s/^/$as_me: WARNING: /" >&2
12565 ;;
12566 esac
12567 echo "$as_me:$LINENO: checking for $ac_header" >&5
12568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12570 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 else
12572 eval "$as_ac_Header=\$ac_header_preproc"
12573 fi
12574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12576
12577 fi
12578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12579 cat >>confdefs.h <<_ACEOF
12580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12581 _ACEOF
12582
12583 fi
12584
12585 done
12586
12587
12588 for ac_header in term.h
12589 do
12590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12591 echo "$as_me:$LINENO: checking for $ac_header" >&5
12592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596 cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h. */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 #if HAVE_CURSES_H
12603 # include <curses.h>
12604 #endif
12605
12606
12607 #include <$ac_header>
12608 _ACEOF
12609 rm -f conftest.$ac_objext
12610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12611 (eval $ac_compile) 2>conftest.er1
12612 ac_status=$?
12613 grep -v '^ *+' conftest.er1 >conftest.err
12614 rm -f conftest.er1
12615 cat conftest.err >&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } &&
12618 { ac_try='test -z "$ac_c_werror_flag"
12619 || test ! -s conftest.err'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12622 ac_status=$?
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; } &&
12625 { ac_try='test -s conftest.$ac_objext'
12626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627 (eval $ac_try) 2>&5
12628 ac_status=$?
12629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630 (exit $ac_status); }; }; then
12631 eval "$as_ac_Header=yes"
12632 else
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12635
12636 eval "$as_ac_Header=no"
12637 fi
12638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12639 fi
12640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12641 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12643 cat >>confdefs.h <<_ACEOF
12644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12645 _ACEOF
12646
12647 fi
12648
12649 done
12650
12651
12652 # ------------------------- #
12653 # Checks for declarations. #
12654 # ------------------------- #
12655
12656 echo "$as_me:$LINENO: checking whether free is declared" >&5
12657 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12658 if test "${ac_cv_have_decl_free+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661 cat >conftest.$ac_ext <<_ACEOF
12662 /* confdefs.h. */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */
12667 $ac_includes_default
12668 int
12669 main ()
12670 {
12671 #ifndef free
12672 char *p = (char *) free;
12673 #endif
12674
12675 ;
12676 return 0;
12677 }
12678 _ACEOF
12679 rm -f conftest.$ac_objext
12680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12681 (eval $ac_compile) 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -z "$ac_c_werror_flag"
12689 || test ! -s conftest.err'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; } &&
12695 { ac_try='test -s conftest.$ac_objext'
12696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697 (eval $ac_try) 2>&5
12698 ac_status=$?
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12701 ac_cv_have_decl_free=yes
12702 else
12703 echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12705
12706 ac_cv_have_decl_free=no
12707 fi
12708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12709 fi
12710 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
12711 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
12712 if test $ac_cv_have_decl_free = yes; then
12713
12714 cat >>confdefs.h <<_ACEOF
12715 #define HAVE_DECL_FREE 1
12716 _ACEOF
12717
12718
12719 else
12720 cat >>confdefs.h <<_ACEOF
12721 #define HAVE_DECL_FREE 0
12722 _ACEOF
12723
12724
12725 fi
12726 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
12727 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
12728 if test "${ac_cv_have_decl_malloc+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731 cat >conftest.$ac_ext <<_ACEOF
12732 /* confdefs.h. */
12733 _ACEOF
12734 cat confdefs.h >>conftest.$ac_ext
12735 cat >>conftest.$ac_ext <<_ACEOF
12736 /* end confdefs.h. */
12737 $ac_includes_default
12738 int
12739 main ()
12740 {
12741 #ifndef malloc
12742 char *p = (char *) malloc;
12743 #endif
12744
12745 ;
12746 return 0;
12747 }
12748 _ACEOF
12749 rm -f conftest.$ac_objext
12750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12751 (eval $ac_compile) 2>conftest.er1
12752 ac_status=$?
12753 grep -v '^ *+' conftest.er1 >conftest.err
12754 rm -f conftest.er1
12755 cat conftest.err >&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); } &&
12758 { ac_try='test -z "$ac_c_werror_flag"
12759 || test ! -s conftest.err'
12760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12761 (eval $ac_try) 2>&5
12762 ac_status=$?
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); }; } &&
12765 { ac_try='test -s conftest.$ac_objext'
12766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12767 (eval $ac_try) 2>&5
12768 ac_status=$?
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 (exit $ac_status); }; }; then
12771 ac_cv_have_decl_malloc=yes
12772 else
12773 echo "$as_me: failed program was:" >&5
12774 sed 's/^/| /' conftest.$ac_ext >&5
12775
12776 ac_cv_have_decl_malloc=no
12777 fi
12778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12779 fi
12780 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
12781 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
12782 if test $ac_cv_have_decl_malloc = yes; then
12783
12784 cat >>confdefs.h <<_ACEOF
12785 #define HAVE_DECL_MALLOC 1
12786 _ACEOF
12787
12788
12789 else
12790 cat >>confdefs.h <<_ACEOF
12791 #define HAVE_DECL_MALLOC 0
12792 _ACEOF
12793
12794
12795 fi
12796 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
12797 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
12798 if test "${ac_cv_have_decl_realloc+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 else
12801 cat >conftest.$ac_ext <<_ACEOF
12802 /* confdefs.h. */
12803 _ACEOF
12804 cat confdefs.h >>conftest.$ac_ext
12805 cat >>conftest.$ac_ext <<_ACEOF
12806 /* end confdefs.h. */
12807 $ac_includes_default
12808 int
12809 main ()
12810 {
12811 #ifndef realloc
12812 char *p = (char *) realloc;
12813 #endif
12814
12815 ;
12816 return 0;
12817 }
12818 _ACEOF
12819 rm -f conftest.$ac_objext
12820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12821 (eval $ac_compile) 2>conftest.er1
12822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } &&
12828 { ac_try='test -z "$ac_c_werror_flag"
12829 || test ! -s conftest.err'
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; } &&
12835 { ac_try='test -s conftest.$ac_objext'
12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837 (eval $ac_try) 2>&5
12838 ac_status=$?
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; }; then
12841 ac_cv_have_decl_realloc=yes
12842 else
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12845
12846 ac_cv_have_decl_realloc=no
12847 fi
12848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12849 fi
12850 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
12851 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
12852 if test $ac_cv_have_decl_realloc = yes; then
12853
12854 cat >>confdefs.h <<_ACEOF
12855 #define HAVE_DECL_REALLOC 1
12856 _ACEOF
12857
12858
12859 else
12860 cat >>confdefs.h <<_ACEOF
12861 #define HAVE_DECL_REALLOC 0
12862 _ACEOF
12863
12864
12865 fi
12866 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
12867 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
12868 if test "${ac_cv_have_decl_strerror+set}" = set; then
12869 echo $ECHO_N "(cached) $ECHO_C" >&6
12870 else
12871 cat >conftest.$ac_ext <<_ACEOF
12872 /* confdefs.h. */
12873 _ACEOF
12874 cat confdefs.h >>conftest.$ac_ext
12875 cat >>conftest.$ac_ext <<_ACEOF
12876 /* end confdefs.h. */
12877 $ac_includes_default
12878 int
12879 main ()
12880 {
12881 #ifndef strerror
12882 char *p = (char *) strerror;
12883 #endif
12884
12885 ;
12886 return 0;
12887 }
12888 _ACEOF
12889 rm -f conftest.$ac_objext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12891 (eval $ac_compile) 2>conftest.er1
12892 ac_status=$?
12893 grep -v '^ *+' conftest.er1 >conftest.err
12894 rm -f conftest.er1
12895 cat conftest.err >&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -z "$ac_c_werror_flag"
12899 || test ! -s conftest.err'
12900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12901 (eval $ac_try) 2>&5
12902 ac_status=$?
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; } &&
12905 { ac_try='test -s conftest.$ac_objext'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_cv_have_decl_strerror=yes
12912 else
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12915
12916 ac_cv_have_decl_strerror=no
12917 fi
12918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12919 fi
12920 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
12921 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
12922 if test $ac_cv_have_decl_strerror = yes; then
12923
12924 cat >>confdefs.h <<_ACEOF
12925 #define HAVE_DECL_STRERROR 1
12926 _ACEOF
12927
12928
12929 else
12930 cat >>confdefs.h <<_ACEOF
12931 #define HAVE_DECL_STRERROR 0
12932 _ACEOF
12933
12934
12935 fi
12936 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
12937 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
12938 if test "${ac_cv_have_decl_strstr+set}" = set; then
12939 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 else
12941 cat >conftest.$ac_ext <<_ACEOF
12942 /* confdefs.h. */
12943 _ACEOF
12944 cat confdefs.h >>conftest.$ac_ext
12945 cat >>conftest.$ac_ext <<_ACEOF
12946 /* end confdefs.h. */
12947 $ac_includes_default
12948 int
12949 main ()
12950 {
12951 #ifndef strstr
12952 char *p = (char *) strstr;
12953 #endif
12954
12955 ;
12956 return 0;
12957 }
12958 _ACEOF
12959 rm -f conftest.$ac_objext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961 (eval $ac_compile) 2>conftest.er1
12962 ac_status=$?
12963 grep -v '^ *+' conftest.er1 >conftest.err
12964 rm -f conftest.er1
12965 cat conftest.err >&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } &&
12968 { ac_try='test -z "$ac_c_werror_flag"
12969 || test ! -s conftest.err'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; } &&
12975 { ac_try='test -s conftest.$ac_objext'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12978 ac_status=$?
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 ac_cv_have_decl_strstr=yes
12982 else
12983 echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12985
12986 ac_cv_have_decl_strstr=no
12987 fi
12988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12989 fi
12990 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
12991 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
12992 if test $ac_cv_have_decl_strstr = yes; then
12993
12994 cat >>confdefs.h <<_ACEOF
12995 #define HAVE_DECL_STRSTR 1
12996 _ACEOF
12997
12998
12999 else
13000 cat >>confdefs.h <<_ACEOF
13001 #define HAVE_DECL_STRSTR 0
13002 _ACEOF
13003
13004
13005 fi
13006 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13007 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13008 if test "${ac_cv_have_decl_getopt+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011 cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h. */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13017 $ac_includes_default
13018 int
13019 main ()
13020 {
13021 #ifndef getopt
13022 char *p = (char *) getopt;
13023 #endif
13024
13025 ;
13026 return 0;
13027 }
13028 _ACEOF
13029 rm -f conftest.$ac_objext
13030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13031 (eval $ac_compile) 2>conftest.er1
13032 ac_status=$?
13033 grep -v '^ *+' conftest.er1 >conftest.err
13034 rm -f conftest.er1
13035 cat conftest.err >&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } &&
13038 { ac_try='test -z "$ac_c_werror_flag"
13039 || test ! -s conftest.err'
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; } &&
13045 { ac_try='test -s conftest.$ac_objext'
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051 ac_cv_have_decl_getopt=yes
13052 else
13053 echo "$as_me: failed program was:" >&5
13054 sed 's/^/| /' conftest.$ac_ext >&5
13055
13056 ac_cv_have_decl_getopt=no
13057 fi
13058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13059 fi
13060 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13061 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13062 if test $ac_cv_have_decl_getopt = yes; then
13063
13064 cat >>confdefs.h <<_ACEOF
13065 #define HAVE_DECL_GETOPT 1
13066 _ACEOF
13067
13068
13069 else
13070 cat >>confdefs.h <<_ACEOF
13071 #define HAVE_DECL_GETOPT 0
13072 _ACEOF
13073
13074
13075 fi
13076 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13077 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13078 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13079 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 else
13081 cat >conftest.$ac_ext <<_ACEOF
13082 /* confdefs.h. */
13083 _ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13087 $ac_includes_default
13088 int
13089 main ()
13090 {
13091 #ifndef snprintf
13092 char *p = (char *) snprintf;
13093 #endif
13094
13095 ;
13096 return 0;
13097 }
13098 _ACEOF
13099 rm -f conftest.$ac_objext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101 (eval $ac_compile) 2>conftest.er1
13102 ac_status=$?
13103 grep -v '^ *+' conftest.er1 >conftest.err
13104 rm -f conftest.er1
13105 cat conftest.err >&5
13106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107 (exit $ac_status); } &&
13108 { ac_try='test -z "$ac_c_werror_flag"
13109 || test ! -s conftest.err'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try='test -s conftest.$ac_objext'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121 ac_cv_have_decl_snprintf=yes
13122 else
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13125
13126 ac_cv_have_decl_snprintf=no
13127 fi
13128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13129 fi
13130 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13131 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13132 if test $ac_cv_have_decl_snprintf = yes; then
13133
13134 cat >>confdefs.h <<_ACEOF
13135 #define HAVE_DECL_SNPRINTF 1
13136 _ACEOF
13137
13138
13139 else
13140 cat >>confdefs.h <<_ACEOF
13141 #define HAVE_DECL_SNPRINTF 0
13142 _ACEOF
13143
13144
13145 fi
13146 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13147 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13148 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 else
13151 cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h. */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157 $ac_includes_default
13158 int
13159 main ()
13160 {
13161 #ifndef vsnprintf
13162 char *p = (char *) vsnprintf;
13163 #endif
13164
13165 ;
13166 return 0;
13167 }
13168 _ACEOF
13169 rm -f conftest.$ac_objext
13170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13171 (eval $ac_compile) 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
13178 { ac_try='test -z "$ac_c_werror_flag"
13179 || test ! -s conftest.err'
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13182 ac_status=$?
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; } &&
13185 { ac_try='test -s conftest.$ac_objext'
13186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13187 (eval $ac_try) 2>&5
13188 ac_status=$?
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); }; }; then
13191 ac_cv_have_decl_vsnprintf=yes
13192 else
13193 echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.$ac_ext >&5
13195
13196 ac_cv_have_decl_vsnprintf=no
13197 fi
13198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13199 fi
13200 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13201 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13202 if test $ac_cv_have_decl_vsnprintf = yes; then
13203
13204 cat >>confdefs.h <<_ACEOF
13205 #define HAVE_DECL_VSNPRINTF 1
13206 _ACEOF
13207
13208
13209 else
13210 cat >>confdefs.h <<_ACEOF
13211 #define HAVE_DECL_VSNPRINTF 0
13212 _ACEOF
13213
13214
13215 fi
13216
13217
13218
13219 # ----------------------- #
13220 # Checks for structures. #
13221 # ----------------------- #
13222
13223 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13224 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13225 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 else
13228 cat >conftest.$ac_ext <<_ACEOF
13229 /* confdefs.h. */
13230 _ACEOF
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13234 $ac_includes_default
13235 int
13236 main ()
13237 {
13238 static struct stat ac_aggr;
13239 if (ac_aggr.st_blocks)
13240 return 0;
13241 ;
13242 return 0;
13243 }
13244 _ACEOF
13245 rm -f conftest.$ac_objext
13246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13247 (eval $ac_compile) 2>conftest.er1
13248 ac_status=$?
13249 grep -v '^ *+' conftest.er1 >conftest.err
13250 rm -f conftest.er1
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } &&
13254 { ac_try='test -z "$ac_c_werror_flag"
13255 || test ! -s conftest.err'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13258 ac_status=$?
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; } &&
13261 { ac_try='test -s conftest.$ac_objext'
13262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263 (eval $ac_try) 2>&5
13264 ac_status=$?
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); }; }; then
13267 ac_cv_member_struct_stat_st_blocks=yes
13268 else
13269 echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272 cat >conftest.$ac_ext <<_ACEOF
13273 /* confdefs.h. */
13274 _ACEOF
13275 cat confdefs.h >>conftest.$ac_ext
13276 cat >>conftest.$ac_ext <<_ACEOF
13277 /* end confdefs.h. */
13278 $ac_includes_default
13279 int
13280 main ()
13281 {
13282 static struct stat ac_aggr;
13283 if (sizeof ac_aggr.st_blocks)
13284 return 0;
13285 ;
13286 return 0;
13287 }
13288 _ACEOF
13289 rm -f conftest.$ac_objext
13290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13291 (eval $ac_compile) 2>conftest.er1
13292 ac_status=$?
13293 grep -v '^ *+' conftest.er1 >conftest.err
13294 rm -f conftest.er1
13295 cat conftest.err >&5
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); } &&
13298 { ac_try='test -z "$ac_c_werror_flag"
13299 || test ! -s conftest.err'
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; } &&
13305 { ac_try='test -s conftest.$ac_objext'
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13308 ac_status=$?
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; }; then
13311 ac_cv_member_struct_stat_st_blocks=yes
13312 else
13313 echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13315
13316 ac_cv_member_struct_stat_st_blocks=no
13317 fi
13318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13319 fi
13320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13321 fi
13322 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13323 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13324 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13325
13326 cat >>confdefs.h <<_ACEOF
13327 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13328 _ACEOF
13329
13330
13331 fi
13332 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13333 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13334 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 else
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 (ac_aggr.st_blksize)
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_blksize=yes
13377 else
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13380
13381 cat >conftest.$ac_ext <<_ACEOF
13382 /* confdefs.h. */
13383 _ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h. */
13387 $ac_includes_default
13388 int
13389 main ()
13390 {
13391 static struct stat ac_aggr;
13392 if (sizeof ac_aggr.st_blksize)
13393 return 0;
13394 ;
13395 return 0;
13396 }
13397 _ACEOF
13398 rm -f conftest.$ac_objext
13399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13400 (eval $ac_compile) 2>conftest.er1
13401 ac_status=$?
13402 grep -v '^ *+' conftest.er1 >conftest.err
13403 rm -f conftest.er1
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } &&
13407 { ac_try='test -z "$ac_c_werror_flag"
13408 || test ! -s conftest.err'
13409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13410 (eval $ac_try) 2>&5
13411 ac_status=$?
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); }; } &&
13414 { ac_try='test -s conftest.$ac_objext'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13417 ac_status=$?
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
13420 ac_cv_member_struct_stat_st_blksize=yes
13421 else
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13424
13425 ac_cv_member_struct_stat_st_blksize=no
13426 fi
13427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13428 fi
13429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13430 fi
13431 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13432 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13433 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13434
13435 cat >>confdefs.h <<_ACEOF
13436 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13437 _ACEOF
13438
13439
13440 fi
13441
13442
13443 # ------------------ #
13444 # Checks for types. #
13445 # ------------------ #
13446
13447 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13448 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13449 if test "${ac_cv_type_signal+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13451 else
13452 cat >conftest.$ac_ext <<_ACEOF
13453 /* confdefs.h. */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13458 #include <sys/types.h>
13459 #include <signal.h>
13460 #ifdef signal
13461 # undef signal
13462 #endif
13463 #ifdef __cplusplus
13464 extern "C" void (*signal (int, void (*)(int)))(int);
13465 #else
13466 void (*signal ()) ();
13467 #endif
13468
13469 int
13470 main ()
13471 {
13472 int i;
13473 ;
13474 return 0;
13475 }
13476 _ACEOF
13477 rm -f conftest.$ac_objext
13478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13479 (eval $ac_compile) 2>conftest.er1
13480 ac_status=$?
13481 grep -v '^ *+' conftest.er1 >conftest.err
13482 rm -f conftest.er1
13483 cat conftest.err >&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } &&
13486 { ac_try='test -z "$ac_c_werror_flag"
13487 || test ! -s conftest.err'
13488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13489 (eval $ac_try) 2>&5
13490 ac_status=$?
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); }; } &&
13493 { ac_try='test -s conftest.$ac_objext'
13494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13495 (eval $ac_try) 2>&5
13496 ac_status=$?
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); }; }; then
13499 ac_cv_type_signal=void
13500 else
13501 echo "$as_me: failed program was:" >&5
13502 sed 's/^/| /' conftest.$ac_ext >&5
13503
13504 ac_cv_type_signal=int
13505 fi
13506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13507 fi
13508 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13509 echo "${ECHO_T}$ac_cv_type_signal" >&6
13510
13511 cat >>confdefs.h <<_ACEOF
13512 #define RETSIGTYPE $ac_cv_type_signal
13513 _ACEOF
13514
13515
13516 echo "$as_me:$LINENO: checking for socklen_t" >&5
13517 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13518 if test "${ac_cv_type_socklen_t+set}" = set; then
13519 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 else
13521 cat >conftest.$ac_ext <<_ACEOF
13522 /* confdefs.h. */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 #include <sys/types.h>
13528 #include <sys/socket.h>
13529
13530
13531 int
13532 main ()
13533 {
13534 if ((socklen_t *) 0)
13535 return 0;
13536 if (sizeof (socklen_t))
13537 return 0;
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_socklen_t=yes
13565 else
13566 echo "$as_me: failed program was:" >&5
13567 sed 's/^/| /' conftest.$ac_ext >&5
13568
13569 ac_cv_type_socklen_t=no
13570 fi
13571 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13572 fi
13573 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13574 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13575 if test $ac_cv_type_socklen_t = yes; then
13576
13577 cat >>confdefs.h <<_ACEOF
13578 #define HAVE_SOCKLEN_T 1
13579 _ACEOF
13580
13581
13582 fi
13583
13584
13585 # ------------------------------------- #
13586 # Checks for compiler characteristics. #
13587 # ------------------------------------- #
13588
13589 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13590 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13591 if test "${ac_cv_c_const+set}" = set; then
13592 echo $ECHO_N "(cached) $ECHO_C" >&6
13593 else
13594 cat >conftest.$ac_ext <<_ACEOF
13595 /* confdefs.h. */
13596 _ACEOF
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13600
13601 int
13602 main ()
13603 {
13604 /* FIXME: Include the comments suggested by Paul. */
13605 #ifndef __cplusplus
13606 /* Ultrix mips cc rejects this. */
13607 typedef int charset[2];
13608 const charset x;
13609 /* SunOS 4.1.1 cc rejects this. */
13610 char const *const *ccp;
13611 char **p;
13612 /* NEC SVR4.0.2 mips cc rejects this. */
13613 struct point {int x, y;};
13614 static struct point const zero = {0,0};
13615 /* AIX XL C 1.02.0.0 rejects this.
13616 It does not let you subtract one const X* pointer from another in
13617 an arm of an if-expression whose if-part is not a constant
13618 expression */
13619 const char *g = "string";
13620 ccp = &g + (g ? g-g : 0);
13621 /* HPUX 7.0 cc rejects these. */
13622 ++ccp;
13623 p = (char**) ccp;
13624 ccp = (char const *const *) p;
13625 { /* SCO 3.2v4 cc rejects this. */
13626 char *t;
13627 char const *s = 0 ? (char *) 0 : (char const *) 0;
13628
13629 *t++ = 0;
13630 }
13631 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13632 int x[] = {25, 17};
13633 const int *foo = &x[0];
13634 ++foo;
13635 }
13636 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13637 typedef const int *iptr;
13638 iptr p = 0;
13639 ++p;
13640 }
13641 { /* AIX XL C 1.02.0.0 rejects this saying
13642 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13643 struct s { int j; const int *ap[3]; };
13644 struct s *b; b->j = 5;
13645 }
13646 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13647 const int foo = 10;
13648 }
13649 #endif
13650
13651 ;
13652 return 0;
13653 }
13654 _ACEOF
13655 rm -f conftest.$ac_objext
13656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13657 (eval $ac_compile) 2>conftest.er1
13658 ac_status=$?
13659 grep -v '^ *+' conftest.er1 >conftest.err
13660 rm -f conftest.er1
13661 cat conftest.err >&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
13664 { ac_try='test -z "$ac_c_werror_flag"
13665 || test ! -s conftest.err'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest.$ac_objext'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13674 ac_status=$?
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13677 ac_cv_c_const=yes
13678 else
13679 echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13681
13682 ac_cv_c_const=no
13683 fi
13684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13685 fi
13686 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13687 echo "${ECHO_T}$ac_cv_c_const" >&6
13688 if test $ac_cv_c_const = no; then
13689
13690 cat >>confdefs.h <<\_ACEOF
13691 #define const
13692 _ACEOF
13693
13694 fi
13695
13696 echo "$as_me:$LINENO: checking for inline" >&5
13697 echo $ECHO_N "checking for inline... $ECHO_C" >&6
13698 if test "${ac_cv_c_inline+set}" = set; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13700 else
13701 ac_cv_c_inline=no
13702 for ac_kw in inline __inline__ __inline; do
13703 cat >conftest.$ac_ext <<_ACEOF
13704 /* confdefs.h. */
13705 _ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13709 #ifndef __cplusplus
13710 typedef int foo_t;
13711 static $ac_kw foo_t static_foo () {return 0; }
13712 $ac_kw foo_t foo () {return 0; }
13713 #endif
13714
13715 _ACEOF
13716 rm -f conftest.$ac_objext
13717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13718 (eval $ac_compile) 2>conftest.er1
13719 ac_status=$?
13720 grep -v '^ *+' conftest.er1 >conftest.err
13721 rm -f conftest.er1
13722 cat conftest.err >&5
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); } &&
13725 { ac_try='test -z "$ac_c_werror_flag"
13726 || test ! -s conftest.err'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; } &&
13732 { ac_try='test -s conftest.$ac_objext'
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13735 ac_status=$?
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
13738 ac_cv_c_inline=$ac_kw; break
13739 else
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13742
13743 fi
13744 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13745 done
13746
13747 fi
13748 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13749 echo "${ECHO_T}$ac_cv_c_inline" >&6
13750
13751
13752 case $ac_cv_c_inline in
13753 inline | yes) ;;
13754 *)
13755 case $ac_cv_c_inline in
13756 no) ac_val=;;
13757 *) ac_val=$ac_cv_c_inline;;
13758 esac
13759 cat >>confdefs.h <<_ACEOF
13760 #ifndef __cplusplus
13761 #define inline $ac_val
13762 #endif
13763 _ACEOF
13764 ;;
13765 esac
13766
13767 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13768 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13769 if test "${ac_cv_c_bigendian+set}" = set; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 else
13772 # See if sys/param.h defines the BYTE_ORDER macro.
13773 cat >conftest.$ac_ext <<_ACEOF
13774 /* confdefs.h. */
13775 _ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13779 #include <sys/types.h>
13780 #include <sys/param.h>
13781
13782 int
13783 main ()
13784 {
13785 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13786 bogus endian macros
13787 #endif
13788
13789 ;
13790 return 0;
13791 }
13792 _ACEOF
13793 rm -f conftest.$ac_objext
13794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13795 (eval $ac_compile) 2>conftest.er1
13796 ac_status=$?
13797 grep -v '^ *+' conftest.er1 >conftest.err
13798 rm -f conftest.er1
13799 cat conftest.err >&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try='test -z "$ac_c_werror_flag"
13803 || test ! -s conftest.err'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13806 ac_status=$?
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; } &&
13809 { ac_try='test -s conftest.$ac_objext'
13810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811 (eval $ac_try) 2>&5
13812 ac_status=$?
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); }; }; then
13815 # It does; now see whether it defined to BIG_ENDIAN or not.
13816 cat >conftest.$ac_ext <<_ACEOF
13817 /* confdefs.h. */
13818 _ACEOF
13819 cat confdefs.h >>conftest.$ac_ext
13820 cat >>conftest.$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13822 #include <sys/types.h>
13823 #include <sys/param.h>
13824
13825 int
13826 main ()
13827 {
13828 #if BYTE_ORDER != BIG_ENDIAN
13829 not big endian
13830 #endif
13831
13832 ;
13833 return 0;
13834 }
13835 _ACEOF
13836 rm -f conftest.$ac_objext
13837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13838 (eval $ac_compile) 2>conftest.er1
13839 ac_status=$?
13840 grep -v '^ *+' conftest.er1 >conftest.err
13841 rm -f conftest.er1
13842 cat conftest.err >&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } &&
13845 { ac_try='test -z "$ac_c_werror_flag"
13846 || test ! -s conftest.err'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13849 ac_status=$?
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; } &&
13852 { ac_try='test -s conftest.$ac_objext'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13855 ac_status=$?
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; }; then
13858 ac_cv_c_bigendian=yes
13859 else
13860 echo "$as_me: failed program was:" >&5
13861 sed 's/^/| /' conftest.$ac_ext >&5
13862
13863 ac_cv_c_bigendian=no
13864 fi
13865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13866 else
13867 echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13869
13870 # It does not; compile a test program.
13871 if test "$cross_compiling" = yes; then
13872 # try to guess the endianness by grepping values into an object file
13873 ac_cv_c_bigendian=unknown
13874 cat >conftest.$ac_ext <<_ACEOF
13875 /* confdefs.h. */
13876 _ACEOF
13877 cat confdefs.h >>conftest.$ac_ext
13878 cat >>conftest.$ac_ext <<_ACEOF
13879 /* end confdefs.h. */
13880 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13881 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13882 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13883 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13884 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13885 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13886 int
13887 main ()
13888 {
13889 _ascii (); _ebcdic ();
13890 ;
13891 return 0;
13892 }
13893 _ACEOF
13894 rm -f conftest.$ac_objext
13895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13896 (eval $ac_compile) 2>conftest.er1
13897 ac_status=$?
13898 grep -v '^ *+' conftest.er1 >conftest.err
13899 rm -f conftest.er1
13900 cat conftest.err >&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
13903 { ac_try='test -z "$ac_c_werror_flag"
13904 || test ! -s conftest.err'
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13907 ac_status=$?
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; } &&
13910 { ac_try='test -s conftest.$ac_objext'
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13913 ac_status=$?
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; }; then
13916 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13917 ac_cv_c_bigendian=yes
13918 fi
13919 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13920 if test "$ac_cv_c_bigendian" = unknown; then
13921 ac_cv_c_bigendian=no
13922 else
13923 # finding both strings is unlikely to happen, but who knows?
13924 ac_cv_c_bigendian=unknown
13925 fi
13926 fi
13927 else
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13930
13931 fi
13932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13933 else
13934 cat >conftest.$ac_ext <<_ACEOF
13935 /* confdefs.h. */
13936 _ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h. */
13940 int
13941 main ()
13942 {
13943 /* Are we little or big endian? From Harbison&Steele. */
13944 union
13945 {
13946 long l;
13947 char c[sizeof (long)];
13948 } u;
13949 u.l = 1;
13950 exit (u.c[sizeof (long) - 1] == 1);
13951 }
13952 _ACEOF
13953 rm -f conftest$ac_exeext
13954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13955 (eval $ac_link) 2>&5
13956 ac_status=$?
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13960 (eval $ac_try) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }; }; then
13964 ac_cv_c_bigendian=no
13965 else
13966 echo "$as_me: program exited with status $ac_status" >&5
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13969
13970 ( exit $ac_status )
13971 ac_cv_c_bigendian=yes
13972 fi
13973 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13974 fi
13975 fi
13976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13977 fi
13978 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13979 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13980 case $ac_cv_c_bigendian in
13981 yes)
13982
13983 cat >>confdefs.h <<\_ACEOF
13984 #define WORDS_BIGENDIAN 1
13985 _ACEOF
13986 ;;
13987 no)
13988 ;;
13989 *)
13990 { { echo "$as_me:$LINENO: error: unknown endianness
13991 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13992 echo "$as_me: error: unknown endianness
13993 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13994 { (exit 1); exit 1; }; } ;;
13995 esac
13996
13997
13998 # ------------------------------ #
13999 # Checks for library functions. #
14000 # ------------------------------ #
14001
14002 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14003 # for constant arguments. Useless!
14004 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14005 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14006 if test "${ac_cv_working_alloca_h+set}" = set; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 else
14009 cat >conftest.$ac_ext <<_ACEOF
14010 /* confdefs.h. */
14011 _ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14015 #include <alloca.h>
14016 int
14017 main ()
14018 {
14019 char *p = (char *) alloca (2 * sizeof (int));
14020 ;
14021 return 0;
14022 }
14023 _ACEOF
14024 rm -f conftest.$ac_objext conftest$ac_exeext
14025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14026 (eval $ac_link) 2>conftest.er1
14027 ac_status=$?
14028 grep -v '^ *+' conftest.er1 >conftest.err
14029 rm -f conftest.er1
14030 cat conftest.err >&5
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); } &&
14033 { ac_try='test -z "$ac_c_werror_flag"
14034 || test ! -s conftest.err'
14035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14036 (eval $ac_try) 2>&5
14037 ac_status=$?
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); }; } &&
14040 { ac_try='test -s conftest$ac_exeext'
14041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14042 (eval $ac_try) 2>&5
14043 ac_status=$?
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }; }; then
14046 ac_cv_working_alloca_h=yes
14047 else
14048 echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14050
14051 ac_cv_working_alloca_h=no
14052 fi
14053 rm -f conftest.err conftest.$ac_objext \
14054 conftest$ac_exeext conftest.$ac_ext
14055 fi
14056 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14057 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14058 if test $ac_cv_working_alloca_h = yes; then
14059
14060 cat >>confdefs.h <<\_ACEOF
14061 #define HAVE_ALLOCA_H 1
14062 _ACEOF
14063
14064 fi
14065
14066 echo "$as_me:$LINENO: checking for alloca" >&5
14067 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14068 if test "${ac_cv_func_alloca_works+set}" = set; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 else
14071 cat >conftest.$ac_ext <<_ACEOF
14072 /* confdefs.h. */
14073 _ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14077 #ifdef __GNUC__
14078 # define alloca __builtin_alloca
14079 #else
14080 # ifdef _MSC_VER
14081 # include <malloc.h>
14082 # define alloca _alloca
14083 # else
14084 # if HAVE_ALLOCA_H
14085 # include <alloca.h>
14086 # else
14087 # ifdef _AIX
14088 #pragma alloca
14089 # else
14090 # ifndef alloca /* predefined by HP cc +Olibcalls */
14091 char *alloca ();
14092 # endif
14093 # endif
14094 # endif
14095 # endif
14096 #endif
14097
14098 int
14099 main ()
14100 {
14101 char *p = (char *) alloca (1);
14102 ;
14103 return 0;
14104 }
14105 _ACEOF
14106 rm -f conftest.$ac_objext conftest$ac_exeext
14107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14108 (eval $ac_link) 2>conftest.er1
14109 ac_status=$?
14110 grep -v '^ *+' conftest.er1 >conftest.err
14111 rm -f conftest.er1
14112 cat conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } &&
14115 { ac_try='test -z "$ac_c_werror_flag"
14116 || test ! -s conftest.err'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; } &&
14122 { ac_try='test -s conftest$ac_exeext'
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; }; then
14128 ac_cv_func_alloca_works=yes
14129 else
14130 echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14132
14133 ac_cv_func_alloca_works=no
14134 fi
14135 rm -f conftest.err conftest.$ac_objext \
14136 conftest$ac_exeext conftest.$ac_ext
14137 fi
14138 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14139 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14140
14141 if test $ac_cv_func_alloca_works = yes; then
14142
14143 cat >>confdefs.h <<\_ACEOF
14144 #define HAVE_ALLOCA 1
14145 _ACEOF
14146
14147 else
14148 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14149 # that cause trouble. Some versions do not even contain alloca or
14150 # contain a buggy version. If you still want to use their alloca,
14151 # use ar to extract alloca.o from them instead of compiling alloca.c.
14152
14153 ALLOCA=alloca.$ac_objext
14154
14155 cat >>confdefs.h <<\_ACEOF
14156 #define C_ALLOCA 1
14157 _ACEOF
14158
14159
14160 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14161 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14162 if test "${ac_cv_os_cray+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 else
14165 cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h. */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 #if defined(CRAY) && ! defined(CRAY2)
14172 webecray
14173 #else
14174 wenotbecray
14175 #endif
14176
14177 _ACEOF
14178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14179 $EGREP "webecray" >/dev/null 2>&1; then
14180 ac_cv_os_cray=yes
14181 else
14182 ac_cv_os_cray=no
14183 fi
14184 rm -f conftest*
14185
14186 fi
14187 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14188 echo "${ECHO_T}$ac_cv_os_cray" >&6
14189 if test $ac_cv_os_cray = yes; then
14190 for ac_func in _getb67 GETB67 getb67; do
14191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14192 echo "$as_me:$LINENO: checking for $ac_func" >&5
14193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14194 if eval "test \"\${$as_ac_var+set}\" = set"; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14196 else
14197 cat >conftest.$ac_ext <<_ACEOF
14198 /* confdefs.h. */
14199 _ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14205 #define $ac_func innocuous_$ac_func
14206
14207 /* System header to define __stub macros and hopefully few prototypes,
14208 which can conflict with char $ac_func (); below.
14209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14210 <limits.h> exists even on freestanding compilers. */
14211
14212 #ifdef __STDC__
14213 # include <limits.h>
14214 #else
14215 # include <assert.h>
14216 #endif
14217
14218 #undef $ac_func
14219
14220 /* Override any gcc2 internal prototype to avoid an error. */
14221 #ifdef __cplusplus
14222 extern "C"
14223 {
14224 #endif
14225 /* We use char because int might match the return type of a gcc2
14226 builtin and then its argument prototype would still apply. */
14227 char $ac_func ();
14228 /* The GNU C library defines this for functions which it implements
14229 to always fail with ENOSYS. Some functions are actually named
14230 something starting with __ and the normal name is an alias. */
14231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14232 choke me
14233 #else
14234 char (*f) () = $ac_func;
14235 #endif
14236 #ifdef __cplusplus
14237 }
14238 #endif
14239
14240 int
14241 main ()
14242 {
14243 return f != $ac_func;
14244 ;
14245 return 0;
14246 }
14247 _ACEOF
14248 rm -f conftest.$ac_objext conftest$ac_exeext
14249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14250 (eval $ac_link) 2>conftest.er1
14251 ac_status=$?
14252 grep -v '^ *+' conftest.er1 >conftest.err
14253 rm -f conftest.er1
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } &&
14257 { ac_try='test -z "$ac_c_werror_flag"
14258 || test ! -s conftest.err'
14259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14260 (eval $ac_try) 2>&5
14261 ac_status=$?
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); }; } &&
14264 { ac_try='test -s conftest$ac_exeext'
14265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14266 (eval $ac_try) 2>&5
14267 ac_status=$?
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; }; then
14270 eval "$as_ac_var=yes"
14271 else
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.$ac_ext >&5
14274
14275 eval "$as_ac_var=no"
14276 fi
14277 rm -f conftest.err conftest.$ac_objext \
14278 conftest$ac_exeext conftest.$ac_ext
14279 fi
14280 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14281 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14282 if test `eval echo '${'$as_ac_var'}'` = yes; then
14283
14284 cat >>confdefs.h <<_ACEOF
14285 #define CRAY_STACKSEG_END $ac_func
14286 _ACEOF
14287
14288 break
14289 fi
14290
14291 done
14292 fi
14293
14294 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14295 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14296 if test "${ac_cv_c_stack_direction+set}" = set; then
14297 echo $ECHO_N "(cached) $ECHO_C" >&6
14298 else
14299 if test "$cross_compiling" = yes; then
14300 ac_cv_c_stack_direction=0
14301 else
14302 cat >conftest.$ac_ext <<_ACEOF
14303 /* confdefs.h. */
14304 _ACEOF
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14308 int
14309 find_stack_direction ()
14310 {
14311 static char *addr = 0;
14312 auto char dummy;
14313 if (addr == 0)
14314 {
14315 addr = &dummy;
14316 return find_stack_direction ();
14317 }
14318 else
14319 return (&dummy > addr) ? 1 : -1;
14320 }
14321
14322 int
14323 main ()
14324 {
14325 exit (find_stack_direction () < 0);
14326 }
14327 _ACEOF
14328 rm -f conftest$ac_exeext
14329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14330 (eval $ac_link) 2>&5
14331 ac_status=$?
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 ac_cv_c_stack_direction=1
14340 else
14341 echo "$as_me: program exited with status $ac_status" >&5
14342 echo "$as_me: failed program was:" >&5
14343 sed 's/^/| /' conftest.$ac_ext >&5
14344
14345 ( exit $ac_status )
14346 ac_cv_c_stack_direction=-1
14347 fi
14348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14349 fi
14350 fi
14351 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14352 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14353
14354 cat >>confdefs.h <<_ACEOF
14355 #define STACK_DIRECTION $ac_cv_c_stack_direction
14356 _ACEOF
14357
14358
14359 fi
14360
14361
14362
14363 for ac_header in stdlib.h unistd.h
14364 do
14365 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14366 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14367 echo "$as_me:$LINENO: checking for $ac_header" >&5
14368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 fi
14372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14374 else
14375 # Is the header compilable?
14376 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14378 cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h. */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14384 $ac_includes_default
14385 #include <$ac_header>
14386 _ACEOF
14387 rm -f conftest.$ac_objext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389 (eval $ac_compile) 2>conftest.er1
14390 ac_status=$?
14391 grep -v '^ *+' conftest.er1 >conftest.err
14392 rm -f conftest.er1
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } &&
14396 { ac_try='test -z "$ac_c_werror_flag"
14397 || test ! -s conftest.err'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14400 ac_status=$?
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; } &&
14403 { ac_try='test -s conftest.$ac_objext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14406 ac_status=$?
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 ac_header_compiler=yes
14410 else
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14413
14414 ac_header_compiler=no
14415 fi
14416 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14417 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14418 echo "${ECHO_T}$ac_header_compiler" >&6
14419
14420 # Is the header present?
14421 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14423 cat >conftest.$ac_ext <<_ACEOF
14424 /* confdefs.h. */
14425 _ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h. */
14429 #include <$ac_header>
14430 _ACEOF
14431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14433 ac_status=$?
14434 grep -v '^ *+' conftest.er1 >conftest.err
14435 rm -f conftest.er1
14436 cat conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } >/dev/null; then
14439 if test -s conftest.err; then
14440 ac_cpp_err=$ac_c_preproc_warn_flag
14441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14442 else
14443 ac_cpp_err=
14444 fi
14445 else
14446 ac_cpp_err=yes
14447 fi
14448 if test -z "$ac_cpp_err"; then
14449 ac_header_preproc=yes
14450 else
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14453
14454 ac_header_preproc=no
14455 fi
14456 rm -f conftest.err conftest.$ac_ext
14457 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14458 echo "${ECHO_T}$ac_header_preproc" >&6
14459
14460 # So? What about this header?
14461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14462 yes:no: )
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14467 ac_header_preproc=yes
14468 ;;
14469 no:yes:* )
14470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14482 (
14483 cat <<\_ASBOX
14484 ## ------------------------------------------ ##
14485 ## Report this to the AC_PACKAGE_NAME lists. ##
14486 ## ------------------------------------------ ##
14487 _ASBOX
14488 ) |
14489 sed "s/^/$as_me: WARNING: /" >&2
14490 ;;
14491 esac
14492 echo "$as_me:$LINENO: checking for $ac_header" >&5
14493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14494 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14495 echo $ECHO_N "(cached) $ECHO_C" >&6
14496 else
14497 eval "$as_ac_Header=\$ac_header_preproc"
14498 fi
14499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14501
14502 fi
14503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14504 cat >>confdefs.h <<_ACEOF
14505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14506 _ACEOF
14507
14508 fi
14509
14510 done
14511
14512
14513 for ac_func in getpagesize
14514 do
14515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14516 echo "$as_me:$LINENO: checking for $ac_func" >&5
14517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14518 if eval "test \"\${$as_ac_var+set}\" = set"; then
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 else
14521 cat >conftest.$ac_ext <<_ACEOF
14522 /* confdefs.h. */
14523 _ACEOF
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14529 #define $ac_func innocuous_$ac_func
14530
14531 /* System header to define __stub macros and hopefully few prototypes,
14532 which can conflict with char $ac_func (); below.
14533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14534 <limits.h> exists even on freestanding compilers. */
14535
14536 #ifdef __STDC__
14537 # include <limits.h>
14538 #else
14539 # include <assert.h>
14540 #endif
14541
14542 #undef $ac_func
14543
14544 /* Override any gcc2 internal prototype to avoid an error. */
14545 #ifdef __cplusplus
14546 extern "C"
14547 {
14548 #endif
14549 /* We use char because int might match the return type of a gcc2
14550 builtin and then its argument prototype would still apply. */
14551 char $ac_func ();
14552 /* The GNU C library defines this for functions which it implements
14553 to always fail with ENOSYS. Some functions are actually named
14554 something starting with __ and the normal name is an alias. */
14555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14556 choke me
14557 #else
14558 char (*f) () = $ac_func;
14559 #endif
14560 #ifdef __cplusplus
14561 }
14562 #endif
14563
14564 int
14565 main ()
14566 {
14567 return f != $ac_func;
14568 ;
14569 return 0;
14570 }
14571 _ACEOF
14572 rm -f conftest.$ac_objext conftest$ac_exeext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14574 (eval $ac_link) 2>conftest.er1
14575 ac_status=$?
14576 grep -v '^ *+' conftest.er1 >conftest.err
14577 rm -f conftest.er1
14578 cat conftest.err >&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
14581 { ac_try='test -z "$ac_c_werror_flag"
14582 || test ! -s conftest.err'
14583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14584 (eval $ac_try) 2>&5
14585 ac_status=$?
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); }; } &&
14588 { ac_try='test -s conftest$ac_exeext'
14589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590 (eval $ac_try) 2>&5
14591 ac_status=$?
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); }; }; then
14594 eval "$as_ac_var=yes"
14595 else
14596 echo "$as_me: failed program was:" >&5
14597 sed 's/^/| /' conftest.$ac_ext >&5
14598
14599 eval "$as_ac_var=no"
14600 fi
14601 rm -f conftest.err conftest.$ac_objext \
14602 conftest$ac_exeext conftest.$ac_ext
14603 fi
14604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14605 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14606 if test `eval echo '${'$as_ac_var'}'` = yes; then
14607 cat >>confdefs.h <<_ACEOF
14608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14609 _ACEOF
14610
14611 fi
14612 done
14613
14614 echo "$as_me:$LINENO: checking for working mmap" >&5
14615 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14616 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 else
14619 if test "$cross_compiling" = yes; then
14620 ac_cv_func_mmap_fixed_mapped=no
14621 else
14622 cat >conftest.$ac_ext <<_ACEOF
14623 /* confdefs.h. */
14624 _ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 $ac_includes_default
14629 /* malloc might have been renamed as rpl_malloc. */
14630 #undef malloc
14631
14632 /* Thanks to Mike Haertel and Jim Avera for this test.
14633 Here is a matrix of mmap possibilities:
14634 mmap private not fixed
14635 mmap private fixed at somewhere currently unmapped
14636 mmap private fixed at somewhere already mapped
14637 mmap shared not fixed
14638 mmap shared fixed at somewhere currently unmapped
14639 mmap shared fixed at somewhere already mapped
14640 For private mappings, we should verify that changes cannot be read()
14641 back from the file, nor mmap's back from the file at a different
14642 address. (There have been systems where private was not correctly
14643 implemented like the infamous i386 svr4.0, and systems where the
14644 VM page cache was not coherent with the file system buffer cache
14645 like early versions of FreeBSD and possibly contemporary NetBSD.)
14646 For shared mappings, we should conversely verify that changes get
14647 propagated back to all the places they're supposed to be.
14648
14649 Grep wants private fixed already mapped.
14650 The main things grep needs to know about mmap are:
14651 * does it exist and is it safe to write into the mmap'd area
14652 * how to use it (BSD variants) */
14653
14654 #include <fcntl.h>
14655 #include <sys/mman.h>
14656
14657 #if !STDC_HEADERS && !HAVE_STDLIB_H
14658 char *malloc ();
14659 #endif
14660
14661 /* This mess was copied from the GNU getpagesize.h. */
14662 #if !HAVE_GETPAGESIZE
14663 /* Assume that all systems that can run configure have sys/param.h. */
14664 # if !HAVE_SYS_PARAM_H
14665 # define HAVE_SYS_PARAM_H 1
14666 # endif
14667
14668 # ifdef _SC_PAGESIZE
14669 # define getpagesize() sysconf(_SC_PAGESIZE)
14670 # else /* no _SC_PAGESIZE */
14671 # if HAVE_SYS_PARAM_H
14672 # include <sys/param.h>
14673 # ifdef EXEC_PAGESIZE
14674 # define getpagesize() EXEC_PAGESIZE
14675 # else /* no EXEC_PAGESIZE */
14676 # ifdef NBPG
14677 # define getpagesize() NBPG * CLSIZE
14678 # ifndef CLSIZE
14679 # define CLSIZE 1
14680 # endif /* no CLSIZE */
14681 # else /* no NBPG */
14682 # ifdef NBPC
14683 # define getpagesize() NBPC
14684 # else /* no NBPC */
14685 # ifdef PAGESIZE
14686 # define getpagesize() PAGESIZE
14687 # endif /* PAGESIZE */
14688 # endif /* no NBPC */
14689 # endif /* no NBPG */
14690 # endif /* no EXEC_PAGESIZE */
14691 # else /* no HAVE_SYS_PARAM_H */
14692 # define getpagesize() 8192 /* punt totally */
14693 # endif /* no HAVE_SYS_PARAM_H */
14694 # endif /* no _SC_PAGESIZE */
14695
14696 #endif /* no HAVE_GETPAGESIZE */
14697
14698 int
14699 main ()
14700 {
14701 char *data, *data2, *data3;
14702 int i, pagesize;
14703 int fd;
14704
14705 pagesize = getpagesize ();
14706
14707 /* First, make a file with some known garbage in it. */
14708 data = (char *) malloc (pagesize);
14709 if (!data)
14710 exit (1);
14711 for (i = 0; i < pagesize; ++i)
14712 *(data + i) = rand ();
14713 umask (0);
14714 fd = creat ("conftest.mmap", 0600);
14715 if (fd < 0)
14716 exit (1);
14717 if (write (fd, data, pagesize) != pagesize)
14718 exit (1);
14719 close (fd);
14720
14721 /* Next, try to mmap the file at a fixed address which already has
14722 something else allocated at it. If we can, also make sure that
14723 we see the same garbage. */
14724 fd = open ("conftest.mmap", O_RDWR);
14725 if (fd < 0)
14726 exit (1);
14727 data2 = (char *) malloc (2 * pagesize);
14728 if (!data2)
14729 exit (1);
14730 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14731 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14732 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14733 exit (1);
14734 for (i = 0; i < pagesize; ++i)
14735 if (*(data + i) != *(data2 + i))
14736 exit (1);
14737
14738 /* Finally, make sure that changes to the mapped area do not
14739 percolate back to the file as seen by read(). (This is a bug on
14740 some variants of i386 svr4.0.) */
14741 for (i = 0; i < pagesize; ++i)
14742 *(data2 + i) = *(data2 + i) + 1;
14743 data3 = (char *) malloc (pagesize);
14744 if (!data3)
14745 exit (1);
14746 if (read (fd, data3, pagesize) != pagesize)
14747 exit (1);
14748 for (i = 0; i < pagesize; ++i)
14749 if (*(data + i) != *(data3 + i))
14750 exit (1);
14751 close (fd);
14752 exit (0);
14753 }
14754 _ACEOF
14755 rm -f conftest$ac_exeext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14757 (eval $ac_link) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14763 ac_status=$?
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14766 ac_cv_func_mmap_fixed_mapped=yes
14767 else
14768 echo "$as_me: program exited with status $ac_status" >&5
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14771
14772 ( exit $ac_status )
14773 ac_cv_func_mmap_fixed_mapped=no
14774 fi
14775 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14776 fi
14777 fi
14778 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14779 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14780 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14781
14782 cat >>confdefs.h <<\_ACEOF
14783 #define HAVE_MMAP 1
14784 _ACEOF
14785
14786 fi
14787 rm -f conftest.mmap
14788
14789 echo "$as_me:$LINENO: checking for pid_t" >&5
14790 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14791 if test "${ac_cv_type_pid_t+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794 cat >conftest.$ac_ext <<_ACEOF
14795 /* confdefs.h. */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h. */
14800 $ac_includes_default
14801 int
14802 main ()
14803 {
14804 if ((pid_t *) 0)
14805 return 0;
14806 if (sizeof (pid_t))
14807 return 0;
14808 ;
14809 return 0;
14810 }
14811 _ACEOF
14812 rm -f conftest.$ac_objext
14813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14814 (eval $ac_compile) 2>conftest.er1
14815 ac_status=$?
14816 grep -v '^ *+' conftest.er1 >conftest.err
14817 rm -f conftest.er1
14818 cat conftest.err >&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); } &&
14821 { ac_try='test -z "$ac_c_werror_flag"
14822 || test ! -s conftest.err'
14823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14824 (eval $ac_try) 2>&5
14825 ac_status=$?
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); }; } &&
14828 { ac_try='test -s conftest.$ac_objext'
14829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14830 (eval $ac_try) 2>&5
14831 ac_status=$?
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
14834 ac_cv_type_pid_t=yes
14835 else
14836 echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14838
14839 ac_cv_type_pid_t=no
14840 fi
14841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14842 fi
14843 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14844 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14845 if test $ac_cv_type_pid_t = yes; then
14846 :
14847 else
14848
14849 cat >>confdefs.h <<_ACEOF
14850 #define pid_t int
14851 _ACEOF
14852
14853 fi
14854
14855
14856
14857 for ac_header in unistd.h vfork.h
14858 do
14859 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14861 echo "$as_me:$LINENO: checking for $ac_header" >&5
14862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14865 fi
14866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14867 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14868 else
14869 # Is the header compilable?
14870 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14871 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14872 cat >conftest.$ac_ext <<_ACEOF
14873 /* confdefs.h. */
14874 _ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14878 $ac_includes_default
14879 #include <$ac_header>
14880 _ACEOF
14881 rm -f conftest.$ac_objext
14882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14883 (eval $ac_compile) 2>conftest.er1
14884 ac_status=$?
14885 grep -v '^ *+' conftest.er1 >conftest.err
14886 rm -f conftest.er1
14887 cat conftest.err >&5
14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889 (exit $ac_status); } &&
14890 { ac_try='test -z "$ac_c_werror_flag"
14891 || test ! -s conftest.err'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; } &&
14897 { ac_try='test -s conftest.$ac_objext'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; }; then
14903 ac_header_compiler=yes
14904 else
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14907
14908 ac_header_compiler=no
14909 fi
14910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14911 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14912 echo "${ECHO_T}$ac_header_compiler" >&6
14913
14914 # Is the header present?
14915 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14916 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14917 cat >conftest.$ac_ext <<_ACEOF
14918 /* confdefs.h. */
14919 _ACEOF
14920 cat confdefs.h >>conftest.$ac_ext
14921 cat >>conftest.$ac_ext <<_ACEOF
14922 /* end confdefs.h. */
14923 #include <$ac_header>
14924 _ACEOF
14925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14927 ac_status=$?
14928 grep -v '^ *+' conftest.er1 >conftest.err
14929 rm -f conftest.er1
14930 cat conftest.err >&5
14931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14932 (exit $ac_status); } >/dev/null; then
14933 if test -s conftest.err; then
14934 ac_cpp_err=$ac_c_preproc_warn_flag
14935 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14936 else
14937 ac_cpp_err=
14938 fi
14939 else
14940 ac_cpp_err=yes
14941 fi
14942 if test -z "$ac_cpp_err"; then
14943 ac_header_preproc=yes
14944 else
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14947
14948 ac_header_preproc=no
14949 fi
14950 rm -f conftest.err conftest.$ac_ext
14951 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14952 echo "${ECHO_T}$ac_header_preproc" >&6
14953
14954 # So? What about this header?
14955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14956 yes:no: )
14957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14961 ac_header_preproc=yes
14962 ;;
14963 no:yes:* )
14964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14976 (
14977 cat <<\_ASBOX
14978 ## ------------------------------------------ ##
14979 ## Report this to the AC_PACKAGE_NAME lists. ##
14980 ## ------------------------------------------ ##
14981 _ASBOX
14982 ) |
14983 sed "s/^/$as_me: WARNING: /" >&2
14984 ;;
14985 esac
14986 echo "$as_me:$LINENO: checking for $ac_header" >&5
14987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14990 else
14991 eval "$as_ac_Header=\$ac_header_preproc"
14992 fi
14993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14994 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14995
14996 fi
14997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14998 cat >>confdefs.h <<_ACEOF
14999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15000 _ACEOF
15001
15002 fi
15003
15004 done
15005
15006
15007
15008 for ac_func in fork vfork
15009 do
15010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15011 echo "$as_me:$LINENO: checking for $ac_func" >&5
15012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15013 if eval "test \"\${$as_ac_var+set}\" = set"; then
15014 echo $ECHO_N "(cached) $ECHO_C" >&6
15015 else
15016 cat >conftest.$ac_ext <<_ACEOF
15017 /* confdefs.h. */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15024 #define $ac_func innocuous_$ac_func
15025
15026 /* System header to define __stub macros and hopefully few prototypes,
15027 which can conflict with char $ac_func (); below.
15028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15029 <limits.h> exists even on freestanding compilers. */
15030
15031 #ifdef __STDC__
15032 # include <limits.h>
15033 #else
15034 # include <assert.h>
15035 #endif
15036
15037 #undef $ac_func
15038
15039 /* Override any gcc2 internal prototype to avoid an error. */
15040 #ifdef __cplusplus
15041 extern "C"
15042 {
15043 #endif
15044 /* We use char because int might match the return type of a gcc2
15045 builtin and then its argument prototype would still apply. */
15046 char $ac_func ();
15047 /* The GNU C library defines this for functions which it implements
15048 to always fail with ENOSYS. Some functions are actually named
15049 something starting with __ and the normal name is an alias. */
15050 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15051 choke me
15052 #else
15053 char (*f) () = $ac_func;
15054 #endif
15055 #ifdef __cplusplus
15056 }
15057 #endif
15058
15059 int
15060 main ()
15061 {
15062 return f != $ac_func;
15063 ;
15064 return 0;
15065 }
15066 _ACEOF
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15069 (eval $ac_link) 2>conftest.er1
15070 ac_status=$?
15071 grep -v '^ *+' conftest.er1 >conftest.err
15072 rm -f conftest.er1
15073 cat conftest.err >&5
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } &&
15076 { ac_try='test -z "$ac_c_werror_flag"
15077 || test ! -s conftest.err'
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15080 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; } &&
15083 { ac_try='test -s conftest$ac_exeext'
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; }; then
15089 eval "$as_ac_var=yes"
15090 else
15091 echo "$as_me: failed program was:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15093
15094 eval "$as_ac_var=no"
15095 fi
15096 rm -f conftest.err conftest.$ac_objext \
15097 conftest$ac_exeext conftest.$ac_ext
15098 fi
15099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15100 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15101 if test `eval echo '${'$as_ac_var'}'` = yes; then
15102 cat >>confdefs.h <<_ACEOF
15103 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15104 _ACEOF
15105
15106 fi
15107 done
15108
15109 if test "x$ac_cv_func_fork" = xyes; then
15110 echo "$as_me:$LINENO: checking for working fork" >&5
15111 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15112 if test "${ac_cv_func_fork_works+set}" = set; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15114 else
15115 if test "$cross_compiling" = yes; then
15116 ac_cv_func_fork_works=cross
15117 else
15118 cat >conftest.$ac_ext <<_ACEOF
15119 /* By Ruediger Kuhlmann. */
15120 #include <sys/types.h>
15121 #if HAVE_UNISTD_H
15122 # include <unistd.h>
15123 #endif
15124 /* Some systems only have a dummy stub for fork() */
15125 int main ()
15126 {
15127 if (fork() < 0)
15128 exit (1);
15129 exit (0);
15130 }
15131 _ACEOF
15132 rm -f conftest$ac_exeext
15133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15134 (eval $ac_link) 2>&5
15135 ac_status=$?
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15139 (eval $ac_try) 2>&5
15140 ac_status=$?
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 (exit $ac_status); }; }; then
15143 ac_cv_func_fork_works=yes
15144 else
15145 echo "$as_me: program exited with status $ac_status" >&5
15146 echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.$ac_ext >&5
15148
15149 ( exit $ac_status )
15150 ac_cv_func_fork_works=no
15151 fi
15152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15153 fi
15154 fi
15155 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15156 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15157
15158 else
15159 ac_cv_func_fork_works=$ac_cv_func_fork
15160 fi
15161 if test "x$ac_cv_func_fork_works" = xcross; then
15162 case $host in
15163 *-*-amigaos* | *-*-msdosdjgpp*)
15164 # Override, as these systems have only a dummy fork() stub
15165 ac_cv_func_fork_works=no
15166 ;;
15167 *)
15168 ac_cv_func_fork_works=yes
15169 ;;
15170 esac
15171 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15172 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15173 fi
15174 ac_cv_func_vfork_works=$ac_cv_func_vfork
15175 if test "x$ac_cv_func_vfork" = xyes; then
15176 echo "$as_me:$LINENO: checking for working vfork" >&5
15177 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15178 if test "${ac_cv_func_vfork_works+set}" = set; then
15179 echo $ECHO_N "(cached) $ECHO_C" >&6
15180 else
15181 if test "$cross_compiling" = yes; then
15182 ac_cv_func_vfork_works=cross
15183 else
15184 cat >conftest.$ac_ext <<_ACEOF
15185 /* confdefs.h. */
15186 _ACEOF
15187 cat confdefs.h >>conftest.$ac_ext
15188 cat >>conftest.$ac_ext <<_ACEOF
15189 /* end confdefs.h. */
15190 /* Thanks to Paul Eggert for this test. */
15191 #include <stdio.h>
15192 #include <stdlib.h>
15193 #include <sys/types.h>
15194 #include <sys/stat.h>
15195 #include <sys/wait.h>
15196 #if HAVE_UNISTD_H
15197 # include <unistd.h>
15198 #endif
15199 #if HAVE_VFORK_H
15200 # include <vfork.h>
15201 #endif
15202 /* On some sparc systems, changes by the child to local and incoming
15203 argument registers are propagated back to the parent. The compiler
15204 is told about this with #include <vfork.h>, but some compilers
15205 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15206 static variable whose address is put into a register that is
15207 clobbered by the vfork. */
15208 static void
15209 #ifdef __cplusplus
15210 sparc_address_test (int arg)
15211 # else
15212 sparc_address_test (arg) int arg;
15213 #endif
15214 {
15215 static pid_t child;
15216 if (!child) {
15217 child = vfork ();
15218 if (child < 0) {
15219 perror ("vfork");
15220 _exit(2);
15221 }
15222 if (!child) {
15223 arg = getpid();
15224 write(-1, "", 0);
15225 _exit (arg);
15226 }
15227 }
15228 }
15229
15230 int
15231 main ()
15232 {
15233 pid_t parent = getpid ();
15234 pid_t child;
15235
15236 sparc_address_test (0);
15237
15238 child = vfork ();
15239
15240 if (child == 0) {
15241 /* Here is another test for sparc vfork register problems. This
15242 test uses lots of local variables, at least as many local
15243 variables as main has allocated so far including compiler
15244 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15245 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15246 reuse the register of parent for one of the local variables,
15247 since it will think that parent can't possibly be used any more
15248 in this routine. Assigning to the local variable will thus
15249 munge parent in the parent process. */
15250 pid_t
15251 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15252 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15253 /* Convince the compiler that p..p7 are live; otherwise, it might
15254 use the same hardware register for all 8 local variables. */
15255 if (p != p1 || p != p2 || p != p3 || p != p4
15256 || p != p5 || p != p6 || p != p7)
15257 _exit(1);
15258
15259 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15260 from child file descriptors. If the child closes a descriptor
15261 before it execs or exits, this munges the parent's descriptor
15262 as well. Test for this by closing stdout in the child. */
15263 _exit(close(fileno(stdout)) != 0);
15264 } else {
15265 int status;
15266 struct stat st;
15267
15268 while (wait(&status) != child)
15269 ;
15270 exit(
15271 /* Was there some problem with vforking? */
15272 child < 0
15273
15274 /* Did the child fail? (This shouldn't happen.) */
15275 || status
15276
15277 /* Did the vfork/compiler bug occur? */
15278 || parent != getpid()
15279
15280 /* Did the file descriptor bug occur? */
15281 || fstat(fileno(stdout), &st) != 0
15282 );
15283 }
15284 }
15285 _ACEOF
15286 rm -f conftest$ac_exeext
15287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15288 (eval $ac_link) 2>&5
15289 ac_status=$?
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15294 ac_status=$?
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }; then
15297 ac_cv_func_vfork_works=yes
15298 else
15299 echo "$as_me: program exited with status $ac_status" >&5
15300 echo "$as_me: failed program was:" >&5
15301 sed 's/^/| /' conftest.$ac_ext >&5
15302
15303 ( exit $ac_status )
15304 ac_cv_func_vfork_works=no
15305 fi
15306 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15307 fi
15308 fi
15309 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15310 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15311
15312 fi;
15313 if test "x$ac_cv_func_fork_works" = xcross; then
15314 ac_cv_func_vfork_works=$ac_cv_func_vfork
15315 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15316 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15317 fi
15318
15319 if test "x$ac_cv_func_vfork_works" = xyes; then
15320
15321 cat >>confdefs.h <<\_ACEOF
15322 #define HAVE_WORKING_VFORK 1
15323 _ACEOF
15324
15325 else
15326
15327 cat >>confdefs.h <<\_ACEOF
15328 #define vfork fork
15329 _ACEOF
15330
15331 fi
15332 if test "x$ac_cv_func_fork_works" = xyes; then
15333
15334 cat >>confdefs.h <<\_ACEOF
15335 #define HAVE_WORKING_FORK 1
15336 _ACEOF
15337
15338 fi
15339
15340
15341
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358 for ac_func in canonicalize_file_name realpath getrusage getuid \
15359 getgid poll pread64 sbrk setpgid setpgrp setsid \
15360 sigaction sigprocmask sigsetmask socketpair syscall \
15361 ttrace wborder
15362 do
15363 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15364 echo "$as_me:$LINENO: checking for $ac_func" >&5
15365 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15366 if eval "test \"\${$as_ac_var+set}\" = set"; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 else
15369 cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h. */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15377 #define $ac_func innocuous_$ac_func
15378
15379 /* System header to define __stub macros and hopefully few prototypes,
15380 which can conflict with char $ac_func (); below.
15381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15382 <limits.h> exists even on freestanding compilers. */
15383
15384 #ifdef __STDC__
15385 # include <limits.h>
15386 #else
15387 # include <assert.h>
15388 #endif
15389
15390 #undef $ac_func
15391
15392 /* Override any gcc2 internal prototype to avoid an error. */
15393 #ifdef __cplusplus
15394 extern "C"
15395 {
15396 #endif
15397 /* We use char because int might match the return type of a gcc2
15398 builtin and then its argument prototype would still apply. */
15399 char $ac_func ();
15400 /* The GNU C library defines this for functions which it implements
15401 to always fail with ENOSYS. Some functions are actually named
15402 something starting with __ and the normal name is an alias. */
15403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15404 choke me
15405 #else
15406 char (*f) () = $ac_func;
15407 #endif
15408 #ifdef __cplusplus
15409 }
15410 #endif
15411
15412 int
15413 main ()
15414 {
15415 return f != $ac_func;
15416 ;
15417 return 0;
15418 }
15419 _ACEOF
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15422 (eval $ac_link) 2>conftest.er1
15423 ac_status=$?
15424 grep -v '^ *+' conftest.er1 >conftest.err
15425 rm -f conftest.er1
15426 cat conftest.err >&5
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); } &&
15429 { ac_try='test -z "$ac_c_werror_flag"
15430 || test ! -s conftest.err'
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15433 ac_status=$?
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; } &&
15436 { ac_try='test -s conftest$ac_exeext'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15439 ac_status=$?
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then
15442 eval "$as_ac_var=yes"
15443 else
15444 echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15446
15447 eval "$as_ac_var=no"
15448 fi
15449 rm -f conftest.err conftest.$ac_objext \
15450 conftest$ac_exeext conftest.$ac_ext
15451 fi
15452 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15453 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15454 if test `eval echo '${'$as_ac_var'}'` = yes; then
15455 cat >>confdefs.h <<_ACEOF
15456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15457 _ACEOF
15458
15459 fi
15460 done
15461
15462
15463 # Check the return and argument types of ptrace. No canned test for
15464 # this, so roll our own.
15465 gdb_ptrace_headers='
15466 #if HAVE_SYS_TYPES_H
15467 # include <sys/types.h>
15468 #endif
15469 #if HAVE_SYS_PTRACE_H
15470 # include <sys/ptrace.h>
15471 #endif
15472 #if HAVE_UNISTD_H
15473 # include <unistd.h>
15474 #endif
15475 '
15476 # There is no point in checking if we don't have a prototype.
15477 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
15478 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
15479 if test "${ac_cv_have_decl_ptrace+set}" = set; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15481 else
15482 cat >conftest.$ac_ext <<_ACEOF
15483 /* confdefs.h. */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h. */
15488 $gdb_ptrace_headers
15489
15490 int
15491 main ()
15492 {
15493 #ifndef ptrace
15494 char *p = (char *) ptrace;
15495 #endif
15496
15497 ;
15498 return 0;
15499 }
15500 _ACEOF
15501 rm -f conftest.$ac_objext
15502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15503 (eval $ac_compile) 2>conftest.er1
15504 ac_status=$?
15505 grep -v '^ *+' conftest.er1 >conftest.err
15506 rm -f conftest.er1
15507 cat conftest.err >&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); } &&
15510 { ac_try='test -z "$ac_c_werror_flag"
15511 || test ! -s conftest.err'
15512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15513 (eval $ac_try) 2>&5
15514 ac_status=$?
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }; } &&
15517 { ac_try='test -s conftest.$ac_objext'
15518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15519 (eval $ac_try) 2>&5
15520 ac_status=$?
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); }; }; then
15523 ac_cv_have_decl_ptrace=yes
15524 else
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15527
15528 ac_cv_have_decl_ptrace=no
15529 fi
15530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15531 fi
15532 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
15533 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
15534 if test $ac_cv_have_decl_ptrace = yes; then
15535
15536 cat >>confdefs.h <<_ACEOF
15537 #define HAVE_DECL_PTRACE 1
15538 _ACEOF
15539
15540
15541 else
15542 cat >>confdefs.h <<_ACEOF
15543 #define HAVE_DECL_PTRACE 0
15544 _ACEOF
15545
15546
15547 : ${gdb_cv_func_ptrace_ret='int'}
15548 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15549
15550 fi
15551
15552
15553 # Check return type. Varargs (used on GNU/Linux) conflict with the
15554 # empty argument list, so check for that explicitly.
15555 echo "$as_me:$LINENO: checking return type of ptrace" >&5
15556 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
15557 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15559 else
15560 cat >conftest.$ac_ext <<_ACEOF
15561 /* confdefs.h. */
15562 _ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15566 $gdb_ptrace_headers
15567 int
15568 main ()
15569 {
15570 extern long ptrace (enum __ptrace_request, ...);
15571 ;
15572 return 0;
15573 }
15574 _ACEOF
15575 rm -f conftest.$ac_objext
15576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15577 (eval $ac_compile) 2>conftest.er1
15578 ac_status=$?
15579 grep -v '^ *+' conftest.er1 >conftest.err
15580 rm -f conftest.er1
15581 cat conftest.err >&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
15584 { ac_try='test -z "$ac_c_werror_flag"
15585 || test ! -s conftest.err'
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try='test -s conftest.$ac_objext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 gdb_cv_func_ptrace_ret='long'
15598 else
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15601
15602 cat >conftest.$ac_ext <<_ACEOF
15603 /* confdefs.h. */
15604 _ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15608 $gdb_ptrace_headers
15609 int
15610 main ()
15611 {
15612 extern int ptrace ();
15613 ;
15614 return 0;
15615 }
15616 _ACEOF
15617 rm -f conftest.$ac_objext
15618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15619 (eval $ac_compile) 2>conftest.er1
15620 ac_status=$?
15621 grep -v '^ *+' conftest.er1 >conftest.err
15622 rm -f conftest.er1
15623 cat conftest.err >&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } &&
15626 { ac_try='test -z "$ac_c_werror_flag"
15627 || test ! -s conftest.err'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; } &&
15633 { ac_try='test -s conftest.$ac_objext'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15636 ac_status=$?
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15639 gdb_cv_func_ptrace_ret='int'
15640 else
15641 echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.$ac_ext >&5
15643
15644 gdb_cv_func_ptrace_ret='long'
15645 fi
15646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15647 fi
15648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15649 fi
15650 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
15651 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
15652
15653 cat >>confdefs.h <<_ACEOF
15654 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
15655 _ACEOF
15656
15657 # Check argument types.
15658 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
15659 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
15660 if test "${gdb_cv_func_ptrace_args+set}" = set; then
15661 echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663
15664 cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h. */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h. */
15670 $gdb_ptrace_headers
15671 int
15672 main ()
15673 {
15674 extern long ptrace (enum __ptrace_request, ...);
15675 ;
15676 return 0;
15677 }
15678 _ACEOF
15679 rm -f conftest.$ac_objext
15680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15681 (eval $ac_compile) 2>conftest.er1
15682 ac_status=$?
15683 grep -v '^ *+' conftest.er1 >conftest.err
15684 rm -f conftest.er1
15685 cat conftest.err >&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); } &&
15688 { ac_try='test -z "$ac_c_werror_flag"
15689 || test ! -s conftest.err'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; } &&
15695 { ac_try='test -s conftest.$ac_objext'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15698 ac_status=$?
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; }; then
15701 gdb_cv_func_ptrace_args='int,int,long,long'
15702 else
15703 echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15705
15706
15707 for gdb_arg1 in 'int' 'long'; do
15708 for gdb_arg2 in 'pid_t' 'int' 'long'; do
15709 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
15710 for gdb_arg4 in 'int' 'long'; do
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h. */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 $gdb_ptrace_headers
15718 int
15719 main ()
15720 {
15721
15722 extern $gdb_cv_func_ptrace_ret
15723 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
15724
15725 ;
15726 return 0;
15727 }
15728 _ACEOF
15729 rm -f conftest.$ac_objext
15730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15731 (eval $ac_compile) 2>conftest.er1
15732 ac_status=$?
15733 grep -v '^ *+' conftest.er1 >conftest.err
15734 rm -f conftest.er1
15735 cat conftest.err >&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); } &&
15738 { ac_try='test -z "$ac_c_werror_flag"
15739 || test ! -s conftest.err'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; } &&
15745 { ac_try='test -s conftest.$ac_objext'
15746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15747 (eval $ac_try) 2>&5
15748 ac_status=$?
15749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750 (exit $ac_status); }; }; then
15751 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
15752 break 4;
15753 else
15754 echo "$as_me: failed program was:" >&5
15755 sed 's/^/| /' conftest.$ac_ext >&5
15756
15757 fi
15758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15759 for gdb_arg5 in 'int *' 'int' 'long'; do
15760 cat >conftest.$ac_ext <<_ACEOF
15761 /* confdefs.h. */
15762 _ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h. */
15766 $gdb_ptrace_headers
15767 int
15768 main ()
15769 {
15770
15771 extern $gdb_cv_func_ptrace_ret
15772 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
15773
15774 ;
15775 return 0;
15776 }
15777 _ACEOF
15778 rm -f conftest.$ac_objext
15779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15780 (eval $ac_compile) 2>conftest.er1
15781 ac_status=$?
15782 grep -v '^ *+' conftest.er1 >conftest.err
15783 rm -f conftest.er1
15784 cat conftest.err >&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } &&
15787 { ac_try='test -z "$ac_c_werror_flag"
15788 || test ! -s conftest.err'
15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790 (eval $ac_try) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; } &&
15794 { ac_try='test -s conftest.$ac_objext'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800
15801 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
15802 break 5;
15803 else
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15806
15807 fi
15808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15809 done
15810 done
15811 done
15812 done
15813 done
15814 # Provide a safe default value.
15815 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
15816
15817 fi
15818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15819 fi
15820 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
15821 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
15822 ac_save_IFS=$IFS; IFS=','
15823 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
15824 IFS=$ac_save_IFS
15825 shift
15826
15827 cat >>confdefs.h <<_ACEOF
15828 #define PTRACE_TYPE_ARG3 $3
15829 _ACEOF
15830
15831 if test -n "$5"; then
15832
15833 cat >>confdefs.h <<_ACEOF
15834 #define PTRACE_TYPE_ARG5 $5
15835 _ACEOF
15836
15837 fi
15838
15839 if test "$cross_compiling" = no; then
15840 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
15841 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
15842 if test "${ac_cv_func_setpgrp_void+set}" = set; then
15843 echo $ECHO_N "(cached) $ECHO_C" >&6
15844 else
15845 if test "$cross_compiling" = yes; then
15846 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
15847 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
15848 { (exit 1); exit 1; }; }
15849 else
15850 cat >conftest.$ac_ext <<_ACEOF
15851 /* confdefs.h. */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 #if HAVE_UNISTD_H
15857 # include <unistd.h>
15858 #endif
15859
15860 int
15861 main ()
15862 {
15863 /* If this system has a BSD-style setpgrp which takes arguments,
15864 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
15865 exit successfully. */
15866 exit (setpgrp (1,1) == -1 ? 0 : 1);
15867 ;
15868 return 0;
15869 }
15870 _ACEOF
15871 rm -f conftest$ac_exeext
15872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15873 (eval $ac_link) 2>&5
15874 ac_status=$?
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15878 (eval $ac_try) 2>&5
15879 ac_status=$?
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); }; }; then
15882 ac_cv_func_setpgrp_void=no
15883 else
15884 echo "$as_me: program exited with status $ac_status" >&5
15885 echo "$as_me: failed program was:" >&5
15886 sed 's/^/| /' conftest.$ac_ext >&5
15887
15888 ( exit $ac_status )
15889 ac_cv_func_setpgrp_void=yes
15890 fi
15891 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15892 fi
15893 fi
15894 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
15895 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
15896 if test $ac_cv_func_setpgrp_void = yes; then
15897
15898 cat >>confdefs.h <<\_ACEOF
15899 #define SETPGRP_VOID 1
15900 _ACEOF
15901
15902 fi
15903
15904 else
15905 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
15906 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
15907 if test "${ac_cv_func_setpgrp_void+set}" = set; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6
15909 else
15910 cat >conftest.$ac_ext <<_ACEOF
15911 /* confdefs.h. */
15912 _ACEOF
15913 cat confdefs.h >>conftest.$ac_ext
15914 cat >>conftest.$ac_ext <<_ACEOF
15915 /* end confdefs.h. */
15916
15917 #include <unistd.h>
15918
15919 int
15920 main ()
15921 {
15922
15923 if (setpgrp(1,1) == -1)
15924 exit (0);
15925 else
15926 exit (1);
15927
15928 ;
15929 return 0;
15930 }
15931 _ACEOF
15932 rm -f conftest.$ac_objext
15933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15934 (eval $ac_compile) 2>conftest.er1
15935 ac_status=$?
15936 grep -v '^ *+' conftest.er1 >conftest.err
15937 rm -f conftest.er1
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); } &&
15941 { ac_try='test -z "$ac_c_werror_flag"
15942 || test ! -s conftest.err'
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); }; } &&
15948 { ac_try='test -s conftest.$ac_objext'
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; }; then
15954 ac_cv_func_setpgrp_void=no
15955 else
15956 echo "$as_me: failed program was:" >&5
15957 sed 's/^/| /' conftest.$ac_ext >&5
15958
15959 ac_cv_func_setpgrp_void=yes
15960 fi
15961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15962 fi
15963 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
15964 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
15965 if test $ac_cv_func_setpgrp_void = yes; then
15966 cat >>confdefs.h <<\_ACEOF
15967 #define SETPGRP_VOID 1
15968 _ACEOF
15969
15970 fi
15971 fi
15972
15973 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
15974 # since sigsetjmp might only be defined as a macro.
15975 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
15976 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
15977 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
15979 else
15980 cat >conftest.$ac_ext <<_ACEOF
15981 /* confdefs.h. */
15982 _ACEOF
15983 cat confdefs.h >>conftest.$ac_ext
15984 cat >>conftest.$ac_ext <<_ACEOF
15985 /* end confdefs.h. */
15986
15987 #include <setjmp.h>
15988
15989 int
15990 main ()
15991 {
15992 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
15993 ;
15994 return 0;
15995 }
15996 _ACEOF
15997 rm -f conftest.$ac_objext
15998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15999 (eval $ac_compile) 2>conftest.er1
16000 ac_status=$?
16001 grep -v '^ *+' conftest.er1 >conftest.err
16002 rm -f conftest.er1
16003 cat conftest.err >&5
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); } &&
16006 { ac_try='test -z "$ac_c_werror_flag"
16007 || test ! -s conftest.err'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16010 ac_status=$?
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; } &&
16013 { ac_try='test -s conftest.$ac_objext'
16014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16015 (eval $ac_try) 2>&5
16016 ac_status=$?
16017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); }; }; then
16019 gdb_cv_func_sigsetjmp=yes
16020 else
16021 echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16023
16024 gdb_cv_func_sigsetjmp=no
16025 fi
16026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16027 fi
16028 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16029 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16030 if test $gdb_cv_func_sigsetjmp = yes; then
16031
16032 cat >>confdefs.h <<\_ACEOF
16033 #define HAVE_SIGSETJMP 1
16034 _ACEOF
16035
16036 fi
16037
16038 # Assume we'll default to using the included libiberty regex.
16039 gdb_use_included_regex=yes
16040
16041 # However, if the system regex is GNU regex, then default to *not*
16042 # using the included regex.
16043 echo "$as_me:$LINENO: checking for GNU regex" >&5
16044 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16045 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16047 else
16048 cat >conftest.$ac_ext <<_ACEOF
16049 /* confdefs.h. */
16050 _ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16054 #include <gnu-versions.h>
16055 int
16056 main ()
16057 {
16058 #define REGEX_INTERFACE_VERSION 1
16059 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16060 # error "Version mismatch"
16061 #endif
16062 ;
16063 return 0;
16064 }
16065 _ACEOF
16066 rm -f conftest.$ac_objext
16067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16068 (eval $ac_compile) 2>conftest.er1
16069 ac_status=$?
16070 grep -v '^ *+' conftest.er1 >conftest.err
16071 rm -f conftest.er1
16072 cat conftest.err >&5
16073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074 (exit $ac_status); } &&
16075 { ac_try='test -z "$ac_c_werror_flag"
16076 || test ! -s conftest.err'
16077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16078 (eval $ac_try) 2>&5
16079 ac_status=$?
16080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16081 (exit $ac_status); }; } &&
16082 { ac_try='test -s conftest.$ac_objext'
16083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16084 (eval $ac_try) 2>&5
16085 ac_status=$?
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; }; then
16088 gdb_cv_have_gnu_regex=yes
16089 else
16090 echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16092
16093 gdb_cv_have_gnu_regex=no
16094 fi
16095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16096 fi
16097 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16098 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16099 if test $gdb_cv_have_gnu_regex = yes; then
16100 gdb_use_included_regex=no
16101 fi
16102
16103
16104 # Check whether --with-included-regex or --without-included-regex was given.
16105 if test "${with_included_regex+set}" = set; then
16106 withval="$with_included_regex"
16107 gdb_with_regex=$withval
16108 else
16109 gdb_with_regex=$gdb_use_included_regex
16110 fi;
16111 if test "$gdb_with_regex" = yes; then
16112
16113 cat >>confdefs.h <<\_ACEOF
16114 #define USE_INCLUDED_REGEX 1
16115 _ACEOF
16116
16117 fi
16118
16119 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16120 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16121 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16122 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16123 echo $ECHO_N "(cached) $ECHO_C" >&6
16124 else
16125 cat >conftest.$ac_ext <<_ACEOF
16126 /* confdefs.h. */
16127 _ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 #include <sys/param.h>
16132 #include <sys/proc.h>
16133
16134
16135 int
16136 main ()
16137 {
16138 static struct thread ac_aggr;
16139 if (ac_aggr.td_pcb)
16140 return 0;
16141 ;
16142 return 0;
16143 }
16144 _ACEOF
16145 rm -f conftest.$ac_objext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16147 (eval $ac_compile) 2>conftest.er1
16148 ac_status=$?
16149 grep -v '^ *+' conftest.er1 >conftest.err
16150 rm -f conftest.er1
16151 cat conftest.err >&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } &&
16154 { ac_try='test -z "$ac_c_werror_flag"
16155 || test ! -s conftest.err'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; } &&
16161 { ac_try='test -s conftest.$ac_objext'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16167 ac_cv_member_struct_thread_td_pcb=yes
16168 else
16169 echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16171
16172 cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h. */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16178 #include <sys/param.h>
16179 #include <sys/proc.h>
16180
16181
16182 int
16183 main ()
16184 {
16185 static struct thread ac_aggr;
16186 if (sizeof ac_aggr.td_pcb)
16187 return 0;
16188 ;
16189 return 0;
16190 }
16191 _ACEOF
16192 rm -f conftest.$ac_objext
16193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16194 (eval $ac_compile) 2>conftest.er1
16195 ac_status=$?
16196 grep -v '^ *+' conftest.er1 >conftest.err
16197 rm -f conftest.er1
16198 cat conftest.err >&5
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); } &&
16201 { ac_try='test -z "$ac_c_werror_flag"
16202 || test ! -s conftest.err'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16205 ac_status=$?
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; } &&
16208 { ac_try='test -s conftest.$ac_objext'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16211 ac_status=$?
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; }; then
16214 ac_cv_member_struct_thread_td_pcb=yes
16215 else
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219 ac_cv_member_struct_thread_td_pcb=no
16220 fi
16221 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16222 fi
16223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16224 fi
16225 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16226 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16227 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16228
16229 cat >>confdefs.h <<_ACEOF
16230 #define HAVE_STRUCT_THREAD_TD_PCB 1
16231 _ACEOF
16232
16233
16234 fi
16235
16236
16237 # See if <sys/lwp.h> defines `struct lwp`.
16238 echo "$as_me:$LINENO: checking for struct lwp" >&5
16239 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16240 if test "${gdb_cv_struct_lwp+set}" = set; then
16241 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 else
16243 cat >conftest.$ac_ext <<_ACEOF
16244 /* confdefs.h. */
16245 _ACEOF
16246 cat confdefs.h >>conftest.$ac_ext
16247 cat >>conftest.$ac_ext <<_ACEOF
16248 /* end confdefs.h. */
16249 #include <sys/param.h>
16250 #include <sys/lwp.h>
16251 int
16252 main ()
16253 {
16254 struct lwp l;
16255 ;
16256 return 0;
16257 }
16258 _ACEOF
16259 rm -f conftest.$ac_objext
16260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16261 (eval $ac_compile) 2>conftest.er1
16262 ac_status=$?
16263 grep -v '^ *+' conftest.er1 >conftest.err
16264 rm -f conftest.er1
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -z "$ac_c_werror_flag"
16269 || test ! -s conftest.err'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16272 ac_status=$?
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; } &&
16275 { ac_try='test -s conftest.$ac_objext'
16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277 (eval $ac_try) 2>&5
16278 ac_status=$?
16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); }; }; then
16281 gdb_cv_struct_lwp=yes
16282 else
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16285
16286 gdb_cv_struct_lwp=no
16287 fi
16288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16289 fi
16290 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16291 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16292 if test $gdb_cv_struct_lwp = yes; then
16293
16294 cat >>confdefs.h <<\_ACEOF
16295 #define HAVE_STRUCT_LWP 1
16296 _ACEOF
16297
16298 fi
16299
16300 # See if <machine/reg.h> degines `struct reg'.
16301 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16302 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16303 if test "${gdb_cv_struct_reg+set}" = set; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306 cat >conftest.$ac_ext <<_ACEOF
16307 /* confdefs.h. */
16308 _ACEOF
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h. */
16312 #include <sys/types.h>
16313 #include <machine/reg.h>
16314 int
16315 main ()
16316 {
16317 struct reg r;
16318 ;
16319 return 0;
16320 }
16321 _ACEOF
16322 rm -f conftest.$ac_objext
16323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16324 (eval $ac_compile) 2>conftest.er1
16325 ac_status=$?
16326 grep -v '^ *+' conftest.er1 >conftest.err
16327 rm -f conftest.er1
16328 cat conftest.err >&5
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); } &&
16331 { ac_try='test -z "$ac_c_werror_flag"
16332 || test ! -s conftest.err'
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16335 ac_status=$?
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; } &&
16338 { ac_try='test -s conftest.$ac_objext'
16339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16340 (eval $ac_try) 2>&5
16341 ac_status=$?
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; }; then
16344 gdb_cv_struct_reg=yes
16345 else
16346 echo "$as_me: failed program was:" >&5
16347 sed 's/^/| /' conftest.$ac_ext >&5
16348
16349 gdb_cv_struct_reg=no
16350 fi
16351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16352 fi
16353 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16354 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16355 if test $gdb_cv_struct_reg = yes; then
16356
16357 cat >>confdefs.h <<\_ACEOF
16358 #define HAVE_STRUCT_REG 1
16359 _ACEOF
16360
16361 fi
16362
16363 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16364 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16365 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16366 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16367 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16368 echo $ECHO_N "(cached) $ECHO_C" >&6
16369 else
16370 cat >conftest.$ac_ext <<_ACEOF
16371 /* confdefs.h. */
16372 _ACEOF
16373 cat confdefs.h >>conftest.$ac_ext
16374 cat >>conftest.$ac_ext <<_ACEOF
16375 /* end confdefs.h. */
16376 #include <machine/reg.h>
16377
16378 int
16379 main ()
16380 {
16381 static struct reg ac_aggr;
16382 if (ac_aggr.r_fs)
16383 return 0;
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 ac_cv_member_struct_reg_r_fs=yes
16411 else
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 cat >conftest.$ac_ext <<_ACEOF
16416 /* confdefs.h. */
16417 _ACEOF
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16421 #include <machine/reg.h>
16422
16423 int
16424 main ()
16425 {
16426 static struct reg ac_aggr;
16427 if (sizeof ac_aggr.r_fs)
16428 return 0;
16429 ;
16430 return 0;
16431 }
16432 _ACEOF
16433 rm -f conftest.$ac_objext
16434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16435 (eval $ac_compile) 2>conftest.er1
16436 ac_status=$?
16437 grep -v '^ *+' conftest.er1 >conftest.err
16438 rm -f conftest.er1
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } &&
16442 { ac_try='test -z "$ac_c_werror_flag"
16443 || test ! -s conftest.err'
16444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445 (eval $ac_try) 2>&5
16446 ac_status=$?
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; } &&
16449 { ac_try='test -s conftest.$ac_objext'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; }; then
16455 ac_cv_member_struct_reg_r_fs=yes
16456 else
16457 echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16459
16460 ac_cv_member_struct_reg_r_fs=no
16461 fi
16462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16463 fi
16464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16465 fi
16466 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
16467 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
16468 if test $ac_cv_member_struct_reg_r_fs = yes; then
16469
16470 cat >>confdefs.h <<_ACEOF
16471 #define HAVE_STRUCT_REG_R_FS 1
16472 _ACEOF
16473
16474
16475 fi
16476 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
16477 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
16478 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
16479 echo $ECHO_N "(cached) $ECHO_C" >&6
16480 else
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 (ac_aggr.r_gs)
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_gs=yes
16522 else
16523 echo "$as_me: failed program was:" >&5
16524 sed 's/^/| /' conftest.$ac_ext >&5
16525
16526 cat >conftest.$ac_ext <<_ACEOF
16527 /* confdefs.h. */
16528 _ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16532 #include <machine/reg.h>
16533
16534 int
16535 main ()
16536 {
16537 static struct reg ac_aggr;
16538 if (sizeof ac_aggr.r_gs)
16539 return 0;
16540 ;
16541 return 0;
16542 }
16543 _ACEOF
16544 rm -f conftest.$ac_objext
16545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16546 (eval $ac_compile) 2>conftest.er1
16547 ac_status=$?
16548 grep -v '^ *+' conftest.er1 >conftest.err
16549 rm -f conftest.er1
16550 cat conftest.err >&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } &&
16553 { ac_try='test -z "$ac_c_werror_flag"
16554 || test ! -s conftest.err'
16555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16556 (eval $ac_try) 2>&5
16557 ac_status=$?
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_cv_member_struct_reg_r_gs=yes
16567 else
16568 echo "$as_me: failed program was:" >&5
16569 sed 's/^/| /' conftest.$ac_ext >&5
16570
16571 ac_cv_member_struct_reg_r_gs=no
16572 fi
16573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16574 fi
16575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16576 fi
16577 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
16578 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
16579 if test $ac_cv_member_struct_reg_r_gs = yes; then
16580
16581 cat >>confdefs.h <<_ACEOF
16582 #define HAVE_STRUCT_REG_R_GS 1
16583 _ACEOF
16584
16585
16586 fi
16587
16588
16589 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
16590 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
16591 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
16592 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16594 else
16595 cat >conftest.$ac_ext <<_ACEOF
16596 /* confdefs.h. */
16597 _ACEOF
16598 cat confdefs.h >>conftest.$ac_ext
16599 cat >>conftest.$ac_ext <<_ACEOF
16600 /* end confdefs.h. */
16601 #include <sys/ptrace.h>
16602 int
16603 main ()
16604 {
16605 PTRACE_GETREGS;
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 gdb_cv_have_ptrace_getregs=yes
16633 else
16634 echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.$ac_ext >&5
16636
16637 gdb_cv_have_ptrace_getregs=no
16638 fi
16639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16640 fi
16641
16642 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
16643 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
16644 if test $gdb_cv_have_ptrace_getregs = yes; then
16645
16646 cat >>confdefs.h <<\_ACEOF
16647 #define HAVE_PTRACE_GETREGS 1
16648 _ACEOF
16649
16650 fi
16651
16652 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
16653 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
16654 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
16655 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
16656 echo $ECHO_N "(cached) $ECHO_C" >&6
16657 else
16658 cat >conftest.$ac_ext <<_ACEOF
16659 /* confdefs.h. */
16660 _ACEOF
16661 cat confdefs.h >>conftest.$ac_ext
16662 cat >>conftest.$ac_ext <<_ACEOF
16663 /* end confdefs.h. */
16664 #include <sys/ptrace.h>
16665 int
16666 main ()
16667 {
16668 PTRACE_GETFPXREGS;
16669 ;
16670 return 0;
16671 }
16672 _ACEOF
16673 rm -f conftest.$ac_objext
16674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16675 (eval $ac_compile) 2>conftest.er1
16676 ac_status=$?
16677 grep -v '^ *+' conftest.er1 >conftest.err
16678 rm -f conftest.er1
16679 cat conftest.err >&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } &&
16682 { ac_try='test -z "$ac_c_werror_flag"
16683 || test ! -s conftest.err'
16684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685 (eval $ac_try) 2>&5
16686 ac_status=$?
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); }; } &&
16689 { ac_try='test -s conftest.$ac_objext'
16690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16691 (eval $ac_try) 2>&5
16692 ac_status=$?
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); }; }; then
16695 gdb_cv_have_ptrace_getfpxregs=yes
16696 else
16697 echo "$as_me: failed program was:" >&5
16698 sed 's/^/| /' conftest.$ac_ext >&5
16699
16700 gdb_cv_have_ptrace_getfpxregs=no
16701 fi
16702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16703 fi
16704
16705 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
16706 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
16707 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
16708
16709 cat >>confdefs.h <<\_ACEOF
16710 #define HAVE_PTRACE_GETFPXREGS 1
16711 _ACEOF
16712
16713 fi
16714
16715 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
16716 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
16717 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
16718 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16720 else
16721 cat >conftest.$ac_ext <<_ACEOF
16722 /* confdefs.h. */
16723 _ACEOF
16724 cat confdefs.h >>conftest.$ac_ext
16725 cat >>conftest.$ac_ext <<_ACEOF
16726 /* end confdefs.h. */
16727 #include <sys/types.h>
16728 #include <sys/ptrace.h>
16729 int
16730 main ()
16731 {
16732 PT_GETDBREGS;
16733 ;
16734 return 0;
16735 }
16736 _ACEOF
16737 rm -f conftest.$ac_objext
16738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16739 (eval $ac_compile) 2>conftest.er1
16740 ac_status=$?
16741 grep -v '^ *+' conftest.er1 >conftest.err
16742 rm -f conftest.er1
16743 cat conftest.err >&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); } &&
16746 { ac_try='test -z "$ac_c_werror_flag"
16747 || test ! -s conftest.err'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16750 ac_status=$?
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; } &&
16753 { ac_try='test -s conftest.$ac_objext'
16754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16755 (eval $ac_try) 2>&5
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); }; }; then
16759 gdb_cv_have_pt_getdbregs=yes
16760 else
16761 echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16763
16764 gdb_cv_have_pt_getdbregs=no
16765 fi
16766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16767 fi
16768
16769 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
16770 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
16771 if test $gdb_cv_have_pt_getdbregs = yes; then
16772
16773 cat >>confdefs.h <<\_ACEOF
16774 #define HAVE_PT_GETDBREGS 1
16775 _ACEOF
16776
16777 fi
16778
16779 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
16780 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
16781 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
16782 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16784 else
16785 cat >conftest.$ac_ext <<_ACEOF
16786 /* confdefs.h. */
16787 _ACEOF
16788 cat confdefs.h >>conftest.$ac_ext
16789 cat >>conftest.$ac_ext <<_ACEOF
16790 /* end confdefs.h. */
16791 #include <sys/types.h>
16792 #include <sys/ptrace.h>
16793 int
16794 main ()
16795 {
16796 PT_GETXMMREGS;
16797 ;
16798 return 0;
16799 }
16800 _ACEOF
16801 rm -f conftest.$ac_objext
16802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16803 (eval $ac_compile) 2>conftest.er1
16804 ac_status=$?
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
16808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } &&
16810 { ac_try='test -z "$ac_c_werror_flag"
16811 || test ! -s conftest.err'
16812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16813 (eval $ac_try) 2>&5
16814 ac_status=$?
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); }; } &&
16817 { ac_try='test -s conftest.$ac_objext'
16818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16819 (eval $ac_try) 2>&5
16820 ac_status=$?
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); }; }; then
16823 gdb_cv_have_pt_getxmmregs=yes
16824 else
16825 echo "$as_me: failed program was:" >&5
16826 sed 's/^/| /' conftest.$ac_ext >&5
16827
16828 gdb_cv_have_pt_getxmmregs=no
16829 fi
16830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16831 fi
16832
16833 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
16834 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
16835 if test $gdb_cv_have_pt_getxmmregs = yes; then
16836
16837 cat >>confdefs.h <<\_ACEOF
16838 #define HAVE_PT_GETXMMREGS 1
16839 _ACEOF
16840
16841 fi
16842
16843 # Detect which type of /proc is in use, such as for Unixware or Solaris.
16844
16845 if test "${target}" = "${host}"; then
16846 case "${host}" in
16847 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
16848
16849 cat >>confdefs.h <<\_ACEOF
16850 #define NEW_PROC_API 1
16851 _ACEOF
16852
16853 ;;
16854 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
16855
16856 cat >>confdefs.h <<\_ACEOF
16857 #define NEW_PROC_API 1
16858 _ACEOF
16859
16860 ;;
16861 mips-sgi-irix5*)
16862 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
16863
16864 cat >>confdefs.h <<\_ACEOF
16865 #define _KMEMUSER 1
16866 _ACEOF
16867
16868 ;;
16869 esac
16870 fi
16871
16872 if test "$ac_cv_header_sys_procfs_h" = yes; then
16873 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
16874 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
16875 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878 cat >conftest.$ac_ext <<_ACEOF
16879 /* confdefs.h. */
16880 _ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16884
16885 #define _SYSCALL32
16886 #include <sys/procfs.h>
16887 int
16888 main ()
16889 {
16890 pstatus_t avar
16891 ;
16892 return 0;
16893 }
16894 _ACEOF
16895 rm -f conftest.$ac_objext
16896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16897 (eval $ac_compile) 2>conftest.er1
16898 ac_status=$?
16899 grep -v '^ *+' conftest.er1 >conftest.err
16900 rm -f conftest.er1
16901 cat conftest.err >&5
16902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 (exit $ac_status); } &&
16904 { ac_try='test -z "$ac_c_werror_flag"
16905 || test ! -s conftest.err'
16906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16907 (eval $ac_try) 2>&5
16908 ac_status=$?
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); }; } &&
16911 { ac_try='test -s conftest.$ac_objext'
16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16913 (eval $ac_try) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); }; }; then
16917 bfd_cv_have_sys_procfs_type_pstatus_t=yes
16918 else
16919 echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16921
16922 bfd_cv_have_sys_procfs_type_pstatus_t=no
16923
16924 fi
16925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16926 fi
16927
16928 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
16929
16930 cat >>confdefs.h <<\_ACEOF
16931 #define HAVE_PSTATUS_T 1
16932 _ACEOF
16933
16934 fi
16935 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
16936 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
16937
16938 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
16939 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
16940 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
16941 echo $ECHO_N "(cached) $ECHO_C" >&6
16942 else
16943 cat >conftest.$ac_ext <<_ACEOF
16944 /* confdefs.h. */
16945 _ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16949
16950 #define _SYSCALL32
16951 #include <sys/procfs.h>
16952 int
16953 main ()
16954 {
16955 prrun_t avar
16956 ;
16957 return 0;
16958 }
16959 _ACEOF
16960 rm -f conftest.$ac_objext
16961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16962 (eval $ac_compile) 2>conftest.er1
16963 ac_status=$?
16964 grep -v '^ *+' conftest.er1 >conftest.err
16965 rm -f conftest.er1
16966 cat conftest.err >&5
16967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16968 (exit $ac_status); } &&
16969 { ac_try='test -z "$ac_c_werror_flag"
16970 || test ! -s conftest.err'
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; } &&
16976 { ac_try='test -s conftest.$ac_objext'
16977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16978 (eval $ac_try) 2>&5
16979 ac_status=$?
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); }; }; then
16982 bfd_cv_have_sys_procfs_type_prrun_t=yes
16983 else
16984 echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16986
16987 bfd_cv_have_sys_procfs_type_prrun_t=no
16988
16989 fi
16990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16991 fi
16992
16993 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
16994
16995 cat >>confdefs.h <<\_ACEOF
16996 #define HAVE_PRRUN_T 1
16997 _ACEOF
16998
16999 fi
17000 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17001 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17002
17003 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17004 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17005 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17007 else
17008 cat >conftest.$ac_ext <<_ACEOF
17009 /* confdefs.h. */
17010 _ACEOF
17011 cat confdefs.h >>conftest.$ac_ext
17012 cat >>conftest.$ac_ext <<_ACEOF
17013 /* end confdefs.h. */
17014
17015 #define _SYSCALL32
17016 #include <sys/procfs.h>
17017 int
17018 main ()
17019 {
17020 gregset_t avar
17021 ;
17022 return 0;
17023 }
17024 _ACEOF
17025 rm -f conftest.$ac_objext
17026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17027 (eval $ac_compile) 2>conftest.er1
17028 ac_status=$?
17029 grep -v '^ *+' conftest.er1 >conftest.err
17030 rm -f conftest.er1
17031 cat conftest.err >&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
17034 { ac_try='test -z "$ac_c_werror_flag"
17035 || test ! -s conftest.err'
17036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17037 (eval $ac_try) 2>&5
17038 ac_status=$?
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; } &&
17041 { ac_try='test -s conftest.$ac_objext'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17044 ac_status=$?
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; }; then
17047 bfd_cv_have_sys_procfs_type_gregset_t=yes
17048 else
17049 echo "$as_me: failed program was:" >&5
17050 sed 's/^/| /' conftest.$ac_ext >&5
17051
17052 bfd_cv_have_sys_procfs_type_gregset_t=no
17053
17054 fi
17055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17056 fi
17057
17058 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17059
17060 cat >>confdefs.h <<\_ACEOF
17061 #define HAVE_GREGSET_T 1
17062 _ACEOF
17063
17064 fi
17065 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17066 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17067
17068 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17069 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17070 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17071 echo $ECHO_N "(cached) $ECHO_C" >&6
17072 else
17073 cat >conftest.$ac_ext <<_ACEOF
17074 /* confdefs.h. */
17075 _ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17079
17080 #define _SYSCALL32
17081 #include <sys/procfs.h>
17082 int
17083 main ()
17084 {
17085 fpregset_t avar
17086 ;
17087 return 0;
17088 }
17089 _ACEOF
17090 rm -f conftest.$ac_objext
17091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17092 (eval $ac_compile) 2>conftest.er1
17093 ac_status=$?
17094 grep -v '^ *+' conftest.er1 >conftest.err
17095 rm -f conftest.er1
17096 cat conftest.err >&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); } &&
17099 { ac_try='test -z "$ac_c_werror_flag"
17100 || test ! -s conftest.err'
17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102 (eval $ac_try) 2>&5
17103 ac_status=$?
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); }; } &&
17106 { ac_try='test -s conftest.$ac_objext'
17107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108 (eval $ac_try) 2>&5
17109 ac_status=$?
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
17112 bfd_cv_have_sys_procfs_type_fpregset_t=yes
17113 else
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17116
17117 bfd_cv_have_sys_procfs_type_fpregset_t=no
17118
17119 fi
17120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17121 fi
17122
17123 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17124
17125 cat >>confdefs.h <<\_ACEOF
17126 #define HAVE_FPREGSET_T 1
17127 _ACEOF
17128
17129 fi
17130 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17131 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17132
17133 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17134 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17135 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17136 echo $ECHO_N "(cached) $ECHO_C" >&6
17137 else
17138 cat >conftest.$ac_ext <<_ACEOF
17139 /* confdefs.h. */
17140 _ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h. */
17144
17145 #define _SYSCALL32
17146 #include <sys/procfs.h>
17147 int
17148 main ()
17149 {
17150 prgregset_t avar
17151 ;
17152 return 0;
17153 }
17154 _ACEOF
17155 rm -f conftest.$ac_objext
17156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17157 (eval $ac_compile) 2>conftest.er1
17158 ac_status=$?
17159 grep -v '^ *+' conftest.er1 >conftest.err
17160 rm -f conftest.er1
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try='test -z "$ac_c_werror_flag"
17165 || test ! -s conftest.err'
17166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17167 (eval $ac_try) 2>&5
17168 ac_status=$?
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); }; } &&
17171 { ac_try='test -s conftest.$ac_objext'
17172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17173 (eval $ac_try) 2>&5
17174 ac_status=$?
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); }; }; then
17177 bfd_cv_have_sys_procfs_type_prgregset_t=yes
17178 else
17179 echo "$as_me: failed program was:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17181
17182 bfd_cv_have_sys_procfs_type_prgregset_t=no
17183
17184 fi
17185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17186 fi
17187
17188 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17189
17190 cat >>confdefs.h <<\_ACEOF
17191 #define HAVE_PRGREGSET_T 1
17192 _ACEOF
17193
17194 fi
17195 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17196 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17197
17198 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17199 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17200 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17201 echo $ECHO_N "(cached) $ECHO_C" >&6
17202 else
17203 cat >conftest.$ac_ext <<_ACEOF
17204 /* confdefs.h. */
17205 _ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209
17210 #define _SYSCALL32
17211 #include <sys/procfs.h>
17212 int
17213 main ()
17214 {
17215 prfpregset_t avar
17216 ;
17217 return 0;
17218 }
17219 _ACEOF
17220 rm -f conftest.$ac_objext
17221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17222 (eval $ac_compile) 2>conftest.er1
17223 ac_status=$?
17224 grep -v '^ *+' conftest.er1 >conftest.err
17225 rm -f conftest.er1
17226 cat conftest.err >&5
17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } &&
17229 { ac_try='test -z "$ac_c_werror_flag"
17230 || test ! -s conftest.err'
17231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17232 (eval $ac_try) 2>&5
17233 ac_status=$?
17234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17235 (exit $ac_status); }; } &&
17236 { ac_try='test -s conftest.$ac_objext'
17237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238 (eval $ac_try) 2>&5
17239 ac_status=$?
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17243 else
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17248
17249 fi
17250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17251 fi
17252
17253 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17254
17255 cat >>confdefs.h <<\_ACEOF
17256 #define HAVE_PRFPREGSET_T 1
17257 _ACEOF
17258
17259 fi
17260 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17261 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17262
17263 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17264 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17265 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17266 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 else
17268 cat >conftest.$ac_ext <<_ACEOF
17269 /* confdefs.h. */
17270 _ACEOF
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17274
17275 #define _SYSCALL32
17276 #include <sys/procfs.h>
17277 int
17278 main ()
17279 {
17280 prgregset32_t avar
17281 ;
17282 return 0;
17283 }
17284 _ACEOF
17285 rm -f conftest.$ac_objext
17286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17287 (eval $ac_compile) 2>conftest.er1
17288 ac_status=$?
17289 grep -v '^ *+' conftest.er1 >conftest.err
17290 rm -f conftest.er1
17291 cat conftest.err >&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } &&
17294 { ac_try='test -z "$ac_c_werror_flag"
17295 || test ! -s conftest.err'
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; } &&
17301 { ac_try='test -s conftest.$ac_objext'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17308 else
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17311
17312 bfd_cv_have_sys_procfs_type_prgregset32_t=no
17313
17314 fi
17315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17316 fi
17317
17318 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17319
17320 cat >>confdefs.h <<\_ACEOF
17321 #define HAVE_PRGREGSET32_T 1
17322 _ACEOF
17323
17324 fi
17325 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17326 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17327
17328 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17329 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17330 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17331 echo $ECHO_N "(cached) $ECHO_C" >&6
17332 else
17333 cat >conftest.$ac_ext <<_ACEOF
17334 /* confdefs.h. */
17335 _ACEOF
17336 cat confdefs.h >>conftest.$ac_ext
17337 cat >>conftest.$ac_ext <<_ACEOF
17338 /* end confdefs.h. */
17339
17340 #define _SYSCALL32
17341 #include <sys/procfs.h>
17342 int
17343 main ()
17344 {
17345 prfpregset32_t avar
17346 ;
17347 return 0;
17348 }
17349 _ACEOF
17350 rm -f conftest.$ac_objext
17351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17352 (eval $ac_compile) 2>conftest.er1
17353 ac_status=$?
17354 grep -v '^ *+' conftest.er1 >conftest.err
17355 rm -f conftest.er1
17356 cat conftest.err >&5
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } &&
17359 { ac_try='test -z "$ac_c_werror_flag"
17360 || test ! -s conftest.err'
17361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362 (eval $ac_try) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; } &&
17366 { ac_try='test -s conftest.$ac_objext'
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
17372 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
17373 else
17374 echo "$as_me: failed program was:" >&5
17375 sed 's/^/| /' conftest.$ac_ext >&5
17376
17377 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
17378
17379 fi
17380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17381 fi
17382
17383 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17384
17385 cat >>confdefs.h <<\_ACEOF
17386 #define HAVE_PRFPREGSET32_T 1
17387 _ACEOF
17388
17389 fi
17390 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17391 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
17392
17393 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17394 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
17395 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
17396 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 else
17398 cat >conftest.$ac_ext <<_ACEOF
17399 /* confdefs.h. */
17400 _ACEOF
17401 cat confdefs.h >>conftest.$ac_ext
17402 cat >>conftest.$ac_ext <<_ACEOF
17403 /* end confdefs.h. */
17404
17405 #define _SYSCALL32
17406 #include <sys/procfs.h>
17407 int
17408 main ()
17409 {
17410 lwpid_t avar
17411 ;
17412 return 0;
17413 }
17414 _ACEOF
17415 rm -f conftest.$ac_objext
17416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17417 (eval $ac_compile) 2>conftest.er1
17418 ac_status=$?
17419 grep -v '^ *+' conftest.er1 >conftest.err
17420 rm -f conftest.er1
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
17424 { ac_try='test -z "$ac_c_werror_flag"
17425 || test ! -s conftest.err'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try='test -s conftest.$ac_objext'
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 bfd_cv_have_sys_procfs_type_lwpid_t=yes
17438 else
17439 echo "$as_me: failed program was:" >&5
17440 sed 's/^/| /' conftest.$ac_ext >&5
17441
17442 bfd_cv_have_sys_procfs_type_lwpid_t=no
17443
17444 fi
17445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17446 fi
17447
17448 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
17449
17450 cat >>confdefs.h <<\_ACEOF
17451 #define HAVE_LWPID_T 1
17452 _ACEOF
17453
17454 fi
17455 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
17456 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
17457
17458 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
17459 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
17460 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
17461 echo $ECHO_N "(cached) $ECHO_C" >&6
17462 else
17463 cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h. */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17469
17470 #define _SYSCALL32
17471 #include <sys/procfs.h>
17472 int
17473 main ()
17474 {
17475 psaddr_t avar
17476 ;
17477 return 0;
17478 }
17479 _ACEOF
17480 rm -f conftest.$ac_objext
17481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17482 (eval $ac_compile) 2>conftest.er1
17483 ac_status=$?
17484 grep -v '^ *+' conftest.er1 >conftest.err
17485 rm -f conftest.er1
17486 cat conftest.err >&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } &&
17489 { ac_try='test -z "$ac_c_werror_flag"
17490 || test ! -s conftest.err'
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17493 ac_status=$?
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest.$ac_objext'
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 bfd_cv_have_sys_procfs_type_psaddr_t=yes
17503 else
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17506
17507 bfd_cv_have_sys_procfs_type_psaddr_t=no
17508
17509 fi
17510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17511 fi
17512
17513 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
17514
17515 cat >>confdefs.h <<\_ACEOF
17516 #define HAVE_PSADDR_T 1
17517 _ACEOF
17518
17519 fi
17520 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
17521 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
17522
17523 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
17524 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
17525 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17527 else
17528 cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h. */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534
17535 #define _SYSCALL32
17536 #include <sys/procfs.h>
17537 int
17538 main ()
17539 {
17540 prsysent_t avar
17541 ;
17542 return 0;
17543 }
17544 _ACEOF
17545 rm -f conftest.$ac_objext
17546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17547 (eval $ac_compile) 2>conftest.er1
17548 ac_status=$?
17549 grep -v '^ *+' conftest.er1 >conftest.err
17550 rm -f conftest.er1
17551 cat conftest.err >&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
17554 { ac_try='test -z "$ac_c_werror_flag"
17555 || test ! -s conftest.err'
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try='test -s conftest.$ac_objext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 bfd_cv_have_sys_procfs_type_prsysent_t=yes
17568 else
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17571
17572 bfd_cv_have_sys_procfs_type_prsysent_t=no
17573
17574 fi
17575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17576 fi
17577
17578 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
17579
17580 cat >>confdefs.h <<\_ACEOF
17581 #define HAVE_PRSYSENT_T 1
17582 _ACEOF
17583
17584 fi
17585 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
17586 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
17587
17588 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
17589 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
17590 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593 cat >conftest.$ac_ext <<_ACEOF
17594 /* confdefs.h. */
17595 _ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599
17600 #define _SYSCALL32
17601 #include <sys/procfs.h>
17602 int
17603 main ()
17604 {
17605 pr_sigset_t avar
17606 ;
17607 return 0;
17608 }
17609 _ACEOF
17610 rm -f conftest.$ac_objext
17611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17612 (eval $ac_compile) 2>conftest.er1
17613 ac_status=$?
17614 grep -v '^ *+' conftest.er1 >conftest.err
17615 rm -f conftest.er1
17616 cat conftest.err >&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } &&
17619 { ac_try='test -z "$ac_c_werror_flag"
17620 || test ! -s conftest.err'
17621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622 (eval $ac_try) 2>&5
17623 ac_status=$?
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); }; } &&
17626 { ac_try='test -s conftest.$ac_objext'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17629 ac_status=$?
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; }; then
17632 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
17633 else
17634 echo "$as_me: failed program was:" >&5
17635 sed 's/^/| /' conftest.$ac_ext >&5
17636
17637 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
17638
17639 fi
17640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17641 fi
17642
17643 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
17644
17645 cat >>confdefs.h <<\_ACEOF
17646 #define HAVE_PR_SIGSET_T 1
17647 _ACEOF
17648
17649 fi
17650 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
17651 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
17652
17653 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
17654 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
17655 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658 cat >conftest.$ac_ext <<_ACEOF
17659 /* confdefs.h. */
17660 _ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17664
17665 #define _SYSCALL32
17666 #include <sys/procfs.h>
17667 int
17668 main ()
17669 {
17670 pr_sigaction64_t avar
17671 ;
17672 return 0;
17673 }
17674 _ACEOF
17675 rm -f conftest.$ac_objext
17676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677 (eval $ac_compile) 2>conftest.er1
17678 ac_status=$?
17679 grep -v '^ *+' conftest.er1 >conftest.err
17680 rm -f conftest.er1
17681 cat conftest.err >&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } &&
17684 { ac_try='test -z "$ac_c_werror_flag"
17685 || test ! -s conftest.err'
17686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17687 (eval $ac_try) 2>&5
17688 ac_status=$?
17689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); }; } &&
17691 { ac_try='test -s conftest.$ac_objext'
17692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17693 (eval $ac_try) 2>&5
17694 ac_status=$?
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); }; }; then
17697 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
17698 else
17699 echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17701
17702 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
17703
17704 fi
17705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17706 fi
17707
17708 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
17709
17710 cat >>confdefs.h <<\_ACEOF
17711 #define HAVE_PR_SIGACTION64_T 1
17712 _ACEOF
17713
17714 fi
17715 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
17716 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
17717
17718 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
17719 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
17720 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
17721 echo $ECHO_N "(cached) $ECHO_C" >&6
17722 else
17723 cat >conftest.$ac_ext <<_ACEOF
17724 /* confdefs.h. */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729
17730 #define _SYSCALL32
17731 #include <sys/procfs.h>
17732 int
17733 main ()
17734 {
17735 pr_siginfo64_t avar
17736 ;
17737 return 0;
17738 }
17739 _ACEOF
17740 rm -f conftest.$ac_objext
17741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17742 (eval $ac_compile) 2>conftest.er1
17743 ac_status=$?
17744 grep -v '^ *+' conftest.er1 >conftest.err
17745 rm -f conftest.er1
17746 cat conftest.err >&5
17747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17748 (exit $ac_status); } &&
17749 { ac_try='test -z "$ac_c_werror_flag"
17750 || test ! -s conftest.err'
17751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17752 (eval $ac_try) 2>&5
17753 ac_status=$?
17754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755 (exit $ac_status); }; } &&
17756 { ac_try='test -s conftest.$ac_objext'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; }; then
17762 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
17763 else
17764 echo "$as_me: failed program was:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17766
17767 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
17768
17769 fi
17770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17771 fi
17772
17773 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
17774
17775 cat >>confdefs.h <<\_ACEOF
17776 #define HAVE_PR_SIGINFO64_T 1
17777 _ACEOF
17778
17779 fi
17780 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
17781 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
17782
17783
17784
17785
17786
17787 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17788 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
17789 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
17790 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17792 else
17793 if test "$cross_compiling" = yes; then
17794 gdb_cv_prfpregset_t_broken=yes
17795 else
17796 cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h. */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h. */
17802 #include <sys/procfs.h>
17803 int main ()
17804 {
17805 if (sizeof (prfpregset_t) == sizeof (void *))
17806 return 1;
17807 return 0;
17808 }
17809 _ACEOF
17810 rm -f conftest$ac_exeext
17811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17812 (eval $ac_link) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17821 gdb_cv_prfpregset_t_broken=no
17822 else
17823 echo "$as_me: program exited with status $ac_status" >&5
17824 echo "$as_me: failed program was:" >&5
17825 sed 's/^/| /' conftest.$ac_ext >&5
17826
17827 ( exit $ac_status )
17828 gdb_cv_prfpregset_t_broken=yes
17829 fi
17830 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17831 fi
17832 fi
17833
17834 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
17835 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
17836 if test $gdb_cv_prfpregset_t_broken = yes; then
17837
17838 cat >>confdefs.h <<\_ACEOF
17839 #define PRFPREGSET_T_BROKEN 1
17840 _ACEOF
17841
17842 fi
17843 fi
17844
17845
17846 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
17847 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
17848 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
17849 echo $ECHO_N "(cached) $ECHO_C" >&6
17850 else
17851 cat >conftest.$ac_ext <<_ACEOF
17852 /* confdefs.h. */
17853 _ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17857 #include <unistd.h>
17858 #include <sys/types.h>
17859 #include <sys/procfs.h>
17860
17861 int
17862 main ()
17863 {
17864
17865 int dummy;;
17866 dummy = ioctl(0, PIOCSET, &dummy);
17867
17868 ;
17869 return 0;
17870 }
17871 _ACEOF
17872 rm -f conftest.$ac_objext
17873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17874 (eval $ac_compile) 2>conftest.er1
17875 ac_status=$?
17876 grep -v '^ *+' conftest.er1 >conftest.err
17877 rm -f conftest.er1
17878 cat conftest.err >&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); } &&
17881 { ac_try='test -z "$ac_c_werror_flag"
17882 || test ! -s conftest.err'
17883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17884 (eval $ac_try) 2>&5
17885 ac_status=$?
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); }; } &&
17888 { ac_try='test -s conftest.$ac_objext'
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17891 ac_status=$?
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; }; then
17894 gdb_cv_have_procfs_piocset=yes
17895 else
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17898
17899 gdb_cv_have_procfs_piocset=no
17900 fi
17901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17902 fi
17903
17904 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
17905 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
17906 if test $gdb_cv_have_procfs_piocset = yes; then
17907
17908 cat >>confdefs.h <<\_ACEOF
17909 #define HAVE_PROCFS_PIOCSET 1
17910 _ACEOF
17911
17912 fi
17913 fi
17914
17915 if test ${host} = ${target} ; then
17916
17917 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
17918 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
17919 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
17920 echo $ECHO_N "(cached) $ECHO_C" >&6
17921 else
17922 cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h. */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17928 #include <link.h>
17929 int
17930 main ()
17931 {
17932 struct link_map lm; (void) lm.l_addr;
17933 ;
17934 return 0;
17935 }
17936 _ACEOF
17937 rm -f conftest.$ac_objext
17938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17939 (eval $ac_compile) 2>conftest.er1
17940 ac_status=$?
17941 grep -v '^ *+' conftest.er1 >conftest.err
17942 rm -f conftest.er1
17943 cat conftest.err >&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); } &&
17946 { ac_try='test -z "$ac_c_werror_flag"
17947 || test ! -s conftest.err'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; } &&
17953 { ac_try='test -s conftest.$ac_objext'
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 gdb_cv_have_struct_link_map_with_l_members=yes
17960 else
17961 echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17963
17964 gdb_cv_have_struct_link_map_with_l_members=no
17965 fi
17966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17967 fi
17968
17969 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
17970 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
17971 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
17972
17973 cat >>confdefs.h <<\_ACEOF
17974 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
17975 _ACEOF
17976
17977 fi
17978
17979
17980 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
17981 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
17982 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17984 else
17985 cat >conftest.$ac_ext <<_ACEOF
17986 /* confdefs.h. */
17987 _ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17991 #include <sys/types.h>
17992 #include <link.h>
17993 int
17994 main ()
17995 {
17996 struct link_map lm; (void) lm.lm_addr;
17997 ;
17998 return 0;
17999 }
18000 _ACEOF
18001 rm -f conftest.$ac_objext
18002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18003 (eval $ac_compile) 2>conftest.er1
18004 ac_status=$?
18005 grep -v '^ *+' conftest.er1 >conftest.err
18006 rm -f conftest.er1
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); } &&
18010 { ac_try='test -z "$ac_c_werror_flag"
18011 || test ! -s conftest.err'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18014 ac_status=$?
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; } &&
18017 { ac_try='test -s conftest.$ac_objext'
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; }; then
18023 gdb_cv_have_struct_link_map_with_lm_members=yes
18024 else
18025 echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028 gdb_cv_have_struct_link_map_with_lm_members=no
18029 fi
18030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18031 fi
18032
18033 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18034 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18035 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18036
18037 cat >>confdefs.h <<\_ACEOF
18038 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18039 _ACEOF
18040
18041 fi
18042
18043
18044 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18045 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18046 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18048 else
18049 cat >conftest.$ac_ext <<_ACEOF
18050 /* confdefs.h. */
18051 _ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18055 #include <sys/types.h>
18056 #ifdef HAVE_NLIST_H
18057 #include <nlist.h>
18058 #endif
18059 #include <link.h>
18060 int
18061 main ()
18062 {
18063 struct so_map lm; (void) lm.som_addr;
18064 ;
18065 return 0;
18066 }
18067 _ACEOF
18068 rm -f conftest.$ac_objext
18069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18070 (eval $ac_compile) 2>conftest.er1
18071 ac_status=$?
18072 grep -v '^ *+' conftest.er1 >conftest.err
18073 rm -f conftest.er1
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18076 (exit $ac_status); } &&
18077 { ac_try='test -z "$ac_c_werror_flag"
18078 || test ! -s conftest.err'
18079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18080 (eval $ac_try) 2>&5
18081 ac_status=$?
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; } &&
18084 { ac_try='test -s conftest.$ac_objext'
18085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18086 (eval $ac_try) 2>&5
18087 ac_status=$?
18088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18089 (exit $ac_status); }; }; then
18090 gdb_cv_have_struct_so_map_with_som_members=yes
18091 else
18092 echo "$as_me: failed program was:" >&5
18093 sed 's/^/| /' conftest.$ac_ext >&5
18094
18095 gdb_cv_have_struct_so_map_with_som_members=no
18096 fi
18097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18098 fi
18099
18100 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18101 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18102 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18103
18104 cat >>confdefs.h <<\_ACEOF
18105 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18106 _ACEOF
18107
18108 fi
18109
18110
18111 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18112 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18113 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18114 echo $ECHO_N "(cached) $ECHO_C" >&6
18115 else
18116 cat >conftest.$ac_ext <<_ACEOF
18117 /* confdefs.h. */
18118 _ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18122 #define _SYSCALL32
18123 #include <sys/link.h>
18124 int
18125 main ()
18126 {
18127 struct link_map32 l;
18128 ;
18129 return 0;
18130 }
18131 _ACEOF
18132 rm -f conftest.$ac_objext
18133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18134 (eval $ac_compile) 2>conftest.er1
18135 ac_status=$?
18136 grep -v '^ *+' conftest.er1 >conftest.err
18137 rm -f conftest.er1
18138 cat conftest.err >&5
18139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18140 (exit $ac_status); } &&
18141 { ac_try='test -z "$ac_c_werror_flag"
18142 || test ! -s conftest.err'
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; } &&
18148 { ac_try='test -s conftest.$ac_objext'
18149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18151 ac_status=$?
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; }; then
18154 gdb_cv_have_struct_link_map32=yes
18155 else
18156 echo "$as_me: failed program was:" >&5
18157 sed 's/^/| /' conftest.$ac_ext >&5
18158
18159 gdb_cv_have_struct_link_map32=no
18160 fi
18161 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18162 fi
18163
18164 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18165 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18166 if test $gdb_cv_have_struct_link_map32 = yes; then
18167
18168 cat >>confdefs.h <<\_ACEOF
18169 #define HAVE_STRUCT_LINK_MAP32 1
18170 _ACEOF
18171
18172
18173 cat >>confdefs.h <<\_ACEOF
18174 #define _SYSCALL32 1
18175 _ACEOF
18176
18177 fi
18178 fi
18179
18180 # Check if the compiler supports the `long long' type.
18181
18182 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18183 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18184 if test "${gdb_cv_c_long_long+set}" = set; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18186 else
18187 cat >conftest.$ac_ext <<_ACEOF
18188 /* confdefs.h. */
18189 _ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h. */
18193 extern long long foo;
18194 int
18195 main ()
18196 {
18197 switch (foo & 2) { case 0: return 1; }
18198 ;
18199 return 0;
18200 }
18201 _ACEOF
18202 rm -f conftest.$ac_objext
18203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18204 (eval $ac_compile) 2>conftest.er1
18205 ac_status=$?
18206 grep -v '^ *+' conftest.er1 >conftest.err
18207 rm -f conftest.er1
18208 cat conftest.err >&5
18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210 (exit $ac_status); } &&
18211 { ac_try='test -z "$ac_c_werror_flag"
18212 || test ! -s conftest.err'
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; } &&
18218 { ac_try='test -s conftest.$ac_objext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 gdb_cv_c_long_long=yes
18225 else
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18228
18229 gdb_cv_c_long_long=no
18230 fi
18231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18232 fi
18233 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18234 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18235 if test $gdb_cv_c_long_long = yes; then
18236
18237 cat >>confdefs.h <<\_ACEOF
18238 #define CC_HAS_LONG_LONG 1
18239 _ACEOF
18240
18241 fi
18242
18243 # Check if the compiler and runtime support printing long longs.
18244
18245 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18246 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18247 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18248 echo $ECHO_N "(cached) $ECHO_C" >&6
18249 else
18250 if test "$cross_compiling" = yes; then
18251 gdb_cv_printf_has_long_long=no
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 $ac_includes_default
18260 int
18261 main ()
18262 {
18263 char buf[32];
18264 long long l = 0;
18265 l = (l << 16) + 0x0123;
18266 l = (l << 16) + 0x4567;
18267 l = (l << 16) + 0x89ab;
18268 l = (l << 16) + 0xcdef;
18269 sprintf (buf, "0x%016llx", l);
18270 return (strcmp ("0x0123456789abcdef", buf));
18271 ;
18272 return 0;
18273 }
18274 _ACEOF
18275 rm -f conftest$ac_exeext
18276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18277 (eval $ac_link) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
18286 gdb_cv_printf_has_long_long=yes
18287 else
18288 echo "$as_me: program exited with status $ac_status" >&5
18289 echo "$as_me: failed program was:" >&5
18290 sed 's/^/| /' conftest.$ac_ext >&5
18291
18292 ( exit $ac_status )
18293 gdb_cv_printf_has_long_long=no
18294 fi
18295 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18296 fi
18297 fi
18298 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18299 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18300 if test $gdb_cv_printf_has_long_long = yes; then
18301
18302 cat >>confdefs.h <<\_ACEOF
18303 #define PRINTF_HAS_LONG_LONG 1
18304 _ACEOF
18305
18306 fi
18307
18308 # Check if the compiler and runtime support printing decfloats.
18309
18310 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
18311 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
18312 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
18313 echo $ECHO_N "(cached) $ECHO_C" >&6
18314 else
18315 if test "$cross_compiling" = yes; then
18316 gdb_cv_printf_has_decfloat=no
18317 else
18318 cat >conftest.$ac_ext <<_ACEOF
18319 /* confdefs.h. */
18320 _ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18324 $ac_includes_default
18325 int
18326 main ()
18327 {
18328 char buf[64];
18329 _Decimal32 d32 = 1.2345df;
18330 _Decimal64 d64 = 1.2345dd;
18331 _Decimal128 d128 = 1.2345dl;
18332 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
18333 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
18334 ;
18335 return 0;
18336 }
18337 _ACEOF
18338 rm -f conftest$ac_exeext
18339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18340 (eval $ac_link) 2>&5
18341 ac_status=$?
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
18349 gdb_cv_printf_has_decfloat=yes
18350 else
18351 echo "$as_me: program exited with status $ac_status" >&5
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18354
18355 ( exit $ac_status )
18356 gdb_cv_printf_has_decfloat=no
18357 fi
18358 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18359 fi
18360 fi
18361 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
18362 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
18363 if test $gdb_cv_printf_has_decfloat = yes; then
18364
18365 cat >>confdefs.h <<\_ACEOF
18366 #define PRINTF_HAS_DECFLOAT 1
18367 _ACEOF
18368
18369 fi
18370
18371 # Check if the compiler supports the `long double' type. We can't use
18372 # AC_C_LONG_DOUBLE because that one does additional checks on the
18373 # constants defined in <float.h> that fail on some systems,
18374 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18375
18376 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18377 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18378 if test "${gdb_cv_c_long_double+set}" = set; then
18379 echo $ECHO_N "(cached) $ECHO_C" >&6
18380 else
18381 cat >conftest.$ac_ext <<_ACEOF
18382 /* confdefs.h. */
18383 _ACEOF
18384 cat confdefs.h >>conftest.$ac_ext
18385 cat >>conftest.$ac_ext <<_ACEOF
18386 /* end confdefs.h. */
18387 long double foo;
18388 _ACEOF
18389 rm -f conftest.$ac_objext
18390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18391 (eval $ac_compile) 2>conftest.er1
18392 ac_status=$?
18393 grep -v '^ *+' conftest.er1 >conftest.err
18394 rm -f conftest.er1
18395 cat conftest.err >&5
18396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); } &&
18398 { ac_try='test -z "$ac_c_werror_flag"
18399 || test ! -s conftest.err'
18400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18402 ac_status=$?
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; } &&
18405 { ac_try='test -s conftest.$ac_objext'
18406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18407 (eval $ac_try) 2>&5
18408 ac_status=$?
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; }; then
18411 gdb_cv_c_long_double=yes
18412 else
18413 echo "$as_me: failed program was:" >&5
18414 sed 's/^/| /' conftest.$ac_ext >&5
18415
18416 gdb_cv_c_long_double=no
18417 fi
18418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18419 fi
18420 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18421 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18422 if test $gdb_cv_c_long_double = yes; then
18423
18424 cat >>confdefs.h <<\_ACEOF
18425 #define HAVE_LONG_DOUBLE 1
18426 _ACEOF
18427
18428 fi
18429
18430 # Check if the compiler and runtime support printing long doubles.
18431
18432 echo "$as_me:$LINENO: checking for long double support in printf" >&5
18433 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
18434 if test "${gdb_cv_printf_has_long_double+set}" = set; then
18435 echo $ECHO_N "(cached) $ECHO_C" >&6
18436 else
18437 if test "$cross_compiling" = yes; then
18438 gdb_cv_printf_has_long_double=no
18439 else
18440 cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h. */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18446 $ac_includes_default
18447 int
18448 main ()
18449 {
18450 char buf[16];
18451 long double f = 3.141592653;
18452 sprintf (buf, "%Lg", f);
18453 return (strncmp ("3.14159", buf, 7));
18454 ;
18455 return 0;
18456 }
18457 _ACEOF
18458 rm -f conftest$ac_exeext
18459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18460 (eval $ac_link) 2>&5
18461 ac_status=$?
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 gdb_cv_printf_has_long_double=yes
18470 else
18471 echo "$as_me: program exited with status $ac_status" >&5
18472 echo "$as_me: failed program was:" >&5
18473 sed 's/^/| /' conftest.$ac_ext >&5
18474
18475 ( exit $ac_status )
18476 gdb_cv_printf_has_long_double=no
18477 fi
18478 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18479 fi
18480 fi
18481 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
18482 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
18483 if test $gdb_cv_printf_has_long_double = yes; then
18484
18485 cat >>confdefs.h <<\_ACEOF
18486 #define PRINTF_HAS_LONG_DOUBLE 1
18487 _ACEOF
18488
18489 fi
18490
18491 # Check if the compiler and runtime support scanning long doubles.
18492
18493 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
18494 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
18495 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
18496 echo $ECHO_N "(cached) $ECHO_C" >&6
18497 else
18498 if test "$cross_compiling" = yes; then
18499 gdb_cv_scanf_has_long_double=no
18500 else
18501 cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h. */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18507 #include <stdio.h>
18508 int
18509 main ()
18510 {
18511 char *buf = "3.141592653";
18512 long double f = 0;
18513 sscanf (buf, "%Lg", &f);
18514 return !(f > 3.14159 && f < 3.14160);
18515 ;
18516 return 0;
18517 }
18518 _ACEOF
18519 rm -f conftest$ac_exeext
18520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18521 (eval $ac_link) 2>&5
18522 ac_status=$?
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18526 (eval $ac_try) 2>&5
18527 ac_status=$?
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; }; then
18530 gdb_cv_scanf_has_long_double=yes
18531 else
18532 echo "$as_me: program exited with status $ac_status" >&5
18533 echo "$as_me: failed program was:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18535
18536 ( exit $ac_status )
18537 gdb_cv_scanf_has_long_double=no
18538 fi
18539 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18540 fi
18541 fi
18542 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
18543 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
18544 if test $gdb_cv_scanf_has_long_double = yes; then
18545
18546 cat >>confdefs.h <<\_ACEOF
18547 #define SCANF_HAS_LONG_DOUBLE 1
18548 _ACEOF
18549
18550 fi
18551
18552 case ${host_os} in
18553 aix*)
18554 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
18555 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
18556 if test "${gdb_cv_bigtoc+set}" = set; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
18558 else
18559
18560 SAVE_LDFLAGS=$LDFLAGS
18561
18562 case $GCC in
18563 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
18564 *) gdb_cv_bigtoc=-bbigtoc ;;
18565 esac
18566
18567 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
18568 cat >conftest.$ac_ext <<_ACEOF
18569 /* confdefs.h. */
18570 _ACEOF
18571 cat confdefs.h >>conftest.$ac_ext
18572 cat >>conftest.$ac_ext <<_ACEOF
18573 /* end confdefs.h. */
18574
18575 int
18576 main ()
18577 {
18578 int i;
18579 ;
18580 return 0;
18581 }
18582 _ACEOF
18583 rm -f conftest.$ac_objext conftest$ac_exeext
18584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18585 (eval $ac_link) 2>conftest.er1
18586 ac_status=$?
18587 grep -v '^ *+' conftest.er1 >conftest.err
18588 rm -f conftest.er1
18589 cat conftest.err >&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); } &&
18592 { ac_try='test -z "$ac_c_werror_flag"
18593 || test ! -s conftest.err'
18594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18595 (eval $ac_try) 2>&5
18596 ac_status=$?
18597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); }; } &&
18599 { ac_try='test -s conftest$ac_exeext'
18600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601 (eval $ac_try) 2>&5
18602 ac_status=$?
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); }; }; then
18605 :
18606 else
18607 echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18609
18610 gdb_cv_bigtoc=
18611 fi
18612 rm -f conftest.err conftest.$ac_objext \
18613 conftest$ac_exeext conftest.$ac_ext
18614 LDFLAGS="${SAVE_LDFLAGS}"
18615
18616 fi
18617 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
18618 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
18619 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
18620 ;;
18621 esac
18622
18623
18624
18625 if test ${build} = ${host} -a ${host} = ${target} ; then
18626 case ${host_os} in
18627 hpux*)
18628 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
18629 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
18630 if test -f /usr/include/dce/cma_config.h ; then
18631 if test "$GCC" = "yes" ; then
18632 echo "$as_me:$LINENO: result: yes" >&5
18633 echo "${ECHO_T}yes" >&6
18634
18635 cat >>confdefs.h <<\_ACEOF
18636 #define HAVE_HPUX_THREAD_SUPPORT 1
18637 _ACEOF
18638
18639 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
18640 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
18641 else
18642 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
18643 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
18644 fi
18645 else
18646 echo "$as_me:$LINENO: result: no" >&5
18647 echo "${ECHO_T}no" >&6
18648 fi
18649 ;;
18650 solaris*)
18651 # See if thread_db library is around for Solaris thread debugging.
18652 # Note that we must explicitly test for version 1 of the library
18653 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
18654 # the same API.
18655 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
18656 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
18657 if test -f /usr/lib/libthread_db.so.1 ; then
18658 echo "$as_me:$LINENO: result: yes" >&5
18659 echo "${ECHO_T}yes" >&6
18660
18661 cat >>confdefs.h <<\_ACEOF
18662 #define HAVE_THREAD_DB_LIB 1
18663 _ACEOF
18664
18665 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
18666 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
18667
18668 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18669 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18670 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18671 echo $ECHO_N "(cached) $ECHO_C" >&6
18672 else
18673 ac_check_lib_save_LIBS=$LIBS
18674 LIBS="-ldl $LIBS"
18675 cat >conftest.$ac_ext <<_ACEOF
18676 /* confdefs.h. */
18677 _ACEOF
18678 cat confdefs.h >>conftest.$ac_ext
18679 cat >>conftest.$ac_ext <<_ACEOF
18680 /* end confdefs.h. */
18681
18682 /* Override any gcc2 internal prototype to avoid an error. */
18683 #ifdef __cplusplus
18684 extern "C"
18685 #endif
18686 /* We use char because int might match the return type of a gcc2
18687 builtin and then its argument prototype would still apply. */
18688 char dlopen ();
18689 int
18690 main ()
18691 {
18692 dlopen ();
18693 ;
18694 return 0;
18695 }
18696 _ACEOF
18697 rm -f conftest.$ac_objext conftest$ac_exeext
18698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18699 (eval $ac_link) 2>conftest.er1
18700 ac_status=$?
18701 grep -v '^ *+' conftest.er1 >conftest.err
18702 rm -f conftest.er1
18703 cat conftest.err >&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); } &&
18706 { ac_try='test -z "$ac_c_werror_flag"
18707 || test ! -s conftest.err'
18708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18709 (eval $ac_try) 2>&5
18710 ac_status=$?
18711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18712 (exit $ac_status); }; } &&
18713 { ac_try='test -s conftest$ac_exeext'
18714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18715 (eval $ac_try) 2>&5
18716 ac_status=$?
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); }; }; then
18719 ac_cv_lib_dl_dlopen=yes
18720 else
18721 echo "$as_me: failed program was:" >&5
18722 sed 's/^/| /' conftest.$ac_ext >&5
18723
18724 ac_cv_lib_dl_dlopen=no
18725 fi
18726 rm -f conftest.err conftest.$ac_objext \
18727 conftest$ac_exeext conftest.$ac_ext
18728 LIBS=$ac_check_lib_save_LIBS
18729 fi
18730 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18731 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18732 if test $ac_cv_lib_dl_dlopen = yes; then
18733 cat >>confdefs.h <<_ACEOF
18734 #define HAVE_LIBDL 1
18735 _ACEOF
18736
18737 LIBS="-ldl $LIBS"
18738
18739 fi
18740
18741 if test "$GCC" = "yes" ; then
18742 # The GNU linker requires the -export-dynamic option to make
18743 # all symbols visible in the dynamic symbol table.
18744 hold_ldflags=$LDFLAGS
18745 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
18746 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
18747 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
18748 cat >conftest.$ac_ext <<_ACEOF
18749 /* confdefs.h. */
18750 _ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h. */
18754
18755 int
18756 main ()
18757 {
18758 int i;
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 found=yes
18786 else
18787 echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18789
18790 found=no
18791 fi
18792 rm -f conftest.err conftest.$ac_objext \
18793 conftest$ac_exeext conftest.$ac_ext
18794 LDFLAGS=$hold_ldflags
18795 echo "$as_me:$LINENO: result: $found" >&5
18796 echo "${ECHO_T}$found" >&6
18797 if test $found = yes; then
18798 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
18799 fi
18800 fi
18801 # Sun randomly tweaked the prototypes in <proc_service.h>
18802 # at one point.
18803 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
18804 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
18805 if test "${gdb_cv_proc_service_is_old+set}" = set; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18807 else
18808
18809 cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h. */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18815
18816 #include <proc_service.h>
18817 ps_err_e ps_pdwrite
18818 (struct ps_prochandle*, psaddr_t, const void*, size_t);
18819
18820 int
18821 main ()
18822 {
18823
18824 ;
18825 return 0;
18826 }
18827 _ACEOF
18828 rm -f conftest.$ac_objext
18829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18830 (eval $ac_compile) 2>conftest.er1
18831 ac_status=$?
18832 grep -v '^ *+' conftest.er1 >conftest.err
18833 rm -f conftest.er1
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } &&
18837 { ac_try='test -z "$ac_c_werror_flag"
18838 || test ! -s conftest.err'
18839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18840 (eval $ac_try) 2>&5
18841 ac_status=$?
18842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); }; } &&
18844 { ac_try='test -s conftest.$ac_objext'
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; }; then
18850 gdb_cv_proc_service_is_old=no
18851 else
18852 echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18854
18855 gdb_cv_proc_service_is_old=yes
18856 fi
18857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18858
18859 fi
18860
18861 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
18862 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
18863 if test $gdb_cv_proc_service_is_old = yes; then
18864
18865 cat >>confdefs.h <<\_ACEOF
18866 #define PROC_SERVICE_IS_OLD 1
18867 _ACEOF
18868
18869 fi
18870 else
18871 echo "$as_me:$LINENO: result: no" >&5
18872 echo "${ECHO_T}no" >&6
18873 fi
18874 ;;
18875 aix*)
18876 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
18877 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
18878 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
18880 else
18881 cat >conftest.$ac_ext <<_ACEOF
18882 /* confdefs.h. */
18883 _ACEOF
18884 cat confdefs.h >>conftest.$ac_ext
18885 cat >>conftest.$ac_ext <<_ACEOF
18886 /* end confdefs.h. */
18887 #include <sys/pthdebug.h>
18888 int
18889 main ()
18890 {
18891 #ifndef PTHDB_VERSION_3
18892 #error
18893 #endif
18894 ;
18895 return 0;
18896 }
18897 _ACEOF
18898 rm -f conftest.$ac_objext
18899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18900 (eval $ac_compile) 2>conftest.er1
18901 ac_status=$?
18902 grep -v '^ *+' conftest.er1 >conftest.err
18903 rm -f conftest.er1
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } &&
18907 { ac_try='test -z "$ac_c_werror_flag"
18908 || test ! -s conftest.err'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18911 ac_status=$?
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; } &&
18914 { ac_try='test -s conftest.$ac_objext'
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18917 ac_status=$?
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; }; then
18920 gdb_cv_have_aix_thread_debug=yes
18921 else
18922 echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18924
18925 gdb_cv_have_aix_thread_debug=no
18926 fi
18927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18928 fi
18929
18930 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
18931 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
18932 if test $gdb_cv_have_aix_thread_debug = yes; then
18933 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
18934 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
18935 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
18936 fi
18937 ;;
18938 esac
18939
18940 fi
18941
18942 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
18943 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
18944 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
18945 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
18946 echo $ECHO_N "(cached) $ECHO_C" >&6
18947 else
18948 cat >conftest.$ac_ext <<_ACEOF
18949 /* confdefs.h. */
18950 _ACEOF
18951 cat confdefs.h >>conftest.$ac_ext
18952 cat >>conftest.$ac_ext <<_ACEOF
18953 /* end confdefs.h. */
18954 #include <thread_db.h>
18955 int
18956 main ()
18957 {
18958 int i = TD_NOTALLOC;
18959 ;
18960 return 0;
18961 }
18962 _ACEOF
18963 rm -f conftest.$ac_objext
18964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18965 (eval $ac_compile) 2>conftest.er1
18966 ac_status=$?
18967 grep -v '^ *+' conftest.er1 >conftest.err
18968 rm -f conftest.er1
18969 cat conftest.err >&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } &&
18972 { ac_try='test -z "$ac_c_werror_flag"
18973 || test ! -s conftest.err'
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18976 ac_status=$?
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; } &&
18979 { ac_try='test -s conftest.$ac_objext'
18980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18981 (eval $ac_try) 2>&5
18982 ac_status=$?
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; }; then
18985 gdb_cv_thread_db_h_has_td_notalloc=yes
18986 else
18987 echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.$ac_ext >&5
18989
18990 gdb_cv_thread_db_h_has_td_notalloc=no
18991
18992 fi
18993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18994
18995 fi
18996 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
18997 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
18998 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
18999 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
19000 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19002 else
19003 cat >conftest.$ac_ext <<_ACEOF
19004 /* confdefs.h. */
19005 _ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h. */
19009 #include <thread_db.h>
19010 int
19011 main ()
19012 {
19013 int i = TD_VERSION;
19014 ;
19015 return 0;
19016 }
19017 _ACEOF
19018 rm -f conftest.$ac_objext
19019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19020 (eval $ac_compile) 2>conftest.er1
19021 ac_status=$?
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
19027 { ac_try='test -z "$ac_c_werror_flag"
19028 || test ! -s conftest.err'
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; } &&
19034 { ac_try='test -s conftest.$ac_objext'
19035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19036 (eval $ac_try) 2>&5
19037 ac_status=$?
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; }; then
19040 gdb_cv_thread_db_h_has_td_version=yes
19041 else
19042 echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19044
19045 gdb_cv_thread_db_h_has_td_version=no
19046
19047 fi
19048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19049
19050 fi
19051 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
19052 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
19053 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
19054 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
19055 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
19056 echo $ECHO_N "(cached) $ECHO_C" >&6
19057 else
19058 cat >conftest.$ac_ext <<_ACEOF
19059 /* confdefs.h. */
19060 _ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 #include <thread_db.h>
19065 int
19066 main ()
19067 {
19068 int i = TD_NOTLS;
19069 ;
19070 return 0;
19071 }
19072 _ACEOF
19073 rm -f conftest.$ac_objext
19074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19075 (eval $ac_compile) 2>conftest.er1
19076 ac_status=$?
19077 grep -v '^ *+' conftest.er1 >conftest.err
19078 rm -f conftest.er1
19079 cat conftest.err >&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
19082 { ac_try='test -z "$ac_c_werror_flag"
19083 || test ! -s conftest.err'
19084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085 (eval $ac_try) 2>&5
19086 ac_status=$?
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try='test -s conftest.$ac_objext'
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 gdb_cv_thread_db_h_has_td_notls=yes
19096 else
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100 gdb_cv_thread_db_h_has_td_notls=no
19101
19102 fi
19103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19104
19105 fi
19106 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
19107 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
19108 fi
19109 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19110
19111 cat >>confdefs.h <<\_ACEOF
19112 #define THREAD_DB_HAS_TD_NOTALLOC 1
19113 _ACEOF
19114
19115 fi
19116 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
19117
19118 cat >>confdefs.h <<\_ACEOF
19119 #define THREAD_DB_HAS_TD_VERSION 1
19120 _ACEOF
19121
19122 fi
19123 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
19124
19125 cat >>confdefs.h <<\_ACEOF
19126 #define THREAD_DB_HAS_TD_NOTLS 1
19127 _ACEOF
19128
19129 fi
19130
19131 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19132 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19133 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19134 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19135 echo $ECHO_N "(cached) $ECHO_C" >&6
19136 else
19137 cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h. */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19143 #include <sys/syscall.h>
19144 int
19145 main ()
19146 {
19147 int i = __NR_tkill;
19148 ;
19149 return 0;
19150 }
19151 _ACEOF
19152 rm -f conftest.$ac_objext
19153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19154 (eval $ac_compile) 2>conftest.er1
19155 ac_status=$?
19156 grep -v '^ *+' conftest.er1 >conftest.err
19157 rm -f conftest.er1
19158 cat conftest.err >&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } &&
19161 { ac_try='test -z "$ac_c_werror_flag"
19162 || test ! -s conftest.err'
19163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19164 (eval $ac_try) 2>&5
19165 ac_status=$?
19166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167 (exit $ac_status); }; } &&
19168 { ac_try='test -s conftest.$ac_objext'
19169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19170 (eval $ac_try) 2>&5
19171 ac_status=$?
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); }; }; then
19174 gdb_cv_sys_syscall_h_has_tkill=yes
19175 else
19176 echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19178
19179 gdb_cv_sys_syscall_h_has_tkill=no
19180
19181 fi
19182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19183
19184 fi
19185 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19186 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19187 fi
19188 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19189
19190 cat >>confdefs.h <<\_ACEOF
19191 #define HAVE_TKILL_SYSCALL 1
19192 _ACEOF
19193
19194 fi
19195
19196 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
19197 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
19198 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
19199 echo $ECHO_N "(cached) $ECHO_C" >&6
19200 else
19201 cat >conftest.$ac_ext <<_ACEOF
19202 /* confdefs.h. */
19203 _ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h. */
19207 #include <sys/personality.h>
19208
19209 int
19210 main ()
19211 {
19212 #ifndef ADDR_NO_RANDOMIZE
19213 char *p = (char *) ADDR_NO_RANDOMIZE;
19214 #endif
19215
19216 ;
19217 return 0;
19218 }
19219 _ACEOF
19220 rm -f conftest.$ac_objext
19221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19222 (eval $ac_compile) 2>conftest.er1
19223 ac_status=$?
19224 grep -v '^ *+' conftest.er1 >conftest.err
19225 rm -f conftest.er1
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
19229 { ac_try='test -z "$ac_c_werror_flag"
19230 || test ! -s conftest.err'
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; } &&
19236 { ac_try='test -s conftest.$ac_objext'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
19242 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
19243 else
19244 echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19246
19247 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
19248 fi
19249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19250 fi
19251 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
19252 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
19253 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
19254
19255 cat >>confdefs.h <<_ACEOF
19256 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
19257 _ACEOF
19258
19259
19260 else
19261 cat >>confdefs.h <<_ACEOF
19262 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
19263 _ACEOF
19264
19265
19266 fi
19267
19268
19269
19270 if test "$cross_compiling" = yes; then
19271 cat >conftest.$ac_ext <<_ACEOF
19272 /* confdefs.h. */
19273 _ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 #include <sys/personality.h>
19278 int
19279 main ()
19280 {
19281
19282 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19283 # define ADDR_NO_RANDOMIZE 0x0040000
19284 # endif
19285 /* Test the flag could be set and stays set. */
19286 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19287 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19288 return 1
19289 ;
19290 return 0;
19291 }
19292 _ACEOF
19293 rm -f conftest.$ac_objext conftest$ac_exeext
19294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19295 (eval $ac_link) 2>conftest.er1
19296 ac_status=$?
19297 grep -v '^ *+' conftest.er1 >conftest.err
19298 rm -f conftest.er1
19299 cat conftest.err >&5
19300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } &&
19302 { ac_try='test -z "$ac_c_werror_flag"
19303 || test ! -s conftest.err'
19304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19306 ac_status=$?
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; } &&
19309 { ac_try='test -s conftest$ac_exeext'
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; }; then
19315 have_personality=true
19316 else
19317 echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19319
19320 have_personality=false
19321 fi
19322 rm -f conftest.err conftest.$ac_objext \
19323 conftest$ac_exeext conftest.$ac_ext
19324 else
19325 cat >conftest.$ac_ext <<_ACEOF
19326 /* confdefs.h. */
19327 _ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19331 #include <sys/personality.h>
19332 int
19333 main ()
19334 {
19335
19336 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19337 # define ADDR_NO_RANDOMIZE 0x0040000
19338 # endif
19339 /* Test the flag could be set and stays set. */
19340 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19341 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19342 return 1
19343 ;
19344 return 0;
19345 }
19346 _ACEOF
19347 rm -f conftest$ac_exeext
19348 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19349 (eval $ac_link) 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19355 ac_status=$?
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 have_personality=true
19359 else
19360 echo "$as_me: program exited with status $ac_status" >&5
19361 echo "$as_me: failed program was:" >&5
19362 sed 's/^/| /' conftest.$ac_ext >&5
19363
19364 ( exit $ac_status )
19365 have_personality=false
19366 fi
19367 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19368 fi
19369 if $have_personality
19370 then
19371
19372 cat >>confdefs.h <<\_ACEOF
19373 #define HAVE_PERSONALITY 1
19374 _ACEOF
19375
19376 fi
19377
19378
19379
19380 # Check whether --with-sysroot or --without-sysroot was given.
19381 if test "${with_sysroot+set}" = set; then
19382 withval="$with_sysroot"
19383
19384 case ${with_sysroot} in
19385 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19386 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19387 esac
19388
19389 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19390
19391 if test "x$prefix" = xNONE; then
19392 test_prefix=/usr/local
19393 else
19394 test_prefix=$prefix
19395 fi
19396 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19397 test_exec_prefix=$test_prefix
19398 else
19399 test_exec_prefix=$exec_prefix
19400 fi
19401 case ${TARGET_SYSTEM_ROOT} in
19402 "${test_prefix}"|"${test_prefix}/"*|\
19403 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19404 '${prefix}'|'${prefix}/'*|\
19405 '${exec_prefix}'|'${exec_prefix}/'*)
19406 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19407 TARGET_SYSTEM_ROOT_DEFINE="$t"
19408 ;;
19409 esac
19410
19411 else
19412
19413 TARGET_SYSTEM_ROOT=
19414 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19415
19416 fi;
19417
19418
19419
19420 # Check whether --enable-werror or --disable-werror was given.
19421 if test "${enable_werror+set}" = set; then
19422 enableval="$enable_werror"
19423 case "${enableval}" in
19424 yes | y) ERROR_ON_WARNING="yes" ;;
19425 no | n) ERROR_ON_WARNING="no" ;;
19426 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19427 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19428 { (exit 1); exit 1; }; } ;;
19429 esac
19430 fi;
19431
19432 # Enable -Werror by default when using gcc
19433 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19434 ERROR_ON_WARNING=yes
19435 fi
19436
19437 WERROR_CFLAGS=""
19438 if test "${ERROR_ON_WARNING}" = yes ; then
19439 WERROR_CFLAGS="-Werror"
19440 fi
19441
19442 # The entries after -Wno-pointer-sign are disabled warnings which may
19443 # be enabled in the future, which can not currently be used to build
19444 # GDB.
19445 # NOTE: If you change this list, remember to update
19446 # gdb/doc/gdbint.texinfo.
19447 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
19448 -Wformat-nonliteral -Wno-pointer-sign \
19449 -Wno-unused -Wno-switch -Wno-char-subscripts"
19450
19451 # Enable -Wno-format by default when using gcc on mingw since many
19452 # GCC versions complain about %I64.
19453 case "${host}" in
19454 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
19455 esac
19456
19457 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19458 if test "${enable_build_warnings+set}" = set; then
19459 enableval="$enable_build_warnings"
19460 case "${enableval}" in
19461 yes) ;;
19462 no) build_warnings="-w";;
19463 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19464 build_warnings="${build_warnings} ${t}";;
19465 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19466 build_warnings="${t} ${build_warnings}";;
19467 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19468 esac
19469 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19470 echo "Setting compiler warning flags = $build_warnings" 6>&1
19471 fi
19472 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19473 if test "${enable_gdb_build_warnings+set}" = set; then
19474 enableval="$enable_gdb_build_warnings"
19475 case "${enableval}" in
19476 yes) ;;
19477 no) build_warnings="-w";;
19478 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19479 build_warnings="${build_warnings} ${t}";;
19480 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19481 build_warnings="${t} ${build_warnings}";;
19482 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19483 esac
19484 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19485 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19486 fi
19487 fi; WARN_CFLAGS=""
19488 if test "x${build_warnings}" != x -a "x$GCC" = xyes
19489 then
19490 echo "$as_me:$LINENO: checking compiler warning flags" >&5
19491 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
19492 # Separate out the -Werror flag as some files just cannot be
19493 # compiled with it enabled.
19494 for w in ${build_warnings}; do
19495 case $w in
19496 -Werr*) WERROR_CFLAGS=-Werror ;;
19497 *) # Check that GCC accepts it
19498 saved_CFLAGS="$CFLAGS"
19499 CFLAGS="$CFLAGS $w"
19500 cat >conftest.$ac_ext <<_ACEOF
19501 /* confdefs.h. */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19506
19507 int
19508 main ()
19509 {
19510
19511 ;
19512 return 0;
19513 }
19514 _ACEOF
19515 rm -f conftest.$ac_objext
19516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19517 (eval $ac_compile) 2>conftest.er1
19518 ac_status=$?
19519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } &&
19524 { ac_try='test -z "$ac_c_werror_flag"
19525 || test ! -s conftest.err'
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; } &&
19531 { ac_try='test -s conftest.$ac_objext'
19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; }; then
19537 WARN_CFLAGS="${WARN_CFLAGS} $w"
19538 else
19539 echo "$as_me: failed program was:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19541
19542 fi
19543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19544 CFLAGS="$saved_CFLAGS"
19545 esac
19546 done
19547 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
19548 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
19549 fi
19550
19551
19552
19553 # In the Cygwin environment, we need some additional flags.
19554 echo "$as_me:$LINENO: checking for cygwin" >&5
19555 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
19556 if test "${gdb_cv_os_cygwin+set}" = set; then
19557 echo $ECHO_N "(cached) $ECHO_C" >&6
19558 else
19559 cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h. */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565
19566 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
19567 lose
19568 #endif
19569 _ACEOF
19570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19571 $EGREP "lose" >/dev/null 2>&1; then
19572 gdb_cv_os_cygwin=yes
19573 else
19574 gdb_cv_os_cygwin=no
19575 fi
19576 rm -f conftest*
19577
19578 fi
19579 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
19580 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
19581
19582
19583 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
19584 case ${host} in
19585 *go32* ) SER_HARDWIRE=ser-go32.o ;;
19586 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
19587 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
19588 esac
19589
19590
19591 # libreadline needs libuser32.a in a cygwin environment
19592 WIN32LIBS=
19593 if test x$gdb_cv_os_cygwin = xyes; then
19594 WIN32LIBS="-luser32"
19595 case "${target}" in
19596 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
19597 ;;
19598 esac
19599 fi
19600
19601 # The ser-tcp.c module requires sockets.
19602 case ${host} in
19603 *mingw32*)
19604
19605 cat >>confdefs.h <<\_ACEOF
19606 #define USE_WIN32API 1
19607 _ACEOF
19608
19609 WIN32LIBS="$WIN32LIBS -lws2_32"
19610 ;;
19611 esac
19612
19613
19614 # Add ELF support to GDB, but only if BFD includes ELF support.
19615 OLD_CFLAGS=$CFLAGS
19616 OLD_LDFLAGS=$LDFLAGS
19617 OLD_LIBS=$LIBS
19618 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
19619 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
19620 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
19621 LIBS="-lbfd -liberty $intl $LIBS"
19622 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
19623 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
19624 if test "${gdb_cv_var_elf+set}" = set; then
19625 echo $ECHO_N "(cached) $ECHO_C" >&6
19626 else
19627 cat >conftest.$ac_ext <<_ACEOF
19628 /* confdefs.h. */
19629 _ACEOF
19630 cat confdefs.h >>conftest.$ac_ext
19631 cat >>conftest.$ac_ext <<_ACEOF
19632 /* end confdefs.h. */
19633 #include <stdlib.h>
19634 #include "bfd.h"
19635 #include "elf-bfd.h"
19636
19637 int
19638 main ()
19639 {
19640 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
19641 ;
19642 return 0;
19643 }
19644 _ACEOF
19645 rm -f conftest.$ac_objext conftest$ac_exeext
19646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19647 (eval $ac_link) 2>conftest.er1
19648 ac_status=$?
19649 grep -v '^ *+' conftest.er1 >conftest.err
19650 rm -f conftest.er1
19651 cat conftest.err >&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } &&
19654 { ac_try='test -z "$ac_c_werror_flag"
19655 || test ! -s conftest.err'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; } &&
19661 { ac_try='test -s conftest$ac_exeext'
19662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19663 (eval $ac_try) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); }; }; then
19667 gdb_cv_var_elf=yes
19668 else
19669 echo "$as_me: failed program was:" >&5
19670 sed 's/^/| /' conftest.$ac_ext >&5
19671
19672 gdb_cv_var_elf=no
19673 fi
19674 rm -f conftest.err conftest.$ac_objext \
19675 conftest$ac_exeext conftest.$ac_ext
19676 fi
19677 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
19678 echo "${ECHO_T}$gdb_cv_var_elf" >&6
19679 if test $gdb_cv_var_elf = yes; then
19680 CONFIG_OBS="$CONFIG_OBS elfread.o"
19681
19682 cat >>confdefs.h <<\_ACEOF
19683 #define HAVE_ELF 1
19684 _ACEOF
19685
19686 fi
19687 CFLAGS=$OLD_CFLAGS
19688 LDFLAGS=$OLD_LDFLAGS
19689 LIBS=$OLD_LIBS
19690
19691 # Add any host-specific objects to GDB.
19692 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
19693
19694 LIBGUI="../libgui/src/libgui.a"
19695 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
19696
19697
19698
19699 WIN32LDAPP=
19700
19701
19702
19703 case "${host}" in
19704 *-*-cygwin* | *-*-mingw* )
19705 configdir="win"
19706 ;;
19707 *)
19708 configdir="unix"
19709 ;;
19710 esac
19711
19712 GDBTKLIBS=
19713 if test "${enable_gdbtk}" = "yes"; then
19714
19715 # Gdbtk must have an absolute path to srcdir in order to run
19716 # properly when not installed.
19717 here=`pwd`
19718 cd ${srcdir}
19719 GDBTK_SRC_DIR=`pwd`
19720 cd $here
19721
19722
19723 #
19724 # Ok, lets find the tcl configuration
19725 # First, look for one uninstalled.
19726 # the alternative search directory is invoked by --with-tcl
19727 #
19728
19729 if test x"${no_tcl}" = x ; then
19730 # we reset no_tcl in case something fails here
19731 no_tcl=true
19732
19733 # Check whether --with-tcl or --without-tcl was given.
19734 if test "${with_tcl+set}" = set; then
19735 withval="$with_tcl"
19736 with_tclconfig=${withval}
19737 fi;
19738 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
19739 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
19740 if test "${ac_cv_c_tclconfig+set}" = set; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19742 else
19743
19744
19745 # First check to see if --with-tcl was specified.
19746 case "${host}" in
19747 *-*-cygwin*) platDir="win" ;;
19748 *) platDir="unix" ;;
19749 esac
19750 if test x"${with_tclconfig}" != x ; then
19751 if test -f "${with_tclconfig}/tclConfig.sh" ; then
19752 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
19753 else
19754 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
19755 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
19756 { (exit 1); exit 1; }; }
19757 fi
19758 fi
19759
19760 # then check for a private Tcl installation
19761 if test x"${ac_cv_c_tclconfig}" = x ; then
19762 for i in \
19763 ../tcl \
19764 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19765 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
19766 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
19767 ../../tcl \
19768 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19769 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
19770 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
19771 ../../../tcl \
19772 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19773 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
19774 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
19775 if test -f "$i/$platDir/tclConfig.sh" ; then
19776 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
19777 break
19778 fi
19779 done
19780 fi
19781
19782 # on Darwin, check in Framework installation locations
19783 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
19784 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
19785 `ls -d /Library/Frameworks 2>/dev/null` \
19786 `ls -d /Network/Library/Frameworks 2>/dev/null` \
19787 `ls -d /System/Library/Frameworks 2>/dev/null` \
19788 ; do
19789 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
19790 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
19791 break
19792 fi
19793 done
19794 fi
19795
19796 # check in a few common install locations
19797 if test x"${ac_cv_c_tclconfig}" = x ; then
19798 for i in `ls -d ${libdir} 2>/dev/null` \
19799 `ls -d ${exec_prefix}/lib 2>/dev/null` \
19800 `ls -d ${prefix}/lib 2>/dev/null` \
19801 `ls -d /usr/local/lib 2>/dev/null` \
19802 `ls -d /usr/contrib/lib 2>/dev/null` \
19803 `ls -d /usr/lib 2>/dev/null` \
19804 ; do
19805 if test -f "$i/tclConfig.sh" ; then
19806 ac_cv_c_tclconfig=`(cd $i; pwd)`
19807 break
19808 fi
19809 done
19810 fi
19811
19812 # check in a few other private locations
19813 if test x"${ac_cv_c_tclconfig}" = x ; then
19814 for i in \
19815 ${srcdir}/../tcl \
19816 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
19817 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
19818 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
19819 if test -f "$i/$platDir/tclConfig.sh" ; then
19820 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
19821 break
19822 fi
19823 done
19824 fi
19825
19826 fi
19827
19828
19829 if test x"${ac_cv_c_tclconfig}" = x ; then
19830 TCL_BIN_DIR="# no Tcl configs found"
19831 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
19832 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
19833 exit 0
19834 else
19835 no_tcl=
19836 TCL_BIN_DIR=${ac_cv_c_tclconfig}
19837 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
19838 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
19839 fi
19840 fi
19841
19842 if test -z "${no_tcl}"; then
19843
19844 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
19845 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
19846
19847 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
19848 echo "$as_me:$LINENO: result: loading" >&5
19849 echo "${ECHO_T}loading" >&6
19850 . ${TCL_BIN_DIR}/tclConfig.sh
19851 else
19852 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
19853 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
19854 fi
19855
19856 # eval is required to do the TCL_DBGX substitution
19857 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
19858 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
19859
19860 # If the TCL_BIN_DIR is the build directory (not the install directory),
19861 # then set the common variable name to the value of the build variables.
19862 # For example, the variable TCL_LIB_SPEC will be set to the value
19863 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
19864 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
19865 # installed and uninstalled version of Tcl.
19866 if test -f ${TCL_BIN_DIR}/Makefile ; then
19867 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
19868 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
19869 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
19870 elif test "`uname -s`" = "Darwin"; then
19871 # If Tcl was built as a framework, attempt to use the libraries
19872 # from the framework at the given location so that linking works
19873 # against Tcl.framework installed in an arbitary location.
19874 case ${TCL_DEFS} in
19875 *TCL_FRAMEWORK*)
19876 if test -f ${TCL_BIN_DIR}/${TCL_LIB_FILE}; then
19877 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
19878 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
19879 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
19880 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
19881 break
19882 fi
19883 done
19884 fi
19885 if test -f ${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}; then
19886 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
19887 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
19888 fi
19889 ;;
19890 esac
19891 fi
19892
19893 # eval is required to do the TCL_DBGX substitution
19894 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
19895 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
19896 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
19897 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913 # Check for in-tree tcl
19914 here=`pwd`
19915 cd ${srcdir}/..
19916 topdir=`pwd`
19917 cd ${here}
19918
19919 intree="no"
19920 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
19921 intree="yes"
19922 fi
19923
19924 # Find Tcl private headers
19925 if test x"${intree}" = xno; then
19926
19927 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
19928 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
19929 private_dir=""
19930 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
19931 if test -f ${dir}/tclInt.h ; then
19932 private_dir=${dir}
19933 fi
19934
19935 if test x"${private_dir}" = x; then
19936 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
19937 echo "$as_me: error: could not find private Tcl headers" >&2;}
19938 { (exit 1); exit 1; }; }
19939 else
19940 TCL_PRIVATE_INCLUDE="-I${private_dir}"
19941 echo "$as_me:$LINENO: result: ${private_dir}" >&5
19942 echo "${ECHO_T}${private_dir}" >&6
19943 fi
19944
19945 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
19946 TCL_LIBRARY="${TCL_LIB_SPEC}"
19947 TCL_DEPS=""
19948 else
19949 # If building tcl in the same src tree, private headers
19950 # are not needed, but we need to be sure to use the right
19951 # headers library
19952 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
19953 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
19954 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
19955 fi
19956
19957
19958
19959
19960 # If $no_tk is nonempty, then we can't do Tk, and there is no
19961 # point to doing Tcl.
19962 if test -z "${no_tk}"; then
19963
19964 #
19965 # Ok, lets find the tk configuration
19966 # First, look for one uninstalled.
19967 # the alternative search directory is invoked by --with-tk
19968 #
19969
19970 if test x"${no_tk}" = x ; then
19971 # we reset no_tk in case something fails here
19972 no_tk=true
19973
19974 # Check whether --with-tk or --without-tk was given.
19975 if test "${with_tk+set}" = set; then
19976 withval="$with_tk"
19977 with_tkconfig=${withval}
19978 fi;
19979 echo "$as_me:$LINENO: checking for Tk configuration" >&5
19980 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
19981 if test "${ac_cv_c_tkconfig+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19983 else
19984
19985
19986 # First check to see if --with-tkconfig was specified.
19987 if test x"${with_tkconfig}" != x ; then
19988 if test -f "${with_tkconfig}/tkConfig.sh" ; then
19989 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
19990 else
19991 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
19992 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
19993 { (exit 1); exit 1; }; }
19994 fi
19995 fi
19996
19997 # then check for a private Tk library
19998 case "${host}" in
19999 *-*-cygwin*) platDir="win" ;;
20000 *) platDir="unix" ;;
20001 esac
20002 if test x"${ac_cv_c_tkconfig}" = x ; then
20003 for i in \
20004 ../tk \
20005 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20006 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
20007 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
20008 ../../tk \
20009 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20010 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
20011 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
20012 ../../../tk \
20013 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20014 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
20015 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
20016 if test -f "$i/$platDir/tkConfig.sh" ; then
20017 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20018 break
20019 fi
20020 done
20021 fi
20022
20023 # on Darwin, check in Framework installation locations
20024 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
20025 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20026 `ls -d /Library/Frameworks 2>/dev/null` \
20027 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20028 `ls -d /System/Library/Frameworks 2>/dev/null` \
20029 ; do
20030 if test -f "$i/Tk.framework/tkConfig.sh" ; then
20031 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
20032 break
20033 fi
20034 done
20035 fi
20036
20037 # check in a few common install locations
20038 if test x"${ac_cv_c_tkconfig}" = x ; then
20039 for i in `ls -d ${libdir} 2>/dev/null` \
20040 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20041 `ls -d ${prefix}/lib 2>/dev/null` \
20042 `ls -d /usr/local/lib 2>/dev/null` \
20043 `ls -d /usr/contrib/lib 2>/dev/null` \
20044 `ls -d /usr/lib 2>/dev/null` \
20045 ; do
20046 if test -f "$i/tkConfig.sh" ; then
20047 ac_cv_c_tkconfig=`(cd $i; pwd)`
20048 break
20049 fi
20050 done
20051 fi
20052 # check in a few other private locations
20053 if test x"${ac_cv_c_tkconfig}" = x ; then
20054 for i in \
20055 ${srcdir}/../tk \
20056 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20057 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
20058 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
20059 if test -f "$i/$platDir/tkConfig.sh" ; then
20060 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20061 break
20062 fi
20063 done
20064 fi
20065
20066 fi
20067
20068
20069 if test x"${ac_cv_c_tkconfig}" = x ; then
20070 TK_BIN_DIR="# no Tk configs found"
20071 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20072 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20073 exit 0
20074 else
20075 no_tk=
20076 TK_BIN_DIR=${ac_cv_c_tkconfig}
20077 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
20078 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
20079 fi
20080 fi
20081
20082
20083 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
20084 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
20085
20086 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
20087 echo "$as_me:$LINENO: result: loading" >&5
20088 echo "${ECHO_T}loading" >&6
20089 . ${TK_BIN_DIR}/tkConfig.sh
20090 else
20091 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
20092 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
20093 fi
20094
20095 # eval is required to do the TK_DBGX substitution
20096 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
20097 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
20098
20099 # If the TK_BIN_DIR is the build directory (not the install directory),
20100 # then set the common variable name to the value of the build variables.
20101 # For example, the variable TK_LIB_SPEC will be set to the value
20102 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
20103 # instead of TK_BUILD_LIB_SPEC since it will work with both an
20104 # installed and uninstalled version of Tcl.
20105 if test -f ${TK_BIN_DIR}/Makefile ; then
20106 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
20107 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
20108 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
20109 elif test "`uname -s`" = "Darwin"; then
20110 # If Tk was built as a framework, attempt to use the libraries
20111 # from the framework at the given location so that linking works
20112 # against Tk.framework installed in an arbitary location.
20113 case ${TK_DEFS} in
20114 *TK_FRAMEWORK*)
20115 if test -f ${TK_BIN_DIR}/${TK_LIB_FILE}; then
20116 for i in "`cd ${TK_BIN_DIR}; pwd`" \
20117 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
20118 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
20119 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
20120 break
20121 fi
20122 done
20123 fi
20124 if test -f ${TK_BIN_DIR}/${TK_STUB_LIB_FILE}; then
20125 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
20126 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
20127 fi
20128 ;;
20129 esac
20130 fi
20131
20132 # eval is required to do the TK_DBGX substitution
20133 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
20134 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
20135 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
20136 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
20137
20138
20139
20140
20141
20142
20143
20144
20145
20146
20147
20148
20149
20150
20151 # Check for in-tree Tk
20152 intree="no"
20153 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
20154 intree="yes"
20155 fi
20156
20157 # Find Tk private headers
20158 if test x"${intree}" = xno; then
20159
20160 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20161 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20162 private_dir=""
20163 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
20164 if test -f ${dir}/tkInt.h; then
20165 private_dir=${dir}
20166 fi
20167
20168 if test x"${private_dir}" = x; then
20169 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
20170 echo "$as_me: error: could not find Tk private headers" >&2;}
20171 { (exit 1); exit 1; }; }
20172 else
20173 TK_PRIVATE_INCLUDE="-I${private_dir}"
20174 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20175 echo "${ECHO_T}${private_dir}" >&6
20176 fi
20177
20178 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
20179 TK_LIBRARY=${TK_LIB_SPEC}
20180 TK_DEPS=""
20181 else
20182 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
20183 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
20184 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
20185 fi
20186
20187
20188
20189
20190
20191 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20192
20193 # Include some libraries that Tcl and Tk want.
20194 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20195 # Yes, the ordering seems wrong here. But it isn't.
20196 # TK_LIBS is the list of libraries that need to be linked
20197 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20198 # were in LIBS then any link tests after this point would
20199 # try to include things like `$(LIBGUI)', which wouldn't work.
20200 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20201
20202 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20203 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20204 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20205 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20206 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20207 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20208 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20209
20210 if test x$gdb_cv_os_cygwin = xyes; then
20211 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20212 WIN32LDAPP="-Wl,--subsystem,console"
20213 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20214 fi
20215 fi
20216 fi
20217
20218
20219
20220 subdirs="$subdirs gdbtk"
20221
20222 fi
20223
20224
20225
20226
20227
20228
20229
20230
20231 echo "$as_me:$LINENO: checking for X" >&5
20232 echo $ECHO_N "checking for X... $ECHO_C" >&6
20233
20234
20235 # Check whether --with-x or --without-x was given.
20236 if test "${with_x+set}" = set; then
20237 withval="$with_x"
20238
20239 fi;
20240 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20241 if test "x$with_x" = xno; then
20242 # The user explicitly disabled X.
20243 have_x=disabled
20244 else
20245 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20246 # Both variables are already set.
20247 have_x=yes
20248 else
20249 if test "${ac_cv_have_x+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20251 else
20252 # One or both of the vars are not set, and there is no cached value.
20253 ac_x_includes=no ac_x_libraries=no
20254 rm -fr conftest.dir
20255 if mkdir conftest.dir; then
20256 cd conftest.dir
20257 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20258 cat >Imakefile <<'_ACEOF'
20259 acfindx:
20260 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20261 _ACEOF
20262 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20263 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20264 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20265 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20266 for ac_extension in a so sl; do
20267 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20268 test -f $ac_im_libdir/libX11.$ac_extension; then
20269 ac_im_usrlibdir=$ac_im_libdir; break
20270 fi
20271 done
20272 # Screen out bogus values from the imake configuration. They are
20273 # bogus both because they are the default anyway, and because
20274 # using them would break gcc on systems where it needs fixed includes.
20275 case $ac_im_incroot in
20276 /usr/include) ;;
20277 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20278 esac
20279 case $ac_im_usrlibdir in
20280 /usr/lib | /lib) ;;
20281 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20282 esac
20283 fi
20284 cd ..
20285 rm -fr conftest.dir
20286 fi
20287
20288 # Standard set of common directories for X headers.
20289 # Check X11 before X11Rn because it is often a symlink to the current release.
20290 ac_x_header_dirs='
20291 /usr/X11/include
20292 /usr/X11R6/include
20293 /usr/X11R5/include
20294 /usr/X11R4/include
20295
20296 /usr/include/X11
20297 /usr/include/X11R6
20298 /usr/include/X11R5
20299 /usr/include/X11R4
20300
20301 /usr/local/X11/include
20302 /usr/local/X11R6/include
20303 /usr/local/X11R5/include
20304 /usr/local/X11R4/include
20305
20306 /usr/local/include/X11
20307 /usr/local/include/X11R6
20308 /usr/local/include/X11R5
20309 /usr/local/include/X11R4
20310
20311 /usr/X386/include
20312 /usr/x386/include
20313 /usr/XFree86/include/X11
20314
20315 /usr/include
20316 /usr/local/include
20317 /usr/unsupported/include
20318 /usr/athena/include
20319 /usr/local/x11r5/include
20320 /usr/lpp/Xamples/include
20321
20322 /usr/openwin/include
20323 /usr/openwin/share/include'
20324
20325 if test "$ac_x_includes" = no; then
20326 # Guess where to find include files, by looking for Intrinsic.h.
20327 # First, try using that file with no special directory specified.
20328 cat >conftest.$ac_ext <<_ACEOF
20329 /* confdefs.h. */
20330 _ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20334 #include <X11/Intrinsic.h>
20335 _ACEOF
20336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20338 ac_status=$?
20339 grep -v '^ *+' conftest.er1 >conftest.err
20340 rm -f conftest.er1
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } >/dev/null; then
20344 if test -s conftest.err; then
20345 ac_cpp_err=$ac_c_preproc_warn_flag
20346 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20347 else
20348 ac_cpp_err=
20349 fi
20350 else
20351 ac_cpp_err=yes
20352 fi
20353 if test -z "$ac_cpp_err"; then
20354 # We can compile using X headers with no special include directory.
20355 ac_x_includes=
20356 else
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20359
20360 for ac_dir in $ac_x_header_dirs; do
20361 if test -r "$ac_dir/X11/Intrinsic.h"; then
20362 ac_x_includes=$ac_dir
20363 break
20364 fi
20365 done
20366 fi
20367 rm -f conftest.err conftest.$ac_ext
20368 fi # $ac_x_includes = no
20369
20370 if test "$ac_x_libraries" = no; then
20371 # Check for the libraries.
20372 # See if we find them without any special options.
20373 # Don't add to $LIBS permanently.
20374 ac_save_LIBS=$LIBS
20375 LIBS="-lXt $LIBS"
20376 cat >conftest.$ac_ext <<_ACEOF
20377 /* confdefs.h. */
20378 _ACEOF
20379 cat confdefs.h >>conftest.$ac_ext
20380 cat >>conftest.$ac_ext <<_ACEOF
20381 /* end confdefs.h. */
20382 #include <X11/Intrinsic.h>
20383 int
20384 main ()
20385 {
20386 XtMalloc (0)
20387 ;
20388 return 0;
20389 }
20390 _ACEOF
20391 rm -f conftest.$ac_objext conftest$ac_exeext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20393 (eval $ac_link) 2>conftest.er1
20394 ac_status=$?
20395 grep -v '^ *+' conftest.er1 >conftest.err
20396 rm -f conftest.er1
20397 cat conftest.err >&5
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } &&
20400 { ac_try='test -z "$ac_c_werror_flag"
20401 || test ! -s conftest.err'
20402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403 (eval $ac_try) 2>&5
20404 ac_status=$?
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; } &&
20407 { ac_try='test -s conftest$ac_exeext'
20408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409 (eval $ac_try) 2>&5
20410 ac_status=$?
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); }; }; then
20413 LIBS=$ac_save_LIBS
20414 # We can link X programs with no special library path.
20415 ac_x_libraries=
20416 else
20417 echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20419
20420 LIBS=$ac_save_LIBS
20421 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20422 do
20423 # Don't even attempt the hair of trying to link an X program!
20424 for ac_extension in a so sl; do
20425 if test -r $ac_dir/libXt.$ac_extension; then
20426 ac_x_libraries=$ac_dir
20427 break 2
20428 fi
20429 done
20430 done
20431 fi
20432 rm -f conftest.err conftest.$ac_objext \
20433 conftest$ac_exeext conftest.$ac_ext
20434 fi # $ac_x_libraries = no
20435
20436 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20437 # Didn't find X anywhere. Cache the known absence of X.
20438 ac_cv_have_x="have_x=no"
20439 else
20440 # Record where we found X for the cache.
20441 ac_cv_have_x="have_x=yes \
20442 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20443 fi
20444 fi
20445
20446 fi
20447 eval "$ac_cv_have_x"
20448 fi # $with_x != no
20449
20450 if test "$have_x" != yes; then
20451 echo "$as_me:$LINENO: result: $have_x" >&5
20452 echo "${ECHO_T}$have_x" >&6
20453 no_x=yes
20454 else
20455 # If each of the values was on the command line, it overrides each guess.
20456 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20457 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20458 # Update the cache value to reflect the command line values.
20459 ac_cv_have_x="have_x=yes \
20460 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20461 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20462 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20463 fi
20464
20465
20466 # Unlike the sim directory, whether a simulator is linked is controlled by
20467 # presence of a gdb_sim definition in the target configure.tgt entry.
20468 # This code just checks for a few cases where we'd like to ignore those
20469 # definitions, even when they're present in the '.mt' file. These cases
20470 # are when --disable-sim is specified, or if the simulator directory is
20471 # not part of the source tree.
20472 #
20473 # Check whether --enable-sim or --disable-sim was given.
20474 if test "${enable_sim+set}" = set; then
20475 enableval="$enable_sim"
20476 echo "enable_sim = $enable_sim";
20477 echo "enableval = ${enableval}";
20478 case "${enableval}" in
20479 yes) ignore_sim=false ;;
20480 no) ignore_sim=true ;;
20481 *) ignore_sim=false ;;
20482 esac
20483 else
20484 ignore_sim=false
20485 fi;
20486
20487 if test ! -d "${srcdir}/../sim"; then
20488 ignore_sim=true
20489 fi
20490
20491 SIM=
20492 SIM_OBS=
20493 if test "${ignore_sim}" = "false"; then
20494 if test x"${gdb_sim}" != x ; then
20495 SIM="${gdb_sim}"
20496 SIM_OBS="remote-sim.o"
20497
20498 cat >>confdefs.h <<\_ACEOF
20499 #define WITH_SIM 1
20500 _ACEOF
20501
20502 fi
20503 fi
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518 # List of host floatformats.
20519
20520 cat >>confdefs.h <<_ACEOF
20521 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
20522 _ACEOF
20523
20524
20525 cat >>confdefs.h <<_ACEOF
20526 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
20527 _ACEOF
20528
20529
20530 cat >>confdefs.h <<_ACEOF
20531 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
20532 _ACEOF
20533
20534
20535 # target_subdir is used by the testsuite to find the target libraries.
20536 target_subdir=
20537 if test "${host}" != "${target}"; then
20538 target_subdir="${target_alias}/"
20539 fi
20540
20541
20542 frags=
20543 if test "${gdb_native}" = "yes"; then
20544 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
20545 if test ! -f ${host_makefile_frag}; then
20546 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
20547 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
20548 { (exit 1); exit 1; }; }
20549 fi
20550 frags="$frags $host_makefile_frag"
20551 else
20552 host_makefile_frag=/dev/null
20553 fi
20554
20555
20556
20557
20558 if test "${gdb_native}" = "yes"; then
20559 # We pick this up from the host configuration file (.mh) because we
20560 # do not have a native configuration Makefile fragment.
20561 nativefile=`sed -n '
20562 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
20563 ' ${host_makefile_frag}`
20564 fi
20565
20566
20567 if test x"${gdb_osabi}" != x ; then
20568
20569 cat >>confdefs.h <<_ACEOF
20570 #define GDB_OSABI_DEFAULT $gdb_osabi
20571 _ACEOF
20572
20573 fi
20574
20575 # Enable multi-ice-gdb-server.
20576 # Check whether --enable-multi-ice or --disable-multi-ice was given.
20577 if test "${enable_multi_ice+set}" = set; then
20578 enableval="$enable_multi_ice"
20579 case $enableval in
20580 yes | no)
20581 ;;
20582 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
20583 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
20584 { (exit 1); exit 1; }; } ;;
20585 esac
20586 fi;
20587 if test "x$enable_multi_ice" = xyes; then
20588
20589
20590 subdirs="$subdirs multi-ice"
20591
20592 fi
20593
20594 # We only build gdbserver automatically in a native configuration.
20595 if test "$gdb_native" = "yes"; then
20596 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
20597 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
20598 if test "x$build_gdbserver" = xyes; then
20599 echo "$as_me:$LINENO: result: yes" >&5
20600 echo "${ECHO_T}yes" >&6
20601
20602
20603 subdirs="$subdirs gdbserver"
20604
20605 else
20606 echo "$as_me:$LINENO: result: no" >&5
20607 echo "${ECHO_T}no" >&6
20608 fi
20609 fi
20610
20611 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
20612 # to an empty version.
20613
20614 files=
20615 links=
20616
20617 rm -f nm.h
20618 nm_h=""
20619 if test "${nativefile}" != ""; then
20620 nm_h=nm.h
20621 case "${nativefile}" in
20622 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
20623 * ) GDB_NM_FILE="${nativefile}"
20624 esac
20625 files="${files} ${GDB_NM_FILE}"
20626 links="${links} nm.h"
20627
20628 cat >>confdefs.h <<_ACEOF
20629 #define GDB_NM_FILE "${GDB_NM_FILE}"
20630 _ACEOF
20631
20632 fi
20633
20634
20635 ac_sources="$files"
20636 ac_dests="$links"
20637 while test -n "$ac_sources"; do
20638 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
20639 set $ac_sources; ac_source=$1; shift; ac_sources=$*
20640 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
20641 done
20642 ac_config_links="$ac_config_links $ac_config_links_1"
20643
20644
20645
20646
20647
20648
20649 cat >>confdefs.h <<\_ACEOF
20650 #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
20651 _ACEOF
20652
20653
20654
20655
20656
20657 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
20658 if test "${with_libiconv_prefix+set}" = set; then
20659 withval="$with_libiconv_prefix"
20660
20661 for dir in `echo "$withval" | tr : ' '`; do
20662 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
20663 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
20664 done
20665
20666 fi;
20667
20668 echo "$as_me:$LINENO: checking for iconv" >&5
20669 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
20670 if test "${am_cv_func_iconv+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20672 else
20673
20674 am_cv_func_iconv="no, consider installing GNU libiconv"
20675 am_cv_lib_iconv=no
20676 cat >conftest.$ac_ext <<_ACEOF
20677 /* confdefs.h. */
20678 _ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h. */
20682 #include <stdlib.h>
20683 #include <iconv.h>
20684 int
20685 main ()
20686 {
20687 iconv_t cd = iconv_open("","");
20688 iconv(cd,NULL,NULL,NULL,NULL);
20689 iconv_close(cd);
20690 ;
20691 return 0;
20692 }
20693 _ACEOF
20694 rm -f conftest.$ac_objext conftest$ac_exeext
20695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20696 (eval $ac_link) 2>conftest.er1
20697 ac_status=$?
20698 grep -v '^ *+' conftest.er1 >conftest.err
20699 rm -f conftest.er1
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } &&
20703 { ac_try='test -z "$ac_c_werror_flag"
20704 || test ! -s conftest.err'
20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706 (eval $ac_try) 2>&5
20707 ac_status=$?
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; } &&
20710 { ac_try='test -s conftest$ac_exeext'
20711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712 (eval $ac_try) 2>&5
20713 ac_status=$?
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; }; then
20716 am_cv_func_iconv=yes
20717 else
20718 echo "$as_me: failed program was:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20720
20721 fi
20722 rm -f conftest.err conftest.$ac_objext \
20723 conftest$ac_exeext conftest.$ac_ext
20724 if test "$am_cv_func_iconv" != yes; then
20725 am_save_LIBS="$LIBS"
20726 LIBS="$LIBS -liconv"
20727 cat >conftest.$ac_ext <<_ACEOF
20728 /* confdefs.h. */
20729 _ACEOF
20730 cat confdefs.h >>conftest.$ac_ext
20731 cat >>conftest.$ac_ext <<_ACEOF
20732 /* end confdefs.h. */
20733 #include <stdlib.h>
20734 #include <iconv.h>
20735 int
20736 main ()
20737 {
20738 iconv_t cd = iconv_open("","");
20739 iconv(cd,NULL,NULL,NULL,NULL);
20740 iconv_close(cd);
20741 ;
20742 return 0;
20743 }
20744 _ACEOF
20745 rm -f conftest.$ac_objext conftest$ac_exeext
20746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20747 (eval $ac_link) 2>conftest.er1
20748 ac_status=$?
20749 grep -v '^ *+' conftest.er1 >conftest.err
20750 rm -f conftest.er1
20751 cat conftest.err >&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); } &&
20754 { ac_try='test -z "$ac_c_werror_flag"
20755 || test ! -s conftest.err'
20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757 (eval $ac_try) 2>&5
20758 ac_status=$?
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; } &&
20761 { ac_try='test -s conftest$ac_exeext'
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; }; then
20767 am_cv_lib_iconv=yes
20768 am_cv_func_iconv=yes
20769 else
20770 echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20772
20773 fi
20774 rm -f conftest.err conftest.$ac_objext \
20775 conftest$ac_exeext conftest.$ac_ext
20776 LIBS="$am_save_LIBS"
20777 fi
20778
20779 fi
20780 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
20781 echo "${ECHO_T}$am_cv_func_iconv" >&6
20782 if test "$am_cv_func_iconv" = yes; then
20783
20784 cat >>confdefs.h <<\_ACEOF
20785 #define HAVE_ICONV 1
20786 _ACEOF
20787
20788 echo "$as_me:$LINENO: checking for iconv declaration" >&5
20789 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
20790 if test "${am_cv_proto_iconv+set}" = set; then
20791 echo $ECHO_N "(cached) $ECHO_C" >&6
20792 else
20793
20794 cat >conftest.$ac_ext <<_ACEOF
20795 /* confdefs.h. */
20796 _ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h. */
20800
20801 #include <stdlib.h>
20802 #include <iconv.h>
20803 extern
20804 #ifdef __cplusplus
20805 "C"
20806 #endif
20807 #if defined(__STDC__) || defined(__cplusplus)
20808 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20809 #else
20810 size_t iconv();
20811 #endif
20812
20813 int
20814 main ()
20815 {
20816
20817 ;
20818 return 0;
20819 }
20820 _ACEOF
20821 rm -f conftest.$ac_objext
20822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20823 (eval $ac_compile) 2>conftest.er1
20824 ac_status=$?
20825 grep -v '^ *+' conftest.er1 >conftest.err
20826 rm -f conftest.er1
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); } &&
20830 { ac_try='test -z "$ac_c_werror_flag"
20831 || test ! -s conftest.err'
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20834 ac_status=$?
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; } &&
20837 { ac_try='test -s conftest.$ac_objext'
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20840 ac_status=$?
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
20843 am_cv_proto_iconv_arg1=""
20844 else
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20847
20848 am_cv_proto_iconv_arg1="const"
20849 fi
20850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20851 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);"
20852 fi
20853
20854 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20855 echo "$as_me:$LINENO: result: ${ac_t:-
20856 }$am_cv_proto_iconv" >&5
20857 echo "${ECHO_T}${ac_t:-
20858 }$am_cv_proto_iconv" >&6
20859
20860 cat >>confdefs.h <<_ACEOF
20861 #define ICONV_CONST $am_cv_proto_iconv_arg1
20862 _ACEOF
20863
20864 fi
20865 LIBICONV=
20866 if test "$am_cv_lib_iconv" = yes; then
20867 LIBICONV="-liconv"
20868 fi
20869
20870
20871
20872 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
20873 ac_config_commands="$ac_config_commands default"
20874 cat >confcache <<\_ACEOF
20875 # This file is a shell script that caches the results of configure
20876 # tests run on this system so they can be shared between configure
20877 # scripts and configure runs, see configure's option --config-cache.
20878 # It is not useful on other systems. If it contains results you don't
20879 # want to keep, you may remove or edit it.
20880 #
20881 # config.status only pays attention to the cache file if you give it
20882 # the --recheck option to rerun configure.
20883 #
20884 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20885 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20886 # following values.
20887
20888 _ACEOF
20889
20890 # The following way of writing the cache mishandles newlines in values,
20891 # but we know of no workaround that is simple, portable, and efficient.
20892 # So, don't put newlines in cache variables' values.
20893 # Ultrix sh set writes to stderr and can't be redirected directly,
20894 # and sets the high bit in the cache file unless we assign to the vars.
20895 {
20896 (set) 2>&1 |
20897 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20898 *ac_space=\ *)
20899 # `set' does not quote correctly, so add quotes (double-quote
20900 # substitution turns \\\\ into \\, and sed turns \\ into \).
20901 sed -n \
20902 "s/'/'\\\\''/g;
20903 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20904 ;;
20905 *)
20906 # `set' quotes correctly as required by POSIX, so do not add quotes.
20907 sed -n \
20908 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20909 ;;
20910 esac;
20911 } |
20912 sed '
20913 t clear
20914 : clear
20915 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20916 t end
20917 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20918 : end' >>confcache
20919 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20920 if test -w $cache_file; then
20921 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20922 cat confcache >$cache_file
20923 else
20924 echo "not updating unwritable cache $cache_file"
20925 fi
20926 fi
20927 rm -f confcache
20928
20929 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20930 # Let make expand exec_prefix.
20931 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20932
20933 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20934 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20935 # trailing colons and then remove the whole line if VPATH becomes empty
20936 # (actually we leave an empty line to preserve line numbers).
20937 if test "x$srcdir" = x.; then
20938 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20939 s/:*\$(srcdir):*/:/;
20940 s/:*\${srcdir}:*/:/;
20941 s/:*@srcdir@:*/:/;
20942 s/^\([^=]*=[ ]*\):*/\1/;
20943 s/:*$//;
20944 s/^[^=]*=[ ]*$//;
20945 }'
20946 fi
20947
20948 DEFS=-DHAVE_CONFIG_H
20949
20950 ac_libobjs=
20951 ac_ltlibobjs=
20952 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20953 # 1. Remove the extension, and $U if already installed.
20954 ac_i=`echo "$ac_i" |
20955 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20956 # 2. Add them.
20957 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20958 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20959 done
20960 LIBOBJS=$ac_libobjs
20961
20962 LTLIBOBJS=$ac_ltlibobjs
20963
20964
20965 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20966 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20967 Usually this means the macro was only invoked conditionally." >&5
20968 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20969 Usually this means the macro was only invoked conditionally." >&2;}
20970 { (exit 1); exit 1; }; }
20971 fi
20972 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
20973 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
20974 Usually this means the macro was only invoked conditionally." >&5
20975 echo "$as_me: error: conditional \"GMAKE\" was never defined.
20976 Usually this means the macro was only invoked conditionally." >&2;}
20977 { (exit 1); exit 1; }; }
20978 fi
20979 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20980 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
20981 Usually this means the macro was only invoked conditionally." >&5
20982 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
20983 Usually this means the macro was only invoked conditionally." >&2;}
20984 { (exit 1); exit 1; }; }
20985 fi
20986
20987 gl_libobjs=
20988 gl_ltlibobjs=
20989 if test -n "$gl_LIBOBJS"; then
20990 # Remove the extension.
20991 sed_drop_objext='s/\.o$//;s/\.obj$//'
20992 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
20993 gl_libobjs="$gl_libobjs $i.$ac_objext"
20994 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
20995 done
20996 fi
20997 gl_LIBOBJS=$gl_libobjs
20998
20999 gl_LTLIBOBJS=$gl_ltlibobjs
21000
21001
21002
21003 gltests_libobjs=
21004 gltests_ltlibobjs=
21005 if test -n "$gltests_LIBOBJS"; then
21006 # Remove the extension.
21007 sed_drop_objext='s/\.o$//;s/\.obj$//'
21008 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21009 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21010 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21011 done
21012 fi
21013 gltests_LIBOBJS=$gltests_libobjs
21014
21015 gltests_LTLIBOBJS=$gltests_ltlibobjs
21016
21017
21018 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21019 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21020 Usually this means the macro was only invoked conditionally." >&5
21021 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21022 Usually this means the macro was only invoked conditionally." >&2;}
21023 { (exit 1); exit 1; }; }
21024 fi
21025 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21026 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21027 Usually this means the macro was only invoked conditionally." >&5
21028 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21029 Usually this means the macro was only invoked conditionally." >&2;}
21030 { (exit 1); exit 1; }; }
21031 fi
21032
21033 : ${CONFIG_STATUS=./config.status}
21034 ac_clean_files_save=$ac_clean_files
21035 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21036 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21037 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21038 cat >$CONFIG_STATUS <<_ACEOF
21039 #! $SHELL
21040 # Generated by $as_me.
21041 # Run this file to recreate the current configuration.
21042 # Compiler output produced by configure, useful for debugging
21043 # configure, is in config.log if it exists.
21044
21045 debug=false
21046 ac_cs_recheck=false
21047 ac_cs_silent=false
21048 SHELL=\${CONFIG_SHELL-$SHELL}
21049 _ACEOF
21050
21051 cat >>$CONFIG_STATUS <<\_ACEOF
21052 ## --------------------- ##
21053 ## M4sh Initialization. ##
21054 ## --------------------- ##
21055
21056 # Be Bourne compatible
21057 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21058 emulate sh
21059 NULLCMD=:
21060 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21061 # is contrary to our usage. Disable this feature.
21062 alias -g '${1+"$@"}'='"$@"'
21063 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21064 set -o posix
21065 fi
21066 DUALCASE=1; export DUALCASE # for MKS sh
21067
21068 # Support unset when possible.
21069 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21070 as_unset=unset
21071 else
21072 as_unset=false
21073 fi
21074
21075
21076 # Work around bugs in pre-3.0 UWIN ksh.
21077 $as_unset ENV MAIL MAILPATH
21078 PS1='$ '
21079 PS2='> '
21080 PS4='+ '
21081
21082 # NLS nuisances.
21083 for as_var in \
21084 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21085 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21086 LC_TELEPHONE LC_TIME
21087 do
21088 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21089 eval $as_var=C; export $as_var
21090 else
21091 $as_unset $as_var
21092 fi
21093 done
21094
21095 # Required to use basename.
21096 if expr a : '\(a\)' >/dev/null 2>&1; then
21097 as_expr=expr
21098 else
21099 as_expr=false
21100 fi
21101
21102 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21103 as_basename=basename
21104 else
21105 as_basename=false
21106 fi
21107
21108
21109 # Name of the executable.
21110 as_me=`$as_basename "$0" ||
21111 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21112 X"$0" : 'X\(//\)$' \| \
21113 X"$0" : 'X\(/\)$' \| \
21114 . : '\(.\)' 2>/dev/null ||
21115 echo X/"$0" |
21116 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21117 /^X\/\(\/\/\)$/{ s//\1/; q; }
21118 /^X\/\(\/\).*/{ s//\1/; q; }
21119 s/.*/./; q'`
21120
21121
21122 # PATH needs CR, and LINENO needs CR and PATH.
21123 # Avoid depending upon Character Ranges.
21124 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21125 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21126 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21127 as_cr_digits='0123456789'
21128 as_cr_alnum=$as_cr_Letters$as_cr_digits
21129
21130 # The user is always right.
21131 if test "${PATH_SEPARATOR+set}" != set; then
21132 echo "#! /bin/sh" >conf$$.sh
21133 echo "exit 0" >>conf$$.sh
21134 chmod +x conf$$.sh
21135 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21136 PATH_SEPARATOR=';'
21137 else
21138 PATH_SEPARATOR=:
21139 fi
21140 rm -f conf$$.sh
21141 fi
21142
21143
21144 as_lineno_1=$LINENO
21145 as_lineno_2=$LINENO
21146 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21147 test "x$as_lineno_1" != "x$as_lineno_2" &&
21148 test "x$as_lineno_3" = "x$as_lineno_2" || {
21149 # Find who we are. Look in the path if we contain no path at all
21150 # relative or not.
21151 case $0 in
21152 *[\\/]* ) as_myself=$0 ;;
21153 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21154 for as_dir in $PATH
21155 do
21156 IFS=$as_save_IFS
21157 test -z "$as_dir" && as_dir=.
21158 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21159 done
21160
21161 ;;
21162 esac
21163 # We did not find ourselves, most probably we were run as `sh COMMAND'
21164 # in which case we are not to be found in the path.
21165 if test "x$as_myself" = x; then
21166 as_myself=$0
21167 fi
21168 if test ! -f "$as_myself"; then
21169 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21170 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21171 { (exit 1); exit 1; }; }
21172 fi
21173 case $CONFIG_SHELL in
21174 '')
21175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21176 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21177 do
21178 IFS=$as_save_IFS
21179 test -z "$as_dir" && as_dir=.
21180 for as_base in sh bash ksh sh5; do
21181 case $as_dir in
21182 /*)
21183 if ("$as_dir/$as_base" -c '
21184 as_lineno_1=$LINENO
21185 as_lineno_2=$LINENO
21186 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21187 test "x$as_lineno_1" != "x$as_lineno_2" &&
21188 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21189 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21190 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21191 CONFIG_SHELL=$as_dir/$as_base
21192 export CONFIG_SHELL
21193 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21194 fi;;
21195 esac
21196 done
21197 done
21198 ;;
21199 esac
21200
21201 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21202 # uniformly replaced by the line number. The first 'sed' inserts a
21203 # line-number line before each line; the second 'sed' does the real
21204 # work. The second script uses 'N' to pair each line-number line
21205 # with the numbered line, and appends trailing '-' during
21206 # substitution so that $LINENO is not a special case at line end.
21207 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21208 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21209 sed '=' <$as_myself |
21210 sed '
21211 N
21212 s,$,-,
21213 : loop
21214 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21215 t loop
21216 s,-$,,
21217 s,^['$as_cr_digits']*\n,,
21218 ' >$as_me.lineno &&
21219 chmod +x $as_me.lineno ||
21220 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21221 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21222 { (exit 1); exit 1; }; }
21223
21224 # Don't try to exec as it changes $[0], causing all sort of problems
21225 # (the dirname of $[0] is not the place where we might find the
21226 # original and so on. Autoconf is especially sensible to this).
21227 . ./$as_me.lineno
21228 # Exit status is that of the last command.
21229 exit
21230 }
21231
21232
21233 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21234 *c*,-n*) ECHO_N= ECHO_C='
21235 ' ECHO_T=' ' ;;
21236 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21237 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21238 esac
21239
21240 if expr a : '\(a\)' >/dev/null 2>&1; then
21241 as_expr=expr
21242 else
21243 as_expr=false
21244 fi
21245
21246 rm -f conf$$ conf$$.exe conf$$.file
21247 echo >conf$$.file
21248 if ln -s conf$$.file conf$$ 2>/dev/null; then
21249 # We could just check for DJGPP; but this test a) works b) is more generic
21250 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21251 if test -f conf$$.exe; then
21252 # Don't use ln at all; we don't have any links
21253 as_ln_s='cp -p'
21254 else
21255 as_ln_s='ln -s'
21256 fi
21257 elif ln conf$$.file conf$$ 2>/dev/null; then
21258 as_ln_s=ln
21259 else
21260 as_ln_s='cp -p'
21261 fi
21262 rm -f conf$$ conf$$.exe conf$$.file
21263
21264 if mkdir -p . 2>/dev/null; then
21265 as_mkdir_p=:
21266 else
21267 test -d ./-p && rmdir ./-p
21268 as_mkdir_p=false
21269 fi
21270
21271 as_executable_p="test -f"
21272
21273 # Sed expression to map a string onto a valid CPP name.
21274 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21275
21276 # Sed expression to map a string onto a valid variable name.
21277 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21278
21279
21280 # IFS
21281 # We need space, tab and new line, in precisely that order.
21282 as_nl='
21283 '
21284 IFS=" $as_nl"
21285
21286 # CDPATH.
21287 $as_unset CDPATH
21288
21289 exec 6>&1
21290
21291 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21292 # report actual input values of CONFIG_FILES etc. instead of their
21293 # values after options handling. Logging --version etc. is OK.
21294 exec 5>>config.log
21295 {
21296 echo
21297 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21298 ## Running $as_me. ##
21299 _ASBOX
21300 } >&5
21301 cat >&5 <<_CSEOF
21302
21303 This file was extended by $as_me, which was
21304 generated by GNU Autoconf 2.59. Invocation command line was
21305
21306 CONFIG_FILES = $CONFIG_FILES
21307 CONFIG_HEADERS = $CONFIG_HEADERS
21308 CONFIG_LINKS = $CONFIG_LINKS
21309 CONFIG_COMMANDS = $CONFIG_COMMANDS
21310 $ $0 $@
21311
21312 _CSEOF
21313 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21314 echo >&5
21315 _ACEOF
21316
21317 # Files that config.status was made for.
21318 if test -n "$ac_config_files"; then
21319 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21320 fi
21321
21322 if test -n "$ac_config_headers"; then
21323 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21324 fi
21325
21326 if test -n "$ac_config_links"; then
21327 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21328 fi
21329
21330 if test -n "$ac_config_commands"; then
21331 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21332 fi
21333
21334 cat >>$CONFIG_STATUS <<\_ACEOF
21335
21336 ac_cs_usage="\
21337 \`$as_me' instantiates files from templates according to the
21338 current configuration.
21339
21340 Usage: $0 [OPTIONS] [FILE]...
21341
21342 -h, --help print this help, then exit
21343 -V, --version print version number, then exit
21344 -q, --quiet do not print progress messages
21345 -d, --debug don't remove temporary files
21346 --recheck update $as_me by reconfiguring in the same conditions
21347 --file=FILE[:TEMPLATE]
21348 instantiate the configuration file FILE
21349 --header=FILE[:TEMPLATE]
21350 instantiate the configuration header FILE
21351
21352 Configuration files:
21353 $config_files
21354
21355 Configuration headers:
21356 $config_headers
21357
21358 Configuration links:
21359 $config_links
21360
21361 Configuration commands:
21362 $config_commands
21363
21364 Report bugs to <bug-autoconf@gnu.org>."
21365 _ACEOF
21366
21367 cat >>$CONFIG_STATUS <<_ACEOF
21368 ac_cs_version="\\
21369 config.status
21370 configured by $0, generated by GNU Autoconf 2.59,
21371 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21372
21373 Copyright (C) 2003 Free Software Foundation, Inc.
21374 This config.status script is free software; the Free Software Foundation
21375 gives unlimited permission to copy, distribute and modify it."
21376 srcdir=$srcdir
21377 INSTALL="$INSTALL"
21378 _ACEOF
21379
21380 cat >>$CONFIG_STATUS <<\_ACEOF
21381 # If no file are specified by the user, then we need to provide default
21382 # value. By we need to know if files were specified by the user.
21383 ac_need_defaults=:
21384 while test $# != 0
21385 do
21386 case $1 in
21387 --*=*)
21388 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21389 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21390 ac_shift=:
21391 ;;
21392 -*)
21393 ac_option=$1
21394 ac_optarg=$2
21395 ac_shift=shift
21396 ;;
21397 *) # This is not an option, so the user has probably given explicit
21398 # arguments.
21399 ac_option=$1
21400 ac_need_defaults=false;;
21401 esac
21402
21403 case $ac_option in
21404 # Handling of the options.
21405 _ACEOF
21406 cat >>$CONFIG_STATUS <<\_ACEOF
21407 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21408 ac_cs_recheck=: ;;
21409 --version | --vers* | -V )
21410 echo "$ac_cs_version"; exit 0 ;;
21411 --he | --h)
21412 # Conflict between --help and --header
21413 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21414 Try \`$0 --help' for more information." >&5
21415 echo "$as_me: error: ambiguous option: $1
21416 Try \`$0 --help' for more information." >&2;}
21417 { (exit 1); exit 1; }; };;
21418 --help | --hel | -h )
21419 echo "$ac_cs_usage"; exit 0 ;;
21420 --debug | --d* | -d )
21421 debug=: ;;
21422 --file | --fil | --fi | --f )
21423 $ac_shift
21424 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21425 ac_need_defaults=false;;
21426 --header | --heade | --head | --hea )
21427 $ac_shift
21428 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21429 ac_need_defaults=false;;
21430 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21431 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21432 ac_cs_silent=: ;;
21433
21434 # This is an error.
21435 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21436 Try \`$0 --help' for more information." >&5
21437 echo "$as_me: error: unrecognized option: $1
21438 Try \`$0 --help' for more information." >&2;}
21439 { (exit 1); exit 1; }; } ;;
21440
21441 *) ac_config_targets="$ac_config_targets $1" ;;
21442
21443 esac
21444 shift
21445 done
21446
21447 ac_configure_extra_args=
21448
21449 if $ac_cs_silent; then
21450 exec 6>/dev/null
21451 ac_configure_extra_args="$ac_configure_extra_args --silent"
21452 fi
21453
21454 _ACEOF
21455 cat >>$CONFIG_STATUS <<_ACEOF
21456 if \$ac_cs_recheck; then
21457 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21458 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21459 fi
21460
21461 _ACEOF
21462
21463 cat >>$CONFIG_STATUS <<_ACEOF
21464 #
21465 # INIT-COMMANDS section.
21466 #
21467
21468 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
21469 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21470
21471 gdb_host_cpu=$gdb_host_cpu
21472 nativefile=$nativefile
21473
21474
21475 _ACEOF
21476
21477
21478
21479 cat >>$CONFIG_STATUS <<\_ACEOF
21480 for ac_config_target in $ac_config_targets
21481 do
21482 case "$ac_config_target" in
21483 # Handling of arguments.
21484 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21485 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
21486 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
21487 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
21488 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
21489 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21490 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21491 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21492 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21493 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21494 { (exit 1); exit 1; }; };;
21495 esac
21496 done
21497
21498 # If the user did not use the arguments to specify the items to instantiate,
21499 # then the envvar interface is used. Set only those that are not.
21500 # We use the long form for the default assignment because of an extremely
21501 # bizarre bug on SunOS 4.1.3.
21502 if $ac_need_defaults; then
21503 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21504 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21505 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21506 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21507 fi
21508
21509 # Have a temporary directory for convenience. Make it in the build tree
21510 # simply because there is no reason to put it here, and in addition,
21511 # creating and moving files from /tmp can sometimes cause problems.
21512 # Create a temporary directory, and hook for its removal unless debugging.
21513 $debug ||
21514 {
21515 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21516 trap '{ (exit 1); exit 1; }' 1 2 13 15
21517 }
21518
21519 # Create a (secure) tmp directory for tmp files.
21520
21521 {
21522 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21523 test -n "$tmp" && test -d "$tmp"
21524 } ||
21525 {
21526 tmp=./confstat$$-$RANDOM
21527 (umask 077 && mkdir $tmp)
21528 } ||
21529 {
21530 echo "$me: cannot create a temporary directory in ." >&2
21531 { (exit 1); exit 1; }
21532 }
21533
21534 _ACEOF
21535
21536 cat >>$CONFIG_STATUS <<_ACEOF
21537
21538 #
21539 # CONFIG_FILES section.
21540 #
21541
21542 # No need to generate the scripts if there are no CONFIG_FILES.
21543 # This happens for instance when ./config.status config.h
21544 if test -n "\$CONFIG_FILES"; then
21545 # Protect against being on the right side of a sed subst in config.status.
21546 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21547 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21548 s,@SHELL@,$SHELL,;t t
21549 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21550 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21551 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21552 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21553 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21554 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21555 s,@exec_prefix@,$exec_prefix,;t t
21556 s,@prefix@,$prefix,;t t
21557 s,@program_transform_name@,$program_transform_name,;t t
21558 s,@bindir@,$bindir,;t t
21559 s,@sbindir@,$sbindir,;t t
21560 s,@libexecdir@,$libexecdir,;t t
21561 s,@datadir@,$datadir,;t t
21562 s,@sysconfdir@,$sysconfdir,;t t
21563 s,@sharedstatedir@,$sharedstatedir,;t t
21564 s,@localstatedir@,$localstatedir,;t t
21565 s,@libdir@,$libdir,;t t
21566 s,@includedir@,$includedir,;t t
21567 s,@oldincludedir@,$oldincludedir,;t t
21568 s,@infodir@,$infodir,;t t
21569 s,@mandir@,$mandir,;t t
21570 s,@build_alias@,$build_alias,;t t
21571 s,@host_alias@,$host_alias,;t t
21572 s,@target_alias@,$target_alias,;t t
21573 s,@DEFS@,$DEFS,;t t
21574 s,@ECHO_C@,$ECHO_C,;t t
21575 s,@ECHO_N@,$ECHO_N,;t t
21576 s,@ECHO_T@,$ECHO_T,;t t
21577 s,@LIBS@,$LIBS,;t t
21578 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21579 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21580 s,@MAINT@,$MAINT,;t t
21581 s,@CC@,$CC,;t t
21582 s,@CFLAGS@,$CFLAGS,;t t
21583 s,@LDFLAGS@,$LDFLAGS,;t t
21584 s,@CPPFLAGS@,$CPPFLAGS,;t t
21585 s,@ac_ct_CC@,$ac_ct_CC,;t t
21586 s,@EXEEXT@,$EXEEXT,;t t
21587 s,@OBJEXT@,$OBJEXT,;t t
21588 s,@CPP@,$CPP,;t t
21589 s,@EGREP@,$EGREP,;t t
21590 s,@RANLIB@,$RANLIB,;t t
21591 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21592 s,@build@,$build,;t t
21593 s,@build_cpu@,$build_cpu,;t t
21594 s,@build_vendor@,$build_vendor,;t t
21595 s,@build_os@,$build_os,;t t
21596 s,@host@,$host,;t t
21597 s,@host_cpu@,$host_cpu,;t t
21598 s,@host_vendor@,$host_vendor,;t t
21599 s,@host_os@,$host_os,;t t
21600 s,@target@,$target,;t t
21601 s,@target_cpu@,$target_cpu,;t t
21602 s,@target_vendor@,$target_vendor,;t t
21603 s,@target_os@,$target_os,;t t
21604 s,@am__leading_dot@,$am__leading_dot,;t t
21605 s,@DEPDIR@,$DEPDIR,;t t
21606 s,@CCDEPMODE@,$CCDEPMODE,;t t
21607 s,@MAKE@,$MAKE,;t t
21608 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
21609 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
21610 s,@SET_MAKE@,$SET_MAKE,;t t
21611 s,@USE_NLS@,$USE_NLS,;t t
21612 s,@LIBINTL@,$LIBINTL,;t t
21613 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21614 s,@INCINTL@,$INCINTL,;t t
21615 s,@XGETTEXT@,$XGETTEXT,;t t
21616 s,@GMSGFMT@,$GMSGFMT,;t t
21617 s,@POSUB@,$POSUB,;t t
21618 s,@CATALOGS@,$CATALOGS,;t t
21619 s,@DATADIRNAME@,$DATADIRNAME,;t t
21620 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21621 s,@GENCAT@,$GENCAT,;t t
21622 s,@CATOBJEXT@,$CATOBJEXT,;t t
21623 s,@localedir@,$localedir,;t t
21624 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
21625 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
21626 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
21627 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
21628 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
21629 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
21630 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
21631 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
21632 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
21633 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
21634 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
21635 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
21636 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
21637 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
21638 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
21639 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
21640 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
21641 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
21642 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
21643 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
21644 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
21645 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
21646 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
21647 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
21648 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
21649 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
21650 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
21651 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
21652 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
21653 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
21654 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
21655 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
21656 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
21657 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
21658 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
21659 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
21660 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
21661 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
21662 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
21663 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
21664 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
21665 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
21666 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
21667 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
21668 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
21669 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
21670 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
21671 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
21672 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
21673 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
21674 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
21675 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
21676 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
21677 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
21678 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
21679 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
21680 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
21681 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
21682 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
21683 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
21684 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
21685 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
21686 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
21687 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
21688 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
21689 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
21690 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
21691 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
21692 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
21693 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
21694 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
21695 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
21696 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
21697 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
21698 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
21699 s,@STDINT_H@,$STDINT_H,;t t
21700 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
21701 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
21702 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
21703 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
21704 s,@WCHAR_H@,$WCHAR_H,;t t
21705 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
21706 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
21707 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
21708 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
21709 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
21710 s,@PACKAGE@,$PACKAGE,;t t
21711 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21712 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21713 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21714 s,@CYGPATH_W@,$CYGPATH_W,;t t
21715 s,@PYTHON2_4@,$PYTHON2_4,;t t
21716 s,@ACLOCAL@,$ACLOCAL,;t t
21717 s,@AUTOCONF@,$AUTOCONF,;t t
21718 s,@AUTOMAKE@,$AUTOMAKE,;t t
21719 s,@AUTOHEADER@,$AUTOHEADER,;t t
21720 s,@MAKEINFO@,$MAKEINFO,;t t
21721 s,@install_sh@,$install_sh,;t t
21722 s,@STRIP@,$STRIP,;t t
21723 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21724 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21725 s,@mkdir_p@,$mkdir_p,;t t
21726 s,@AWK@,$AWK,;t t
21727 s,@AMTAR@,$AMTAR,;t t
21728 s,@am__tar@,$am__tar,;t t
21729 s,@am__untar@,$am__untar,;t t
21730 s,@am__include@,$am__include,;t t
21731 s,@am__quote@,$am__quote,;t t
21732 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21733 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21734 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21735 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21736 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21737 s,@subdirs@,$subdirs,;t t
21738 s,@TARGET_OBS@,$TARGET_OBS,;t t
21739 s,@PKGVERSION@,$PKGVERSION,;t t
21740 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
21741 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
21742 s,@LN_S@,$LN_S,;t t
21743 s,@YACC@,$YACC,;t t
21744 s,@AR@,$AR,;t t
21745 s,@ac_ct_AR@,$ac_ct_AR,;t t
21746 s,@DLLTOOL@,$DLLTOOL,;t t
21747 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
21748 s,@WINDRES@,$WINDRES,;t t
21749 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
21750 s,@MIG@,$MIG,;t t
21751 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
21752 s,@READLINE@,$READLINE,;t t
21753 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
21754 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
21755 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
21756 s,@LIBEXPAT@,$LIBEXPAT,;t t
21757 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
21758 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
21759 s,@ALLOCA@,$ALLOCA,;t t
21760 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
21761 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
21762 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
21763 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
21764 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
21765 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
21766 s,@WIN32LIBS@,$WIN32LIBS,;t t
21767 s,@LIBGUI@,$LIBGUI,;t t
21768 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
21769 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
21770 s,@TCL_VERSION@,$TCL_VERSION,;t t
21771 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
21772 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
21773 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
21774 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
21775 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
21776 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
21777 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
21778 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
21779 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
21780 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
21781 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
21782 s,@TCL_DEPS@,$TCL_DEPS,;t t
21783 s,@TK_VERSION@,$TK_VERSION,;t t
21784 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
21785 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
21786 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
21787 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
21788 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
21789 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
21790 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
21791 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
21792 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
21793 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
21794 s,@TK_DEPS@,$TK_DEPS,;t t
21795 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
21796 s,@X_CFLAGS@,$X_CFLAGS,;t t
21797 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
21798 s,@X_LIBS@,$X_LIBS,;t t
21799 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
21800 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
21801 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
21802 s,@SIM@,$SIM,;t t
21803 s,@SIM_OBS@,$SIM_OBS,;t t
21804 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
21805 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
21806 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
21807 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
21808 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
21809 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
21810 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
21811 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
21812 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
21813 s,@target_subdir@,$target_subdir,;t t
21814 s,@frags@,$frags,;t t
21815 s,@nm_h@,$nm_h,;t t
21816 s,@LIBICONV@,$LIBICONV,;t t
21817 s,@LIBOBJS@,$LIBOBJS,;t t
21818 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21819 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
21820 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
21821 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
21822 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
21823 /@host_makefile_frag@/r $host_makefile_frag
21824 s,@host_makefile_frag@,,;t t
21825 CEOF
21826
21827 _ACEOF
21828
21829 cat >>$CONFIG_STATUS <<\_ACEOF
21830 # Split the substitutions into bite-sized pieces for seds with
21831 # small command number limits, like on Digital OSF/1 and HP-UX.
21832 ac_max_sed_lines=48
21833 ac_sed_frag=1 # Number of current file.
21834 ac_beg=1 # First line for current file.
21835 ac_end=$ac_max_sed_lines # Line after last line for current file.
21836 ac_more_lines=:
21837 ac_sed_cmds=
21838 while $ac_more_lines; do
21839 if test $ac_beg -gt 1; then
21840 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21841 else
21842 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21843 fi
21844 if test ! -s $tmp/subs.frag; then
21845 ac_more_lines=false
21846 else
21847 # The purpose of the label and of the branching condition is to
21848 # speed up the sed processing (if there are no `@' at all, there
21849 # is no need to browse any of the substitutions).
21850 # These are the two extra sed commands mentioned above.
21851 (echo ':t
21852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21853 if test -z "$ac_sed_cmds"; then
21854 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21855 else
21856 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21857 fi
21858 ac_sed_frag=`expr $ac_sed_frag + 1`
21859 ac_beg=$ac_end
21860 ac_end=`expr $ac_end + $ac_max_sed_lines`
21861 fi
21862 done
21863 if test -z "$ac_sed_cmds"; then
21864 ac_sed_cmds=cat
21865 fi
21866 fi # test -n "$CONFIG_FILES"
21867
21868 _ACEOF
21869 cat >>$CONFIG_STATUS <<\_ACEOF
21870 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21871 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21872 case $ac_file in
21873 - | *:- | *:-:* ) # input from stdin
21874 cat >$tmp/stdin
21875 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21876 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21877 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21878 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21879 * ) ac_file_in=$ac_file.in ;;
21880 esac
21881
21882 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21883 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21884 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21885 X"$ac_file" : 'X\(//\)[^/]' \| \
21886 X"$ac_file" : 'X\(//\)$' \| \
21887 X"$ac_file" : 'X\(/\)' \| \
21888 . : '\(.\)' 2>/dev/null ||
21889 echo X"$ac_file" |
21890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21891 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21892 /^X\(\/\/\)$/{ s//\1/; q; }
21893 /^X\(\/\).*/{ s//\1/; q; }
21894 s/.*/./; q'`
21895 { if $as_mkdir_p; then
21896 mkdir -p "$ac_dir"
21897 else
21898 as_dir="$ac_dir"
21899 as_dirs=
21900 while test ! -d "$as_dir"; do
21901 as_dirs="$as_dir $as_dirs"
21902 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21903 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21904 X"$as_dir" : 'X\(//\)[^/]' \| \
21905 X"$as_dir" : 'X\(//\)$' \| \
21906 X"$as_dir" : 'X\(/\)' \| \
21907 . : '\(.\)' 2>/dev/null ||
21908 echo X"$as_dir" |
21909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21910 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21911 /^X\(\/\/\)$/{ s//\1/; q; }
21912 /^X\(\/\).*/{ s//\1/; q; }
21913 s/.*/./; q'`
21914 done
21915 test ! -n "$as_dirs" || mkdir $as_dirs
21916 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21917 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21918 { (exit 1); exit 1; }; }; }
21919
21920 ac_builddir=.
21921
21922 if test "$ac_dir" != .; then
21923 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21924 # A "../" for each directory in $ac_dir_suffix.
21925 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21926 else
21927 ac_dir_suffix= ac_top_builddir=
21928 fi
21929
21930 case $srcdir in
21931 .) # No --srcdir option. We are building in place.
21932 ac_srcdir=.
21933 if test -z "$ac_top_builddir"; then
21934 ac_top_srcdir=.
21935 else
21936 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21937 fi ;;
21938 [\\/]* | ?:[\\/]* ) # Absolute path.
21939 ac_srcdir=$srcdir$ac_dir_suffix;
21940 ac_top_srcdir=$srcdir ;;
21941 *) # Relative path.
21942 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21943 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21944 esac
21945
21946 # Do not use `cd foo && pwd` to compute absolute paths, because
21947 # the directories may not exist.
21948 case `pwd` in
21949 .) ac_abs_builddir="$ac_dir";;
21950 *)
21951 case "$ac_dir" in
21952 .) ac_abs_builddir=`pwd`;;
21953 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21954 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21955 esac;;
21956 esac
21957 case $ac_abs_builddir in
21958 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21959 *)
21960 case ${ac_top_builddir}. in
21961 .) ac_abs_top_builddir=$ac_abs_builddir;;
21962 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21963 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21964 esac;;
21965 esac
21966 case $ac_abs_builddir in
21967 .) ac_abs_srcdir=$ac_srcdir;;
21968 *)
21969 case $ac_srcdir in
21970 .) ac_abs_srcdir=$ac_abs_builddir;;
21971 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21972 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21973 esac;;
21974 esac
21975 case $ac_abs_builddir in
21976 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21977 *)
21978 case $ac_top_srcdir in
21979 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21980 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21981 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21982 esac;;
21983 esac
21984
21985
21986 case $INSTALL in
21987 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21988 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21989 esac
21990
21991 if test x"$ac_file" != x-; then
21992 { echo "$as_me:$LINENO: creating $ac_file" >&5
21993 echo "$as_me: creating $ac_file" >&6;}
21994 rm -f "$ac_file"
21995 fi
21996 # Let's still pretend it is `configure' which instantiates (i.e., don't
21997 # use $as_me), people would be surprised to read:
21998 # /* config.h. Generated by config.status. */
21999 if test x"$ac_file" = x-; then
22000 configure_input=
22001 else
22002 configure_input="$ac_file. "
22003 fi
22004 configure_input=$configure_input"Generated from `echo $ac_file_in |
22005 sed 's,.*/,,'` by configure."
22006
22007 # First look for the input files in the build tree, otherwise in the
22008 # src tree.
22009 ac_file_inputs=`IFS=:
22010 for f in $ac_file_in; do
22011 case $f in
22012 -) echo $tmp/stdin ;;
22013 [\\/$]*)
22014 # Absolute (can't be DOS-style, as IFS=:)
22015 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22016 echo "$as_me: error: cannot find input file: $f" >&2;}
22017 { (exit 1); exit 1; }; }
22018 echo "$f";;
22019 *) # Relative
22020 if test -f "$f"; then
22021 # Build tree
22022 echo "$f"
22023 elif test -f "$srcdir/$f"; then
22024 # Source tree
22025 echo "$srcdir/$f"
22026 else
22027 # /dev/null tree
22028 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22029 echo "$as_me: error: cannot find input file: $f" >&2;}
22030 { (exit 1); exit 1; }; }
22031 fi;;
22032 esac
22033 done` || { (exit 1); exit 1; }
22034 _ACEOF
22035 cat >>$CONFIG_STATUS <<_ACEOF
22036 sed "$ac_vpsub
22037 $extrasub
22038 _ACEOF
22039 cat >>$CONFIG_STATUS <<\_ACEOF
22040 :t
22041 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22042 s,@configure_input@,$configure_input,;t t
22043 s,@srcdir@,$ac_srcdir,;t t
22044 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22045 s,@top_srcdir@,$ac_top_srcdir,;t t
22046 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22047 s,@builddir@,$ac_builddir,;t t
22048 s,@abs_builddir@,$ac_abs_builddir,;t t
22049 s,@top_builddir@,$ac_top_builddir,;t t
22050 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22051 s,@INSTALL@,$ac_INSTALL,;t t
22052 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22053 rm -f $tmp/stdin
22054 if test x"$ac_file" != x-; then
22055 mv $tmp/out $ac_file
22056 else
22057 cat $tmp/out
22058 rm -f $tmp/out
22059 fi
22060
22061 done
22062 _ACEOF
22063 cat >>$CONFIG_STATUS <<\_ACEOF
22064
22065 #
22066 # CONFIG_HEADER section.
22067 #
22068
22069 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22070 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22071 #
22072 # ac_d sets the value in "#define NAME VALUE" lines.
22073 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22074 ac_dB='[ ].*$,\1#\2'
22075 ac_dC=' '
22076 ac_dD=',;t'
22077 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22078 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22079 ac_uB='$,\1#\2define\3'
22080 ac_uC=' '
22081 ac_uD=',;t'
22082
22083 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22084 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22085 case $ac_file in
22086 - | *:- | *:-:* ) # input from stdin
22087 cat >$tmp/stdin
22088 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22089 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22090 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22091 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22092 * ) ac_file_in=$ac_file.in ;;
22093 esac
22094
22095 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22096 echo "$as_me: creating $ac_file" >&6;}
22097
22098 # First look for the input files in the build tree, otherwise in the
22099 # src tree.
22100 ac_file_inputs=`IFS=:
22101 for f in $ac_file_in; do
22102 case $f in
22103 -) echo $tmp/stdin ;;
22104 [\\/$]*)
22105 # Absolute (can't be DOS-style, as IFS=:)
22106 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22107 echo "$as_me: error: cannot find input file: $f" >&2;}
22108 { (exit 1); exit 1; }; }
22109 # Do quote $f, to prevent DOS paths from being IFS'd.
22110 echo "$f";;
22111 *) # Relative
22112 if test -f "$f"; then
22113 # Build tree
22114 echo "$f"
22115 elif test -f "$srcdir/$f"; then
22116 # Source tree
22117 echo "$srcdir/$f"
22118 else
22119 # /dev/null tree
22120 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22121 echo "$as_me: error: cannot find input file: $f" >&2;}
22122 { (exit 1); exit 1; }; }
22123 fi;;
22124 esac
22125 done` || { (exit 1); exit 1; }
22126 # Remove the trailing spaces.
22127 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22128
22129 _ACEOF
22130
22131 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22132 # `conftest.undefs', that substitutes the proper values into
22133 # config.h.in to produce config.h. The first handles `#define'
22134 # templates, and the second `#undef' templates.
22135 # And first: Protect against being on the right side of a sed subst in
22136 # config.status. Protect against being in an unquoted here document
22137 # in config.status.
22138 rm -f conftest.defines conftest.undefs
22139 # Using a here document instead of a string reduces the quoting nightmare.
22140 # Putting comments in sed scripts is not portable.
22141 #
22142 # `end' is used to avoid that the second main sed command (meant for
22143 # 0-ary CPP macros) applies to n-ary macro definitions.
22144 # See the Autoconf documentation for `clear'.
22145 cat >confdef2sed.sed <<\_ACEOF
22146 s/[\\&,]/\\&/g
22147 s,[\\$`],\\&,g
22148 t clear
22149 : clear
22150 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22151 t end
22152 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22153 : end
22154 _ACEOF
22155 # If some macros were called several times there might be several times
22156 # the same #defines, which is useless. Nevertheless, we may not want to
22157 # sort them, since we want the *last* AC-DEFINE to be honored.
22158 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22159 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22160 rm -f confdef2sed.sed
22161
22162 # This sed command replaces #undef with comments. This is necessary, for
22163 # example, in the case of _POSIX_SOURCE, which is predefined and required
22164 # on some systems where configure will not decide to define it.
22165 cat >>conftest.undefs <<\_ACEOF
22166 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22167 _ACEOF
22168
22169 # Break up conftest.defines because some shells have a limit on the size
22170 # of here documents, and old seds have small limits too (100 cmds).
22171 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22172 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22173 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22174 echo ' :' >>$CONFIG_STATUS
22175 rm -f conftest.tail
22176 while grep . conftest.defines >/dev/null
22177 do
22178 # Write a limited-size here document to $tmp/defines.sed.
22179 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22180 # Speed up: don't consider the non `#define' lines.
22181 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22182 # Work around the forget-to-reset-the-flag bug.
22183 echo 't clr' >>$CONFIG_STATUS
22184 echo ': clr' >>$CONFIG_STATUS
22185 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22186 echo 'CEOF
22187 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22188 rm -f $tmp/in
22189 mv $tmp/out $tmp/in
22190 ' >>$CONFIG_STATUS
22191 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22192 rm -f conftest.defines
22193 mv conftest.tail conftest.defines
22194 done
22195 rm -f conftest.defines
22196 echo ' fi # grep' >>$CONFIG_STATUS
22197 echo >>$CONFIG_STATUS
22198
22199 # Break up conftest.undefs because some shells have a limit on the size
22200 # of here documents, and old seds have small limits too (100 cmds).
22201 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22202 rm -f conftest.tail
22203 while grep . conftest.undefs >/dev/null
22204 do
22205 # Write a limited-size here document to $tmp/undefs.sed.
22206 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22207 # Speed up: don't consider the non `#undef'
22208 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22209 # Work around the forget-to-reset-the-flag bug.
22210 echo 't clr' >>$CONFIG_STATUS
22211 echo ': clr' >>$CONFIG_STATUS
22212 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22213 echo 'CEOF
22214 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22215 rm -f $tmp/in
22216 mv $tmp/out $tmp/in
22217 ' >>$CONFIG_STATUS
22218 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22219 rm -f conftest.undefs
22220 mv conftest.tail conftest.undefs
22221 done
22222 rm -f conftest.undefs
22223
22224 cat >>$CONFIG_STATUS <<\_ACEOF
22225 # Let's still pretend it is `configure' which instantiates (i.e., don't
22226 # use $as_me), people would be surprised to read:
22227 # /* config.h. Generated by config.status. */
22228 if test x"$ac_file" = x-; then
22229 echo "/* Generated by configure. */" >$tmp/config.h
22230 else
22231 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22232 fi
22233 cat $tmp/in >>$tmp/config.h
22234 rm -f $tmp/in
22235 if test x"$ac_file" != x-; then
22236 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22237 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22238 echo "$as_me: $ac_file is unchanged" >&6;}
22239 else
22240 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22241 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22242 X"$ac_file" : 'X\(//\)[^/]' \| \
22243 X"$ac_file" : 'X\(//\)$' \| \
22244 X"$ac_file" : 'X\(/\)' \| \
22245 . : '\(.\)' 2>/dev/null ||
22246 echo X"$ac_file" |
22247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22248 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22249 /^X\(\/\/\)$/{ s//\1/; q; }
22250 /^X\(\/\).*/{ s//\1/; q; }
22251 s/.*/./; q'`
22252 { if $as_mkdir_p; then
22253 mkdir -p "$ac_dir"
22254 else
22255 as_dir="$ac_dir"
22256 as_dirs=
22257 while test ! -d "$as_dir"; do
22258 as_dirs="$as_dir $as_dirs"
22259 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22260 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22261 X"$as_dir" : 'X\(//\)[^/]' \| \
22262 X"$as_dir" : 'X\(//\)$' \| \
22263 X"$as_dir" : 'X\(/\)' \| \
22264 . : '\(.\)' 2>/dev/null ||
22265 echo X"$as_dir" |
22266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22268 /^X\(\/\/\)$/{ s//\1/; q; }
22269 /^X\(\/\).*/{ s//\1/; q; }
22270 s/.*/./; q'`
22271 done
22272 test ! -n "$as_dirs" || mkdir $as_dirs
22273 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22274 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22275 { (exit 1); exit 1; }; }; }
22276
22277 rm -f $ac_file
22278 mv $tmp/config.h $ac_file
22279 fi
22280 else
22281 cat $tmp/config.h
22282 rm -f $tmp/config.h
22283 fi
22284 # Compute $ac_file's index in $config_headers.
22285 _am_stamp_count=1
22286 for _am_header in $config_headers :; do
22287 case $_am_header in
22288 $ac_file | $ac_file:* )
22289 break ;;
22290 * )
22291 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22292 esac
22293 done
22294 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22295 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22296 X$ac_file : 'X\(//\)[^/]' \| \
22297 X$ac_file : 'X\(//\)$' \| \
22298 X$ac_file : 'X\(/\)' \| \
22299 . : '\(.\)' 2>/dev/null ||
22300 echo X$ac_file |
22301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22302 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22303 /^X\(\/\/\)$/{ s//\1/; q; }
22304 /^X\(\/\).*/{ s//\1/; q; }
22305 s/.*/./; q'`/stamp-h$_am_stamp_count
22306 done
22307 _ACEOF
22308 cat >>$CONFIG_STATUS <<\_ACEOF
22309
22310 #
22311 # CONFIG_LINKS section.
22312 #
22313
22314 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22315 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22316 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22317
22318 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22319 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22320
22321 if test ! -r $srcdir/$ac_source; then
22322 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22323 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22324 { (exit 1); exit 1; }; }
22325 fi
22326 rm -f $ac_dest
22327
22328 # Make relative symlinks.
22329 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22330 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22331 X"$ac_dest" : 'X\(//\)[^/]' \| \
22332 X"$ac_dest" : 'X\(//\)$' \| \
22333 X"$ac_dest" : 'X\(/\)' \| \
22334 . : '\(.\)' 2>/dev/null ||
22335 echo X"$ac_dest" |
22336 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22337 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22338 /^X\(\/\/\)$/{ s//\1/; q; }
22339 /^X\(\/\).*/{ s//\1/; q; }
22340 s/.*/./; q'`
22341 { if $as_mkdir_p; then
22342 mkdir -p "$ac_dest_dir"
22343 else
22344 as_dir="$ac_dest_dir"
22345 as_dirs=
22346 while test ! -d "$as_dir"; do
22347 as_dirs="$as_dir $as_dirs"
22348 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22350 X"$as_dir" : 'X\(//\)[^/]' \| \
22351 X"$as_dir" : 'X\(//\)$' \| \
22352 X"$as_dir" : 'X\(/\)' \| \
22353 . : '\(.\)' 2>/dev/null ||
22354 echo X"$as_dir" |
22355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22356 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22357 /^X\(\/\/\)$/{ s//\1/; q; }
22358 /^X\(\/\).*/{ s//\1/; q; }
22359 s/.*/./; q'`
22360 done
22361 test ! -n "$as_dirs" || mkdir $as_dirs
22362 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22363 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22364 { (exit 1); exit 1; }; }; }
22365
22366 ac_builddir=.
22367
22368 if test "$ac_dest_dir" != .; then
22369 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22370 # A "../" for each directory in $ac_dir_suffix.
22371 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22372 else
22373 ac_dir_suffix= ac_top_builddir=
22374 fi
22375
22376 case $srcdir in
22377 .) # No --srcdir option. We are building in place.
22378 ac_srcdir=.
22379 if test -z "$ac_top_builddir"; then
22380 ac_top_srcdir=.
22381 else
22382 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22383 fi ;;
22384 [\\/]* | ?:[\\/]* ) # Absolute path.
22385 ac_srcdir=$srcdir$ac_dir_suffix;
22386 ac_top_srcdir=$srcdir ;;
22387 *) # Relative path.
22388 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22389 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22390 esac
22391
22392 # Do not use `cd foo && pwd` to compute absolute paths, because
22393 # the directories may not exist.
22394 case `pwd` in
22395 .) ac_abs_builddir="$ac_dest_dir";;
22396 *)
22397 case "$ac_dest_dir" in
22398 .) ac_abs_builddir=`pwd`;;
22399 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22400 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22401 esac;;
22402 esac
22403 case $ac_abs_builddir in
22404 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22405 *)
22406 case ${ac_top_builddir}. in
22407 .) ac_abs_top_builddir=$ac_abs_builddir;;
22408 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22409 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22410 esac;;
22411 esac
22412 case $ac_abs_builddir in
22413 .) ac_abs_srcdir=$ac_srcdir;;
22414 *)
22415 case $ac_srcdir in
22416 .) ac_abs_srcdir=$ac_abs_builddir;;
22417 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22418 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22419 esac;;
22420 esac
22421 case $ac_abs_builddir in
22422 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22423 *)
22424 case $ac_top_srcdir in
22425 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22426 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22427 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22428 esac;;
22429 esac
22430
22431
22432 case $srcdir in
22433 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22434 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22435 esac
22436
22437 # Try a symlink, then a hard link, then a copy.
22438 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22439 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22440 cp -p $srcdir/$ac_source $ac_dest ||
22441 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22442 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22443 { (exit 1); exit 1; }; }
22444 done
22445 _ACEOF
22446 cat >>$CONFIG_STATUS <<\_ACEOF
22447
22448 #
22449 # CONFIG_COMMANDS section.
22450 #
22451 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22452 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22453 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22454 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22455 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22456 X"$ac_dest" : 'X\(//\)[^/]' \| \
22457 X"$ac_dest" : 'X\(//\)$' \| \
22458 X"$ac_dest" : 'X\(/\)' \| \
22459 . : '\(.\)' 2>/dev/null ||
22460 echo X"$ac_dest" |
22461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22462 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22463 /^X\(\/\/\)$/{ s//\1/; q; }
22464 /^X\(\/\).*/{ s//\1/; q; }
22465 s/.*/./; q'`
22466 { if $as_mkdir_p; then
22467 mkdir -p "$ac_dir"
22468 else
22469 as_dir="$ac_dir"
22470 as_dirs=
22471 while test ! -d "$as_dir"; do
22472 as_dirs="$as_dir $as_dirs"
22473 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22474 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22475 X"$as_dir" : 'X\(//\)[^/]' \| \
22476 X"$as_dir" : 'X\(//\)$' \| \
22477 X"$as_dir" : 'X\(/\)' \| \
22478 . : '\(.\)' 2>/dev/null ||
22479 echo X"$as_dir" |
22480 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22481 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22482 /^X\(\/\/\)$/{ s//\1/; q; }
22483 /^X\(\/\).*/{ s//\1/; q; }
22484 s/.*/./; q'`
22485 done
22486 test ! -n "$as_dirs" || mkdir $as_dirs
22487 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22488 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22489 { (exit 1); exit 1; }; }; }
22490
22491 ac_builddir=.
22492
22493 if test "$ac_dir" != .; then
22494 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22495 # A "../" for each directory in $ac_dir_suffix.
22496 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22497 else
22498 ac_dir_suffix= ac_top_builddir=
22499 fi
22500
22501 case $srcdir in
22502 .) # No --srcdir option. We are building in place.
22503 ac_srcdir=.
22504 if test -z "$ac_top_builddir"; then
22505 ac_top_srcdir=.
22506 else
22507 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22508 fi ;;
22509 [\\/]* | ?:[\\/]* ) # Absolute path.
22510 ac_srcdir=$srcdir$ac_dir_suffix;
22511 ac_top_srcdir=$srcdir ;;
22512 *) # Relative path.
22513 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22514 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22515 esac
22516
22517 # Do not use `cd foo && pwd` to compute absolute paths, because
22518 # the directories may not exist.
22519 case `pwd` in
22520 .) ac_abs_builddir="$ac_dir";;
22521 *)
22522 case "$ac_dir" in
22523 .) ac_abs_builddir=`pwd`;;
22524 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22525 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22526 esac;;
22527 esac
22528 case $ac_abs_builddir in
22529 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22530 *)
22531 case ${ac_top_builddir}. in
22532 .) ac_abs_top_builddir=$ac_abs_builddir;;
22533 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22534 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22535 esac;;
22536 esac
22537 case $ac_abs_builddir in
22538 .) ac_abs_srcdir=$ac_srcdir;;
22539 *)
22540 case $ac_srcdir in
22541 .) ac_abs_srcdir=$ac_abs_builddir;;
22542 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22543 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22544 esac;;
22545 esac
22546 case $ac_abs_builddir in
22547 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22548 *)
22549 case $ac_top_srcdir in
22550 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22551 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22552 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22553 esac;;
22554 esac
22555
22556
22557 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22558 echo "$as_me: executing $ac_dest commands" >&6;}
22559 case $ac_dest in
22560 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
22561 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22562 # Strip MF so we end up with the name of the file.
22563 mf=`echo "$mf" | sed -e 's/:.*$//'`
22564 # Check whether this is an Automake generated Makefile or not.
22565 # We used to match only the files named `Makefile.in', but
22566 # some people rename them; so instead we look at the file content.
22567 # Grep'ing the first line is not enough: some people post-process
22568 # each Makefile.in and add a new line on top of each file to say so.
22569 # So let's grep whole file.
22570 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22571 dirpart=`(dirname "$mf") 2>/dev/null ||
22572 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22573 X"$mf" : 'X\(//\)[^/]' \| \
22574 X"$mf" : 'X\(//\)$' \| \
22575 X"$mf" : 'X\(/\)' \| \
22576 . : '\(.\)' 2>/dev/null ||
22577 echo X"$mf" |
22578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22580 /^X\(\/\/\)$/{ s//\1/; q; }
22581 /^X\(\/\).*/{ s//\1/; q; }
22582 s/.*/./; q'`
22583 else
22584 continue
22585 fi
22586 # Extract the definition of DEPDIR, am__include, and am__quote
22587 # from the Makefile without running `make'.
22588 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22589 test -z "$DEPDIR" && continue
22590 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22591 test -z "am__include" && continue
22592 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22593 # When using ansi2knr, U may be empty or an underscore; expand it
22594 U=`sed -n 's/^U = //p' < "$mf"`
22595 # Find all dependency output files, they are included files with
22596 # $(DEPDIR) in their names. We invoke sed twice because it is the
22597 # simplest approach to changing $(DEPDIR) to its actual value in the
22598 # expansion.
22599 for file in `sed -n "
22600 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22601 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22602 # Make sure the directory exists.
22603 test -f "$dirpart/$file" && continue
22604 fdir=`(dirname "$file") 2>/dev/null ||
22605 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22606 X"$file" : 'X\(//\)[^/]' \| \
22607 X"$file" : 'X\(//\)$' \| \
22608 X"$file" : 'X\(/\)' \| \
22609 . : '\(.\)' 2>/dev/null ||
22610 echo X"$file" |
22611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22613 /^X\(\/\/\)$/{ s//\1/; q; }
22614 /^X\(\/\).*/{ s//\1/; q; }
22615 s/.*/./; q'`
22616 { if $as_mkdir_p; then
22617 mkdir -p $dirpart/$fdir
22618 else
22619 as_dir=$dirpart/$fdir
22620 as_dirs=
22621 while test ! -d "$as_dir"; do
22622 as_dirs="$as_dir $as_dirs"
22623 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22625 X"$as_dir" : 'X\(//\)[^/]' \| \
22626 X"$as_dir" : 'X\(//\)$' \| \
22627 X"$as_dir" : 'X\(/\)' \| \
22628 . : '\(.\)' 2>/dev/null ||
22629 echo X"$as_dir" |
22630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22631 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22632 /^X\(\/\/\)$/{ s//\1/; q; }
22633 /^X\(\/\).*/{ s//\1/; q; }
22634 s/.*/./; q'`
22635 done
22636 test ! -n "$as_dirs" || mkdir $as_dirs
22637 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22638 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22639 { (exit 1); exit 1; }; }; }
22640
22641 # echo "creating $dirpart/$file"
22642 echo '# dummy' > "$dirpart/$file"
22643 done
22644 done
22645 ;;
22646 default )
22647
22648 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
22649 mv -f Makefile.tmp Makefile
22650
22651
22652 case x$CONFIG_HEADERS in
22653 xconfig.h:config.in)
22654 echo > stamp-h ;;
22655 esac
22656 ;;
22657 esac
22658 done
22659 _ACEOF
22660
22661 cat >>$CONFIG_STATUS <<\_ACEOF
22662
22663 { (exit 0); exit 0; }
22664 _ACEOF
22665 chmod +x $CONFIG_STATUS
22666 ac_clean_files=$ac_clean_files_save
22667
22668
22669 # configure is writing to config.log, and then calls config.status.
22670 # config.status does its own redirection, appending to config.log.
22671 # Unfortunately, on DOS this fails, as config.log is still kept open
22672 # by configure, so config.status won't be able to write to it; its
22673 # output is simply discarded. So we exec the FD to /dev/null,
22674 # effectively closing config.log, so it can be properly (re)opened and
22675 # appended to by config.status. When coming back to configure, we
22676 # need to make the FD available again.
22677 if test "$no_create" != yes; then
22678 ac_cs_success=:
22679 ac_config_status_args=
22680 test "$silent" = yes &&
22681 ac_config_status_args="$ac_config_status_args --quiet"
22682 exec 5>/dev/null
22683 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22684 exec 5>>config.log
22685 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22686 # would make configure fail if this is the last instruction.
22687 $ac_cs_success || { (exit 1); exit 1; }
22688 fi
22689
22690 #
22691 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
22692 #
22693 if test "$no_recursion" != yes; then
22694
22695 # Remove --cache-file and --srcdir arguments so they do not pile up.
22696 ac_sub_configure_args=
22697 ac_prev=
22698 eval "set x $ac_configure_args"
22699 shift
22700 for ac_arg
22701 do
22702 if test -n "$ac_prev"; then
22703 ac_prev=
22704 continue
22705 fi
22706 case $ac_arg in
22707 -cache-file | --cache-file | --cache-fil | --cache-fi \
22708 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22709 ac_prev=cache_file ;;
22710 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22711 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22712 | --c=*)
22713 ;;
22714 --config-cache | -C)
22715 ;;
22716 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22717 ac_prev=srcdir ;;
22718 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22719 ;;
22720 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22721 ac_prev=prefix ;;
22722 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22723 ;;
22724 *)
22725 case $ac_arg in
22726 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22727 esac
22728 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22729 esac
22730 done
22731
22732 # Always prepend --prefix to ensure using the same prefix
22733 # in subdir configurations.
22734 ac_arg="--prefix=$prefix"
22735 case $ac_arg in
22736 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22737 esac
22738 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22739
22740 ac_popdir=`pwd`
22741 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22742
22743 # Do not complain, so a configure script can configure whichever
22744 # parts of a large source tree are present.
22745 test -d "$srcdir/$ac_dir" || continue
22746
22747 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
22748 echo "$as_me: configuring in $ac_dir" >&6;}
22749 { if $as_mkdir_p; then
22750 mkdir -p "$ac_dir"
22751 else
22752 as_dir="$ac_dir"
22753 as_dirs=
22754 while test ! -d "$as_dir"; do
22755 as_dirs="$as_dir $as_dirs"
22756 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22757 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22758 X"$as_dir" : 'X\(//\)[^/]' \| \
22759 X"$as_dir" : 'X\(//\)$' \| \
22760 X"$as_dir" : 'X\(/\)' \| \
22761 . : '\(.\)' 2>/dev/null ||
22762 echo X"$as_dir" |
22763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22764 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22765 /^X\(\/\/\)$/{ s//\1/; q; }
22766 /^X\(\/\).*/{ s//\1/; q; }
22767 s/.*/./; q'`
22768 done
22769 test ! -n "$as_dirs" || mkdir $as_dirs
22770 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22771 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22772 { (exit 1); exit 1; }; }; }
22773
22774 ac_builddir=.
22775
22776 if test "$ac_dir" != .; then
22777 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22778 # A "../" for each directory in $ac_dir_suffix.
22779 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22780 else
22781 ac_dir_suffix= ac_top_builddir=
22782 fi
22783
22784 case $srcdir in
22785 .) # No --srcdir option. We are building in place.
22786 ac_srcdir=.
22787 if test -z "$ac_top_builddir"; then
22788 ac_top_srcdir=.
22789 else
22790 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22791 fi ;;
22792 [\\/]* | ?:[\\/]* ) # Absolute path.
22793 ac_srcdir=$srcdir$ac_dir_suffix;
22794 ac_top_srcdir=$srcdir ;;
22795 *) # Relative path.
22796 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22797 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22798 esac
22799
22800 # Do not use `cd foo && pwd` to compute absolute paths, because
22801 # the directories may not exist.
22802 case `pwd` in
22803 .) ac_abs_builddir="$ac_dir";;
22804 *)
22805 case "$ac_dir" in
22806 .) ac_abs_builddir=`pwd`;;
22807 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22808 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22809 esac;;
22810 esac
22811 case $ac_abs_builddir in
22812 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22813 *)
22814 case ${ac_top_builddir}. in
22815 .) ac_abs_top_builddir=$ac_abs_builddir;;
22816 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22817 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22818 esac;;
22819 esac
22820 case $ac_abs_builddir in
22821 .) ac_abs_srcdir=$ac_srcdir;;
22822 *)
22823 case $ac_srcdir in
22824 .) ac_abs_srcdir=$ac_abs_builddir;;
22825 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22826 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22827 esac;;
22828 esac
22829 case $ac_abs_builddir in
22830 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22831 *)
22832 case $ac_top_srcdir in
22833 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22834 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22835 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22836 esac;;
22837 esac
22838
22839
22840 cd "$ac_dir"
22841
22842 # Check for guested configure; otherwise get Cygnus style configure.
22843 if test -f "$ac_srcdir/configure.gnu"; then
22844 ac_sub_configure=$ac_srcdir/configure.gnu
22845 elif test -f "$ac_srcdir/configure"; then
22846 ac_sub_configure=$ac_srcdir/configure
22847 elif test -f "$ac_srcdir/configure.in"; then
22848 # This should be Cygnus configure.
22849 ac_sub_configure=$ac_aux_dir/configure
22850 else
22851 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22852 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22853 ac_sub_configure=
22854 fi
22855
22856 # The recursion is here.
22857 if test -n "$ac_sub_configure"; then
22858 # Make the cache file name correct relative to the subdirectory.
22859 case $cache_file in
22860 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22861 *) # Relative path.
22862 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
22863 esac
22864
22865 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22866 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22867 # The eval makes quoting arguments work.
22868 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22869 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22870 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22871 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22872 { (exit 1); exit 1; }; }
22873 fi
22874
22875 cd "$ac_popdir"
22876 done
22877 fi
22878
22879
22880 exit 0
This page took 0.688325 seconds and 5 git commands to generate.