c76514538590ed3221f5faa9c38671d1c779424b
[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 LIBICONV LIBICONV_INCLUDE LIBICONV_LIBDIR 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 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-curses use the curses library instead of the termcap
887 library
888 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
889 --with-bugurl=URL Direct users to URL to report a bug
890 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
891 --with-system-readline use installed readline library
892 --with-expat include expat support (auto/yes/no)
893 --with-gnu-ld assume the C compiler uses GNU ld default=no
894 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
895 --without-libexpat-prefix don't search for libexpat in includedir and libdir
896 --with-python include python support (auto/yes/no/<path>)
897 --without-included-regex don't use included regex; this is the default
898 on systems with version 2 of the GNU C library
899 (use with caution on other system)
900 --with-sysroot=DIR Search for usr/lib et al within DIR.
901 --with-system-gdbinit=file Automatically load a system-wide gdbinit file
902 --with-tcl directory containing tcl configuration (tclConfig.sh)
903 --with-tk directory containing tk configuration (tkConfig.sh)
904 --with-x use the X Window System
905
906 Some influential environment variables:
907 CC C compiler command
908 CFLAGS C compiler flags
909 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
910 nonstandard directory <lib dir>
911 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
912 headers in a nonstandard directory <include dir>
913 CPP C preprocessor
914
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
917
918 _ACEOF
919 fi
920
921 if test "$ac_init_help" = "recursive"; then
922 # If there are subdirs, report their specific --help.
923 ac_popdir=`pwd`
924 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925 test -d $ac_dir || continue
926 ac_builddir=.
927
928 if test "$ac_dir" != .; then
929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930 # A "../" for each directory in $ac_dir_suffix.
931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 else
933 ac_dir_suffix= ac_top_builddir=
934 fi
935
936 case $srcdir in
937 .) # No --srcdir option. We are building in place.
938 ac_srcdir=.
939 if test -z "$ac_top_builddir"; then
940 ac_top_srcdir=.
941 else
942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943 fi ;;
944 [\\/]* | ?:[\\/]* ) # Absolute path.
945 ac_srcdir=$srcdir$ac_dir_suffix;
946 ac_top_srcdir=$srcdir ;;
947 *) # Relative path.
948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 esac
951
952 # Do not use `cd foo && pwd` to compute absolute paths, because
953 # the directories may not exist.
954 case `pwd` in
955 .) ac_abs_builddir="$ac_dir";;
956 *)
957 case "$ac_dir" in
958 .) ac_abs_builddir=`pwd`;;
959 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
960 *) ac_abs_builddir=`pwd`/"$ac_dir";;
961 esac;;
962 esac
963 case $ac_abs_builddir in
964 .) ac_abs_top_builddir=${ac_top_builddir}.;;
965 *)
966 case ${ac_top_builddir}. in
967 .) ac_abs_top_builddir=$ac_abs_builddir;;
968 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
969 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
970 esac;;
971 esac
972 case $ac_abs_builddir in
973 .) ac_abs_srcdir=$ac_srcdir;;
974 *)
975 case $ac_srcdir in
976 .) ac_abs_srcdir=$ac_abs_builddir;;
977 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
978 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
979 esac;;
980 esac
981 case $ac_abs_builddir in
982 .) ac_abs_top_srcdir=$ac_top_srcdir;;
983 *)
984 case $ac_top_srcdir in
985 .) ac_abs_top_srcdir=$ac_abs_builddir;;
986 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
987 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
988 esac;;
989 esac
990
991 cd $ac_dir
992 # Check for guested configure; otherwise get Cygnus style configure.
993 if test -f $ac_srcdir/configure.gnu; then
994 echo
995 $SHELL $ac_srcdir/configure.gnu --help=recursive
996 elif test -f $ac_srcdir/configure; then
997 echo
998 $SHELL $ac_srcdir/configure --help=recursive
999 elif test -f $ac_srcdir/configure.ac ||
1000 test -f $ac_srcdir/configure.in; then
1001 echo
1002 $ac_configure --help
1003 else
1004 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1005 fi
1006 cd $ac_popdir
1007 done
1008 fi
1009
1010 test -n "$ac_init_help" && exit 0
1011 if $ac_init_version; then
1012 cat <<\_ACEOF
1013
1014 Copyright (C) 2003 Free Software Foundation, Inc.
1015 This configure script is free software; the Free Software Foundation
1016 gives unlimited permission to copy, distribute and modify it.
1017 _ACEOF
1018 exit 0
1019 fi
1020 exec 5>config.log
1021 cat >&5 <<_ACEOF
1022 This file contains any messages produced by compilers while
1023 running configure, to aid debugging if configure makes a mistake.
1024
1025 It was created by $as_me, which was
1026 generated by GNU Autoconf 2.59. Invocation command line was
1027
1028 $ $0 $@
1029
1030 _ACEOF
1031 {
1032 cat <<_ASUNAME
1033 ## --------- ##
1034 ## Platform. ##
1035 ## --------- ##
1036
1037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1042
1043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1045
1046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1049 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1053
1054 _ASUNAME
1055
1056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1057 for as_dir in $PATH
1058 do
1059 IFS=$as_save_IFS
1060 test -z "$as_dir" && as_dir=.
1061 echo "PATH: $as_dir"
1062 done
1063
1064 } >&5
1065
1066 cat >&5 <<_ACEOF
1067
1068
1069 ## ----------- ##
1070 ## Core tests. ##
1071 ## ----------- ##
1072
1073 _ACEOF
1074
1075
1076 # Keep a trace of the command line.
1077 # Strip out --no-create and --no-recursion so they do not pile up.
1078 # Strip out --silent because we don't want to record it for future runs.
1079 # Also quote any args containing shell meta-characters.
1080 # Make two passes to allow for proper duplicate-argument suppression.
1081 ac_configure_args=
1082 ac_configure_args0=
1083 ac_configure_args1=
1084 ac_sep=
1085 ac_must_keep_next=false
1086 for ac_pass in 1 2
1087 do
1088 for ac_arg
1089 do
1090 case $ac_arg in
1091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093 | -silent | --silent | --silen | --sile | --sil)
1094 continue ;;
1095 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1096 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1097 esac
1098 case $ac_pass in
1099 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1100 2)
1101 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1102 if test $ac_must_keep_next = true; then
1103 ac_must_keep_next=false # Got value, back to normal.
1104 else
1105 case $ac_arg in
1106 *=* | --config-cache | -C | -disable-* | --disable-* \
1107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1109 | -with-* | --with-* | -without-* | --without-* | --x)
1110 case "$ac_configure_args0 " in
1111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1112 esac
1113 ;;
1114 -* ) ac_must_keep_next=true ;;
1115 esac
1116 fi
1117 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1118 # Get rid of the leading space.
1119 ac_sep=" "
1120 ;;
1121 esac
1122 done
1123 done
1124 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1125 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1126
1127 # When interrupted or exit'd, cleanup temporary files, and complete
1128 # config.log. We remove comments because anyway the quotes in there
1129 # would cause problems or look ugly.
1130 # WARNING: Be sure not to use single quotes in there, as some shells,
1131 # such as our DU 5.0 friend, will then `close' the trap.
1132 trap 'exit_status=$?
1133 # Save into config.log some information that might help in debugging.
1134 {
1135 echo
1136
1137 cat <<\_ASBOX
1138 ## ---------------- ##
1139 ## Cache variables. ##
1140 ## ---------------- ##
1141 _ASBOX
1142 echo
1143 # The following way of writing the cache mishandles newlines in values,
1144 {
1145 (set) 2>&1 |
1146 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1147 *ac_space=\ *)
1148 sed -n \
1149 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1150 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1151 ;;
1152 *)
1153 sed -n \
1154 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1155 ;;
1156 esac;
1157 }
1158 echo
1159
1160 cat <<\_ASBOX
1161 ## ----------------- ##
1162 ## Output variables. ##
1163 ## ----------------- ##
1164 _ASBOX
1165 echo
1166 for ac_var in $ac_subst_vars
1167 do
1168 eval ac_val=$`echo $ac_var`
1169 echo "$ac_var='"'"'$ac_val'"'"'"
1170 done | sort
1171 echo
1172
1173 if test -n "$ac_subst_files"; then
1174 cat <<\_ASBOX
1175 ## ------------- ##
1176 ## Output files. ##
1177 ## ------------- ##
1178 _ASBOX
1179 echo
1180 for ac_var in $ac_subst_files
1181 do
1182 eval ac_val=$`echo $ac_var`
1183 echo "$ac_var='"'"'$ac_val'"'"'"
1184 done | sort
1185 echo
1186 fi
1187
1188 if test -s confdefs.h; then
1189 cat <<\_ASBOX
1190 ## ----------- ##
1191 ## confdefs.h. ##
1192 ## ----------- ##
1193 _ASBOX
1194 echo
1195 sed "/^$/d" confdefs.h | sort
1196 echo
1197 fi
1198 test "$ac_signal" != 0 &&
1199 echo "$as_me: caught signal $ac_signal"
1200 echo "$as_me: exit $exit_status"
1201 } >&5
1202 rm -f core *.core &&
1203 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1204 exit $exit_status
1205 ' 0
1206 for ac_signal in 1 2 13 15; do
1207 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1208 done
1209 ac_signal=0
1210
1211 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1212 rm -rf conftest* confdefs.h
1213 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1214 echo >confdefs.h
1215
1216 # Predefined preprocessor variables.
1217
1218 cat >>confdefs.h <<_ACEOF
1219 #define PACKAGE_NAME "$PACKAGE_NAME"
1220 _ACEOF
1221
1222
1223 cat >>confdefs.h <<_ACEOF
1224 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1225 _ACEOF
1226
1227
1228 cat >>confdefs.h <<_ACEOF
1229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1230 _ACEOF
1231
1232
1233 cat >>confdefs.h <<_ACEOF
1234 #define PACKAGE_STRING "$PACKAGE_STRING"
1235 _ACEOF
1236
1237
1238 cat >>confdefs.h <<_ACEOF
1239 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1240 _ACEOF
1241
1242
1243 # Let the site file select an alternate cache file if it wants to.
1244 # Prefer explicitly selected file to automatically selected ones.
1245 if test -z "$CONFIG_SITE"; then
1246 if test "x$prefix" != xNONE; then
1247 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1248 else
1249 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1250 fi
1251 fi
1252 for ac_site_file in $CONFIG_SITE; do
1253 if test -r "$ac_site_file"; then
1254 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1255 echo "$as_me: loading site script $ac_site_file" >&6;}
1256 sed 's/^/| /' "$ac_site_file" >&5
1257 . "$ac_site_file"
1258 fi
1259 done
1260
1261 if test -r "$cache_file"; then
1262 # Some versions of bash will fail to source /dev/null (special
1263 # files actually), so we avoid doing that.
1264 if test -f "$cache_file"; then
1265 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1266 echo "$as_me: loading cache $cache_file" >&6;}
1267 case $cache_file in
1268 [\\/]* | ?:[\\/]* ) . $cache_file;;
1269 *) . ./$cache_file;;
1270 esac
1271 fi
1272 else
1273 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1274 echo "$as_me: creating cache $cache_file" >&6;}
1275 >$cache_file
1276 fi
1277
1278 # Check that the precious variables saved in the cache have kept the same
1279 # value.
1280 ac_cache_corrupted=false
1281 for ac_var in `(set) 2>&1 |
1282 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1283 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1284 eval ac_new_set=\$ac_env_${ac_var}_set
1285 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1286 eval ac_new_val="\$ac_env_${ac_var}_value"
1287 case $ac_old_set,$ac_new_set in
1288 set,)
1289 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1291 ac_cache_corrupted=: ;;
1292 ,set)
1293 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1294 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1295 ac_cache_corrupted=: ;;
1296 ,);;
1297 *)
1298 if test "x$ac_old_val" != "x$ac_new_val"; then
1299 # differences in whitespace do not lead to failure.
1300 ac_old_val_w=`echo x $ac_old_val`
1301 ac_new_val_w=`echo x $ac_new_val`
1302 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1303 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1304 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1305 ac_cache_corrupted=:
1306 else
1307 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1308 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1309 eval $ac_var=\$ac_old_val
1310 fi
1311 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1312 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1313 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1314 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1315 fi;;
1316 esac
1317 # Pass precious variables to config.status.
1318 if test "$ac_new_set" = set; then
1319 case $ac_new_val in
1320 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1321 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1322 *) ac_arg=$ac_var=$ac_new_val ;;
1323 esac
1324 case " $ac_configure_args " in
1325 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1326 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1327 esac
1328 fi
1329 done
1330 if $ac_cache_corrupted; then
1331 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1332 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1333 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1334 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1335 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1336 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1337 { (exit 1); exit 1; }; }
1338 fi
1339
1340 ac_ext=c
1341 ac_cpp='$CPP $CPPFLAGS'
1342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1345
1346
1347 gl_header_list="$gl_header_list stdint.h"
1348 gl_header_list="$gl_header_list wchar.h"
1349 gl_header_list="$gl_header_list string.h"
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370 ac_config_headers="$ac_config_headers config.h:config.in"
1371
1372 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1373 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1374 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1375 if test "${enable_maintainer_mode+set}" = set; then
1376 enableval="$enable_maintainer_mode"
1377 USE_MAINTAINER_MODE=$enableval
1378 else
1379 USE_MAINTAINER_MODE=no
1380 fi;
1381 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1382 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1383
1384
1385 if test $USE_MAINTAINER_MODE = yes; then
1386 MAINTAINER_MODE_TRUE=
1387 MAINTAINER_MODE_FALSE='#'
1388 else
1389 MAINTAINER_MODE_TRUE='#'
1390 MAINTAINER_MODE_FALSE=
1391 fi
1392
1393 MAINT=$MAINTAINER_MODE_TRUE
1394
1395
1396
1397 ac_ext=c
1398 ac_cpp='$CPP $CPPFLAGS'
1399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1402 if test -n "$ac_tool_prefix"; then
1403 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1404 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1405 echo "$as_me:$LINENO: checking for $ac_word" >&5
1406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1407 if test "${ac_cv_prog_CC+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 else
1410 if test -n "$CC"; then
1411 ac_cv_prog_CC="$CC" # Let the user override the test.
1412 else
1413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1414 for as_dir in $PATH
1415 do
1416 IFS=$as_save_IFS
1417 test -z "$as_dir" && as_dir=.
1418 for ac_exec_ext in '' $ac_executable_extensions; do
1419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1420 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1422 break 2
1423 fi
1424 done
1425 done
1426
1427 fi
1428 fi
1429 CC=$ac_cv_prog_CC
1430 if test -n "$CC"; then
1431 echo "$as_me:$LINENO: result: $CC" >&5
1432 echo "${ECHO_T}$CC" >&6
1433 else
1434 echo "$as_me:$LINENO: result: no" >&5
1435 echo "${ECHO_T}no" >&6
1436 fi
1437
1438 fi
1439 if test -z "$ac_cv_prog_CC"; then
1440 ac_ct_CC=$CC
1441 # Extract the first word of "gcc", so it can be a program name with args.
1442 set dummy gcc; ac_word=$2
1443 echo "$as_me:$LINENO: checking for $ac_word" >&5
1444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1446 echo $ECHO_N "(cached) $ECHO_C" >&6
1447 else
1448 if test -n "$ac_ct_CC"; then
1449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1450 else
1451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1452 for as_dir in $PATH
1453 do
1454 IFS=$as_save_IFS
1455 test -z "$as_dir" && as_dir=.
1456 for ac_exec_ext in '' $ac_executable_extensions; do
1457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1458 ac_cv_prog_ac_ct_CC="gcc"
1459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 break 2
1461 fi
1462 done
1463 done
1464
1465 fi
1466 fi
1467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1468 if test -n "$ac_ct_CC"; then
1469 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1470 echo "${ECHO_T}$ac_ct_CC" >&6
1471 else
1472 echo "$as_me:$LINENO: result: no" >&5
1473 echo "${ECHO_T}no" >&6
1474 fi
1475
1476 CC=$ac_ct_CC
1477 else
1478 CC="$ac_cv_prog_CC"
1479 fi
1480
1481 if test -z "$CC"; then
1482 if test -n "$ac_tool_prefix"; then
1483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1484 set dummy ${ac_tool_prefix}cc; ac_word=$2
1485 echo "$as_me:$LINENO: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 else
1490 if test -n "$CC"; then
1491 ac_cv_prog_CC="$CC" # Let the user override the test.
1492 else
1493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1495 do
1496 IFS=$as_save_IFS
1497 test -z "$as_dir" && as_dir=.
1498 for ac_exec_ext in '' $ac_executable_extensions; do
1499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500 ac_cv_prog_CC="${ac_tool_prefix}cc"
1501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502 break 2
1503 fi
1504 done
1505 done
1506
1507 fi
1508 fi
1509 CC=$ac_cv_prog_CC
1510 if test -n "$CC"; then
1511 echo "$as_me:$LINENO: result: $CC" >&5
1512 echo "${ECHO_T}$CC" >&6
1513 else
1514 echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1516 fi
1517
1518 fi
1519 if test -z "$ac_cv_prog_CC"; then
1520 ac_ct_CC=$CC
1521 # Extract the first word of "cc", so it can be a program name with args.
1522 set dummy cc; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1526 echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528 if test -n "$ac_ct_CC"; then
1529 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1530 else
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1533 do
1534 IFS=$as_save_IFS
1535 test -z "$as_dir" && as_dir=.
1536 for ac_exec_ext in '' $ac_executable_extensions; do
1537 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538 ac_cv_prog_ac_ct_CC="cc"
1539 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540 break 2
1541 fi
1542 done
1543 done
1544
1545 fi
1546 fi
1547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1548 if test -n "$ac_ct_CC"; then
1549 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1550 echo "${ECHO_T}$ac_ct_CC" >&6
1551 else
1552 echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1554 fi
1555
1556 CC=$ac_ct_CC
1557 else
1558 CC="$ac_cv_prog_CC"
1559 fi
1560
1561 fi
1562 if test -z "$CC"; then
1563 # Extract the first word of "cc", so it can be a program name with args.
1564 set dummy cc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 else
1570 if test -n "$CC"; then
1571 ac_cv_prog_CC="$CC" # Let the user override the test.
1572 else
1573 ac_prog_rejected=no
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1576 do
1577 IFS=$as_save_IFS
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1582 ac_prog_rejected=yes
1583 continue
1584 fi
1585 ac_cv_prog_CC="cc"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1587 break 2
1588 fi
1589 done
1590 done
1591
1592 if test $ac_prog_rejected = yes; then
1593 # We found a bogon in the path, so make sure we never use it.
1594 set dummy $ac_cv_prog_CC
1595 shift
1596 if test $# != 0; then
1597 # We chose a different compiler from the bogus one.
1598 # However, it has the same basename, so the bogon will be chosen
1599 # first if we set CC to just the basename; use the full file name.
1600 shift
1601 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1602 fi
1603 fi
1604 fi
1605 fi
1606 CC=$ac_cv_prog_CC
1607 if test -n "$CC"; then
1608 echo "$as_me:$LINENO: result: $CC" >&5
1609 echo "${ECHO_T}$CC" >&6
1610 else
1611 echo "$as_me:$LINENO: result: no" >&5
1612 echo "${ECHO_T}no" >&6
1613 fi
1614
1615 fi
1616 if test -z "$CC"; then
1617 if test -n "$ac_tool_prefix"; then
1618 for ac_prog in cl
1619 do
1620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 if test -n "$CC"; then
1628 ac_cv_prog_CC="$CC" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1632 do
1633 IFS=$as_save_IFS
1634 test -z "$as_dir" && as_dir=.
1635 for ac_exec_ext in '' $ac_executable_extensions; do
1636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639 break 2
1640 fi
1641 done
1642 done
1643
1644 fi
1645 fi
1646 CC=$ac_cv_prog_CC
1647 if test -n "$CC"; then
1648 echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1650 else
1651 echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1653 fi
1654
1655 test -n "$CC" && break
1656 done
1657 fi
1658 if test -z "$CC"; then
1659 ac_ct_CC=$CC
1660 for ac_prog in cl
1661 do
1662 # Extract the first word of "$ac_prog", so it can be a program name with args.
1663 set dummy $ac_prog; ac_word=$2
1664 echo "$as_me:$LINENO: checking for $ac_word" >&5
1665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 else
1669 if test -n "$ac_ct_CC"; then
1670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1671 else
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 for as_dir in $PATH
1674 do
1675 IFS=$as_save_IFS
1676 test -z "$as_dir" && as_dir=.
1677 for ac_exec_ext in '' $ac_executable_extensions; do
1678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1679 ac_cv_prog_ac_ct_CC="$ac_prog"
1680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1681 break 2
1682 fi
1683 done
1684 done
1685
1686 fi
1687 fi
1688 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1689 if test -n "$ac_ct_CC"; then
1690 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1691 echo "${ECHO_T}$ac_ct_CC" >&6
1692 else
1693 echo "$as_me:$LINENO: result: no" >&5
1694 echo "${ECHO_T}no" >&6
1695 fi
1696
1697 test -n "$ac_ct_CC" && break
1698 done
1699
1700 CC=$ac_ct_CC
1701 fi
1702
1703 fi
1704
1705
1706 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1707 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1708 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1709 See \`config.log' for more details." >&5
1710 echo "$as_me: error: no acceptable C compiler found in \$PATH
1711 See \`config.log' for more details." >&2;}
1712 { (exit 1); exit 1; }; }; }
1713
1714 # Provide some information about the compiler.
1715 echo "$as_me:$LINENO:" \
1716 "checking for C compiler version" >&5
1717 ac_compiler=`set X $ac_compile; echo $2`
1718 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1719 (eval $ac_compiler --version </dev/null >&5) 2>&5
1720 ac_status=$?
1721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1722 (exit $ac_status); }
1723 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1724 (eval $ac_compiler -v </dev/null >&5) 2>&5
1725 ac_status=$?
1726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727 (exit $ac_status); }
1728 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1729 (eval $ac_compiler -V </dev/null >&5) 2>&5
1730 ac_status=$?
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }
1733
1734 cat >conftest.$ac_ext <<_ACEOF
1735 /* confdefs.h. */
1736 _ACEOF
1737 cat confdefs.h >>conftest.$ac_ext
1738 cat >>conftest.$ac_ext <<_ACEOF
1739 /* end confdefs.h. */
1740
1741 int
1742 main ()
1743 {
1744
1745 ;
1746 return 0;
1747 }
1748 _ACEOF
1749 ac_clean_files_save=$ac_clean_files
1750 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1751 # Try to create an executable without -o first, disregard a.out.
1752 # It will help us diagnose broken compilers, and finding out an intuition
1753 # of exeext.
1754 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1755 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1756 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1757 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1758 (eval $ac_link_default) 2>&5
1759 ac_status=$?
1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761 (exit $ac_status); }; then
1762 # Find the output, starting from the most likely. This scheme is
1763 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1764 # resort.
1765
1766 # Be careful to initialize this variable, since it used to be cached.
1767 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1768 ac_cv_exeext=
1769 # b.out is created by i960 compilers.
1770 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1771 do
1772 test -f "$ac_file" || continue
1773 case $ac_file in
1774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1775 ;;
1776 conftest.$ac_ext )
1777 # This is the source file.
1778 ;;
1779 [ab].out )
1780 # We found the default executable, but exeext='' is most
1781 # certainly right.
1782 break;;
1783 *.* )
1784 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1785 # FIXME: I believe we export ac_cv_exeext for Libtool,
1786 # but it would be cool to find out if it's true. Does anybody
1787 # maintain Libtool? --akim.
1788 export ac_cv_exeext
1789 break;;
1790 * )
1791 break;;
1792 esac
1793 done
1794 else
1795 echo "$as_me: failed program was:" >&5
1796 sed 's/^/| /' conftest.$ac_ext >&5
1797
1798 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1799 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1800 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1801 See \`config.log' for more details." >&5
1802 echo "$as_me: error: C compiler cannot create executables
1803 See \`config.log' for more details." >&2;}
1804 { (exit 77); exit 77; }; }; }
1805 fi
1806
1807 ac_exeext=$ac_cv_exeext
1808 echo "$as_me:$LINENO: result: $ac_file" >&5
1809 echo "${ECHO_T}$ac_file" >&6
1810
1811 # Check the compiler produces executables we can run. If not, either
1812 # the compiler is broken, or we cross compile.
1813 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1814 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1815 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1816 # If not cross compiling, check that we can run a simple program.
1817 if test "$cross_compiling" != yes; then
1818 if { ac_try='./$ac_file'
1819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1820 (eval $ac_try) 2>&5
1821 ac_status=$?
1822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823 (exit $ac_status); }; }; then
1824 cross_compiling=no
1825 else
1826 if test "$cross_compiling" = maybe; then
1827 cross_compiling=yes
1828 else
1829 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1830 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1831 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1832 If you meant to cross compile, use \`--host'.
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: cannot run C compiled programs.
1835 If you meant to cross compile, use \`--host'.
1836 See \`config.log' for more details." >&2;}
1837 { (exit 1); exit 1; }; }; }
1838 fi
1839 fi
1840 fi
1841 echo "$as_me:$LINENO: result: yes" >&5
1842 echo "${ECHO_T}yes" >&6
1843
1844 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1845 ac_clean_files=$ac_clean_files_save
1846 # Check the compiler produces executables we can run. If not, either
1847 # the compiler is broken, or we cross compile.
1848 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1849 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1850 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1851 echo "${ECHO_T}$cross_compiling" >&6
1852
1853 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1854 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1856 (eval $ac_link) 2>&5
1857 ac_status=$?
1858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1859 (exit $ac_status); }; then
1860 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1861 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1862 # work properly (i.e., refer to `conftest.exe'), while it won't with
1863 # `rm'.
1864 for ac_file in conftest.exe conftest conftest.*; do
1865 test -f "$ac_file" || continue
1866 case $ac_file in
1867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1869 export ac_cv_exeext
1870 break;;
1871 * ) break;;
1872 esac
1873 done
1874 else
1875 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1876 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1877 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1878 See \`config.log' for more details." >&5
1879 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1880 See \`config.log' for more details." >&2;}
1881 { (exit 1); exit 1; }; }; }
1882 fi
1883
1884 rm -f conftest$ac_cv_exeext
1885 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1886 echo "${ECHO_T}$ac_cv_exeext" >&6
1887
1888 rm -f conftest.$ac_ext
1889 EXEEXT=$ac_cv_exeext
1890 ac_exeext=$EXEEXT
1891 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1892 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1893 if test "${ac_cv_objext+set}" = set; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896 cat >conftest.$ac_ext <<_ACEOF
1897 /* confdefs.h. */
1898 _ACEOF
1899 cat confdefs.h >>conftest.$ac_ext
1900 cat >>conftest.$ac_ext <<_ACEOF
1901 /* end confdefs.h. */
1902
1903 int
1904 main ()
1905 {
1906
1907 ;
1908 return 0;
1909 }
1910 _ACEOF
1911 rm -f conftest.o conftest.obj
1912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913 (eval $ac_compile) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }; then
1917 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1918 case $ac_file in
1919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1921 break;;
1922 esac
1923 done
1924 else
1925 echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1927
1928 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1929 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1930 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1931 See \`config.log' for more details." >&5
1932 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1933 See \`config.log' for more details." >&2;}
1934 { (exit 1); exit 1; }; }; }
1935 fi
1936
1937 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1938 fi
1939 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1940 echo "${ECHO_T}$ac_cv_objext" >&6
1941 OBJEXT=$ac_cv_objext
1942 ac_objext=$OBJEXT
1943 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1944 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1945 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948 cat >conftest.$ac_ext <<_ACEOF
1949 /* confdefs.h. */
1950 _ACEOF
1951 cat confdefs.h >>conftest.$ac_ext
1952 cat >>conftest.$ac_ext <<_ACEOF
1953 /* end confdefs.h. */
1954
1955 int
1956 main ()
1957 {
1958 #ifndef __GNUC__
1959 choke me
1960 #endif
1961
1962 ;
1963 return 0;
1964 }
1965 _ACEOF
1966 rm -f conftest.$ac_objext
1967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1968 (eval $ac_compile) 2>conftest.er1
1969 ac_status=$?
1970 grep -v '^ *+' conftest.er1 >conftest.err
1971 rm -f conftest.er1
1972 cat conftest.err >&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); } &&
1975 { ac_try='test -z "$ac_c_werror_flag"
1976 || test ! -s conftest.err'
1977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1978 (eval $ac_try) 2>&5
1979 ac_status=$?
1980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1981 (exit $ac_status); }; } &&
1982 { ac_try='test -s conftest.$ac_objext'
1983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1984 (eval $ac_try) 2>&5
1985 ac_status=$?
1986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1987 (exit $ac_status); }; }; then
1988 ac_compiler_gnu=yes
1989 else
1990 echo "$as_me: failed program was:" >&5
1991 sed 's/^/| /' conftest.$ac_ext >&5
1992
1993 ac_compiler_gnu=no
1994 fi
1995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1997
1998 fi
1999 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2000 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2001 GCC=`test $ac_compiler_gnu = yes && echo yes`
2002 ac_test_CFLAGS=${CFLAGS+set}
2003 ac_save_CFLAGS=$CFLAGS
2004 CFLAGS="-g"
2005 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2006 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2007 if test "${ac_cv_prog_cc_g+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 else
2010 cat >conftest.$ac_ext <<_ACEOF
2011 /* confdefs.h. */
2012 _ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2016
2017 int
2018 main ()
2019 {
2020
2021 ;
2022 return 0;
2023 }
2024 _ACEOF
2025 rm -f conftest.$ac_objext
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>conftest.er1
2028 ac_status=$?
2029 grep -v '^ *+' conftest.er1 >conftest.err
2030 rm -f conftest.er1
2031 cat conftest.err >&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); } &&
2034 { ac_try='test -z "$ac_c_werror_flag"
2035 || test ! -s conftest.err'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043 (eval $ac_try) 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2047 ac_cv_prog_cc_g=yes
2048 else
2049 echo "$as_me: failed program was:" >&5
2050 sed 's/^/| /' conftest.$ac_ext >&5
2051
2052 ac_cv_prog_cc_g=no
2053 fi
2054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2055 fi
2056 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2057 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2058 if test "$ac_test_CFLAGS" = set; then
2059 CFLAGS=$ac_save_CFLAGS
2060 elif test $ac_cv_prog_cc_g = yes; then
2061 if test "$GCC" = yes; then
2062 CFLAGS="-g -O2"
2063 else
2064 CFLAGS="-g"
2065 fi
2066 else
2067 if test "$GCC" = yes; then
2068 CFLAGS="-O2"
2069 else
2070 CFLAGS=
2071 fi
2072 fi
2073 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2074 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 ac_cv_prog_cc_stdc=no
2079 ac_save_CC=$CC
2080 cat >conftest.$ac_ext <<_ACEOF
2081 /* confdefs.h. */
2082 _ACEOF
2083 cat confdefs.h >>conftest.$ac_ext
2084 cat >>conftest.$ac_ext <<_ACEOF
2085 /* end confdefs.h. */
2086 #include <stdarg.h>
2087 #include <stdio.h>
2088 #include <sys/types.h>
2089 #include <sys/stat.h>
2090 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2091 struct buf { int x; };
2092 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2093 static char *e (p, i)
2094 char **p;
2095 int i;
2096 {
2097 return p[i];
2098 }
2099 static char *f (char * (*g) (char **, int), char **p, ...)
2100 {
2101 char *s;
2102 va_list v;
2103 va_start (v,p);
2104 s = g (p, va_arg (v,int));
2105 va_end (v);
2106 return s;
2107 }
2108
2109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2110 function prototypes and stuff, but not '\xHH' hex character constants.
2111 These don't provoke an error unfortunately, instead are silently treated
2112 as 'x'. The following induces an error, until -std1 is added to get
2113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2114 array size at least. It's necessary to write '\x00'==0 to get something
2115 that's true only with -std1. */
2116 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2117
2118 int test (int i, double x);
2119 struct s1 {int (*f) (int a);};
2120 struct s2 {int (*f) (double a);};
2121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2122 int argc;
2123 char **argv;
2124 int
2125 main ()
2126 {
2127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2128 ;
2129 return 0;
2130 }
2131 _ACEOF
2132 # Don't try gcc -ansi; that turns off useful extensions and
2133 # breaks some systems' header files.
2134 # AIX -qlanglvl=ansi
2135 # Ultrix and OSF/1 -std1
2136 # HP-UX 10.20 and later -Ae
2137 # HP-UX older versions -Aa -D_HPUX_SOURCE
2138 # SVR4 -Xc -D__EXTENSIONS__
2139 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2140 do
2141 CC="$ac_save_CC $ac_arg"
2142 rm -f conftest.$ac_objext
2143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>conftest.er1
2145 ac_status=$?
2146 grep -v '^ *+' conftest.er1 >conftest.err
2147 rm -f conftest.er1
2148 cat conftest.err >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
2151 { ac_try='test -z "$ac_c_werror_flag"
2152 || test ! -s conftest.err'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 ac_cv_prog_cc_stdc=$ac_arg
2165 break
2166 else
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2169
2170 fi
2171 rm -f conftest.err conftest.$ac_objext
2172 done
2173 rm -f conftest.$ac_ext conftest.$ac_objext
2174 CC=$ac_save_CC
2175
2176 fi
2177
2178 case "x$ac_cv_prog_cc_stdc" in
2179 x|xno)
2180 echo "$as_me:$LINENO: result: none needed" >&5
2181 echo "${ECHO_T}none needed" >&6 ;;
2182 *)
2183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2184 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2185 CC="$CC $ac_cv_prog_cc_stdc" ;;
2186 esac
2187
2188 # Some people use a C++ compiler to compile C. Since we use `exit',
2189 # in C++ we need to declare it. In case someone uses the same compiler
2190 # for both compiling C and C++ we need to have the C++ compiler decide
2191 # the declaration of exit, since it's the most demanding environment.
2192 cat >conftest.$ac_ext <<_ACEOF
2193 #ifndef __cplusplus
2194 choke me
2195 #endif
2196 _ACEOF
2197 rm -f conftest.$ac_objext
2198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2199 (eval $ac_compile) 2>conftest.er1
2200 ac_status=$?
2201 grep -v '^ *+' conftest.er1 >conftest.err
2202 rm -f conftest.er1
2203 cat conftest.err >&5
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); } &&
2206 { ac_try='test -z "$ac_c_werror_flag"
2207 || test ! -s conftest.err'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2209 (eval $ac_try) 2>&5
2210 ac_status=$?
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; } &&
2213 { ac_try='test -s conftest.$ac_objext'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215 (eval $ac_try) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2219 for ac_declaration in \
2220 '' \
2221 'extern "C" void std::exit (int) throw (); using std::exit;' \
2222 'extern "C" void std::exit (int); using std::exit;' \
2223 'extern "C" void exit (int) throw ();' \
2224 'extern "C" void exit (int);' \
2225 'void exit (int);'
2226 do
2227 cat >conftest.$ac_ext <<_ACEOF
2228 /* confdefs.h. */
2229 _ACEOF
2230 cat confdefs.h >>conftest.$ac_ext
2231 cat >>conftest.$ac_ext <<_ACEOF
2232 /* end confdefs.h. */
2233 $ac_declaration
2234 #include <stdlib.h>
2235 int
2236 main ()
2237 {
2238 exit (42);
2239 ;
2240 return 0;
2241 }
2242 _ACEOF
2243 rm -f conftest.$ac_objext
2244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2245 (eval $ac_compile) 2>conftest.er1
2246 ac_status=$?
2247 grep -v '^ *+' conftest.er1 >conftest.err
2248 rm -f conftest.er1
2249 cat conftest.err >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); } &&
2252 { ac_try='test -z "$ac_c_werror_flag"
2253 || test ! -s conftest.err'
2254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255 (eval $ac_try) 2>&5
2256 ac_status=$?
2257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258 (exit $ac_status); }; } &&
2259 { ac_try='test -s conftest.$ac_objext'
2260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 (eval $ac_try) 2>&5
2262 ac_status=$?
2263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264 (exit $ac_status); }; }; then
2265 :
2266 else
2267 echo "$as_me: failed program was:" >&5
2268 sed 's/^/| /' conftest.$ac_ext >&5
2269
2270 continue
2271 fi
2272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2273 cat >conftest.$ac_ext <<_ACEOF
2274 /* confdefs.h. */
2275 _ACEOF
2276 cat confdefs.h >>conftest.$ac_ext
2277 cat >>conftest.$ac_ext <<_ACEOF
2278 /* end confdefs.h. */
2279 $ac_declaration
2280 int
2281 main ()
2282 {
2283 exit (42);
2284 ;
2285 return 0;
2286 }
2287 _ACEOF
2288 rm -f conftest.$ac_objext
2289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2290 (eval $ac_compile) 2>conftest.er1
2291 ac_status=$?
2292 grep -v '^ *+' conftest.er1 >conftest.err
2293 rm -f conftest.er1
2294 cat conftest.err >&5
2295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296 (exit $ac_status); } &&
2297 { ac_try='test -z "$ac_c_werror_flag"
2298 || test ! -s conftest.err'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 (eval $ac_try) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; } &&
2304 { ac_try='test -s conftest.$ac_objext'
2305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2306 (eval $ac_try) 2>&5
2307 ac_status=$?
2308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309 (exit $ac_status); }; }; then
2310 break
2311 else
2312 echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2314
2315 fi
2316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2317 done
2318 rm -f conftest*
2319 if test -n "$ac_declaration"; then
2320 echo '#ifdef __cplusplus' >>confdefs.h
2321 echo $ac_declaration >>confdefs.h
2322 echo '#endif' >>confdefs.h
2323 fi
2324
2325 else
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2328
2329 fi
2330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336
2337
2338 cat >>confdefs.h <<\_ACEOF
2339 #define _GNU_SOURCE 1
2340 _ACEOF
2341
2342
2343
2344 ac_ext=c
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2349 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2350 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2351 # On Suns, sometimes $CPP names a directory.
2352 if test -n "$CPP" && test -d "$CPP"; then
2353 CPP=
2354 fi
2355 if test -z "$CPP"; then
2356 if test "${ac_cv_prog_CPP+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 else
2359 # Double quotes because CPP needs to be expanded
2360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2361 do
2362 ac_preproc_ok=false
2363 for ac_c_preproc_warn_flag in '' yes
2364 do
2365 # Use a header file that comes with gcc, so configuring glibc
2366 # with a fresh cross-compiler works.
2367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2368 # <limits.h> exists even on freestanding compilers.
2369 # On the NeXT, cc -E runs the code through the compiler's parser,
2370 # not just through cpp. "Syntax error" is here to catch this case.
2371 cat >conftest.$ac_ext <<_ACEOF
2372 /* confdefs.h. */
2373 _ACEOF
2374 cat confdefs.h >>conftest.$ac_ext
2375 cat >>conftest.$ac_ext <<_ACEOF
2376 /* end confdefs.h. */
2377 #ifdef __STDC__
2378 # include <limits.h>
2379 #else
2380 # include <assert.h>
2381 #endif
2382 Syntax error
2383 _ACEOF
2384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2386 ac_status=$?
2387 grep -v '^ *+' conftest.er1 >conftest.err
2388 rm -f conftest.er1
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } >/dev/null; then
2392 if test -s conftest.err; then
2393 ac_cpp_err=$ac_c_preproc_warn_flag
2394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2395 else
2396 ac_cpp_err=
2397 fi
2398 else
2399 ac_cpp_err=yes
2400 fi
2401 if test -z "$ac_cpp_err"; then
2402 :
2403 else
2404 echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2406
2407 # Broken: fails on valid input.
2408 continue
2409 fi
2410 rm -f conftest.err conftest.$ac_ext
2411
2412 # OK, works on sane cases. Now check whether non-existent headers
2413 # can be detected and how.
2414 cat >conftest.$ac_ext <<_ACEOF
2415 /* confdefs.h. */
2416 _ACEOF
2417 cat confdefs.h >>conftest.$ac_ext
2418 cat >>conftest.$ac_ext <<_ACEOF
2419 /* end confdefs.h. */
2420 #include <ac_nonexistent.h>
2421 _ACEOF
2422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2424 ac_status=$?
2425 grep -v '^ *+' conftest.er1 >conftest.err
2426 rm -f conftest.er1
2427 cat conftest.err >&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); } >/dev/null; then
2430 if test -s conftest.err; then
2431 ac_cpp_err=$ac_c_preproc_warn_flag
2432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2433 else
2434 ac_cpp_err=
2435 fi
2436 else
2437 ac_cpp_err=yes
2438 fi
2439 if test -z "$ac_cpp_err"; then
2440 # Broken: success on invalid input.
2441 continue
2442 else
2443 echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445
2446 # Passes both tests.
2447 ac_preproc_ok=:
2448 break
2449 fi
2450 rm -f conftest.err conftest.$ac_ext
2451
2452 done
2453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2454 rm -f conftest.err conftest.$ac_ext
2455 if $ac_preproc_ok; then
2456 break
2457 fi
2458
2459 done
2460 ac_cv_prog_CPP=$CPP
2461
2462 fi
2463 CPP=$ac_cv_prog_CPP
2464 else
2465 ac_cv_prog_CPP=$CPP
2466 fi
2467 echo "$as_me:$LINENO: result: $CPP" >&5
2468 echo "${ECHO_T}$CPP" >&6
2469 ac_preproc_ok=false
2470 for ac_c_preproc_warn_flag in '' yes
2471 do
2472 # Use a header file that comes with gcc, so configuring glibc
2473 # with a fresh cross-compiler works.
2474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2475 # <limits.h> exists even on freestanding compilers.
2476 # On the NeXT, cc -E runs the code through the compiler's parser,
2477 # not just through cpp. "Syntax error" is here to catch this case.
2478 cat >conftest.$ac_ext <<_ACEOF
2479 /* confdefs.h. */
2480 _ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2484 #ifdef __STDC__
2485 # include <limits.h>
2486 #else
2487 # include <assert.h>
2488 #endif
2489 Syntax error
2490 _ACEOF
2491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2493 ac_status=$?
2494 grep -v '^ *+' conftest.er1 >conftest.err
2495 rm -f conftest.er1
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } >/dev/null; then
2499 if test -s conftest.err; then
2500 ac_cpp_err=$ac_c_preproc_warn_flag
2501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2502 else
2503 ac_cpp_err=
2504 fi
2505 else
2506 ac_cpp_err=yes
2507 fi
2508 if test -z "$ac_cpp_err"; then
2509 :
2510 else
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513
2514 # Broken: fails on valid input.
2515 continue
2516 fi
2517 rm -f conftest.err conftest.$ac_ext
2518
2519 # OK, works on sane cases. Now check whether non-existent headers
2520 # can be detected and how.
2521 cat >conftest.$ac_ext <<_ACEOF
2522 /* confdefs.h. */
2523 _ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2527 #include <ac_nonexistent.h>
2528 _ACEOF
2529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2531 ac_status=$?
2532 grep -v '^ *+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } >/dev/null; then
2537 if test -s conftest.err; then
2538 ac_cpp_err=$ac_c_preproc_warn_flag
2539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2540 else
2541 ac_cpp_err=
2542 fi
2543 else
2544 ac_cpp_err=yes
2545 fi
2546 if test -z "$ac_cpp_err"; then
2547 # Broken: success on invalid input.
2548 continue
2549 else
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2552
2553 # Passes both tests.
2554 ac_preproc_ok=:
2555 break
2556 fi
2557 rm -f conftest.err conftest.$ac_ext
2558
2559 done
2560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2561 rm -f conftest.err conftest.$ac_ext
2562 if $ac_preproc_ok; then
2563 :
2564 else
2565 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2566 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2570 See \`config.log' for more details." >&2;}
2571 { (exit 1); exit 1; }; }; }
2572 fi
2573
2574 ac_ext=c
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2579
2580
2581 echo "$as_me:$LINENO: checking for egrep" >&5
2582 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2583 if test "${ac_cv_prog_egrep+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 else
2586 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2587 then ac_cv_prog_egrep='grep -E'
2588 else ac_cv_prog_egrep='egrep'
2589 fi
2590 fi
2591 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2592 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2593 EGREP=$ac_cv_prog_egrep
2594
2595
2596
2597 echo "$as_me:$LINENO: checking for AIX" >&5
2598 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2599 cat >conftest.$ac_ext <<_ACEOF
2600 /* confdefs.h. */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2605 #ifdef _AIX
2606 yes
2607 #endif
2608
2609 _ACEOF
2610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2611 $EGREP "yes" >/dev/null 2>&1; then
2612 echo "$as_me:$LINENO: result: yes" >&5
2613 echo "${ECHO_T}yes" >&6
2614 cat >>confdefs.h <<\_ACEOF
2615 #define _ALL_SOURCE 1
2616 _ACEOF
2617
2618 else
2619 echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6
2621 fi
2622 rm -f conftest*
2623
2624
2625 echo "$as_me:$LINENO: checking for library containing strerror" >&5
2626 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2627 if test "${ac_cv_search_strerror+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630 ac_func_search_save_LIBS=$LIBS
2631 ac_cv_search_strerror=no
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2638
2639 /* Override any gcc2 internal prototype to avoid an error. */
2640 #ifdef __cplusplus
2641 extern "C"
2642 #endif
2643 /* We use char because int might match the return type of a gcc2
2644 builtin and then its argument prototype would still apply. */
2645 char strerror ();
2646 int
2647 main ()
2648 {
2649 strerror ();
2650 ;
2651 return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.$ac_objext conftest$ac_exeext
2655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2656 (eval $ac_link) 2>conftest.er1
2657 ac_status=$?
2658 grep -v '^ *+' conftest.er1 >conftest.err
2659 rm -f conftest.er1
2660 cat conftest.err >&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); } &&
2663 { ac_try='test -z "$ac_c_werror_flag"
2664 || test ! -s conftest.err'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2666 (eval $ac_try) 2>&5
2667 ac_status=$?
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; } &&
2670 { ac_try='test -s conftest$ac_exeext'
2671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2672 (eval $ac_try) 2>&5
2673 ac_status=$?
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; }; then
2676 ac_cv_search_strerror="none required"
2677 else
2678 echo "$as_me: failed program was:" >&5
2679 sed 's/^/| /' conftest.$ac_ext >&5
2680
2681 fi
2682 rm -f conftest.err conftest.$ac_objext \
2683 conftest$ac_exeext conftest.$ac_ext
2684 if test "$ac_cv_search_strerror" = no; then
2685 for ac_lib in cposix; do
2686 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2687 cat >conftest.$ac_ext <<_ACEOF
2688 /* confdefs.h. */
2689 _ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2693
2694 /* Override any gcc2 internal prototype to avoid an error. */
2695 #ifdef __cplusplus
2696 extern "C"
2697 #endif
2698 /* We use char because int might match the return type of a gcc2
2699 builtin and then its argument prototype would still apply. */
2700 char strerror ();
2701 int
2702 main ()
2703 {
2704 strerror ();
2705 ;
2706 return 0;
2707 }
2708 _ACEOF
2709 rm -f conftest.$ac_objext conftest$ac_exeext
2710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2711 (eval $ac_link) 2>conftest.er1
2712 ac_status=$?
2713 grep -v '^ *+' conftest.er1 >conftest.err
2714 rm -f conftest.er1
2715 cat conftest.err >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 { ac_try='test -z "$ac_c_werror_flag"
2719 || test ! -s conftest.err'
2720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 (eval $ac_try) 2>&5
2722 ac_status=$?
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); }; } &&
2725 { ac_try='test -s conftest$ac_exeext'
2726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727 (eval $ac_try) 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; }; then
2731 ac_cv_search_strerror="-l$ac_lib"
2732 break
2733 else
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2736
2737 fi
2738 rm -f conftest.err conftest.$ac_objext \
2739 conftest$ac_exeext conftest.$ac_ext
2740 done
2741 fi
2742 LIBS=$ac_func_search_save_LIBS
2743 fi
2744 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2745 echo "${ECHO_T}$ac_cv_search_strerror" >&6
2746 if test "$ac_cv_search_strerror" != no; then
2747 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2748
2749 fi
2750
2751 if test -n "$ac_tool_prefix"; then
2752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2754 echo "$as_me:$LINENO: checking for $ac_word" >&5
2755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2756 if test "${ac_cv_prog_RANLIB+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759 if test -n "$RANLIB"; then
2760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 for ac_exec_ext in '' $ac_executable_extensions; do
2768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2771 break 2
2772 fi
2773 done
2774 done
2775
2776 fi
2777 fi
2778 RANLIB=$ac_cv_prog_RANLIB
2779 if test -n "$RANLIB"; then
2780 echo "$as_me:$LINENO: result: $RANLIB" >&5
2781 echo "${ECHO_T}$RANLIB" >&6
2782 else
2783 echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6
2785 fi
2786
2787 fi
2788 if test -z "$ac_cv_prog_RANLIB"; then
2789 ac_ct_RANLIB=$RANLIB
2790 # Extract the first word of "ranlib", so it can be a program name with args.
2791 set dummy ranlib; ac_word=$2
2792 echo "$as_me:$LINENO: checking for $ac_word" >&5
2793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2794 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2795 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 else
2797 if test -n "$ac_ct_RANLIB"; then
2798 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2802 do
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2807 ac_cv_prog_ac_ct_RANLIB="ranlib"
2808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2810 fi
2811 done
2812 done
2813
2814 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2815 fi
2816 fi
2817 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2818 if test -n "$ac_ct_RANLIB"; then
2819 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2820 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2821 else
2822 echo "$as_me:$LINENO: result: no" >&5
2823 echo "${ECHO_T}no" >&6
2824 fi
2825
2826 RANLIB=$ac_ct_RANLIB
2827 else
2828 RANLIB="$ac_cv_prog_RANLIB"
2829 fi
2830
2831 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2832 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2833 if test "${ac_cv_header_stdc+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 else
2836 cat >conftest.$ac_ext <<_ACEOF
2837 /* confdefs.h. */
2838 _ACEOF
2839 cat confdefs.h >>conftest.$ac_ext
2840 cat >>conftest.$ac_ext <<_ACEOF
2841 /* end confdefs.h. */
2842 #include <stdlib.h>
2843 #include <stdarg.h>
2844 #include <string.h>
2845 #include <float.h>
2846
2847 int
2848 main ()
2849 {
2850
2851 ;
2852 return 0;
2853 }
2854 _ACEOF
2855 rm -f conftest.$ac_objext
2856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2857 (eval $ac_compile) 2>conftest.er1
2858 ac_status=$?
2859 grep -v '^ *+' conftest.er1 >conftest.err
2860 rm -f conftest.er1
2861 cat conftest.err >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
2864 { ac_try='test -z "$ac_c_werror_flag"
2865 || test ! -s conftest.err'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 (eval $ac_try) 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; } &&
2871 { ac_try='test -s conftest.$ac_objext'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2877 ac_cv_header_stdc=yes
2878 else
2879 echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2881
2882 ac_cv_header_stdc=no
2883 fi
2884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2885
2886 if test $ac_cv_header_stdc = yes; then
2887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2888 cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h. */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2894 #include <string.h>
2895
2896 _ACEOF
2897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2898 $EGREP "memchr" >/dev/null 2>&1; then
2899 :
2900 else
2901 ac_cv_header_stdc=no
2902 fi
2903 rm -f conftest*
2904
2905 fi
2906
2907 if test $ac_cv_header_stdc = yes; then
2908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2909 cat >conftest.$ac_ext <<_ACEOF
2910 /* confdefs.h. */
2911 _ACEOF
2912 cat confdefs.h >>conftest.$ac_ext
2913 cat >>conftest.$ac_ext <<_ACEOF
2914 /* end confdefs.h. */
2915 #include <stdlib.h>
2916
2917 _ACEOF
2918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2919 $EGREP "free" >/dev/null 2>&1; then
2920 :
2921 else
2922 ac_cv_header_stdc=no
2923 fi
2924 rm -f conftest*
2925
2926 fi
2927
2928 if test $ac_cv_header_stdc = yes; then
2929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2930 if test "$cross_compiling" = yes; then
2931 :
2932 else
2933 cat >conftest.$ac_ext <<_ACEOF
2934 /* confdefs.h. */
2935 _ACEOF
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2939 #include <ctype.h>
2940 #if ((' ' & 0x0FF) == 0x020)
2941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2943 #else
2944 # define ISLOWER(c) \
2945 (('a' <= (c) && (c) <= 'i') \
2946 || ('j' <= (c) && (c) <= 'r') \
2947 || ('s' <= (c) && (c) <= 'z'))
2948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2949 #endif
2950
2951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2952 int
2953 main ()
2954 {
2955 int i;
2956 for (i = 0; i < 256; i++)
2957 if (XOR (islower (i), ISLOWER (i))
2958 || toupper (i) != TOUPPER (i))
2959 exit(2);
2960 exit (0);
2961 }
2962 _ACEOF
2963 rm -f conftest$ac_exeext
2964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2965 (eval $ac_link) 2>&5
2966 ac_status=$?
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 (eval $ac_try) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 :
2975 else
2976 echo "$as_me: program exited with status $ac_status" >&5
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980 ( exit $ac_status )
2981 ac_cv_header_stdc=no
2982 fi
2983 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2984 fi
2985 fi
2986 fi
2987 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2988 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2989 if test $ac_cv_header_stdc = yes; then
2990
2991 cat >>confdefs.h <<\_ACEOF
2992 #define STDC_HEADERS 1
2993 _ACEOF
2994
2995 fi
2996
2997 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3008 inttypes.h stdint.h unistd.h
3009 do
3010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3011 echo "$as_me:$LINENO: checking for $ac_header" >&5
3012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 else
3016 cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h. */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022 $ac_includes_default
3023
3024 #include <$ac_header>
3025 _ACEOF
3026 rm -f conftest.$ac_objext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3028 (eval $ac_compile) 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } &&
3035 { ac_try='test -z "$ac_c_werror_flag"
3036 || test ! -s conftest.err'
3037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038 (eval $ac_try) 2>&5
3039 ac_status=$?
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }; } &&
3042 { ac_try='test -s conftest.$ac_objext'
3043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3044 (eval $ac_try) 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }; }; then
3048 eval "$as_ac_Header=yes"
3049 else
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 eval "$as_ac_Header=no"
3054 fi
3055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3056 fi
3057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3060 cat >>confdefs.h <<_ACEOF
3061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3062 _ACEOF
3063
3064 fi
3065
3066 done
3067
3068
3069
3070 if test "${ac_cv_header_minix_config_h+set}" = set; then
3071 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3072 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3073 if test "${ac_cv_header_minix_config_h+set}" = set; then
3074 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 fi
3076 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3077 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3078 else
3079 # Is the header compilable?
3080 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3081 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3082 cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h. */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3088 $ac_includes_default
3089 #include <minix/config.h>
3090 _ACEOF
3091 rm -f conftest.$ac_objext
3092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3093 (eval $ac_compile) 2>conftest.er1
3094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } &&
3100 { ac_try='test -z "$ac_c_werror_flag"
3101 || test ! -s conftest.err'
3102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3103 (eval $ac_try) 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; } &&
3107 { ac_try='test -s conftest.$ac_objext'
3108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3109 (eval $ac_try) 2>&5
3110 ac_status=$?
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; }; then
3113 ac_header_compiler=yes
3114 else
3115 echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 ac_header_compiler=no
3119 fi
3120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3122 echo "${ECHO_T}$ac_header_compiler" >&6
3123
3124 # Is the header present?
3125 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3126 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3127 cat >conftest.$ac_ext <<_ACEOF
3128 /* confdefs.h. */
3129 _ACEOF
3130 cat confdefs.h >>conftest.$ac_ext
3131 cat >>conftest.$ac_ext <<_ACEOF
3132 /* end confdefs.h. */
3133 #include <minix/config.h>
3134 _ACEOF
3135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null; then
3143 if test -s conftest.err; then
3144 ac_cpp_err=$ac_c_preproc_warn_flag
3145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3146 else
3147 ac_cpp_err=
3148 fi
3149 else
3150 ac_cpp_err=yes
3151 fi
3152 if test -z "$ac_cpp_err"; then
3153 ac_header_preproc=yes
3154 else
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3157
3158 ac_header_preproc=no
3159 fi
3160 rm -f conftest.err conftest.$ac_ext
3161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3162 echo "${ECHO_T}$ac_header_preproc" >&6
3163
3164 # So? What about this header?
3165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3166 yes:no: )
3167 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3168 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3169 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3170 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3171 ac_header_preproc=yes
3172 ;;
3173 no:yes:* )
3174 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3175 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3176 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3177 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3178 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3179 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3180 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3181 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3182 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3183 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3184 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3185 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3186 (
3187 cat <<\_ASBOX
3188 ## ------------------------------------------ ##
3189 ## Report this to the AC_PACKAGE_NAME lists. ##
3190 ## ------------------------------------------ ##
3191 _ASBOX
3192 ) |
3193 sed "s/^/$as_me: WARNING: /" >&2
3194 ;;
3195 esac
3196 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3197 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3198 if test "${ac_cv_header_minix_config_h+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 else
3201 ac_cv_header_minix_config_h=$ac_header_preproc
3202 fi
3203 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3204 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3205
3206 fi
3207 if test $ac_cv_header_minix_config_h = yes; then
3208 MINIX=yes
3209 else
3210 MINIX=
3211 fi
3212
3213
3214 if test "$MINIX" = yes; then
3215
3216 cat >>confdefs.h <<\_ACEOF
3217 #define _POSIX_SOURCE 1
3218 _ACEOF
3219
3220
3221 cat >>confdefs.h <<\_ACEOF
3222 #define _POSIX_1_SOURCE 2
3223 _ACEOF
3224
3225
3226 cat >>confdefs.h <<\_ACEOF
3227 #define _MINIX 1
3228 _ACEOF
3229
3230 fi
3231
3232
3233
3234 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3235 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3236 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 else
3239 cat >conftest.$ac_ext <<_ACEOF
3240 /* confdefs.h. */
3241 _ACEOF
3242 cat confdefs.h >>conftest.$ac_ext
3243 cat >>conftest.$ac_ext <<_ACEOF
3244 /* end confdefs.h. */
3245
3246 # define __EXTENSIONS__ 1
3247 $ac_includes_default
3248 int
3249 main ()
3250 {
3251
3252 ;
3253 return 0;
3254 }
3255 _ACEOF
3256 rm -f conftest.$ac_objext
3257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3258 (eval $ac_compile) 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } &&
3265 { ac_try='test -z "$ac_c_werror_flag"
3266 || test ! -s conftest.err'
3267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3268 (eval $ac_try) 2>&5
3269 ac_status=$?
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); }; } &&
3272 { ac_try='test -s conftest.$ac_objext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 (eval $ac_try) 2>&5
3275 ac_status=$?
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 ac_cv_safe_to_define___extensions__=yes
3279 else
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 ac_cv_safe_to_define___extensions__=no
3284 fi
3285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3286 fi
3287 echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3288 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3289 test $ac_cv_safe_to_define___extensions__ = yes &&
3290 cat >>confdefs.h <<\_ACEOF
3291 #define __EXTENSIONS__ 1
3292 _ACEOF
3293
3294 cat >>confdefs.h <<\_ACEOF
3295 #define _ALL_SOURCE 1
3296 _ACEOF
3297
3298 cat >>confdefs.h <<\_ACEOF
3299 #define _GNU_SOURCE 1
3300 _ACEOF
3301
3302 cat >>confdefs.h <<\_ACEOF
3303 #define _POSIX_PTHREAD_SEMANTICS 1
3304 _ACEOF
3305
3306 cat >>confdefs.h <<\_ACEOF
3307 #define _TANDEM_SOURCE 1
3308 _ACEOF
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3320 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3321 if test "${am_cv_prog_cc_stdc+set}" = set; then
3322 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324 am_cv_prog_cc_stdc=no
3325 ac_save_CC="$CC"
3326 # Don't try gcc -ansi; that turns off useful extensions and
3327 # breaks some systems' header files.
3328 # AIX -qlanglvl=ansi
3329 # Ultrix and OSF/1 -std1
3330 # HP-UX 10.20 and later -Ae
3331 # HP-UX older versions -Aa -D_HPUX_SOURCE
3332 # SVR4 -Xc -D__EXTENSIONS__
3333 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334 do
3335 CC="$ac_save_CC $ac_arg"
3336 cat >conftest.$ac_ext <<_ACEOF
3337 /* confdefs.h. */
3338 _ACEOF
3339 cat confdefs.h >>conftest.$ac_ext
3340 cat >>conftest.$ac_ext <<_ACEOF
3341 /* end confdefs.h. */
3342 #include <stdarg.h>
3343 #include <stdio.h>
3344 #include <sys/types.h>
3345 #include <sys/stat.h>
3346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3347 struct buf { int x; };
3348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3349 static char *e (p, i)
3350 char **p;
3351 int i;
3352 {
3353 return p[i];
3354 }
3355 static char *f (char * (*g) (char **, int), char **p, ...)
3356 {
3357 char *s;
3358 va_list v;
3359 va_start (v,p);
3360 s = g (p, va_arg (v,int));
3361 va_end (v);
3362 return s;
3363 }
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3368 int argc;
3369 char **argv;
3370
3371 int
3372 main ()
3373 {
3374
3375 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3376
3377 ;
3378 return 0;
3379 }
3380 _ACEOF
3381 rm -f conftest.$ac_objext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3383 (eval $ac_compile) 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } &&
3390 { ac_try='test -z "$ac_c_werror_flag"
3391 || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393 (eval $ac_try) 2>&5
3394 ac_status=$?
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest.$ac_objext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399 (eval $ac_try) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 am_cv_prog_cc_stdc="$ac_arg"; break
3404 else
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 fi
3409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3410 done
3411 CC="$ac_save_CC"
3412
3413 fi
3414
3415 if test -z "$am_cv_prog_cc_stdc"; then
3416 echo "$as_me:$LINENO: result: none needed" >&5
3417 echo "${ECHO_T}none needed" >&6
3418 else
3419 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3420 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3421 fi
3422 case "x$am_cv_prog_cc_stdc" in
3423 x|xno) ;;
3424 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3425 esac
3426
3427
3428 ac_aux_dir=
3429 for ac_dir in .. $srcdir/..; do
3430 if test -f $ac_dir/install-sh; then
3431 ac_aux_dir=$ac_dir
3432 ac_install_sh="$ac_aux_dir/install-sh -c"
3433 break
3434 elif test -f $ac_dir/install.sh; then
3435 ac_aux_dir=$ac_dir
3436 ac_install_sh="$ac_aux_dir/install.sh -c"
3437 break
3438 elif test -f $ac_dir/shtool; then
3439 ac_aux_dir=$ac_dir
3440 ac_install_sh="$ac_aux_dir/shtool install -c"
3441 break
3442 fi
3443 done
3444 if test -z "$ac_aux_dir"; then
3445 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3446 echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3447 { (exit 1); exit 1; }; }
3448 fi
3449 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3450 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3451 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3452
3453 # Make sure we can run config.sub.
3454 $ac_config_sub sun4 >/dev/null 2>&1 ||
3455 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3456 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3457 { (exit 1); exit 1; }; }
3458
3459 echo "$as_me:$LINENO: checking build system type" >&5
3460 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3461 if test "${ac_cv_build+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463 else
3464 ac_cv_build_alias=$build_alias
3465 test -z "$ac_cv_build_alias" &&
3466 ac_cv_build_alias=`$ac_config_guess`
3467 test -z "$ac_cv_build_alias" &&
3468 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3469 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3470 { (exit 1); exit 1; }; }
3471 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3472 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3473 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3474 { (exit 1); exit 1; }; }
3475
3476 fi
3477 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3478 echo "${ECHO_T}$ac_cv_build" >&6
3479 build=$ac_cv_build
3480 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3481 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3482 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3483
3484
3485 echo "$as_me:$LINENO: checking host system type" >&5
3486 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3487 if test "${ac_cv_host+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 else
3490 ac_cv_host_alias=$host_alias
3491 test -z "$ac_cv_host_alias" &&
3492 ac_cv_host_alias=$ac_cv_build_alias
3493 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3494 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3495 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3496 { (exit 1); exit 1; }; }
3497
3498 fi
3499 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3500 echo "${ECHO_T}$ac_cv_host" >&6
3501 host=$ac_cv_host
3502 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3503 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3504 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3505
3506
3507 echo "$as_me:$LINENO: checking target system type" >&5
3508 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3509 if test "${ac_cv_target+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512 ac_cv_target_alias=$target_alias
3513 test "x$ac_cv_target_alias" = "x" &&
3514 ac_cv_target_alias=$ac_cv_host_alias
3515 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3517 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3518 { (exit 1); exit 1; }; }
3519
3520 fi
3521 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3522 echo "${ECHO_T}$ac_cv_target" >&6
3523 target=$ac_cv_target
3524 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3525 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3526 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3527
3528
3529 # The aliases save the names the user supplied, while $host etc.
3530 # will get canonicalized.
3531 test -n "$target_alias" &&
3532 test "$program_prefix$program_suffix$program_transform_name" = \
3533 NONENONEs,x,x, &&
3534 program_prefix=${target_alias}-
3535
3536 # Dependency checking.
3537 rm -rf .tst 2>/dev/null
3538 mkdir .tst 2>/dev/null
3539 if test -d .tst; then
3540 am__leading_dot=.
3541 else
3542 am__leading_dot=_
3543 fi
3544 rmdir .tst 2>/dev/null
3545
3546 DEPDIR="${am__leading_dot}deps"
3547
3548 ac_config_commands="$ac_config_commands depdir"
3549
3550
3551 depcc="$CC" am_compiler_list=
3552
3553 am_depcomp=$ac_aux_dir/depcomp
3554 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3555 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3556 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 else
3559 if test -f "$am_depcomp"; then
3560 # We make a subdir and do the tests there. Otherwise we can end up
3561 # making bogus files that we don't know about and never remove. For
3562 # instance it was reported that on HP-UX the gcc test will end up
3563 # making a dummy file named `D' -- because `-MD' means `put the output
3564 # in D'.
3565 mkdir conftest.dir
3566 # Copy depcomp to subdir because otherwise we won't find it if we're
3567 # using a relative directory.
3568 cp "$am_depcomp" conftest.dir
3569 cd conftest.dir
3570 # We will build objects and dependencies in a subdirectory because
3571 # it helps to detect inapplicable dependency modes. For instance
3572 # both Tru64's cc and ICC support -MD to output dependencies as a
3573 # side effect of compilation, but ICC will put the dependencies in
3574 # the current directory while Tru64 will put them in the object
3575 # directory.
3576 mkdir sub
3577
3578 am_cv_CC_dependencies_compiler_type=none
3579 if test "$am_compiler_list" = ""; then
3580 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3581 fi
3582 for depmode in $am_compiler_list; do
3583 if test $depmode = none; then break; fi
3584
3585 echo "$as_me:$LINENO: trying $depmode" >&5
3586 # Setup a source with many dependencies, because some compilers
3587 # like to wrap large dependency lists on column 80 (with \), and
3588 # we should not choose a depcomp mode which is confused by this.
3589 #
3590 # We need to recreate these files for each test, as the compiler may
3591 # overwrite some of them when testing with obscure command lines.
3592 # This happens at least with the AIX C compiler.
3593 : > sub/conftest.c
3594 for i in 1 2 3 4 5 6; do
3595 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3596 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3597 # Solaris 8's {/usr,}/bin/sh.
3598 touch sub/conftst$i.h
3599 done
3600 echo "include sub/conftest.Po" > confmf
3601
3602 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3603 # mode. It turns out that the SunPro C++ compiler does not properly
3604 # handle `-M -o', and we need to detect this.
3605 depcmd="depmode=$depmode \
3606 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3607 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3608 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
3609 echo "| $depcmd" | sed -e 's/ */ /g' >&5
3610 if env $depcmd > conftest.err 2>&1 &&
3611 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
3612 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
3613 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
3614 # icc doesn't choke on unknown options, it will just issue warnings
3615 # or remarks (even with -Werror). So we grep stderr for any message
3616 # that says an option was ignored or not supported.
3617 # When given -MP, icc 7.0 and 7.1 complain thusly:
3618 # icc: Command line warning: ignoring option '-M'; no argument required
3619 # The diagnosis changed in icc 8.0:
3620 # icc: Command line remark: option '-MP' not supported
3621 if (grep 'ignoring option' conftest.err ||
3622 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3623 am_cv_CC_dependencies_compiler_type=$depmode
3624 echo "$as_me:$LINENO: success" >&5
3625 break
3626 fi
3627 fi
3628 echo "$as_me:$LINENO: failure, diagnostics are:" >&5
3629 sed -e 's/^/| /' < conftest.err >&5
3630 done
3631
3632 cd ..
3633 rm -rf conftest.dir
3634 else
3635 am_cv_CC_dependencies_compiler_type=none
3636 fi
3637
3638 fi
3639 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3640 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3641 if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
3642 then { { echo "$as_me:$LINENO: error: no usable dependency style found" >&5
3643 echo "$as_me: error: no usable dependency style found" >&2;}
3644 { (exit 1); exit 1; }; }
3645 else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3646
3647 fi
3648
3649
3650 # Check for the 'make' the user wants to use.
3651 for ac_prog in make
3652 do
3653 # Extract the first word of "$ac_prog", so it can be a program name with args.
3654 set dummy $ac_prog; ac_word=$2
3655 echo "$as_me:$LINENO: checking for $ac_word" >&5
3656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3657 if test "${ac_cv_prog_MAKE+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660 if test -n "$MAKE"; then
3661 ac_cv_prog_MAKE="$MAKE" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_MAKE="$ac_prog"
3671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674 done
3675 done
3676
3677 fi
3678 fi
3679 MAKE=$ac_cv_prog_MAKE
3680 if test -n "$MAKE"; then
3681 echo "$as_me:$LINENO: result: $MAKE" >&5
3682 echo "${ECHO_T}$MAKE" >&6
3683 else
3684 echo "$as_me:$LINENO: result: no" >&5
3685 echo "${ECHO_T}no" >&6
3686 fi
3687
3688 test -n "$MAKE" && break
3689 done
3690
3691 MAKE_IS_GNU=
3692 case "`$MAKE --version 2>&1 | sed 1q`" in
3693 *GNU*)
3694 MAKE_IS_GNU=yes
3695 ;;
3696 esac
3697
3698
3699 if test "$MAKE_IS_GNU" = yes; then
3700 GMAKE_TRUE=
3701 GMAKE_FALSE='#'
3702 else
3703 GMAKE_TRUE='#'
3704 GMAKE_FALSE=
3705 fi
3706
3707 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3708 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3709 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3710 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713 cat >conftest.make <<\_ACEOF
3714 all:
3715 @echo 'ac_maketemp="$(MAKE)"'
3716 _ACEOF
3717 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3718 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3719 if test -n "$ac_maketemp"; then
3720 eval ac_cv_prog_make_${ac_make}_set=yes
3721 else
3722 eval ac_cv_prog_make_${ac_make}_set=no
3723 fi
3724 rm -f conftest.make
3725 fi
3726 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3727 echo "$as_me:$LINENO: result: yes" >&5
3728 echo "${ECHO_T}yes" >&6
3729 SET_MAKE=
3730 else
3731 echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6
3733 SET_MAKE="MAKE=${MAKE-make}"
3734 fi
3735
3736
3737
3738 CONFIG_OBS=
3739 CONFIG_DEPS=
3740 CONFIG_SRCS=
3741 ENABLE_CFLAGS=
3742
3743 CONFIG_ALL=
3744 CONFIG_CLEAN=
3745 CONFIG_INSTALL=
3746 CONFIG_UNINSTALL=
3747
3748 # If we haven't got the data from the intl directory,
3749 # assume NLS is disabled.
3750 USE_NLS=no
3751 LIBINTL=
3752 LIBINTL_DEP=
3753 INCINTL=
3754 XGETTEXT=
3755 GMSGFMT=
3756 POSUB=
3757
3758 if test -f ../intl/config.intl; then
3759 . ../intl/config.intl
3760 fi
3761 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3762 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3763 if test x"$USE_NLS" != xyes; then
3764 echo "$as_me:$LINENO: result: no" >&5
3765 echo "${ECHO_T}no" >&6
3766 else
3767 echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6
3769
3770 cat >>confdefs.h <<\_ACEOF
3771 #define ENABLE_NLS 1
3772 _ACEOF
3773
3774
3775 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3776 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3777 # Look for .po and .gmo files in the source directory.
3778 CATALOGS=
3779 XLINGUAS=
3780 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3781 # If there aren't any .gmo files the shell will give us the
3782 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3783 # weeded out.
3784 case "$cat" in *\**)
3785 continue;;
3786 esac
3787 # The quadruple backslash is collapsed to a double backslash
3788 # by the backticks, then collapsed again by the double quotes,
3789 # leaving us with one backslash in the sed expression (right
3790 # before the dot that mustn't act as a wildcard).
3791 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3792 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3793 # The user is allowed to set LINGUAS to a list of languages to
3794 # install catalogs for. If it's empty that means "all of them."
3795 if test "x$LINGUAS" = x; then
3796 CATALOGS="$CATALOGS $cat"
3797 XLINGUAS="$XLINGUAS $lang"
3798 else
3799 case "$LINGUAS" in *$lang*)
3800 CATALOGS="$CATALOGS $cat"
3801 XLINGUAS="$XLINGUAS $lang"
3802 ;;
3803 esac
3804 fi
3805 done
3806 LINGUAS="$XLINGUAS"
3807 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3808 echo "${ECHO_T}$LINGUAS" >&6
3809
3810
3811 DATADIRNAME=share
3812
3813 INSTOBJEXT=.mo
3814
3815 GENCAT=gencat
3816
3817 CATOBJEXT=.gmo
3818
3819 fi
3820
3821 localedir='${datadir}/locale'
3822
3823
3824 if test x"$USE_NLS" = xyes; then
3825 CONFIG_ALL="$CONFIG_ALL all-po"
3826 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3827 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3828 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3829 fi
3830
3831
3832 GNULIB_MEMMEM=0;
3833 GNULIB_MEMPCPY=0;
3834 GNULIB_MEMRCHR=0;
3835 GNULIB_STPCPY=0;
3836 GNULIB_STPNCPY=0;
3837 GNULIB_STRCHRNUL=0;
3838 GNULIB_STRDUP=0;
3839 GNULIB_STRNDUP=0;
3840 GNULIB_STRNLEN=0;
3841 GNULIB_STRPBRK=0;
3842 GNULIB_STRSEP=0;
3843 GNULIB_STRSTR=0;
3844 GNULIB_STRCASESTR=0;
3845 GNULIB_STRTOK_R=0;
3846 GNULIB_MBSLEN=0;
3847 GNULIB_MBSNLEN=0;
3848 GNULIB_MBSCHR=0;
3849 GNULIB_MBSRCHR=0;
3850 GNULIB_MBSSTR=0;
3851 GNULIB_MBSCASECMP=0;
3852 GNULIB_MBSNCASECMP=0;
3853 GNULIB_MBSPCASECMP=0;
3854 GNULIB_MBSCASESTR=0;
3855 GNULIB_MBSCSPN=0;
3856 GNULIB_MBSPBRK=0;
3857 GNULIB_MBSSPN=0;
3858 GNULIB_MBSSEP=0;
3859 GNULIB_MBSTOK_R=0;
3860 GNULIB_STRERROR=0;
3861 GNULIB_STRSIGNAL=0;
3862 HAVE_DECL_MEMMEM=1;
3863 HAVE_MEMPCPY=1;
3864 HAVE_DECL_MEMRCHR=1;
3865 HAVE_STPCPY=1;
3866 HAVE_STPNCPY=1;
3867 HAVE_STRCHRNUL=1;
3868 HAVE_DECL_STRDUP=1;
3869 HAVE_STRNDUP=1;
3870 HAVE_DECL_STRNDUP=1;
3871 HAVE_DECL_STRNLEN=1;
3872 HAVE_STRPBRK=1;
3873 HAVE_STRSEP=1;
3874 HAVE_STRCASESTR=1;
3875 HAVE_DECL_STRTOK_R=1;
3876 HAVE_DECL_STRERROR=1;
3877 HAVE_DECL_STRSIGNAL=1;
3878 REPLACE_STRERROR=0;
3879 REPLACE_STRSIGNAL=0;
3880 REPLACE_MEMMEM=0;
3881 REPLACE_STRCASESTR=0;
3882 REPLACE_STRSTR=0;
3883
3884
3885 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3886 echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3887 if test "${ac_cv_have_decl_memmem+set}" = set; then
3888 echo $ECHO_N "(cached) $ECHO_C" >&6
3889 else
3890 cat >conftest.$ac_ext <<_ACEOF
3891 /* confdefs.h. */
3892 _ACEOF
3893 cat confdefs.h >>conftest.$ac_ext
3894 cat >>conftest.$ac_ext <<_ACEOF
3895 /* end confdefs.h. */
3896 $ac_includes_default
3897 int
3898 main ()
3899 {
3900 #ifndef memmem
3901 char *p = (char *) memmem;
3902 #endif
3903
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 rm -f conftest.$ac_objext
3909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3910 (eval $ac_compile) 2>conftest.er1
3911 ac_status=$?
3912 grep -v '^ *+' conftest.er1 >conftest.err
3913 rm -f conftest.er1
3914 cat conftest.err >&5
3915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916 (exit $ac_status); } &&
3917 { ac_try='test -z "$ac_c_werror_flag"
3918 || test ! -s conftest.err'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3920 (eval $ac_try) 2>&5
3921 ac_status=$?
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; } &&
3924 { ac_try='test -s conftest.$ac_objext'
3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3926 (eval $ac_try) 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }; }; then
3930 ac_cv_have_decl_memmem=yes
3931 else
3932 echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935 ac_cv_have_decl_memmem=no
3936 fi
3937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3938 fi
3939 echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3940 echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3941 if test $ac_cv_have_decl_memmem = yes; then
3942
3943 cat >>confdefs.h <<_ACEOF
3944 #define HAVE_DECL_MEMMEM 1
3945 _ACEOF
3946
3947
3948 else
3949 cat >>confdefs.h <<_ACEOF
3950 #define HAVE_DECL_MEMMEM 0
3951 _ACEOF
3952
3953
3954 fi
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970 for ac_func in memmem
3971 do
3972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3973 echo "$as_me:$LINENO: checking for $ac_func" >&5
3974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3975 if eval "test \"\${$as_ac_var+set}\" = set"; then
3976 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978 cat >conftest.$ac_ext <<_ACEOF
3979 /* confdefs.h. */
3980 _ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3986 #define $ac_func innocuous_$ac_func
3987
3988 /* System header to define __stub macros and hopefully few prototypes,
3989 which can conflict with char $ac_func (); below.
3990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3991 <limits.h> exists even on freestanding compilers. */
3992
3993 #ifdef __STDC__
3994 # include <limits.h>
3995 #else
3996 # include <assert.h>
3997 #endif
3998
3999 #undef $ac_func
4000
4001 /* Override any gcc2 internal prototype to avoid an error. */
4002 #ifdef __cplusplus
4003 extern "C"
4004 {
4005 #endif
4006 /* We use char because int might match the return type of a gcc2
4007 builtin and then its argument prototype would still apply. */
4008 char $ac_func ();
4009 /* The GNU C library defines this for functions which it implements
4010 to always fail with ENOSYS. Some functions are actually named
4011 something starting with __ and the normal name is an alias. */
4012 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4013 choke me
4014 #else
4015 char (*f) () = $ac_func;
4016 #endif
4017 #ifdef __cplusplus
4018 }
4019 #endif
4020
4021 int
4022 main ()
4023 {
4024 return f != $ac_func;
4025 ;
4026 return 0;
4027 }
4028 _ACEOF
4029 rm -f conftest.$ac_objext conftest$ac_exeext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4031 (eval $ac_link) 2>conftest.er1
4032 ac_status=$?
4033 grep -v '^ *+' conftest.er1 >conftest.err
4034 rm -f conftest.er1
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -z "$ac_c_werror_flag"
4039 || test ! -s conftest.err'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 (eval $ac_try) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; } &&
4045 { ac_try='test -s conftest$ac_exeext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 (eval $ac_try) 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4051 eval "$as_ac_var=yes"
4052 else
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4055
4056 eval "$as_ac_var=no"
4057 fi
4058 rm -f conftest.err conftest.$ac_objext \
4059 conftest$ac_exeext conftest.$ac_ext
4060 fi
4061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4062 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4063 if test `eval echo '${'$as_ac_var'}'` = yes; then
4064 cat >>confdefs.h <<_ACEOF
4065 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4066 _ACEOF
4067
4068 else
4069
4070 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4071
4072 fi
4073 done
4074
4075
4076
4077 :
4078
4079
4080
4081
4082
4083 if test $ac_cv_have_decl_memmem = no; then
4084 HAVE_DECL_MEMMEM=0
4085 fi
4086 :
4087
4088
4089 echo "$as_me:$LINENO: checking for long long int" >&5
4090 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
4091 if test "${ac_cv_type_long_long_int+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 else
4094 cat >conftest.$ac_ext <<_ACEOF
4095
4096 /* confdefs.h. */
4097 _ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4101 /* For now, do not test the preprocessor; as of 2007 there are too many
4102 implementations with broken preprocessors. Perhaps this can
4103 be revisited in 2012. In the meantime, code should not expect
4104 #if to work with literals wider than 32 bits. */
4105 /* Test literals. */
4106 long long int ll = 9223372036854775807ll;
4107 long long int nll = -9223372036854775807LL;
4108 unsigned long long int ull = 18446744073709551615ULL;
4109 /* Test constant expressions. */
4110 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4111 ? 1 : -1)];
4112 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4113 ? 1 : -1)];
4114 int i = 63;
4115 int
4116 main ()
4117 {
4118 /* Test availability of runtime routines for shift and division. */
4119 long long int llmax = 9223372036854775807ll;
4120 unsigned long long int ullmax = 18446744073709551615ull;
4121 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4122 | (llmax / ll) | (llmax % ll)
4123 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4124 | (ullmax / ull) | (ullmax % ull));
4125 ;
4126 return 0;
4127 }
4128
4129 _ACEOF
4130 rm -f conftest.$ac_objext conftest$ac_exeext
4131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4132 (eval $ac_link) 2>conftest.er1
4133 ac_status=$?
4134 grep -v '^ *+' conftest.er1 >conftest.err
4135 rm -f conftest.er1
4136 cat conftest.err >&5
4137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138 (exit $ac_status); } &&
4139 { ac_try='test -z "$ac_c_werror_flag"
4140 || test ! -s conftest.err'
4141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4142 (eval $ac_try) 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; } &&
4146 { ac_try='test -s conftest$ac_exeext'
4147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4148 (eval $ac_try) 2>&5
4149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); }; }; then
4152 if test "$cross_compiling" = yes; then
4153 ac_cv_type_long_long_int=yes
4154 else
4155 cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h. */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4161 #include <limits.h>
4162 #ifndef LLONG_MAX
4163 # define HALF \
4164 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
4165 # define LLONG_MAX (HALF - 1 + HALF)
4166 #endif
4167 int
4168 main ()
4169 {
4170 long long int n = 1;
4171 int i;
4172 for (i = 0; ; i++)
4173 {
4174 long long int m = n << i;
4175 if (m >> i != n)
4176 return 1;
4177 if (LLONG_MAX / 2 < m)
4178 break;
4179 }
4180 return 0;
4181 ;
4182 return 0;
4183 }
4184 _ACEOF
4185 rm -f conftest$ac_exeext
4186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4187 (eval $ac_link) 2>&5
4188 ac_status=$?
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 ac_cv_type_long_long_int=yes
4197 else
4198 echo "$as_me: program exited with status $ac_status" >&5
4199 echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202 ( exit $ac_status )
4203 ac_cv_type_long_long_int=no
4204 fi
4205 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4206 fi
4207 else
4208 echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4210
4211 ac_cv_type_long_long_int=no
4212 fi
4213 rm -f conftest.err conftest.$ac_objext \
4214 conftest$ac_exeext conftest.$ac_ext
4215 fi
4216 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
4217 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
4218 if test $ac_cv_type_long_long_int = yes; then
4219
4220 cat >>confdefs.h <<\_ACEOF
4221 #define HAVE_LONG_LONG_INT 1
4222 _ACEOF
4223
4224 fi
4225
4226
4227 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4228 echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4229 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 else
4232 cat >conftest.$ac_ext <<_ACEOF
4233
4234 /* confdefs.h. */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4239 /* For now, do not test the preprocessor; as of 2007 there are too many
4240 implementations with broken preprocessors. Perhaps this can
4241 be revisited in 2012. In the meantime, code should not expect
4242 #if to work with literals wider than 32 bits. */
4243 /* Test literals. */
4244 long long int ll = 9223372036854775807ll;
4245 long long int nll = -9223372036854775807LL;
4246 unsigned long long int ull = 18446744073709551615ULL;
4247 /* Test constant expressions. */
4248 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4249 ? 1 : -1)];
4250 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4251 ? 1 : -1)];
4252 int i = 63;
4253 int
4254 main ()
4255 {
4256 /* Test availability of runtime routines for shift and division. */
4257 long long int llmax = 9223372036854775807ll;
4258 unsigned long long int ullmax = 18446744073709551615ull;
4259 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4260 | (llmax / ll) | (llmax % ll)
4261 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4262 | (ullmax / ull) | (ullmax % ull));
4263 ;
4264 return 0;
4265 }
4266
4267 _ACEOF
4268 rm -f conftest.$ac_objext conftest$ac_exeext
4269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4270 (eval $ac_link) 2>conftest.er1
4271 ac_status=$?
4272 grep -v '^ *+' conftest.er1 >conftest.err
4273 rm -f conftest.er1
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } &&
4277 { ac_try='test -z "$ac_c_werror_flag"
4278 || test ! -s conftest.err'
4279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4280 (eval $ac_try) 2>&5
4281 ac_status=$?
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest$ac_exeext'
4285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 (eval $ac_try) 2>&5
4287 ac_status=$?
4288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4289 (exit $ac_status); }; }; then
4290 ac_cv_type_unsigned_long_long_int=yes
4291 else
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 ac_cv_type_unsigned_long_long_int=no
4296 fi
4297 rm -f conftest.err conftest.$ac_objext \
4298 conftest$ac_exeext conftest.$ac_ext
4299 fi
4300 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4301 echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4302 if test $ac_cv_type_unsigned_long_long_int = yes; then
4303
4304 cat >>confdefs.h <<\_ACEOF
4305 #define HAVE_UNSIGNED_LONG_LONG_INT 1
4306 _ACEOF
4307
4308 fi
4309
4310
4311
4312 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4313 echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4314 if test "${gl_cv_have_include_next+set}" = set; then
4315 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 else
4317 rm -rf conftestd1 conftestd2
4318 mkdir conftestd1 conftestd2
4319 cat <<EOF > conftestd1/conftest.h
4320 #define DEFINED_IN_CONFTESTD1
4321 #include_next <conftest.h>
4322 #ifdef DEFINED_IN_CONFTESTD2
4323 int foo;
4324 #else
4325 #error "include_next doesn't work"
4326 #endif
4327 EOF
4328 cat <<EOF > conftestd2/conftest.h
4329 #ifndef DEFINED_IN_CONFTESTD1
4330 #error "include_next test doesn't work"
4331 #endif
4332 #define DEFINED_IN_CONFTESTD2
4333 EOF
4334 save_CPPFLAGS="$CPPFLAGS"
4335 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4336 cat >conftest.$ac_ext <<_ACEOF
4337 #include <conftest.h>
4338 _ACEOF
4339 rm -f conftest.$ac_objext
4340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4341 (eval $ac_compile) 2>conftest.er1
4342 ac_status=$?
4343 grep -v '^ *+' conftest.er1 >conftest.err
4344 rm -f conftest.er1
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -z "$ac_c_werror_flag"
4349 || test ! -s conftest.err'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4351 (eval $ac_try) 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest.$ac_objext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 (eval $ac_try) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 gl_cv_have_include_next=yes
4362 else
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4365
4366 gl_cv_have_include_next=no
4367 fi
4368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4369 CPPFLAGS="$save_CPPFLAGS"
4370 rm -rf conftestd1 conftestd2
4371
4372 fi
4373 echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4374 echo "${ECHO_T}$gl_cv_have_include_next" >&6
4375 if test $gl_cv_have_include_next = yes; then
4376
4377
4378 cat >>confdefs.h <<\_ACEOF
4379 #define HAVE_INCLUDE_NEXT 1
4380 _ACEOF
4381
4382
4383 INCLUDE_NEXT=include_next
4384 else
4385 INCLUDE_NEXT=include
4386 fi
4387
4388
4389
4390
4391
4392
4393
4394 for ac_header in $gl_header_list
4395 do
4396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4398 echo "$as_me:$LINENO: checking for $ac_header" >&5
4399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 fi
4403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4405 else
4406 # Is the header compilable?
4407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4409 cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h. */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 $ac_includes_default
4416 #include <$ac_header>
4417 _ACEOF
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>conftest.er1
4421 ac_status=$?
4422 grep -v '^ *+' conftest.er1 >conftest.err
4423 rm -f conftest.er1
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_c_werror_flag"
4428 || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 (eval $ac_try) 2>&5
4437 ac_status=$?
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4440 ac_header_compiler=yes
4441 else
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4444
4445 ac_header_compiler=no
4446 fi
4447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4449 echo "${ECHO_T}$ac_header_compiler" >&6
4450
4451 # Is the header present?
4452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h. */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <$ac_header>
4461 _ACEOF
4462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4464 ac_status=$?
4465 grep -v '^ *+' conftest.er1 >conftest.err
4466 rm -f conftest.er1
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } >/dev/null; then
4470 if test -s conftest.err; then
4471 ac_cpp_err=$ac_c_preproc_warn_flag
4472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4473 else
4474 ac_cpp_err=
4475 fi
4476 else
4477 ac_cpp_err=yes
4478 fi
4479 if test -z "$ac_cpp_err"; then
4480 ac_header_preproc=yes
4481 else
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4484
4485 ac_header_preproc=no
4486 fi
4487 rm -f conftest.err conftest.$ac_ext
4488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4489 echo "${ECHO_T}$ac_header_preproc" >&6
4490
4491 # So? What about this header?
4492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4493 yes:no: )
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4498 ac_header_preproc=yes
4499 ;;
4500 no:yes:* )
4501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4513 (
4514 cat <<\_ASBOX
4515 ## ------------------------------------------ ##
4516 ## Report this to the AC_PACKAGE_NAME lists. ##
4517 ## ------------------------------------------ ##
4518 _ASBOX
4519 ) |
4520 sed "s/^/$as_me: WARNING: /" >&2
4521 ;;
4522 esac
4523 echo "$as_me:$LINENO: checking for $ac_header" >&5
4524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528 eval "$as_ac_Header=\$ac_header_preproc"
4529 fi
4530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4532
4533 fi
4534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4535 cat >>confdefs.h <<_ACEOF
4536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4537 _ACEOF
4538
4539 fi
4540
4541 done
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4555 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4556 if test "${ac_cv_c_restrict+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 ac_cv_c_restrict=no
4560 # The order here caters to the fact that C++ does not require restrict.
4561 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4562 cat >conftest.$ac_ext <<_ACEOF
4563 /* confdefs.h. */
4564 _ACEOF
4565 cat confdefs.h >>conftest.$ac_ext
4566 cat >>conftest.$ac_ext <<_ACEOF
4567 /* end confdefs.h. */
4568 typedef int * int_ptr;
4569 int foo (int_ptr $ac_kw ip) {
4570 return ip[0];
4571 }
4572 int
4573 main ()
4574 {
4575 int s[1];
4576 int * $ac_kw t = s;
4577 t[0] = 0;
4578 return foo(t)
4579 ;
4580 return 0;
4581 }
4582 _ACEOF
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585 (eval $ac_compile) 2>conftest.er1
4586 ac_status=$?
4587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_c_werror_flag"
4593 || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest.$ac_objext'
4600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 ac_cv_c_restrict=$ac_kw
4606 else
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4609
4610 fi
4611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4612 test "$ac_cv_c_restrict" != no && break
4613 done
4614
4615 fi
4616 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4617 echo "${ECHO_T}$ac_cv_c_restrict" >&6
4618
4619
4620 case $ac_cv_c_restrict in
4621 restrict) ;;
4622 no) cat >>confdefs.h <<\_ACEOF
4623 #define restrict
4624 _ACEOF
4625 ;;
4626 *) cat >>confdefs.h <<_ACEOF
4627 #define restrict $ac_cv_c_restrict
4628 _ACEOF
4629 ;;
4630 esac
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644 :
4645
4646
4647
4648
4649
4650
4651
4652 if test $gl_cv_have_include_next = yes; then
4653 gl_cv_next_string_h='<'string.h'>'
4654 else
4655 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4656 echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4657 if test "${gl_cv_next_string_h+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 else
4660
4661 if test $ac_cv_header_string_h = yes; then
4662 cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h. */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h. */
4668 #include <string.h>
4669
4670 _ACEOF
4671 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4672 sed -n '\#/string.h#{
4673 s#.*"\(.*/string.h\)".*#\1#
4674 s#^/[^/]#//&#
4675 p
4676 q
4677 }'`'"'
4678 else
4679 gl_cv_next_string_h='<'string.h'>'
4680 fi
4681
4682 fi
4683 echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4684 echo "${ECHO_T}$gl_cv_next_string_h" >&6
4685 fi
4686 NEXT_STRING_H=$gl_cv_next_string_h
4687
4688
4689
4690
4691
4692 GNULIB_WCWIDTH=0;
4693 HAVE_DECL_WCWIDTH=1;
4694 REPLACE_WCWIDTH=0;
4695 WCHAR_H=
4696
4697
4698
4699
4700
4701 if false; then
4702 GL_COND_LIBTOOL_TRUE=
4703 GL_COND_LIBTOOL_FALSE='#'
4704 else
4705 GL_COND_LIBTOOL_TRUE='#'
4706 GL_COND_LIBTOOL_FALSE=
4707 fi
4708
4709 gl_cond_libtool=false
4710 gl_libdeps=
4711 gl_ltlibdeps=
4712
4713
4714
4715 gl_source_base='gnulib'
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725 for ac_func in memchr
4726 do
4727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4728 echo "$as_me:$LINENO: checking for $ac_func" >&5
4729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4730 if eval "test \"\${$as_ac_var+set}\" = set"; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733 cat >conftest.$ac_ext <<_ACEOF
4734 /* confdefs.h. */
4735 _ACEOF
4736 cat confdefs.h >>conftest.$ac_ext
4737 cat >>conftest.$ac_ext <<_ACEOF
4738 /* end confdefs.h. */
4739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4741 #define $ac_func innocuous_$ac_func
4742
4743 /* System header to define __stub macros and hopefully few prototypes,
4744 which can conflict with char $ac_func (); below.
4745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4746 <limits.h> exists even on freestanding compilers. */
4747
4748 #ifdef __STDC__
4749 # include <limits.h>
4750 #else
4751 # include <assert.h>
4752 #endif
4753
4754 #undef $ac_func
4755
4756 /* Override any gcc2 internal prototype to avoid an error. */
4757 #ifdef __cplusplus
4758 extern "C"
4759 {
4760 #endif
4761 /* We use char because int might match the return type of a gcc2
4762 builtin and then its argument prototype would still apply. */
4763 char $ac_func ();
4764 /* The GNU C library defines this for functions which it implements
4765 to always fail with ENOSYS. Some functions are actually named
4766 something starting with __ and the normal name is an alias. */
4767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4768 choke me
4769 #else
4770 char (*f) () = $ac_func;
4771 #endif
4772 #ifdef __cplusplus
4773 }
4774 #endif
4775
4776 int
4777 main ()
4778 {
4779 return f != $ac_func;
4780 ;
4781 return 0;
4782 }
4783 _ACEOF
4784 rm -f conftest.$ac_objext conftest$ac_exeext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4786 (eval $ac_link) 2>conftest.er1
4787 ac_status=$?
4788 grep -v '^ *+' conftest.er1 >conftest.err
4789 rm -f conftest.er1
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } &&
4793 { ac_try='test -z "$ac_c_werror_flag"
4794 || test ! -s conftest.err'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 (eval $ac_try) 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; } &&
4800 { ac_try='test -s conftest$ac_exeext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 (eval $ac_try) 2>&5
4803 ac_status=$?
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4806 eval "$as_ac_var=yes"
4807 else
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4810
4811 eval "$as_ac_var=no"
4812 fi
4813 rm -f conftest.err conftest.$ac_objext \
4814 conftest$ac_exeext conftest.$ac_ext
4815 fi
4816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4818 if test `eval echo '${'$as_ac_var'}'` = yes; then
4819 cat >>confdefs.h <<_ACEOF
4820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4821 _ACEOF
4822
4823 else
4824
4825 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4826
4827 fi
4828 done
4829
4830
4831 if test $ac_cv_func_memchr = no; then
4832
4833
4834 for ac_header in bp-sym.h
4835 do
4836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4838 echo "$as_me:$LINENO: checking for $ac_header" >&5
4839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 fi
4843 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4844 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4845 else
4846 # Is the header compilable?
4847 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4849 cat >conftest.$ac_ext <<_ACEOF
4850 /* confdefs.h. */
4851 _ACEOF
4852 cat confdefs.h >>conftest.$ac_ext
4853 cat >>conftest.$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4855 $ac_includes_default
4856 #include <$ac_header>
4857 _ACEOF
4858 rm -f conftest.$ac_objext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860 (eval $ac_compile) 2>conftest.er1
4861 ac_status=$?
4862 grep -v '^ *+' conftest.er1 >conftest.err
4863 rm -f conftest.er1
4864 cat conftest.err >&5
4865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } &&
4867 { ac_try='test -z "$ac_c_werror_flag"
4868 || test ! -s conftest.err'
4869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 (eval $ac_try) 2>&5
4871 ac_status=$?
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); }; } &&
4874 { ac_try='test -s conftest.$ac_objext'
4875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4876 (eval $ac_try) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; }; then
4880 ac_header_compiler=yes
4881 else
4882 echo "$as_me: failed program was:" >&5
4883 sed 's/^/| /' conftest.$ac_ext >&5
4884
4885 ac_header_compiler=no
4886 fi
4887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4888 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4889 echo "${ECHO_T}$ac_header_compiler" >&6
4890
4891 # Is the header present?
4892 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h. */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 #include <$ac_header>
4901 _ACEOF
4902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4903 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } >/dev/null; then
4910 if test -s conftest.err; then
4911 ac_cpp_err=$ac_c_preproc_warn_flag
4912 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4913 else
4914 ac_cpp_err=
4915 fi
4916 else
4917 ac_cpp_err=yes
4918 fi
4919 if test -z "$ac_cpp_err"; then
4920 ac_header_preproc=yes
4921 else
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 ac_header_preproc=no
4926 fi
4927 rm -f conftest.err conftest.$ac_ext
4928 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4929 echo "${ECHO_T}$ac_header_preproc" >&6
4930
4931 # So? What about this header?
4932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4933 yes:no: )
4934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4938 ac_header_preproc=yes
4939 ;;
4940 no:yes:* )
4941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4953 (
4954 cat <<\_ASBOX
4955 ## ------------------------------------------ ##
4956 ## Report this to the AC_PACKAGE_NAME lists. ##
4957 ## ------------------------------------------ ##
4958 _ASBOX
4959 ) |
4960 sed "s/^/$as_me: WARNING: /" >&2
4961 ;;
4962 esac
4963 echo "$as_me:$LINENO: checking for $ac_header" >&5
4964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4965 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968 eval "$as_ac_Header=\$ac_header_preproc"
4969 fi
4970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4972
4973 fi
4974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4975 cat >>confdefs.h <<_ACEOF
4976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4977 _ACEOF
4978
4979 fi
4980
4981 done
4982
4983
4984 fi
4985
4986
4987 echo "$as_me:$LINENO: checking for working memcmp" >&5
4988 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4989 if test "${ac_cv_func_memcmp_working+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992 if test "$cross_compiling" = yes; then
4993 ac_cv_func_memcmp_working=no
4994 else
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 $ac_includes_default
5002 int
5003 main ()
5004 {
5005
5006 /* Some versions of memcmp are not 8-bit clean. */
5007 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
5008 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5009 exit (1);
5010
5011 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5012 or more and with at least one buffer not starting on a 4-byte boundary.
5013 William Lewis provided this test program. */
5014 {
5015 char foo[21];
5016 char bar[21];
5017 int i;
5018 for (i = 0; i < 4; i++)
5019 {
5020 char *a = foo + i;
5021 char *b = bar + i;
5022 strcpy (a, "--------01111111");
5023 strcpy (b, "--------10000000");
5024 if (memcmp (a, b, 16) >= 0)
5025 exit (1);
5026 }
5027 exit (0);
5028 }
5029
5030 ;
5031 return 0;
5032 }
5033 _ACEOF
5034 rm -f conftest$ac_exeext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5036 (eval $ac_link) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 (eval $ac_try) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_cv_func_memcmp_working=yes
5046 else
5047 echo "$as_me: program exited with status $ac_status" >&5
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5050
5051 ( exit $ac_status )
5052 ac_cv_func_memcmp_working=no
5053 fi
5054 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5055 fi
5056 fi
5057 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5058 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
5059 test $ac_cv_func_memcmp_working = no &&
5060
5061
5062
5063
5064
5065
5066 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
5067
5068
5069 if test $ac_cv_func_memcmp_working = no; then
5070
5071 cat >>confdefs.h <<\_ACEOF
5072 #define memcmp rpl_memcmp
5073 _ACEOF
5074
5075 :
5076 fi
5077
5078
5079
5080 if test $ac_cv_have_decl_memmem = yes; then
5081 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
5082 echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
5083 if test "${gl_cv_func_memmem_works+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086 if test "$cross_compiling" = yes; then
5087 gl_cv_func_memmem_works="guessing no"
5088 else
5089 cat >conftest.$ac_ext <<_ACEOF
5090 /* confdefs.h. */
5091 _ACEOF
5092 cat confdefs.h >>conftest.$ac_ext
5093 cat >>conftest.$ac_ext <<_ACEOF
5094 /* end confdefs.h. */
5095
5096 #include <string.h> /* for memmem */
5097 #include <stdlib.h> /* for malloc */
5098 #include <unistd.h> /* for alarm */
5099
5100 int
5101 main ()
5102 {
5103 size_t m = 1000000;
5104 char *haystack = (char *) malloc (2 * m + 1);
5105 char *needle = (char *) malloc (m + 1);
5106 void *result = 0;
5107 /* Failure to compile this test due to missing alarm is okay,
5108 since all such platforms (mingw) also lack memmem. */
5109 alarm (5);
5110 /* Check for quadratic performance. */
5111 if (haystack && needle)
5112 {
5113 memset (haystack, 'A', 2 * m);
5114 haystack[2 * m] = 'B';
5115 memset (needle, 'A', m);
5116 needle[m] = 'B';
5117 result = memmem (haystack, 2 * m + 1, needle, m + 1);
5118 }
5119 /* Check for empty needle behavior. */
5120 return !result || !memmem ("a", 1, 0, 0);
5121 ;
5122 return 0;
5123 }
5124 _ACEOF
5125 rm -f conftest$ac_exeext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5127 (eval $ac_link) 2>&5
5128 ac_status=$?
5129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 (eval $ac_try) 2>&5
5133 ac_status=$?
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); }; }; then
5136 gl_cv_func_memmem_works=yes
5137 else
5138 echo "$as_me: program exited with status $ac_status" >&5
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5141
5142 ( exit $ac_status )
5143 gl_cv_func_memmem_works=no
5144 fi
5145 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5146 fi
5147 fi
5148 echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
5149 echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
5150 if test "$gl_cv_func_memmem_works" != yes; then
5151 REPLACE_MEMMEM=1
5152
5153
5154
5155
5156
5157
5158
5159 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
5160
5161 fi
5162 fi
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176 for ac_func in memmem
5177 do
5178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5179 echo "$as_me:$LINENO: checking for $ac_func" >&5
5180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5181 if eval "test \"\${$as_ac_var+set}\" = set"; then
5182 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 else
5184 cat >conftest.$ac_ext <<_ACEOF
5185 /* confdefs.h. */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */
5190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5192 #define $ac_func innocuous_$ac_func
5193
5194 /* System header to define __stub macros and hopefully few prototypes,
5195 which can conflict with char $ac_func (); below.
5196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197 <limits.h> exists even on freestanding compilers. */
5198
5199 #ifdef __STDC__
5200 # include <limits.h>
5201 #else
5202 # include <assert.h>
5203 #endif
5204
5205 #undef $ac_func
5206
5207 /* Override any gcc2 internal prototype to avoid an error. */
5208 #ifdef __cplusplus
5209 extern "C"
5210 {
5211 #endif
5212 /* We use char because int might match the return type of a gcc2
5213 builtin and then its argument prototype would still apply. */
5214 char $ac_func ();
5215 /* The GNU C library defines this for functions which it implements
5216 to always fail with ENOSYS. Some functions are actually named
5217 something starting with __ and the normal name is an alias. */
5218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5219 choke me
5220 #else
5221 char (*f) () = $ac_func;
5222 #endif
5223 #ifdef __cplusplus
5224 }
5225 #endif
5226
5227 int
5228 main ()
5229 {
5230 return f != $ac_func;
5231 ;
5232 return 0;
5233 }
5234 _ACEOF
5235 rm -f conftest.$ac_objext conftest$ac_exeext
5236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5237 (eval $ac_link) 2>conftest.er1
5238 ac_status=$?
5239 grep -v '^ *+' conftest.er1 >conftest.err
5240 rm -f conftest.er1
5241 cat conftest.err >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); } &&
5244 { ac_try='test -z "$ac_c_werror_flag"
5245 || test ! -s conftest.err'
5246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5247 (eval $ac_try) 2>&5
5248 ac_status=$?
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); }; } &&
5251 { ac_try='test -s conftest$ac_exeext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 (eval $ac_try) 2>&5
5254 ac_status=$?
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 eval "$as_ac_var=yes"
5258 else
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5261
5262 eval "$as_ac_var=no"
5263 fi
5264 rm -f conftest.err conftest.$ac_objext \
5265 conftest$ac_exeext conftest.$ac_ext
5266 fi
5267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5268 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5269 if test `eval echo '${'$as_ac_var'}'` = yes; then
5270 cat >>confdefs.h <<_ACEOF
5271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5272 _ACEOF
5273
5274 else
5275
5276 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5277
5278 fi
5279 done
5280
5281
5282
5283 :
5284
5285
5286
5287
5288
5289 if test $ac_cv_have_decl_memmem = no; then
5290 HAVE_DECL_MEMMEM=0
5291 fi
5292 :
5293
5294
5295
5296 GNULIB_MEMMEM=1
5297
5298
5299
5300
5301 if test $ac_cv_type_long_long_int = yes; then
5302 HAVE_LONG_LONG_INT=1
5303 else
5304 HAVE_LONG_LONG_INT=0
5305 fi
5306
5307
5308 if test $ac_cv_type_unsigned_long_long_int = yes; then
5309 HAVE_UNSIGNED_LONG_LONG_INT=1
5310 else
5311 HAVE_UNSIGNED_LONG_LONG_INT=0
5312 fi
5313
5314
5315 if test $ac_cv_header_inttypes_h = yes; then
5316 HAVE_INTTYPES_H=1
5317 else
5318 HAVE_INTTYPES_H=0
5319 fi
5320
5321
5322 if test $ac_cv_header_sys_types_h = yes; then
5323 HAVE_SYS_TYPES_H=1
5324 else
5325 HAVE_SYS_TYPES_H=0
5326 fi
5327
5328
5329
5330
5331
5332 :
5333
5334
5335
5336
5337
5338
5339
5340 if test $gl_cv_have_include_next = yes; then
5341 gl_cv_next_stdint_h='<'stdint.h'>'
5342 else
5343 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5344 echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5345 if test "${gl_cv_next_stdint_h+set}" = set; then
5346 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348
5349 if test $ac_cv_header_stdint_h = yes; then
5350 cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h. */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5356 #include <stdint.h>
5357
5358 _ACEOF
5359 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360 sed -n '\#/stdint.h#{
5361 s#.*"\(.*/stdint.h\)".*#\1#
5362 s#^/[^/]#//&#
5363 p
5364 q
5365 }'`'"'
5366 else
5367 gl_cv_next_stdint_h='<'stdint.h'>'
5368 fi
5369
5370 fi
5371 echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5372 echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5373 fi
5374 NEXT_STDINT_H=$gl_cv_next_stdint_h
5375
5376
5377
5378 if test $ac_cv_header_stdint_h = yes; then
5379 HAVE_STDINT_H=1
5380 else
5381 HAVE_STDINT_H=0
5382 fi
5383
5384
5385 if test $ac_cv_header_stdint_h = yes; then
5386 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5387 echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5388 if test "${gl_cv_header_working_stdint_h+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391 gl_cv_header_working_stdint_h=no
5392 cat >conftest.$ac_ext <<_ACEOF
5393
5394 /* confdefs.h. */
5395 _ACEOF
5396 cat confdefs.h >>conftest.$ac_ext
5397 cat >>conftest.$ac_ext <<_ACEOF
5398 /* end confdefs.h. */
5399
5400 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5401 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5402 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5403 #include <stdint.h>
5404 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5405 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5406 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5407 #endif
5408
5409
5410 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5411 included before <wchar.h>. */
5412 #include <stddef.h>
5413 #include <signal.h>
5414 #if HAVE_WCHAR_H
5415 # include <stdio.h>
5416 # include <time.h>
5417 # include <wchar.h>
5418 #endif
5419
5420
5421 #ifdef INT8_MAX
5422 int8_t a1 = INT8_MAX;
5423 int8_t a1min = INT8_MIN;
5424 #endif
5425 #ifdef INT16_MAX
5426 int16_t a2 = INT16_MAX;
5427 int16_t a2min = INT16_MIN;
5428 #endif
5429 #ifdef INT32_MAX
5430 int32_t a3 = INT32_MAX;
5431 int32_t a3min = INT32_MIN;
5432 #endif
5433 #ifdef INT64_MAX
5434 int64_t a4 = INT64_MAX;
5435 int64_t a4min = INT64_MIN;
5436 #endif
5437 #ifdef UINT8_MAX
5438 uint8_t b1 = UINT8_MAX;
5439 #else
5440 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5441 #endif
5442 #ifdef UINT16_MAX
5443 uint16_t b2 = UINT16_MAX;
5444 #endif
5445 #ifdef UINT32_MAX
5446 uint32_t b3 = UINT32_MAX;
5447 #endif
5448 #ifdef UINT64_MAX
5449 uint64_t b4 = UINT64_MAX;
5450 #endif
5451 int_least8_t c1 = INT8_C (0x7f);
5452 int_least8_t c1max = INT_LEAST8_MAX;
5453 int_least8_t c1min = INT_LEAST8_MIN;
5454 int_least16_t c2 = INT16_C (0x7fff);
5455 int_least16_t c2max = INT_LEAST16_MAX;
5456 int_least16_t c2min = INT_LEAST16_MIN;
5457 int_least32_t c3 = INT32_C (0x7fffffff);
5458 int_least32_t c3max = INT_LEAST32_MAX;
5459 int_least32_t c3min = INT_LEAST32_MIN;
5460 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5461 int_least64_t c4max = INT_LEAST64_MAX;
5462 int_least64_t c4min = INT_LEAST64_MIN;
5463 uint_least8_t d1 = UINT8_C (0xff);
5464 uint_least8_t d1max = UINT_LEAST8_MAX;
5465 uint_least16_t d2 = UINT16_C (0xffff);
5466 uint_least16_t d2max = UINT_LEAST16_MAX;
5467 uint_least32_t d3 = UINT32_C (0xffffffff);
5468 uint_least32_t d3max = UINT_LEAST32_MAX;
5469 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5470 uint_least64_t d4max = UINT_LEAST64_MAX;
5471 int_fast8_t e1 = INT_FAST8_MAX;
5472 int_fast8_t e1min = INT_FAST8_MIN;
5473 int_fast16_t e2 = INT_FAST16_MAX;
5474 int_fast16_t e2min = INT_FAST16_MIN;
5475 int_fast32_t e3 = INT_FAST32_MAX;
5476 int_fast32_t e3min = INT_FAST32_MIN;
5477 int_fast64_t e4 = INT_FAST64_MAX;
5478 int_fast64_t e4min = INT_FAST64_MIN;
5479 uint_fast8_t f1 = UINT_FAST8_MAX;
5480 uint_fast16_t f2 = UINT_FAST16_MAX;
5481 uint_fast32_t f3 = UINT_FAST32_MAX;
5482 uint_fast64_t f4 = UINT_FAST64_MAX;
5483 #ifdef INTPTR_MAX
5484 intptr_t g = INTPTR_MAX;
5485 intptr_t gmin = INTPTR_MIN;
5486 #endif
5487 #ifdef UINTPTR_MAX
5488 uintptr_t h = UINTPTR_MAX;
5489 #endif
5490 intmax_t i = INTMAX_MAX;
5491 uintmax_t j = UINTMAX_MAX;
5492
5493 #include <limits.h> /* for CHAR_BIT */
5494 #define TYPE_MINIMUM(t) \
5495 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5496 #define TYPE_MAXIMUM(t) \
5497 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5498 struct s {
5499 int check_PTRDIFF:
5500 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5501 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5502 ? 1 : -1;
5503 /* Detect bug in FreeBSD 6.0 / ia64. */
5504 int check_SIG_ATOMIC:
5505 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5506 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5507 ? 1 : -1;
5508 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5509 int check_WCHAR:
5510 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5511 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5512 ? 1 : -1;
5513 /* Detect bug in mingw. */
5514 int check_WINT:
5515 WINT_MIN == TYPE_MINIMUM (wint_t)
5516 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5517 ? 1 : -1;
5518
5519 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5520 int check_UINT8_C:
5521 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5522 int check_UINT16_C:
5523 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5524
5525 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5526 #ifdef UINT8_MAX
5527 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5528 #endif
5529 #ifdef UINT16_MAX
5530 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5531 #endif
5532 #ifdef UINT32_MAX
5533 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5534 #endif
5535 #ifdef UINT64_MAX
5536 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5537 #endif
5538 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5539 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5540 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5541 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5542 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5543 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5544 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5545 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5546 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5547 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5548 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5549 };
5550
5551 int
5552 main ()
5553 {
5554
5555 ;
5556 return 0;
5557 }
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561 (eval $ac_compile) 2>conftest.er1
5562 ac_status=$?
5563 grep -v '^ *+' conftest.er1 >conftest.err
5564 rm -f conftest.er1
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } &&
5568 { ac_try='test -z "$ac_c_werror_flag"
5569 || test ! -s conftest.err'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5571 (eval $ac_try) 2>&5
5572 ac_status=$?
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; } &&
5575 { ac_try='test -s conftest.$ac_objext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5577 (eval $ac_try) 2>&5
5578 ac_status=$?
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 gl_cv_header_working_stdint_h=yes
5582 else
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5585
5586 fi
5587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5588 fi
5589 echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5590 echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5591 fi
5592 if test "$gl_cv_header_working_stdint_h" = yes; then
5593 STDINT_H=
5594 else
5595
5596
5597 for ac_header in sys/inttypes.h sys/bitypes.h
5598 do
5599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5601 echo "$as_me:$LINENO: checking for $ac_header" >&5
5602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 fi
5606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5608 else
5609 # Is the header compilable?
5610 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5612 cat >conftest.$ac_ext <<_ACEOF
5613 /* confdefs.h. */
5614 _ACEOF
5615 cat confdefs.h >>conftest.$ac_ext
5616 cat >>conftest.$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5618 $ac_includes_default
5619 #include <$ac_header>
5620 _ACEOF
5621 rm -f conftest.$ac_objext
5622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5623 (eval $ac_compile) 2>conftest.er1
5624 ac_status=$?
5625 grep -v '^ *+' conftest.er1 >conftest.err
5626 rm -f conftest.er1
5627 cat conftest.err >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } &&
5630 { ac_try='test -z "$ac_c_werror_flag"
5631 || test ! -s conftest.err'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 (eval $ac_try) 2>&5
5634 ac_status=$?
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; } &&
5637 { ac_try='test -s conftest.$ac_objext'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 (eval $ac_try) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; }; then
5643 ac_header_compiler=yes
5644 else
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5647
5648 ac_header_compiler=no
5649 fi
5650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5651 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5652 echo "${ECHO_T}$ac_header_compiler" >&6
5653
5654 # Is the header present?
5655 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5657 cat >conftest.$ac_ext <<_ACEOF
5658 /* confdefs.h. */
5659 _ACEOF
5660 cat confdefs.h >>conftest.$ac_ext
5661 cat >>conftest.$ac_ext <<_ACEOF
5662 /* end confdefs.h. */
5663 #include <$ac_header>
5664 _ACEOF
5665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5667 ac_status=$?
5668 grep -v '^ *+' conftest.er1 >conftest.err
5669 rm -f conftest.er1
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } >/dev/null; then
5673 if test -s conftest.err; then
5674 ac_cpp_err=$ac_c_preproc_warn_flag
5675 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5676 else
5677 ac_cpp_err=
5678 fi
5679 else
5680 ac_cpp_err=yes
5681 fi
5682 if test -z "$ac_cpp_err"; then
5683 ac_header_preproc=yes
5684 else
5685 echo "$as_me: failed program was:" >&5
5686 sed 's/^/| /' conftest.$ac_ext >&5
5687
5688 ac_header_preproc=no
5689 fi
5690 rm -f conftest.err conftest.$ac_ext
5691 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5692 echo "${ECHO_T}$ac_header_preproc" >&6
5693
5694 # So? What about this header?
5695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5696 yes:no: )
5697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5701 ac_header_preproc=yes
5702 ;;
5703 no:yes:* )
5704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5716 (
5717 cat <<\_ASBOX
5718 ## ------------------------------------------ ##
5719 ## Report this to the AC_PACKAGE_NAME lists. ##
5720 ## ------------------------------------------ ##
5721 _ASBOX
5722 ) |
5723 sed "s/^/$as_me: WARNING: /" >&2
5724 ;;
5725 esac
5726 echo "$as_me:$LINENO: checking for $ac_header" >&5
5727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5728 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731 eval "$as_ac_Header=\$ac_header_preproc"
5732 fi
5733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5734 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5735
5736 fi
5737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5738 cat >>confdefs.h <<_ACEOF
5739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5740 _ACEOF
5741
5742 fi
5743
5744 done
5745
5746 if test $ac_cv_header_sys_inttypes_h = yes; then
5747 HAVE_SYS_INTTYPES_H=1
5748 else
5749 HAVE_SYS_INTTYPES_H=0
5750 fi
5751
5752 if test $ac_cv_header_sys_bitypes_h = yes; then
5753 HAVE_SYS_BITYPES_H=1
5754 else
5755 HAVE_SYS_BITYPES_H=0
5756 fi
5757
5758
5759
5760 :
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5776 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5777 echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5778 if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781 if test "$cross_compiling" = yes; then
5782 # Depending upon the size, compute the lo and hi bounds.
5783 cat >conftest.$ac_ext <<_ACEOF
5784 /* confdefs.h. */
5785 _ACEOF
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789
5790 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5791 included before <wchar.h>. */
5792 #include <stddef.h>
5793 #include <signal.h>
5794 #if HAVE_WCHAR_H
5795 # include <stdio.h>
5796 # include <time.h>
5797 # include <wchar.h>
5798 #endif
5799
5800 #include <limits.h>
5801 int
5802 main ()
5803 {
5804 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5805 test_array [0] = 0
5806
5807 ;
5808 return 0;
5809 }
5810 _ACEOF
5811 rm -f conftest.$ac_objext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5813 (eval $ac_compile) 2>conftest.er1
5814 ac_status=$?
5815 grep -v '^ *+' conftest.er1 >conftest.err
5816 rm -f conftest.er1
5817 cat conftest.err >&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try='test -z "$ac_c_werror_flag"
5821 || test ! -s conftest.err'
5822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5823 (eval $ac_try) 2>&5
5824 ac_status=$?
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); }; } &&
5827 { ac_try='test -s conftest.$ac_objext'
5828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829 (eval $ac_try) 2>&5
5830 ac_status=$?
5831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832 (exit $ac_status); }; }; then
5833 ac_lo=0 ac_mid=0
5834 while :; do
5835 cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h. */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841
5842 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5843 included before <wchar.h>. */
5844 #include <stddef.h>
5845 #include <signal.h>
5846 #if HAVE_WCHAR_H
5847 # include <stdio.h>
5848 # include <time.h>
5849 # include <wchar.h>
5850 #endif
5851
5852 #include <limits.h>
5853 int
5854 main ()
5855 {
5856 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5857 test_array [0] = 0
5858
5859 ;
5860 return 0;
5861 }
5862 _ACEOF
5863 rm -f conftest.$ac_objext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865 (eval $ac_compile) 2>conftest.er1
5866 ac_status=$?
5867 grep -v '^ *+' conftest.er1 >conftest.err
5868 rm -f conftest.er1
5869 cat conftest.err >&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -z "$ac_c_werror_flag"
5873 || test ! -s conftest.err'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875 (eval $ac_try) 2>&5
5876 ac_status=$?
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; } &&
5879 { ac_try='test -s conftest.$ac_objext'
5880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881 (eval $ac_try) 2>&5
5882 ac_status=$?
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); }; }; then
5885 ac_hi=$ac_mid; break
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5889
5890 ac_lo=`expr $ac_mid + 1`
5891 if test $ac_lo -le $ac_mid; then
5892 ac_lo= ac_hi=
5893 break
5894 fi
5895 ac_mid=`expr 2 '*' $ac_mid + 1`
5896 fi
5897 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5898 done
5899 else
5900 echo "$as_me: failed program was:" >&5
5901 sed 's/^/| /' conftest.$ac_ext >&5
5902
5903 cat >conftest.$ac_ext <<_ACEOF
5904 /* confdefs.h. */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5909
5910 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5911 included before <wchar.h>. */
5912 #include <stddef.h>
5913 #include <signal.h>
5914 #if HAVE_WCHAR_H
5915 # include <stdio.h>
5916 # include <time.h>
5917 # include <wchar.h>
5918 #endif
5919
5920 #include <limits.h>
5921 int
5922 main ()
5923 {
5924 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5925 test_array [0] = 0
5926
5927 ;
5928 return 0;
5929 }
5930 _ACEOF
5931 rm -f conftest.$ac_objext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5933 (eval $ac_compile) 2>conftest.er1
5934 ac_status=$?
5935 grep -v '^ *+' conftest.er1 >conftest.err
5936 rm -f conftest.er1
5937 cat conftest.err >&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } &&
5940 { ac_try='test -z "$ac_c_werror_flag"
5941 || test ! -s conftest.err'
5942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 (eval $ac_try) 2>&5
5944 ac_status=$?
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; } &&
5947 { ac_try='test -s conftest.$ac_objext'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 (eval $ac_try) 2>&5
5950 ac_status=$?
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5953 ac_hi=-1 ac_mid=-1
5954 while :; do
5955 cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h. */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5961
5962 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5963 included before <wchar.h>. */
5964 #include <stddef.h>
5965 #include <signal.h>
5966 #if HAVE_WCHAR_H
5967 # include <stdio.h>
5968 # include <time.h>
5969 # include <wchar.h>
5970 #endif
5971
5972 #include <limits.h>
5973 int
5974 main ()
5975 {
5976 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5977 test_array [0] = 0
5978
5979 ;
5980 return 0;
5981 }
5982 _ACEOF
5983 rm -f conftest.$ac_objext
5984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5985 (eval $ac_compile) 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } &&
5992 { ac_try='test -z "$ac_c_werror_flag"
5993 || test ! -s conftest.err'
5994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5995 (eval $ac_try) 2>&5
5996 ac_status=$?
5997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); }; } &&
5999 { ac_try='test -s conftest.$ac_objext'
6000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6001 (eval $ac_try) 2>&5
6002 ac_status=$?
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; }; then
6005 ac_lo=$ac_mid; break
6006 else
6007 echo "$as_me: failed program was:" >&5
6008 sed 's/^/| /' conftest.$ac_ext >&5
6009
6010 ac_hi=`expr '(' $ac_mid ')' - 1`
6011 if test $ac_mid -le $ac_hi; then
6012 ac_lo= ac_hi=
6013 break
6014 fi
6015 ac_mid=`expr 2 '*' $ac_mid`
6016 fi
6017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6018 done
6019 else
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6022
6023 ac_lo= ac_hi=
6024 fi
6025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6026 fi
6027 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6028 # Binary search between lo and hi bounds.
6029 while test "x$ac_lo" != "x$ac_hi"; do
6030 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6031 cat >conftest.$ac_ext <<_ACEOF
6032 /* confdefs.h. */
6033 _ACEOF
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037
6038 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6039 included before <wchar.h>. */
6040 #include <stddef.h>
6041 #include <signal.h>
6042 #if HAVE_WCHAR_H
6043 # include <stdio.h>
6044 # include <time.h>
6045 # include <wchar.h>
6046 #endif
6047
6048 #include <limits.h>
6049 int
6050 main ()
6051 {
6052 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
6053 test_array [0] = 0
6054
6055 ;
6056 return 0;
6057 }
6058 _ACEOF
6059 rm -f conftest.$ac_objext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061 (eval $ac_compile) 2>conftest.er1
6062 ac_status=$?
6063 grep -v '^ *+' conftest.er1 >conftest.err
6064 rm -f conftest.er1
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } &&
6068 { ac_try='test -z "$ac_c_werror_flag"
6069 || test ! -s conftest.err'
6070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6071 (eval $ac_try) 2>&5
6072 ac_status=$?
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }; } &&
6075 { ac_try='test -s conftest.$ac_objext'
6076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 (eval $ac_try) 2>&5
6078 ac_status=$?
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); }; }; then
6081 ac_hi=$ac_mid
6082 else
6083 echo "$as_me: failed program was:" >&5
6084 sed 's/^/| /' conftest.$ac_ext >&5
6085
6086 ac_lo=`expr '(' $ac_mid ')' + 1`
6087 fi
6088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6089 done
6090 case $ac_lo in
6091 ?*) result=$ac_lo;;
6092 '') result=unknown ;;
6093 esac
6094 else
6095 if test "$cross_compiling" = yes; then
6096 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6097 echo "$as_me: error: in \`$ac_pwd':" >&2;}
6098 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6099 See \`config.log' for more details." >&5
6100 echo "$as_me: error: cannot run test program while cross compiling
6101 See \`config.log' for more details." >&2;}
6102 { (exit 1); exit 1; }; }; }
6103 else
6104 cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h. */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110
6111 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6112 included before <wchar.h>. */
6113 #include <stddef.h>
6114 #include <signal.h>
6115 #if HAVE_WCHAR_H
6116 # include <stdio.h>
6117 # include <time.h>
6118 # include <wchar.h>
6119 #endif
6120
6121 #include <limits.h>
6122 long longval () { return sizeof ($gltype) * CHAR_BIT; }
6123 unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
6124 #include <stdio.h>
6125 #include <stdlib.h>
6126 int
6127 main ()
6128 {
6129
6130 FILE *f = fopen ("conftest.val", "w");
6131 if (! f)
6132 exit (1);
6133 if ((sizeof ($gltype) * CHAR_BIT) < 0)
6134 {
6135 long i = longval ();
6136 if (i != (sizeof ($gltype) * CHAR_BIT))
6137 exit (1);
6138 fprintf (f, "%ld\n", i);
6139 }
6140 else
6141 {
6142 unsigned long i = ulongval ();
6143 if (i != (sizeof ($gltype) * CHAR_BIT))
6144 exit (1);
6145 fprintf (f, "%lu\n", i);
6146 }
6147 exit (ferror (f) || fclose (f) != 0);
6148
6149 ;
6150 return 0;
6151 }
6152 _ACEOF
6153 rm -f conftest$ac_exeext
6154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6155 (eval $ac_link) 2>&5
6156 ac_status=$?
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6160 (eval $ac_try) 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; }; then
6164 result=`cat conftest.val`
6165 else
6166 echo "$as_me: program exited with status $ac_status" >&5
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170 ( exit $ac_status )
6171 result=unknown
6172 fi
6173 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6174 fi
6175 fi
6176 rm -f conftest.val
6177 eval gl_cv_bitsizeof_${gltype}=\$result
6178
6179 fi
6180 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
6181 echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
6182 eval result=\$gl_cv_bitsizeof_${gltype}
6183 if test $result = unknown; then
6184 result=0
6185 fi
6186 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6187 cat >>confdefs.h <<_ACEOF
6188 #define BITSIZEOF_${GLTYPE} $result
6189 _ACEOF
6190
6191 eval BITSIZEOF_${GLTYPE}=\$result
6192 done
6193
6194
6195
6196
6197
6198
6199
6200 for gltype in sig_atomic_t wchar_t wint_t ; do
6201 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
6202 echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
6203 if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
6204 echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206 cat >conftest.$ac_ext <<_ACEOF
6207 /* confdefs.h. */
6208 _ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h. */
6212
6213 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6214 included before <wchar.h>. */
6215 #include <stddef.h>
6216 #include <signal.h>
6217 #if HAVE_WCHAR_H
6218 # include <stdio.h>
6219 # include <time.h>
6220 # include <wchar.h>
6221 #endif
6222
6223 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6224 int
6225 main ()
6226 {
6227
6228 ;
6229 return 0;
6230 }
6231 _ACEOF
6232 rm -f conftest.$ac_objext
6233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6234 (eval $ac_compile) 2>conftest.er1
6235 ac_status=$?
6236 grep -v '^ *+' conftest.er1 >conftest.err
6237 rm -f conftest.er1
6238 cat conftest.err >&5
6239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6240 (exit $ac_status); } &&
6241 { ac_try='test -z "$ac_c_werror_flag"
6242 || test ! -s conftest.err'
6243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6244 (eval $ac_try) 2>&5
6245 ac_status=$?
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); }; } &&
6248 { ac_try='test -s conftest.$ac_objext'
6249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6250 (eval $ac_try) 2>&5
6251 ac_status=$?
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); }; }; then
6254 result=yes
6255 else
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259 result=no
6260 fi
6261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6262 eval gl_cv_type_${gltype}_signed=\$result
6263
6264 fi
6265 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6266 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6267 eval result=\$gl_cv_type_${gltype}_signed
6268 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6269 if test "$result" = yes; then
6270 cat >>confdefs.h <<_ACEOF
6271 #define HAVE_SIGNED_${GLTYPE} 1
6272 _ACEOF
6273
6274 eval HAVE_SIGNED_${GLTYPE}=1
6275 else
6276 eval HAVE_SIGNED_${GLTYPE}=0
6277 fi
6278 done
6279
6280
6281 gl_cv_type_ptrdiff_t_signed=yes
6282 gl_cv_type_size_t_signed=no
6283
6284
6285
6286
6287
6288
6289
6290 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6291 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6292 echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6293 if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 else
6296 eval gl_cv_type_${gltype}_suffix=no
6297 eval result=\$gl_cv_type_${gltype}_signed
6298 if test "$result" = yes; then
6299 glsufu=
6300 else
6301 glsufu=u
6302 fi
6303 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6304 case $glsuf in
6305 '') gltype1='int';;
6306 l) gltype1='long int';;
6307 ll) gltype1='long long int';;
6308 i64) gltype1='__int64';;
6309 u) gltype1='unsigned int';;
6310 ul) gltype1='unsigned long int';;
6311 ull) gltype1='unsigned long long int';;
6312 ui64)gltype1='unsigned __int64';;
6313 esac
6314 cat >conftest.$ac_ext <<_ACEOF
6315 /* confdefs.h. */
6316 _ACEOF
6317 cat confdefs.h >>conftest.$ac_ext
6318 cat >>conftest.$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6320
6321 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6322 included before <wchar.h>. */
6323 #include <stddef.h>
6324 #include <signal.h>
6325 #if HAVE_WCHAR_H
6326 # include <stdio.h>
6327 # include <time.h>
6328 # include <wchar.h>
6329 #endif
6330
6331 extern $gltype foo;
6332 extern $gltype1 foo;
6333 int
6334 main ()
6335 {
6336
6337 ;
6338 return 0;
6339 }
6340 _ACEOF
6341 rm -f conftest.$ac_objext
6342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6343 (eval $ac_compile) 2>conftest.er1
6344 ac_status=$?
6345 grep -v '^ *+' conftest.er1 >conftest.err
6346 rm -f conftest.er1
6347 cat conftest.err >&5
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -z "$ac_c_werror_flag"
6351 || test ! -s conftest.err'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6353 (eval $ac_try) 2>&5
6354 ac_status=$?
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; } &&
6357 { ac_try='test -s conftest.$ac_objext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6359 (eval $ac_try) 2>&5
6360 ac_status=$?
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6363 eval gl_cv_type_${gltype}_suffix=\$glsuf
6364 else
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6367
6368 fi
6369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6370 eval result=\$gl_cv_type_${gltype}_suffix
6371 test "$result" != no && break
6372 done
6373 fi
6374 echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6375 echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6376 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6377 eval result=\$gl_cv_type_${gltype}_suffix
6378 test "$result" = no && result=
6379 eval ${GLTYPE}_SUFFIX=\$result
6380 cat >>confdefs.h <<_ACEOF
6381 #define ${GLTYPE}_SUFFIX $result
6382 _ACEOF
6383
6384 done
6385
6386
6387
6388 STDINT_H=stdint.h
6389 fi
6390
6391
6392
6393
6394
6395
6396
6397 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6398 echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6399 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 else
6402 cat >conftest.$ac_ext <<_ACEOF
6403 #include <wchar.h>
6404 wchar_t w;
6405 _ACEOF
6406 rm -f conftest.$ac_objext
6407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6408 (eval $ac_compile) 2>conftest.er1
6409 ac_status=$?
6410 grep -v '^ *+' conftest.er1 >conftest.err
6411 rm -f conftest.er1
6412 cat conftest.err >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); } &&
6415 { ac_try='test -z "$ac_c_werror_flag"
6416 || test ! -s conftest.err'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 (eval $ac_try) 2>&5
6419 ac_status=$?
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; } &&
6422 { ac_try='test -s conftest.$ac_objext'
6423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6424 (eval $ac_try) 2>&5
6425 ac_status=$?
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; }; then
6428 gl_cv_header_wchar_h_standalone=yes
6429 else
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6432
6433 gl_cv_header_wchar_h_standalone=no
6434 fi
6435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6436 fi
6437 echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6438 echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6439 if test $gl_cv_header_wchar_h_standalone != yes; then
6440 WCHAR_H=wchar.h
6441 fi
6442
6443
6444 :
6445
6446
6447
6448
6449
6450 if test $ac_cv_header_wchar_h = yes; then
6451 HAVE_WCHAR_H=1
6452 else
6453 HAVE_WCHAR_H=0
6454 fi
6455
6456
6457
6458
6459 :
6460
6461
6462
6463
6464
6465
6466
6467 if test $gl_cv_have_include_next = yes; then
6468 gl_cv_next_wchar_h='<'wchar.h'>'
6469 else
6470 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6471 echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6472 if test "${gl_cv_next_wchar_h+set}" = set; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 else
6475
6476 if test $ac_cv_header_wchar_h = yes; then
6477 cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h. */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h. */
6483 #include <wchar.h>
6484
6485 _ACEOF
6486 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6487 sed -n '\#/wchar.h#{
6488 s#.*"\(.*/wchar.h\)".*#\1#
6489 s#^/[^/]#//&#
6490 p
6491 q
6492 }'`'"'
6493 else
6494 gl_cv_next_wchar_h='<'wchar.h'>'
6495 fi
6496
6497 fi
6498 echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6499 echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6500 fi
6501 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6502
6503
6504
6505
6506
6507
6508
6509
6510 gltests_libdeps=
6511 gltests_ltlibdeps=
6512
6513
6514
6515 gl_source_base='tests'
6516
6517
6518
6519
6520 LIBGNU_LIBDEPS="$gl_libdeps"
6521
6522 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6523
6524
6525
6526 # For Makefile dependencies.
6527 GNULIB_STDINT_H=
6528 if test x"$STDINT_H" != x; then
6529 GNULIB_STDINT_H=gnulib/$STDINT_H
6530 fi
6531
6532
6533 PACKAGE=gdb
6534
6535 cat >>confdefs.h <<_ACEOF
6536 #define PACKAGE "$PACKAGE"
6537 _ACEOF
6538
6539
6540
6541 # GDB does not use automake, but gnulib does. This line lets us
6542 # generate its Makefile.in.
6543 am__api_version="1.9"
6544 # Find a good install program. We prefer a C program (faster),
6545 # so one script is as good as another. But avoid the broken or
6546 # incompatible versions:
6547 # SysV /etc/install, /usr/sbin/install
6548 # SunOS /usr/etc/install
6549 # IRIX /sbin/install
6550 # AIX /bin/install
6551 # AmigaOS /C/install, which installs bootblocks on floppy discs
6552 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6553 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6554 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6555 # OS/2's system install, which has a completely different semantic
6556 # ./install, which can be erroneously created by make from ./install.sh.
6557 # Reject install programs that cannot install multiple files.
6558 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6559 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6560 if test -z "$INSTALL"; then
6561 if test "${ac_cv_path_install+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6563 else
6564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 for as_dir in $PATH
6566 do
6567 IFS=$as_save_IFS
6568 test -z "$as_dir" && as_dir=.
6569 # Account for people who put trailing slashes in PATH elements.
6570 case $as_dir/ in
6571 ./ | .// | /cC/* | \
6572 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6573 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6574 /usr/ucb/* ) ;;
6575 *)
6576 # OSF1 and SCO ODT 3.0 have their own names for install.
6577 # Don't use installbsd from OSF since it installs stuff as root
6578 # by default.
6579 for ac_prog in ginstall scoinst install; do
6580 for ac_exec_ext in '' $ac_executable_extensions; do
6581 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6582 if test $ac_prog = install &&
6583 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6584 # AIX install. It has an incompatible calling convention.
6585 :
6586 elif test $ac_prog = install &&
6587 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6588 # program-specific install script used by HP pwplus--don't use.
6589 :
6590 else
6591 rm -rf conftest.one conftest.two conftest.dir
6592 echo one > conftest.one
6593 echo two > conftest.two
6594 mkdir conftest.dir
6595 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6596 test -s conftest.one && test -s conftest.two &&
6597 test -s conftest.dir/conftest.one &&
6598 test -s conftest.dir/conftest.two
6599 then
6600 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6601 break 3
6602 fi
6603 fi
6604 fi
6605 done
6606 done
6607 ;;
6608 esac
6609 done
6610
6611 rm -rf conftest.one conftest.two conftest.dir
6612
6613 fi
6614 if test "${ac_cv_path_install+set}" = set; then
6615 INSTALL=$ac_cv_path_install
6616 else
6617 # As a last resort, use the slow shell script. Don't cache a
6618 # value for INSTALL within a source directory, because that will
6619 # break other packages using the cache if that directory is
6620 # removed, or if the value is a relative name.
6621 INSTALL=$ac_install_sh
6622 fi
6623 fi
6624 echo "$as_me:$LINENO: result: $INSTALL" >&5
6625 echo "${ECHO_T}$INSTALL" >&6
6626
6627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6628 # It thinks the first close brace ends the variable substitution.
6629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6630
6631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6632
6633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6634
6635 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6636 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6637 # Just in case
6638 sleep 1
6639 echo timestamp > conftest.file
6640 # Do `set' in a subshell so we don't clobber the current shell's
6641 # arguments. Must try -L first in case configure is actually a
6642 # symlink; some systems play weird games with the mod time of symlinks
6643 # (eg FreeBSD returns the mod time of the symlink's containing
6644 # directory).
6645 if (
6646 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6647 if test "$*" = "X"; then
6648 # -L didn't work.
6649 set X `ls -t $srcdir/configure conftest.file`
6650 fi
6651 rm -f conftest.file
6652 if test "$*" != "X $srcdir/configure conftest.file" \
6653 && test "$*" != "X conftest.file $srcdir/configure"; then
6654
6655 # If neither matched, then we have a broken ls. This can happen
6656 # if, for instance, CONFIG_SHELL is bash and it inherits a
6657 # broken ls alias from the environment. This has actually
6658 # happened. Such a system could not be considered "sane".
6659 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6660 alias in your environment" >&5
6661 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6662 alias in your environment" >&2;}
6663 { (exit 1); exit 1; }; }
6664 fi
6665
6666 test "$2" = conftest.file
6667 )
6668 then
6669 # Ok.
6670 :
6671 else
6672 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6673 Check your system clock" >&5
6674 echo "$as_me: error: newly created file is older than distributed files!
6675 Check your system clock" >&2;}
6676 { (exit 1); exit 1; }; }
6677 fi
6678 echo "$as_me:$LINENO: result: yes" >&5
6679 echo "${ECHO_T}yes" >&6
6680 test "$program_prefix" != NONE &&
6681 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6682 # Use a double $ so make ignores it.
6683 test "$program_suffix" != NONE &&
6684 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6685 # Double any \ or $. echo might interpret backslashes.
6686 # By default was `s,x,x', remove it if useless.
6687 cat <<\_ACEOF >conftest.sed
6688 s/[\\$]/&&/g;s/;s,x,x,$//
6689 _ACEOF
6690 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6691 rm conftest.sed
6692
6693 # expand $ac_aux_dir to an absolute path
6694 am_aux_dir=`cd $ac_aux_dir && pwd`
6695
6696 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6697 # Use eval to expand $SHELL
6698 if eval "$MISSING --run true"; then
6699 am_missing_run="$MISSING --run "
6700 else
6701 am_missing_run=
6702 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6703 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6704 fi
6705
6706 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6707 # We used to keeping the `.' as first argument, in order to
6708 # allow $(mkdir_p) to be used without argument. As in
6709 # $(mkdir_p) $(somedir)
6710 # where $(somedir) is conditionally defined. However this is wrong
6711 # for two reasons:
6712 # 1. if the package is installed by a user who cannot write `.'
6713 # make install will fail,
6714 # 2. the above comment should most certainly read
6715 # $(mkdir_p) $(DESTDIR)$(somedir)
6716 # so it does not work when $(somedir) is undefined and
6717 # $(DESTDIR) is not.
6718 # To support the latter case, we have to write
6719 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6720 # so the `.' trick is pointless.
6721 mkdir_p='mkdir -p --'
6722 else
6723 # On NextStep and OpenStep, the `mkdir' command does not
6724 # recognize any option. It will interpret all options as
6725 # directories to create, and then abort because `.' already
6726 # exists.
6727 for d in ./-p ./--version;
6728 do
6729 test -d $d && rmdir $d
6730 done
6731 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6732 if test -f "$ac_aux_dir/mkinstalldirs"; then
6733 mkdir_p='$(mkinstalldirs)'
6734 else
6735 mkdir_p='$(install_sh) -d'
6736 fi
6737 fi
6738
6739 for ac_prog in gawk mawk nawk awk
6740 do
6741 # Extract the first word of "$ac_prog", so it can be a program name with args.
6742 set dummy $ac_prog; ac_word=$2
6743 echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6745 if test "${ac_cv_prog_AWK+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 else
6748 if test -n "$AWK"; then
6749 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6750 else
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758 ac_cv_prog_AWK="$ac_prog"
6759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762 done
6763 done
6764
6765 fi
6766 fi
6767 AWK=$ac_cv_prog_AWK
6768 if test -n "$AWK"; then
6769 echo "$as_me:$LINENO: result: $AWK" >&5
6770 echo "${ECHO_T}$AWK" >&6
6771 else
6772 echo "$as_me:$LINENO: result: no" >&5
6773 echo "${ECHO_T}no" >&6
6774 fi
6775
6776 test -n "$AWK" && break
6777 done
6778
6779 ac_config_commands="$ac_config_commands depfiles"
6780
6781
6782 am_make=${MAKE-make}
6783 cat > confinc << 'END'
6784 am__doit:
6785 @echo done
6786 .PHONY: am__doit
6787 END
6788 # If we don't find an include directive, just comment out the code.
6789 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6790 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6791 am__include="#"
6792 am__quote=
6793 _am_result=none
6794 # First try GNU make style include.
6795 echo "include confinc" > confmf
6796 # We grep out `Entering directory' and `Leaving directory'
6797 # messages which can occur if `w' ends up in MAKEFLAGS.
6798 # In particular we don't look at `^make:' because GNU make might
6799 # be invoked under some other name (usually "gmake"), in which
6800 # case it prints its new name instead of `make'.
6801 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6802 am__include=include
6803 am__quote=
6804 _am_result=GNU
6805 fi
6806 # Now try BSD make style include.
6807 if test "$am__include" = "#"; then
6808 echo '.include "confinc"' > confmf
6809 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6810 am__include=.include
6811 am__quote="\""
6812 _am_result=BSD
6813 fi
6814 fi
6815
6816
6817 echo "$as_me:$LINENO: result: $_am_result" >&5
6818 echo "${ECHO_T}$_am_result" >&6
6819 rm -f confinc confmf
6820
6821 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6822 if test "${enable_dependency_tracking+set}" = set; then
6823 enableval="$enable_dependency_tracking"
6824
6825 fi;
6826 if test "x$enable_dependency_tracking" != xno; then
6827 am_depcomp="$ac_aux_dir/depcomp"
6828 AMDEPBACKSLASH='\'
6829 fi
6830
6831
6832 if test "x$enable_dependency_tracking" != xno; then
6833 AMDEP_TRUE=
6834 AMDEP_FALSE='#'
6835 else
6836 AMDEP_TRUE='#'
6837 AMDEP_FALSE=
6838 fi
6839
6840
6841
6842 # test to see if srcdir already configured
6843 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6844 test -f $srcdir/config.status; then
6845 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6846 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6847 { (exit 1); exit 1; }; }
6848 fi
6849
6850 # test whether we have cygpath
6851 if test -z "$CYGPATH_W"; then
6852 if (cygpath --version) >/dev/null 2>/dev/null; then
6853 CYGPATH_W='cygpath -w'
6854 else
6855 CYGPATH_W=echo
6856 fi
6857 fi
6858
6859
6860 # Define the identity of the package.
6861 PACKAGE=gdb
6862 VERSION=UNUSED-VERSION
6863
6864
6865 # Some tools Automake needs.
6866
6867 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6868
6869
6870 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6871
6872
6873 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6874
6875
6876 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6877
6878
6879 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6880
6881 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6882
6883 # Installed binaries are usually stripped using `strip' when the user
6884 # run `make install-strip'. However `strip' might not be the right
6885 # tool to use in cross-compilation environments, therefore Automake
6886 # will honor the `STRIP' environment variable to overrule this program.
6887 if test "$cross_compiling" != no; then
6888 if test -n "$ac_tool_prefix"; then
6889 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6890 set dummy ${ac_tool_prefix}strip; ac_word=$2
6891 echo "$as_me:$LINENO: checking for $ac_word" >&5
6892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6893 if test "${ac_cv_prog_STRIP+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896 if test -n "$STRIP"; then
6897 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6898 else
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910 done
6911 done
6912
6913 fi
6914 fi
6915 STRIP=$ac_cv_prog_STRIP
6916 if test -n "$STRIP"; then
6917 echo "$as_me:$LINENO: result: $STRIP" >&5
6918 echo "${ECHO_T}$STRIP" >&6
6919 else
6920 echo "$as_me:$LINENO: result: no" >&5
6921 echo "${ECHO_T}no" >&6
6922 fi
6923
6924 fi
6925 if test -z "$ac_cv_prog_STRIP"; then
6926 ac_ct_STRIP=$STRIP
6927 # Extract the first word of "strip", so it can be a program name with args.
6928 set dummy strip; ac_word=$2
6929 echo "$as_me:$LINENO: checking for $ac_word" >&5
6930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6931 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 else
6934 if test -n "$ac_ct_STRIP"; then
6935 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6936 else
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 for as_dir in $PATH
6939 do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944 ac_cv_prog_ac_ct_STRIP="strip"
6945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 break 2
6947 fi
6948 done
6949 done
6950
6951 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6952 fi
6953 fi
6954 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6955 if test -n "$ac_ct_STRIP"; then
6956 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6957 echo "${ECHO_T}$ac_ct_STRIP" >&6
6958 else
6959 echo "$as_me:$LINENO: result: no" >&5
6960 echo "${ECHO_T}no" >&6
6961 fi
6962
6963 STRIP=$ac_ct_STRIP
6964 else
6965 STRIP="$ac_cv_prog_STRIP"
6966 fi
6967
6968 fi
6969 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6970
6971 # We need awk for the "check" target. The system "awk" is bad on
6972 # some platforms.
6973 # Always define AMTAR for backward compatibility.
6974
6975 AMTAR=${AMTAR-"${am_missing_run}tar"}
6976
6977 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6978
6979
6980
6981
6982 depcc="$CC" am_compiler_list=
6983
6984 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6985 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6986 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6990 # We make a subdir and do the tests there. Otherwise we can end up
6991 # making bogus files that we don't know about and never remove. For
6992 # instance it was reported that on HP-UX the gcc test will end up
6993 # making a dummy file named `D' -- because `-MD' means `put the output
6994 # in D'.
6995 mkdir conftest.dir
6996 # Copy depcomp to subdir because otherwise we won't find it if we're
6997 # using a relative directory.
6998 cp "$am_depcomp" conftest.dir
6999 cd conftest.dir
7000 # We will build objects and dependencies in a subdirectory because
7001 # it helps to detect inapplicable dependency modes. For instance
7002 # both Tru64's cc and ICC support -MD to output dependencies as a
7003 # side effect of compilation, but ICC will put the dependencies in
7004 # the current directory while Tru64 will put them in the object
7005 # directory.
7006 mkdir sub
7007
7008 am_cv_CC_dependencies_compiler_type=none
7009 if test "$am_compiler_list" = ""; then
7010 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7011 fi
7012 for depmode in $am_compiler_list; do
7013 # Setup a source with many dependencies, because some compilers
7014 # like to wrap large dependency lists on column 80 (with \), and
7015 # we should not choose a depcomp mode which is confused by this.
7016 #
7017 # We need to recreate these files for each test, as the compiler may
7018 # overwrite some of them when testing with obscure command lines.
7019 # This happens at least with the AIX C compiler.
7020 : > sub/conftest.c
7021 for i in 1 2 3 4 5 6; do
7022 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7023 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7024 # Solaris 8's {/usr,}/bin/sh.
7025 touch sub/conftst$i.h
7026 done
7027 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7028
7029 case $depmode in
7030 nosideeffect)
7031 # after this tag, mechanisms are not by side-effect, so they'll
7032 # only be used when explicitly requested
7033 if test "x$enable_dependency_tracking" = xyes; then
7034 continue
7035 else
7036 break
7037 fi
7038 ;;
7039 none) break ;;
7040 esac
7041 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7042 # mode. It turns out that the SunPro C++ compiler does not properly
7043 # handle `-M -o', and we need to detect this.
7044 if depmode=$depmode \
7045 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7046 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7047 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7048 >/dev/null 2>conftest.err &&
7049 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7050 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7051 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7052 # icc doesn't choke on unknown options, it will just issue warnings
7053 # or remarks (even with -Werror). So we grep stderr for any message
7054 # that says an option was ignored or not supported.
7055 # When given -MP, icc 7.0 and 7.1 complain thusly:
7056 # icc: Command line warning: ignoring option '-M'; no argument required
7057 # The diagnosis changed in icc 8.0:
7058 # icc: Command line remark: option '-MP' not supported
7059 if (grep 'ignoring option' conftest.err ||
7060 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7061 am_cv_CC_dependencies_compiler_type=$depmode
7062 break
7063 fi
7064 fi
7065 done
7066
7067 cd ..
7068 rm -rf conftest.dir
7069 else
7070 am_cv_CC_dependencies_compiler_type=none
7071 fi
7072
7073 fi
7074 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
7075 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
7076 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7077
7078
7079
7080 if
7081 test "x$enable_dependency_tracking" != xno \
7082 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7083 am__fastdepCC_TRUE=
7084 am__fastdepCC_FALSE='#'
7085 else
7086 am__fastdepCC_TRUE='#'
7087 am__fastdepCC_FALSE=
7088 fi
7089
7090
7091
7092
7093 debugdir=${libdir}/debug
7094
7095
7096 # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
7097 if test "${with_separate_debug_dir+set}" = set; then
7098 withval="$with_separate_debug_dir"
7099 debugdir="${withval}"
7100 fi;
7101
7102
7103 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
7104 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7105 ac_define_dir=`eval echo $debugdir`
7106 ac_define_dir=`eval echo $ac_define_dir`
7107
7108 cat >>confdefs.h <<_ACEOF
7109 #define DEBUGDIR "$ac_define_dir"
7110 _ACEOF
7111
7112
7113 #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
7114
7115 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
7116 if test "x$prefix" = xNONE; then
7117 test_prefix=/usr/local
7118 else
7119 test_prefix=$prefix
7120 fi
7121 else
7122 test_prefix=$exec_prefix
7123 fi
7124 case ${debugdir} in
7125 "${test_prefix}"|"${test_prefix}/"*|\
7126 '${exec_prefix}'|'${exec_prefix}/'*)
7127
7128 cat >>confdefs.h <<\_ACEOF
7129 #define DEBUGDIR_RELOCATABLE 1
7130 _ACEOF
7131
7132 ;;
7133 esac
7134
7135
7136
7137 subdirs="$subdirs doc testsuite"
7138
7139
7140 # Check whether to support alternative target configurations
7141 # Check whether --enable-targets or --disable-targets was given.
7142 if test "${enable_targets+set}" = set; then
7143 enableval="$enable_targets"
7144 case "${enableval}" in
7145 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
7146 echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
7147 { (exit 1); exit 1; }; }
7148 ;;
7149 no) enable_targets= ;;
7150 *) enable_targets=$enableval ;;
7151 esac
7152 fi;
7153
7154 # Check whether to enable 64-bit support on 32-bit hosts
7155 # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
7156 if test "${enable_64_bit_bfd+set}" = set; then
7157 enableval="$enable_64_bit_bfd"
7158 case "${enableval}" in
7159 yes) want64=true ;;
7160 no) want64=false ;;
7161 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
7162 echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
7163 { (exit 1); exit 1; }; } ;;
7164 esac
7165 else
7166 want64=false
7167 fi;
7168 # Provide defaults for some variables set by the per-host and per-target
7169 # configuration.
7170 gdb_host_obs=posix-hdep.o
7171
7172 if test "${target}" = "${host}"; then
7173 gdb_native=yes
7174 else
7175 gdb_native=no
7176 fi
7177
7178 . $srcdir/configure.host
7179
7180 # Accumulate some settings from configure.tgt over all enabled targets
7181
7182 TARGET_OBS=
7183 all_targets=
7184
7185 for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
7186 do
7187 if test "$targ_alias" = "all"; then
7188 all_targets=true
7189 else
7190 # Canonicalize the secondary target names.
7191 result=`$ac_config_sub $targ_alias 2>/dev/null`
7192 if test -n "$result"; then
7193 targ=$result
7194 else
7195 targ=$targ_alias
7196 fi
7197
7198 . ${srcdir}/configure.tgt
7199
7200 # Target-specific object files
7201 for i in ${gdb_target_obs}; do
7202 case " $TARGET_OBS " in
7203 *" ${i} "*) ;;
7204 *)
7205 TARGET_OBS="$TARGET_OBS ${i}"
7206 ;;
7207 esac
7208 done
7209
7210 # Check whether this target needs 64-bit CORE_ADDR
7211 if test x${want64} = xfalse; then
7212 . ${srcdir}/../bfd/config.bfd
7213 fi
7214 fi
7215 done
7216
7217 if test x${all_targets} = xtrue; then
7218
7219 # We want all 64-bit targets if we either:
7220 # - run on a 64-bit host or
7221 # - already require 64-bit support for some other target or
7222 # - the --enable-64-bit-bfd option was supplied
7223 # Otherwise we only support all 32-bit targets.
7224 #
7225 # NOTE: This test must be in sync with the corresponding
7226 # tests in BFD!
7227
7228 if test x${want64} = xfalse; then
7229 echo "$as_me:$LINENO: checking for long" >&5
7230 echo $ECHO_N "checking for long... $ECHO_C" >&6
7231 if test "${ac_cv_type_long+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 else
7234 cat >conftest.$ac_ext <<_ACEOF
7235 /* confdefs.h. */
7236 _ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 $ac_includes_default
7241 int
7242 main ()
7243 {
7244 if ((long *) 0)
7245 return 0;
7246 if (sizeof (long))
7247 return 0;
7248 ;
7249 return 0;
7250 }
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7254 (eval $ac_compile) 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try='test -z "$ac_c_werror_flag"
7262 || test ! -s conftest.err'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 (eval $ac_try) 2>&5
7265 ac_status=$?
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; } &&
7268 { ac_try='test -s conftest.$ac_objext'
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 (eval $ac_try) 2>&5
7271 ac_status=$?
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; }; then
7274 ac_cv_type_long=yes
7275 else
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7278
7279 ac_cv_type_long=no
7280 fi
7281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7282 fi
7283 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7284 echo "${ECHO_T}$ac_cv_type_long" >&6
7285
7286 echo "$as_me:$LINENO: checking size of long" >&5
7287 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7288 if test "${ac_cv_sizeof_long+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7290 else
7291 if test "$ac_cv_type_long" = yes; then
7292 # The cast to unsigned long works around a bug in the HP C Compiler
7293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7295 # This bug is HP SR number 8606223364.
7296 if test "$cross_compiling" = yes; then
7297 # Depending upon the size, compute the lo and hi bounds.
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h. */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 $ac_includes_default
7305 int
7306 main ()
7307 {
7308 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7309 test_array [0] = 0
7310
7311 ;
7312 return 0;
7313 }
7314 _ACEOF
7315 rm -f conftest.$ac_objext
7316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7317 (eval $ac_compile) 2>conftest.er1
7318 ac_status=$?
7319 grep -v '^ *+' conftest.er1 >conftest.err
7320 rm -f conftest.er1
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } &&
7324 { ac_try='test -z "$ac_c_werror_flag"
7325 || test ! -s conftest.err'
7326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7327 (eval $ac_try) 2>&5
7328 ac_status=$?
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); }; } &&
7331 { ac_try='test -s conftest.$ac_objext'
7332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7333 (eval $ac_try) 2>&5
7334 ac_status=$?
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); }; }; then
7337 ac_lo=0 ac_mid=0
7338 while :; do
7339 cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h. */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 $ac_includes_default
7346 int
7347 main ()
7348 {
7349 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7350 test_array [0] = 0
7351
7352 ;
7353 return 0;
7354 }
7355 _ACEOF
7356 rm -f conftest.$ac_objext
7357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7358 (eval $ac_compile) 2>conftest.er1
7359 ac_status=$?
7360 grep -v '^ *+' conftest.er1 >conftest.err
7361 rm -f conftest.er1
7362 cat conftest.err >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } &&
7365 { ac_try='test -z "$ac_c_werror_flag"
7366 || test ! -s conftest.err'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368 (eval $ac_try) 2>&5
7369 ac_status=$?
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; } &&
7372 { ac_try='test -s conftest.$ac_objext'
7373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374 (eval $ac_try) 2>&5
7375 ac_status=$?
7376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7377 (exit $ac_status); }; }; then
7378 ac_hi=$ac_mid; break
7379 else
7380 echo "$as_me: failed program was:" >&5
7381 sed 's/^/| /' conftest.$ac_ext >&5
7382
7383 ac_lo=`expr $ac_mid + 1`
7384 if test $ac_lo -le $ac_mid; then
7385 ac_lo= ac_hi=
7386 break
7387 fi
7388 ac_mid=`expr 2 '*' $ac_mid + 1`
7389 fi
7390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7391 done
7392 else
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h. */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 $ac_includes_default
7403 int
7404 main ()
7405 {
7406 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7407 test_array [0] = 0
7408
7409 ;
7410 return 0;
7411 }
7412 _ACEOF
7413 rm -f conftest.$ac_objext
7414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7415 (eval $ac_compile) 2>conftest.er1
7416 ac_status=$?
7417 grep -v '^ *+' conftest.er1 >conftest.err
7418 rm -f conftest.er1
7419 cat conftest.err >&5
7420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } &&
7422 { ac_try='test -z "$ac_c_werror_flag"
7423 || test ! -s conftest.err'
7424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 (eval $ac_try) 2>&5
7426 ac_status=$?
7427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; } &&
7429 { ac_try='test -s conftest.$ac_objext'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 (eval $ac_try) 2>&5
7432 ac_status=$?
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; }; then
7435 ac_hi=-1 ac_mid=-1
7436 while :; do
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 $ac_includes_default
7444 int
7445 main ()
7446 {
7447 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7448 test_array [0] = 0
7449
7450 ;
7451 return 0;
7452 }
7453 _ACEOF
7454 rm -f conftest.$ac_objext
7455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7456 (eval $ac_compile) 2>conftest.er1
7457 ac_status=$?
7458 grep -v '^ *+' conftest.er1 >conftest.err
7459 rm -f conftest.er1
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -z "$ac_c_werror_flag"
7464 || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7466 (eval $ac_try) 2>&5
7467 ac_status=$?
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest.$ac_objext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7472 (eval $ac_try) 2>&5
7473 ac_status=$?
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_lo=$ac_mid; break
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481 ac_hi=`expr '(' $ac_mid ')' - 1`
7482 if test $ac_mid -le $ac_hi; then
7483 ac_lo= ac_hi=
7484 break
7485 fi
7486 ac_mid=`expr 2 '*' $ac_mid`
7487 fi
7488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7489 done
7490 else
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7493
7494 ac_lo= ac_hi=
7495 fi
7496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7497 fi
7498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7499 # Binary search between lo and hi bounds.
7500 while test "x$ac_lo" != "x$ac_hi"; do
7501 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7502 cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h. */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 $ac_includes_default
7509 int
7510 main ()
7511 {
7512 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7513 test_array [0] = 0
7514
7515 ;
7516 return 0;
7517 }
7518 _ACEOF
7519 rm -f conftest.$ac_objext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7521 (eval $ac_compile) 2>conftest.er1
7522 ac_status=$?
7523 grep -v '^ *+' conftest.er1 >conftest.err
7524 rm -f conftest.er1
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } &&
7528 { ac_try='test -z "$ac_c_werror_flag"
7529 || test ! -s conftest.err'
7530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 (eval $ac_try) 2>&5
7532 ac_status=$?
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); }; } &&
7535 { ac_try='test -s conftest.$ac_objext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 (eval $ac_try) 2>&5
7538 ac_status=$?
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
7541 ac_hi=$ac_mid
7542 else
7543 echo "$as_me: failed program was:" >&5
7544 sed 's/^/| /' conftest.$ac_ext >&5
7545
7546 ac_lo=`expr '(' $ac_mid ')' + 1`
7547 fi
7548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7549 done
7550 case $ac_lo in
7551 ?*) ac_cv_sizeof_long=$ac_lo;;
7552 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7553 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7554 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7555 See \`config.log' for more details." >&5
7556 echo "$as_me: error: cannot compute sizeof (long), 77
7557 See \`config.log' for more details." >&2;}
7558 { (exit 1); exit 1; }; }; } ;;
7559 esac
7560 else
7561 if test "$cross_compiling" = yes; then
7562 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7563 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7564 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7565 See \`config.log' for more details." >&5
7566 echo "$as_me: error: cannot run test program while cross compiling
7567 See \`config.log' for more details." >&2;}
7568 { (exit 1); exit 1; }; }; }
7569 else
7570 cat >conftest.$ac_ext <<_ACEOF
7571 /* confdefs.h. */
7572 _ACEOF
7573 cat confdefs.h >>conftest.$ac_ext
7574 cat >>conftest.$ac_ext <<_ACEOF
7575 /* end confdefs.h. */
7576 $ac_includes_default
7577 long longval () { return (long) (sizeof (long)); }
7578 unsigned long ulongval () { return (long) (sizeof (long)); }
7579 #include <stdio.h>
7580 #include <stdlib.h>
7581 int
7582 main ()
7583 {
7584
7585 FILE *f = fopen ("conftest.val", "w");
7586 if (! f)
7587 exit (1);
7588 if (((long) (sizeof (long))) < 0)
7589 {
7590 long i = longval ();
7591 if (i != ((long) (sizeof (long))))
7592 exit (1);
7593 fprintf (f, "%ld\n", i);
7594 }
7595 else
7596 {
7597 unsigned long i = ulongval ();
7598 if (i != ((long) (sizeof (long))))
7599 exit (1);
7600 fprintf (f, "%lu\n", i);
7601 }
7602 exit (ferror (f) || fclose (f) != 0);
7603
7604 ;
7605 return 0;
7606 }
7607 _ACEOF
7608 rm -f conftest$ac_exeext
7609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7610 (eval $ac_link) 2>&5
7611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; }; then
7619 ac_cv_sizeof_long=`cat conftest.val`
7620 else
7621 echo "$as_me: program exited with status $ac_status" >&5
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7624
7625 ( exit $ac_status )
7626 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7627 echo "$as_me: error: in \`$ac_pwd':" >&2;}
7628 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7629 See \`config.log' for more details." >&5
7630 echo "$as_me: error: cannot compute sizeof (long), 77
7631 See \`config.log' for more details." >&2;}
7632 { (exit 1); exit 1; }; }; }
7633 fi
7634 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7635 fi
7636 fi
7637 rm -f conftest.val
7638 else
7639 ac_cv_sizeof_long=0
7640 fi
7641 fi
7642 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7643 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7644 cat >>confdefs.h <<_ACEOF
7645 #define SIZEOF_LONG $ac_cv_sizeof_long
7646 _ACEOF
7647
7648
7649 if test "x${ac_cv_sizeof_long}" = "x8"; then
7650 want64=true
7651 fi
7652 fi
7653 if test x${want64} = xtrue; then
7654 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7655 else
7656 TARGET_OBS='$(ALL_TARGET_OBS)'
7657 fi
7658 fi
7659
7660
7661
7662 # For other settings, only the main target counts.
7663 gdb_sim=
7664 gdb_osabi=
7665 build_gdbserver=
7666 targ=$target; . ${srcdir}/configure.tgt
7667
7668 # Fetch the default architecture and default target vector from BFD.
7669 targ=$target; . $srcdir/../bfd/config.bfd
7670
7671 # We only want the first architecture, so strip off the others if
7672 # there is more than one.
7673 targ_archs=`echo $targ_archs | sed 's/ .*//'`
7674
7675 if test "x$targ_archs" != x; then
7676
7677 cat >>confdefs.h <<_ACEOF
7678 #define DEFAULT_BFD_ARCH $targ_archs
7679 _ACEOF
7680
7681 fi
7682 if test "x$targ_defvec" != x; then
7683
7684 cat >>confdefs.h <<_ACEOF
7685 #define DEFAULT_BFD_VEC $targ_defvec
7686 _ACEOF
7687
7688 fi
7689
7690 # The CLI cannot be disabled yet, but may be in the future.
7691
7692 # Enable CLI.
7693 # Check whether --enable-gdbcli or --disable-gdbcli was given.
7694 if test "${enable_gdbcli+set}" = set; then
7695 enableval="$enable_gdbcli"
7696 case $enableval in
7697 yes)
7698 ;;
7699 no)
7700 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7701 echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7702 { (exit 1); exit 1; }; } ;;
7703 *)
7704 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7705 echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7706 { (exit 1); exit 1; }; } ;;
7707 esac
7708 else
7709 enable_gdbcli=yes
7710 fi;
7711 if test x"$enable_gdbcli" = xyes; then
7712 if test -d $srcdir/cli; then
7713 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7714 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7715 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7716 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7717 fi
7718 fi
7719
7720 # Enable MI.
7721 # Check whether --enable-gdbmi or --disable-gdbmi was given.
7722 if test "${enable_gdbmi+set}" = set; then
7723 enableval="$enable_gdbmi"
7724 case $enableval in
7725 yes | no)
7726 ;;
7727 *)
7728 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7729 echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7730 { (exit 1); exit 1; }; } ;;
7731 esac
7732 else
7733 enable_gdbmi=yes
7734 fi;
7735 if test x"$enable_gdbmi" = xyes; then
7736 if test -d $srcdir/mi; then
7737 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7738 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7739 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7740 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7741 fi
7742 fi
7743
7744 # Enable TUI.
7745 # Check whether --enable-tui or --disable-tui was given.
7746 if test "${enable_tui+set}" = set; then
7747 enableval="$enable_tui"
7748 case $enableval in
7749 yes | no | auto)
7750 ;;
7751 *)
7752 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7753 echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7754 { (exit 1); exit 1; }; } ;;
7755 esac
7756 else
7757 enable_tui=auto
7758 fi;
7759
7760 # Enable gdbtk.
7761 # Check whether --enable-gdbtk or --disable-gdbtk was given.
7762 if test "${enable_gdbtk+set}" = set; then
7763 enableval="$enable_gdbtk"
7764 case $enableval in
7765 yes | no)
7766 ;;
7767 *)
7768 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7769 echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7770 { (exit 1); exit 1; }; } ;;
7771 esac
7772 else
7773 if test -d $srcdir/gdbtk; then
7774 enable_gdbtk=yes
7775 else
7776 enable_gdbtk=no
7777 fi
7778 fi;
7779 # We unconditionally disable gdbtk tests on selected platforms.
7780 case $host_os in
7781 go32* | windows*)
7782 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7783 echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7784 enable_gdbtk=no ;;
7785 esac
7786
7787 # Libunwind support.
7788
7789 # Check whether --with-libunwind or --without-libunwind was given.
7790 if test "${with_libunwind+set}" = set; then
7791 withval="$with_libunwind"
7792 case "${withval}" in
7793 yes) enable_libunwind=yes ;;
7794 no) enable_libunwind=no ;;
7795 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7796 echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7797 { (exit 1); exit 1; }; } ;;
7798 esac
7799 else
7800
7801
7802
7803 for ac_header in libunwind.h libunwind-ia64.h
7804 do
7805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807 echo "$as_me:$LINENO: checking for $ac_header" >&5
7808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 fi
7812 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7813 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7814 else
7815 # Is the header compilable?
7816 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7817 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7818 cat >conftest.$ac_ext <<_ACEOF
7819 /* confdefs.h. */
7820 _ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7824 $ac_includes_default
7825 #include <$ac_header>
7826 _ACEOF
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829 (eval $ac_compile) 2>conftest.er1
7830 ac_status=$?
7831 grep -v '^ *+' conftest.er1 >conftest.err
7832 rm -f conftest.er1
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 (eval $ac_try) 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest.$ac_objext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 (eval $ac_try) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 ac_header_compiler=yes
7850 else
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7853
7854 ac_header_compiler=no
7855 fi
7856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7857 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7858 echo "${ECHO_T}$ac_header_compiler" >&6
7859
7860 # Is the header present?
7861 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7863 cat >conftest.$ac_ext <<_ACEOF
7864 /* confdefs.h. */
7865 _ACEOF
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7869 #include <$ac_header>
7870 _ACEOF
7871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7873 ac_status=$?
7874 grep -v '^ *+' conftest.er1 >conftest.err
7875 rm -f conftest.er1
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } >/dev/null; then
7879 if test -s conftest.err; then
7880 ac_cpp_err=$ac_c_preproc_warn_flag
7881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7882 else
7883 ac_cpp_err=
7884 fi
7885 else
7886 ac_cpp_err=yes
7887 fi
7888 if test -z "$ac_cpp_err"; then
7889 ac_header_preproc=yes
7890 else
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7893
7894 ac_header_preproc=no
7895 fi
7896 rm -f conftest.err conftest.$ac_ext
7897 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7898 echo "${ECHO_T}$ac_header_preproc" >&6
7899
7900 # So? What about this header?
7901 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7902 yes:no: )
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7904 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7906 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7907 ac_header_preproc=yes
7908 ;;
7909 no:yes:* )
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7911 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7913 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7915 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7917 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7919 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7921 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7922 (
7923 cat <<\_ASBOX
7924 ## ------------------------------------------ ##
7925 ## Report this to the AC_PACKAGE_NAME lists. ##
7926 ## ------------------------------------------ ##
7927 _ASBOX
7928 ) |
7929 sed "s/^/$as_me: WARNING: /" >&2
7930 ;;
7931 esac
7932 echo "$as_me:$LINENO: checking for $ac_header" >&5
7933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937 eval "$as_ac_Header=\$ac_header_preproc"
7938 fi
7939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7941
7942 fi
7943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7944 cat >>confdefs.h <<_ACEOF
7945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7946 _ACEOF
7947
7948 fi
7949
7950 done
7951
7952 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7953 enable_libunwind=yes;
7954 fi
7955
7956 fi;
7957
7958 if test x"$enable_libunwind" = xyes; then
7959
7960
7961 for ac_header in libunwind.h libunwind-ia64.h
7962 do
7963 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7964 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7965 echo "$as_me:$LINENO: checking for $ac_header" >&5
7966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7967 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7968 echo $ECHO_N "(cached) $ECHO_C" >&6
7969 fi
7970 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7971 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7972 else
7973 # Is the header compilable?
7974 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7975 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7976 cat >conftest.$ac_ext <<_ACEOF
7977 /* confdefs.h. */
7978 _ACEOF
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 $ac_includes_default
7983 #include <$ac_header>
7984 _ACEOF
7985 rm -f conftest.$ac_objext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7987 (eval $ac_compile) 2>conftest.er1
7988 ac_status=$?
7989 grep -v '^ *+' conftest.er1 >conftest.err
7990 rm -f conftest.er1
7991 cat conftest.err >&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); } &&
7994 { ac_try='test -z "$ac_c_werror_flag"
7995 || test ! -s conftest.err'
7996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 (eval $ac_try) 2>&5
7998 ac_status=$?
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); }; } &&
8001 { ac_try='test -s conftest.$ac_objext'
8002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8003 (eval $ac_try) 2>&5
8004 ac_status=$?
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 ac_header_compiler=yes
8008 else
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8011
8012 ac_header_compiler=no
8013 fi
8014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8015 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8016 echo "${ECHO_T}$ac_header_compiler" >&6
8017
8018 # Is the header present?
8019 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8021 cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h. */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 #include <$ac_header>
8028 _ACEOF
8029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8031 ac_status=$?
8032 grep -v '^ *+' conftest.er1 >conftest.err
8033 rm -f conftest.er1
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } >/dev/null; then
8037 if test -s conftest.err; then
8038 ac_cpp_err=$ac_c_preproc_warn_flag
8039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8040 else
8041 ac_cpp_err=
8042 fi
8043 else
8044 ac_cpp_err=yes
8045 fi
8046 if test -z "$ac_cpp_err"; then
8047 ac_header_preproc=yes
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8051
8052 ac_header_preproc=no
8053 fi
8054 rm -f conftest.err conftest.$ac_ext
8055 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8056 echo "${ECHO_T}$ac_header_preproc" >&6
8057
8058 # So? What about this header?
8059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8060 yes:no: )
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8062 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8064 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8065 ac_header_preproc=yes
8066 ;;
8067 no:yes:* )
8068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8069 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8071 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8073 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8075 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8077 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8079 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8080 (
8081 cat <<\_ASBOX
8082 ## ------------------------------------------ ##
8083 ## Report this to the AC_PACKAGE_NAME lists. ##
8084 ## ------------------------------------------ ##
8085 _ASBOX
8086 ) |
8087 sed "s/^/$as_me: WARNING: /" >&2
8088 ;;
8089 esac
8090 echo "$as_me:$LINENO: checking for $ac_header" >&5
8091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095 eval "$as_ac_Header=\$ac_header_preproc"
8096 fi
8097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8098 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8099
8100 fi
8101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8102 cat >>confdefs.h <<_ACEOF
8103 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8104 _ACEOF
8105
8106 fi
8107
8108 done
8109
8110
8111 cat >>confdefs.h <<\_ACEOF
8112 #define HAVE_LIBUNWIND 1
8113 _ACEOF
8114
8115 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8116 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8117 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8118 fi
8119
8120 opt_curses=no
8121
8122 # Check whether --with-curses or --without-curses was given.
8123 if test "${with_curses+set}" = set; then
8124 withval="$with_curses"
8125 opt_curses=$withval
8126 fi;
8127
8128 if test "$opt_curses" = "yes"; then
8129 prefer_curses=yes
8130 fi
8131
8132 # Profiling support.
8133 # Check whether --enable-profiling or --disable-profiling was given.
8134 if test "${enable_profiling+set}" = set; then
8135 enableval="$enable_profiling"
8136 case $enableval in
8137 yes | no)
8138 ;;
8139 *)
8140 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8141 echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8142 { (exit 1); exit 1; }; } ;;
8143 esac
8144 else
8145 enable_profiling=no
8146 fi;
8147
8148
8149
8150 for ac_func in monstartup _mcleanup
8151 do
8152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8153 echo "$as_me:$LINENO: checking for $ac_func" >&5
8154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8155 if eval "test \"\${$as_ac_var+set}\" = set"; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158 cat >conftest.$ac_ext <<_ACEOF
8159 /* confdefs.h. */
8160 _ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8166 #define $ac_func innocuous_$ac_func
8167
8168 /* System header to define __stub macros and hopefully few prototypes,
8169 which can conflict with char $ac_func (); below.
8170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8171 <limits.h> exists even on freestanding compilers. */
8172
8173 #ifdef __STDC__
8174 # include <limits.h>
8175 #else
8176 # include <assert.h>
8177 #endif
8178
8179 #undef $ac_func
8180
8181 /* Override any gcc2 internal prototype to avoid an error. */
8182 #ifdef __cplusplus
8183 extern "C"
8184 {
8185 #endif
8186 /* We use char because int might match the return type of a gcc2
8187 builtin and then its argument prototype would still apply. */
8188 char $ac_func ();
8189 /* The GNU C library defines this for functions which it implements
8190 to always fail with ENOSYS. Some functions are actually named
8191 something starting with __ and the normal name is an alias. */
8192 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8193 choke me
8194 #else
8195 char (*f) () = $ac_func;
8196 #endif
8197 #ifdef __cplusplus
8198 }
8199 #endif
8200
8201 int
8202 main ()
8203 {
8204 return f != $ac_func;
8205 ;
8206 return 0;
8207 }
8208 _ACEOF
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211 (eval $ac_link) 2>conftest.er1
8212 ac_status=$?
8213 grep -v '^ *+' conftest.er1 >conftest.err
8214 rm -f conftest.er1
8215 cat conftest.err >&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } &&
8218 { ac_try='test -z "$ac_c_werror_flag"
8219 || test ! -s conftest.err'
8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221 (eval $ac_try) 2>&5
8222 ac_status=$?
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; } &&
8225 { ac_try='test -s conftest$ac_exeext'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8227 (eval $ac_try) 2>&5
8228 ac_status=$?
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8231 eval "$as_ac_var=yes"
8232 else
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8235
8236 eval "$as_ac_var=no"
8237 fi
8238 rm -f conftest.err conftest.$ac_objext \
8239 conftest$ac_exeext conftest.$ac_ext
8240 fi
8241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8242 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8243 if test `eval echo '${'$as_ac_var'}'` = yes; then
8244 cat >>confdefs.h <<_ACEOF
8245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8246 _ACEOF
8247
8248 fi
8249 done
8250
8251 echo "$as_me:$LINENO: checking for _etext" >&5
8252 echo $ECHO_N "checking for _etext... $ECHO_C" >&6
8253 if test "${ac_cv_var__etext+set}" = set; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 else
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h. */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 #include <stdlib.h>
8263 extern char _etext;
8264
8265 int
8266 main ()
8267 {
8268 free (&_etext);
8269 ;
8270 return 0;
8271 }
8272 _ACEOF
8273 rm -f conftest.$ac_objext conftest$ac_exeext
8274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8275 (eval $ac_link) 2>conftest.er1
8276 ac_status=$?
8277 grep -v '^ *+' conftest.er1 >conftest.err
8278 rm -f conftest.er1
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try='test -z "$ac_c_werror_flag"
8283 || test ! -s conftest.err'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 (eval $ac_try) 2>&5
8286 ac_status=$?
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; } &&
8289 { ac_try='test -s conftest$ac_exeext'
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 (eval $ac_try) 2>&5
8292 ac_status=$?
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; }; then
8295 ac_cv_var__etext=yes
8296 else
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8299
8300 ac_cv_var__etext=no
8301 fi
8302 rm -f conftest.err conftest.$ac_objext \
8303 conftest$ac_exeext conftest.$ac_ext
8304 fi
8305 echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8306 echo "${ECHO_T}$ac_cv_var__etext" >&6
8307 if test $ac_cv_var__etext = yes; then
8308
8309 cat >>confdefs.h <<\_ACEOF
8310 #define HAVE__ETEXT 1
8311 _ACEOF
8312
8313 fi
8314 echo "$as_me:$LINENO: checking for etext" >&5
8315 echo $ECHO_N "checking for etext... $ECHO_C" >&6
8316 if test "${ac_cv_var_etext+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319 cat >conftest.$ac_ext <<_ACEOF
8320 /* confdefs.h. */
8321 _ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 #include <stdlib.h>
8326 extern char etext;
8327
8328 int
8329 main ()
8330 {
8331 free (&etext);
8332 ;
8333 return 0;
8334 }
8335 _ACEOF
8336 rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8338 (eval $ac_link) 2>conftest.er1
8339 ac_status=$?
8340 grep -v '^ *+' conftest.er1 >conftest.err
8341 rm -f conftest.er1
8342 cat conftest.err >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } &&
8345 { ac_try='test -z "$ac_c_werror_flag"
8346 || test ! -s conftest.err'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 (eval $ac_try) 2>&5
8349 ac_status=$?
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; } &&
8352 { ac_try='test -s conftest$ac_exeext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 (eval $ac_try) 2>&5
8355 ac_status=$?
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 ac_cv_var_etext=yes
8359 else
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8362
8363 ac_cv_var_etext=no
8364 fi
8365 rm -f conftest.err conftest.$ac_objext \
8366 conftest$ac_exeext conftest.$ac_ext
8367 fi
8368 echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8369 echo "${ECHO_T}$ac_cv_var_etext" >&6
8370 if test $ac_cv_var_etext = yes; then
8371
8372 cat >>confdefs.h <<\_ACEOF
8373 #define HAVE_ETEXT 1
8374 _ACEOF
8375
8376 fi
8377 if test "$enable_profiling" = yes ; then
8378 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8379 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8380 echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8381 { (exit 1); exit 1; }; }
8382 fi
8383 PROFILE_CFLAGS=-pg
8384 OLD_CFLAGS="$CFLAGS"
8385 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8386
8387 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8388 echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
8389 if test "${ac_cv_cc_supports_pg+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 else
8392 cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h. */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8398
8399 int
8400 main ()
8401 {
8402 int x;
8403 ;
8404 return 0;
8405 }
8406 _ACEOF
8407 rm -f conftest.$ac_objext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8409 (eval $ac_compile) 2>conftest.er1
8410 ac_status=$?
8411 grep -v '^ *+' conftest.er1 >conftest.err
8412 rm -f conftest.er1
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } &&
8416 { ac_try='test -z "$ac_c_werror_flag"
8417 || test ! -s conftest.err'
8418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8419 (eval $ac_try) 2>&5
8420 ac_status=$?
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; } &&
8423 { ac_try='test -s conftest.$ac_objext'
8424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8425 (eval $ac_try) 2>&5
8426 ac_status=$?
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); }; }; then
8429 ac_cv_cc_supports_pg=yes
8430 else
8431 echo "$as_me: failed program was:" >&5
8432 sed 's/^/| /' conftest.$ac_ext >&5
8433
8434 ac_cv_cc_supports_pg=no
8435 fi
8436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8437 fi
8438 echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8439 echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
8440
8441 if test $ac_cv_cc_supports_pg = no; then
8442 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8443 echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8444 { (exit 1); exit 1; }; }
8445 fi
8446
8447 CFLAGS="$OLD_CFLAGS"
8448 fi
8449
8450
8451
8452 # Check whether --with-pkgversion or --without-pkgversion was given.
8453 if test "${with_pkgversion+set}" = set; then
8454 withval="$with_pkgversion"
8455 case "$withval" in
8456 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8457 echo "$as_me: error: package version not specified" >&2;}
8458 { (exit 1); exit 1; }; } ;;
8459 no) PKGVERSION= ;;
8460 *) PKGVERSION="($withval) " ;;
8461 esac
8462 else
8463 PKGVERSION="(GDB) "
8464
8465 fi;
8466
8467
8468
8469
8470 # Check whether --with-bugurl or --without-bugurl was given.
8471 if test "${with_bugurl+set}" = set; then
8472 withval="$with_bugurl"
8473 case "$withval" in
8474 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8475 echo "$as_me: error: bug URL not specified" >&2;}
8476 { (exit 1); exit 1; }; } ;;
8477 no) BUGURL=
8478 ;;
8479 *) BUGURL="$withval"
8480 ;;
8481 esac
8482 else
8483 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8484
8485 fi;
8486 case ${BUGURL} in
8487 "")
8488 REPORT_BUGS_TO=
8489 REPORT_BUGS_TEXI=
8490 ;;
8491 *)
8492 REPORT_BUGS_TO="<$BUGURL>"
8493 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8494 ;;
8495 esac;
8496
8497
8498
8499
8500 cat >>confdefs.h <<_ACEOF
8501 #define PKGVERSION "$PKGVERSION"
8502 _ACEOF
8503
8504
8505 cat >>confdefs.h <<_ACEOF
8506 #define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8507 _ACEOF
8508
8509
8510 # --------------------- #
8511 # Checks for programs. #
8512 # --------------------- #
8513
8514 for ac_prog in gawk mawk nawk awk
8515 do
8516 # Extract the first word of "$ac_prog", so it can be a program name with args.
8517 set dummy $ac_prog; ac_word=$2
8518 echo "$as_me:$LINENO: checking for $ac_word" >&5
8519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8520 if test "${ac_cv_prog_AWK+set}" = set; then
8521 echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523 if test -n "$AWK"; then
8524 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8525 else
8526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527 for as_dir in $PATH
8528 do
8529 IFS=$as_save_IFS
8530 test -z "$as_dir" && as_dir=.
8531 for ac_exec_ext in '' $ac_executable_extensions; do
8532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8533 ac_cv_prog_AWK="$ac_prog"
8534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8535 break 2
8536 fi
8537 done
8538 done
8539
8540 fi
8541 fi
8542 AWK=$ac_cv_prog_AWK
8543 if test -n "$AWK"; then
8544 echo "$as_me:$LINENO: result: $AWK" >&5
8545 echo "${ECHO_T}$AWK" >&6
8546 else
8547 echo "$as_me:$LINENO: result: no" >&5
8548 echo "${ECHO_T}no" >&6
8549 fi
8550
8551 test -n "$AWK" && break
8552 done
8553
8554 # Find a good install program. We prefer a C program (faster),
8555 # so one script is as good as another. But avoid the broken or
8556 # incompatible versions:
8557 # SysV /etc/install, /usr/sbin/install
8558 # SunOS /usr/etc/install
8559 # IRIX /sbin/install
8560 # AIX /bin/install
8561 # AmigaOS /C/install, which installs bootblocks on floppy discs
8562 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8563 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8564 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8565 # OS/2's system install, which has a completely different semantic
8566 # ./install, which can be erroneously created by make from ./install.sh.
8567 # Reject install programs that cannot install multiple files.
8568 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8569 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8570 if test -z "$INSTALL"; then
8571 if test "${ac_cv_path_install+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 for as_dir in $PATH
8576 do
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 # Account for people who put trailing slashes in PATH elements.
8580 case $as_dir/ in
8581 ./ | .// | /cC/* | \
8582 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8583 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8584 /usr/ucb/* ) ;;
8585 *)
8586 # OSF1 and SCO ODT 3.0 have their own names for install.
8587 # Don't use installbsd from OSF since it installs stuff as root
8588 # by default.
8589 for ac_prog in ginstall scoinst install; do
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8592 if test $ac_prog = install &&
8593 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8594 # AIX install. It has an incompatible calling convention.
8595 :
8596 elif test $ac_prog = install &&
8597 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8598 # program-specific install script used by HP pwplus--don't use.
8599 :
8600 else
8601 rm -rf conftest.one conftest.two conftest.dir
8602 echo one > conftest.one
8603 echo two > conftest.two
8604 mkdir conftest.dir
8605 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
8606 test -s conftest.one && test -s conftest.two &&
8607 test -s conftest.dir/conftest.one &&
8608 test -s conftest.dir/conftest.two
8609 then
8610 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8611 break 3
8612 fi
8613 fi
8614 fi
8615 done
8616 done
8617 ;;
8618 esac
8619 done
8620
8621 rm -rf conftest.one conftest.two conftest.dir
8622
8623 fi
8624 if test "${ac_cv_path_install+set}" = set; then
8625 INSTALL=$ac_cv_path_install
8626 else
8627 # As a last resort, use the slow shell script. Don't cache a
8628 # value for INSTALL within a source directory, because that will
8629 # break other packages using the cache if that directory is
8630 # removed, or if the value is a relative name.
8631 INSTALL=$ac_install_sh
8632 fi
8633 fi
8634 echo "$as_me:$LINENO: result: $INSTALL" >&5
8635 echo "${ECHO_T}$INSTALL" >&6
8636
8637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8638 # It thinks the first close brace ends the variable substitution.
8639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8640
8641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8642
8643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8644
8645 echo "$as_me:$LINENO: checking whether ln -s works" >&5
8646 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
8647 LN_S=$as_ln_s
8648 if test "$LN_S" = "ln -s"; then
8649 echo "$as_me:$LINENO: result: yes" >&5
8650 echo "${ECHO_T}yes" >&6
8651 else
8652 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8653 echo "${ECHO_T}no, using $LN_S" >&6
8654 fi
8655
8656 if test -n "$ac_tool_prefix"; then
8657 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8658 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8659 echo "$as_me:$LINENO: checking for $ac_word" >&5
8660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8661 if test "${ac_cv_prog_RANLIB+set}" = set; then
8662 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664 if test -n "$RANLIB"; then
8665 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8666 else
8667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 for as_dir in $PATH
8669 do
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
8672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8674 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 break 2
8677 fi
8678 done
8679 done
8680
8681 fi
8682 fi
8683 RANLIB=$ac_cv_prog_RANLIB
8684 if test -n "$RANLIB"; then
8685 echo "$as_me:$LINENO: result: $RANLIB" >&5
8686 echo "${ECHO_T}$RANLIB" >&6
8687 else
8688 echo "$as_me:$LINENO: result: no" >&5
8689 echo "${ECHO_T}no" >&6
8690 fi
8691
8692 fi
8693 if test -z "$ac_cv_prog_RANLIB"; then
8694 ac_ct_RANLIB=$RANLIB
8695 # Extract the first word of "ranlib", so it can be a program name with args.
8696 set dummy ranlib; ac_word=$2
8697 echo "$as_me:$LINENO: checking for $ac_word" >&5
8698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8699 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8700 echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702 if test -n "$ac_ct_RANLIB"; then
8703 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8704 else
8705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706 for as_dir in $PATH
8707 do
8708 IFS=$as_save_IFS
8709 test -z "$as_dir" && as_dir=.
8710 for ac_exec_ext in '' $ac_executable_extensions; do
8711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8712 ac_cv_prog_ac_ct_RANLIB="ranlib"
8713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8714 break 2
8715 fi
8716 done
8717 done
8718
8719 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8720 fi
8721 fi
8722 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8723 if test -n "$ac_ct_RANLIB"; then
8724 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8725 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8726 else
8727 echo "$as_me:$LINENO: result: no" >&5
8728 echo "${ECHO_T}no" >&6
8729 fi
8730
8731 RANLIB=$ac_ct_RANLIB
8732 else
8733 RANLIB="$ac_cv_prog_RANLIB"
8734 fi
8735
8736 for ac_prog in 'bison -y' byacc
8737 do
8738 # Extract the first word of "$ac_prog", so it can be a program name with args.
8739 set dummy $ac_prog; ac_word=$2
8740 echo "$as_me:$LINENO: checking for $ac_word" >&5
8741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8742 if test "${ac_cv_prog_YACC+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745 if test -n "$YACC"; then
8746 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8747 else
8748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8749 for as_dir in $PATH
8750 do
8751 IFS=$as_save_IFS
8752 test -z "$as_dir" && as_dir=.
8753 for ac_exec_ext in '' $ac_executable_extensions; do
8754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8755 ac_cv_prog_YACC="$ac_prog"
8756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8757 break 2
8758 fi
8759 done
8760 done
8761
8762 fi
8763 fi
8764 YACC=$ac_cv_prog_YACC
8765 if test -n "$YACC"; then
8766 echo "$as_me:$LINENO: result: $YACC" >&5
8767 echo "${ECHO_T}$YACC" >&6
8768 else
8769 echo "$as_me:$LINENO: result: no" >&5
8770 echo "${ECHO_T}no" >&6
8771 fi
8772
8773 test -n "$YACC" && break
8774 done
8775 test -n "$YACC" || YACC="yacc"
8776
8777
8778 if test -n "$ac_tool_prefix"; then
8779 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8780 set dummy ${ac_tool_prefix}ar; ac_word=$2
8781 echo "$as_me:$LINENO: checking for $ac_word" >&5
8782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8783 if test "${ac_cv_prog_AR+set}" = set; then
8784 echo $ECHO_N "(cached) $ECHO_C" >&6
8785 else
8786 if test -n "$AR"; then
8787 ac_cv_prog_AR="$AR" # Let the user override the test.
8788 else
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8791 do
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796 ac_cv_prog_AR="${ac_tool_prefix}ar"
8797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 break 2
8799 fi
8800 done
8801 done
8802
8803 fi
8804 fi
8805 AR=$ac_cv_prog_AR
8806 if test -n "$AR"; then
8807 echo "$as_me:$LINENO: result: $AR" >&5
8808 echo "${ECHO_T}$AR" >&6
8809 else
8810 echo "$as_me:$LINENO: result: no" >&5
8811 echo "${ECHO_T}no" >&6
8812 fi
8813
8814 fi
8815 if test -z "$ac_cv_prog_AR"; then
8816 ac_ct_AR=$AR
8817 # Extract the first word of "ar", so it can be a program name with args.
8818 set dummy ar; ac_word=$2
8819 echo "$as_me:$LINENO: checking for $ac_word" >&5
8820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8821 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8822 echo $ECHO_N "(cached) $ECHO_C" >&6
8823 else
8824 if test -n "$ac_ct_AR"; then
8825 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8826 else
8827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8828 for as_dir in $PATH
8829 do
8830 IFS=$as_save_IFS
8831 test -z "$as_dir" && as_dir=.
8832 for ac_exec_ext in '' $ac_executable_extensions; do
8833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8834 ac_cv_prog_ac_ct_AR="ar"
8835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8836 break 2
8837 fi
8838 done
8839 done
8840
8841 fi
8842 fi
8843 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8844 if test -n "$ac_ct_AR"; then
8845 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8846 echo "${ECHO_T}$ac_ct_AR" >&6
8847 else
8848 echo "$as_me:$LINENO: result: no" >&5
8849 echo "${ECHO_T}no" >&6
8850 fi
8851
8852 AR=$ac_ct_AR
8853 else
8854 AR="$ac_cv_prog_AR"
8855 fi
8856
8857 if test -n "$ac_tool_prefix"; then
8858 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8859 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8860 echo "$as_me:$LINENO: checking for $ac_word" >&5
8861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8862 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8864 else
8865 if test -n "$DLLTOOL"; then
8866 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8867 else
8868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869 for as_dir in $PATH
8870 do
8871 IFS=$as_save_IFS
8872 test -z "$as_dir" && as_dir=.
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8875 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8877 break 2
8878 fi
8879 done
8880 done
8881
8882 fi
8883 fi
8884 DLLTOOL=$ac_cv_prog_DLLTOOL
8885 if test -n "$DLLTOOL"; then
8886 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8887 echo "${ECHO_T}$DLLTOOL" >&6
8888 else
8889 echo "$as_me:$LINENO: result: no" >&5
8890 echo "${ECHO_T}no" >&6
8891 fi
8892
8893 fi
8894 if test -z "$ac_cv_prog_DLLTOOL"; then
8895 ac_ct_DLLTOOL=$DLLTOOL
8896 # Extract the first word of "dlltool", so it can be a program name with args.
8897 set dummy dlltool; ac_word=$2
8898 echo "$as_me:$LINENO: checking for $ac_word" >&5
8899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8900 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903 if test -n "$ac_ct_DLLTOOL"; then
8904 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8905 else
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8908 do
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8915 break 2
8916 fi
8917 done
8918 done
8919
8920 fi
8921 fi
8922 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8923 if test -n "$ac_ct_DLLTOOL"; then
8924 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8925 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
8926 else
8927 echo "$as_me:$LINENO: result: no" >&5
8928 echo "${ECHO_T}no" >&6
8929 fi
8930
8931 DLLTOOL=$ac_ct_DLLTOOL
8932 else
8933 DLLTOOL="$ac_cv_prog_DLLTOOL"
8934 fi
8935
8936 if test -n "$ac_tool_prefix"; then
8937 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
8938 set dummy ${ac_tool_prefix}windres; ac_word=$2
8939 echo "$as_me:$LINENO: checking for $ac_word" >&5
8940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8941 if test "${ac_cv_prog_WINDRES+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944 if test -n "$WINDRES"; then
8945 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8946 else
8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948 for as_dir in $PATH
8949 do
8950 IFS=$as_save_IFS
8951 test -z "$as_dir" && as_dir=.
8952 for ac_exec_ext in '' $ac_executable_extensions; do
8953 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8954 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
8955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8956 break 2
8957 fi
8958 done
8959 done
8960
8961 fi
8962 fi
8963 WINDRES=$ac_cv_prog_WINDRES
8964 if test -n "$WINDRES"; then
8965 echo "$as_me:$LINENO: result: $WINDRES" >&5
8966 echo "${ECHO_T}$WINDRES" >&6
8967 else
8968 echo "$as_me:$LINENO: result: no" >&5
8969 echo "${ECHO_T}no" >&6
8970 fi
8971
8972 fi
8973 if test -z "$ac_cv_prog_WINDRES"; then
8974 ac_ct_WINDRES=$WINDRES
8975 # Extract the first word of "windres", so it can be a program name with args.
8976 set dummy windres; ac_word=$2
8977 echo "$as_me:$LINENO: checking for $ac_word" >&5
8978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8979 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8982 if test -n "$ac_ct_WINDRES"; then
8983 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8984 else
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986 for as_dir in $PATH
8987 do
8988 IFS=$as_save_IFS
8989 test -z "$as_dir" && as_dir=.
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8992 ac_cv_prog_ac_ct_WINDRES="windres"
8993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8994 break 2
8995 fi
8996 done
8997 done
8998
8999 fi
9000 fi
9001 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9002 if test -n "$ac_ct_WINDRES"; then
9003 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9004 echo "${ECHO_T}$ac_ct_WINDRES" >&6
9005 else
9006 echo "$as_me:$LINENO: result: no" >&5
9007 echo "${ECHO_T}no" >&6
9008 fi
9009
9010 WINDRES=$ac_ct_WINDRES
9011 else
9012 WINDRES="$ac_cv_prog_WINDRES"
9013 fi
9014
9015
9016 # Needed for GNU/Hurd.
9017 if test -n "$ac_tool_prefix"; then
9018 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9019 set dummy ${ac_tool_prefix}mig; ac_word=$2
9020 echo "$as_me:$LINENO: checking for $ac_word" >&5
9021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9022 if test "${ac_cv_prog_MIG+set}" = set; then
9023 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025 if test -n "$MIG"; then
9026 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9027 else
9028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029 for as_dir in $PATH
9030 do
9031 IFS=$as_save_IFS
9032 test -z "$as_dir" && as_dir=.
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9035 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9037 break 2
9038 fi
9039 done
9040 done
9041
9042 fi
9043 fi
9044 MIG=$ac_cv_prog_MIG
9045 if test -n "$MIG"; then
9046 echo "$as_me:$LINENO: result: $MIG" >&5
9047 echo "${ECHO_T}$MIG" >&6
9048 else
9049 echo "$as_me:$LINENO: result: no" >&5
9050 echo "${ECHO_T}no" >&6
9051 fi
9052
9053 fi
9054 if test -z "$ac_cv_prog_MIG"; then
9055 ac_ct_MIG=$MIG
9056 # Extract the first word of "mig", so it can be a program name with args.
9057 set dummy mig; ac_word=$2
9058 echo "$as_me:$LINENO: checking for $ac_word" >&5
9059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9060 if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9062 else
9063 if test -n "$ac_ct_MIG"; then
9064 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9065 else
9066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067 for as_dir in $PATH
9068 do
9069 IFS=$as_save_IFS
9070 test -z "$as_dir" && as_dir=.
9071 for ac_exec_ext in '' $ac_executable_extensions; do
9072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9073 ac_cv_prog_ac_ct_MIG="mig"
9074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9075 break 2
9076 fi
9077 done
9078 done
9079
9080 fi
9081 fi
9082 ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9083 if test -n "$ac_ct_MIG"; then
9084 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9085 echo "${ECHO_T}$ac_ct_MIG" >&6
9086 else
9087 echo "$as_me:$LINENO: result: no" >&5
9088 echo "${ECHO_T}no" >&6
9089 fi
9090
9091 MIG=$ac_ct_MIG
9092 else
9093 MIG="$ac_cv_prog_MIG"
9094 fi
9095
9096
9097 # ---------------------- #
9098 # Checks for libraries. #
9099 # ---------------------- #
9100
9101 # We might need to link with -lm; most simulators need it.
9102
9103 echo "$as_me:$LINENO: checking for main in -lm" >&5
9104 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
9105 if test "${ac_cv_lib_m_main+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108 ac_check_lib_save_LIBS=$LIBS
9109 LIBS="-lm $LIBS"
9110 cat >conftest.$ac_ext <<_ACEOF
9111 /* confdefs.h. */
9112 _ACEOF
9113 cat confdefs.h >>conftest.$ac_ext
9114 cat >>conftest.$ac_ext <<_ACEOF
9115 /* end confdefs.h. */
9116
9117
9118 int
9119 main ()
9120 {
9121 main ();
9122 ;
9123 return 0;
9124 }
9125 _ACEOF
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128 (eval $ac_link) 2>conftest.er1
9129 ac_status=$?
9130 grep -v '^ *+' conftest.er1 >conftest.err
9131 rm -f conftest.er1
9132 cat conftest.err >&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } &&
9135 { ac_try='test -z "$ac_c_werror_flag"
9136 || test ! -s conftest.err'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 (eval $ac_try) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; } &&
9142 { ac_try='test -s conftest$ac_exeext'
9143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144 (eval $ac_try) 2>&5
9145 ac_status=$?
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); }; }; then
9148 ac_cv_lib_m_main=yes
9149 else
9150 echo "$as_me: failed program was:" >&5
9151 sed 's/^/| /' conftest.$ac_ext >&5
9152
9153 ac_cv_lib_m_main=no
9154 fi
9155 rm -f conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
9157 LIBS=$ac_check_lib_save_LIBS
9158 fi
9159 echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9160 echo "${ECHO_T}$ac_cv_lib_m_main" >&6
9161 if test $ac_cv_lib_m_main = yes; then
9162 cat >>confdefs.h <<_ACEOF
9163 #define HAVE_LIBM 1
9164 _ACEOF
9165
9166 LIBS="-lm $LIBS"
9167
9168 fi
9169
9170
9171 # We need to link with -lw to get `wctype' on Solaris before Solaris
9172 # 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9173 # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9174 # is known to have this problem). Therefore we avoid libw if we can.
9175 echo "$as_me:$LINENO: checking for wctype" >&5
9176 echo $ECHO_N "checking for wctype... $ECHO_C" >&6
9177 if test "${ac_cv_func_wctype+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9179 else
9180 cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h. */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h. */
9186 /* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9188 #define wctype innocuous_wctype
9189
9190 /* System header to define __stub macros and hopefully few prototypes,
9191 which can conflict with char wctype (); below.
9192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9193 <limits.h> exists even on freestanding compilers. */
9194
9195 #ifdef __STDC__
9196 # include <limits.h>
9197 #else
9198 # include <assert.h>
9199 #endif
9200
9201 #undef wctype
9202
9203 /* Override any gcc2 internal prototype to avoid an error. */
9204 #ifdef __cplusplus
9205 extern "C"
9206 {
9207 #endif
9208 /* We use char because int might match the return type of a gcc2
9209 builtin and then its argument prototype would still apply. */
9210 char wctype ();
9211 /* The GNU C library defines this for functions which it implements
9212 to always fail with ENOSYS. Some functions are actually named
9213 something starting with __ and the normal name is an alias. */
9214 #if defined (__stub_wctype) || defined (__stub___wctype)
9215 choke me
9216 #else
9217 char (*f) () = wctype;
9218 #endif
9219 #ifdef __cplusplus
9220 }
9221 #endif
9222
9223 int
9224 main ()
9225 {
9226 return f != wctype;
9227 ;
9228 return 0;
9229 }
9230 _ACEOF
9231 rm -f conftest.$ac_objext conftest$ac_exeext
9232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233 (eval $ac_link) 2>conftest.er1
9234 ac_status=$?
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
9240 { ac_try='test -z "$ac_c_werror_flag"
9241 || test ! -s conftest.err'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243 (eval $ac_try) 2>&5
9244 ac_status=$?
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; } &&
9247 { ac_try='test -s conftest$ac_exeext'
9248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249 (eval $ac_try) 2>&5
9250 ac_status=$?
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); }; }; then
9253 ac_cv_func_wctype=yes
9254 else
9255 echo "$as_me: failed program was:" >&5
9256 sed 's/^/| /' conftest.$ac_ext >&5
9257
9258 ac_cv_func_wctype=no
9259 fi
9260 rm -f conftest.err conftest.$ac_objext \
9261 conftest$ac_exeext conftest.$ac_ext
9262 fi
9263 echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9264 echo "${ECHO_T}$ac_cv_func_wctype" >&6
9265 if test $ac_cv_func_wctype = yes; then
9266 :
9267 else
9268
9269 echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9270 echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
9271 if test "${ac_cv_lib_w_wctype+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274 ac_check_lib_save_LIBS=$LIBS
9275 LIBS="-lw $LIBS"
9276 cat >conftest.$ac_ext <<_ACEOF
9277 /* confdefs.h. */
9278 _ACEOF
9279 cat confdefs.h >>conftest.$ac_ext
9280 cat >>conftest.$ac_ext <<_ACEOF
9281 /* end confdefs.h. */
9282
9283 /* Override any gcc2 internal prototype to avoid an error. */
9284 #ifdef __cplusplus
9285 extern "C"
9286 #endif
9287 /* We use char because int might match the return type of a gcc2
9288 builtin and then its argument prototype would still apply. */
9289 char wctype ();
9290 int
9291 main ()
9292 {
9293 wctype ();
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 rm -f conftest.$ac_objext conftest$ac_exeext
9299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9300 (eval $ac_link) 2>conftest.er1
9301 ac_status=$?
9302 grep -v '^ *+' conftest.er1 >conftest.err
9303 rm -f conftest.er1
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } &&
9307 { ac_try='test -z "$ac_c_werror_flag"
9308 || test ! -s conftest.err'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310 (eval $ac_try) 2>&5
9311 ac_status=$?
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; } &&
9314 { ac_try='test -s conftest$ac_exeext'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316 (eval $ac_try) 2>&5
9317 ac_status=$?
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; }; then
9320 ac_cv_lib_w_wctype=yes
9321 else
9322 echo "$as_me: failed program was:" >&5
9323 sed 's/^/| /' conftest.$ac_ext >&5
9324
9325 ac_cv_lib_w_wctype=no
9326 fi
9327 rm -f conftest.err conftest.$ac_objext \
9328 conftest$ac_exeext conftest.$ac_ext
9329 LIBS=$ac_check_lib_save_LIBS
9330 fi
9331 echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9332 echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
9333 if test $ac_cv_lib_w_wctype = yes; then
9334 cat >>confdefs.h <<_ACEOF
9335 #define HAVE_LIBW 1
9336 _ACEOF
9337
9338 LIBS="-lw $LIBS"
9339
9340 fi
9341
9342 fi
9343
9344
9345 # Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
9346 echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9347 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
9348 if test "${ac_cv_search_gethostbyname+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9350 else
9351 ac_func_search_save_LIBS=$LIBS
9352 ac_cv_search_gethostbyname=no
9353 cat >conftest.$ac_ext <<_ACEOF
9354 /* confdefs.h. */
9355 _ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9359
9360 /* Override any gcc2 internal prototype to avoid an error. */
9361 #ifdef __cplusplus
9362 extern "C"
9363 #endif
9364 /* We use char because int might match the return type of a gcc2
9365 builtin and then its argument prototype would still apply. */
9366 char gethostbyname ();
9367 int
9368 main ()
9369 {
9370 gethostbyname ();
9371 ;
9372 return 0;
9373 }
9374 _ACEOF
9375 rm -f conftest.$ac_objext conftest$ac_exeext
9376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9377 (eval $ac_link) 2>conftest.er1
9378 ac_status=$?
9379 grep -v '^ *+' conftest.er1 >conftest.err
9380 rm -f conftest.er1
9381 cat conftest.err >&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); } &&
9384 { ac_try='test -z "$ac_c_werror_flag"
9385 || test ! -s conftest.err'
9386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9387 (eval $ac_try) 2>&5
9388 ac_status=$?
9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390 (exit $ac_status); }; } &&
9391 { ac_try='test -s conftest$ac_exeext'
9392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 (eval $ac_try) 2>&5
9394 ac_status=$?
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); }; }; then
9397 ac_cv_search_gethostbyname="none required"
9398 else
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9401
9402 fi
9403 rm -f conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
9405 if test "$ac_cv_search_gethostbyname" = no; then
9406 for ac_lib in nsl; do
9407 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9408 cat >conftest.$ac_ext <<_ACEOF
9409 /* confdefs.h. */
9410 _ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9414
9415 /* Override any gcc2 internal prototype to avoid an error. */
9416 #ifdef __cplusplus
9417 extern "C"
9418 #endif
9419 /* We use char because int might match the return type of a gcc2
9420 builtin and then its argument prototype would still apply. */
9421 char gethostbyname ();
9422 int
9423 main ()
9424 {
9425 gethostbyname ();
9426 ;
9427 return 0;
9428 }
9429 _ACEOF
9430 rm -f conftest.$ac_objext conftest$ac_exeext
9431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9432 (eval $ac_link) 2>conftest.er1
9433 ac_status=$?
9434 grep -v '^ *+' conftest.er1 >conftest.err
9435 rm -f conftest.er1
9436 cat conftest.err >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); } &&
9439 { ac_try='test -z "$ac_c_werror_flag"
9440 || test ! -s conftest.err'
9441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 (eval $ac_try) 2>&5
9443 ac_status=$?
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); }; } &&
9446 { ac_try='test -s conftest$ac_exeext'
9447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 (eval $ac_try) 2>&5
9449 ac_status=$?
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); }; }; then
9452 ac_cv_search_gethostbyname="-l$ac_lib"
9453 break
9454 else
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9457
9458 fi
9459 rm -f conftest.err conftest.$ac_objext \
9460 conftest$ac_exeext conftest.$ac_ext
9461 done
9462 fi
9463 LIBS=$ac_func_search_save_LIBS
9464 fi
9465 echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9466 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9467 if test "$ac_cv_search_gethostbyname" != no; then
9468 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
9469
9470 fi
9471
9472
9473 # Some systems (e.g. Solaris) have `socketpair' in libsocket.
9474 echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9475 echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9476 if test "${ac_cv_search_socketpair+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479 ac_func_search_save_LIBS=$LIBS
9480 ac_cv_search_socketpair=no
9481 cat >conftest.$ac_ext <<_ACEOF
9482 /* confdefs.h. */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h. */
9487
9488 /* Override any gcc2 internal prototype to avoid an error. */
9489 #ifdef __cplusplus
9490 extern "C"
9491 #endif
9492 /* We use char because int might match the return type of a gcc2
9493 builtin and then its argument prototype would still apply. */
9494 char socketpair ();
9495 int
9496 main ()
9497 {
9498 socketpair ();
9499 ;
9500 return 0;
9501 }
9502 _ACEOF
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9505 (eval $ac_link) 2>conftest.er1
9506 ac_status=$?
9507 grep -v '^ *+' conftest.er1 >conftest.err
9508 rm -f conftest.er1
9509 cat conftest.err >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } &&
9512 { ac_try='test -z "$ac_c_werror_flag"
9513 || test ! -s conftest.err'
9514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9515 (eval $ac_try) 2>&5
9516 ac_status=$?
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); }; } &&
9519 { ac_try='test -s conftest$ac_exeext'
9520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 (eval $ac_try) 2>&5
9522 ac_status=$?
9523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524 (exit $ac_status); }; }; then
9525 ac_cv_search_socketpair="none required"
9526 else
9527 echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9529
9530 fi
9531 rm -f conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
9533 if test "$ac_cv_search_socketpair" = no; then
9534 for ac_lib in socket; do
9535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9536 cat >conftest.$ac_ext <<_ACEOF
9537 /* confdefs.h. */
9538 _ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9542
9543 /* Override any gcc2 internal prototype to avoid an error. */
9544 #ifdef __cplusplus
9545 extern "C"
9546 #endif
9547 /* We use char because int might match the return type of a gcc2
9548 builtin and then its argument prototype would still apply. */
9549 char socketpair ();
9550 int
9551 main ()
9552 {
9553 socketpair ();
9554 ;
9555 return 0;
9556 }
9557 _ACEOF
9558 rm -f conftest.$ac_objext conftest$ac_exeext
9559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9560 (eval $ac_link) 2>conftest.er1
9561 ac_status=$?
9562 grep -v '^ *+' conftest.er1 >conftest.err
9563 rm -f conftest.er1
9564 cat conftest.err >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); } &&
9567 { ac_try='test -z "$ac_c_werror_flag"
9568 || test ! -s conftest.err'
9569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 (eval $ac_try) 2>&5
9571 ac_status=$?
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); }; } &&
9574 { ac_try='test -s conftest$ac_exeext'
9575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 (eval $ac_try) 2>&5
9577 ac_status=$?
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); }; }; then
9580 ac_cv_search_socketpair="-l$ac_lib"
9581 break
9582 else
9583 echo "$as_me: failed program was:" >&5
9584 sed 's/^/| /' conftest.$ac_ext >&5
9585
9586 fi
9587 rm -f conftest.err conftest.$ac_objext \
9588 conftest$ac_exeext conftest.$ac_ext
9589 done
9590 fi
9591 LIBS=$ac_func_search_save_LIBS
9592 fi
9593 echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9594 echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9595 if test "$ac_cv_search_socketpair" != no; then
9596 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9597
9598 fi
9599
9600
9601 # Link in zlib if we can. This allows us to read compressed debug sections.
9602 echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9603 echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9604 if test "${ac_cv_search_zlibVersion+set}" = set; then
9605 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 else
9607 ac_func_search_save_LIBS=$LIBS
9608 ac_cv_search_zlibVersion=no
9609 cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h. */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615
9616 /* Override any gcc2 internal prototype to avoid an error. */
9617 #ifdef __cplusplus
9618 extern "C"
9619 #endif
9620 /* We use char because int might match the return type of a gcc2
9621 builtin and then its argument prototype would still apply. */
9622 char zlibVersion ();
9623 int
9624 main ()
9625 {
9626 zlibVersion ();
9627 ;
9628 return 0;
9629 }
9630 _ACEOF
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633 (eval $ac_link) 2>conftest.er1
9634 ac_status=$?
9635 grep -v '^ *+' conftest.er1 >conftest.err
9636 rm -f conftest.er1
9637 cat conftest.err >&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } &&
9640 { ac_try='test -z "$ac_c_werror_flag"
9641 || test ! -s conftest.err'
9642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643 (eval $ac_try) 2>&5
9644 ac_status=$?
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); }; } &&
9647 { ac_try='test -s conftest$ac_exeext'
9648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9649 (eval $ac_try) 2>&5
9650 ac_status=$?
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); }; }; then
9653 ac_cv_search_zlibVersion="none required"
9654 else
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9657
9658 fi
9659 rm -f conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext conftest.$ac_ext
9661 if test "$ac_cv_search_zlibVersion" = no; then
9662 for ac_lib in z; do
9663 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9664 cat >conftest.$ac_ext <<_ACEOF
9665 /* confdefs.h. */
9666 _ACEOF
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h. */
9670
9671 /* Override any gcc2 internal prototype to avoid an error. */
9672 #ifdef __cplusplus
9673 extern "C"
9674 #endif
9675 /* We use char because int might match the return type of a gcc2
9676 builtin and then its argument prototype would still apply. */
9677 char zlibVersion ();
9678 int
9679 main ()
9680 {
9681 zlibVersion ();
9682 ;
9683 return 0;
9684 }
9685 _ACEOF
9686 rm -f conftest.$ac_objext conftest$ac_exeext
9687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9688 (eval $ac_link) 2>conftest.er1
9689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } &&
9695 { ac_try='test -z "$ac_c_werror_flag"
9696 || test ! -s conftest.err'
9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 (eval $ac_try) 2>&5
9699 ac_status=$?
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); }; } &&
9702 { ac_try='test -s conftest$ac_exeext'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; }; then
9708 ac_cv_search_zlibVersion="-l$ac_lib"
9709 break
9710 else
9711 echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9713
9714 fi
9715 rm -f conftest.err conftest.$ac_objext \
9716 conftest$ac_exeext conftest.$ac_ext
9717 done
9718 fi
9719 LIBS=$ac_func_search_save_LIBS
9720 fi
9721 echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9722 echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9723 if test "$ac_cv_search_zlibVersion" != no; then
9724 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9725
9726 for ac_header in zlib.h
9727 do
9728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9730 echo "$as_me:$LINENO: checking for $ac_header" >&5
9731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9732 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 fi
9735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9736 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9737 else
9738 # Is the header compilable?
9739 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9740 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9741 cat >conftest.$ac_ext <<_ACEOF
9742 /* confdefs.h. */
9743 _ACEOF
9744 cat confdefs.h >>conftest.$ac_ext
9745 cat >>conftest.$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 $ac_includes_default
9748 #include <$ac_header>
9749 _ACEOF
9750 rm -f conftest.$ac_objext
9751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9752 (eval $ac_compile) 2>conftest.er1
9753 ac_status=$?
9754 grep -v '^ *+' conftest.er1 >conftest.err
9755 rm -f conftest.er1
9756 cat conftest.err >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } &&
9759 { ac_try='test -z "$ac_c_werror_flag"
9760 || test ! -s conftest.err'
9761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762 (eval $ac_try) 2>&5
9763 ac_status=$?
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; } &&
9766 { ac_try='test -s conftest.$ac_objext'
9767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 (eval $ac_try) 2>&5
9769 ac_status=$?
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); }; }; then
9772 ac_header_compiler=yes
9773 else
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777 ac_header_compiler=no
9778 fi
9779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9780 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9781 echo "${ECHO_T}$ac_header_compiler" >&6
9782
9783 # Is the header present?
9784 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9786 cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h. */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 #include <$ac_header>
9793 _ACEOF
9794 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } >/dev/null; then
9802 if test -s conftest.err; then
9803 ac_cpp_err=$ac_c_preproc_warn_flag
9804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9805 else
9806 ac_cpp_err=
9807 fi
9808 else
9809 ac_cpp_err=yes
9810 fi
9811 if test -z "$ac_cpp_err"; then
9812 ac_header_preproc=yes
9813 else
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9816
9817 ac_header_preproc=no
9818 fi
9819 rm -f conftest.err conftest.$ac_ext
9820 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9821 echo "${ECHO_T}$ac_header_preproc" >&6
9822
9823 # So? What about this header?
9824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9825 yes:no: )
9826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9830 ac_header_preproc=yes
9831 ;;
9832 no:yes:* )
9833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9845 (
9846 cat <<\_ASBOX
9847 ## ------------------------------------------ ##
9848 ## Report this to the AC_PACKAGE_NAME lists. ##
9849 ## ------------------------------------------ ##
9850 _ASBOX
9851 ) |
9852 sed "s/^/$as_me: WARNING: /" >&2
9853 ;;
9854 esac
9855 echo "$as_me:$LINENO: checking for $ac_header" >&5
9856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9857 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 else
9860 eval "$as_ac_Header=\$ac_header_preproc"
9861 fi
9862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9863 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9864
9865 fi
9866 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9867 cat >>confdefs.h <<_ACEOF
9868 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9869 _ACEOF
9870
9871 fi
9872
9873 done
9874
9875 fi
9876
9877
9878 # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
9879 echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
9880 echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
9881 if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9883 else
9884 ac_func_search_save_LIBS=$LIBS
9885 ac_cv_search_dlgetmodinfo=no
9886 cat >conftest.$ac_ext <<_ACEOF
9887 /* confdefs.h. */
9888 _ACEOF
9889 cat confdefs.h >>conftest.$ac_ext
9890 cat >>conftest.$ac_ext <<_ACEOF
9891 /* end confdefs.h. */
9892
9893 /* Override any gcc2 internal prototype to avoid an error. */
9894 #ifdef __cplusplus
9895 extern "C"
9896 #endif
9897 /* We use char because int might match the return type of a gcc2
9898 builtin and then its argument prototype would still apply. */
9899 char dlgetmodinfo ();
9900 int
9901 main ()
9902 {
9903 dlgetmodinfo ();
9904 ;
9905 return 0;
9906 }
9907 _ACEOF
9908 rm -f conftest.$ac_objext conftest$ac_exeext
9909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9910 (eval $ac_link) 2>conftest.er1
9911 ac_status=$?
9912 grep -v '^ *+' conftest.er1 >conftest.err
9913 rm -f conftest.er1
9914 cat conftest.err >&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } &&
9917 { ac_try='test -z "$ac_c_werror_flag"
9918 || test ! -s conftest.err'
9919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 (eval $ac_try) 2>&5
9921 ac_status=$?
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); }; } &&
9924 { ac_try='test -s conftest$ac_exeext'
9925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 (eval $ac_try) 2>&5
9927 ac_status=$?
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); }; }; then
9930 ac_cv_search_dlgetmodinfo="none required"
9931 else
9932 echo "$as_me: failed program was:" >&5
9933 sed 's/^/| /' conftest.$ac_ext >&5
9934
9935 fi
9936 rm -f conftest.err conftest.$ac_objext \
9937 conftest$ac_exeext conftest.$ac_ext
9938 if test "$ac_cv_search_dlgetmodinfo" = no; then
9939 for ac_lib in dl xpdl; do
9940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9941 cat >conftest.$ac_ext <<_ACEOF
9942 /* confdefs.h. */
9943 _ACEOF
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h. */
9947
9948 /* Override any gcc2 internal prototype to avoid an error. */
9949 #ifdef __cplusplus
9950 extern "C"
9951 #endif
9952 /* We use char because int might match the return type of a gcc2
9953 builtin and then its argument prototype would still apply. */
9954 char dlgetmodinfo ();
9955 int
9956 main ()
9957 {
9958 dlgetmodinfo ();
9959 ;
9960 return 0;
9961 }
9962 _ACEOF
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9965 (eval $ac_link) 2>conftest.er1
9966 ac_status=$?
9967 grep -v '^ *+' conftest.er1 >conftest.err
9968 rm -f conftest.er1
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try='test -z "$ac_c_werror_flag"
9973 || test ! -s conftest.err'
9974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975 (eval $ac_try) 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; } &&
9979 { ac_try='test -s conftest$ac_exeext'
9980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 (eval $ac_try) 2>&5
9982 ac_status=$?
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 ac_cv_search_dlgetmodinfo="-l$ac_lib"
9986 break
9987 else
9988 echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9990
9991 fi
9992 rm -f conftest.err conftest.$ac_objext \
9993 conftest$ac_exeext conftest.$ac_ext
9994 done
9995 fi
9996 LIBS=$ac_func_search_save_LIBS
9997 fi
9998 echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
9999 echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10000 if test "$ac_cv_search_dlgetmodinfo" != no; then
10001 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10002
10003 fi
10004
10005
10006
10007
10008
10009 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
10010 if test "${with_libiconv_prefix+set}" = set; then
10011 withval="$with_libiconv_prefix"
10012
10013 for dir in `echo "$withval" | tr : ' '`; do
10014 if test -d $dir/include; then LIBICONV_INCLUDE="-I$dir/include"; CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
10015 if test -d $dir/lib; then LIBICONV_LIBDIR="-L$dir/lib"; LDFLAGS="$LDFLAGS -L$dir/lib"; fi
10016 done
10017
10018 fi;
10019
10020 BUILD_LIBICONV_LIBDIR="-L../libiconv/lib/.libs -L../libiconv/lib/_libs"
10021 BUILD_LIBICONV_INCLUDE="-I../libiconv/include"
10022
10023 echo "$as_me:$LINENO: checking for iconv" >&5
10024 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
10025 if test "${am_cv_func_iconv+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028
10029 am_cv_func_iconv="no, consider installing GNU libiconv"
10030 am_cv_lib_iconv=no
10031 am_cv_use_build_libiconv=no
10032 cat >conftest.$ac_ext <<_ACEOF
10033 /* confdefs.h. */
10034 _ACEOF
10035 cat confdefs.h >>conftest.$ac_ext
10036 cat >>conftest.$ac_ext <<_ACEOF
10037 /* end confdefs.h. */
10038 #include <stdlib.h>
10039 #include <iconv.h>
10040 int
10041 main ()
10042 {
10043 iconv_t cd = iconv_open("","");
10044 iconv(cd,NULL,NULL,NULL,NULL);
10045 iconv_close(cd);
10046 ;
10047 return 0;
10048 }
10049 _ACEOF
10050 rm -f conftest.$ac_objext conftest$ac_exeext
10051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10052 (eval $ac_link) 2>conftest.er1
10053 ac_status=$?
10054 grep -v '^ *+' conftest.er1 >conftest.err
10055 rm -f conftest.er1
10056 cat conftest.err >&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); } &&
10059 { ac_try='test -z "$ac_c_werror_flag"
10060 || test ! -s conftest.err'
10061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10062 (eval $ac_try) 2>&5
10063 ac_status=$?
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); }; } &&
10066 { ac_try='test -s conftest$ac_exeext'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10069 ac_status=$?
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 am_cv_func_iconv=yes
10073 else
10074 echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10076
10077 fi
10078 rm -f conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 if test "$am_cv_func_iconv" != yes; then
10081 am_save_LIBS="$LIBS"
10082 LIBS="$LIBS -liconv"
10083 cat >conftest.$ac_ext <<_ACEOF
10084 /* confdefs.h. */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h. */
10089 #include <stdlib.h>
10090 #include <iconv.h>
10091 int
10092 main ()
10093 {
10094 iconv_t cd = iconv_open("","");
10095 iconv(cd,NULL,NULL,NULL,NULL);
10096 iconv_close(cd);
10097 ;
10098 return 0;
10099 }
10100 _ACEOF
10101 rm -f conftest.$ac_objext conftest$ac_exeext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10103 (eval $ac_link) 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } &&
10110 { ac_try='test -z "$ac_c_werror_flag"
10111 || test ! -s conftest.err'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; } &&
10117 { ac_try='test -s conftest$ac_exeext'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 am_cv_lib_iconv=yes
10124 am_cv_func_iconv=yes
10125 else
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10128
10129 fi
10130 rm -f conftest.err conftest.$ac_objext \
10131 conftest$ac_exeext conftest.$ac_ext
10132 LIBS="$am_save_LIBS"
10133 fi
10134 # Look for libiconv in the build tree.
10135 if test "$am_cv_func_iconv" != yes && test -d ../libiconv; then
10136 am_save_LIBS="$LIBS"
10137 am_save_CPPFLAGS="$CPPFLAGS"
10138 LIBS="$LIBS $BUILD_LIBICONV_LIBDIR -liconv"
10139 CPPFLAGS="$CPPFLAGS $BUILD_LIBICONV_INCLUDE"
10140 cat >conftest.$ac_ext <<_ACEOF
10141 /* confdefs.h. */
10142 _ACEOF
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h. */
10146 #include <stdlib.h>
10147 #include <iconv.h>
10148 int
10149 main ()
10150 {
10151 iconv_t cd = iconv_open("","");
10152 iconv(cd,NULL,NULL,NULL,NULL);
10153 iconv_close(cd);
10154 ;
10155 return 0;
10156 }
10157 _ACEOF
10158 rm -f conftest.$ac_objext conftest$ac_exeext
10159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10160 (eval $ac_link) 2>conftest.er1
10161 ac_status=$?
10162 grep -v '^ *+' conftest.er1 >conftest.err
10163 rm -f conftest.er1
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } &&
10167 { ac_try='test -z "$ac_c_werror_flag"
10168 || test ! -s conftest.err'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10171 ac_status=$?
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; } &&
10174 { ac_try='test -s conftest$ac_exeext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 am_cv_lib_iconv=yes
10181 am_cv_func_iconv=yes
10182 else
10183 echo "$as_me: failed program was:" >&5
10184 sed 's/^/| /' conftest.$ac_ext >&5
10185
10186 fi
10187 rm -f conftest.err conftest.$ac_objext \
10188 conftest$ac_exeext conftest.$ac_ext
10189 LIBS="$am_save_LIBS"
10190 if test "$am_cv_func_iconv" = "yes"; then
10191 am_cv_use_build_libiconv=yes
10192 else
10193 CPPFLAGS="$am_save_CPPFLAGS"
10194 fi
10195 fi
10196
10197 fi
10198 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10199 echo "${ECHO_T}$am_cv_func_iconv" >&6
10200 if test "$am_cv_func_iconv" = yes; then
10201
10202 cat >>confdefs.h <<\_ACEOF
10203 #define HAVE_ICONV 1
10204 _ACEOF
10205
10206 echo "$as_me:$LINENO: checking for iconv declaration" >&5
10207 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
10208 if test "${am_cv_proto_iconv+set}" = set; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211
10212 cat >conftest.$ac_ext <<_ACEOF
10213 /* confdefs.h. */
10214 _ACEOF
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10218
10219 #include <stdlib.h>
10220 #include <iconv.h>
10221 extern
10222 #ifdef __cplusplus
10223 "C"
10224 #endif
10225 #if defined(__STDC__) || defined(__cplusplus)
10226 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10227 #else
10228 size_t iconv();
10229 #endif
10230
10231 int
10232 main ()
10233 {
10234
10235 ;
10236 return 0;
10237 }
10238 _ACEOF
10239 rm -f conftest.$ac_objext
10240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10241 (eval $ac_compile) 2>conftest.er1
10242 ac_status=$?
10243 grep -v '^ *+' conftest.er1 >conftest.err
10244 rm -f conftest.er1
10245 cat conftest.err >&5
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); } &&
10248 { ac_try='test -z "$ac_c_werror_flag"
10249 || test ! -s conftest.err'
10250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251 (eval $ac_try) 2>&5
10252 ac_status=$?
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); }; } &&
10255 { ac_try='test -s conftest.$ac_objext'
10256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10257 (eval $ac_try) 2>&5
10258 ac_status=$?
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); }; }; then
10261 am_cv_proto_iconv_arg1=""
10262 else
10263 echo "$as_me: failed program was:" >&5
10264 sed 's/^/| /' conftest.$ac_ext >&5
10265
10266 am_cv_proto_iconv_arg1="const"
10267 fi
10268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10269 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);"
10270 fi
10271
10272 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10273 echo "$as_me:$LINENO: result: ${ac_t:-
10274 }$am_cv_proto_iconv" >&5
10275 echo "${ECHO_T}${ac_t:-
10276 }$am_cv_proto_iconv" >&6
10277
10278 cat >>confdefs.h <<_ACEOF
10279 #define ICONV_CONST $am_cv_proto_iconv_arg1
10280 _ACEOF
10281
10282 fi
10283 LIBICONV=
10284 if test "$am_cv_lib_iconv" = yes; then
10285 LIBICONV="-liconv"
10286 fi
10287 if test "$am_cv_use_build_libiconv" = yes; then
10288 LIBICONV_LIBDIR="$BUILD_LIBICONV_LIBDIR"
10289 LIBICONV_INCLUDE="$BUILD_LIBICONV_INCLUDE"
10290 fi
10291
10292
10293
10294
10295
10296 # On alpha-osf, it appears that libtermcap and libcurses are not compatible.
10297 # There is a very specific comment in /usr/include/curses.h explaining that
10298 # termcap routines built into libcurses must not be used.
10299 #
10300 # The symptoms we observed so far is GDB unexpectedly changing
10301 # the terminal settings when tgetent is called - this is particularly
10302 # visible as the output is missing carriage returns, and so rapidly
10303 # becomes very hard to read.
10304 #
10305 # The readline configure script has already decided that libtermcap
10306 # was enough for its purposes, and so decided to build readline using
10307 # libtermcap. Since the TUI mode requires curses, building GDB with
10308 # TUI enabled results in both libraries to be used at the same time,
10309 # which is not allowed. This basically means that GDB with TUI is
10310 # broken on alpha-osf.
10311
10312 case $host_os in
10313 alpha*-*-osf* )
10314 if "$enable_tui" = "yes"; then
10315 { { echo "$as_me:$LINENO: error: Building GDB with TUI mode is not supported on this host" >&5
10316 echo "$as_me: error: Building GDB with TUI mode is not supported on this host" >&2;}
10317 { (exit 1); exit 1; }; }
10318 fi
10319 if "$enable_tui" = "auto"; then
10320 enable_tui=no
10321 fi
10322 ;;
10323 esac
10324
10325 # For the TUI, we need enhanced curses functionality.
10326 if test x"$enable_tui" != xno; then
10327 prefer_curses=yes
10328 fi
10329
10330 curses_found=no
10331 if test x"$prefer_curses" = xyes; then
10332 # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
10333 # curses library because the latter might not provide all the
10334 # functionality we need. However, this leads to problems on systems
10335 # where the linker searches /usr/local/lib, but the compiler doesn't
10336 # search /usr/local/include, if ncurses is installed in /usr/local. A
10337 # default installation of ncurses on alpha*-dec-osf* will lead to such
10338 # a situation.
10339 echo "$as_me:$LINENO: checking for library containing waddstr" >&5
10340 echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
10341 if test "${ac_cv_search_waddstr+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 else
10344 ac_func_search_save_LIBS=$LIBS
10345 ac_cv_search_waddstr=no
10346 cat >conftest.$ac_ext <<_ACEOF
10347 /* confdefs.h. */
10348 _ACEOF
10349 cat confdefs.h >>conftest.$ac_ext
10350 cat >>conftest.$ac_ext <<_ACEOF
10351 /* end confdefs.h. */
10352
10353 /* Override any gcc2 internal prototype to avoid an error. */
10354 #ifdef __cplusplus
10355 extern "C"
10356 #endif
10357 /* We use char because int might match the return type of a gcc2
10358 builtin and then its argument prototype would still apply. */
10359 char waddstr ();
10360 int
10361 main ()
10362 {
10363 waddstr ();
10364 ;
10365 return 0;
10366 }
10367 _ACEOF
10368 rm -f conftest.$ac_objext conftest$ac_exeext
10369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10370 (eval $ac_link) 2>conftest.er1
10371 ac_status=$?
10372 grep -v '^ *+' conftest.er1 >conftest.err
10373 rm -f conftest.er1
10374 cat conftest.err >&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); } &&
10377 { ac_try='test -z "$ac_c_werror_flag"
10378 || test ! -s conftest.err'
10379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10380 (eval $ac_try) 2>&5
10381 ac_status=$?
10382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383 (exit $ac_status); }; } &&
10384 { ac_try='test -s conftest$ac_exeext'
10385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386 (eval $ac_try) 2>&5
10387 ac_status=$?
10388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; }; then
10390 ac_cv_search_waddstr="none required"
10391 else
10392 echo "$as_me: failed program was:" >&5
10393 sed 's/^/| /' conftest.$ac_ext >&5
10394
10395 fi
10396 rm -f conftest.err conftest.$ac_objext \
10397 conftest$ac_exeext conftest.$ac_ext
10398 if test "$ac_cv_search_waddstr" = no; then
10399 for ac_lib in ncurses cursesX curses; do
10400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10401 cat >conftest.$ac_ext <<_ACEOF
10402 /* confdefs.h. */
10403 _ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10407
10408 /* Override any gcc2 internal prototype to avoid an error. */
10409 #ifdef __cplusplus
10410 extern "C"
10411 #endif
10412 /* We use char because int might match the return type of a gcc2
10413 builtin and then its argument prototype would still apply. */
10414 char waddstr ();
10415 int
10416 main ()
10417 {
10418 waddstr ();
10419 ;
10420 return 0;
10421 }
10422 _ACEOF
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10425 (eval $ac_link) 2>conftest.er1
10426 ac_status=$?
10427 grep -v '^ *+' conftest.er1 >conftest.err
10428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } &&
10432 { ac_try='test -z "$ac_c_werror_flag"
10433 || test ! -s conftest.err'
10434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435 (eval $ac_try) 2>&5
10436 ac_status=$?
10437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438 (exit $ac_status); }; } &&
10439 { ac_try='test -s conftest$ac_exeext'
10440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441 (eval $ac_try) 2>&5
10442 ac_status=$?
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; }; then
10445 ac_cv_search_waddstr="-l$ac_lib"
10446 break
10447 else
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.$ac_ext >&5
10450
10451 fi
10452 rm -f conftest.err conftest.$ac_objext \
10453 conftest$ac_exeext conftest.$ac_ext
10454 done
10455 fi
10456 LIBS=$ac_func_search_save_LIBS
10457 fi
10458 echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10459 echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10460 if test "$ac_cv_search_waddstr" != no; then
10461 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
10462
10463 fi
10464
10465
10466 if test "$ac_cv_search_waddstr" != no; then
10467 curses_found=yes
10468 fi
10469 fi
10470
10471 # Check whether we should enable the TUI, but only do so if we really
10472 # can.
10473 if test x"$enable_tui" != xno; then
10474 if test -d $srcdir/tui; then
10475 if test "$curses_found" != no; then
10476 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
10477 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
10478 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
10479 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
10480 CONFIG_ALL="${CONFIG_ALL} all-tui"
10481 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
10482 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
10483 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
10484 else
10485 if test x"$enable_tui" = xyes; then
10486 { { echo "$as_me:$LINENO: error: no enhanced curses library found; disable TUI" >&5
10487 echo "$as_me: error: no enhanced curses library found; disable TUI" >&2;}
10488 { (exit 1); exit 1; }; }
10489 else
10490 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
10491 echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
10492 fi
10493 fi
10494 fi
10495 fi
10496
10497 # Since GDB uses Readline, we need termcap functionality. In many
10498 # cases this will be provided by the curses library, but some systems
10499 # have a seperate termcap library, or no curses library at all.
10500
10501 case $host_os in
10502 cygwin*)
10503 if test -d $srcdir/libtermcap; then
10504 LIBS="../libtermcap/libtermcap.a $LIBS"
10505 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10506 fi ;;
10507 go32* | *djgpp*)
10508 ac_cv_search_tgetent="none required"
10509 ;;
10510 *mingw32*)
10511 ac_cv_search_tgetent="none required"
10512 CONFIG_OBS="$CONFIG_OBS windows-termcap.o"
10513 ;;
10514 esac
10515
10516 # These are the libraries checked by Readline.
10517 echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10518 echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
10519 if test "${ac_cv_search_tgetent+set}" = set; then
10520 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 else
10522 ac_func_search_save_LIBS=$LIBS
10523 ac_cv_search_tgetent=no
10524 cat >conftest.$ac_ext <<_ACEOF
10525 /* confdefs.h. */
10526 _ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10530
10531 /* Override any gcc2 internal prototype to avoid an error. */
10532 #ifdef __cplusplus
10533 extern "C"
10534 #endif
10535 /* We use char because int might match the return type of a gcc2
10536 builtin and then its argument prototype would still apply. */
10537 char tgetent ();
10538 int
10539 main ()
10540 {
10541 tgetent ();
10542 ;
10543 return 0;
10544 }
10545 _ACEOF
10546 rm -f conftest.$ac_objext conftest$ac_exeext
10547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10548 (eval $ac_link) 2>conftest.er1
10549 ac_status=$?
10550 grep -v '^ *+' conftest.er1 >conftest.err
10551 rm -f conftest.er1
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } &&
10555 { ac_try='test -z "$ac_c_werror_flag"
10556 || test ! -s conftest.err'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10559 ac_status=$?
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; } &&
10562 { ac_try='test -s conftest$ac_exeext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_cv_search_tgetent="none required"
10569 else
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10572
10573 fi
10574 rm -f conftest.err conftest.$ac_objext \
10575 conftest$ac_exeext conftest.$ac_ext
10576 if test "$ac_cv_search_tgetent" = no; then
10577 for ac_lib in termcap tinfo curses ncurses; do
10578 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10579 cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h. */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10585
10586 /* Override any gcc2 internal prototype to avoid an error. */
10587 #ifdef __cplusplus
10588 extern "C"
10589 #endif
10590 /* We use char because int might match the return type of a gcc2
10591 builtin and then its argument prototype would still apply. */
10592 char tgetent ();
10593 int
10594 main ()
10595 {
10596 tgetent ();
10597 ;
10598 return 0;
10599 }
10600 _ACEOF
10601 rm -f conftest.$ac_objext conftest$ac_exeext
10602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10603 (eval $ac_link) 2>conftest.er1
10604 ac_status=$?
10605 grep -v '^ *+' conftest.er1 >conftest.err
10606 rm -f conftest.er1
10607 cat conftest.err >&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } &&
10610 { ac_try='test -z "$ac_c_werror_flag"
10611 || test ! -s conftest.err'
10612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10614 ac_status=$?
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; } &&
10617 { ac_try='test -s conftest$ac_exeext'
10618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10619 (eval $ac_try) 2>&5
10620 ac_status=$?
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_cv_search_tgetent="-l$ac_lib"
10624 break
10625 else
10626 echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10628
10629 fi
10630 rm -f conftest.err conftest.$ac_objext \
10631 conftest$ac_exeext conftest.$ac_ext
10632 done
10633 fi
10634 LIBS=$ac_func_search_save_LIBS
10635 fi
10636 echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10637 echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10638 if test "$ac_cv_search_tgetent" != no; then
10639 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
10640
10641 fi
10642
10643
10644 if test "$ac_cv_search_tgetent" = no; then
10645 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10646 echo "$as_me: error: no termcap library found" >&2;}
10647 { (exit 1); exit 1; }; }
10648 fi
10649
10650
10651 # Check whether --with-system-readline or --without-system-readline was given.
10652 if test "${with_system_readline+set}" = set; then
10653 withval="$with_system_readline"
10654
10655 fi;
10656
10657 if test "$with_system_readline" = yes; then
10658 READLINE=-lreadline
10659 READLINE_DEPS=
10660 READLINE_CFLAGS=
10661 else
10662 READLINE='$(READLINE_DIR)/libreadline.a'
10663 READLINE_DEPS='$(READLINE)'
10664 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10665 fi
10666
10667
10668
10669
10670
10671 # Check whether --with-expat or --without-expat was given.
10672 if test "${with_expat+set}" = set; then
10673 withval="$with_expat"
10674
10675 else
10676 with_expat=auto
10677 fi;
10678 echo "$as_me:$LINENO: checking whether to use expat" >&5
10679 echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10680 echo "$as_me:$LINENO: result: $with_expat" >&5
10681 echo "${ECHO_T}$with_expat" >&6
10682
10683 if test "${with_expat}" = no; then
10684 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10685 echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10686 HAVE_LIBEXPAT=no
10687 else
10688
10689 if test "X$prefix" = "XNONE"; then
10690 acl_final_prefix="$ac_default_prefix"
10691 else
10692 acl_final_prefix="$prefix"
10693 fi
10694 if test "X$exec_prefix" = "XNONE"; then
10695 acl_final_exec_prefix='${prefix}'
10696 else
10697 acl_final_exec_prefix="$exec_prefix"
10698 fi
10699 acl_save_prefix="$prefix"
10700 prefix="$acl_final_prefix"
10701 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10702 prefix="$acl_save_prefix"
10703
10704
10705 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10706 if test "${with_gnu_ld+set}" = set; then
10707 withval="$with_gnu_ld"
10708 test "$withval" = no || with_gnu_ld=yes
10709 else
10710 with_gnu_ld=no
10711 fi;
10712 # Prepare PATH_SEPARATOR.
10713 # The user is always right.
10714 if test "${PATH_SEPARATOR+set}" != set; then
10715 echo "#! /bin/sh" >conf$$.sh
10716 echo "exit 0" >>conf$$.sh
10717 chmod +x conf$$.sh
10718 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10719 PATH_SEPARATOR=';'
10720 else
10721 PATH_SEPARATOR=:
10722 fi
10723 rm -f conf$$.sh
10724 fi
10725 ac_prog=ld
10726 if test "$GCC" = yes; then
10727 # Check if gcc -print-prog-name=ld gives a path.
10728 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10729 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10730 case $host in
10731 *-*-mingw*)
10732 # gcc leaves a trailing carriage return which upsets mingw
10733 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10734 *)
10735 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10736 esac
10737 case $ac_prog in
10738 # Accept absolute paths.
10739 [\\/]* | [A-Za-z]:[\\/]*)
10740 re_direlt='/[^/][^/]*/\.\./'
10741 # Canonicalize the path of ld
10742 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10743 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10744 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10745 done
10746 test -z "$LD" && LD="$ac_prog"
10747 ;;
10748 "")
10749 # If it fails, then pretend we aren't using GCC.
10750 ac_prog=ld
10751 ;;
10752 *)
10753 # If it is relative, then search for the first ld in PATH.
10754 with_gnu_ld=unknown
10755 ;;
10756 esac
10757 elif test "$with_gnu_ld" = yes; then
10758 echo "$as_me:$LINENO: checking for GNU ld" >&5
10759 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10760 else
10761 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10762 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10763 fi
10764 if test "${acl_cv_path_LD+set}" = set; then
10765 echo $ECHO_N "(cached) $ECHO_C" >&6
10766 else
10767 if test -z "$LD"; then
10768 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10769 for ac_dir in $PATH; do
10770 test -z "$ac_dir" && ac_dir=.
10771 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10772 acl_cv_path_LD="$ac_dir/$ac_prog"
10773 # Check to see if the program is GNU ld. I'd rather use --version,
10774 # but apparently some GNU ld's only accept -v.
10775 # Break only if it was the GNU/non-GNU ld that we prefer.
10776 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10777 test "$with_gnu_ld" != no && break
10778 else
10779 test "$with_gnu_ld" != yes && break
10780 fi
10781 fi
10782 done
10783 IFS="$ac_save_ifs"
10784 else
10785 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10786 fi
10787 fi
10788
10789 LD="$acl_cv_path_LD"
10790 if test -n "$LD"; then
10791 echo "$as_me:$LINENO: result: $LD" >&5
10792 echo "${ECHO_T}$LD" >&6
10793 else
10794 echo "$as_me:$LINENO: result: no" >&5
10795 echo "${ECHO_T}no" >&6
10796 fi
10797 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10798 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10799 { (exit 1); exit 1; }; }
10800 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10801 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10802 if test "${acl_cv_prog_gnu_ld+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10806 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10807 acl_cv_prog_gnu_ld=yes
10808 else
10809 acl_cv_prog_gnu_ld=no
10810 fi
10811 fi
10812 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10813 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10814 with_gnu_ld=$acl_cv_prog_gnu_ld
10815
10816
10817
10818 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10819 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10820 if test "${acl_cv_rpath+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10822 else
10823
10824 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10825 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10826 . ./conftest.sh
10827 rm -f ./conftest.sh
10828 acl_cv_rpath=done
10829
10830 fi
10831 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10832 echo "${ECHO_T}$acl_cv_rpath" >&6
10833 wl="$acl_cv_wl"
10834 libext="$acl_cv_libext"
10835 shlibext="$acl_cv_shlibext"
10836 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10837 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10838 hardcode_direct="$acl_cv_hardcode_direct"
10839 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10840 # Check whether --enable-rpath or --disable-rpath was given.
10841 if test "${enable_rpath+set}" = set; then
10842 enableval="$enable_rpath"
10843 :
10844 else
10845 enable_rpath=yes
10846 fi;
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856 use_additional=yes
10857
10858 acl_save_prefix="$prefix"
10859 prefix="$acl_final_prefix"
10860 acl_save_exec_prefix="$exec_prefix"
10861 exec_prefix="$acl_final_exec_prefix"
10862
10863 eval additional_includedir=\"$includedir\"
10864 eval additional_libdir=\"$libdir\"
10865
10866 exec_prefix="$acl_save_exec_prefix"
10867 prefix="$acl_save_prefix"
10868
10869
10870 # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10871 if test "${with_libexpat_prefix+set}" = set; then
10872 withval="$with_libexpat_prefix"
10873
10874 if test "X$withval" = "Xno"; then
10875 use_additional=no
10876 else
10877 if test "X$withval" = "X"; then
10878
10879 acl_save_prefix="$prefix"
10880 prefix="$acl_final_prefix"
10881 acl_save_exec_prefix="$exec_prefix"
10882 exec_prefix="$acl_final_exec_prefix"
10883
10884 eval additional_includedir=\"$includedir\"
10885 eval additional_libdir=\"$libdir\"
10886
10887 exec_prefix="$acl_save_exec_prefix"
10888 prefix="$acl_save_prefix"
10889
10890 else
10891 additional_includedir="$withval/include"
10892 additional_libdir="$withval/lib"
10893 fi
10894 fi
10895
10896 fi;
10897 LIBEXPAT=
10898 LTLIBEXPAT=
10899 INCEXPAT=
10900 rpathdirs=
10901 ltrpathdirs=
10902 names_already_handled=
10903 names_next_round='expat '
10904 while test -n "$names_next_round"; do
10905 names_this_round="$names_next_round"
10906 names_next_round=
10907 for name in $names_this_round; do
10908 already_handled=
10909 for n in $names_already_handled; do
10910 if test "$n" = "$name"; then
10911 already_handled=yes
10912 break
10913 fi
10914 done
10915 if test -z "$already_handled"; then
10916 names_already_handled="$names_already_handled $name"
10917 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10918 eval value=\"\$HAVE_LIB$uppername\"
10919 if test -n "$value"; then
10920 if test "$value" = yes; then
10921 eval value=\"\$LIB$uppername\"
10922 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10923 eval value=\"\$LTLIB$uppername\"
10924 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10925 else
10926 :
10927 fi
10928 else
10929 found_dir=
10930 found_la=
10931 found_so=
10932 found_a=
10933 if test $use_additional = yes; then
10934 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10935 found_dir="$additional_libdir"
10936 found_so="$additional_libdir/lib$name.$shlibext"
10937 if test -f "$additional_libdir/lib$name.la"; then
10938 found_la="$additional_libdir/lib$name.la"
10939 fi
10940 else
10941 if test -f "$additional_libdir/lib$name.$libext"; then
10942 found_dir="$additional_libdir"
10943 found_a="$additional_libdir/lib$name.$libext"
10944 if test -f "$additional_libdir/lib$name.la"; then
10945 found_la="$additional_libdir/lib$name.la"
10946 fi
10947 fi
10948 fi
10949 fi
10950 if test "X$found_dir" = "X"; then
10951 for x in $LDFLAGS $LTLIBEXPAT; do
10952
10953 acl_save_prefix="$prefix"
10954 prefix="$acl_final_prefix"
10955 acl_save_exec_prefix="$exec_prefix"
10956 exec_prefix="$acl_final_exec_prefix"
10957 eval x=\"$x\"
10958 exec_prefix="$acl_save_exec_prefix"
10959 prefix="$acl_save_prefix"
10960
10961 case "$x" in
10962 -L*)
10963 dir=`echo "X$x" | sed -e 's/^X-L//'`
10964 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10965 found_dir="$dir"
10966 found_so="$dir/lib$name.$shlibext"
10967 if test -f "$dir/lib$name.la"; then
10968 found_la="$dir/lib$name.la"
10969 fi
10970 else
10971 if test -f "$dir/lib$name.$libext"; then
10972 found_dir="$dir"
10973 found_a="$dir/lib$name.$libext"
10974 if test -f "$dir/lib$name.la"; then
10975 found_la="$dir/lib$name.la"
10976 fi
10977 fi
10978 fi
10979 ;;
10980 esac
10981 if test "X$found_dir" != "X"; then
10982 break
10983 fi
10984 done
10985 fi
10986 if test "X$found_dir" != "X"; then
10987 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10988 if test "X$found_so" != "X"; then
10989 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10990 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10991 else
10992 haveit=
10993 for x in $ltrpathdirs; do
10994 if test "X$x" = "X$found_dir"; then
10995 haveit=yes
10996 break
10997 fi
10998 done
10999 if test -z "$haveit"; then
11000 ltrpathdirs="$ltrpathdirs $found_dir"
11001 fi
11002 if test "$hardcode_direct" = yes; then
11003 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11004 else
11005 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11006 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11007 haveit=
11008 for x in $rpathdirs; do
11009 if test "X$x" = "X$found_dir"; then
11010 haveit=yes
11011 break
11012 fi
11013 done
11014 if test -z "$haveit"; then
11015 rpathdirs="$rpathdirs $found_dir"
11016 fi
11017 else
11018 haveit=
11019 for x in $LDFLAGS $LIBEXPAT; do
11020
11021 acl_save_prefix="$prefix"
11022 prefix="$acl_final_prefix"
11023 acl_save_exec_prefix="$exec_prefix"
11024 exec_prefix="$acl_final_exec_prefix"
11025 eval x=\"$x\"
11026 exec_prefix="$acl_save_exec_prefix"
11027 prefix="$acl_save_prefix"
11028
11029 if test "X$x" = "X-L$found_dir"; then
11030 haveit=yes
11031 break
11032 fi
11033 done
11034 if test -z "$haveit"; then
11035 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
11036 fi
11037 if test "$hardcode_minus_L" != no; then
11038 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
11039 else
11040 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11041 fi
11042 fi
11043 fi
11044 fi
11045 else
11046 if test "X$found_a" != "X"; then
11047 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
11048 else
11049 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
11050 fi
11051 fi
11052 additional_includedir=
11053 case "$found_dir" in
11054 */lib | */lib/)
11055 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11056 additional_includedir="$basedir/include"
11057 ;;
11058 esac
11059 if test "X$additional_includedir" != "X"; then
11060 if test "X$additional_includedir" != "X/usr/include"; then
11061 haveit=
11062 if test "X$additional_includedir" = "X/usr/local/include"; then
11063 if test -n "$GCC"; then
11064 case $host_os in
11065 linux*) haveit=yes;;
11066 esac
11067 fi
11068 fi
11069 if test -z "$haveit"; then
11070 for x in $CPPFLAGS $INCEXPAT; do
11071
11072 acl_save_prefix="$prefix"
11073 prefix="$acl_final_prefix"
11074 acl_save_exec_prefix="$exec_prefix"
11075 exec_prefix="$acl_final_exec_prefix"
11076 eval x=\"$x\"
11077 exec_prefix="$acl_save_exec_prefix"
11078 prefix="$acl_save_prefix"
11079
11080 if test "X$x" = "X-I$additional_includedir"; then
11081 haveit=yes
11082 break
11083 fi
11084 done
11085 if test -z "$haveit"; then
11086 if test -d "$additional_includedir"; then
11087 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
11088 fi
11089 fi
11090 fi
11091 fi
11092 fi
11093 if test -n "$found_la"; then
11094 save_libdir="$libdir"
11095 case "$found_la" in
11096 */* | *\\*) . "$found_la" ;;
11097 *) . "./$found_la" ;;
11098 esac
11099 libdir="$save_libdir"
11100 for dep in $dependency_libs; do
11101 case "$dep" in
11102 -L*)
11103 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11104 if test "X$additional_libdir" != "X/usr/lib"; then
11105 haveit=
11106 if test "X$additional_libdir" = "X/usr/local/lib"; then
11107 if test -n "$GCC"; then
11108 case $host_os in
11109 linux*) haveit=yes;;
11110 esac
11111 fi
11112 fi
11113 if test -z "$haveit"; then
11114 haveit=
11115 for x in $LDFLAGS $LIBEXPAT; do
11116
11117 acl_save_prefix="$prefix"
11118 prefix="$acl_final_prefix"
11119 acl_save_exec_prefix="$exec_prefix"
11120 exec_prefix="$acl_final_exec_prefix"
11121 eval x=\"$x\"
11122 exec_prefix="$acl_save_exec_prefix"
11123 prefix="$acl_save_prefix"
11124
11125 if test "X$x" = "X-L$additional_libdir"; then
11126 haveit=yes
11127 break
11128 fi
11129 done
11130 if test -z "$haveit"; then
11131 if test -d "$additional_libdir"; then
11132 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
11133 fi
11134 fi
11135 haveit=
11136 for x in $LDFLAGS $LTLIBEXPAT; do
11137
11138 acl_save_prefix="$prefix"
11139 prefix="$acl_final_prefix"
11140 acl_save_exec_prefix="$exec_prefix"
11141 exec_prefix="$acl_final_exec_prefix"
11142 eval x=\"$x\"
11143 exec_prefix="$acl_save_exec_prefix"
11144 prefix="$acl_save_prefix"
11145
11146 if test "X$x" = "X-L$additional_libdir"; then
11147 haveit=yes
11148 break
11149 fi
11150 done
11151 if test -z "$haveit"; then
11152 if test -d "$additional_libdir"; then
11153 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
11154 fi
11155 fi
11156 fi
11157 fi
11158 ;;
11159 -R*)
11160 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11161 if test "$enable_rpath" != no; then
11162 haveit=
11163 for x in $rpathdirs; do
11164 if test "X$x" = "X$dir"; then
11165 haveit=yes
11166 break
11167 fi
11168 done
11169 if test -z "$haveit"; then
11170 rpathdirs="$rpathdirs $dir"
11171 fi
11172 haveit=
11173 for x in $ltrpathdirs; do
11174 if test "X$x" = "X$dir"; then
11175 haveit=yes
11176 break
11177 fi
11178 done
11179 if test -z "$haveit"; then
11180 ltrpathdirs="$ltrpathdirs $dir"
11181 fi
11182 fi
11183 ;;
11184 -l*)
11185 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11186 ;;
11187 *.la)
11188 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11189 ;;
11190 *)
11191 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
11192 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
11193 ;;
11194 esac
11195 done
11196 fi
11197 else
11198 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
11199 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
11200 fi
11201 fi
11202 fi
11203 done
11204 done
11205 if test "X$rpathdirs" != "X"; then
11206 if test -n "$hardcode_libdir_separator"; then
11207 alldirs=
11208 for found_dir in $rpathdirs; do
11209 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11210 done
11211 acl_save_libdir="$libdir"
11212 libdir="$alldirs"
11213 eval flag=\"$hardcode_libdir_flag_spec\"
11214 libdir="$acl_save_libdir"
11215 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11216 else
11217 for found_dir in $rpathdirs; do
11218 acl_save_libdir="$libdir"
11219 libdir="$found_dir"
11220 eval flag=\"$hardcode_libdir_flag_spec\"
11221 libdir="$acl_save_libdir"
11222 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
11223 done
11224 fi
11225 fi
11226 if test "X$ltrpathdirs" != "X"; then
11227 for found_dir in $ltrpathdirs; do
11228 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
11229 done
11230 fi
11231
11232
11233 ac_save_CPPFLAGS="$CPPFLAGS"
11234
11235 for element in $INCEXPAT; do
11236 haveit=
11237 for x in $CPPFLAGS; do
11238
11239 acl_save_prefix="$prefix"
11240 prefix="$acl_final_prefix"
11241 acl_save_exec_prefix="$exec_prefix"
11242 exec_prefix="$acl_final_exec_prefix"
11243 eval x=\"$x\"
11244 exec_prefix="$acl_save_exec_prefix"
11245 prefix="$acl_save_prefix"
11246
11247 if test "X$x" = "X$element"; then
11248 haveit=yes
11249 break
11250 fi
11251 done
11252 if test -z "$haveit"; then
11253 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11254 fi
11255 done
11256
11257
11258 echo "$as_me:$LINENO: checking for libexpat" >&5
11259 echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
11260 if test "${ac_cv_libexpat+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 else
11263
11264 ac_save_LIBS="$LIBS"
11265 LIBS="$LIBS $LIBEXPAT"
11266 cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h. */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 #include "expat.h"
11273 int
11274 main ()
11275 {
11276 XML_Parser p = XML_ParserCreate (0);
11277 ;
11278 return 0;
11279 }
11280 _ACEOF
11281 rm -f conftest.$ac_objext conftest$ac_exeext
11282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11283 (eval $ac_link) 2>conftest.er1
11284 ac_status=$?
11285 grep -v '^ *+' conftest.er1 >conftest.err
11286 rm -f conftest.er1
11287 cat conftest.err >&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -z "$ac_c_werror_flag"
11291 || test ! -s conftest.err'
11292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11293 (eval $ac_try) 2>&5
11294 ac_status=$?
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; } &&
11297 { ac_try='test -s conftest$ac_exeext'
11298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11299 (eval $ac_try) 2>&5
11300 ac_status=$?
11301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302 (exit $ac_status); }; }; then
11303 ac_cv_libexpat=yes
11304 else
11305 echo "$as_me: failed program was:" >&5
11306 sed 's/^/| /' conftest.$ac_ext >&5
11307
11308 ac_cv_libexpat=no
11309 fi
11310 rm -f conftest.err conftest.$ac_objext \
11311 conftest$ac_exeext conftest.$ac_ext
11312 LIBS="$ac_save_LIBS"
11313
11314 fi
11315 echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11316 echo "${ECHO_T}$ac_cv_libexpat" >&6
11317 if test "$ac_cv_libexpat" = yes; then
11318 HAVE_LIBEXPAT=yes
11319
11320 cat >>confdefs.h <<\_ACEOF
11321 #define HAVE_LIBEXPAT 1
11322 _ACEOF
11323
11324 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11325 echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11326 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11327 echo "${ECHO_T}$LIBEXPAT" >&6
11328 else
11329 HAVE_LIBEXPAT=no
11330 CPPFLAGS="$ac_save_CPPFLAGS"
11331 LIBEXPAT=
11332 LTLIBEXPAT=
11333 fi
11334
11335
11336
11337
11338
11339
11340 if test "$HAVE_LIBEXPAT" != yes; then
11341 if test "$with_expat" = yes; then
11342 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11343 echo "$as_me: error: expat is missing or unusable" >&2;}
11344 { (exit 1); exit 1; }; }
11345 else
11346 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11347 echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11348 fi
11349 else
11350 save_LIBS=$LIBS
11351 LIBS="$LIBS $LIBEXPAT"
11352
11353 for ac_func in XML_StopParser
11354 do
11355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11356 echo "$as_me:$LINENO: checking for $ac_func" >&5
11357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11358 if eval "test \"\${$as_ac_var+set}\" = set"; then
11359 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361 cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h. */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11369 #define $ac_func innocuous_$ac_func
11370
11371 /* System header to define __stub macros and hopefully few prototypes,
11372 which can conflict with char $ac_func (); below.
11373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11374 <limits.h> exists even on freestanding compilers. */
11375
11376 #ifdef __STDC__
11377 # include <limits.h>
11378 #else
11379 # include <assert.h>
11380 #endif
11381
11382 #undef $ac_func
11383
11384 /* Override any gcc2 internal prototype to avoid an error. */
11385 #ifdef __cplusplus
11386 extern "C"
11387 {
11388 #endif
11389 /* We use char because int might match the return type of a gcc2
11390 builtin and then its argument prototype would still apply. */
11391 char $ac_func ();
11392 /* The GNU C library defines this for functions which it implements
11393 to always fail with ENOSYS. Some functions are actually named
11394 something starting with __ and the normal name is an alias. */
11395 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11396 choke me
11397 #else
11398 char (*f) () = $ac_func;
11399 #endif
11400 #ifdef __cplusplus
11401 }
11402 #endif
11403
11404 int
11405 main ()
11406 {
11407 return f != $ac_func;
11408 ;
11409 return 0;
11410 }
11411 _ACEOF
11412 rm -f conftest.$ac_objext conftest$ac_exeext
11413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11414 (eval $ac_link) 2>conftest.er1
11415 ac_status=$?
11416 grep -v '^ *+' conftest.er1 >conftest.err
11417 rm -f conftest.er1
11418 cat conftest.err >&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } &&
11421 { ac_try='test -z "$ac_c_werror_flag"
11422 || test ! -s conftest.err'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; } &&
11428 { ac_try='test -s conftest$ac_exeext'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 eval "$as_ac_var=yes"
11435 else
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11438
11439 eval "$as_ac_var=no"
11440 fi
11441 rm -f conftest.err conftest.$ac_objext \
11442 conftest$ac_exeext conftest.$ac_ext
11443 fi
11444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11446 if test `eval echo '${'$as_ac_var'}'` = yes; then
11447 cat >>confdefs.h <<_ACEOF
11448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11449 _ACEOF
11450
11451 fi
11452 done
11453
11454 LIBS=$save_LIBS
11455 fi
11456 fi
11457
11458
11459
11460
11461 # Check whether --with-python or --without-python was given.
11462 if test "${with_python+set}" = set; then
11463 withval="$with_python"
11464
11465 else
11466 with_python=auto
11467 fi;
11468 echo "$as_me:$LINENO: checking whether to use python" >&5
11469 echo $ECHO_N "checking whether to use python... $ECHO_C" >&6
11470 echo "$as_me:$LINENO: result: $with_python" >&5
11471 echo "${ECHO_T}$with_python" >&6
11472
11473 if test "${with_python}" = no; then
11474 { echo "$as_me:$LINENO: WARNING: python support disabled; some features may be unavailable." >&5
11475 echo "$as_me: WARNING: python support disabled; some features may be unavailable." >&2;}
11476 have_libpython=no
11477 else
11478 case "${with_python}" in
11479 yes | auto)
11480 # Leave as empty, use defaults.
11481 python_includes=
11482 python_libs=
11483 ;;
11484 /*)
11485 python_includes="-I${with_python}/include"
11486 python_libs="-L${with_python}/lib"
11487 ;;
11488 *)
11489 { { echo "$as_me:$LINENO: error: invalid value for --with-python" >&5
11490 echo "$as_me: error: invalid value for --with-python" >&2;}
11491 { (exit 1); exit 1; }; }
11492 ;;
11493 esac
11494
11495 save_CPPFLAGS=$CPPFLAGS
11496 CPPFLAGS="$CPPFLAGS ${python_includes}"
11497 save_LIBS=$LIBS
11498 LIBS="$LIBS ${python_libs}"
11499 have_libpython=no
11500 if test "${have_libpython}" = no; then
11501
11502 version=python2.6
11503
11504
11505 HAVE_LIBPYTHON2_6=no
11506 echo "$as_me:$LINENO: checking for ${version}" >&5
11507 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11508 save_LIBS=$LIBS
11509 LIBS="$LIBS -l${version}"
11510 cat >conftest.$ac_ext <<_ACEOF
11511 /* confdefs.h. */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516 #include "${version}/Python.h"
11517 int
11518 main ()
11519 {
11520 Py_Initialize ();
11521 ;
11522 return 0;
11523 }
11524 _ACEOF
11525 rm -f conftest.$ac_objext conftest$ac_exeext
11526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11527 (eval $ac_link) 2>conftest.er1
11528 ac_status=$?
11529 grep -v '^ *+' conftest.er1 >conftest.err
11530 rm -f conftest.er1
11531 cat conftest.err >&5
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); } &&
11534 { ac_try='test -z "$ac_c_werror_flag"
11535 || test ! -s conftest.err'
11536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11537 (eval $ac_try) 2>&5
11538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); }; } &&
11541 { ac_try='test -s conftest$ac_exeext'
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 HAVE_LIBPYTHON2_6=yes
11548 have_libpython=yes
11549 else
11550 echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11552
11553 LIBS=$save_LIBS
11554 fi
11555 rm -f conftest.err conftest.$ac_objext \
11556 conftest$ac_exeext conftest.$ac_ext
11557 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_6" >&5
11558 echo "${ECHO_T}$HAVE_LIBPYTHON2_6" >&6
11559
11560 if test "${HAVE_LIBPYTHON2_6}" = yes; then
11561
11562 cat >>confdefs.h <<\_ACEOF
11563 #define HAVE_LIBPYTHON2_6 1
11564 _ACEOF
11565
11566 fi
11567 fi
11568 if test ${have_libpython} = no; then
11569
11570 version=python2.5
11571
11572
11573 HAVE_LIBPYTHON2_5=no
11574 echo "$as_me:$LINENO: checking for ${version}" >&5
11575 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11576 save_LIBS=$LIBS
11577 LIBS="$LIBS -l${version}"
11578 cat >conftest.$ac_ext <<_ACEOF
11579 /* confdefs.h. */
11580 _ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11584 #include "${version}/Python.h"
11585 int
11586 main ()
11587 {
11588 Py_Initialize ();
11589 ;
11590 return 0;
11591 }
11592 _ACEOF
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595 (eval $ac_link) 2>conftest.er1
11596 ac_status=$?
11597 grep -v '^ *+' conftest.er1 >conftest.err
11598 rm -f conftest.er1
11599 cat conftest.err >&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } &&
11602 { ac_try='test -z "$ac_c_werror_flag"
11603 || test ! -s conftest.err'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11606 ac_status=$?
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; } &&
11609 { ac_try='test -s conftest$ac_exeext'
11610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11611 (eval $ac_try) 2>&5
11612 ac_status=$?
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); }; }; then
11615 HAVE_LIBPYTHON2_5=yes
11616 have_libpython=yes
11617 else
11618 echo "$as_me: failed program was:" >&5
11619 sed 's/^/| /' conftest.$ac_ext >&5
11620
11621 LIBS=$save_LIBS
11622 fi
11623 rm -f conftest.err conftest.$ac_objext \
11624 conftest$ac_exeext conftest.$ac_ext
11625 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_5" >&5
11626 echo "${ECHO_T}$HAVE_LIBPYTHON2_5" >&6
11627
11628 if test "${HAVE_LIBPYTHON2_5}" = yes; then
11629
11630 cat >>confdefs.h <<\_ACEOF
11631 #define HAVE_LIBPYTHON2_5 1
11632 _ACEOF
11633
11634 fi
11635 fi
11636 if test ${have_libpython} = no; then
11637
11638 version=python2.4
11639
11640
11641 HAVE_LIBPYTHON2_4=no
11642 echo "$as_me:$LINENO: checking for ${version}" >&5
11643 echo $ECHO_N "checking for ${version}... $ECHO_C" >&6
11644 save_LIBS=$LIBS
11645 LIBS="$LIBS -l${version}"
11646 cat >conftest.$ac_ext <<_ACEOF
11647 /* confdefs.h. */
11648 _ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652 #include "${version}/Python.h"
11653 int
11654 main ()
11655 {
11656 Py_Initialize ();
11657 ;
11658 return 0;
11659 }
11660 _ACEOF
11661 rm -f conftest.$ac_objext conftest$ac_exeext
11662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11663 (eval $ac_link) 2>conftest.er1
11664 ac_status=$?
11665 grep -v '^ *+' conftest.er1 >conftest.err
11666 rm -f conftest.er1
11667 cat conftest.err >&5
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } &&
11670 { ac_try='test -z "$ac_c_werror_flag"
11671 || test ! -s conftest.err'
11672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673 (eval $ac_try) 2>&5
11674 ac_status=$?
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); }; } &&
11677 { ac_try='test -s conftest$ac_exeext'
11678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11679 (eval $ac_try) 2>&5
11680 ac_status=$?
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); }; }; then
11683 HAVE_LIBPYTHON2_4=yes
11684 have_libpython=yes
11685 else
11686 echo "$as_me: failed program was:" >&5
11687 sed 's/^/| /' conftest.$ac_ext >&5
11688
11689 LIBS=$save_LIBS
11690 fi
11691 rm -f conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11693 echo "$as_me:$LINENO: result: $HAVE_LIBPYTHON2_4" >&5
11694 echo "${ECHO_T}$HAVE_LIBPYTHON2_4" >&6
11695
11696 if test "${HAVE_LIBPYTHON2_4}" = yes; then
11697
11698 cat >>confdefs.h <<\_ACEOF
11699 #define HAVE_LIBPYTHON2_4 1
11700 _ACEOF
11701
11702 fi
11703 fi
11704 if test ${have_libpython} = no; then
11705 case "${with_python}" in
11706 yes)
11707 { { echo "$as_me:$LINENO: error: python is missing or unusable" >&5
11708 echo "$as_me: error: python is missing or unusable" >&2;}
11709 { (exit 1); exit 1; }; }
11710 ;;
11711 auto)
11712 { echo "$as_me:$LINENO: WARNING: python is missing or unusable; some features may be unavailable." >&5
11713 echo "$as_me: WARNING: python is missing or unusable; some features may be unavailable." >&2;}
11714 ;;
11715 *)
11716 { { echo "$as_me:$LINENO: error: no usable python found at ${with_python}" >&5
11717 echo "$as_me: error: no usable python found at ${with_python}" >&2;}
11718 { (exit 1); exit 1; }; }
11719 ;;
11720 esac
11721 CPPFLAGS=$save_CPPFLAGS
11722 LIBS=$save_LIBS
11723 fi
11724 fi
11725
11726 if test "${have_libpython}" = yes; then
11727
11728 cat >>confdefs.h <<\_ACEOF
11729 #define HAVE_PYTHON 1
11730 _ACEOF
11731
11732 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
11733 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
11734 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
11735 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
11736
11737 # Flags needed to compile Python code (taken from python-config --cflags).
11738 # We cannot call python-config directly because it will output whatever was
11739 # used when compiling the Python interpreter itself, including flags which
11740 # would make the python-related objects be compiled differently from the
11741 # rest of GDB (e.g., -O2 and -fPIC).
11742 if test "${GCC}" = yes; then
11743 tentative_python_cflags="-fno-strict-aliasing -DNDEBUG -fwrapv"
11744 fi
11745
11746 if test "x${tentative_python_cflags}" != x; then
11747 echo "$as_me:$LINENO: checking compiler flags for python code" >&5
11748 echo $ECHO_N "checking compiler flags for python code... $ECHO_C" >&6
11749 for flag in ${tentative_python_cflags}; do
11750 # Check that the compiler accepts it
11751 saved_CFLAGS="$CFLAGS"
11752 CFLAGS="$CFLAGS $flag"
11753 cat >conftest.$ac_ext <<_ACEOF
11754 /* confdefs.h. */
11755 _ACEOF
11756 cat confdefs.h >>conftest.$ac_ext
11757 cat >>conftest.$ac_ext <<_ACEOF
11758 /* end confdefs.h. */
11759
11760 int
11761 main ()
11762 {
11763
11764 ;
11765 return 0;
11766 }
11767 _ACEOF
11768 rm -f conftest.$ac_objext
11769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11770 (eval $ac_compile) 2>conftest.er1
11771 ac_status=$?
11772 grep -v '^ *+' conftest.er1 >conftest.err
11773 rm -f conftest.er1
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
11777 { ac_try='test -z "$ac_c_werror_flag"
11778 || test ! -s conftest.err'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; } &&
11784 { ac_try='test -s conftest.$ac_objext'
11785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 PYTHON_CFLAGS="${PYTHON_CFLAGS} $flag"
11791 else
11792 echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11794
11795 fi
11796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11797 CFLAGS="$saved_CFLAGS"
11798 done
11799 echo "$as_me:$LINENO: result: ${PYTHON_CFLAGS}" >&5
11800 echo "${ECHO_T}${PYTHON_CFLAGS}" >&6
11801 fi
11802 else
11803 # Even if Python support is not compiled in, we need to have these files
11804 # included in order to recognize the GDB command "python".
11805 CONFIG_OBS="$CONFIG_OBS python.o python-value.o"
11806 CONFIG_SRCS="$CONFIG_SRCS python/python.c python/python-value.c"
11807 fi
11808
11809
11810 # ------------------------- #
11811 # Checks for header files. #
11812 # ------------------------- #
11813
11814
11815
11816
11817
11818
11819 ac_header_dirent=no
11820 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11821 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11822 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11823 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11826 else
11827 cat >conftest.$ac_ext <<_ACEOF
11828 /* confdefs.h. */
11829 _ACEOF
11830 cat confdefs.h >>conftest.$ac_ext
11831 cat >>conftest.$ac_ext <<_ACEOF
11832 /* end confdefs.h. */
11833 #include <sys/types.h>
11834 #include <$ac_hdr>
11835
11836 int
11837 main ()
11838 {
11839 if ((DIR *) 0)
11840 return 0;
11841 ;
11842 return 0;
11843 }
11844 _ACEOF
11845 rm -f conftest.$ac_objext
11846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11847 (eval $ac_compile) 2>conftest.er1
11848 ac_status=$?
11849 grep -v '^ *+' conftest.er1 >conftest.err
11850 rm -f conftest.er1
11851 cat conftest.err >&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } &&
11854 { ac_try='test -z "$ac_c_werror_flag"
11855 || test ! -s conftest.err'
11856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857 (eval $ac_try) 2>&5
11858 ac_status=$?
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; } &&
11861 { ac_try='test -s conftest.$ac_objext'
11862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; }; then
11867 eval "$as_ac_Header=yes"
11868 else
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11871
11872 eval "$as_ac_Header=no"
11873 fi
11874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11875 fi
11876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11879 cat >>confdefs.h <<_ACEOF
11880 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11881 _ACEOF
11882
11883 ac_header_dirent=$ac_hdr; break
11884 fi
11885
11886 done
11887 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11888 if test $ac_header_dirent = dirent.h; then
11889 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11890 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11891 if test "${ac_cv_search_opendir+set}" = set; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894 ac_func_search_save_LIBS=$LIBS
11895 ac_cv_search_opendir=no
11896 cat >conftest.$ac_ext <<_ACEOF
11897 /* confdefs.h. */
11898 _ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902
11903 /* Override any gcc2 internal prototype to avoid an error. */
11904 #ifdef __cplusplus
11905 extern "C"
11906 #endif
11907 /* We use char because int might match the return type of a gcc2
11908 builtin and then its argument prototype would still apply. */
11909 char opendir ();
11910 int
11911 main ()
11912 {
11913 opendir ();
11914 ;
11915 return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest.$ac_objext conftest$ac_exeext
11919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11920 (eval $ac_link) 2>conftest.er1
11921 ac_status=$?
11922 grep -v '^ *+' conftest.er1 >conftest.err
11923 rm -f conftest.er1
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } &&
11927 { ac_try='test -z "$ac_c_werror_flag"
11928 || test ! -s conftest.err'
11929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; } &&
11934 { ac_try='test -s conftest$ac_exeext'
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; }; then
11940 ac_cv_search_opendir="none required"
11941 else
11942 echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945 fi
11946 rm -f conftest.err conftest.$ac_objext \
11947 conftest$ac_exeext conftest.$ac_ext
11948 if test "$ac_cv_search_opendir" = no; then
11949 for ac_lib in dir; do
11950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11951 cat >conftest.$ac_ext <<_ACEOF
11952 /* confdefs.h. */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11957
11958 /* Override any gcc2 internal prototype to avoid an error. */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 /* We use char because int might match the return type of a gcc2
11963 builtin and then its argument prototype would still apply. */
11964 char opendir ();
11965 int
11966 main ()
11967 {
11968 opendir ();
11969 ;
11970 return 0;
11971 }
11972 _ACEOF
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11975 (eval $ac_link) 2>conftest.er1
11976 ac_status=$?
11977 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } &&
11982 { ac_try='test -z "$ac_c_werror_flag"
11983 || test ! -s conftest.err'
11984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985 (eval $ac_try) 2>&5
11986 ac_status=$?
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); }; } &&
11989 { ac_try='test -s conftest$ac_exeext'
11990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991 (eval $ac_try) 2>&5
11992 ac_status=$?
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); }; }; then
11995 ac_cv_search_opendir="-l$ac_lib"
11996 break
11997 else
11998 echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12000
12001 fi
12002 rm -f conftest.err conftest.$ac_objext \
12003 conftest$ac_exeext conftest.$ac_ext
12004 done
12005 fi
12006 LIBS=$ac_func_search_save_LIBS
12007 fi
12008 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12009 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12010 if test "$ac_cv_search_opendir" != no; then
12011 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12012
12013 fi
12014
12015 else
12016 echo "$as_me:$LINENO: checking for library containing opendir" >&5
12017 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
12018 if test "${ac_cv_search_opendir+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021 ac_func_search_save_LIBS=$LIBS
12022 ac_cv_search_opendir=no
12023 cat >conftest.$ac_ext <<_ACEOF
12024 /* confdefs.h. */
12025 _ACEOF
12026 cat confdefs.h >>conftest.$ac_ext
12027 cat >>conftest.$ac_ext <<_ACEOF
12028 /* end confdefs.h. */
12029
12030 /* Override any gcc2 internal prototype to avoid an error. */
12031 #ifdef __cplusplus
12032 extern "C"
12033 #endif
12034 /* We use char because int might match the return type of a gcc2
12035 builtin and then its argument prototype would still apply. */
12036 char opendir ();
12037 int
12038 main ()
12039 {
12040 opendir ();
12041 ;
12042 return 0;
12043 }
12044 _ACEOF
12045 rm -f conftest.$ac_objext conftest$ac_exeext
12046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12047 (eval $ac_link) 2>conftest.er1
12048 ac_status=$?
12049 grep -v '^ *+' conftest.er1 >conftest.err
12050 rm -f conftest.er1
12051 cat conftest.err >&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } &&
12054 { ac_try='test -z "$ac_c_werror_flag"
12055 || test ! -s conftest.err'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; } &&
12061 { ac_try='test -s conftest$ac_exeext'
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 ac_cv_search_opendir="none required"
12068 else
12069 echo "$as_me: failed program was:" >&5
12070 sed 's/^/| /' conftest.$ac_ext >&5
12071
12072 fi
12073 rm -f conftest.err conftest.$ac_objext \
12074 conftest$ac_exeext conftest.$ac_ext
12075 if test "$ac_cv_search_opendir" = no; then
12076 for ac_lib in x; do
12077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12078 cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h. */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084
12085 /* Override any gcc2 internal prototype to avoid an error. */
12086 #ifdef __cplusplus
12087 extern "C"
12088 #endif
12089 /* We use char because int might match the return type of a gcc2
12090 builtin and then its argument prototype would still apply. */
12091 char opendir ();
12092 int
12093 main ()
12094 {
12095 opendir ();
12096 ;
12097 return 0;
12098 }
12099 _ACEOF
12100 rm -f conftest.$ac_objext conftest$ac_exeext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12102 (eval $ac_link) 2>conftest.er1
12103 ac_status=$?
12104 grep -v '^ *+' conftest.er1 >conftest.err
12105 rm -f conftest.er1
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } &&
12109 { ac_try='test -z "$ac_c_werror_flag"
12110 || test ! -s conftest.err'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12113 ac_status=$?
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; } &&
12116 { ac_try='test -s conftest$ac_exeext'
12117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12118 (eval $ac_try) 2>&5
12119 ac_status=$?
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); }; }; then
12122 ac_cv_search_opendir="-l$ac_lib"
12123 break
12124 else
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12127
12128 fi
12129 rm -f conftest.err conftest.$ac_objext \
12130 conftest$ac_exeext conftest.$ac_ext
12131 done
12132 fi
12133 LIBS=$ac_func_search_save_LIBS
12134 fi
12135 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12136 echo "${ECHO_T}$ac_cv_search_opendir" >&6
12137 if test "$ac_cv_search_opendir" != no; then
12138 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
12139
12140 fi
12141
12142 fi
12143
12144 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
12145 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
12146 if test "${ac_cv_header_stat_broken+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12148 else
12149 cat >conftest.$ac_ext <<_ACEOF
12150 /* confdefs.h. */
12151 _ACEOF
12152 cat confdefs.h >>conftest.$ac_ext
12153 cat >>conftest.$ac_ext <<_ACEOF
12154 /* end confdefs.h. */
12155 #include <sys/types.h>
12156 #include <sys/stat.h>
12157
12158 #if defined(S_ISBLK) && defined(S_IFDIR)
12159 # if S_ISBLK (S_IFDIR)
12160 You lose.
12161 # endif
12162 #endif
12163
12164 #if defined(S_ISBLK) && defined(S_IFCHR)
12165 # if S_ISBLK (S_IFCHR)
12166 You lose.
12167 # endif
12168 #endif
12169
12170 #if defined(S_ISLNK) && defined(S_IFREG)
12171 # if S_ISLNK (S_IFREG)
12172 You lose.
12173 # endif
12174 #endif
12175
12176 #if defined(S_ISSOCK) && defined(S_IFREG)
12177 # if S_ISSOCK (S_IFREG)
12178 You lose.
12179 # endif
12180 #endif
12181
12182 _ACEOF
12183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12184 $EGREP "You lose" >/dev/null 2>&1; then
12185 ac_cv_header_stat_broken=yes
12186 else
12187 ac_cv_header_stat_broken=no
12188 fi
12189 rm -f conftest*
12190
12191 fi
12192 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12193 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12194 if test $ac_cv_header_stat_broken = yes; then
12195
12196 cat >>confdefs.h <<\_ACEOF
12197 #define STAT_MACROS_BROKEN 1
12198 _ACEOF
12199
12200 fi
12201
12202 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12203 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12204 if test "${ac_cv_header_stdc+set}" = set; then
12205 echo $ECHO_N "(cached) $ECHO_C" >&6
12206 else
12207 cat >conftest.$ac_ext <<_ACEOF
12208 /* confdefs.h. */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12213 #include <stdlib.h>
12214 #include <stdarg.h>
12215 #include <string.h>
12216 #include <float.h>
12217
12218 int
12219 main ()
12220 {
12221
12222 ;
12223 return 0;
12224 }
12225 _ACEOF
12226 rm -f conftest.$ac_objext
12227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12228 (eval $ac_compile) 2>conftest.er1
12229 ac_status=$?
12230 grep -v '^ *+' conftest.er1 >conftest.err
12231 rm -f conftest.er1
12232 cat conftest.err >&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } &&
12235 { ac_try='test -z "$ac_c_werror_flag"
12236 || test ! -s conftest.err'
12237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12238 (eval $ac_try) 2>&5
12239 ac_status=$?
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); }; } &&
12242 { ac_try='test -s conftest.$ac_objext'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; }; then
12248 ac_cv_header_stdc=yes
12249 else
12250 echo "$as_me: failed program was:" >&5
12251 sed 's/^/| /' conftest.$ac_ext >&5
12252
12253 ac_cv_header_stdc=no
12254 fi
12255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12256
12257 if test $ac_cv_header_stdc = yes; then
12258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12259 cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h. */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12265 #include <string.h>
12266
12267 _ACEOF
12268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12269 $EGREP "memchr" >/dev/null 2>&1; then
12270 :
12271 else
12272 ac_cv_header_stdc=no
12273 fi
12274 rm -f conftest*
12275
12276 fi
12277
12278 if test $ac_cv_header_stdc = yes; then
12279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12280 cat >conftest.$ac_ext <<_ACEOF
12281 /* confdefs.h. */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 #include <stdlib.h>
12287
12288 _ACEOF
12289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12290 $EGREP "free" >/dev/null 2>&1; then
12291 :
12292 else
12293 ac_cv_header_stdc=no
12294 fi
12295 rm -f conftest*
12296
12297 fi
12298
12299 if test $ac_cv_header_stdc = yes; then
12300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12301 if test "$cross_compiling" = yes; then
12302 :
12303 else
12304 cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h. */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 #include <ctype.h>
12311 #if ((' ' & 0x0FF) == 0x020)
12312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12314 #else
12315 # define ISLOWER(c) \
12316 (('a' <= (c) && (c) <= 'i') \
12317 || ('j' <= (c) && (c) <= 'r') \
12318 || ('s' <= (c) && (c) <= 'z'))
12319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12320 #endif
12321
12322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12323 int
12324 main ()
12325 {
12326 int i;
12327 for (i = 0; i < 256; i++)
12328 if (XOR (islower (i), ISLOWER (i))
12329 || toupper (i) != TOUPPER (i))
12330 exit(2);
12331 exit (0);
12332 }
12333 _ACEOF
12334 rm -f conftest$ac_exeext
12335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12336 (eval $ac_link) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12342 ac_status=$?
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 :
12346 else
12347 echo "$as_me: program exited with status $ac_status" >&5
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12350
12351 ( exit $ac_status )
12352 ac_cv_header_stdc=no
12353 fi
12354 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12355 fi
12356 fi
12357 fi
12358 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12359 echo "${ECHO_T}$ac_cv_header_stdc" >&6
12360 if test $ac_cv_header_stdc = yes; then
12361
12362 cat >>confdefs.h <<\_ACEOF
12363 #define STDC_HEADERS 1
12364 _ACEOF
12365
12366 fi
12367
12368 # elf_hp.h is for HP/UX 64-bit shared library support.
12369 # FIXME: kettenis/20030102: In most cases we include these (ctype.h, time.h)
12370 # unconditionally, so what's the point in checking these?
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408 for ac_header in nlist.h machine/reg.h poll.h sys/poll.h proc_service.h \
12409 thread_db.h gnu/libc-version.h signal.h stddef.h \
12410 stdlib.h string.h memory.h strings.h sys/fault.h \
12411 sys/file.h sys/filio.h sys/ioctl.h sys/param.h \
12412 sys/resource.h sys/procfs.h sys/ptrace.h ptrace.h \
12413 sys/reg.h sys/debugreg.h sys/select.h sys/syscall.h \
12414 sys/types.h sys/wait.h wait.h termios.h termio.h \
12415 sgtty.h unistd.h elf_hp.h ctype.h time.h locale.h
12416 do
12417 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12419 echo "$as_me:$LINENO: checking for $ac_header" >&5
12420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 fi
12424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12426 else
12427 # Is the header compilable?
12428 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12430 cat >conftest.$ac_ext <<_ACEOF
12431 /* confdefs.h. */
12432 _ACEOF
12433 cat confdefs.h >>conftest.$ac_ext
12434 cat >>conftest.$ac_ext <<_ACEOF
12435 /* end confdefs.h. */
12436 $ac_includes_default
12437 #include <$ac_header>
12438 _ACEOF
12439 rm -f conftest.$ac_objext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12441 (eval $ac_compile) 2>conftest.er1
12442 ac_status=$?
12443 grep -v '^ *+' conftest.er1 >conftest.err
12444 rm -f conftest.er1
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag"
12449 || test ! -s conftest.err'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12452 ac_status=$?
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; } &&
12455 { ac_try='test -s conftest.$ac_objext'
12456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12457 (eval $ac_try) 2>&5
12458 ac_status=$?
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); }; }; then
12461 ac_header_compiler=yes
12462 else
12463 echo "$as_me: failed program was:" >&5
12464 sed 's/^/| /' conftest.$ac_ext >&5
12465
12466 ac_header_compiler=no
12467 fi
12468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12469 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12470 echo "${ECHO_T}$ac_header_compiler" >&6
12471
12472 # Is the header present?
12473 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12474 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12475 cat >conftest.$ac_ext <<_ACEOF
12476 /* confdefs.h. */
12477 _ACEOF
12478 cat confdefs.h >>conftest.$ac_ext
12479 cat >>conftest.$ac_ext <<_ACEOF
12480 /* end confdefs.h. */
12481 #include <$ac_header>
12482 _ACEOF
12483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12485 ac_status=$?
12486 grep -v '^ *+' conftest.er1 >conftest.err
12487 rm -f conftest.er1
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } >/dev/null; then
12491 if test -s conftest.err; then
12492 ac_cpp_err=$ac_c_preproc_warn_flag
12493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12494 else
12495 ac_cpp_err=
12496 fi
12497 else
12498 ac_cpp_err=yes
12499 fi
12500 if test -z "$ac_cpp_err"; then
12501 ac_header_preproc=yes
12502 else
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12505
12506 ac_header_preproc=no
12507 fi
12508 rm -f conftest.err conftest.$ac_ext
12509 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12510 echo "${ECHO_T}$ac_header_preproc" >&6
12511
12512 # So? What about this header?
12513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12514 yes:no: )
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12516 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12519 ac_header_preproc=yes
12520 ;;
12521 no:yes:* )
12522 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12523 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12524 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12525 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12526 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12527 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12528 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12529 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12532 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12533 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12534 (
12535 cat <<\_ASBOX
12536 ## ------------------------------------------ ##
12537 ## Report this to the AC_PACKAGE_NAME lists. ##
12538 ## ------------------------------------------ ##
12539 _ASBOX
12540 ) |
12541 sed "s/^/$as_me: WARNING: /" >&2
12542 ;;
12543 esac
12544 echo "$as_me:$LINENO: checking for $ac_header" >&5
12545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12547 echo $ECHO_N "(cached) $ECHO_C" >&6
12548 else
12549 eval "$as_ac_Header=\$ac_header_preproc"
12550 fi
12551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12552 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12553
12554 fi
12555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12556 cat >>confdefs.h <<_ACEOF
12557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12558 _ACEOF
12559
12560 fi
12561
12562 done
12563
12564
12565 for ac_header in link.h
12566 do
12567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12568 echo "$as_me:$LINENO: checking for $ac_header" >&5
12569 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572 else
12573 cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h. */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579 #if HAVE_SYS_TYPES_H
12580 # include <sys/types.h>
12581 #endif
12582 #if HAVE_NLIST_H
12583 # include <nlist.h>
12584 #endif
12585
12586
12587 #include <$ac_header>
12588 _ACEOF
12589 rm -f conftest.$ac_objext
12590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12591 (eval $ac_compile) 2>conftest.er1
12592 ac_status=$?
12593 grep -v '^ *+' conftest.er1 >conftest.err
12594 rm -f conftest.er1
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } &&
12598 { ac_try='test -z "$ac_c_werror_flag"
12599 || test ! -s conftest.err'
12600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12601 (eval $ac_try) 2>&5
12602 ac_status=$?
12603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12604 (exit $ac_status); }; } &&
12605 { ac_try='test -s conftest.$ac_objext'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; }; then
12611 eval "$as_ac_Header=yes"
12612 else
12613 echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12615
12616 eval "$as_ac_Header=no"
12617 fi
12618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12619 fi
12620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12623 cat >>confdefs.h <<_ACEOF
12624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12625 _ACEOF
12626
12627 fi
12628
12629 done
12630
12631
12632 for ac_header in sys/proc.h
12633 do
12634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12635 echo "$as_me:$LINENO: checking for $ac_header" >&5
12636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12639 else
12640 cat >conftest.$ac_ext <<_ACEOF
12641 /* confdefs.h. */
12642 _ACEOF
12643 cat confdefs.h >>conftest.$ac_ext
12644 cat >>conftest.$ac_ext <<_ACEOF
12645 /* end confdefs.h. */
12646 #if HAVE_SYS_PARAM_H
12647 # include <sys/param.h>
12648 #endif
12649
12650
12651 #include <$ac_header>
12652 _ACEOF
12653 rm -f conftest.$ac_objext
12654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12655 (eval $ac_compile) 2>conftest.er1
12656 ac_status=$?
12657 grep -v '^ *+' conftest.er1 >conftest.err
12658 rm -f conftest.er1
12659 cat conftest.err >&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } &&
12662 { ac_try='test -z "$ac_c_werror_flag"
12663 || test ! -s conftest.err'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; } &&
12669 { ac_try='test -s conftest.$ac_objext'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 eval "$as_ac_Header=yes"
12676 else
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12679
12680 eval "$as_ac_Header=no"
12681 fi
12682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12683 fi
12684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12686 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12687 cat >>confdefs.h <<_ACEOF
12688 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12689 _ACEOF
12690
12691 fi
12692
12693 done
12694
12695
12696 for ac_header in sys/user.h
12697 do
12698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12699 echo "$as_me:$LINENO: checking for $ac_header" >&5
12700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12701 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12702 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 else
12704 cat >conftest.$ac_ext <<_ACEOF
12705 /* confdefs.h. */
12706 _ACEOF
12707 cat confdefs.h >>conftest.$ac_ext
12708 cat >>conftest.$ac_ext <<_ACEOF
12709 /* end confdefs.h. */
12710 #if HAVE_SYS_PARAM_H
12711 # include <sys/param.h>
12712 #endif
12713
12714
12715 #include <$ac_header>
12716 _ACEOF
12717 rm -f conftest.$ac_objext
12718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12719 (eval $ac_compile) 2>conftest.er1
12720 ac_status=$?
12721 grep -v '^ *+' conftest.er1 >conftest.err
12722 rm -f conftest.er1
12723 cat conftest.err >&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); } &&
12726 { ac_try='test -z "$ac_c_werror_flag"
12727 || test ! -s conftest.err'
12728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12729 (eval $ac_try) 2>&5
12730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); }; } &&
12733 { ac_try='test -s conftest.$ac_objext'
12734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12735 (eval $ac_try) 2>&5
12736 ac_status=$?
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); }; }; then
12739 eval "$as_ac_Header=yes"
12740 else
12741 echo "$as_me: failed program was:" >&5
12742 sed 's/^/| /' conftest.$ac_ext >&5
12743
12744 eval "$as_ac_Header=no"
12745 fi
12746 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12747 fi
12748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12751 cat >>confdefs.h <<_ACEOF
12752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12753 _ACEOF
12754
12755 fi
12756
12757 done
12758
12759
12760 # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
12761 # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
12762 # think that we don't have <curses.h> if we're using GCC.
12763 case $host_os in
12764 solaris2.[789])
12765 if test "$GCC" = yes; then
12766
12767 cat >>confdefs.h <<\_ACEOF
12768 #define _MSE_INT_H 1
12769 _ACEOF
12770
12771 fi ;;
12772 esac
12773
12774
12775
12776
12777
12778 for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h ncurses/term.h
12779 do
12780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12782 echo "$as_me:$LINENO: checking for $ac_header" >&5
12783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12784 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12786 fi
12787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12789 else
12790 # Is the header compilable?
12791 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12792 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12793 cat >conftest.$ac_ext <<_ACEOF
12794 /* confdefs.h. */
12795 _ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 $ac_includes_default
12800 #include <$ac_header>
12801 _ACEOF
12802 rm -f conftest.$ac_objext
12803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12804 (eval $ac_compile) 2>conftest.er1
12805 ac_status=$?
12806 grep -v '^ *+' conftest.er1 >conftest.err
12807 rm -f conftest.er1
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } &&
12811 { ac_try='test -z "$ac_c_werror_flag"
12812 || test ! -s conftest.err'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12815 ac_status=$?
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; } &&
12818 { ac_try='test -s conftest.$ac_objext'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12821 ac_status=$?
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; }; then
12824 ac_header_compiler=yes
12825 else
12826 echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12828
12829 ac_header_compiler=no
12830 fi
12831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12832 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12833 echo "${ECHO_T}$ac_header_compiler" >&6
12834
12835 # Is the header present?
12836 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12837 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12838 cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h. */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844 #include <$ac_header>
12845 _ACEOF
12846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12848 ac_status=$?
12849 grep -v '^ *+' conftest.er1 >conftest.err
12850 rm -f conftest.er1
12851 cat conftest.err >&5
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } >/dev/null; then
12854 if test -s conftest.err; then
12855 ac_cpp_err=$ac_c_preproc_warn_flag
12856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12857 else
12858 ac_cpp_err=
12859 fi
12860 else
12861 ac_cpp_err=yes
12862 fi
12863 if test -z "$ac_cpp_err"; then
12864 ac_header_preproc=yes
12865 else
12866 echo "$as_me: failed program was:" >&5
12867 sed 's/^/| /' conftest.$ac_ext >&5
12868
12869 ac_header_preproc=no
12870 fi
12871 rm -f conftest.err conftest.$ac_ext
12872 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12873 echo "${ECHO_T}$ac_header_preproc" >&6
12874
12875 # So? What about this header?
12876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12877 yes:no: )
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12882 ac_header_preproc=yes
12883 ;;
12884 no:yes:* )
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12897 (
12898 cat <<\_ASBOX
12899 ## ------------------------------------------ ##
12900 ## Report this to the AC_PACKAGE_NAME lists. ##
12901 ## ------------------------------------------ ##
12902 _ASBOX
12903 ) |
12904 sed "s/^/$as_me: WARNING: /" >&2
12905 ;;
12906 esac
12907 echo "$as_me:$LINENO: checking for $ac_header" >&5
12908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12910 echo $ECHO_N "(cached) $ECHO_C" >&6
12911 else
12912 eval "$as_ac_Header=\$ac_header_preproc"
12913 fi
12914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12916
12917 fi
12918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12919 cat >>confdefs.h <<_ACEOF
12920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12921 _ACEOF
12922
12923 fi
12924
12925 done
12926
12927
12928 for ac_header in term.h
12929 do
12930 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12931 echo "$as_me:$LINENO: checking for $ac_header" >&5
12932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12934 echo $ECHO_N "(cached) $ECHO_C" >&6
12935 else
12936 cat >conftest.$ac_ext <<_ACEOF
12937 /* confdefs.h. */
12938 _ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12942 #if HAVE_CURSES_H
12943 # include <curses.h>
12944 #endif
12945
12946
12947 #include <$ac_header>
12948 _ACEOF
12949 rm -f conftest.$ac_objext
12950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12951 (eval $ac_compile) 2>conftest.er1
12952 ac_status=$?
12953 grep -v '^ *+' conftest.er1 >conftest.err
12954 rm -f conftest.er1
12955 cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -z "$ac_c_werror_flag"
12959 || test ! -s conftest.err'
12960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12961 (eval $ac_try) 2>&5
12962 ac_status=$?
12963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12964 (exit $ac_status); }; } &&
12965 { ac_try='test -s conftest.$ac_objext'
12966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12967 (eval $ac_try) 2>&5
12968 ac_status=$?
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }; }; then
12971 eval "$as_ac_Header=yes"
12972 else
12973 echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12975
12976 eval "$as_ac_Header=no"
12977 fi
12978 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12979 fi
12980 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12981 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12982 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12983 cat >>confdefs.h <<_ACEOF
12984 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12985 _ACEOF
12986
12987 fi
12988
12989 done
12990
12991
12992 # ------------------------- #
12993 # Checks for declarations. #
12994 # ------------------------- #
12995
12996 echo "$as_me:$LINENO: checking whether free is declared" >&5
12997 echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
12998 if test "${ac_cv_have_decl_free+set}" = set; then
12999 echo $ECHO_N "(cached) $ECHO_C" >&6
13000 else
13001 cat >conftest.$ac_ext <<_ACEOF
13002 /* confdefs.h. */
13003 _ACEOF
13004 cat confdefs.h >>conftest.$ac_ext
13005 cat >>conftest.$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 $ac_includes_default
13008 int
13009 main ()
13010 {
13011 #ifndef free
13012 char *p = (char *) free;
13013 #endif
13014
13015 ;
13016 return 0;
13017 }
13018 _ACEOF
13019 rm -f conftest.$ac_objext
13020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13021 (eval $ac_compile) 2>conftest.er1
13022 ac_status=$?
13023 grep -v '^ *+' conftest.er1 >conftest.err
13024 rm -f conftest.er1
13025 cat conftest.err >&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } &&
13028 { ac_try='test -z "$ac_c_werror_flag"
13029 || test ! -s conftest.err'
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; } &&
13035 { ac_try='test -s conftest.$ac_objext'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; }; then
13041 ac_cv_have_decl_free=yes
13042 else
13043 echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13045
13046 ac_cv_have_decl_free=no
13047 fi
13048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13049 fi
13050 echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
13051 echo "${ECHO_T}$ac_cv_have_decl_free" >&6
13052 if test $ac_cv_have_decl_free = yes; then
13053
13054 cat >>confdefs.h <<_ACEOF
13055 #define HAVE_DECL_FREE 1
13056 _ACEOF
13057
13058
13059 else
13060 cat >>confdefs.h <<_ACEOF
13061 #define HAVE_DECL_FREE 0
13062 _ACEOF
13063
13064
13065 fi
13066 echo "$as_me:$LINENO: checking whether malloc is declared" >&5
13067 echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
13068 if test "${ac_cv_have_decl_malloc+set}" = set; then
13069 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 else
13071 cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h. */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077 $ac_includes_default
13078 int
13079 main ()
13080 {
13081 #ifndef malloc
13082 char *p = (char *) malloc;
13083 #endif
13084
13085 ;
13086 return 0;
13087 }
13088 _ACEOF
13089 rm -f conftest.$ac_objext
13090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13091 (eval $ac_compile) 2>conftest.er1
13092 ac_status=$?
13093 grep -v '^ *+' conftest.er1 >conftest.err
13094 rm -f conftest.er1
13095 cat conftest.err >&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } &&
13098 { ac_try='test -z "$ac_c_werror_flag"
13099 || test ! -s conftest.err'
13100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13101 (eval $ac_try) 2>&5
13102 ac_status=$?
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); }; } &&
13105 { ac_try='test -s conftest.$ac_objext'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13108 ac_status=$?
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; }; then
13111 ac_cv_have_decl_malloc=yes
13112 else
13113 echo "$as_me: failed program was:" >&5
13114 sed 's/^/| /' conftest.$ac_ext >&5
13115
13116 ac_cv_have_decl_malloc=no
13117 fi
13118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13119 fi
13120 echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
13121 echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
13122 if test $ac_cv_have_decl_malloc = yes; then
13123
13124 cat >>confdefs.h <<_ACEOF
13125 #define HAVE_DECL_MALLOC 1
13126 _ACEOF
13127
13128
13129 else
13130 cat >>confdefs.h <<_ACEOF
13131 #define HAVE_DECL_MALLOC 0
13132 _ACEOF
13133
13134
13135 fi
13136 echo "$as_me:$LINENO: checking whether realloc is declared" >&5
13137 echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
13138 if test "${ac_cv_have_decl_realloc+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141 cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h. */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 $ac_includes_default
13148 int
13149 main ()
13150 {
13151 #ifndef realloc
13152 char *p = (char *) realloc;
13153 #endif
13154
13155 ;
13156 return 0;
13157 }
13158 _ACEOF
13159 rm -f conftest.$ac_objext
13160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13161 (eval $ac_compile) 2>conftest.er1
13162 ac_status=$?
13163 grep -v '^ *+' conftest.er1 >conftest.err
13164 rm -f conftest.er1
13165 cat conftest.err >&5
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); } &&
13168 { ac_try='test -z "$ac_c_werror_flag"
13169 || test ! -s conftest.err'
13170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13171 (eval $ac_try) 2>&5
13172 ac_status=$?
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; } &&
13175 { ac_try='test -s conftest.$ac_objext'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13178 ac_status=$?
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; }; then
13181 ac_cv_have_decl_realloc=yes
13182 else
13183 echo "$as_me: failed program was:" >&5
13184 sed 's/^/| /' conftest.$ac_ext >&5
13185
13186 ac_cv_have_decl_realloc=no
13187 fi
13188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13189 fi
13190 echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
13191 echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
13192 if test $ac_cv_have_decl_realloc = yes; then
13193
13194 cat >>confdefs.h <<_ACEOF
13195 #define HAVE_DECL_REALLOC 1
13196 _ACEOF
13197
13198
13199 else
13200 cat >>confdefs.h <<_ACEOF
13201 #define HAVE_DECL_REALLOC 0
13202 _ACEOF
13203
13204
13205 fi
13206 echo "$as_me:$LINENO: checking whether strerror is declared" >&5
13207 echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
13208 if test "${ac_cv_have_decl_strerror+set}" = set; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13210 else
13211 cat >conftest.$ac_ext <<_ACEOF
13212 /* confdefs.h. */
13213 _ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h. */
13217 $ac_includes_default
13218 int
13219 main ()
13220 {
13221 #ifndef strerror
13222 char *p = (char *) strerror;
13223 #endif
13224
13225 ;
13226 return 0;
13227 }
13228 _ACEOF
13229 rm -f conftest.$ac_objext
13230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13231 (eval $ac_compile) 2>conftest.er1
13232 ac_status=$?
13233 grep -v '^ *+' conftest.er1 >conftest.err
13234 rm -f conftest.er1
13235 cat conftest.err >&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } &&
13238 { ac_try='test -z "$ac_c_werror_flag"
13239 || test ! -s conftest.err'
13240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13241 (eval $ac_try) 2>&5
13242 ac_status=$?
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); }; } &&
13245 { ac_try='test -s conftest.$ac_objext'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13248 ac_status=$?
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13251 ac_cv_have_decl_strerror=yes
13252 else
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13255
13256 ac_cv_have_decl_strerror=no
13257 fi
13258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13259 fi
13260 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
13261 echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
13262 if test $ac_cv_have_decl_strerror = yes; then
13263
13264 cat >>confdefs.h <<_ACEOF
13265 #define HAVE_DECL_STRERROR 1
13266 _ACEOF
13267
13268
13269 else
13270 cat >>confdefs.h <<_ACEOF
13271 #define HAVE_DECL_STRERROR 0
13272 _ACEOF
13273
13274
13275 fi
13276 echo "$as_me:$LINENO: checking whether strstr is declared" >&5
13277 echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
13278 if test "${ac_cv_have_decl_strstr+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 else
13281 cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h. */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 $ac_includes_default
13288 int
13289 main ()
13290 {
13291 #ifndef strstr
13292 char *p = (char *) strstr;
13293 #endif
13294
13295 ;
13296 return 0;
13297 }
13298 _ACEOF
13299 rm -f conftest.$ac_objext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13301 (eval $ac_compile) 2>conftest.er1
13302 ac_status=$?
13303 grep -v '^ *+' conftest.er1 >conftest.err
13304 rm -f conftest.er1
13305 cat conftest.err >&5
13306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307 (exit $ac_status); } &&
13308 { ac_try='test -z "$ac_c_werror_flag"
13309 || test ! -s conftest.err'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13312 ac_status=$?
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; } &&
13315 { ac_try='test -s conftest.$ac_objext'
13316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317 (eval $ac_try) 2>&5
13318 ac_status=$?
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); }; }; then
13321 ac_cv_have_decl_strstr=yes
13322 else
13323 echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326 ac_cv_have_decl_strstr=no
13327 fi
13328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13329 fi
13330 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
13331 echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
13332 if test $ac_cv_have_decl_strstr = yes; then
13333
13334 cat >>confdefs.h <<_ACEOF
13335 #define HAVE_DECL_STRSTR 1
13336 _ACEOF
13337
13338
13339 else
13340 cat >>confdefs.h <<_ACEOF
13341 #define HAVE_DECL_STRSTR 0
13342 _ACEOF
13343
13344
13345 fi
13346 echo "$as_me:$LINENO: checking whether getopt is declared" >&5
13347 echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
13348 if test "${ac_cv_have_decl_getopt+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 else
13351 cat >conftest.$ac_ext <<_ACEOF
13352 /* confdefs.h. */
13353 _ACEOF
13354 cat confdefs.h >>conftest.$ac_ext
13355 cat >>conftest.$ac_ext <<_ACEOF
13356 /* end confdefs.h. */
13357 $ac_includes_default
13358 int
13359 main ()
13360 {
13361 #ifndef getopt
13362 char *p = (char *) getopt;
13363 #endif
13364
13365 ;
13366 return 0;
13367 }
13368 _ACEOF
13369 rm -f conftest.$ac_objext
13370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13371 (eval $ac_compile) 2>conftest.er1
13372 ac_status=$?
13373 grep -v '^ *+' conftest.er1 >conftest.err
13374 rm -f conftest.er1
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } &&
13378 { ac_try='test -z "$ac_c_werror_flag"
13379 || test ! -s conftest.err'
13380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13381 (eval $ac_try) 2>&5
13382 ac_status=$?
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; } &&
13385 { ac_try='test -s conftest.$ac_objext'
13386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13387 (eval $ac_try) 2>&5
13388 ac_status=$?
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); }; }; then
13391 ac_cv_have_decl_getopt=yes
13392 else
13393 echo "$as_me: failed program was:" >&5
13394 sed 's/^/| /' conftest.$ac_ext >&5
13395
13396 ac_cv_have_decl_getopt=no
13397 fi
13398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13399 fi
13400 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
13401 echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
13402 if test $ac_cv_have_decl_getopt = yes; then
13403
13404 cat >>confdefs.h <<_ACEOF
13405 #define HAVE_DECL_GETOPT 1
13406 _ACEOF
13407
13408
13409 else
13410 cat >>confdefs.h <<_ACEOF
13411 #define HAVE_DECL_GETOPT 0
13412 _ACEOF
13413
13414
13415 fi
13416 echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
13417 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
13418 if test "${ac_cv_have_decl_snprintf+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 else
13421 cat >conftest.$ac_ext <<_ACEOF
13422 /* confdefs.h. */
13423 _ACEOF
13424 cat confdefs.h >>conftest.$ac_ext
13425 cat >>conftest.$ac_ext <<_ACEOF
13426 /* end confdefs.h. */
13427 $ac_includes_default
13428 int
13429 main ()
13430 {
13431 #ifndef snprintf
13432 char *p = (char *) snprintf;
13433 #endif
13434
13435 ;
13436 return 0;
13437 }
13438 _ACEOF
13439 rm -f conftest.$ac_objext
13440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13441 (eval $ac_compile) 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } &&
13448 { ac_try='test -z "$ac_c_werror_flag"
13449 || test ! -s conftest.err'
13450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13451 (eval $ac_try) 2>&5
13452 ac_status=$?
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); }; } &&
13455 { ac_try='test -s conftest.$ac_objext'
13456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457 (eval $ac_try) 2>&5
13458 ac_status=$?
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); }; }; then
13461 ac_cv_have_decl_snprintf=yes
13462 else
13463 echo "$as_me: failed program was:" >&5
13464 sed 's/^/| /' conftest.$ac_ext >&5
13465
13466 ac_cv_have_decl_snprintf=no
13467 fi
13468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13469 fi
13470 echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
13471 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
13472 if test $ac_cv_have_decl_snprintf = yes; then
13473
13474 cat >>confdefs.h <<_ACEOF
13475 #define HAVE_DECL_SNPRINTF 1
13476 _ACEOF
13477
13478
13479 else
13480 cat >>confdefs.h <<_ACEOF
13481 #define HAVE_DECL_SNPRINTF 0
13482 _ACEOF
13483
13484
13485 fi
13486 echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
13487 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
13488 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 else
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h. */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 $ac_includes_default
13498 int
13499 main ()
13500 {
13501 #ifndef vsnprintf
13502 char *p = (char *) vsnprintf;
13503 #endif
13504
13505 ;
13506 return 0;
13507 }
13508 _ACEOF
13509 rm -f conftest.$ac_objext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13511 (eval $ac_compile) 2>conftest.er1
13512 ac_status=$?
13513 grep -v '^ *+' conftest.er1 >conftest.err
13514 rm -f conftest.er1
13515 cat conftest.err >&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } &&
13518 { ac_try='test -z "$ac_c_werror_flag"
13519 || test ! -s conftest.err'
13520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13521 (eval $ac_try) 2>&5
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); }; } &&
13525 { ac_try='test -s conftest.$ac_objext'
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_cv_have_decl_vsnprintf=yes
13532 else
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 ac_cv_have_decl_vsnprintf=no
13537 fi
13538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13539 fi
13540 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
13541 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
13542 if test $ac_cv_have_decl_vsnprintf = yes; then
13543
13544 cat >>confdefs.h <<_ACEOF
13545 #define HAVE_DECL_VSNPRINTF 1
13546 _ACEOF
13547
13548
13549 else
13550 cat >>confdefs.h <<_ACEOF
13551 #define HAVE_DECL_VSNPRINTF 0
13552 _ACEOF
13553
13554
13555 fi
13556
13557
13558
13559 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13560 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13561 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564 cat >conftest.$ac_ext <<_ACEOF
13565 /* confdefs.h. */
13566 _ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h. */
13570 #include <locale.h>
13571 int
13572 main ()
13573 {
13574 return LC_MESSAGES
13575 ;
13576 return 0;
13577 }
13578 _ACEOF
13579 rm -f conftest.$ac_objext conftest$ac_exeext
13580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13581 (eval $ac_link) 2>conftest.er1
13582 ac_status=$?
13583 grep -v '^ *+' conftest.er1 >conftest.err
13584 rm -f conftest.er1
13585 cat conftest.err >&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } &&
13588 { ac_try='test -z "$ac_c_werror_flag"
13589 || test ! -s conftest.err'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; } &&
13595 { ac_try='test -s conftest$ac_exeext'
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13598 ac_status=$?
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; }; then
13601 am_cv_val_LC_MESSAGES=yes
13602 else
13603 echo "$as_me: failed program was:" >&5
13604 sed 's/^/| /' conftest.$ac_ext >&5
13605
13606 am_cv_val_LC_MESSAGES=no
13607 fi
13608 rm -f conftest.err conftest.$ac_objext \
13609 conftest$ac_exeext conftest.$ac_ext
13610 fi
13611 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13612 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13613 if test $am_cv_val_LC_MESSAGES = yes; then
13614
13615 cat >>confdefs.h <<\_ACEOF
13616 #define HAVE_LC_MESSAGES 1
13617 _ACEOF
13618
13619 fi
13620
13621
13622 # ----------------------- #
13623 # Checks for structures. #
13624 # ----------------------- #
13625
13626 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
13627 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
13628 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13630 else
13631 cat >conftest.$ac_ext <<_ACEOF
13632 /* confdefs.h. */
13633 _ACEOF
13634 cat confdefs.h >>conftest.$ac_ext
13635 cat >>conftest.$ac_ext <<_ACEOF
13636 /* end confdefs.h. */
13637 $ac_includes_default
13638 int
13639 main ()
13640 {
13641 static struct stat ac_aggr;
13642 if (ac_aggr.st_blocks)
13643 return 0;
13644 ;
13645 return 0;
13646 }
13647 _ACEOF
13648 rm -f conftest.$ac_objext
13649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13650 (eval $ac_compile) 2>conftest.er1
13651 ac_status=$?
13652 grep -v '^ *+' conftest.er1 >conftest.err
13653 rm -f conftest.er1
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } &&
13657 { ac_try='test -z "$ac_c_werror_flag"
13658 || test ! -s conftest.err'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; } &&
13664 { ac_try='test -s conftest.$ac_objext'
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; }; then
13670 ac_cv_member_struct_stat_st_blocks=yes
13671 else
13672 echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13674
13675 cat >conftest.$ac_ext <<_ACEOF
13676 /* confdefs.h. */
13677 _ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13681 $ac_includes_default
13682 int
13683 main ()
13684 {
13685 static struct stat ac_aggr;
13686 if (sizeof ac_aggr.st_blocks)
13687 return 0;
13688 ;
13689 return 0;
13690 }
13691 _ACEOF
13692 rm -f conftest.$ac_objext
13693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13694 (eval $ac_compile) 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -z "$ac_c_werror_flag"
13702 || test ! -s conftest.err'
13703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13704 (eval $ac_try) 2>&5
13705 ac_status=$?
13706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707 (exit $ac_status); }; } &&
13708 { ac_try='test -s conftest.$ac_objext'
13709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13710 (eval $ac_try) 2>&5
13711 ac_status=$?
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; }; then
13714 ac_cv_member_struct_stat_st_blocks=yes
13715 else
13716 echo "$as_me: failed program was:" >&5
13717 sed 's/^/| /' conftest.$ac_ext >&5
13718
13719 ac_cv_member_struct_stat_st_blocks=no
13720 fi
13721 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13722 fi
13723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13724 fi
13725 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
13726 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
13727 if test $ac_cv_member_struct_stat_st_blocks = yes; then
13728
13729 cat >>confdefs.h <<_ACEOF
13730 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
13731 _ACEOF
13732
13733
13734 fi
13735 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
13736 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
13737 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 else
13740 cat >conftest.$ac_ext <<_ACEOF
13741 /* confdefs.h. */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 $ac_includes_default
13747 int
13748 main ()
13749 {
13750 static struct stat ac_aggr;
13751 if (ac_aggr.st_blksize)
13752 return 0;
13753 ;
13754 return 0;
13755 }
13756 _ACEOF
13757 rm -f conftest.$ac_objext
13758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13759 (eval $ac_compile) 2>conftest.er1
13760 ac_status=$?
13761 grep -v '^ *+' conftest.er1 >conftest.err
13762 rm -f conftest.er1
13763 cat conftest.err >&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } &&
13766 { ac_try='test -z "$ac_c_werror_flag"
13767 || test ! -s conftest.err'
13768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769 (eval $ac_try) 2>&5
13770 ac_status=$?
13771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772 (exit $ac_status); }; } &&
13773 { ac_try='test -s conftest.$ac_objext'
13774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775 (eval $ac_try) 2>&5
13776 ac_status=$?
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); }; }; then
13779 ac_cv_member_struct_stat_st_blksize=yes
13780 else
13781 echo "$as_me: failed program was:" >&5
13782 sed 's/^/| /' conftest.$ac_ext >&5
13783
13784 cat >conftest.$ac_ext <<_ACEOF
13785 /* confdefs.h. */
13786 _ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 $ac_includes_default
13791 int
13792 main ()
13793 {
13794 static struct stat ac_aggr;
13795 if (sizeof ac_aggr.st_blksize)
13796 return 0;
13797 ;
13798 return 0;
13799 }
13800 _ACEOF
13801 rm -f conftest.$ac_objext
13802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13803 (eval $ac_compile) 2>conftest.er1
13804 ac_status=$?
13805 grep -v '^ *+' conftest.er1 >conftest.err
13806 rm -f conftest.er1
13807 cat conftest.err >&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); } &&
13810 { ac_try='test -z "$ac_c_werror_flag"
13811 || test ! -s conftest.err'
13812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13813 (eval $ac_try) 2>&5
13814 ac_status=$?
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); }; } &&
13817 { ac_try='test -s conftest.$ac_objext'
13818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13819 (eval $ac_try) 2>&5
13820 ac_status=$?
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; }; then
13823 ac_cv_member_struct_stat_st_blksize=yes
13824 else
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13827
13828 ac_cv_member_struct_stat_st_blksize=no
13829 fi
13830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13831 fi
13832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13833 fi
13834 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
13835 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
13836 if test $ac_cv_member_struct_stat_st_blksize = yes; then
13837
13838 cat >>confdefs.h <<_ACEOF
13839 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
13840 _ACEOF
13841
13842
13843 fi
13844
13845
13846 # ------------------ #
13847 # Checks for types. #
13848 # ------------------ #
13849
13850 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13851 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13852 if test "${ac_cv_type_signal+set}" = set; then
13853 echo $ECHO_N "(cached) $ECHO_C" >&6
13854 else
13855 cat >conftest.$ac_ext <<_ACEOF
13856 /* confdefs.h. */
13857 _ACEOF
13858 cat confdefs.h >>conftest.$ac_ext
13859 cat >>conftest.$ac_ext <<_ACEOF
13860 /* end confdefs.h. */
13861 #include <sys/types.h>
13862 #include <signal.h>
13863 #ifdef signal
13864 # undef signal
13865 #endif
13866 #ifdef __cplusplus
13867 extern "C" void (*signal (int, void (*)(int)))(int);
13868 #else
13869 void (*signal ()) ();
13870 #endif
13871
13872 int
13873 main ()
13874 {
13875 int i;
13876 ;
13877 return 0;
13878 }
13879 _ACEOF
13880 rm -f conftest.$ac_objext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13882 (eval $ac_compile) 2>conftest.er1
13883 ac_status=$?
13884 grep -v '^ *+' conftest.er1 >conftest.err
13885 rm -f conftest.er1
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -z "$ac_c_werror_flag"
13890 || test ! -s conftest.err'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13893 ac_status=$?
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest.$ac_objext'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_type_signal=void
13903 else
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907 ac_cv_type_signal=int
13908 fi
13909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13910 fi
13911 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13912 echo "${ECHO_T}$ac_cv_type_signal" >&6
13913
13914 cat >>confdefs.h <<_ACEOF
13915 #define RETSIGTYPE $ac_cv_type_signal
13916 _ACEOF
13917
13918
13919 echo "$as_me:$LINENO: checking for socklen_t" >&5
13920 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
13921 if test "${ac_cv_type_socklen_t+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 else
13924 cat >conftest.$ac_ext <<_ACEOF
13925 /* confdefs.h. */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 #include <sys/types.h>
13931 #include <sys/socket.h>
13932
13933
13934 int
13935 main ()
13936 {
13937 if ((socklen_t *) 0)
13938 return 0;
13939 if (sizeof (socklen_t))
13940 return 0;
13941 ;
13942 return 0;
13943 }
13944 _ACEOF
13945 rm -f conftest.$ac_objext
13946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13947 (eval $ac_compile) 2>conftest.er1
13948 ac_status=$?
13949 grep -v '^ *+' conftest.er1 >conftest.err
13950 rm -f conftest.er1
13951 cat conftest.err >&5
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); } &&
13954 { ac_try='test -z "$ac_c_werror_flag"
13955 || test ! -s conftest.err'
13956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13957 (eval $ac_try) 2>&5
13958 ac_status=$?
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); }; } &&
13961 { ac_try='test -s conftest.$ac_objext'
13962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13963 (eval $ac_try) 2>&5
13964 ac_status=$?
13965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13966 (exit $ac_status); }; }; then
13967 ac_cv_type_socklen_t=yes
13968 else
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13971
13972 ac_cv_type_socklen_t=no
13973 fi
13974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13975 fi
13976 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
13977 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
13978 if test $ac_cv_type_socklen_t = yes; then
13979
13980 cat >>confdefs.h <<_ACEOF
13981 #define HAVE_SOCKLEN_T 1
13982 _ACEOF
13983
13984
13985 fi
13986
13987
13988 # ------------------------------------- #
13989 # Checks for compiler characteristics. #
13990 # ------------------------------------- #
13991
13992 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13993 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13994 if test "${ac_cv_c_const+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 else
13997 cat >conftest.$ac_ext <<_ACEOF
13998 /* confdefs.h. */
13999 _ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14003
14004 int
14005 main ()
14006 {
14007 /* FIXME: Include the comments suggested by Paul. */
14008 #ifndef __cplusplus
14009 /* Ultrix mips cc rejects this. */
14010 typedef int charset[2];
14011 const charset x;
14012 /* SunOS 4.1.1 cc rejects this. */
14013 char const *const *ccp;
14014 char **p;
14015 /* NEC SVR4.0.2 mips cc rejects this. */
14016 struct point {int x, y;};
14017 static struct point const zero = {0,0};
14018 /* AIX XL C 1.02.0.0 rejects this.
14019 It does not let you subtract one const X* pointer from another in
14020 an arm of an if-expression whose if-part is not a constant
14021 expression */
14022 const char *g = "string";
14023 ccp = &g + (g ? g-g : 0);
14024 /* HPUX 7.0 cc rejects these. */
14025 ++ccp;
14026 p = (char**) ccp;
14027 ccp = (char const *const *) p;
14028 { /* SCO 3.2v4 cc rejects this. */
14029 char *t;
14030 char const *s = 0 ? (char *) 0 : (char const *) 0;
14031
14032 *t++ = 0;
14033 }
14034 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14035 int x[] = {25, 17};
14036 const int *foo = &x[0];
14037 ++foo;
14038 }
14039 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14040 typedef const int *iptr;
14041 iptr p = 0;
14042 ++p;
14043 }
14044 { /* AIX XL C 1.02.0.0 rejects this saying
14045 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14046 struct s { int j; const int *ap[3]; };
14047 struct s *b; b->j = 5;
14048 }
14049 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14050 const int foo = 10;
14051 }
14052 #endif
14053
14054 ;
14055 return 0;
14056 }
14057 _ACEOF
14058 rm -f conftest.$ac_objext
14059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14060 (eval $ac_compile) 2>conftest.er1
14061 ac_status=$?
14062 grep -v '^ *+' conftest.er1 >conftest.err
14063 rm -f conftest.er1
14064 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } &&
14067 { ac_try='test -z "$ac_c_werror_flag"
14068 || test ! -s conftest.err'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14071 ac_status=$?
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; } &&
14074 { ac_try='test -s conftest.$ac_objext'
14075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14076 (eval $ac_try) 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); }; }; then
14080 ac_cv_c_const=yes
14081 else
14082 echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14084
14085 ac_cv_c_const=no
14086 fi
14087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14088 fi
14089 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14090 echo "${ECHO_T}$ac_cv_c_const" >&6
14091 if test $ac_cv_c_const = no; then
14092
14093 cat >>confdefs.h <<\_ACEOF
14094 #define const
14095 _ACEOF
14096
14097 fi
14098
14099 echo "$as_me:$LINENO: checking for inline" >&5
14100 echo $ECHO_N "checking for inline... $ECHO_C" >&6
14101 if test "${ac_cv_c_inline+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 else
14104 ac_cv_c_inline=no
14105 for ac_kw in inline __inline__ __inline; do
14106 cat >conftest.$ac_ext <<_ACEOF
14107 /* confdefs.h. */
14108 _ACEOF
14109 cat confdefs.h >>conftest.$ac_ext
14110 cat >>conftest.$ac_ext <<_ACEOF
14111 /* end confdefs.h. */
14112 #ifndef __cplusplus
14113 typedef int foo_t;
14114 static $ac_kw foo_t static_foo () {return 0; }
14115 $ac_kw foo_t foo () {return 0; }
14116 #endif
14117
14118 _ACEOF
14119 rm -f conftest.$ac_objext
14120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14121 (eval $ac_compile) 2>conftest.er1
14122 ac_status=$?
14123 grep -v '^ *+' conftest.er1 >conftest.err
14124 rm -f conftest.er1
14125 cat conftest.err >&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); } &&
14128 { ac_try='test -z "$ac_c_werror_flag"
14129 || test ! -s conftest.err'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14132 ac_status=$?
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; } &&
14135 { ac_try='test -s conftest.$ac_objext'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14138 ac_status=$?
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 ac_cv_c_inline=$ac_kw; break
14142 else
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14145
14146 fi
14147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14148 done
14149
14150 fi
14151 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14152 echo "${ECHO_T}$ac_cv_c_inline" >&6
14153
14154
14155 case $ac_cv_c_inline in
14156 inline | yes) ;;
14157 *)
14158 case $ac_cv_c_inline in
14159 no) ac_val=;;
14160 *) ac_val=$ac_cv_c_inline;;
14161 esac
14162 cat >>confdefs.h <<_ACEOF
14163 #ifndef __cplusplus
14164 #define inline $ac_val
14165 #endif
14166 _ACEOF
14167 ;;
14168 esac
14169
14170 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14171 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
14172 if test "${ac_cv_c_bigendian+set}" = set; then
14173 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 else
14175 # See if sys/param.h defines the BYTE_ORDER macro.
14176 cat >conftest.$ac_ext <<_ACEOF
14177 /* confdefs.h. */
14178 _ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 #include <sys/types.h>
14183 #include <sys/param.h>
14184
14185 int
14186 main ()
14187 {
14188 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14189 bogus endian macros
14190 #endif
14191
14192 ;
14193 return 0;
14194 }
14195 _ACEOF
14196 rm -f conftest.$ac_objext
14197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14198 (eval $ac_compile) 2>conftest.er1
14199 ac_status=$?
14200 grep -v '^ *+' conftest.er1 >conftest.err
14201 rm -f conftest.er1
14202 cat conftest.err >&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); } &&
14205 { ac_try='test -z "$ac_c_werror_flag"
14206 || test ! -s conftest.err'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; } &&
14212 { ac_try='test -s conftest.$ac_objext'
14213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14214 (eval $ac_try) 2>&5
14215 ac_status=$?
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; }; then
14218 # It does; now see whether it defined to BIG_ENDIAN or not.
14219 cat >conftest.$ac_ext <<_ACEOF
14220 /* confdefs.h. */
14221 _ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14225 #include <sys/types.h>
14226 #include <sys/param.h>
14227
14228 int
14229 main ()
14230 {
14231 #if BYTE_ORDER != BIG_ENDIAN
14232 not big endian
14233 #endif
14234
14235 ;
14236 return 0;
14237 }
14238 _ACEOF
14239 rm -f conftest.$ac_objext
14240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14241 (eval $ac_compile) 2>conftest.er1
14242 ac_status=$?
14243 grep -v '^ *+' conftest.er1 >conftest.err
14244 rm -f conftest.er1
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -z "$ac_c_werror_flag"
14249 || test ! -s conftest.err'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14252 ac_status=$?
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } &&
14255 { ac_try='test -s conftest.$ac_objext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14258 ac_status=$?
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_cv_c_bigendian=yes
14262 else
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14265
14266 ac_cv_c_bigendian=no
14267 fi
14268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14269 else
14270 echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.$ac_ext >&5
14272
14273 # It does not; compile a test program.
14274 if test "$cross_compiling" = yes; then
14275 # try to guess the endianness by grepping values into an object file
14276 ac_cv_c_bigendian=unknown
14277 cat >conftest.$ac_ext <<_ACEOF
14278 /* confdefs.h. */
14279 _ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14284 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14285 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14286 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14287 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14288 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14289 int
14290 main ()
14291 {
14292 _ascii (); _ebcdic ();
14293 ;
14294 return 0;
14295 }
14296 _ACEOF
14297 rm -f conftest.$ac_objext
14298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14299 (eval $ac_compile) 2>conftest.er1
14300 ac_status=$?
14301 grep -v '^ *+' conftest.er1 >conftest.err
14302 rm -f conftest.er1
14303 cat conftest.err >&5
14304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305 (exit $ac_status); } &&
14306 { ac_try='test -z "$ac_c_werror_flag"
14307 || test ! -s conftest.err'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; } &&
14313 { ac_try='test -s conftest.$ac_objext'
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14316 ac_status=$?
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; }; then
14319 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14320 ac_cv_c_bigendian=yes
14321 fi
14322 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14323 if test "$ac_cv_c_bigendian" = unknown; then
14324 ac_cv_c_bigendian=no
14325 else
14326 # finding both strings is unlikely to happen, but who knows?
14327 ac_cv_c_bigendian=unknown
14328 fi
14329 fi
14330 else
14331 echo "$as_me: failed program was:" >&5
14332 sed 's/^/| /' conftest.$ac_ext >&5
14333
14334 fi
14335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14336 else
14337 cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h. */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 int
14344 main ()
14345 {
14346 /* Are we little or big endian? From Harbison&Steele. */
14347 union
14348 {
14349 long l;
14350 char c[sizeof (long)];
14351 } u;
14352 u.l = 1;
14353 exit (u.c[sizeof (long) - 1] == 1);
14354 }
14355 _ACEOF
14356 rm -f conftest$ac_exeext
14357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14358 (eval $ac_link) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14363 (eval $ac_try) 2>&5
14364 ac_status=$?
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); }; }; then
14367 ac_cv_c_bigendian=no
14368 else
14369 echo "$as_me: program exited with status $ac_status" >&5
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14372
14373 ( exit $ac_status )
14374 ac_cv_c_bigendian=yes
14375 fi
14376 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14377 fi
14378 fi
14379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14380 fi
14381 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14382 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
14383 case $ac_cv_c_bigendian in
14384 yes)
14385
14386 cat >>confdefs.h <<\_ACEOF
14387 #define WORDS_BIGENDIAN 1
14388 _ACEOF
14389 ;;
14390 no)
14391 ;;
14392 *)
14393 { { echo "$as_me:$LINENO: error: unknown endianness
14394 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14395 echo "$as_me: error: unknown endianness
14396 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14397 { (exit 1); exit 1; }; } ;;
14398 esac
14399
14400
14401 # ------------------------------ #
14402 # Checks for library functions. #
14403 # ------------------------------ #
14404
14405 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14406 # for constant arguments. Useless!
14407 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14408 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14409 if test "${ac_cv_working_alloca_h+set}" = set; then
14410 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 else
14412 cat >conftest.$ac_ext <<_ACEOF
14413 /* confdefs.h. */
14414 _ACEOF
14415 cat confdefs.h >>conftest.$ac_ext
14416 cat >>conftest.$ac_ext <<_ACEOF
14417 /* end confdefs.h. */
14418 #include <alloca.h>
14419 int
14420 main ()
14421 {
14422 char *p = (char *) alloca (2 * sizeof (int));
14423 ;
14424 return 0;
14425 }
14426 _ACEOF
14427 rm -f conftest.$ac_objext conftest$ac_exeext
14428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14429 (eval $ac_link) 2>conftest.er1
14430 ac_status=$?
14431 grep -v '^ *+' conftest.er1 >conftest.err
14432 rm -f conftest.er1
14433 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try='test -z "$ac_c_werror_flag"
14437 || test ! -s conftest.err'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14440 ac_status=$?
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; } &&
14443 { ac_try='test -s conftest$ac_exeext'
14444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14445 (eval $ac_try) 2>&5
14446 ac_status=$?
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14449 ac_cv_working_alloca_h=yes
14450 else
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14453
14454 ac_cv_working_alloca_h=no
14455 fi
14456 rm -f conftest.err conftest.$ac_objext \
14457 conftest$ac_exeext conftest.$ac_ext
14458 fi
14459 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14460 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14461 if test $ac_cv_working_alloca_h = yes; then
14462
14463 cat >>confdefs.h <<\_ACEOF
14464 #define HAVE_ALLOCA_H 1
14465 _ACEOF
14466
14467 fi
14468
14469 echo "$as_me:$LINENO: checking for alloca" >&5
14470 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14471 if test "${ac_cv_func_alloca_works+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14473 else
14474 cat >conftest.$ac_ext <<_ACEOF
14475 /* confdefs.h. */
14476 _ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h. */
14480 #ifdef __GNUC__
14481 # define alloca __builtin_alloca
14482 #else
14483 # ifdef _MSC_VER
14484 # include <malloc.h>
14485 # define alloca _alloca
14486 # else
14487 # if HAVE_ALLOCA_H
14488 # include <alloca.h>
14489 # else
14490 # ifdef _AIX
14491 #pragma alloca
14492 # else
14493 # ifndef alloca /* predefined by HP cc +Olibcalls */
14494 char *alloca ();
14495 # endif
14496 # endif
14497 # endif
14498 # endif
14499 #endif
14500
14501 int
14502 main ()
14503 {
14504 char *p = (char *) alloca (1);
14505 ;
14506 return 0;
14507 }
14508 _ACEOF
14509 rm -f conftest.$ac_objext conftest$ac_exeext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14511 (eval $ac_link) 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try='test -z "$ac_c_werror_flag"
14519 || test ! -s conftest.err'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; } &&
14525 { ac_try='test -s conftest$ac_exeext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14531 ac_cv_func_alloca_works=yes
14532 else
14533 echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14535
14536 ac_cv_func_alloca_works=no
14537 fi
14538 rm -f conftest.err conftest.$ac_objext \
14539 conftest$ac_exeext conftest.$ac_ext
14540 fi
14541 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14542 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14543
14544 if test $ac_cv_func_alloca_works = yes; then
14545
14546 cat >>confdefs.h <<\_ACEOF
14547 #define HAVE_ALLOCA 1
14548 _ACEOF
14549
14550 else
14551 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14552 # that cause trouble. Some versions do not even contain alloca or
14553 # contain a buggy version. If you still want to use their alloca,
14554 # use ar to extract alloca.o from them instead of compiling alloca.c.
14555
14556 ALLOCA=alloca.$ac_objext
14557
14558 cat >>confdefs.h <<\_ACEOF
14559 #define C_ALLOCA 1
14560 _ACEOF
14561
14562
14563 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14564 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14565 if test "${ac_cv_os_cray+set}" = set; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 else
14568 cat >conftest.$ac_ext <<_ACEOF
14569 /* confdefs.h. */
14570 _ACEOF
14571 cat confdefs.h >>conftest.$ac_ext
14572 cat >>conftest.$ac_ext <<_ACEOF
14573 /* end confdefs.h. */
14574 #if defined(CRAY) && ! defined(CRAY2)
14575 webecray
14576 #else
14577 wenotbecray
14578 #endif
14579
14580 _ACEOF
14581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14582 $EGREP "webecray" >/dev/null 2>&1; then
14583 ac_cv_os_cray=yes
14584 else
14585 ac_cv_os_cray=no
14586 fi
14587 rm -f conftest*
14588
14589 fi
14590 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14591 echo "${ECHO_T}$ac_cv_os_cray" >&6
14592 if test $ac_cv_os_cray = yes; then
14593 for ac_func in _getb67 GETB67 getb67; do
14594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14595 echo "$as_me:$LINENO: checking for $ac_func" >&5
14596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14597 if eval "test \"\${$as_ac_var+set}\" = set"; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 else
14600 cat >conftest.$ac_ext <<_ACEOF
14601 /* confdefs.h. */
14602 _ACEOF
14603 cat confdefs.h >>conftest.$ac_ext
14604 cat >>conftest.$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14608 #define $ac_func innocuous_$ac_func
14609
14610 /* System header to define __stub macros and hopefully few prototypes,
14611 which can conflict with char $ac_func (); below.
14612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14613 <limits.h> exists even on freestanding compilers. */
14614
14615 #ifdef __STDC__
14616 # include <limits.h>
14617 #else
14618 # include <assert.h>
14619 #endif
14620
14621 #undef $ac_func
14622
14623 /* Override any gcc2 internal prototype to avoid an error. */
14624 #ifdef __cplusplus
14625 extern "C"
14626 {
14627 #endif
14628 /* We use char because int might match the return type of a gcc2
14629 builtin and then its argument prototype would still apply. */
14630 char $ac_func ();
14631 /* The GNU C library defines this for functions which it implements
14632 to always fail with ENOSYS. Some functions are actually named
14633 something starting with __ and the normal name is an alias. */
14634 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14635 choke me
14636 #else
14637 char (*f) () = $ac_func;
14638 #endif
14639 #ifdef __cplusplus
14640 }
14641 #endif
14642
14643 int
14644 main ()
14645 {
14646 return f != $ac_func;
14647 ;
14648 return 0;
14649 }
14650 _ACEOF
14651 rm -f conftest.$ac_objext conftest$ac_exeext
14652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14653 (eval $ac_link) 2>conftest.er1
14654 ac_status=$?
14655 grep -v '^ *+' conftest.er1 >conftest.err
14656 rm -f conftest.er1
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -z "$ac_c_werror_flag"
14661 || test ! -s conftest.err'
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; } &&
14667 { ac_try='test -s conftest$ac_exeext'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; }; then
14673 eval "$as_ac_var=yes"
14674 else
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14677
14678 eval "$as_ac_var=no"
14679 fi
14680 rm -f conftest.err conftest.$ac_objext \
14681 conftest$ac_exeext conftest.$ac_ext
14682 fi
14683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14685 if test `eval echo '${'$as_ac_var'}'` = yes; then
14686
14687 cat >>confdefs.h <<_ACEOF
14688 #define CRAY_STACKSEG_END $ac_func
14689 _ACEOF
14690
14691 break
14692 fi
14693
14694 done
14695 fi
14696
14697 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14698 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14699 if test "${ac_cv_c_stack_direction+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 else
14702 if test "$cross_compiling" = yes; then
14703 ac_cv_c_stack_direction=0
14704 else
14705 cat >conftest.$ac_ext <<_ACEOF
14706 /* confdefs.h. */
14707 _ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h. */
14711 int
14712 find_stack_direction ()
14713 {
14714 static char *addr = 0;
14715 auto char dummy;
14716 if (addr == 0)
14717 {
14718 addr = &dummy;
14719 return find_stack_direction ();
14720 }
14721 else
14722 return (&dummy > addr) ? 1 : -1;
14723 }
14724
14725 int
14726 main ()
14727 {
14728 exit (find_stack_direction () < 0);
14729 }
14730 _ACEOF
14731 rm -f conftest$ac_exeext
14732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14733 (eval $ac_link) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14739 ac_status=$?
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_cv_c_stack_direction=1
14743 else
14744 echo "$as_me: program exited with status $ac_status" >&5
14745 echo "$as_me: failed program was:" >&5
14746 sed 's/^/| /' conftest.$ac_ext >&5
14747
14748 ( exit $ac_status )
14749 ac_cv_c_stack_direction=-1
14750 fi
14751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14752 fi
14753 fi
14754 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14755 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14756
14757 cat >>confdefs.h <<_ACEOF
14758 #define STACK_DIRECTION $ac_cv_c_stack_direction
14759 _ACEOF
14760
14761
14762 fi
14763
14764
14765
14766 for ac_header in stdlib.h unistd.h
14767 do
14768 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14770 echo "$as_me:$LINENO: checking for $ac_header" >&5
14771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14772 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 fi
14775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14777 else
14778 # Is the header compilable?
14779 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14780 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14781 cat >conftest.$ac_ext <<_ACEOF
14782 /* confdefs.h. */
14783 _ACEOF
14784 cat confdefs.h >>conftest.$ac_ext
14785 cat >>conftest.$ac_ext <<_ACEOF
14786 /* end confdefs.h. */
14787 $ac_includes_default
14788 #include <$ac_header>
14789 _ACEOF
14790 rm -f conftest.$ac_objext
14791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14792 (eval $ac_compile) 2>conftest.er1
14793 ac_status=$?
14794 grep -v '^ *+' conftest.er1 >conftest.err
14795 rm -f conftest.er1
14796 cat conftest.err >&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); } &&
14799 { ac_try='test -z "$ac_c_werror_flag"
14800 || test ! -s conftest.err'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; } &&
14806 { ac_try='test -s conftest.$ac_objext'
14807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14808 (eval $ac_try) 2>&5
14809 ac_status=$?
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }; then
14812 ac_header_compiler=yes
14813 else
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14816
14817 ac_header_compiler=no
14818 fi
14819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14820 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14821 echo "${ECHO_T}$ac_header_compiler" >&6
14822
14823 # Is the header present?
14824 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14825 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14826 cat >conftest.$ac_ext <<_ACEOF
14827 /* confdefs.h. */
14828 _ACEOF
14829 cat confdefs.h >>conftest.$ac_ext
14830 cat >>conftest.$ac_ext <<_ACEOF
14831 /* end confdefs.h. */
14832 #include <$ac_header>
14833 _ACEOF
14834 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14835 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14836 ac_status=$?
14837 grep -v '^ *+' conftest.er1 >conftest.err
14838 rm -f conftest.er1
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } >/dev/null; then
14842 if test -s conftest.err; then
14843 ac_cpp_err=$ac_c_preproc_warn_flag
14844 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14845 else
14846 ac_cpp_err=
14847 fi
14848 else
14849 ac_cpp_err=yes
14850 fi
14851 if test -z "$ac_cpp_err"; then
14852 ac_header_preproc=yes
14853 else
14854 echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14856
14857 ac_header_preproc=no
14858 fi
14859 rm -f conftest.err conftest.$ac_ext
14860 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14861 echo "${ECHO_T}$ac_header_preproc" >&6
14862
14863 # So? What about this header?
14864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14865 yes:no: )
14866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14870 ac_header_preproc=yes
14871 ;;
14872 no:yes:* )
14873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14880 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14885 (
14886 cat <<\_ASBOX
14887 ## ------------------------------------------ ##
14888 ## Report this to the AC_PACKAGE_NAME lists. ##
14889 ## ------------------------------------------ ##
14890 _ASBOX
14891 ) |
14892 sed "s/^/$as_me: WARNING: /" >&2
14893 ;;
14894 esac
14895 echo "$as_me:$LINENO: checking for $ac_header" >&5
14896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900 eval "$as_ac_Header=\$ac_header_preproc"
14901 fi
14902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14904
14905 fi
14906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14907 cat >>confdefs.h <<_ACEOF
14908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14909 _ACEOF
14910
14911 fi
14912
14913 done
14914
14915
14916 for ac_func in getpagesize
14917 do
14918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14919 echo "$as_me:$LINENO: checking for $ac_func" >&5
14920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14921 if eval "test \"\${$as_ac_var+set}\" = set"; then
14922 echo $ECHO_N "(cached) $ECHO_C" >&6
14923 else
14924 cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h. */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14932 #define $ac_func innocuous_$ac_func
14933
14934 /* System header to define __stub macros and hopefully few prototypes,
14935 which can conflict with char $ac_func (); below.
14936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14937 <limits.h> exists even on freestanding compilers. */
14938
14939 #ifdef __STDC__
14940 # include <limits.h>
14941 #else
14942 # include <assert.h>
14943 #endif
14944
14945 #undef $ac_func
14946
14947 /* Override any gcc2 internal prototype to avoid an error. */
14948 #ifdef __cplusplus
14949 extern "C"
14950 {
14951 #endif
14952 /* We use char because int might match the return type of a gcc2
14953 builtin and then its argument prototype would still apply. */
14954 char $ac_func ();
14955 /* The GNU C library defines this for functions which it implements
14956 to always fail with ENOSYS. Some functions are actually named
14957 something starting with __ and the normal name is an alias. */
14958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14959 choke me
14960 #else
14961 char (*f) () = $ac_func;
14962 #endif
14963 #ifdef __cplusplus
14964 }
14965 #endif
14966
14967 int
14968 main ()
14969 {
14970 return f != $ac_func;
14971 ;
14972 return 0;
14973 }
14974 _ACEOF
14975 rm -f conftest.$ac_objext conftest$ac_exeext
14976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14977 (eval $ac_link) 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } &&
14984 { ac_try='test -z "$ac_c_werror_flag"
14985 || test ! -s conftest.err'
14986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14987 (eval $ac_try) 2>&5
14988 ac_status=$?
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; } &&
14991 { ac_try='test -s conftest$ac_exeext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14994 ac_status=$?
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 eval "$as_ac_var=yes"
14998 else
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002 eval "$as_ac_var=no"
15003 fi
15004 rm -f conftest.err conftest.$ac_objext \
15005 conftest$ac_exeext conftest.$ac_ext
15006 fi
15007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15009 if test `eval echo '${'$as_ac_var'}'` = yes; then
15010 cat >>confdefs.h <<_ACEOF
15011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15012 _ACEOF
15013
15014 fi
15015 done
15016
15017 echo "$as_me:$LINENO: checking for working mmap" >&5
15018 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
15019 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15021 else
15022 if test "$cross_compiling" = yes; then
15023 ac_cv_func_mmap_fixed_mapped=no
15024 else
15025 cat >conftest.$ac_ext <<_ACEOF
15026 /* confdefs.h. */
15027 _ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15031 $ac_includes_default
15032 /* malloc might have been renamed as rpl_malloc. */
15033 #undef malloc
15034
15035 /* Thanks to Mike Haertel and Jim Avera for this test.
15036 Here is a matrix of mmap possibilities:
15037 mmap private not fixed
15038 mmap private fixed at somewhere currently unmapped
15039 mmap private fixed at somewhere already mapped
15040 mmap shared not fixed
15041 mmap shared fixed at somewhere currently unmapped
15042 mmap shared fixed at somewhere already mapped
15043 For private mappings, we should verify that changes cannot be read()
15044 back from the file, nor mmap's back from the file at a different
15045 address. (There have been systems where private was not correctly
15046 implemented like the infamous i386 svr4.0, and systems where the
15047 VM page cache was not coherent with the file system buffer cache
15048 like early versions of FreeBSD and possibly contemporary NetBSD.)
15049 For shared mappings, we should conversely verify that changes get
15050 propagated back to all the places they're supposed to be.
15051
15052 Grep wants private fixed already mapped.
15053 The main things grep needs to know about mmap are:
15054 * does it exist and is it safe to write into the mmap'd area
15055 * how to use it (BSD variants) */
15056
15057 #include <fcntl.h>
15058 #include <sys/mman.h>
15059
15060 #if !STDC_HEADERS && !HAVE_STDLIB_H
15061 char *malloc ();
15062 #endif
15063
15064 /* This mess was copied from the GNU getpagesize.h. */
15065 #if !HAVE_GETPAGESIZE
15066 /* Assume that all systems that can run configure have sys/param.h. */
15067 # if !HAVE_SYS_PARAM_H
15068 # define HAVE_SYS_PARAM_H 1
15069 # endif
15070
15071 # ifdef _SC_PAGESIZE
15072 # define getpagesize() sysconf(_SC_PAGESIZE)
15073 # else /* no _SC_PAGESIZE */
15074 # if HAVE_SYS_PARAM_H
15075 # include <sys/param.h>
15076 # ifdef EXEC_PAGESIZE
15077 # define getpagesize() EXEC_PAGESIZE
15078 # else /* no EXEC_PAGESIZE */
15079 # ifdef NBPG
15080 # define getpagesize() NBPG * CLSIZE
15081 # ifndef CLSIZE
15082 # define CLSIZE 1
15083 # endif /* no CLSIZE */
15084 # else /* no NBPG */
15085 # ifdef NBPC
15086 # define getpagesize() NBPC
15087 # else /* no NBPC */
15088 # ifdef PAGESIZE
15089 # define getpagesize() PAGESIZE
15090 # endif /* PAGESIZE */
15091 # endif /* no NBPC */
15092 # endif /* no NBPG */
15093 # endif /* no EXEC_PAGESIZE */
15094 # else /* no HAVE_SYS_PARAM_H */
15095 # define getpagesize() 8192 /* punt totally */
15096 # endif /* no HAVE_SYS_PARAM_H */
15097 # endif /* no _SC_PAGESIZE */
15098
15099 #endif /* no HAVE_GETPAGESIZE */
15100
15101 int
15102 main ()
15103 {
15104 char *data, *data2, *data3;
15105 int i, pagesize;
15106 int fd;
15107
15108 pagesize = getpagesize ();
15109
15110 /* First, make a file with some known garbage in it. */
15111 data = (char *) malloc (pagesize);
15112 if (!data)
15113 exit (1);
15114 for (i = 0; i < pagesize; ++i)
15115 *(data + i) = rand ();
15116 umask (0);
15117 fd = creat ("conftest.mmap", 0600);
15118 if (fd < 0)
15119 exit (1);
15120 if (write (fd, data, pagesize) != pagesize)
15121 exit (1);
15122 close (fd);
15123
15124 /* Next, try to mmap the file at a fixed address which already has
15125 something else allocated at it. If we can, also make sure that
15126 we see the same garbage. */
15127 fd = open ("conftest.mmap", O_RDWR);
15128 if (fd < 0)
15129 exit (1);
15130 data2 = (char *) malloc (2 * pagesize);
15131 if (!data2)
15132 exit (1);
15133 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15134 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15135 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15136 exit (1);
15137 for (i = 0; i < pagesize; ++i)
15138 if (*(data + i) != *(data2 + i))
15139 exit (1);
15140
15141 /* Finally, make sure that changes to the mapped area do not
15142 percolate back to the file as seen by read(). (This is a bug on
15143 some variants of i386 svr4.0.) */
15144 for (i = 0; i < pagesize; ++i)
15145 *(data2 + i) = *(data2 + i) + 1;
15146 data3 = (char *) malloc (pagesize);
15147 if (!data3)
15148 exit (1);
15149 if (read (fd, data3, pagesize) != pagesize)
15150 exit (1);
15151 for (i = 0; i < pagesize; ++i)
15152 if (*(data + i) != *(data3 + i))
15153 exit (1);
15154 close (fd);
15155 exit (0);
15156 }
15157 _ACEOF
15158 rm -f conftest$ac_exeext
15159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15160 (eval $ac_link) 2>&5
15161 ac_status=$?
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15165 (eval $ac_try) 2>&5
15166 ac_status=$?
15167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15168 (exit $ac_status); }; }; then
15169 ac_cv_func_mmap_fixed_mapped=yes
15170 else
15171 echo "$as_me: program exited with status $ac_status" >&5
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15174
15175 ( exit $ac_status )
15176 ac_cv_func_mmap_fixed_mapped=no
15177 fi
15178 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15179 fi
15180 fi
15181 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15182 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15183 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15184
15185 cat >>confdefs.h <<\_ACEOF
15186 #define HAVE_MMAP 1
15187 _ACEOF
15188
15189 fi
15190 rm -f conftest.mmap
15191
15192 echo "$as_me:$LINENO: checking for pid_t" >&5
15193 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15194 if test "${ac_cv_type_pid_t+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197 cat >conftest.$ac_ext <<_ACEOF
15198 /* confdefs.h. */
15199 _ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h. */
15203 $ac_includes_default
15204 int
15205 main ()
15206 {
15207 if ((pid_t *) 0)
15208 return 0;
15209 if (sizeof (pid_t))
15210 return 0;
15211 ;
15212 return 0;
15213 }
15214 _ACEOF
15215 rm -f conftest.$ac_objext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15217 (eval $ac_compile) 2>conftest.er1
15218 ac_status=$?
15219 grep -v '^ *+' conftest.er1 >conftest.err
15220 rm -f conftest.er1
15221 cat conftest.err >&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -z "$ac_c_werror_flag"
15225 || test ! -s conftest.err'
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15228 ac_status=$?
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; } &&
15231 { ac_try='test -s conftest.$ac_objext'
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; }; then
15237 ac_cv_type_pid_t=yes
15238 else
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.$ac_ext >&5
15241
15242 ac_cv_type_pid_t=no
15243 fi
15244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15245 fi
15246 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15247 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15248 if test $ac_cv_type_pid_t = yes; then
15249 :
15250 else
15251
15252 cat >>confdefs.h <<_ACEOF
15253 #define pid_t int
15254 _ACEOF
15255
15256 fi
15257
15258
15259
15260 for ac_header in unistd.h vfork.h
15261 do
15262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15263 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15264 echo "$as_me:$LINENO: checking for $ac_header" >&5
15265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15268 fi
15269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15271 else
15272 # Is the header compilable?
15273 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15275 cat >conftest.$ac_ext <<_ACEOF
15276 /* confdefs.h. */
15277 _ACEOF
15278 cat confdefs.h >>conftest.$ac_ext
15279 cat >>conftest.$ac_ext <<_ACEOF
15280 /* end confdefs.h. */
15281 $ac_includes_default
15282 #include <$ac_header>
15283 _ACEOF
15284 rm -f conftest.$ac_objext
15285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15286 (eval $ac_compile) 2>conftest.er1
15287 ac_status=$?
15288 grep -v '^ *+' conftest.er1 >conftest.err
15289 rm -f conftest.er1
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } &&
15293 { ac_try='test -z "$ac_c_werror_flag"
15294 || test ! -s conftest.err'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15297 ac_status=$?
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; } &&
15300 { ac_try='test -s conftest.$ac_objext'
15301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15302 (eval $ac_try) 2>&5
15303 ac_status=$?
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); }; }; then
15306 ac_header_compiler=yes
15307 else
15308 echo "$as_me: failed program was:" >&5
15309 sed 's/^/| /' conftest.$ac_ext >&5
15310
15311 ac_header_compiler=no
15312 fi
15313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15315 echo "${ECHO_T}$ac_header_compiler" >&6
15316
15317 # Is the header present?
15318 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15320 cat >conftest.$ac_ext <<_ACEOF
15321 /* confdefs.h. */
15322 _ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15326 #include <$ac_header>
15327 _ACEOF
15328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15330 ac_status=$?
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); } >/dev/null; then
15336 if test -s conftest.err; then
15337 ac_cpp_err=$ac_c_preproc_warn_flag
15338 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15339 else
15340 ac_cpp_err=
15341 fi
15342 else
15343 ac_cpp_err=yes
15344 fi
15345 if test -z "$ac_cpp_err"; then
15346 ac_header_preproc=yes
15347 else
15348 echo "$as_me: failed program was:" >&5
15349 sed 's/^/| /' conftest.$ac_ext >&5
15350
15351 ac_header_preproc=no
15352 fi
15353 rm -f conftest.err conftest.$ac_ext
15354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15355 echo "${ECHO_T}$ac_header_preproc" >&6
15356
15357 # So? What about this header?
15358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15359 yes:no: )
15360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15364 ac_header_preproc=yes
15365 ;;
15366 no:yes:* )
15367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15379 (
15380 cat <<\_ASBOX
15381 ## ------------------------------------------ ##
15382 ## Report this to the AC_PACKAGE_NAME lists. ##
15383 ## ------------------------------------------ ##
15384 _ASBOX
15385 ) |
15386 sed "s/^/$as_me: WARNING: /" >&2
15387 ;;
15388 esac
15389 echo "$as_me:$LINENO: checking for $ac_header" >&5
15390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15391 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15393 else
15394 eval "$as_ac_Header=\$ac_header_preproc"
15395 fi
15396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15398
15399 fi
15400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15401 cat >>confdefs.h <<_ACEOF
15402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15403 _ACEOF
15404
15405 fi
15406
15407 done
15408
15409
15410
15411 for ac_func in fork vfork
15412 do
15413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15414 echo "$as_me:$LINENO: checking for $ac_func" >&5
15415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15416 if eval "test \"\${$as_ac_var+set}\" = set"; then
15417 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419 cat >conftest.$ac_ext <<_ACEOF
15420 /* confdefs.h. */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15427 #define $ac_func innocuous_$ac_func
15428
15429 /* System header to define __stub macros and hopefully few prototypes,
15430 which can conflict with char $ac_func (); below.
15431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15432 <limits.h> exists even on freestanding compilers. */
15433
15434 #ifdef __STDC__
15435 # include <limits.h>
15436 #else
15437 # include <assert.h>
15438 #endif
15439
15440 #undef $ac_func
15441
15442 /* Override any gcc2 internal prototype to avoid an error. */
15443 #ifdef __cplusplus
15444 extern "C"
15445 {
15446 #endif
15447 /* We use char because int might match the return type of a gcc2
15448 builtin and then its argument prototype would still apply. */
15449 char $ac_func ();
15450 /* The GNU C library defines this for functions which it implements
15451 to always fail with ENOSYS. Some functions are actually named
15452 something starting with __ and the normal name is an alias. */
15453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15454 choke me
15455 #else
15456 char (*f) () = $ac_func;
15457 #endif
15458 #ifdef __cplusplus
15459 }
15460 #endif
15461
15462 int
15463 main ()
15464 {
15465 return f != $ac_func;
15466 ;
15467 return 0;
15468 }
15469 _ACEOF
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15472 (eval $ac_link) 2>conftest.er1
15473 ac_status=$?
15474 grep -v '^ *+' conftest.er1 >conftest.err
15475 rm -f conftest.er1
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } &&
15479 { ac_try='test -z "$ac_c_werror_flag"
15480 || test ! -s conftest.err'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; } &&
15486 { ac_try='test -s conftest$ac_exeext'
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then
15492 eval "$as_ac_var=yes"
15493 else
15494 echo "$as_me: failed program was:" >&5
15495 sed 's/^/| /' conftest.$ac_ext >&5
15496
15497 eval "$as_ac_var=no"
15498 fi
15499 rm -f conftest.err conftest.$ac_objext \
15500 conftest$ac_exeext conftest.$ac_ext
15501 fi
15502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15504 if test `eval echo '${'$as_ac_var'}'` = yes; then
15505 cat >>confdefs.h <<_ACEOF
15506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15507 _ACEOF
15508
15509 fi
15510 done
15511
15512 if test "x$ac_cv_func_fork" = xyes; then
15513 echo "$as_me:$LINENO: checking for working fork" >&5
15514 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15515 if test "${ac_cv_func_fork_works+set}" = set; then
15516 echo $ECHO_N "(cached) $ECHO_C" >&6
15517 else
15518 if test "$cross_compiling" = yes; then
15519 ac_cv_func_fork_works=cross
15520 else
15521 cat >conftest.$ac_ext <<_ACEOF
15522 /* By Ruediger Kuhlmann. */
15523 #include <sys/types.h>
15524 #if HAVE_UNISTD_H
15525 # include <unistd.h>
15526 #endif
15527 /* Some systems only have a dummy stub for fork() */
15528 int main ()
15529 {
15530 if (fork() < 0)
15531 exit (1);
15532 exit (0);
15533 }
15534 _ACEOF
15535 rm -f conftest$ac_exeext
15536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15537 (eval $ac_link) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }; then
15546 ac_cv_func_fork_works=yes
15547 else
15548 echo "$as_me: program exited with status $ac_status" >&5
15549 echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15551
15552 ( exit $ac_status )
15553 ac_cv_func_fork_works=no
15554 fi
15555 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15556 fi
15557 fi
15558 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15559 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15560
15561 else
15562 ac_cv_func_fork_works=$ac_cv_func_fork
15563 fi
15564 if test "x$ac_cv_func_fork_works" = xcross; then
15565 case $host in
15566 *-*-amigaos* | *-*-msdosdjgpp*)
15567 # Override, as these systems have only a dummy fork() stub
15568 ac_cv_func_fork_works=no
15569 ;;
15570 *)
15571 ac_cv_func_fork_works=yes
15572 ;;
15573 esac
15574 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15575 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15576 fi
15577 ac_cv_func_vfork_works=$ac_cv_func_vfork
15578 if test "x$ac_cv_func_vfork" = xyes; then
15579 echo "$as_me:$LINENO: checking for working vfork" >&5
15580 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15581 if test "${ac_cv_func_vfork_works+set}" = set; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15583 else
15584 if test "$cross_compiling" = yes; then
15585 ac_cv_func_vfork_works=cross
15586 else
15587 cat >conftest.$ac_ext <<_ACEOF
15588 /* confdefs.h. */
15589 _ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15593 /* Thanks to Paul Eggert for this test. */
15594 #include <stdio.h>
15595 #include <stdlib.h>
15596 #include <sys/types.h>
15597 #include <sys/stat.h>
15598 #include <sys/wait.h>
15599 #if HAVE_UNISTD_H
15600 # include <unistd.h>
15601 #endif
15602 #if HAVE_VFORK_H
15603 # include <vfork.h>
15604 #endif
15605 /* On some sparc systems, changes by the child to local and incoming
15606 argument registers are propagated back to the parent. The compiler
15607 is told about this with #include <vfork.h>, but some compilers
15608 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15609 static variable whose address is put into a register that is
15610 clobbered by the vfork. */
15611 static void
15612 #ifdef __cplusplus
15613 sparc_address_test (int arg)
15614 # else
15615 sparc_address_test (arg) int arg;
15616 #endif
15617 {
15618 static pid_t child;
15619 if (!child) {
15620 child = vfork ();
15621 if (child < 0) {
15622 perror ("vfork");
15623 _exit(2);
15624 }
15625 if (!child) {
15626 arg = getpid();
15627 write(-1, "", 0);
15628 _exit (arg);
15629 }
15630 }
15631 }
15632
15633 int
15634 main ()
15635 {
15636 pid_t parent = getpid ();
15637 pid_t child;
15638
15639 sparc_address_test (0);
15640
15641 child = vfork ();
15642
15643 if (child == 0) {
15644 /* Here is another test for sparc vfork register problems. This
15645 test uses lots of local variables, at least as many local
15646 variables as main has allocated so far including compiler
15647 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15648 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15649 reuse the register of parent for one of the local variables,
15650 since it will think that parent can't possibly be used any more
15651 in this routine. Assigning to the local variable will thus
15652 munge parent in the parent process. */
15653 pid_t
15654 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15655 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15656 /* Convince the compiler that p..p7 are live; otherwise, it might
15657 use the same hardware register for all 8 local variables. */
15658 if (p != p1 || p != p2 || p != p3 || p != p4
15659 || p != p5 || p != p6 || p != p7)
15660 _exit(1);
15661
15662 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15663 from child file descriptors. If the child closes a descriptor
15664 before it execs or exits, this munges the parent's descriptor
15665 as well. Test for this by closing stdout in the child. */
15666 _exit(close(fileno(stdout)) != 0);
15667 } else {
15668 int status;
15669 struct stat st;
15670
15671 while (wait(&status) != child)
15672 ;
15673 exit(
15674 /* Was there some problem with vforking? */
15675 child < 0
15676
15677 /* Did the child fail? (This shouldn't happen.) */
15678 || status
15679
15680 /* Did the vfork/compiler bug occur? */
15681 || parent != getpid()
15682
15683 /* Did the file descriptor bug occur? */
15684 || fstat(fileno(stdout), &st) != 0
15685 );
15686 }
15687 }
15688 _ACEOF
15689 rm -f conftest$ac_exeext
15690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15691 (eval $ac_link) 2>&5
15692 ac_status=$?
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15700 ac_cv_func_vfork_works=yes
15701 else
15702 echo "$as_me: program exited with status $ac_status" >&5
15703 echo "$as_me: failed program was:" >&5
15704 sed 's/^/| /' conftest.$ac_ext >&5
15705
15706 ( exit $ac_status )
15707 ac_cv_func_vfork_works=no
15708 fi
15709 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15710 fi
15711 fi
15712 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15713 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15714
15715 fi;
15716 if test "x$ac_cv_func_fork_works" = xcross; then
15717 ac_cv_func_vfork_works=$ac_cv_func_vfork
15718 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15719 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15720 fi
15721
15722 if test "x$ac_cv_func_vfork_works" = xyes; then
15723
15724 cat >>confdefs.h <<\_ACEOF
15725 #define HAVE_WORKING_VFORK 1
15726 _ACEOF
15727
15728 else
15729
15730 cat >>confdefs.h <<\_ACEOF
15731 #define vfork fork
15732 _ACEOF
15733
15734 fi
15735 if test "x$ac_cv_func_fork_works" = xyes; then
15736
15737 cat >>confdefs.h <<\_ACEOF
15738 #define HAVE_WORKING_FORK 1
15739 _ACEOF
15740
15741 fi
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761
15762
15763 for ac_func in canonicalize_file_name realpath getrusage getuid \
15764 getgid poll pread64 sbrk setpgid setpgrp setsid \
15765 sigaction sigprocmask sigsetmask socketpair syscall \
15766 ttrace wborder setlocale iconvlist
15767 do
15768 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15769 echo "$as_me:$LINENO: checking for $ac_func" >&5
15770 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15771 if eval "test \"\${$as_ac_var+set}\" = set"; then
15772 echo $ECHO_N "(cached) $ECHO_C" >&6
15773 else
15774 cat >conftest.$ac_ext <<_ACEOF
15775 /* confdefs.h. */
15776 _ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15782 #define $ac_func innocuous_$ac_func
15783
15784 /* System header to define __stub macros and hopefully few prototypes,
15785 which can conflict with char $ac_func (); below.
15786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15787 <limits.h> exists even on freestanding compilers. */
15788
15789 #ifdef __STDC__
15790 # include <limits.h>
15791 #else
15792 # include <assert.h>
15793 #endif
15794
15795 #undef $ac_func
15796
15797 /* Override any gcc2 internal prototype to avoid an error. */
15798 #ifdef __cplusplus
15799 extern "C"
15800 {
15801 #endif
15802 /* We use char because int might match the return type of a gcc2
15803 builtin and then its argument prototype would still apply. */
15804 char $ac_func ();
15805 /* The GNU C library defines this for functions which it implements
15806 to always fail with ENOSYS. Some functions are actually named
15807 something starting with __ and the normal name is an alias. */
15808 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15809 choke me
15810 #else
15811 char (*f) () = $ac_func;
15812 #endif
15813 #ifdef __cplusplus
15814 }
15815 #endif
15816
15817 int
15818 main ()
15819 {
15820 return f != $ac_func;
15821 ;
15822 return 0;
15823 }
15824 _ACEOF
15825 rm -f conftest.$ac_objext conftest$ac_exeext
15826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15827 (eval $ac_link) 2>conftest.er1
15828 ac_status=$?
15829 grep -v '^ *+' conftest.er1 >conftest.err
15830 rm -f conftest.er1
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } &&
15834 { ac_try='test -z "$ac_c_werror_flag"
15835 || test ! -s conftest.err'
15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837 (eval $ac_try) 2>&5
15838 ac_status=$?
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); }; } &&
15841 { ac_try='test -s conftest$ac_exeext'
15842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15843 (eval $ac_try) 2>&5
15844 ac_status=$?
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); }; }; then
15847 eval "$as_ac_var=yes"
15848 else
15849 echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15851
15852 eval "$as_ac_var=no"
15853 fi
15854 rm -f conftest.err conftest.$ac_objext \
15855 conftest$ac_exeext conftest.$ac_ext
15856 fi
15857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15858 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15859 if test `eval echo '${'$as_ac_var'}'` = yes; then
15860 cat >>confdefs.h <<_ACEOF
15861 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15862 _ACEOF
15863
15864 fi
15865 done
15866
15867
15868 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15869 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15870 if test "${am_cv_langinfo_codeset+set}" = set; then
15871 echo $ECHO_N "(cached) $ECHO_C" >&6
15872 else
15873 cat >conftest.$ac_ext <<_ACEOF
15874 /* confdefs.h. */
15875 _ACEOF
15876 cat confdefs.h >>conftest.$ac_ext
15877 cat >>conftest.$ac_ext <<_ACEOF
15878 /* end confdefs.h. */
15879 #include <langinfo.h>
15880 int
15881 main ()
15882 {
15883 char* cs = nl_langinfo(CODESET);
15884 ;
15885 return 0;
15886 }
15887 _ACEOF
15888 rm -f conftest.$ac_objext conftest$ac_exeext
15889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15890 (eval $ac_link) 2>conftest.er1
15891 ac_status=$?
15892 grep -v '^ *+' conftest.er1 >conftest.err
15893 rm -f conftest.er1
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } &&
15897 { ac_try='test -z "$ac_c_werror_flag"
15898 || test ! -s conftest.err'
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; } &&
15904 { ac_try='test -s conftest$ac_exeext'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15907 ac_status=$?
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }; then
15910 am_cv_langinfo_codeset=yes
15911 else
15912 echo "$as_me: failed program was:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15914
15915 am_cv_langinfo_codeset=no
15916 fi
15917 rm -f conftest.err conftest.$ac_objext \
15918 conftest$ac_exeext conftest.$ac_ext
15919
15920 fi
15921 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15922 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
15923 if test $am_cv_langinfo_codeset = yes; then
15924
15925 cat >>confdefs.h <<\_ACEOF
15926 #define HAVE_LANGINFO_CODESET 1
15927 _ACEOF
15928
15929 fi
15930
15931
15932 # Check the return and argument types of ptrace. No canned test for
15933 # this, so roll our own.
15934 gdb_ptrace_headers='
15935 #if HAVE_SYS_TYPES_H
15936 # include <sys/types.h>
15937 #endif
15938 #if HAVE_SYS_PTRACE_H
15939 # include <sys/ptrace.h>
15940 #endif
15941 #if HAVE_UNISTD_H
15942 # include <unistd.h>
15943 #endif
15944 '
15945 # There is no point in checking if we don't have a prototype.
15946 echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
15947 echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
15948 if test "${ac_cv_have_decl_ptrace+set}" = set; then
15949 echo $ECHO_N "(cached) $ECHO_C" >&6
15950 else
15951 cat >conftest.$ac_ext <<_ACEOF
15952 /* confdefs.h. */
15953 _ACEOF
15954 cat confdefs.h >>conftest.$ac_ext
15955 cat >>conftest.$ac_ext <<_ACEOF
15956 /* end confdefs.h. */
15957 $gdb_ptrace_headers
15958
15959 int
15960 main ()
15961 {
15962 #ifndef ptrace
15963 char *p = (char *) ptrace;
15964 #endif
15965
15966 ;
15967 return 0;
15968 }
15969 _ACEOF
15970 rm -f conftest.$ac_objext
15971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15972 (eval $ac_compile) 2>conftest.er1
15973 ac_status=$?
15974 grep -v '^ *+' conftest.er1 >conftest.err
15975 rm -f conftest.er1
15976 cat conftest.err >&5
15977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978 (exit $ac_status); } &&
15979 { ac_try='test -z "$ac_c_werror_flag"
15980 || test ! -s conftest.err'
15981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15982 (eval $ac_try) 2>&5
15983 ac_status=$?
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); }; } &&
15986 { ac_try='test -s conftest.$ac_objext'
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15989 ac_status=$?
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; }; then
15992 ac_cv_have_decl_ptrace=yes
15993 else
15994 echo "$as_me: failed program was:" >&5
15995 sed 's/^/| /' conftest.$ac_ext >&5
15996
15997 ac_cv_have_decl_ptrace=no
15998 fi
15999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16000 fi
16001 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
16002 echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
16003 if test $ac_cv_have_decl_ptrace = yes; then
16004
16005 cat >>confdefs.h <<_ACEOF
16006 #define HAVE_DECL_PTRACE 1
16007 _ACEOF
16008
16009
16010 else
16011 cat >>confdefs.h <<_ACEOF
16012 #define HAVE_DECL_PTRACE 0
16013 _ACEOF
16014
16015
16016 : ${gdb_cv_func_ptrace_ret='int'}
16017 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16018
16019 fi
16020
16021
16022 # Check return type. Varargs (used on GNU/Linux) conflict with the
16023 # empty argument list, so check for that explicitly.
16024 echo "$as_me:$LINENO: checking return type of ptrace" >&5
16025 echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
16026 if test "${gdb_cv_func_ptrace_ret+set}" = set; then
16027 echo $ECHO_N "(cached) $ECHO_C" >&6
16028 else
16029 cat >conftest.$ac_ext <<_ACEOF
16030 /* confdefs.h. */
16031 _ACEOF
16032 cat confdefs.h >>conftest.$ac_ext
16033 cat >>conftest.$ac_ext <<_ACEOF
16034 /* end confdefs.h. */
16035 $gdb_ptrace_headers
16036 int
16037 main ()
16038 {
16039 extern long ptrace (enum __ptrace_request, ...);
16040 ;
16041 return 0;
16042 }
16043 _ACEOF
16044 rm -f conftest.$ac_objext
16045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16046 (eval $ac_compile) 2>conftest.er1
16047 ac_status=$?
16048 grep -v '^ *+' conftest.er1 >conftest.err
16049 rm -f conftest.er1
16050 cat conftest.err >&5
16051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052 (exit $ac_status); } &&
16053 { ac_try='test -z "$ac_c_werror_flag"
16054 || test ! -s conftest.err'
16055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16056 (eval $ac_try) 2>&5
16057 ac_status=$?
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); }; } &&
16060 { ac_try='test -s conftest.$ac_objext'
16061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062 (eval $ac_try) 2>&5
16063 ac_status=$?
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; }; then
16066 gdb_cv_func_ptrace_ret='long'
16067 else
16068 echo "$as_me: failed program was:" >&5
16069 sed 's/^/| /' conftest.$ac_ext >&5
16070
16071 cat >conftest.$ac_ext <<_ACEOF
16072 /* confdefs.h. */
16073 _ACEOF
16074 cat confdefs.h >>conftest.$ac_ext
16075 cat >>conftest.$ac_ext <<_ACEOF
16076 /* end confdefs.h. */
16077 $gdb_ptrace_headers
16078 int
16079 main ()
16080 {
16081 extern int ptrace ();
16082 ;
16083 return 0;
16084 }
16085 _ACEOF
16086 rm -f conftest.$ac_objext
16087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16088 (eval $ac_compile) 2>conftest.er1
16089 ac_status=$?
16090 grep -v '^ *+' conftest.er1 >conftest.err
16091 rm -f conftest.er1
16092 cat conftest.err >&5
16093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16094 (exit $ac_status); } &&
16095 { ac_try='test -z "$ac_c_werror_flag"
16096 || test ! -s conftest.err'
16097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16098 (eval $ac_try) 2>&5
16099 ac_status=$?
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); }; } &&
16102 { ac_try='test -s conftest.$ac_objext'
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16105 ac_status=$?
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; }; then
16108 gdb_cv_func_ptrace_ret='int'
16109 else
16110 echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16112
16113 gdb_cv_func_ptrace_ret='long'
16114 fi
16115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16116 fi
16117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16118 fi
16119 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
16120 echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
16121
16122 cat >>confdefs.h <<_ACEOF
16123 #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
16124 _ACEOF
16125
16126 # Check argument types.
16127 echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
16128 echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
16129 if test "${gdb_cv_func_ptrace_args+set}" = set; then
16130 echo $ECHO_N "(cached) $ECHO_C" >&6
16131 else
16132
16133 cat >conftest.$ac_ext <<_ACEOF
16134 /* confdefs.h. */
16135 _ACEOF
16136 cat confdefs.h >>conftest.$ac_ext
16137 cat >>conftest.$ac_ext <<_ACEOF
16138 /* end confdefs.h. */
16139 $gdb_ptrace_headers
16140 int
16141 main ()
16142 {
16143 extern long ptrace (enum __ptrace_request, ...);
16144 ;
16145 return 0;
16146 }
16147 _ACEOF
16148 rm -f conftest.$ac_objext
16149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16150 (eval $ac_compile) 2>conftest.er1
16151 ac_status=$?
16152 grep -v '^ *+' conftest.er1 >conftest.err
16153 rm -f conftest.er1
16154 cat conftest.err >&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); } &&
16157 { ac_try='test -z "$ac_c_werror_flag"
16158 || test ! -s conftest.err'
16159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16160 (eval $ac_try) 2>&5
16161 ac_status=$?
16162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163 (exit $ac_status); }; } &&
16164 { ac_try='test -s conftest.$ac_objext'
16165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16166 (eval $ac_try) 2>&5
16167 ac_status=$?
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); }; }; then
16170 gdb_cv_func_ptrace_args='int,int,long,long'
16171 else
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.$ac_ext >&5
16174
16175
16176 for gdb_arg1 in 'int' 'long'; do
16177 for gdb_arg2 in 'pid_t' 'int' 'long'; do
16178 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
16179 for gdb_arg4 in 'int' 'long'; do
16180 cat >conftest.$ac_ext <<_ACEOF
16181 /* confdefs.h. */
16182 _ACEOF
16183 cat confdefs.h >>conftest.$ac_ext
16184 cat >>conftest.$ac_ext <<_ACEOF
16185 /* end confdefs.h. */
16186 $gdb_ptrace_headers
16187 int
16188 main ()
16189 {
16190
16191 extern $gdb_cv_func_ptrace_ret
16192 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
16193
16194 ;
16195 return 0;
16196 }
16197 _ACEOF
16198 rm -f conftest.$ac_objext
16199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16200 (eval $ac_compile) 2>conftest.er1
16201 ac_status=$?
16202 grep -v '^ *+' conftest.er1 >conftest.err
16203 rm -f conftest.er1
16204 cat conftest.err >&5
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); } &&
16207 { ac_try='test -z "$ac_c_werror_flag"
16208 || test ! -s conftest.err'
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); }; } &&
16214 { ac_try='test -s conftest.$ac_objext'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16217 ac_status=$?
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16220 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
16221 break 4;
16222 else
16223 echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16225
16226 fi
16227 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16228 for gdb_arg5 in 'int *' 'int' 'long'; do
16229 cat >conftest.$ac_ext <<_ACEOF
16230 /* confdefs.h. */
16231 _ACEOF
16232 cat confdefs.h >>conftest.$ac_ext
16233 cat >>conftest.$ac_ext <<_ACEOF
16234 /* end confdefs.h. */
16235 $gdb_ptrace_headers
16236 int
16237 main ()
16238 {
16239
16240 extern $gdb_cv_func_ptrace_ret
16241 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
16242
16243 ;
16244 return 0;
16245 }
16246 _ACEOF
16247 rm -f conftest.$ac_objext
16248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16249 (eval $ac_compile) 2>conftest.er1
16250 ac_status=$?
16251 grep -v '^ *+' conftest.er1 >conftest.err
16252 rm -f conftest.er1
16253 cat conftest.err >&5
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
16256 { ac_try='test -z "$ac_c_werror_flag"
16257 || test ! -s conftest.err'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16260 ac_status=$?
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; } &&
16263 { ac_try='test -s conftest.$ac_objext'
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; }; then
16269
16270 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
16271 break 5;
16272 else
16273 echo "$as_me: failed program was:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16275
16276 fi
16277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16278 done
16279 done
16280 done
16281 done
16282 done
16283 # Provide a safe default value.
16284 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
16285
16286 fi
16287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16288 fi
16289 echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
16290 echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
16291 ac_save_IFS=$IFS; IFS=','
16292 set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
16293 IFS=$ac_save_IFS
16294 shift
16295
16296 cat >>confdefs.h <<_ACEOF
16297 #define PTRACE_TYPE_ARG3 $3
16298 _ACEOF
16299
16300 if test -n "$5"; then
16301
16302 cat >>confdefs.h <<_ACEOF
16303 #define PTRACE_TYPE_ARG5 $5
16304 _ACEOF
16305
16306 fi
16307
16308 if test "$cross_compiling" = no; then
16309 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16310 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16311 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16312 echo $ECHO_N "(cached) $ECHO_C" >&6
16313 else
16314 if test "$cross_compiling" = yes; then
16315 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16316 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16317 { (exit 1); exit 1; }; }
16318 else
16319 cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h. */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 #if HAVE_UNISTD_H
16326 # include <unistd.h>
16327 #endif
16328
16329 int
16330 main ()
16331 {
16332 /* If this system has a BSD-style setpgrp which takes arguments,
16333 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16334 exit successfully. */
16335 exit (setpgrp (1,1) == -1 ? 0 : 1);
16336 ;
16337 return 0;
16338 }
16339 _ACEOF
16340 rm -f conftest$ac_exeext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16342 (eval $ac_link) 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16348 ac_status=$?
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16351 ac_cv_func_setpgrp_void=no
16352 else
16353 echo "$as_me: program exited with status $ac_status" >&5
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16356
16357 ( exit $ac_status )
16358 ac_cv_func_setpgrp_void=yes
16359 fi
16360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16361 fi
16362 fi
16363 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16364 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16365 if test $ac_cv_func_setpgrp_void = yes; then
16366
16367 cat >>confdefs.h <<\_ACEOF
16368 #define SETPGRP_VOID 1
16369 _ACEOF
16370
16371 fi
16372
16373 else
16374 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16375 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16376 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16377 echo $ECHO_N "(cached) $ECHO_C" >&6
16378 else
16379 cat >conftest.$ac_ext <<_ACEOF
16380 /* confdefs.h. */
16381 _ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16385
16386 #include <unistd.h>
16387
16388 int
16389 main ()
16390 {
16391
16392 if (setpgrp(1,1) == -1)
16393 exit (0);
16394 else
16395 exit (1);
16396
16397 ;
16398 return 0;
16399 }
16400 _ACEOF
16401 rm -f conftest.$ac_objext
16402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16403 (eval $ac_compile) 2>conftest.er1
16404 ac_status=$?
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
16410 { ac_try='test -z "$ac_c_werror_flag"
16411 || test ! -s conftest.err'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; } &&
16417 { ac_try='test -s conftest.$ac_objext'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; }; then
16423 ac_cv_func_setpgrp_void=no
16424 else
16425 echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16427
16428 ac_cv_func_setpgrp_void=yes
16429 fi
16430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16431 fi
16432 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16433 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16434 if test $ac_cv_func_setpgrp_void = yes; then
16435 cat >>confdefs.h <<\_ACEOF
16436 #define SETPGRP_VOID 1
16437 _ACEOF
16438
16439 fi
16440 fi
16441
16442 # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
16443 # since sigsetjmp might only be defined as a macro.
16444 echo "$as_me:$LINENO: checking for sigsetjmp" >&5
16445 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
16446 if test "${gdb_cv_func_sigsetjmp+set}" = set; then
16447 echo $ECHO_N "(cached) $ECHO_C" >&6
16448 else
16449 cat >conftest.$ac_ext <<_ACEOF
16450 /* confdefs.h. */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h. */
16455
16456 #include <setjmp.h>
16457
16458 int
16459 main ()
16460 {
16461 sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
16462 ;
16463 return 0;
16464 }
16465 _ACEOF
16466 rm -f conftest.$ac_objext
16467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16468 (eval $ac_compile) 2>conftest.er1
16469 ac_status=$?
16470 grep -v '^ *+' conftest.er1 >conftest.err
16471 rm -f conftest.er1
16472 cat conftest.err >&5
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); } &&
16475 { ac_try='test -z "$ac_c_werror_flag"
16476 || test ! -s conftest.err'
16477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16478 (eval $ac_try) 2>&5
16479 ac_status=$?
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; } &&
16482 { ac_try='test -s conftest.$ac_objext'
16483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16484 (eval $ac_try) 2>&5
16485 ac_status=$?
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); }; }; then
16488 gdb_cv_func_sigsetjmp=yes
16489 else
16490 echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16492
16493 gdb_cv_func_sigsetjmp=no
16494 fi
16495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16496 fi
16497 echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
16498 echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
16499 if test $gdb_cv_func_sigsetjmp = yes; then
16500
16501 cat >>confdefs.h <<\_ACEOF
16502 #define HAVE_SIGSETJMP 1
16503 _ACEOF
16504
16505 fi
16506
16507 # Assume we'll default to using the included libiberty regex.
16508 gdb_use_included_regex=yes
16509
16510 # However, if the system regex is GNU regex, then default to *not*
16511 # using the included regex.
16512 echo "$as_me:$LINENO: checking for GNU regex" >&5
16513 echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
16514 if test "${gdb_cv_have_gnu_regex+set}" = set; then
16515 echo $ECHO_N "(cached) $ECHO_C" >&6
16516 else
16517 cat >conftest.$ac_ext <<_ACEOF
16518 /* confdefs.h. */
16519 _ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16523 #include <gnu-versions.h>
16524 int
16525 main ()
16526 {
16527 #define REGEX_INTERFACE_VERSION 1
16528 #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
16529 # error "Version mismatch"
16530 #endif
16531 ;
16532 return 0;
16533 }
16534 _ACEOF
16535 rm -f conftest.$ac_objext
16536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16537 (eval $ac_compile) 2>conftest.er1
16538 ac_status=$?
16539 grep -v '^ *+' conftest.er1 >conftest.err
16540 rm -f conftest.er1
16541 cat conftest.err >&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); } &&
16544 { ac_try='test -z "$ac_c_werror_flag"
16545 || test ! -s conftest.err'
16546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547 (eval $ac_try) 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; } &&
16551 { ac_try='test -s conftest.$ac_objext'
16552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553 (eval $ac_try) 2>&5
16554 ac_status=$?
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); }; }; then
16557 gdb_cv_have_gnu_regex=yes
16558 else
16559 echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16561
16562 gdb_cv_have_gnu_regex=no
16563 fi
16564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16565 fi
16566 echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
16567 echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
16568 if test $gdb_cv_have_gnu_regex = yes; then
16569 gdb_use_included_regex=no
16570 fi
16571
16572
16573 # Check whether --with-included-regex or --without-included-regex was given.
16574 if test "${with_included_regex+set}" = set; then
16575 withval="$with_included_regex"
16576 gdb_with_regex=$withval
16577 else
16578 gdb_with_regex=$gdb_use_included_regex
16579 fi;
16580 if test "$gdb_with_regex" = yes; then
16581
16582 cat >>confdefs.h <<\_ACEOF
16583 #define USE_INCLUDED_REGEX 1
16584 _ACEOF
16585
16586 fi
16587
16588 # Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
16589 echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
16590 echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
16591 if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
16592 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 else
16594 cat >conftest.$ac_ext <<_ACEOF
16595 /* confdefs.h. */
16596 _ACEOF
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16600 #include <sys/param.h>
16601 #include <sys/proc.h>
16602
16603
16604 int
16605 main ()
16606 {
16607 static struct thread ac_aggr;
16608 if (ac_aggr.td_pcb)
16609 return 0;
16610 ;
16611 return 0;
16612 }
16613 _ACEOF
16614 rm -f conftest.$ac_objext
16615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16616 (eval $ac_compile) 2>conftest.er1
16617 ac_status=$?
16618 grep -v '^ *+' conftest.er1 >conftest.err
16619 rm -f conftest.er1
16620 cat conftest.err >&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); } &&
16623 { ac_try='test -z "$ac_c_werror_flag"
16624 || test ! -s conftest.err'
16625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16626 (eval $ac_try) 2>&5
16627 ac_status=$?
16628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629 (exit $ac_status); }; } &&
16630 { ac_try='test -s conftest.$ac_objext'
16631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16632 (eval $ac_try) 2>&5
16633 ac_status=$?
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); }; }; then
16636 ac_cv_member_struct_thread_td_pcb=yes
16637 else
16638 echo "$as_me: failed program was:" >&5
16639 sed 's/^/| /' conftest.$ac_ext >&5
16640
16641 cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h. */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h. */
16647 #include <sys/param.h>
16648 #include <sys/proc.h>
16649
16650
16651 int
16652 main ()
16653 {
16654 static struct thread ac_aggr;
16655 if (sizeof ac_aggr.td_pcb)
16656 return 0;
16657 ;
16658 return 0;
16659 }
16660 _ACEOF
16661 rm -f conftest.$ac_objext
16662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16663 (eval $ac_compile) 2>conftest.er1
16664 ac_status=$?
16665 grep -v '^ *+' conftest.er1 >conftest.err
16666 rm -f conftest.er1
16667 cat conftest.err >&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -z "$ac_c_werror_flag"
16671 || test ! -s conftest.err'
16672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16673 (eval $ac_try) 2>&5
16674 ac_status=$?
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); }; } &&
16677 { ac_try='test -s conftest.$ac_objext'
16678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679 (eval $ac_try) 2>&5
16680 ac_status=$?
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); }; }; then
16683 ac_cv_member_struct_thread_td_pcb=yes
16684 else
16685 echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16687
16688 ac_cv_member_struct_thread_td_pcb=no
16689 fi
16690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16691 fi
16692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16693 fi
16694 echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
16695 echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
16696 if test $ac_cv_member_struct_thread_td_pcb = yes; then
16697
16698 cat >>confdefs.h <<_ACEOF
16699 #define HAVE_STRUCT_THREAD_TD_PCB 1
16700 _ACEOF
16701
16702
16703 fi
16704
16705
16706 # See if <sys/lwp.h> defines `struct lwp`.
16707 echo "$as_me:$LINENO: checking for struct lwp" >&5
16708 echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
16709 if test "${gdb_cv_struct_lwp+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16711 else
16712 cat >conftest.$ac_ext <<_ACEOF
16713 /* confdefs.h. */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 #include <sys/param.h>
16719 #include <sys/lwp.h>
16720 int
16721 main ()
16722 {
16723 struct lwp l;
16724 ;
16725 return 0;
16726 }
16727 _ACEOF
16728 rm -f conftest.$ac_objext
16729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16730 (eval $ac_compile) 2>conftest.er1
16731 ac_status=$?
16732 grep -v '^ *+' conftest.er1 >conftest.err
16733 rm -f conftest.er1
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } &&
16737 { ac_try='test -z "$ac_c_werror_flag"
16738 || test ! -s conftest.err'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16741 ac_status=$?
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; } &&
16744 { ac_try='test -s conftest.$ac_objext'
16745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16746 (eval $ac_try) 2>&5
16747 ac_status=$?
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); }; }; then
16750 gdb_cv_struct_lwp=yes
16751 else
16752 echo "$as_me: failed program was:" >&5
16753 sed 's/^/| /' conftest.$ac_ext >&5
16754
16755 gdb_cv_struct_lwp=no
16756 fi
16757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16758 fi
16759 echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
16760 echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
16761 if test $gdb_cv_struct_lwp = yes; then
16762
16763 cat >>confdefs.h <<\_ACEOF
16764 #define HAVE_STRUCT_LWP 1
16765 _ACEOF
16766
16767 fi
16768
16769 # See if <machine/reg.h> degines `struct reg'.
16770 echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
16771 echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
16772 if test "${gdb_cv_struct_reg+set}" = set; then
16773 echo $ECHO_N "(cached) $ECHO_C" >&6
16774 else
16775 cat >conftest.$ac_ext <<_ACEOF
16776 /* confdefs.h. */
16777 _ACEOF
16778 cat confdefs.h >>conftest.$ac_ext
16779 cat >>conftest.$ac_ext <<_ACEOF
16780 /* end confdefs.h. */
16781 #include <sys/types.h>
16782 #include <machine/reg.h>
16783 int
16784 main ()
16785 {
16786 struct reg r;
16787 ;
16788 return 0;
16789 }
16790 _ACEOF
16791 rm -f conftest.$ac_objext
16792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16793 (eval $ac_compile) 2>conftest.er1
16794 ac_status=$?
16795 grep -v '^ *+' conftest.er1 >conftest.err
16796 rm -f conftest.er1
16797 cat conftest.err >&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); } &&
16800 { ac_try='test -z "$ac_c_werror_flag"
16801 || test ! -s conftest.err'
16802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16803 (eval $ac_try) 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); }; } &&
16807 { ac_try='test -s conftest.$ac_objext'
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; }; then
16813 gdb_cv_struct_reg=yes
16814 else
16815 echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16817
16818 gdb_cv_struct_reg=no
16819 fi
16820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16821 fi
16822 echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
16823 echo "${ECHO_T}$gdb_cv_struct_reg" >&6
16824 if test $gdb_cv_struct_reg = yes; then
16825
16826 cat >>confdefs.h <<\_ACEOF
16827 #define HAVE_STRUCT_REG 1
16828 _ACEOF
16829
16830 fi
16831
16832 # See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
16833 # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
16834 echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
16835 echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
16836 if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
16837 echo $ECHO_N "(cached) $ECHO_C" >&6
16838 else
16839 cat >conftest.$ac_ext <<_ACEOF
16840 /* confdefs.h. */
16841 _ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h. */
16845 #include <machine/reg.h>
16846
16847 int
16848 main ()
16849 {
16850 static struct reg ac_aggr;
16851 if (ac_aggr.r_fs)
16852 return 0;
16853 ;
16854 return 0;
16855 }
16856 _ACEOF
16857 rm -f conftest.$ac_objext
16858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16859 (eval $ac_compile) 2>conftest.er1
16860 ac_status=$?
16861 grep -v '^ *+' conftest.er1 >conftest.err
16862 rm -f conftest.er1
16863 cat conftest.err >&5
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
16866 { ac_try='test -z "$ac_c_werror_flag"
16867 || test ! -s conftest.err'
16868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16869 (eval $ac_try) 2>&5
16870 ac_status=$?
16871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); }; } &&
16873 { ac_try='test -s conftest.$ac_objext'
16874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16875 (eval $ac_try) 2>&5
16876 ac_status=$?
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); }; }; then
16879 ac_cv_member_struct_reg_r_fs=yes
16880 else
16881 echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16883
16884 cat >conftest.$ac_ext <<_ACEOF
16885 /* confdefs.h. */
16886 _ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 #include <machine/reg.h>
16891
16892 int
16893 main ()
16894 {
16895 static struct reg ac_aggr;
16896 if (sizeof ac_aggr.r_fs)
16897 return 0;
16898 ;
16899 return 0;
16900 }
16901 _ACEOF
16902 rm -f conftest.$ac_objext
16903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16904 (eval $ac_compile) 2>conftest.er1
16905 ac_status=$?
16906 grep -v '^ *+' conftest.er1 >conftest.err
16907 rm -f conftest.er1
16908 cat conftest.err >&5
16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16910 (exit $ac_status); } &&
16911 { ac_try='test -z "$ac_c_werror_flag"
16912 || test ! -s conftest.err'
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } &&
16918 { ac_try='test -s conftest.$ac_objext'
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 ac_cv_member_struct_reg_r_fs=yes
16925 else
16926 echo "$as_me: failed program was:" >&5
16927 sed 's/^/| /' conftest.$ac_ext >&5
16928
16929 ac_cv_member_struct_reg_r_fs=no
16930 fi
16931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16932 fi
16933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16934 fi
16935 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
16936 echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
16937 if test $ac_cv_member_struct_reg_r_fs = yes; then
16938
16939 cat >>confdefs.h <<_ACEOF
16940 #define HAVE_STRUCT_REG_R_FS 1
16941 _ACEOF
16942
16943
16944 fi
16945 echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
16946 echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
16947 if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16949 else
16950 cat >conftest.$ac_ext <<_ACEOF
16951 /* confdefs.h. */
16952 _ACEOF
16953 cat confdefs.h >>conftest.$ac_ext
16954 cat >>conftest.$ac_ext <<_ACEOF
16955 /* end confdefs.h. */
16956 #include <machine/reg.h>
16957
16958 int
16959 main ()
16960 {
16961 static struct reg ac_aggr;
16962 if (ac_aggr.r_gs)
16963 return 0;
16964 ;
16965 return 0;
16966 }
16967 _ACEOF
16968 rm -f conftest.$ac_objext
16969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16970 (eval $ac_compile) 2>conftest.er1
16971 ac_status=$?
16972 grep -v '^ *+' conftest.er1 >conftest.err
16973 rm -f conftest.er1
16974 cat conftest.err >&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); } &&
16977 { ac_try='test -z "$ac_c_werror_flag"
16978 || test ! -s conftest.err'
16979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16980 (eval $ac_try) 2>&5
16981 ac_status=$?
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); }; } &&
16984 { ac_try='test -s conftest.$ac_objext'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16987 ac_status=$?
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 ac_cv_member_struct_reg_r_gs=yes
16991 else
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16994
16995 cat >conftest.$ac_ext <<_ACEOF
16996 /* confdefs.h. */
16997 _ACEOF
16998 cat confdefs.h >>conftest.$ac_ext
16999 cat >>conftest.$ac_ext <<_ACEOF
17000 /* end confdefs.h. */
17001 #include <machine/reg.h>
17002
17003 int
17004 main ()
17005 {
17006 static struct reg ac_aggr;
17007 if (sizeof ac_aggr.r_gs)
17008 return 0;
17009 ;
17010 return 0;
17011 }
17012 _ACEOF
17013 rm -f conftest.$ac_objext
17014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17015 (eval $ac_compile) 2>conftest.er1
17016 ac_status=$?
17017 grep -v '^ *+' conftest.er1 >conftest.err
17018 rm -f conftest.er1
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_c_werror_flag"
17023 || test ! -s conftest.err'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; } &&
17029 { ac_try='test -s conftest.$ac_objext'
17030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17031 (eval $ac_try) 2>&5
17032 ac_status=$?
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); }; }; then
17035 ac_cv_member_struct_reg_r_gs=yes
17036 else
17037 echo "$as_me: failed program was:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17039
17040 ac_cv_member_struct_reg_r_gs=no
17041 fi
17042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17043 fi
17044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17045 fi
17046 echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
17047 echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
17048 if test $ac_cv_member_struct_reg_r_gs = yes; then
17049
17050 cat >>confdefs.h <<_ACEOF
17051 #define HAVE_STRUCT_REG_R_GS 1
17052 _ACEOF
17053
17054
17055 fi
17056
17057
17058 # See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
17059 echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
17060 echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
17061 if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17063 else
17064 cat >conftest.$ac_ext <<_ACEOF
17065 /* confdefs.h. */
17066 _ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h. */
17070 #include <sys/ptrace.h>
17071 int
17072 main ()
17073 {
17074 PTRACE_GETREGS;
17075 ;
17076 return 0;
17077 }
17078 _ACEOF
17079 rm -f conftest.$ac_objext
17080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17081 (eval $ac_compile) 2>conftest.er1
17082 ac_status=$?
17083 grep -v '^ *+' conftest.er1 >conftest.err
17084 rm -f conftest.er1
17085 cat conftest.err >&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); } &&
17088 { ac_try='test -z "$ac_c_werror_flag"
17089 || test ! -s conftest.err'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest.$ac_objext'
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; }; then
17101 gdb_cv_have_ptrace_getregs=yes
17102 else
17103 echo "$as_me: failed program was:" >&5
17104 sed 's/^/| /' conftest.$ac_ext >&5
17105
17106 gdb_cv_have_ptrace_getregs=no
17107 fi
17108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17109 fi
17110
17111 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
17112 echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
17113 if test $gdb_cv_have_ptrace_getregs = yes; then
17114
17115 cat >>confdefs.h <<\_ACEOF
17116 #define HAVE_PTRACE_GETREGS 1
17117 _ACEOF
17118
17119 fi
17120
17121 # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
17122 echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
17123 echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
17124 if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17126 else
17127 cat >conftest.$ac_ext <<_ACEOF
17128 /* confdefs.h. */
17129 _ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17133 #include <sys/ptrace.h>
17134 int
17135 main ()
17136 {
17137 PTRACE_GETFPXREGS;
17138 ;
17139 return 0;
17140 }
17141 _ACEOF
17142 rm -f conftest.$ac_objext
17143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17144 (eval $ac_compile) 2>conftest.er1
17145 ac_status=$?
17146 grep -v '^ *+' conftest.er1 >conftest.err
17147 rm -f conftest.er1
17148 cat conftest.err >&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } &&
17151 { ac_try='test -z "$ac_c_werror_flag"
17152 || test ! -s conftest.err'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; } &&
17158 { ac_try='test -s conftest.$ac_objext'
17159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17160 (eval $ac_try) 2>&5
17161 ac_status=$?
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; }; then
17164 gdb_cv_have_ptrace_getfpxregs=yes
17165 else
17166 echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17168
17169 gdb_cv_have_ptrace_getfpxregs=no
17170 fi
17171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17172 fi
17173
17174 echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
17175 echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
17176 if test $gdb_cv_have_ptrace_getfpxregs = yes; then
17177
17178 cat >>confdefs.h <<\_ACEOF
17179 #define HAVE_PTRACE_GETFPXREGS 1
17180 _ACEOF
17181
17182 fi
17183
17184 # See if <sys/ptrace.h> provides the PT_GETDBREGS request.
17185 echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
17186 echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
17187 if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
17188 echo $ECHO_N "(cached) $ECHO_C" >&6
17189 else
17190 cat >conftest.$ac_ext <<_ACEOF
17191 /* confdefs.h. */
17192 _ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h. */
17196 #include <sys/types.h>
17197 #include <sys/ptrace.h>
17198 int
17199 main ()
17200 {
17201 PT_GETDBREGS;
17202 ;
17203 return 0;
17204 }
17205 _ACEOF
17206 rm -f conftest.$ac_objext
17207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17208 (eval $ac_compile) 2>conftest.er1
17209 ac_status=$?
17210 grep -v '^ *+' conftest.er1 >conftest.err
17211 rm -f conftest.er1
17212 cat conftest.err >&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } &&
17215 { ac_try='test -z "$ac_c_werror_flag"
17216 || test ! -s conftest.err'
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17219 ac_status=$?
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; } &&
17222 { ac_try='test -s conftest.$ac_objext'
17223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224 (eval $ac_try) 2>&5
17225 ac_status=$?
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; }; then
17228 gdb_cv_have_pt_getdbregs=yes
17229 else
17230 echo "$as_me: failed program was:" >&5
17231 sed 's/^/| /' conftest.$ac_ext >&5
17232
17233 gdb_cv_have_pt_getdbregs=no
17234 fi
17235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17236 fi
17237
17238 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
17239 echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
17240 if test $gdb_cv_have_pt_getdbregs = yes; then
17241
17242 cat >>confdefs.h <<\_ACEOF
17243 #define HAVE_PT_GETDBREGS 1
17244 _ACEOF
17245
17246 fi
17247
17248 # See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
17249 echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
17250 echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
17251 if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
17252 echo $ECHO_N "(cached) $ECHO_C" >&6
17253 else
17254 cat >conftest.$ac_ext <<_ACEOF
17255 /* confdefs.h. */
17256 _ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h. */
17260 #include <sys/types.h>
17261 #include <sys/ptrace.h>
17262 int
17263 main ()
17264 {
17265 PT_GETXMMREGS;
17266 ;
17267 return 0;
17268 }
17269 _ACEOF
17270 rm -f conftest.$ac_objext
17271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17272 (eval $ac_compile) 2>conftest.er1
17273 ac_status=$?
17274 grep -v '^ *+' conftest.er1 >conftest.err
17275 rm -f conftest.er1
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17278 (exit $ac_status); } &&
17279 { ac_try='test -z "$ac_c_werror_flag"
17280 || test ! -s conftest.err'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17283 ac_status=$?
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; } &&
17286 { ac_try='test -s conftest.$ac_objext'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17289 ac_status=$?
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17292 gdb_cv_have_pt_getxmmregs=yes
17293 else
17294 echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17296
17297 gdb_cv_have_pt_getxmmregs=no
17298 fi
17299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17300 fi
17301
17302 echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
17303 echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
17304 if test $gdb_cv_have_pt_getxmmregs = yes; then
17305
17306 cat >>confdefs.h <<\_ACEOF
17307 #define HAVE_PT_GETXMMREGS 1
17308 _ACEOF
17309
17310 fi
17311
17312 # Detect which type of /proc is in use, such as for Unixware or Solaris.
17313
17314 if test "${target}" = "${host}"; then
17315 case "${host}" in
17316 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
17317
17318 cat >>confdefs.h <<\_ACEOF
17319 #define NEW_PROC_API 1
17320 _ACEOF
17321
17322 ;;
17323 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
17324
17325 cat >>confdefs.h <<\_ACEOF
17326 #define NEW_PROC_API 1
17327 _ACEOF
17328
17329 ;;
17330 mips-sgi-irix5*)
17331 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
17332
17333 cat >>confdefs.h <<\_ACEOF
17334 #define _KMEMUSER 1
17335 _ACEOF
17336
17337 ;;
17338 esac
17339 fi
17340
17341 if test "$ac_cv_header_sys_procfs_h" = yes; then
17342 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
17343 echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
17344 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
17345 echo $ECHO_N "(cached) $ECHO_C" >&6
17346 else
17347 cat >conftest.$ac_ext <<_ACEOF
17348 /* confdefs.h. */
17349 _ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17353
17354 #define _SYSCALL32
17355 #include <sys/procfs.h>
17356 int
17357 main ()
17358 {
17359 pstatus_t avar
17360 ;
17361 return 0;
17362 }
17363 _ACEOF
17364 rm -f conftest.$ac_objext
17365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17366 (eval $ac_compile) 2>conftest.er1
17367 ac_status=$?
17368 grep -v '^ *+' conftest.er1 >conftest.err
17369 rm -f conftest.er1
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } &&
17373 { ac_try='test -z "$ac_c_werror_flag"
17374 || test ! -s conftest.err'
17375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376 (eval $ac_try) 2>&5
17377 ac_status=$?
17378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379 (exit $ac_status); }; } &&
17380 { ac_try='test -s conftest.$ac_objext'
17381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17382 (eval $ac_try) 2>&5
17383 ac_status=$?
17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; }; then
17386 bfd_cv_have_sys_procfs_type_pstatus_t=yes
17387 else
17388 echo "$as_me: failed program was:" >&5
17389 sed 's/^/| /' conftest.$ac_ext >&5
17390
17391 bfd_cv_have_sys_procfs_type_pstatus_t=no
17392
17393 fi
17394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17395 fi
17396
17397 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
17398
17399 cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_PSTATUS_T 1
17401 _ACEOF
17402
17403 fi
17404 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
17405 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
17406
17407 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
17408 echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
17409 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17411 else
17412 cat >conftest.$ac_ext <<_ACEOF
17413 /* confdefs.h. */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418
17419 #define _SYSCALL32
17420 #include <sys/procfs.h>
17421 int
17422 main ()
17423 {
17424 prrun_t avar
17425 ;
17426 return 0;
17427 }
17428 _ACEOF
17429 rm -f conftest.$ac_objext
17430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17431 (eval $ac_compile) 2>conftest.er1
17432 ac_status=$?
17433 grep -v '^ *+' conftest.er1 >conftest.err
17434 rm -f conftest.er1
17435 cat conftest.err >&5
17436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } &&
17438 { ac_try='test -z "$ac_c_werror_flag"
17439 || test ! -s conftest.err'
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; } &&
17445 { ac_try='test -s conftest.$ac_objext'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 bfd_cv_have_sys_procfs_type_prrun_t=yes
17452 else
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17455
17456 bfd_cv_have_sys_procfs_type_prrun_t=no
17457
17458 fi
17459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17460 fi
17461
17462 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
17463
17464 cat >>confdefs.h <<\_ACEOF
17465 #define HAVE_PRRUN_T 1
17466 _ACEOF
17467
17468 fi
17469 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
17470 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
17471
17472 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
17473 echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
17474 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
17475 echo $ECHO_N "(cached) $ECHO_C" >&6
17476 else
17477 cat >conftest.$ac_ext <<_ACEOF
17478 /* confdefs.h. */
17479 _ACEOF
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17483
17484 #define _SYSCALL32
17485 #include <sys/procfs.h>
17486 int
17487 main ()
17488 {
17489 gregset_t avar
17490 ;
17491 return 0;
17492 }
17493 _ACEOF
17494 rm -f conftest.$ac_objext
17495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17496 (eval $ac_compile) 2>conftest.er1
17497 ac_status=$?
17498 grep -v '^ *+' conftest.er1 >conftest.err
17499 rm -f conftest.er1
17500 cat conftest.err >&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } &&
17503 { ac_try='test -z "$ac_c_werror_flag"
17504 || test ! -s conftest.err'
17505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17506 (eval $ac_try) 2>&5
17507 ac_status=$?
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); }; } &&
17510 { ac_try='test -s conftest.$ac_objext'
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17513 ac_status=$?
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17516 bfd_cv_have_sys_procfs_type_gregset_t=yes
17517 else
17518 echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17520
17521 bfd_cv_have_sys_procfs_type_gregset_t=no
17522
17523 fi
17524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17525 fi
17526
17527 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
17528
17529 cat >>confdefs.h <<\_ACEOF
17530 #define HAVE_GREGSET_T 1
17531 _ACEOF
17532
17533 fi
17534 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
17535 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
17536
17537 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
17538 echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
17539 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 else
17542 cat >conftest.$ac_ext <<_ACEOF
17543 /* confdefs.h. */
17544 _ACEOF
17545 cat confdefs.h >>conftest.$ac_ext
17546 cat >>conftest.$ac_ext <<_ACEOF
17547 /* end confdefs.h. */
17548
17549 #define _SYSCALL32
17550 #include <sys/procfs.h>
17551 int
17552 main ()
17553 {
17554 fpregset_t avar
17555 ;
17556 return 0;
17557 }
17558 _ACEOF
17559 rm -f conftest.$ac_objext
17560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17561 (eval $ac_compile) 2>conftest.er1
17562 ac_status=$?
17563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
17568 { ac_try='test -z "$ac_c_werror_flag"
17569 || test ! -s conftest.err'
17570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; } &&
17575 { ac_try='test -s conftest.$ac_objext'
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; }; then
17581 bfd_cv_have_sys_procfs_type_fpregset_t=yes
17582 else
17583 echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17585
17586 bfd_cv_have_sys_procfs_type_fpregset_t=no
17587
17588 fi
17589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17590 fi
17591
17592 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
17593
17594 cat >>confdefs.h <<\_ACEOF
17595 #define HAVE_FPREGSET_T 1
17596 _ACEOF
17597
17598 fi
17599 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
17600 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
17601
17602 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
17603 echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
17604 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17606 else
17607 cat >conftest.$ac_ext <<_ACEOF
17608 /* confdefs.h. */
17609 _ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h. */
17613
17614 #define _SYSCALL32
17615 #include <sys/procfs.h>
17616 int
17617 main ()
17618 {
17619 prgregset_t avar
17620 ;
17621 return 0;
17622 }
17623 _ACEOF
17624 rm -f conftest.$ac_objext
17625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17626 (eval $ac_compile) 2>conftest.er1
17627 ac_status=$?
17628 grep -v '^ *+' conftest.er1 >conftest.err
17629 rm -f conftest.er1
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } &&
17633 { ac_try='test -z "$ac_c_werror_flag"
17634 || test ! -s conftest.err'
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; } &&
17640 { ac_try='test -s conftest.$ac_objext'
17641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17642 (eval $ac_try) 2>&5
17643 ac_status=$?
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); }; }; then
17646 bfd_cv_have_sys_procfs_type_prgregset_t=yes
17647 else
17648 echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651 bfd_cv_have_sys_procfs_type_prgregset_t=no
17652
17653 fi
17654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17655 fi
17656
17657 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
17658
17659 cat >>confdefs.h <<\_ACEOF
17660 #define HAVE_PRGREGSET_T 1
17661 _ACEOF
17662
17663 fi
17664 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
17665 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
17666
17667 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
17668 echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
17669 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17671 else
17672 cat >conftest.$ac_ext <<_ACEOF
17673 /* confdefs.h. */
17674 _ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17678
17679 #define _SYSCALL32
17680 #include <sys/procfs.h>
17681 int
17682 main ()
17683 {
17684 prfpregset_t avar
17685 ;
17686 return 0;
17687 }
17688 _ACEOF
17689 rm -f conftest.$ac_objext
17690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17691 (eval $ac_compile) 2>conftest.er1
17692 ac_status=$?
17693 grep -v '^ *+' conftest.er1 >conftest.err
17694 rm -f conftest.er1
17695 cat conftest.err >&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } &&
17698 { ac_try='test -z "$ac_c_werror_flag"
17699 || test ! -s conftest.err'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; } &&
17705 { ac_try='test -s conftest.$ac_objext'
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17708 ac_status=$?
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
17711 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
17712 else
17713 echo "$as_me: failed program was:" >&5
17714 sed 's/^/| /' conftest.$ac_ext >&5
17715
17716 bfd_cv_have_sys_procfs_type_prfpregset_t=no
17717
17718 fi
17719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17720 fi
17721
17722 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
17723
17724 cat >>confdefs.h <<\_ACEOF
17725 #define HAVE_PRFPREGSET_T 1
17726 _ACEOF
17727
17728 fi
17729 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
17730 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
17731
17732 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
17733 echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
17734 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
17735 echo $ECHO_N "(cached) $ECHO_C" >&6
17736 else
17737 cat >conftest.$ac_ext <<_ACEOF
17738 /* confdefs.h. */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17743
17744 #define _SYSCALL32
17745 #include <sys/procfs.h>
17746 int
17747 main ()
17748 {
17749 prgregset32_t avar
17750 ;
17751 return 0;
17752 }
17753 _ACEOF
17754 rm -f conftest.$ac_objext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17756 (eval $ac_compile) 2>conftest.er1
17757 ac_status=$?
17758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
17763 { ac_try='test -z "$ac_c_werror_flag"
17764 || test ! -s conftest.err'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } &&
17770 { ac_try='test -s conftest.$ac_objext'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
17777 else
17778 echo "$as_me: failed program was:" >&5
17779 sed 's/^/| /' conftest.$ac_ext >&5
17780
17781 bfd_cv_have_sys_procfs_type_prgregset32_t=no
17782
17783 fi
17784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17785 fi
17786
17787 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
17788
17789 cat >>confdefs.h <<\_ACEOF
17790 #define HAVE_PRGREGSET32_T 1
17791 _ACEOF
17792
17793 fi
17794 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
17795 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
17796
17797 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
17798 echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
17799 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17801 else
17802 cat >conftest.$ac_ext <<_ACEOF
17803 /* confdefs.h. */
17804 _ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h. */
17808
17809 #define _SYSCALL32
17810 #include <sys/procfs.h>
17811 int
17812 main ()
17813 {
17814 prfpregset32_t avar
17815 ;
17816 return 0;
17817 }
17818 _ACEOF
17819 rm -f conftest.$ac_objext
17820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17821 (eval $ac_compile) 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } &&
17828 { ac_try='test -z "$ac_c_werror_flag"
17829 || test ! -s conftest.err'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try='test -s conftest.$ac_objext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17838 ac_status=$?
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
17842 else
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846 bfd_cv_have_sys_procfs_type_prfpregset32_t=no
17847
17848 fi
17849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17850 fi
17851
17852 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
17853
17854 cat >>confdefs.h <<\_ACEOF
17855 #define HAVE_PRFPREGSET32_T 1
17856 _ACEOF
17857
17858 fi
17859 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
17860 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
17861
17862 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
17863 echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
17864 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 else
17867 cat >conftest.$ac_ext <<_ACEOF
17868 /* confdefs.h. */
17869 _ACEOF
17870 cat confdefs.h >>conftest.$ac_ext
17871 cat >>conftest.$ac_ext <<_ACEOF
17872 /* end confdefs.h. */
17873
17874 #define _SYSCALL32
17875 #include <sys/procfs.h>
17876 int
17877 main ()
17878 {
17879 lwpid_t avar
17880 ;
17881 return 0;
17882 }
17883 _ACEOF
17884 rm -f conftest.$ac_objext
17885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17886 (eval $ac_compile) 2>conftest.er1
17887 ac_status=$?
17888 grep -v '^ *+' conftest.er1 >conftest.err
17889 rm -f conftest.er1
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try='test -z "$ac_c_werror_flag"
17894 || test ! -s conftest.err'
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; } &&
17900 { ac_try='test -s conftest.$ac_objext'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17903 ac_status=$?
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; }; then
17906 bfd_cv_have_sys_procfs_type_lwpid_t=yes
17907 else
17908 echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17910
17911 bfd_cv_have_sys_procfs_type_lwpid_t=no
17912
17913 fi
17914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17915 fi
17916
17917 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
17918
17919 cat >>confdefs.h <<\_ACEOF
17920 #define HAVE_LWPID_T 1
17921 _ACEOF
17922
17923 fi
17924 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
17925 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
17926
17927 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
17928 echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
17929 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932 cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h. */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938
17939 #define _SYSCALL32
17940 #include <sys/procfs.h>
17941 int
17942 main ()
17943 {
17944 psaddr_t avar
17945 ;
17946 return 0;
17947 }
17948 _ACEOF
17949 rm -f conftest.$ac_objext
17950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17951 (eval $ac_compile) 2>conftest.er1
17952 ac_status=$?
17953 grep -v '^ *+' conftest.er1 >conftest.err
17954 rm -f conftest.er1
17955 cat conftest.err >&5
17956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17957 (exit $ac_status); } &&
17958 { ac_try='test -z "$ac_c_werror_flag"
17959 || test ! -s conftest.err'
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; } &&
17965 { ac_try='test -s conftest.$ac_objext'
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17968 ac_status=$?
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; }; then
17971 bfd_cv_have_sys_procfs_type_psaddr_t=yes
17972 else
17973 echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17975
17976 bfd_cv_have_sys_procfs_type_psaddr_t=no
17977
17978 fi
17979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17980 fi
17981
17982 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
17983
17984 cat >>confdefs.h <<\_ACEOF
17985 #define HAVE_PSADDR_T 1
17986 _ACEOF
17987
17988 fi
17989 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
17990 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
17991
17992 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
17993 echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
17994 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
17995 echo $ECHO_N "(cached) $ECHO_C" >&6
17996 else
17997 cat >conftest.$ac_ext <<_ACEOF
17998 /* confdefs.h. */
17999 _ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h. */
18003
18004 #define _SYSCALL32
18005 #include <sys/procfs.h>
18006 int
18007 main ()
18008 {
18009 prsysent_t avar
18010 ;
18011 return 0;
18012 }
18013 _ACEOF
18014 rm -f conftest.$ac_objext
18015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18016 (eval $ac_compile) 2>conftest.er1
18017 ac_status=$?
18018 grep -v '^ *+' conftest.er1 >conftest.err
18019 rm -f conftest.er1
18020 cat conftest.err >&5
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); } &&
18023 { ac_try='test -z "$ac_c_werror_flag"
18024 || test ! -s conftest.err'
18025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18026 (eval $ac_try) 2>&5
18027 ac_status=$?
18028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18029 (exit $ac_status); }; } &&
18030 { ac_try='test -s conftest.$ac_objext'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18033 ac_status=$?
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 bfd_cv_have_sys_procfs_type_prsysent_t=yes
18037 else
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18040
18041 bfd_cv_have_sys_procfs_type_prsysent_t=no
18042
18043 fi
18044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18045 fi
18046
18047 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
18048
18049 cat >>confdefs.h <<\_ACEOF
18050 #define HAVE_PRSYSENT_T 1
18051 _ACEOF
18052
18053 fi
18054 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
18055 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
18056
18057 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
18058 echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
18059 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
18060 echo $ECHO_N "(cached) $ECHO_C" >&6
18061 else
18062 cat >conftest.$ac_ext <<_ACEOF
18063 /* confdefs.h. */
18064 _ACEOF
18065 cat confdefs.h >>conftest.$ac_ext
18066 cat >>conftest.$ac_ext <<_ACEOF
18067 /* end confdefs.h. */
18068
18069 #define _SYSCALL32
18070 #include <sys/procfs.h>
18071 int
18072 main ()
18073 {
18074 pr_sigset_t avar
18075 ;
18076 return 0;
18077 }
18078 _ACEOF
18079 rm -f conftest.$ac_objext
18080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18081 (eval $ac_compile) 2>conftest.er1
18082 ac_status=$?
18083 grep -v '^ *+' conftest.er1 >conftest.err
18084 rm -f conftest.er1
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
18088 { ac_try='test -z "$ac_c_werror_flag"
18089 || test ! -s conftest.err'
18090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091 (eval $ac_try) 2>&5
18092 ac_status=$?
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; } &&
18095 { ac_try='test -s conftest.$ac_objext'
18096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097 (eval $ac_try) 2>&5
18098 ac_status=$?
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; }; then
18101 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
18102 else
18103 echo "$as_me: failed program was:" >&5
18104 sed 's/^/| /' conftest.$ac_ext >&5
18105
18106 bfd_cv_have_sys_procfs_type_pr_sigset_t=no
18107
18108 fi
18109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18110 fi
18111
18112 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
18113
18114 cat >>confdefs.h <<\_ACEOF
18115 #define HAVE_PR_SIGSET_T 1
18116 _ACEOF
18117
18118 fi
18119 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
18120 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
18121
18122 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
18123 echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
18124 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 else
18127 cat >conftest.$ac_ext <<_ACEOF
18128 /* confdefs.h. */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133
18134 #define _SYSCALL32
18135 #include <sys/procfs.h>
18136 int
18137 main ()
18138 {
18139 pr_sigaction64_t avar
18140 ;
18141 return 0;
18142 }
18143 _ACEOF
18144 rm -f conftest.$ac_objext
18145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18146 (eval $ac_compile) 2>conftest.er1
18147 ac_status=$?
18148 grep -v '^ *+' conftest.er1 >conftest.err
18149 rm -f conftest.er1
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -z "$ac_c_werror_flag"
18154 || test ! -s conftest.err'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; } &&
18160 { ac_try='test -s conftest.$ac_objext'
18161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18162 (eval $ac_try) 2>&5
18163 ac_status=$?
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18166 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
18167 else
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18170
18171 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
18172
18173 fi
18174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18175 fi
18176
18177 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
18178
18179 cat >>confdefs.h <<\_ACEOF
18180 #define HAVE_PR_SIGACTION64_T 1
18181 _ACEOF
18182
18183 fi
18184 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
18185 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
18186
18187 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
18188 echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
18189 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18191 else
18192 cat >conftest.$ac_ext <<_ACEOF
18193 /* confdefs.h. */
18194 _ACEOF
18195 cat confdefs.h >>conftest.$ac_ext
18196 cat >>conftest.$ac_ext <<_ACEOF
18197 /* end confdefs.h. */
18198
18199 #define _SYSCALL32
18200 #include <sys/procfs.h>
18201 int
18202 main ()
18203 {
18204 pr_siginfo64_t avar
18205 ;
18206 return 0;
18207 }
18208 _ACEOF
18209 rm -f conftest.$ac_objext
18210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18211 (eval $ac_compile) 2>conftest.er1
18212 ac_status=$?
18213 grep -v '^ *+' conftest.er1 >conftest.err
18214 rm -f conftest.er1
18215 cat conftest.err >&5
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } &&
18218 { ac_try='test -z "$ac_c_werror_flag"
18219 || test ! -s conftest.err'
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; } &&
18225 { ac_try='test -s conftest.$ac_objext'
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; }; then
18231 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
18232 else
18233 echo "$as_me: failed program was:" >&5
18234 sed 's/^/| /' conftest.$ac_ext >&5
18235
18236 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
18237
18238 fi
18239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18240 fi
18241
18242 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
18243
18244 cat >>confdefs.h <<\_ACEOF
18245 #define HAVE_PR_SIGINFO64_T 1
18246 _ACEOF
18247
18248 fi
18249 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
18250 echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
18251
18252
18253
18254
18255
18256 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
18257 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
18258 echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
18259 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18261 else
18262 if test "$cross_compiling" = yes; then
18263 gdb_cv_prfpregset_t_broken=yes
18264 else
18265 cat >conftest.$ac_ext <<_ACEOF
18266 /* confdefs.h. */
18267 _ACEOF
18268 cat confdefs.h >>conftest.$ac_ext
18269 cat >>conftest.$ac_ext <<_ACEOF
18270 /* end confdefs.h. */
18271 #include <sys/procfs.h>
18272 int main ()
18273 {
18274 if (sizeof (prfpregset_t) == sizeof (void *))
18275 return 1;
18276 return 0;
18277 }
18278 _ACEOF
18279 rm -f conftest$ac_exeext
18280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18281 (eval $ac_link) 2>&5
18282 ac_status=$?
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18286 (eval $ac_try) 2>&5
18287 ac_status=$?
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); }; }; then
18290 gdb_cv_prfpregset_t_broken=no
18291 else
18292 echo "$as_me: program exited with status $ac_status" >&5
18293 echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18295
18296 ( exit $ac_status )
18297 gdb_cv_prfpregset_t_broken=yes
18298 fi
18299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18300 fi
18301 fi
18302
18303 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
18304 echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
18305 if test $gdb_cv_prfpregset_t_broken = yes; then
18306
18307 cat >>confdefs.h <<\_ACEOF
18308 #define PRFPREGSET_T_BROKEN 1
18309 _ACEOF
18310
18311 fi
18312 fi
18313
18314
18315 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
18316 echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
18317 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
18318 echo $ECHO_N "(cached) $ECHO_C" >&6
18319 else
18320 cat >conftest.$ac_ext <<_ACEOF
18321 /* confdefs.h. */
18322 _ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18326 #include <unistd.h>
18327 #include <sys/types.h>
18328 #include <sys/procfs.h>
18329
18330 int
18331 main ()
18332 {
18333
18334 int dummy;;
18335 dummy = ioctl(0, PIOCSET, &dummy);
18336
18337 ;
18338 return 0;
18339 }
18340 _ACEOF
18341 rm -f conftest.$ac_objext
18342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18343 (eval $ac_compile) 2>conftest.er1
18344 ac_status=$?
18345 grep -v '^ *+' conftest.er1 >conftest.err
18346 rm -f conftest.er1
18347 cat conftest.err >&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); } &&
18350 { ac_try='test -z "$ac_c_werror_flag"
18351 || test ! -s conftest.err'
18352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353 (eval $ac_try) 2>&5
18354 ac_status=$?
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; } &&
18357 { ac_try='test -s conftest.$ac_objext'
18358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359 (eval $ac_try) 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; }; then
18363 gdb_cv_have_procfs_piocset=yes
18364 else
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18367
18368 gdb_cv_have_procfs_piocset=no
18369 fi
18370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18371 fi
18372
18373 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
18374 echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
18375 if test $gdb_cv_have_procfs_piocset = yes; then
18376
18377 cat >>confdefs.h <<\_ACEOF
18378 #define HAVE_PROCFS_PIOCSET 1
18379 _ACEOF
18380
18381 fi
18382 fi
18383
18384 if test ${host} = ${target} ; then
18385
18386 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
18387 echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
18388 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18390 else
18391 cat >conftest.$ac_ext <<_ACEOF
18392 /* confdefs.h. */
18393 _ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18397 #include <link.h>
18398 int
18399 main ()
18400 {
18401 struct link_map lm; (void) lm.l_addr;
18402 ;
18403 return 0;
18404 }
18405 _ACEOF
18406 rm -f conftest.$ac_objext
18407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18408 (eval $ac_compile) 2>conftest.er1
18409 ac_status=$?
18410 grep -v '^ *+' conftest.er1 >conftest.err
18411 rm -f conftest.er1
18412 cat conftest.err >&5
18413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18414 (exit $ac_status); } &&
18415 { ac_try='test -z "$ac_c_werror_flag"
18416 || test ! -s conftest.err'
18417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418 (eval $ac_try) 2>&5
18419 ac_status=$?
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); }; } &&
18422 { ac_try='test -s conftest.$ac_objext'
18423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18424 (eval $ac_try) 2>&5
18425 ac_status=$?
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); }; }; then
18428 gdb_cv_have_struct_link_map_with_l_members=yes
18429 else
18430 echo "$as_me: failed program was:" >&5
18431 sed 's/^/| /' conftest.$ac_ext >&5
18432
18433 gdb_cv_have_struct_link_map_with_l_members=no
18434 fi
18435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18436 fi
18437
18438 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
18439 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
18440 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
18441
18442 cat >>confdefs.h <<\_ACEOF
18443 #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
18444 _ACEOF
18445
18446 fi
18447
18448
18449 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
18450 echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
18451 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
18452 echo $ECHO_N "(cached) $ECHO_C" >&6
18453 else
18454 cat >conftest.$ac_ext <<_ACEOF
18455 /* confdefs.h. */
18456 _ACEOF
18457 cat confdefs.h >>conftest.$ac_ext
18458 cat >>conftest.$ac_ext <<_ACEOF
18459 /* end confdefs.h. */
18460 #include <sys/types.h>
18461 #include <link.h>
18462 int
18463 main ()
18464 {
18465 struct link_map lm; (void) lm.lm_addr;
18466 ;
18467 return 0;
18468 }
18469 _ACEOF
18470 rm -f conftest.$ac_objext
18471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18472 (eval $ac_compile) 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } &&
18479 { ac_try='test -z "$ac_c_werror_flag"
18480 || test ! -s conftest.err'
18481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482 (eval $ac_try) 2>&5
18483 ac_status=$?
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; } &&
18486 { ac_try='test -s conftest.$ac_objext'
18487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18488 (eval $ac_try) 2>&5
18489 ac_status=$?
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); }; }; then
18492 gdb_cv_have_struct_link_map_with_lm_members=yes
18493 else
18494 echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18496
18497 gdb_cv_have_struct_link_map_with_lm_members=no
18498 fi
18499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18500 fi
18501
18502 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
18503 echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
18504 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
18505
18506 cat >>confdefs.h <<\_ACEOF
18507 #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
18508 _ACEOF
18509
18510 fi
18511
18512
18513 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
18514 echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
18515 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
18516 echo $ECHO_N "(cached) $ECHO_C" >&6
18517 else
18518 cat >conftest.$ac_ext <<_ACEOF
18519 /* confdefs.h. */
18520 _ACEOF
18521 cat confdefs.h >>conftest.$ac_ext
18522 cat >>conftest.$ac_ext <<_ACEOF
18523 /* end confdefs.h. */
18524 #include <sys/types.h>
18525 #ifdef HAVE_NLIST_H
18526 #include <nlist.h>
18527 #endif
18528 #include <link.h>
18529 int
18530 main ()
18531 {
18532 struct so_map lm; (void) lm.som_addr;
18533 ;
18534 return 0;
18535 }
18536 _ACEOF
18537 rm -f conftest.$ac_objext
18538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18539 (eval $ac_compile) 2>conftest.er1
18540 ac_status=$?
18541 grep -v '^ *+' conftest.er1 >conftest.err
18542 rm -f conftest.er1
18543 cat conftest.err >&5
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); } &&
18546 { ac_try='test -z "$ac_c_werror_flag"
18547 || test ! -s conftest.err'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; } &&
18553 { ac_try='test -s conftest.$ac_objext'
18554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555 (eval $ac_try) 2>&5
18556 ac_status=$?
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; }; then
18559 gdb_cv_have_struct_so_map_with_som_members=yes
18560 else
18561 echo "$as_me: failed program was:" >&5
18562 sed 's/^/| /' conftest.$ac_ext >&5
18563
18564 gdb_cv_have_struct_so_map_with_som_members=no
18565 fi
18566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18567 fi
18568
18569 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
18570 echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
18571 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
18572
18573 cat >>confdefs.h <<\_ACEOF
18574 #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
18575 _ACEOF
18576
18577 fi
18578
18579
18580 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
18581 echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
18582 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
18583 echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585 cat >conftest.$ac_ext <<_ACEOF
18586 /* confdefs.h. */
18587 _ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18591 #define _SYSCALL32
18592 #include <sys/link.h>
18593 int
18594 main ()
18595 {
18596 struct link_map32 l;
18597 ;
18598 return 0;
18599 }
18600 _ACEOF
18601 rm -f conftest.$ac_objext
18602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18603 (eval $ac_compile) 2>conftest.er1
18604 ac_status=$?
18605 grep -v '^ *+' conftest.er1 >conftest.err
18606 rm -f conftest.er1
18607 cat conftest.err >&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } &&
18610 { ac_try='test -z "$ac_c_werror_flag"
18611 || test ! -s conftest.err'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18614 ac_status=$?
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; } &&
18617 { ac_try='test -s conftest.$ac_objext'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18620 ac_status=$?
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
18623 gdb_cv_have_struct_link_map32=yes
18624 else
18625 echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18627
18628 gdb_cv_have_struct_link_map32=no
18629 fi
18630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18631 fi
18632
18633 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
18634 echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
18635 if test $gdb_cv_have_struct_link_map32 = yes; then
18636
18637 cat >>confdefs.h <<\_ACEOF
18638 #define HAVE_STRUCT_LINK_MAP32 1
18639 _ACEOF
18640
18641
18642 cat >>confdefs.h <<\_ACEOF
18643 #define _SYSCALL32 1
18644 _ACEOF
18645
18646 fi
18647 fi
18648
18649 # Check if the compiler supports the `long long' type.
18650
18651 echo "$as_me:$LINENO: checking for long long support in compiler" >&5
18652 echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
18653 if test "${gdb_cv_c_long_long+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18655 else
18656 cat >conftest.$ac_ext <<_ACEOF
18657 /* confdefs.h. */
18658 _ACEOF
18659 cat confdefs.h >>conftest.$ac_ext
18660 cat >>conftest.$ac_ext <<_ACEOF
18661 /* end confdefs.h. */
18662 extern long long foo;
18663 int
18664 main ()
18665 {
18666 switch (foo & 2) { case 0: return 1; }
18667 ;
18668 return 0;
18669 }
18670 _ACEOF
18671 rm -f conftest.$ac_objext
18672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18673 (eval $ac_compile) 2>conftest.er1
18674 ac_status=$?
18675 grep -v '^ *+' conftest.er1 >conftest.err
18676 rm -f conftest.er1
18677 cat conftest.err >&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
18680 { ac_try='test -z "$ac_c_werror_flag"
18681 || test ! -s conftest.err'
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest.$ac_objext'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; }; then
18693 gdb_cv_c_long_long=yes
18694 else
18695 echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18697
18698 gdb_cv_c_long_long=no
18699 fi
18700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18701 fi
18702 echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
18703 echo "${ECHO_T}$gdb_cv_c_long_long" >&6
18704 if test $gdb_cv_c_long_long = yes; then
18705
18706 cat >>confdefs.h <<\_ACEOF
18707 #define CC_HAS_LONG_LONG 1
18708 _ACEOF
18709
18710 fi
18711
18712 # Check if the compiler and runtime support printing long longs.
18713
18714 echo "$as_me:$LINENO: checking for long long support in printf" >&5
18715 echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
18716 if test "${gdb_cv_printf_has_long_long+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18718 else
18719 if test "$cross_compiling" = yes; then
18720 gdb_cv_printf_has_long_long=no
18721 else
18722 cat >conftest.$ac_ext <<_ACEOF
18723 /* confdefs.h. */
18724 _ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h. */
18728 $ac_includes_default
18729 int
18730 main ()
18731 {
18732 char buf[32];
18733 long long l = 0;
18734 l = (l << 16) + 0x0123;
18735 l = (l << 16) + 0x4567;
18736 l = (l << 16) + 0x89ab;
18737 l = (l << 16) + 0xcdef;
18738 sprintf (buf, "0x%016llx", l);
18739 return (strcmp ("0x0123456789abcdef", buf));
18740 ;
18741 return 0;
18742 }
18743 _ACEOF
18744 rm -f conftest$ac_exeext
18745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18746 (eval $ac_link) 2>&5
18747 ac_status=$?
18748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18752 ac_status=$?
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; }; then
18755 gdb_cv_printf_has_long_long=yes
18756 else
18757 echo "$as_me: program exited with status $ac_status" >&5
18758 echo "$as_me: failed program was:" >&5
18759 sed 's/^/| /' conftest.$ac_ext >&5
18760
18761 ( exit $ac_status )
18762 gdb_cv_printf_has_long_long=no
18763 fi
18764 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18765 fi
18766 fi
18767 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
18768 echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
18769 if test $gdb_cv_printf_has_long_long = yes; then
18770
18771 cat >>confdefs.h <<\_ACEOF
18772 #define PRINTF_HAS_LONG_LONG 1
18773 _ACEOF
18774
18775 fi
18776
18777 # Check if the compiler and runtime support printing decfloats.
18778
18779 echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
18780 echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
18781 if test "${gdb_cv_printf_has_decfloat+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18783 else
18784 if test "$cross_compiling" = yes; then
18785 gdb_cv_printf_has_decfloat=no
18786 else
18787 cat >conftest.$ac_ext <<_ACEOF
18788 /* confdefs.h. */
18789 _ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h. */
18793 $ac_includes_default
18794 int
18795 main ()
18796 {
18797 char buf[64];
18798 _Decimal32 d32 = 1.2345df;
18799 _Decimal64 d64 = 1.2345dd;
18800 _Decimal128 d128 = 1.2345dl;
18801 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
18802 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
18803 ;
18804 return 0;
18805 }
18806 _ACEOF
18807 rm -f conftest$ac_exeext
18808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18809 (eval $ac_link) 2>&5
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814 (eval $ac_try) 2>&5
18815 ac_status=$?
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; }; then
18818 gdb_cv_printf_has_decfloat=yes
18819 else
18820 echo "$as_me: program exited with status $ac_status" >&5
18821 echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18823
18824 ( exit $ac_status )
18825 gdb_cv_printf_has_decfloat=no
18826 fi
18827 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18828 fi
18829 fi
18830 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
18831 echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
18832 if test $gdb_cv_printf_has_decfloat = yes; then
18833
18834 cat >>confdefs.h <<\_ACEOF
18835 #define PRINTF_HAS_DECFLOAT 1
18836 _ACEOF
18837
18838 fi
18839
18840 # Check if the compiler supports the `long double' type. We can't use
18841 # AC_C_LONG_DOUBLE because that one does additional checks on the
18842 # constants defined in <float.h> that fail on some systems,
18843 # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
18844
18845 echo "$as_me:$LINENO: checking for long double support in compiler" >&5
18846 echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
18847 if test "${gdb_cv_c_long_double+set}" = set; then
18848 echo $ECHO_N "(cached) $ECHO_C" >&6
18849 else
18850 cat >conftest.$ac_ext <<_ACEOF
18851 /* confdefs.h. */
18852 _ACEOF
18853 cat confdefs.h >>conftest.$ac_ext
18854 cat >>conftest.$ac_ext <<_ACEOF
18855 /* end confdefs.h. */
18856 long double foo;
18857 _ACEOF
18858 rm -f conftest.$ac_objext
18859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18860 (eval $ac_compile) 2>conftest.er1
18861 ac_status=$?
18862 grep -v '^ *+' conftest.er1 >conftest.err
18863 rm -f conftest.er1
18864 cat conftest.err >&5
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } &&
18867 { ac_try='test -z "$ac_c_werror_flag"
18868 || test ! -s conftest.err'
18869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870 (eval $ac_try) 2>&5
18871 ac_status=$?
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; } &&
18874 { ac_try='test -s conftest.$ac_objext'
18875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18876 (eval $ac_try) 2>&5
18877 ac_status=$?
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; }; then
18880 gdb_cv_c_long_double=yes
18881 else
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18884
18885 gdb_cv_c_long_double=no
18886 fi
18887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18888 fi
18889 echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
18890 echo "${ECHO_T}$gdb_cv_c_long_double" >&6
18891 if test $gdb_cv_c_long_double = yes; then
18892
18893 cat >>confdefs.h <<\_ACEOF
18894 #define HAVE_LONG_DOUBLE 1
18895 _ACEOF
18896
18897 fi
18898
18899 # Check if the compiler and runtime support printing long doubles.
18900
18901 echo "$as_me:$LINENO: checking for long double support in printf" >&5
18902 echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
18903 if test "${gdb_cv_printf_has_long_double+set}" = set; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18905 else
18906 if test "$cross_compiling" = yes; then
18907 gdb_cv_printf_has_long_double=no
18908 else
18909 cat >conftest.$ac_ext <<_ACEOF
18910 /* confdefs.h. */
18911 _ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h. */
18915 $ac_includes_default
18916 int
18917 main ()
18918 {
18919 char buf[16];
18920 long double f = 3.141592653;
18921 sprintf (buf, "%Lg", f);
18922 return (strncmp ("3.14159", buf, 7));
18923 ;
18924 return 0;
18925 }
18926 _ACEOF
18927 rm -f conftest$ac_exeext
18928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18929 (eval $ac_link) 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934 (eval $ac_try) 2>&5
18935 ac_status=$?
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); }; }; then
18938 gdb_cv_printf_has_long_double=yes
18939 else
18940 echo "$as_me: program exited with status $ac_status" >&5
18941 echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18943
18944 ( exit $ac_status )
18945 gdb_cv_printf_has_long_double=no
18946 fi
18947 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18948 fi
18949 fi
18950 echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
18951 echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
18952 if test $gdb_cv_printf_has_long_double = yes; then
18953
18954 cat >>confdefs.h <<\_ACEOF
18955 #define PRINTF_HAS_LONG_DOUBLE 1
18956 _ACEOF
18957
18958 fi
18959
18960 # Check if the compiler and runtime support scanning long doubles.
18961
18962 echo "$as_me:$LINENO: checking for long double support in scanf" >&5
18963 echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
18964 if test "${gdb_cv_scanf_has_long_double+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18966 else
18967 if test "$cross_compiling" = yes; then
18968 gdb_cv_scanf_has_long_double=no
18969 else
18970 cat >conftest.$ac_ext <<_ACEOF
18971 /* confdefs.h. */
18972 _ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18976 #include <stdio.h>
18977 int
18978 main ()
18979 {
18980 char *buf = "3.141592653";
18981 long double f = 0;
18982 sscanf (buf, "%Lg", &f);
18983 return !(f > 3.14159 && f < 3.14160);
18984 ;
18985 return 0;
18986 }
18987 _ACEOF
18988 rm -f conftest$ac_exeext
18989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18990 (eval $ac_link) 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18995 (eval $ac_try) 2>&5
18996 ac_status=$?
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; }; then
18999 gdb_cv_scanf_has_long_double=yes
19000 else
19001 echo "$as_me: program exited with status $ac_status" >&5
19002 echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19004
19005 ( exit $ac_status )
19006 gdb_cv_scanf_has_long_double=no
19007 fi
19008 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19009 fi
19010 fi
19011 echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
19012 echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
19013 if test $gdb_cv_scanf_has_long_double = yes; then
19014
19015 cat >>confdefs.h <<\_ACEOF
19016 #define SCANF_HAS_LONG_DOUBLE 1
19017 _ACEOF
19018
19019 fi
19020
19021 case ${host_os} in
19022 aix*)
19023 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
19024 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
19025 if test "${gdb_cv_bigtoc+set}" = set; then
19026 echo $ECHO_N "(cached) $ECHO_C" >&6
19027 else
19028
19029 SAVE_LDFLAGS=$LDFLAGS
19030
19031 case $GCC in
19032 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
19033 *) gdb_cv_bigtoc=-bbigtoc ;;
19034 esac
19035
19036 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
19037 cat >conftest.$ac_ext <<_ACEOF
19038 /* confdefs.h. */
19039 _ACEOF
19040 cat confdefs.h >>conftest.$ac_ext
19041 cat >>conftest.$ac_ext <<_ACEOF
19042 /* end confdefs.h. */
19043
19044 int
19045 main ()
19046 {
19047 int i;
19048 ;
19049 return 0;
19050 }
19051 _ACEOF
19052 rm -f conftest.$ac_objext conftest$ac_exeext
19053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19054 (eval $ac_link) 2>conftest.er1
19055 ac_status=$?
19056 grep -v '^ *+' conftest.er1 >conftest.err
19057 rm -f conftest.er1
19058 cat conftest.err >&5
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); } &&
19061 { ac_try='test -z "$ac_c_werror_flag"
19062 || test ! -s conftest.err'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; } &&
19068 { ac_try='test -s conftest$ac_exeext'
19069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19070 (eval $ac_try) 2>&5
19071 ac_status=$?
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; }; then
19074 :
19075 else
19076 echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19078
19079 gdb_cv_bigtoc=
19080 fi
19081 rm -f conftest.err conftest.$ac_objext \
19082 conftest$ac_exeext conftest.$ac_ext
19083 LDFLAGS="${SAVE_LDFLAGS}"
19084
19085 fi
19086 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
19087 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
19088 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
19089 ;;
19090 esac
19091
19092
19093
19094 if test ${build} = ${host} -a ${host} = ${target} ; then
19095 case ${host_os} in
19096 hpux*)
19097 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
19098 echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
19099 if test -f /usr/include/dce/cma_config.h ; then
19100 if test "$GCC" = "yes" ; then
19101 echo "$as_me:$LINENO: result: yes" >&5
19102 echo "${ECHO_T}yes" >&6
19103
19104 cat >>confdefs.h <<\_ACEOF
19105 #define HAVE_HPUX_THREAD_SUPPORT 1
19106 _ACEOF
19107
19108 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
19109 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
19110 else
19111 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
19112 echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
19113 fi
19114 else
19115 echo "$as_me:$LINENO: result: no" >&5
19116 echo "${ECHO_T}no" >&6
19117 fi
19118 ;;
19119 solaris*)
19120 # See if thread_db library is around for Solaris thread debugging.
19121 # Note that we must explicitly test for version 1 of the library
19122 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
19123 # the same API.
19124 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
19125 echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
19126 if test -f /usr/lib/libthread_db.so.1 ; then
19127 echo "$as_me:$LINENO: result: yes" >&5
19128 echo "${ECHO_T}yes" >&6
19129
19130 cat >>confdefs.h <<\_ACEOF
19131 #define HAVE_THREAD_DB_LIB 1
19132 _ACEOF
19133
19134 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
19135 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
19136
19137 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19138 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19139 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19140 echo $ECHO_N "(cached) $ECHO_C" >&6
19141 else
19142 ac_check_lib_save_LIBS=$LIBS
19143 LIBS="-ldl $LIBS"
19144 cat >conftest.$ac_ext <<_ACEOF
19145 /* confdefs.h. */
19146 _ACEOF
19147 cat confdefs.h >>conftest.$ac_ext
19148 cat >>conftest.$ac_ext <<_ACEOF
19149 /* end confdefs.h. */
19150
19151 /* Override any gcc2 internal prototype to avoid an error. */
19152 #ifdef __cplusplus
19153 extern "C"
19154 #endif
19155 /* We use char because int might match the return type of a gcc2
19156 builtin and then its argument prototype would still apply. */
19157 char dlopen ();
19158 int
19159 main ()
19160 {
19161 dlopen ();
19162 ;
19163 return 0;
19164 }
19165 _ACEOF
19166 rm -f conftest.$ac_objext conftest$ac_exeext
19167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19168 (eval $ac_link) 2>conftest.er1
19169 ac_status=$?
19170 grep -v '^ *+' conftest.er1 >conftest.err
19171 rm -f conftest.er1
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } &&
19175 { ac_try='test -z "$ac_c_werror_flag"
19176 || test ! -s conftest.err'
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; } &&
19182 { ac_try='test -s conftest$ac_exeext'
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; }; then
19188 ac_cv_lib_dl_dlopen=yes
19189 else
19190 echo "$as_me: failed program was:" >&5
19191 sed 's/^/| /' conftest.$ac_ext >&5
19192
19193 ac_cv_lib_dl_dlopen=no
19194 fi
19195 rm -f conftest.err conftest.$ac_objext \
19196 conftest$ac_exeext conftest.$ac_ext
19197 LIBS=$ac_check_lib_save_LIBS
19198 fi
19199 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19200 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19201 if test $ac_cv_lib_dl_dlopen = yes; then
19202 cat >>confdefs.h <<_ACEOF
19203 #define HAVE_LIBDL 1
19204 _ACEOF
19205
19206 LIBS="-ldl $LIBS"
19207
19208 fi
19209
19210 if test "$GCC" = "yes" ; then
19211 # The GNU linker requires the -export-dynamic option to make
19212 # all symbols visible in the dynamic symbol table.
19213 hold_ldflags=$LDFLAGS
19214 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
19215 echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
19216 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
19217 cat >conftest.$ac_ext <<_ACEOF
19218 /* confdefs.h. */
19219 _ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19223
19224 int
19225 main ()
19226 {
19227 int i;
19228 ;
19229 return 0;
19230 }
19231 _ACEOF
19232 rm -f conftest.$ac_objext conftest$ac_exeext
19233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19234 (eval $ac_link) 2>conftest.er1
19235 ac_status=$?
19236 grep -v '^ *+' conftest.er1 >conftest.err
19237 rm -f conftest.er1
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } &&
19241 { ac_try='test -z "$ac_c_werror_flag"
19242 || test ! -s conftest.err'
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; } &&
19248 { ac_try='test -s conftest$ac_exeext'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; }; then
19254 found=yes
19255 else
19256 echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19258
19259 found=no
19260 fi
19261 rm -f conftest.err conftest.$ac_objext \
19262 conftest$ac_exeext conftest.$ac_ext
19263 LDFLAGS=$hold_ldflags
19264 echo "$as_me:$LINENO: result: $found" >&5
19265 echo "${ECHO_T}$found" >&6
19266 if test $found = yes; then
19267 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
19268 fi
19269 fi
19270 # Sun randomly tweaked the prototypes in <proc_service.h>
19271 # at one point.
19272 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
19273 echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
19274 if test "${gdb_cv_proc_service_is_old+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
19276 else
19277
19278 cat >conftest.$ac_ext <<_ACEOF
19279 /* confdefs.h. */
19280 _ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h. */
19284
19285 #include <proc_service.h>
19286 ps_err_e ps_pdwrite
19287 (struct ps_prochandle*, psaddr_t, const void*, size_t);
19288
19289 int
19290 main ()
19291 {
19292
19293 ;
19294 return 0;
19295 }
19296 _ACEOF
19297 rm -f conftest.$ac_objext
19298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19299 (eval $ac_compile) 2>conftest.er1
19300 ac_status=$?
19301 grep -v '^ *+' conftest.er1 >conftest.err
19302 rm -f conftest.er1
19303 cat conftest.err >&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); } &&
19306 { ac_try='test -z "$ac_c_werror_flag"
19307 || test ! -s conftest.err'
19308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19309 (eval $ac_try) 2>&5
19310 ac_status=$?
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); }; } &&
19313 { ac_try='test -s conftest.$ac_objext'
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; }; then
19319 gdb_cv_proc_service_is_old=no
19320 else
19321 echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324 gdb_cv_proc_service_is_old=yes
19325 fi
19326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19327
19328 fi
19329
19330 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
19331 echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
19332 if test $gdb_cv_proc_service_is_old = yes; then
19333
19334 cat >>confdefs.h <<\_ACEOF
19335 #define PROC_SERVICE_IS_OLD 1
19336 _ACEOF
19337
19338 fi
19339 else
19340 echo "$as_me:$LINENO: result: no" >&5
19341 echo "${ECHO_T}no" >&6
19342 fi
19343 ;;
19344 aix*)
19345 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
19346 echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
19347 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19349 else
19350 cat >conftest.$ac_ext <<_ACEOF
19351 /* confdefs.h. */
19352 _ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h. */
19356 #include <sys/pthdebug.h>
19357 int
19358 main ()
19359 {
19360 #ifndef PTHDB_VERSION_3
19361 #error
19362 #endif
19363 ;
19364 return 0;
19365 }
19366 _ACEOF
19367 rm -f conftest.$ac_objext
19368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19369 (eval $ac_compile) 2>conftest.er1
19370 ac_status=$?
19371 grep -v '^ *+' conftest.er1 >conftest.err
19372 rm -f conftest.er1
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } &&
19376 { ac_try='test -z "$ac_c_werror_flag"
19377 || test ! -s conftest.err'
19378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; } &&
19383 { ac_try='test -s conftest.$ac_objext'
19384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19385 (eval $ac_try) 2>&5
19386 ac_status=$?
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); }; }; then
19389 gdb_cv_have_aix_thread_debug=yes
19390 else
19391 echo "$as_me: failed program was:" >&5
19392 sed 's/^/| /' conftest.$ac_ext >&5
19393
19394 gdb_cv_have_aix_thread_debug=no
19395 fi
19396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19397 fi
19398
19399 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
19400 echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
19401 if test $gdb_cv_have_aix_thread_debug = yes; then
19402 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
19403 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
19404 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
19405 fi
19406 ;;
19407 esac
19408
19409 fi
19410
19411 if test "x$ac_cv_header_thread_db_h" = "xyes"; then
19412 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
19413 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
19414 if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
19415 echo $ECHO_N "(cached) $ECHO_C" >&6
19416 else
19417 cat >conftest.$ac_ext <<_ACEOF
19418 /* confdefs.h. */
19419 _ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h. */
19423 #include <thread_db.h>
19424 int
19425 main ()
19426 {
19427 int i = TD_NOTALLOC;
19428 ;
19429 return 0;
19430 }
19431 _ACEOF
19432 rm -f conftest.$ac_objext
19433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19434 (eval $ac_compile) 2>conftest.er1
19435 ac_status=$?
19436 grep -v '^ *+' conftest.er1 >conftest.err
19437 rm -f conftest.er1
19438 cat conftest.err >&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); } &&
19441 { ac_try='test -z "$ac_c_werror_flag"
19442 || test ! -s conftest.err'
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; } &&
19448 { ac_try='test -s conftest.$ac_objext'
19449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19450 (eval $ac_try) 2>&5
19451 ac_status=$?
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; }; then
19454 gdb_cv_thread_db_h_has_td_notalloc=yes
19455 else
19456 echo "$as_me: failed program was:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19458
19459 gdb_cv_thread_db_h_has_td_notalloc=no
19460
19461 fi
19462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19463
19464 fi
19465 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
19466 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
19467 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
19468 echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
19469 if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
19470 echo $ECHO_N "(cached) $ECHO_C" >&6
19471 else
19472 cat >conftest.$ac_ext <<_ACEOF
19473 /* confdefs.h. */
19474 _ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19478 #include <thread_db.h>
19479 int
19480 main ()
19481 {
19482 int i = TD_VERSION;
19483 ;
19484 return 0;
19485 }
19486 _ACEOF
19487 rm -f conftest.$ac_objext
19488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19489 (eval $ac_compile) 2>conftest.er1
19490 ac_status=$?
19491 grep -v '^ *+' conftest.er1 >conftest.err
19492 rm -f conftest.er1
19493 cat conftest.err >&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); } &&
19496 { ac_try='test -z "$ac_c_werror_flag"
19497 || test ! -s conftest.err'
19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499 (eval $ac_try) 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; } &&
19503 { ac_try='test -s conftest.$ac_objext'
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; }; then
19509 gdb_cv_thread_db_h_has_td_version=yes
19510 else
19511 echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19513
19514 gdb_cv_thread_db_h_has_td_version=no
19515
19516 fi
19517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19518
19519 fi
19520 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
19521 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
19522 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
19523 echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
19524 if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
19525 echo $ECHO_N "(cached) $ECHO_C" >&6
19526 else
19527 cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h. */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h. */
19533 #include <thread_db.h>
19534 int
19535 main ()
19536 {
19537 int i = TD_NOTLS;
19538 ;
19539 return 0;
19540 }
19541 _ACEOF
19542 rm -f conftest.$ac_objext
19543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19544 (eval $ac_compile) 2>conftest.er1
19545 ac_status=$?
19546 grep -v '^ *+' conftest.er1 >conftest.err
19547 rm -f conftest.er1
19548 cat conftest.err >&5
19549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550 (exit $ac_status); } &&
19551 { ac_try='test -z "$ac_c_werror_flag"
19552 || test ! -s conftest.err'
19553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19554 (eval $ac_try) 2>&5
19555 ac_status=$?
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); }; } &&
19558 { ac_try='test -s conftest.$ac_objext'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; }; then
19564 gdb_cv_thread_db_h_has_td_notls=yes
19565 else
19566 echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19568
19569 gdb_cv_thread_db_h_has_td_notls=no
19570
19571 fi
19572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19573
19574 fi
19575 echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
19576 echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
19577 fi
19578 if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
19579
19580 cat >>confdefs.h <<\_ACEOF
19581 #define THREAD_DB_HAS_TD_NOTALLOC 1
19582 _ACEOF
19583
19584 fi
19585 if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
19586
19587 cat >>confdefs.h <<\_ACEOF
19588 #define THREAD_DB_HAS_TD_VERSION 1
19589 _ACEOF
19590
19591 fi
19592 if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
19593
19594 cat >>confdefs.h <<\_ACEOF
19595 #define THREAD_DB_HAS_TD_NOTLS 1
19596 _ACEOF
19597
19598 fi
19599
19600 if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
19601 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
19602 echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
19603 if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
19604 echo $ECHO_N "(cached) $ECHO_C" >&6
19605 else
19606 cat >conftest.$ac_ext <<_ACEOF
19607 /* confdefs.h. */
19608 _ACEOF
19609 cat confdefs.h >>conftest.$ac_ext
19610 cat >>conftest.$ac_ext <<_ACEOF
19611 /* end confdefs.h. */
19612 #include <sys/syscall.h>
19613 int
19614 main ()
19615 {
19616 int i = __NR_tkill;
19617 ;
19618 return 0;
19619 }
19620 _ACEOF
19621 rm -f conftest.$ac_objext
19622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19623 (eval $ac_compile) 2>conftest.er1
19624 ac_status=$?
19625 grep -v '^ *+' conftest.er1 >conftest.err
19626 rm -f conftest.er1
19627 cat conftest.err >&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); } &&
19630 { ac_try='test -z "$ac_c_werror_flag"
19631 || test ! -s conftest.err'
19632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; } &&
19637 { ac_try='test -s conftest.$ac_objext'
19638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19639 (eval $ac_try) 2>&5
19640 ac_status=$?
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); }; }; then
19643 gdb_cv_sys_syscall_h_has_tkill=yes
19644 else
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19647
19648 gdb_cv_sys_syscall_h_has_tkill=no
19649
19650 fi
19651 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19652
19653 fi
19654 echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
19655 echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
19656 fi
19657 if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
19658
19659 cat >>confdefs.h <<\_ACEOF
19660 #define HAVE_TKILL_SYSCALL 1
19661 _ACEOF
19662
19663 fi
19664
19665 echo "$as_me:$LINENO: checking whether ADDR_NO_RANDOMIZE is declared" >&5
19666 echo $ECHO_N "checking whether ADDR_NO_RANDOMIZE is declared... $ECHO_C" >&6
19667 if test "${ac_cv_have_decl_ADDR_NO_RANDOMIZE+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19669 else
19670 cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h. */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676 #include <sys/personality.h>
19677
19678 int
19679 main ()
19680 {
19681 #ifndef ADDR_NO_RANDOMIZE
19682 char *p = (char *) ADDR_NO_RANDOMIZE;
19683 #endif
19684
19685 ;
19686 return 0;
19687 }
19688 _ACEOF
19689 rm -f conftest.$ac_objext
19690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19691 (eval $ac_compile) 2>conftest.er1
19692 ac_status=$?
19693 grep -v '^ *+' conftest.er1 >conftest.err
19694 rm -f conftest.er1
19695 cat conftest.err >&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } &&
19698 { ac_try='test -z "$ac_c_werror_flag"
19699 || test ! -s conftest.err'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19702 ac_status=$?
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; } &&
19705 { ac_try='test -s conftest.$ac_objext'
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19708 ac_status=$?
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; }; then
19711 ac_cv_have_decl_ADDR_NO_RANDOMIZE=yes
19712 else
19713 echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716 ac_cv_have_decl_ADDR_NO_RANDOMIZE=no
19717 fi
19718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19719 fi
19720 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&5
19721 echo "${ECHO_T}$ac_cv_have_decl_ADDR_NO_RANDOMIZE" >&6
19722 if test $ac_cv_have_decl_ADDR_NO_RANDOMIZE = yes; then
19723
19724 cat >>confdefs.h <<_ACEOF
19725 #define HAVE_DECL_ADDR_NO_RANDOMIZE 1
19726 _ACEOF
19727
19728
19729 else
19730 cat >>confdefs.h <<_ACEOF
19731 #define HAVE_DECL_ADDR_NO_RANDOMIZE 0
19732 _ACEOF
19733
19734
19735 fi
19736
19737
19738
19739 if test "$cross_compiling" = yes; then
19740 cat >conftest.$ac_ext <<_ACEOF
19741 /* confdefs.h. */
19742 _ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h. */
19746 #include <sys/personality.h>
19747 int
19748 main ()
19749 {
19750
19751 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19752 # define ADDR_NO_RANDOMIZE 0x0040000
19753 # endif
19754 /* Test the flag could be set and stays set. */
19755 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19756 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19757 return 1
19758 ;
19759 return 0;
19760 }
19761 _ACEOF
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19764 (eval $ac_link) 2>conftest.er1
19765 ac_status=$?
19766 grep -v '^ *+' conftest.er1 >conftest.err
19767 rm -f conftest.er1
19768 cat conftest.err >&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
19771 { ac_try='test -z "$ac_c_werror_flag"
19772 || test ! -s conftest.err'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19775 ac_status=$?
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest$ac_exeext'
19779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 have_personality=true
19785 else
19786 echo "$as_me: failed program was:" >&5
19787 sed 's/^/| /' conftest.$ac_ext >&5
19788
19789 have_personality=false
19790 fi
19791 rm -f conftest.err conftest.$ac_objext \
19792 conftest$ac_exeext conftest.$ac_ext
19793 else
19794 cat >conftest.$ac_ext <<_ACEOF
19795 /* confdefs.h. */
19796 _ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19800 #include <sys/personality.h>
19801 int
19802 main ()
19803 {
19804
19805 # if !HAVE_DECL_ADDR_NO_RANDOMIZE
19806 # define ADDR_NO_RANDOMIZE 0x0040000
19807 # endif
19808 /* Test the flag could be set and stays set. */
19809 personality (personality (0xffffffff) | ADDR_NO_RANDOMIZE);
19810 if (!(personality (personality (0xffffffff)) & ADDR_NO_RANDOMIZE))
19811 return 1
19812 ;
19813 return 0;
19814 }
19815 _ACEOF
19816 rm -f conftest$ac_exeext
19817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19818 (eval $ac_link) 2>&5
19819 ac_status=$?
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19823 (eval $ac_try) 2>&5
19824 ac_status=$?
19825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19826 (exit $ac_status); }; }; then
19827 have_personality=true
19828 else
19829 echo "$as_me: program exited with status $ac_status" >&5
19830 echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19832
19833 ( exit $ac_status )
19834 have_personality=false
19835 fi
19836 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19837 fi
19838 if $have_personality
19839 then
19840
19841 cat >>confdefs.h <<\_ACEOF
19842 #define HAVE_PERSONALITY 1
19843 _ACEOF
19844
19845 fi
19846
19847
19848
19849 # Check whether --with-sysroot or --without-sysroot was given.
19850 if test "${with_sysroot+set}" = set; then
19851 withval="$with_sysroot"
19852
19853 case ${with_sysroot} in
19854 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
19855 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
19856 esac
19857
19858 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
19859
19860 if test "x$prefix" = xNONE; then
19861 test_prefix=/usr/local
19862 else
19863 test_prefix=$prefix
19864 fi
19865 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19866 test_exec_prefix=$test_prefix
19867 else
19868 test_exec_prefix=$exec_prefix
19869 fi
19870 case ${TARGET_SYSTEM_ROOT} in
19871 "${test_prefix}"|"${test_prefix}/"*|\
19872 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19873 '${prefix}'|'${prefix}/'*|\
19874 '${exec_prefix}'|'${exec_prefix}/'*)
19875 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
19876 TARGET_SYSTEM_ROOT_DEFINE="$t"
19877 ;;
19878 esac
19879
19880 else
19881
19882 TARGET_SYSTEM_ROOT=
19883 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
19884
19885 fi;
19886
19887
19888
19889 system_gdbinit=
19890
19891 # Check whether --with-system-gdbinit or --without-system-gdbinit was given.
19892 if test "${with_system_gdbinit+set}" = set; then
19893 withval="$with_system_gdbinit"
19894 system_gdbinit=${withval}
19895 fi;
19896
19897
19898 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19899 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19900 ac_define_dir=`eval echo $system_gdbinit`
19901 ac_define_dir=`eval echo $ac_define_dir`
19902
19903 cat >>confdefs.h <<_ACEOF
19904 #define SYSTEM_GDBINIT "$ac_define_dir"
19905 _ACEOF
19906
19907
19908
19909 if test "x$prefix" = xNONE; then
19910 test_prefix=$ac_default_prefix
19911 else
19912 test_prefix=$prefix
19913 fi
19914 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
19915 test_exec_prefix=$test_prefix
19916 else
19917 test_exec_prefix=$exec_prefix
19918 fi
19919 case ${system_gdbinit} in
19920 "${test_prefix}"|"${test_prefix}/"*|\
19921 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
19922 '${prefix}'|'${prefix}/'*|\
19923 '${exec_prefix}'|'${exec_prefix}/'*)
19924
19925 cat >>confdefs.h <<\_ACEOF
19926 #define SYSTEM_GDBINIT_RELOCATABLE 1
19927 _ACEOF
19928
19929 ;;
19930 esac
19931
19932 # Check whether --enable-werror or --disable-werror was given.
19933 if test "${enable_werror+set}" = set; then
19934 enableval="$enable_werror"
19935 case "${enableval}" in
19936 yes | y) ERROR_ON_WARNING="yes" ;;
19937 no | n) ERROR_ON_WARNING="no" ;;
19938 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
19939 echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
19940 { (exit 1); exit 1; }; } ;;
19941 esac
19942 fi;
19943
19944 # Enable -Werror by default when using gcc
19945 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
19946 ERROR_ON_WARNING=yes
19947 fi
19948
19949 WERROR_CFLAGS=""
19950 if test "${ERROR_ON_WARNING}" = yes ; then
19951 WERROR_CFLAGS="-Werror"
19952 fi
19953
19954 # The entries after -Wno-pointer-sign are disabled warnings which may
19955 # be enabled in the future, which can not currently be used to build
19956 # GDB.
19957 # NOTE: If you change this list, remember to update
19958 # gdb/doc/gdbint.texinfo.
19959 build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
19960 -Wformat-nonliteral -Wno-pointer-sign \
19961 -Wno-unused -Wno-switch -Wno-char-subscripts"
19962
19963 # Enable -Wno-format by default when using gcc on mingw since many
19964 # GCC versions complain about %I64.
19965 case "${host}" in
19966 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
19967 esac
19968
19969 # Check whether --enable-build-warnings or --disable-build-warnings was given.
19970 if test "${enable_build_warnings+set}" = set; then
19971 enableval="$enable_build_warnings"
19972 case "${enableval}" in
19973 yes) ;;
19974 no) build_warnings="-w";;
19975 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19976 build_warnings="${build_warnings} ${t}";;
19977 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19978 build_warnings="${t} ${build_warnings}";;
19979 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19980 esac
19981 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19982 echo "Setting compiler warning flags = $build_warnings" 6>&1
19983 fi
19984 fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
19985 if test "${enable_gdb_build_warnings+set}" = set; then
19986 enableval="$enable_gdb_build_warnings"
19987 case "${enableval}" in
19988 yes) ;;
19989 no) build_warnings="-w";;
19990 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19991 build_warnings="${build_warnings} ${t}";;
19992 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
19993 build_warnings="${t} ${build_warnings}";;
19994 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
19995 esac
19996 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
19997 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
19998 fi
19999 fi; WARN_CFLAGS=""
20000 if test "x${build_warnings}" != x -a "x$GCC" = xyes
20001 then
20002 echo "$as_me:$LINENO: checking compiler warning flags" >&5
20003 echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
20004 # Separate out the -Werror flag as some files just cannot be
20005 # compiled with it enabled.
20006 for w in ${build_warnings}; do
20007 case $w in
20008 -Werr*) WERROR_CFLAGS=-Werror ;;
20009 *) # Check that GCC accepts it
20010 saved_CFLAGS="$CFLAGS"
20011 CFLAGS="$CFLAGS $w"
20012 cat >conftest.$ac_ext <<_ACEOF
20013 /* confdefs.h. */
20014 _ACEOF
20015 cat confdefs.h >>conftest.$ac_ext
20016 cat >>conftest.$ac_ext <<_ACEOF
20017 /* end confdefs.h. */
20018
20019 int
20020 main ()
20021 {
20022
20023 ;
20024 return 0;
20025 }
20026 _ACEOF
20027 rm -f conftest.$ac_objext
20028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20029 (eval $ac_compile) 2>conftest.er1
20030 ac_status=$?
20031 grep -v '^ *+' conftest.er1 >conftest.err
20032 rm -f conftest.er1
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
20036 { ac_try='test -z "$ac_c_werror_flag"
20037 || test ! -s conftest.err'
20038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; } &&
20043 { ac_try='test -s conftest.$ac_objext'
20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; }; then
20049 WARN_CFLAGS="${WARN_CFLAGS} $w"
20050 else
20051 echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20053
20054 fi
20055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20056 CFLAGS="$saved_CFLAGS"
20057 esac
20058 done
20059 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
20060 echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
20061 fi
20062
20063
20064
20065 # In the Cygwin environment, we need some additional flags.
20066 echo "$as_me:$LINENO: checking for cygwin" >&5
20067 echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
20068 if test "${gdb_cv_os_cygwin+set}" = set; then
20069 echo $ECHO_N "(cached) $ECHO_C" >&6
20070 else
20071 cat >conftest.$ac_ext <<_ACEOF
20072 /* confdefs.h. */
20073 _ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20077
20078 #if defined (__CYGWIN__) || defined (__CYGWIN32__)
20079 lose
20080 #endif
20081 _ACEOF
20082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20083 $EGREP "lose" >/dev/null 2>&1; then
20084 gdb_cv_os_cygwin=yes
20085 else
20086 gdb_cv_os_cygwin=no
20087 fi
20088 rm -f conftest*
20089
20090 fi
20091 echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
20092 echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
20093
20094
20095 SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
20096 case ${host} in
20097 *go32* ) SER_HARDWIRE=ser-go32.o ;;
20098 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
20099 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
20100 esac
20101
20102
20103 # libreadline needs libuser32.a in a cygwin environment
20104 WIN32LIBS=
20105 if test x$gdb_cv_os_cygwin = xyes; then
20106 WIN32LIBS="-luser32"
20107 case "${target}" in
20108 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
20109 ;;
20110 esac
20111 fi
20112
20113 # The ser-tcp.c module requires sockets.
20114 case ${host} in
20115 *mingw32*)
20116
20117 cat >>confdefs.h <<\_ACEOF
20118 #define USE_WIN32API 1
20119 _ACEOF
20120
20121 WIN32LIBS="$WIN32LIBS -lws2_32"
20122 ;;
20123 esac
20124
20125
20126 # Add ELF support to GDB, but only if BFD includes ELF support.
20127 OLD_CFLAGS=$CFLAGS
20128 OLD_LDFLAGS=$LDFLAGS
20129 OLD_LIBS=$LIBS
20130 CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
20131 LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
20132 intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
20133 LIBS="-lbfd -liberty $intl $LIBS"
20134 echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
20135 echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
20136 if test "${gdb_cv_var_elf+set}" = set; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20138 else
20139 cat >conftest.$ac_ext <<_ACEOF
20140 /* confdefs.h. */
20141 _ACEOF
20142 cat confdefs.h >>conftest.$ac_ext
20143 cat >>conftest.$ac_ext <<_ACEOF
20144 /* end confdefs.h. */
20145 #include <stdlib.h>
20146 #include "bfd.h"
20147 #include "elf-bfd.h"
20148
20149 int
20150 main ()
20151 {
20152 bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
20153 ;
20154 return 0;
20155 }
20156 _ACEOF
20157 rm -f conftest.$ac_objext conftest$ac_exeext
20158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20159 (eval $ac_link) 2>conftest.er1
20160 ac_status=$?
20161 grep -v '^ *+' conftest.er1 >conftest.err
20162 rm -f conftest.er1
20163 cat conftest.err >&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } &&
20166 { ac_try='test -z "$ac_c_werror_flag"
20167 || test ! -s conftest.err'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20170 ac_status=$?
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } &&
20173 { ac_try='test -s conftest$ac_exeext'
20174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175 (eval $ac_try) 2>&5
20176 ac_status=$?
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; }; then
20179 gdb_cv_var_elf=yes
20180 else
20181 echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20183
20184 gdb_cv_var_elf=no
20185 fi
20186 rm -f conftest.err conftest.$ac_objext \
20187 conftest$ac_exeext conftest.$ac_ext
20188 fi
20189 echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
20190 echo "${ECHO_T}$gdb_cv_var_elf" >&6
20191 if test $gdb_cv_var_elf = yes; then
20192 CONFIG_OBS="$CONFIG_OBS elfread.o"
20193
20194 cat >>confdefs.h <<\_ACEOF
20195 #define HAVE_ELF 1
20196 _ACEOF
20197
20198 fi
20199 CFLAGS=$OLD_CFLAGS
20200 LDFLAGS=$OLD_LDFLAGS
20201 LIBS=$OLD_LIBS
20202
20203 # Add any host-specific objects to GDB.
20204 CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
20205
20206 LIBGUI="../libgui/src/libgui.a"
20207 GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
20208
20209
20210
20211 WIN32LDAPP=
20212
20213
20214
20215 case "${host}" in
20216 *-*-cygwin* | *-*-mingw* )
20217 configdir="win"
20218 ;;
20219 *)
20220 configdir="unix"
20221 ;;
20222 esac
20223
20224 GDBTKLIBS=
20225 if test "${enable_gdbtk}" = "yes"; then
20226
20227 # Gdbtk must have an absolute path to srcdir in order to run
20228 # properly when not installed.
20229 here=`pwd`
20230 cd ${srcdir}
20231 GDBTK_SRC_DIR=`pwd`
20232 cd $here
20233
20234
20235 #
20236 # Ok, lets find the tcl configuration
20237 # First, look for one uninstalled.
20238 # the alternative search directory is invoked by --with-tcl
20239 #
20240
20241 if test x"${no_tcl}" = x ; then
20242 # we reset no_tcl in case something fails here
20243 no_tcl=true
20244
20245 # Check whether --with-tcl or --without-tcl was given.
20246 if test "${with_tcl+set}" = set; then
20247 withval="$with_tcl"
20248 with_tclconfig=${withval}
20249 fi;
20250 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
20251 echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
20252 if test "${ac_cv_c_tclconfig+set}" = set; then
20253 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 else
20255
20256
20257 # First check to see if --with-tcl was specified.
20258 case "${host}" in
20259 *-*-cygwin*) platDir="win" ;;
20260 *) platDir="unix" ;;
20261 esac
20262 if test x"${with_tclconfig}" != x ; then
20263 if test -f "${with_tclconfig}/tclConfig.sh" ; then
20264 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
20265 else
20266 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
20267 echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
20268 { (exit 1); exit 1; }; }
20269 fi
20270 fi
20271
20272 # then check for a private Tcl installation
20273 if test x"${ac_cv_c_tclconfig}" = x ; then
20274 for i in \
20275 ../tcl \
20276 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20277 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
20278 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
20279 ../../tcl \
20280 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20281 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
20282 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
20283 ../../../tcl \
20284 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20285 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
20286 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null` ; do
20287 if test -f "$i/$platDir/tclConfig.sh" ; then
20288 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20289 break
20290 fi
20291 done
20292 fi
20293
20294 # on Darwin, check in Framework installation locations
20295 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tclconfig}" = x ; then
20296 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20297 `ls -d /Library/Frameworks 2>/dev/null` \
20298 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20299 `ls -d /System/Library/Frameworks 2>/dev/null` \
20300 ; do
20301 if test -f "$i/Tcl.framework/tclConfig.sh" ; then
20302 ac_cv_c_tclconfig=`(cd $i/Tcl.framework; pwd)`
20303 break
20304 fi
20305 done
20306 fi
20307
20308 # check in a few common install locations
20309 if test x"${ac_cv_c_tclconfig}" = x ; then
20310 for i in `ls -d ${libdir} 2>/dev/null` \
20311 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20312 `ls -d ${prefix}/lib 2>/dev/null` \
20313 `ls -d /usr/local/lib 2>/dev/null` \
20314 `ls -d /usr/contrib/lib 2>/dev/null` \
20315 `ls -d /usr/lib 2>/dev/null` \
20316 ; do
20317 if test -f "$i/tclConfig.sh" ; then
20318 ac_cv_c_tclconfig=`(cd $i; pwd)`
20319 break
20320 fi
20321 done
20322 fi
20323
20324 # check in a few other private locations
20325 if test x"${ac_cv_c_tclconfig}" = x ; then
20326 for i in \
20327 ${srcdir}/../tcl \
20328 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
20329 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
20330 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null` ; do
20331 if test -f "$i/$platDir/tclConfig.sh" ; then
20332 ac_cv_c_tclconfig=`(cd $i/$platDir; pwd)`
20333 break
20334 fi
20335 done
20336 fi
20337
20338 fi
20339
20340
20341 if test x"${ac_cv_c_tclconfig}" = x ; then
20342 TCL_BIN_DIR="# no Tcl configs found"
20343 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
20344 echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
20345 else
20346 no_tcl=
20347 TCL_BIN_DIR=${ac_cv_c_tclconfig}
20348 echo "$as_me:$LINENO: result: found ${TCL_BIN_DIR}/tclConfig.sh" >&5
20349 echo "${ECHO_T}found ${TCL_BIN_DIR}/tclConfig.sh" >&6
20350 fi
20351 fi
20352
20353
20354 # If $no_tk is nonempty, then we can't do Tk, and there is no
20355 # point to doing Tcl.
20356
20357 #
20358 # Ok, lets find the tk configuration
20359 # First, look for one uninstalled.
20360 # the alternative search directory is invoked by --with-tk
20361 #
20362
20363 if test x"${no_tk}" = x ; then
20364 # we reset no_tk in case something fails here
20365 no_tk=true
20366
20367 # Check whether --with-tk or --without-tk was given.
20368 if test "${with_tk+set}" = set; then
20369 withval="$with_tk"
20370 with_tkconfig=${withval}
20371 fi;
20372 echo "$as_me:$LINENO: checking for Tk configuration" >&5
20373 echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
20374 if test "${ac_cv_c_tkconfig+set}" = set; then
20375 echo $ECHO_N "(cached) $ECHO_C" >&6
20376 else
20377
20378
20379 # First check to see if --with-tkconfig was specified.
20380 if test x"${with_tkconfig}" != x ; then
20381 if test -f "${with_tkconfig}/tkConfig.sh" ; then
20382 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
20383 else
20384 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
20385 echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
20386 { (exit 1); exit 1; }; }
20387 fi
20388 fi
20389
20390 # then check for a private Tk library
20391 case "${host}" in
20392 *-*-cygwin*) platDir="win" ;;
20393 *) platDir="unix" ;;
20394 esac
20395 if test x"${ac_cv_c_tkconfig}" = x ; then
20396 for i in \
20397 ../tk \
20398 `ls -dr ../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20399 `ls -dr ../tk[8-9].[0-9] 2>/dev/null` \
20400 `ls -dr ../tk[8-9].[0-9]* 2>/dev/null` \
20401 ../../tk \
20402 `ls -dr ../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20403 `ls -dr ../../tk[8-9].[0-9] 2>/dev/null` \
20404 `ls -dr ../../tk[8-9].[0-9]* 2>/dev/null` \
20405 ../../../tk \
20406 `ls -dr ../../../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20407 `ls -dr ../../../tk[8-9].[0-9] 2>/dev/null` \
20408 `ls -dr ../../../tk[8-9].[0-9]* 2>/dev/null` ; do
20409 if test -f "$i/$platDir/tkConfig.sh" ; then
20410 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20411 break
20412 fi
20413 done
20414 fi
20415
20416 # on Darwin, check in Framework installation locations
20417 if test "`uname -s`" = "Darwin" -a x"${ac_cv_c_tkconfig}" = x ; then
20418 for i in `ls -d ~/Library/Frameworks 2>/dev/null` \
20419 `ls -d /Library/Frameworks 2>/dev/null` \
20420 `ls -d /Network/Library/Frameworks 2>/dev/null` \
20421 `ls -d /System/Library/Frameworks 2>/dev/null` \
20422 ; do
20423 if test -f "$i/Tk.framework/tkConfig.sh" ; then
20424 ac_cv_c_tkconfig=`(cd $i/Tk.framework; pwd)`
20425 break
20426 fi
20427 done
20428 fi
20429
20430 # check in a few common install locations
20431 if test x"${ac_cv_c_tkconfig}" = x ; then
20432 for i in `ls -d ${libdir} 2>/dev/null` \
20433 `ls -d ${exec_prefix}/lib 2>/dev/null` \
20434 `ls -d ${prefix}/lib 2>/dev/null` \
20435 `ls -d /usr/local/lib 2>/dev/null` \
20436 `ls -d /usr/contrib/lib 2>/dev/null` \
20437 `ls -d /usr/lib 2>/dev/null` \
20438 ; do
20439 if test -f "$i/tkConfig.sh" ; then
20440 ac_cv_c_tkconfig=`(cd $i; pwd)`
20441 break
20442 fi
20443 done
20444 fi
20445 # check in a few other private locations
20446 if test x"${ac_cv_c_tkconfig}" = x ; then
20447 for i in \
20448 ${srcdir}/../tk \
20449 `ls -dr ${srcdir}/../tk[8-9].[0-9].[0-9]* 2>/dev/null` \
20450 `ls -dr ${srcdir}/../tk[8-9].[0-9] 2>/dev/null` \
20451 `ls -dr ${srcdir}/../tk[8-9].[0-9]* 2>/dev/null` ; do
20452 if test -f "$i/$platDir/tkConfig.sh" ; then
20453 ac_cv_c_tkconfig=`(cd $i/$platDir; pwd)`
20454 break
20455 fi
20456 done
20457 fi
20458
20459 fi
20460
20461
20462 if test x"${ac_cv_c_tkconfig}" = x ; then
20463 TK_BIN_DIR="# no Tk configs found"
20464 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
20465 echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
20466 else
20467 no_tk=
20468 TK_BIN_DIR=${ac_cv_c_tkconfig}
20469 echo "$as_me:$LINENO: result: found ${TK_BIN_DIR}/tkConfig.sh" >&5
20470 echo "${ECHO_T}found ${TK_BIN_DIR}/tkConfig.sh" >&6
20471 fi
20472 fi
20473
20474
20475 if test -z "${no_tcl}" -a -z "${no_tk}"; then
20476
20477 echo "$as_me:$LINENO: checking for existence of ${TCL_BIN_DIR}/tclConfig.sh" >&5
20478 echo $ECHO_N "checking for existence of ${TCL_BIN_DIR}/tclConfig.sh... $ECHO_C" >&6
20479
20480 if test -f "${TCL_BIN_DIR}/tclConfig.sh" ; then
20481 echo "$as_me:$LINENO: result: loading" >&5
20482 echo "${ECHO_T}loading" >&6
20483 . ${TCL_BIN_DIR}/tclConfig.sh
20484 else
20485 echo "$as_me:$LINENO: result: could not find ${TCL_BIN_DIR}/tclConfig.sh" >&5
20486 echo "${ECHO_T}could not find ${TCL_BIN_DIR}/tclConfig.sh" >&6
20487 fi
20488
20489 # eval is required to do the TCL_DBGX substitution
20490 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
20491 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
20492
20493 # If the TCL_BIN_DIR is the build directory (not the install directory),
20494 # then set the common variable name to the value of the build variables.
20495 # For example, the variable TCL_LIB_SPEC will be set to the value
20496 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
20497 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
20498 # installed and uninstalled version of Tcl.
20499 if test -f "${TCL_BIN_DIR}/Makefile" ; then
20500 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
20501 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
20502 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
20503 elif test "`uname -s`" = "Darwin"; then
20504 # If Tcl was built as a framework, attempt to use the libraries
20505 # from the framework at the given location so that linking works
20506 # against Tcl.framework installed in an arbitary location.
20507 case ${TCL_DEFS} in
20508 *TCL_FRAMEWORK*)
20509 if test -f "${TCL_BIN_DIR}/${TCL_LIB_FILE}"; then
20510 for i in "`cd ${TCL_BIN_DIR}; pwd`" \
20511 "`cd ${TCL_BIN_DIR}/../..; pwd`"; do
20512 if test "`basename "$i"`" = "${TCL_LIB_FILE}.framework"; then
20513 TCL_LIB_SPEC="-F`dirname "$i"` -framework ${TCL_LIB_FILE}"
20514 break
20515 fi
20516 done
20517 fi
20518 if test -f "${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"; then
20519 TCL_STUB_LIB_SPEC="-L${TCL_BIN_DIR} ${TCL_STUB_LIB_FLAG}"
20520 TCL_STUB_LIB_PATH="${TCL_BIN_DIR}/${TCL_STUB_LIB_FILE}"
20521 fi
20522 ;;
20523 esac
20524 fi
20525
20526 # eval is required to do the TCL_DBGX substitution
20527 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
20528 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
20529 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
20530 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546 # Check for in-tree tcl
20547 here=`pwd`
20548 cd ${srcdir}/..
20549 topdir=`pwd`
20550 cd ${here}
20551
20552 intree="no"
20553 if test "${TCL_SRC_DIR}" = "${topdir}/tcl"; then
20554 intree="yes"
20555 fi
20556
20557 # Find Tcl private headers
20558 if test x"${intree}" = xno; then
20559
20560 echo "$as_me:$LINENO: checking for Tcl private headers" >&5
20561 echo $ECHO_N "checking for Tcl private headers... $ECHO_C" >&6
20562 private_dir=""
20563 dir=`echo ${TCL_INCLUDE_SPEC}/tcl-private/generic | sed -e s/-I//`
20564 if test -f ${dir}/tclInt.h ; then
20565 private_dir=${dir}
20566 fi
20567
20568 if test x"${private_dir}" = x; then
20569 { { echo "$as_me:$LINENO: error: could not find private Tcl headers" >&5
20570 echo "$as_me: error: could not find private Tcl headers" >&2;}
20571 { (exit 1); exit 1; }; }
20572 else
20573 TCL_PRIVATE_INCLUDE="-I${private_dir}"
20574 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20575 echo "${ECHO_T}${private_dir}" >&6
20576 fi
20577
20578 TCL_INCLUDE="${TCL_INCLUDE_SPEC} ${TCL_PRIVATE_INCLUDE}"
20579 TCL_LIBRARY="${TCL_LIB_SPEC}"
20580 TCL_DEPS=""
20581 else
20582 # If building tcl in the same src tree, private headers
20583 # are not needed, but we need to be sure to use the right
20584 # headers library
20585 TCL_INCLUDE="-I${TCL_SRC_DIR}/generic"
20586 TCL_LIBRARY="${TCL_BUILD_LIB_SPEC}"
20587 TCL_DEPS="../tcl/${configdir}${TCL_LIB_FILE}"
20588 fi
20589
20590
20591
20592
20593
20594 echo "$as_me:$LINENO: checking for existence of ${TK_BIN_DIR}/tkConfig.sh" >&5
20595 echo $ECHO_N "checking for existence of ${TK_BIN_DIR}/tkConfig.sh... $ECHO_C" >&6
20596
20597 if test -f "${TK_BIN_DIR}/tkConfig.sh" ; then
20598 echo "$as_me:$LINENO: result: loading" >&5
20599 echo "${ECHO_T}loading" >&6
20600 . ${TK_BIN_DIR}/tkConfig.sh
20601 else
20602 echo "$as_me:$LINENO: result: could not find ${TK_BIN_DIR}/tkConfig.sh" >&5
20603 echo "${ECHO_T}could not find ${TK_BIN_DIR}/tkConfig.sh" >&6
20604 fi
20605
20606 # eval is required to do the TK_DBGX substitution
20607 eval "TK_LIB_FILE=\"${TK_LIB_FILE}\""
20608 eval "TK_STUB_LIB_FILE=\"${TK_STUB_LIB_FILE}\""
20609
20610 # If the TK_BIN_DIR is the build directory (not the install directory),
20611 # then set the common variable name to the value of the build variables.
20612 # For example, the variable TK_LIB_SPEC will be set to the value
20613 # of TK_BUILD_LIB_SPEC. An extension should make use of TK_LIB_SPEC
20614 # instead of TK_BUILD_LIB_SPEC since it will work with both an
20615 # installed and uninstalled version of Tcl.
20616 if test -f "${TK_BIN_DIR}/Makefile" ; then
20617 TK_LIB_SPEC=${TK_BUILD_LIB_SPEC}
20618 TK_STUB_LIB_SPEC=${TK_BUILD_STUB_LIB_SPEC}
20619 TK_STUB_LIB_PATH=${TK_BUILD_STUB_LIB_PATH}
20620 elif test "`uname -s`" = "Darwin"; then
20621 # If Tk was built as a framework, attempt to use the libraries
20622 # from the framework at the given location so that linking works
20623 # against Tk.framework installed in an arbitary location.
20624 case ${TK_DEFS} in
20625 *TK_FRAMEWORK*)
20626 if test -f "${TK_BIN_DIR}/${TK_LIB_FILE}"; then
20627 for i in "`cd ${TK_BIN_DIR}; pwd`" \
20628 "`cd ${TK_BIN_DIR}/../..; pwd`"; do
20629 if test "`basename "$i"`" = "${TK_LIB_FILE}.framework"; then
20630 TK_LIB_SPEC="-F`dirname "$i"` -framework ${TK_LIB_FILE}"
20631 break
20632 fi
20633 done
20634 fi
20635 if test -f "${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"; then
20636 TK_STUB_LIB_SPEC="-L${TK_BIN_DIR} ${TK_STUB_LIB_FLAG}"
20637 TK_STUB_LIB_PATH="${TK_BIN_DIR}/${TK_STUB_LIB_FILE}"
20638 fi
20639 ;;
20640 esac
20641 fi
20642
20643 # eval is required to do the TK_DBGX substitution
20644 eval "TK_LIB_FLAG=\"${TK_LIB_FLAG}\""
20645 eval "TK_LIB_SPEC=\"${TK_LIB_SPEC}\""
20646 eval "TK_STUB_LIB_FLAG=\"${TK_STUB_LIB_FLAG}\""
20647 eval "TK_STUB_LIB_SPEC=\"${TK_STUB_LIB_SPEC}\""
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662 # Check for in-tree Tk
20663 intree="no"
20664 if test "${TK_SRC_DIR}" = "${topdir}/tk"; then
20665 intree="yes"
20666 fi
20667
20668 # Find Tk private headers
20669 if test x"${intree}" = xno; then
20670
20671 echo "$as_me:$LINENO: checking for Tk private headers" >&5
20672 echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
20673 private_dir=""
20674 dir=`echo ${TK_INCLUDE_SPEC}/tk-private/generic | sed -e s/-I//`
20675 if test -f ${dir}/tkInt.h; then
20676 private_dir=${dir}
20677 fi
20678
20679 if test x"${private_dir}" = x; then
20680 { { echo "$as_me:$LINENO: error: could not find Tk private headers" >&5
20681 echo "$as_me: error: could not find Tk private headers" >&2;}
20682 { (exit 1); exit 1; }; }
20683 else
20684 TK_PRIVATE_INCLUDE="-I${private_dir}"
20685 echo "$as_me:$LINENO: result: ${private_dir}" >&5
20686 echo "${ECHO_T}${private_dir}" >&6
20687 fi
20688
20689 TK_INCLUDE="${TK_INCLUDE_SPEC} ${TK_PRIVATE_INCLUDE}"
20690 TK_LIBRARY=${TK_LIB_SPEC}
20691 TK_DEPS=""
20692 else
20693 TK_INCLUDE="-I${TK_SRC_DIR}/generic"
20694 TK_LIBRARY="${TK_BUILD_LIB_SPEC}"
20695 TK_DEPS="../tk/${configdir}/${TK_LIB_FILE}"
20696 fi
20697
20698
20699
20700
20701
20702 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
20703
20704 # Include some libraries that Tcl and Tk want.
20705 TCL_LIBS='$(LIBGUI) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
20706 # Yes, the ordering seems wrong here. But it isn't.
20707 # TK_LIBS is the list of libraries that need to be linked
20708 # after Tcl/Tk. Note that this isn't put into LIBS. If it
20709 # were in LIBS then any link tests after this point would
20710 # try to include things like `$(LIBGUI)', which wouldn't work.
20711 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
20712
20713 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
20714 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
20715 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
20716 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
20717 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
20718 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
20719 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
20720
20721 if test x$gdb_cv_os_cygwin = xyes; then
20722 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
20723 WIN32LDAPP="-Wl,--subsystem,console"
20724 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
20725 fi
20726
20727
20728
20729 subdirs="$subdirs gdbtk"
20730
20731 fi
20732 fi
20733
20734
20735
20736
20737
20738
20739
20740
20741 echo "$as_me:$LINENO: checking for X" >&5
20742 echo $ECHO_N "checking for X... $ECHO_C" >&6
20743
20744
20745 # Check whether --with-x or --without-x was given.
20746 if test "${with_x+set}" = set; then
20747 withval="$with_x"
20748
20749 fi;
20750 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20751 if test "x$with_x" = xno; then
20752 # The user explicitly disabled X.
20753 have_x=disabled
20754 else
20755 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20756 # Both variables are already set.
20757 have_x=yes
20758 else
20759 if test "${ac_cv_have_x+set}" = set; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20761 else
20762 # One or both of the vars are not set, and there is no cached value.
20763 ac_x_includes=no ac_x_libraries=no
20764 rm -fr conftest.dir
20765 if mkdir conftest.dir; then
20766 cd conftest.dir
20767 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20768 cat >Imakefile <<'_ACEOF'
20769 acfindx:
20770 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20771 _ACEOF
20772 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20773 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20774 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20775 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20776 for ac_extension in a so sl; do
20777 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20778 test -f $ac_im_libdir/libX11.$ac_extension; then
20779 ac_im_usrlibdir=$ac_im_libdir; break
20780 fi
20781 done
20782 # Screen out bogus values from the imake configuration. They are
20783 # bogus both because they are the default anyway, and because
20784 # using them would break gcc on systems where it needs fixed includes.
20785 case $ac_im_incroot in
20786 /usr/include) ;;
20787 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20788 esac
20789 case $ac_im_usrlibdir in
20790 /usr/lib | /lib) ;;
20791 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20792 esac
20793 fi
20794 cd ..
20795 rm -fr conftest.dir
20796 fi
20797
20798 # Standard set of common directories for X headers.
20799 # Check X11 before X11Rn because it is often a symlink to the current release.
20800 ac_x_header_dirs='
20801 /usr/X11/include
20802 /usr/X11R6/include
20803 /usr/X11R5/include
20804 /usr/X11R4/include
20805
20806 /usr/include/X11
20807 /usr/include/X11R6
20808 /usr/include/X11R5
20809 /usr/include/X11R4
20810
20811 /usr/local/X11/include
20812 /usr/local/X11R6/include
20813 /usr/local/X11R5/include
20814 /usr/local/X11R4/include
20815
20816 /usr/local/include/X11
20817 /usr/local/include/X11R6
20818 /usr/local/include/X11R5
20819 /usr/local/include/X11R4
20820
20821 /usr/X386/include
20822 /usr/x386/include
20823 /usr/XFree86/include/X11
20824
20825 /usr/include
20826 /usr/local/include
20827 /usr/unsupported/include
20828 /usr/athena/include
20829 /usr/local/x11r5/include
20830 /usr/lpp/Xamples/include
20831
20832 /usr/openwin/include
20833 /usr/openwin/share/include'
20834
20835 if test "$ac_x_includes" = no; then
20836 # Guess where to find include files, by looking for Intrinsic.h.
20837 # First, try using that file with no special directory specified.
20838 cat >conftest.$ac_ext <<_ACEOF
20839 /* confdefs.h. */
20840 _ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h. */
20844 #include <X11/Intrinsic.h>
20845 _ACEOF
20846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20848 ac_status=$?
20849 grep -v '^ *+' conftest.er1 >conftest.err
20850 rm -f conftest.er1
20851 cat conftest.err >&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } >/dev/null; then
20854 if test -s conftest.err; then
20855 ac_cpp_err=$ac_c_preproc_warn_flag
20856 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20857 else
20858 ac_cpp_err=
20859 fi
20860 else
20861 ac_cpp_err=yes
20862 fi
20863 if test -z "$ac_cpp_err"; then
20864 # We can compile using X headers with no special include directory.
20865 ac_x_includes=
20866 else
20867 echo "$as_me: failed program was:" >&5
20868 sed 's/^/| /' conftest.$ac_ext >&5
20869
20870 for ac_dir in $ac_x_header_dirs; do
20871 if test -r "$ac_dir/X11/Intrinsic.h"; then
20872 ac_x_includes=$ac_dir
20873 break
20874 fi
20875 done
20876 fi
20877 rm -f conftest.err conftest.$ac_ext
20878 fi # $ac_x_includes = no
20879
20880 if test "$ac_x_libraries" = no; then
20881 # Check for the libraries.
20882 # See if we find them without any special options.
20883 # Don't add to $LIBS permanently.
20884 ac_save_LIBS=$LIBS
20885 LIBS="-lXt $LIBS"
20886 cat >conftest.$ac_ext <<_ACEOF
20887 /* confdefs.h. */
20888 _ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 #include <X11/Intrinsic.h>
20893 int
20894 main ()
20895 {
20896 XtMalloc (0)
20897 ;
20898 return 0;
20899 }
20900 _ACEOF
20901 rm -f conftest.$ac_objext conftest$ac_exeext
20902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20903 (eval $ac_link) 2>conftest.er1
20904 ac_status=$?
20905 grep -v '^ *+' conftest.er1 >conftest.err
20906 rm -f conftest.er1
20907 cat conftest.err >&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } &&
20910 { ac_try='test -z "$ac_c_werror_flag"
20911 || test ! -s conftest.err'
20912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913 (eval $ac_try) 2>&5
20914 ac_status=$?
20915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916 (exit $ac_status); }; } &&
20917 { ac_try='test -s conftest$ac_exeext'
20918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20919 (eval $ac_try) 2>&5
20920 ac_status=$?
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); }; }; then
20923 LIBS=$ac_save_LIBS
20924 # We can link X programs with no special library path.
20925 ac_x_libraries=
20926 else
20927 echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20929
20930 LIBS=$ac_save_LIBS
20931 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20932 do
20933 # Don't even attempt the hair of trying to link an X program!
20934 for ac_extension in a so sl; do
20935 if test -r $ac_dir/libXt.$ac_extension; then
20936 ac_x_libraries=$ac_dir
20937 break 2
20938 fi
20939 done
20940 done
20941 fi
20942 rm -f conftest.err conftest.$ac_objext \
20943 conftest$ac_exeext conftest.$ac_ext
20944 fi # $ac_x_libraries = no
20945
20946 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20947 # Didn't find X anywhere. Cache the known absence of X.
20948 ac_cv_have_x="have_x=no"
20949 else
20950 # Record where we found X for the cache.
20951 ac_cv_have_x="have_x=yes \
20952 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20953 fi
20954 fi
20955
20956 fi
20957 eval "$ac_cv_have_x"
20958 fi # $with_x != no
20959
20960 if test "$have_x" != yes; then
20961 echo "$as_me:$LINENO: result: $have_x" >&5
20962 echo "${ECHO_T}$have_x" >&6
20963 no_x=yes
20964 else
20965 # If each of the values was on the command line, it overrides each guess.
20966 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20967 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20968 # Update the cache value to reflect the command line values.
20969 ac_cv_have_x="have_x=yes \
20970 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20971 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20972 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20973 fi
20974
20975
20976 # Unlike the sim directory, whether a simulator is linked is controlled by
20977 # presence of a gdb_sim definition in the target configure.tgt entry.
20978 # This code just checks for a few cases where we'd like to ignore those
20979 # definitions, even when they're present in the '.mt' file. These cases
20980 # are when --disable-sim is specified, or if the simulator directory is
20981 # not part of the source tree.
20982 #
20983 # Check whether --enable-sim or --disable-sim was given.
20984 if test "${enable_sim+set}" = set; then
20985 enableval="$enable_sim"
20986 echo "enable_sim = $enable_sim";
20987 echo "enableval = ${enableval}";
20988 case "${enableval}" in
20989 yes) ignore_sim=false ;;
20990 no) ignore_sim=true ;;
20991 *) ignore_sim=false ;;
20992 esac
20993 else
20994 ignore_sim=false
20995 fi;
20996
20997 if test ! -d "${srcdir}/../sim"; then
20998 ignore_sim=true
20999 fi
21000
21001 SIM=
21002 SIM_OBS=
21003 if test "${ignore_sim}" = "false"; then
21004 if test x"${gdb_sim}" != x ; then
21005 SIM="${gdb_sim}"
21006 SIM_OBS="remote-sim.o"
21007
21008 cat >>confdefs.h <<\_ACEOF
21009 #define WITH_SIM 1
21010 _ACEOF
21011
21012 fi
21013 fi
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028 # List of host floatformats.
21029
21030 cat >>confdefs.h <<_ACEOF
21031 #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
21032 _ACEOF
21033
21034
21035 cat >>confdefs.h <<_ACEOF
21036 #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
21037 _ACEOF
21038
21039
21040 cat >>confdefs.h <<_ACEOF
21041 #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
21042 _ACEOF
21043
21044
21045 # target_subdir is used by the testsuite to find the target libraries.
21046 target_subdir=
21047 if test "${host}" != "${target}"; then
21048 target_subdir="${target_alias}/"
21049 fi
21050
21051
21052 frags=
21053 if test "${gdb_native}" = "yes"; then
21054 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
21055 if test ! -f ${host_makefile_frag}; then
21056 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
21057 echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
21058 { (exit 1); exit 1; }; }
21059 fi
21060 frags="$frags $host_makefile_frag"
21061 else
21062 host_makefile_frag=/dev/null
21063 fi
21064
21065
21066
21067
21068 if test "${gdb_native}" = "yes"; then
21069 # We pick this up from the host configuration file (.mh) because we
21070 # do not have a native configuration Makefile fragment.
21071 nativefile=`sed -n '
21072 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
21073 ' ${host_makefile_frag}`
21074 fi
21075
21076
21077 if test x"${gdb_osabi}" != x ; then
21078
21079 cat >>confdefs.h <<_ACEOF
21080 #define GDB_OSABI_DEFAULT $gdb_osabi
21081 _ACEOF
21082
21083 fi
21084
21085 # Enable multi-ice-gdb-server.
21086 # Check whether --enable-multi-ice or --disable-multi-ice was given.
21087 if test "${enable_multi_ice+set}" = set; then
21088 enableval="$enable_multi_ice"
21089 case $enableval in
21090 yes | no)
21091 ;;
21092 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
21093 echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
21094 { (exit 1); exit 1; }; } ;;
21095 esac
21096 fi;
21097 if test "x$enable_multi_ice" = xyes; then
21098
21099
21100 subdirs="$subdirs multi-ice"
21101
21102 fi
21103
21104 # We only build gdbserver automatically in a native configuration.
21105 if test "$gdb_native" = "yes"; then
21106 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
21107 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
21108 if test "x$build_gdbserver" = xyes; then
21109 echo "$as_me:$LINENO: result: yes" >&5
21110 echo "${ECHO_T}yes" >&6
21111
21112
21113 subdirs="$subdirs gdbserver"
21114
21115 else
21116 echo "$as_me:$LINENO: result: no" >&5
21117 echo "${ECHO_T}no" >&6
21118 fi
21119 fi
21120
21121 # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
21122 # to an empty version.
21123
21124 files=
21125 links=
21126
21127 rm -f nm.h
21128 nm_h=""
21129 if test "${nativefile}" != ""; then
21130 nm_h=nm.h
21131 case "${nativefile}" in
21132 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
21133 * ) GDB_NM_FILE="${nativefile}"
21134 esac
21135 files="${files} ${GDB_NM_FILE}"
21136 links="${links} nm.h"
21137
21138 cat >>confdefs.h <<_ACEOF
21139 #define GDB_NM_FILE "${GDB_NM_FILE}"
21140 _ACEOF
21141
21142 fi
21143
21144
21145 ac_sources="$files"
21146 ac_dests="$links"
21147 while test -n "$ac_sources"; do
21148 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
21149 set $ac_sources; ac_source=$1; shift; ac_sources=$*
21150 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
21151 done
21152 ac_config_links="$ac_config_links $ac_config_links_1"
21153
21154
21155
21156
21157
21158 cat >>confdefs.h <<\_ACEOF
21159 #define GDB_DEFAULT_HOST_CHARSET "UTF-8"
21160 _ACEOF
21161
21162
21163 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
21164 ac_config_commands="$ac_config_commands default"
21165 cat >confcache <<\_ACEOF
21166 # This file is a shell script that caches the results of configure
21167 # tests run on this system so they can be shared between configure
21168 # scripts and configure runs, see configure's option --config-cache.
21169 # It is not useful on other systems. If it contains results you don't
21170 # want to keep, you may remove or edit it.
21171 #
21172 # config.status only pays attention to the cache file if you give it
21173 # the --recheck option to rerun configure.
21174 #
21175 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21176 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21177 # following values.
21178
21179 _ACEOF
21180
21181 # The following way of writing the cache mishandles newlines in values,
21182 # but we know of no workaround that is simple, portable, and efficient.
21183 # So, don't put newlines in cache variables' values.
21184 # Ultrix sh set writes to stderr and can't be redirected directly,
21185 # and sets the high bit in the cache file unless we assign to the vars.
21186 {
21187 (set) 2>&1 |
21188 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21189 *ac_space=\ *)
21190 # `set' does not quote correctly, so add quotes (double-quote
21191 # substitution turns \\\\ into \\, and sed turns \\ into \).
21192 sed -n \
21193 "s/'/'\\\\''/g;
21194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21195 ;;
21196 *)
21197 # `set' quotes correctly as required by POSIX, so do not add quotes.
21198 sed -n \
21199 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21200 ;;
21201 esac;
21202 } |
21203 sed '
21204 t clear
21205 : clear
21206 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21207 t end
21208 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21209 : end' >>confcache
21210 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21211 if test -w $cache_file; then
21212 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21213 cat confcache >$cache_file
21214 else
21215 echo "not updating unwritable cache $cache_file"
21216 fi
21217 fi
21218 rm -f confcache
21219
21220 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21221 # Let make expand exec_prefix.
21222 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21223
21224 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21225 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21226 # trailing colons and then remove the whole line if VPATH becomes empty
21227 # (actually we leave an empty line to preserve line numbers).
21228 if test "x$srcdir" = x.; then
21229 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21230 s/:*\$(srcdir):*/:/;
21231 s/:*\${srcdir}:*/:/;
21232 s/:*@srcdir@:*/:/;
21233 s/^\([^=]*=[ ]*\):*/\1/;
21234 s/:*$//;
21235 s/^[^=]*=[ ]*$//;
21236 }'
21237 fi
21238
21239 DEFS=-DHAVE_CONFIG_H
21240
21241 ac_libobjs=
21242 ac_ltlibobjs=
21243 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21244 # 1. Remove the extension, and $U if already installed.
21245 ac_i=`echo "$ac_i" |
21246 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21247 # 2. Add them.
21248 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21249 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21250 done
21251 LIBOBJS=$ac_libobjs
21252
21253 LTLIBOBJS=$ac_ltlibobjs
21254
21255
21256 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21257 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
21258 Usually this means the macro was only invoked conditionally." >&5
21259 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
21260 Usually this means the macro was only invoked conditionally." >&2;}
21261 { (exit 1); exit 1; }; }
21262 fi
21263 if test -z "${GMAKE_TRUE}" && test -z "${GMAKE_FALSE}"; then
21264 { { echo "$as_me:$LINENO: error: conditional \"GMAKE\" was never defined.
21265 Usually this means the macro was only invoked conditionally." >&5
21266 echo "$as_me: error: conditional \"GMAKE\" was never defined.
21267 Usually this means the macro was only invoked conditionally." >&2;}
21268 { (exit 1); exit 1; }; }
21269 fi
21270 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21271 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21272 Usually this means the macro was only invoked conditionally." >&5
21273 echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
21274 Usually this means the macro was only invoked conditionally." >&2;}
21275 { (exit 1); exit 1; }; }
21276 fi
21277
21278 gl_libobjs=
21279 gl_ltlibobjs=
21280 if test -n "$gl_LIBOBJS"; then
21281 # Remove the extension.
21282 sed_drop_objext='s/\.o$//;s/\.obj$//'
21283 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21284 gl_libobjs="$gl_libobjs $i.$ac_objext"
21285 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21286 done
21287 fi
21288 gl_LIBOBJS=$gl_libobjs
21289
21290 gl_LTLIBOBJS=$gl_ltlibobjs
21291
21292
21293
21294 gltests_libobjs=
21295 gltests_ltlibobjs=
21296 if test -n "$gltests_LIBOBJS"; then
21297 # Remove the extension.
21298 sed_drop_objext='s/\.o$//;s/\.obj$//'
21299 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
21300 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21301 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21302 done
21303 fi
21304 gltests_LIBOBJS=$gltests_libobjs
21305
21306 gltests_LTLIBOBJS=$gltests_ltlibobjs
21307
21308
21309 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21310 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21311 Usually this means the macro was only invoked conditionally." >&5
21312 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21313 Usually this means the macro was only invoked conditionally." >&2;}
21314 { (exit 1); exit 1; }; }
21315 fi
21316 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21317 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21318 Usually this means the macro was only invoked conditionally." >&5
21319 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21320 Usually this means the macro was only invoked conditionally." >&2;}
21321 { (exit 1); exit 1; }; }
21322 fi
21323
21324 : ${CONFIG_STATUS=./config.status}
21325 ac_clean_files_save=$ac_clean_files
21326 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21327 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21328 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21329 cat >$CONFIG_STATUS <<_ACEOF
21330 #! $SHELL
21331 # Generated by $as_me.
21332 # Run this file to recreate the current configuration.
21333 # Compiler output produced by configure, useful for debugging
21334 # configure, is in config.log if it exists.
21335
21336 debug=false
21337 ac_cs_recheck=false
21338 ac_cs_silent=false
21339 SHELL=\${CONFIG_SHELL-$SHELL}
21340 _ACEOF
21341
21342 cat >>$CONFIG_STATUS <<\_ACEOF
21343 ## --------------------- ##
21344 ## M4sh Initialization. ##
21345 ## --------------------- ##
21346
21347 # Be Bourne compatible
21348 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21349 emulate sh
21350 NULLCMD=:
21351 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21352 # is contrary to our usage. Disable this feature.
21353 alias -g '${1+"$@"}'='"$@"'
21354 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21355 set -o posix
21356 fi
21357 DUALCASE=1; export DUALCASE # for MKS sh
21358
21359 # Support unset when possible.
21360 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21361 as_unset=unset
21362 else
21363 as_unset=false
21364 fi
21365
21366
21367 # Work around bugs in pre-3.0 UWIN ksh.
21368 $as_unset ENV MAIL MAILPATH
21369 PS1='$ '
21370 PS2='> '
21371 PS4='+ '
21372
21373 # NLS nuisances.
21374 for as_var in \
21375 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21376 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21377 LC_TELEPHONE LC_TIME
21378 do
21379 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21380 eval $as_var=C; export $as_var
21381 else
21382 $as_unset $as_var
21383 fi
21384 done
21385
21386 # Required to use basename.
21387 if expr a : '\(a\)' >/dev/null 2>&1; then
21388 as_expr=expr
21389 else
21390 as_expr=false
21391 fi
21392
21393 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21394 as_basename=basename
21395 else
21396 as_basename=false
21397 fi
21398
21399
21400 # Name of the executable.
21401 as_me=`$as_basename "$0" ||
21402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21403 X"$0" : 'X\(//\)$' \| \
21404 X"$0" : 'X\(/\)$' \| \
21405 . : '\(.\)' 2>/dev/null ||
21406 echo X/"$0" |
21407 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21408 /^X\/\(\/\/\)$/{ s//\1/; q; }
21409 /^X\/\(\/\).*/{ s//\1/; q; }
21410 s/.*/./; q'`
21411
21412
21413 # PATH needs CR, and LINENO needs CR and PATH.
21414 # Avoid depending upon Character Ranges.
21415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21418 as_cr_digits='0123456789'
21419 as_cr_alnum=$as_cr_Letters$as_cr_digits
21420
21421 # The user is always right.
21422 if test "${PATH_SEPARATOR+set}" != set; then
21423 echo "#! /bin/sh" >conf$$.sh
21424 echo "exit 0" >>conf$$.sh
21425 chmod +x conf$$.sh
21426 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21427 PATH_SEPARATOR=';'
21428 else
21429 PATH_SEPARATOR=:
21430 fi
21431 rm -f conf$$.sh
21432 fi
21433
21434
21435 as_lineno_1=$LINENO
21436 as_lineno_2=$LINENO
21437 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21438 test "x$as_lineno_1" != "x$as_lineno_2" &&
21439 test "x$as_lineno_3" = "x$as_lineno_2" || {
21440 # Find who we are. Look in the path if we contain no path at all
21441 # relative or not.
21442 case $0 in
21443 *[\\/]* ) as_myself=$0 ;;
21444 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21445 for as_dir in $PATH
21446 do
21447 IFS=$as_save_IFS
21448 test -z "$as_dir" && as_dir=.
21449 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21450 done
21451
21452 ;;
21453 esac
21454 # We did not find ourselves, most probably we were run as `sh COMMAND'
21455 # in which case we are not to be found in the path.
21456 if test "x$as_myself" = x; then
21457 as_myself=$0
21458 fi
21459 if test ! -f "$as_myself"; then
21460 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21461 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21462 { (exit 1); exit 1; }; }
21463 fi
21464 case $CONFIG_SHELL in
21465 '')
21466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21467 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21468 do
21469 IFS=$as_save_IFS
21470 test -z "$as_dir" && as_dir=.
21471 for as_base in sh bash ksh sh5; do
21472 case $as_dir in
21473 /*)
21474 if ("$as_dir/$as_base" -c '
21475 as_lineno_1=$LINENO
21476 as_lineno_2=$LINENO
21477 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21478 test "x$as_lineno_1" != "x$as_lineno_2" &&
21479 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21480 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21481 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21482 CONFIG_SHELL=$as_dir/$as_base
21483 export CONFIG_SHELL
21484 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21485 fi;;
21486 esac
21487 done
21488 done
21489 ;;
21490 esac
21491
21492 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21493 # uniformly replaced by the line number. The first 'sed' inserts a
21494 # line-number line before each line; the second 'sed' does the real
21495 # work. The second script uses 'N' to pair each line-number line
21496 # with the numbered line, and appends trailing '-' during
21497 # substitution so that $LINENO is not a special case at line end.
21498 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21499 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21500 sed '=' <$as_myself |
21501 sed '
21502 N
21503 s,$,-,
21504 : loop
21505 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21506 t loop
21507 s,-$,,
21508 s,^['$as_cr_digits']*\n,,
21509 ' >$as_me.lineno &&
21510 chmod +x $as_me.lineno ||
21511 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21512 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21513 { (exit 1); exit 1; }; }
21514
21515 # Don't try to exec as it changes $[0], causing all sort of problems
21516 # (the dirname of $[0] is not the place where we might find the
21517 # original and so on. Autoconf is especially sensible to this).
21518 . ./$as_me.lineno
21519 # Exit status is that of the last command.
21520 exit
21521 }
21522
21523
21524 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21525 *c*,-n*) ECHO_N= ECHO_C='
21526 ' ECHO_T=' ' ;;
21527 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21528 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21529 esac
21530
21531 if expr a : '\(a\)' >/dev/null 2>&1; then
21532 as_expr=expr
21533 else
21534 as_expr=false
21535 fi
21536
21537 rm -f conf$$ conf$$.exe conf$$.file
21538 echo >conf$$.file
21539 if ln -s conf$$.file conf$$ 2>/dev/null; then
21540 # We could just check for DJGPP; but this test a) works b) is more generic
21541 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21542 if test -f conf$$.exe; then
21543 # Don't use ln at all; we don't have any links
21544 as_ln_s='cp -p'
21545 else
21546 as_ln_s='ln -s'
21547 fi
21548 elif ln conf$$.file conf$$ 2>/dev/null; then
21549 as_ln_s=ln
21550 else
21551 as_ln_s='cp -p'
21552 fi
21553 rm -f conf$$ conf$$.exe conf$$.file
21554
21555 if mkdir -p . 2>/dev/null; then
21556 as_mkdir_p=:
21557 else
21558 test -d ./-p && rmdir ./-p
21559 as_mkdir_p=false
21560 fi
21561
21562 as_executable_p="test -f"
21563
21564 # Sed expression to map a string onto a valid CPP name.
21565 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21566
21567 # Sed expression to map a string onto a valid variable name.
21568 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21569
21570
21571 # IFS
21572 # We need space, tab and new line, in precisely that order.
21573 as_nl='
21574 '
21575 IFS=" $as_nl"
21576
21577 # CDPATH.
21578 $as_unset CDPATH
21579
21580 exec 6>&1
21581
21582 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21583 # report actual input values of CONFIG_FILES etc. instead of their
21584 # values after options handling. Logging --version etc. is OK.
21585 exec 5>>config.log
21586 {
21587 echo
21588 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21589 ## Running $as_me. ##
21590 _ASBOX
21591 } >&5
21592 cat >&5 <<_CSEOF
21593
21594 This file was extended by $as_me, which was
21595 generated by GNU Autoconf 2.59. Invocation command line was
21596
21597 CONFIG_FILES = $CONFIG_FILES
21598 CONFIG_HEADERS = $CONFIG_HEADERS
21599 CONFIG_LINKS = $CONFIG_LINKS
21600 CONFIG_COMMANDS = $CONFIG_COMMANDS
21601 $ $0 $@
21602
21603 _CSEOF
21604 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21605 echo >&5
21606 _ACEOF
21607
21608 # Files that config.status was made for.
21609 if test -n "$ac_config_files"; then
21610 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21611 fi
21612
21613 if test -n "$ac_config_headers"; then
21614 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21615 fi
21616
21617 if test -n "$ac_config_links"; then
21618 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21619 fi
21620
21621 if test -n "$ac_config_commands"; then
21622 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21623 fi
21624
21625 cat >>$CONFIG_STATUS <<\_ACEOF
21626
21627 ac_cs_usage="\
21628 \`$as_me' instantiates files from templates according to the
21629 current configuration.
21630
21631 Usage: $0 [OPTIONS] [FILE]...
21632
21633 -h, --help print this help, then exit
21634 -V, --version print version number, then exit
21635 -q, --quiet do not print progress messages
21636 -d, --debug don't remove temporary files
21637 --recheck update $as_me by reconfiguring in the same conditions
21638 --file=FILE[:TEMPLATE]
21639 instantiate the configuration file FILE
21640 --header=FILE[:TEMPLATE]
21641 instantiate the configuration header FILE
21642
21643 Configuration files:
21644 $config_files
21645
21646 Configuration headers:
21647 $config_headers
21648
21649 Configuration links:
21650 $config_links
21651
21652 Configuration commands:
21653 $config_commands
21654
21655 Report bugs to <bug-autoconf@gnu.org>."
21656 _ACEOF
21657
21658 cat >>$CONFIG_STATUS <<_ACEOF
21659 ac_cs_version="\\
21660 config.status
21661 configured by $0, generated by GNU Autoconf 2.59,
21662 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21663
21664 Copyright (C) 2003 Free Software Foundation, Inc.
21665 This config.status script is free software; the Free Software Foundation
21666 gives unlimited permission to copy, distribute and modify it."
21667 srcdir=$srcdir
21668 INSTALL="$INSTALL"
21669 _ACEOF
21670
21671 cat >>$CONFIG_STATUS <<\_ACEOF
21672 # If no file are specified by the user, then we need to provide default
21673 # value. By we need to know if files were specified by the user.
21674 ac_need_defaults=:
21675 while test $# != 0
21676 do
21677 case $1 in
21678 --*=*)
21679 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21680 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21681 ac_shift=:
21682 ;;
21683 -*)
21684 ac_option=$1
21685 ac_optarg=$2
21686 ac_shift=shift
21687 ;;
21688 *) # This is not an option, so the user has probably given explicit
21689 # arguments.
21690 ac_option=$1
21691 ac_need_defaults=false;;
21692 esac
21693
21694 case $ac_option in
21695 # Handling of the options.
21696 _ACEOF
21697 cat >>$CONFIG_STATUS <<\_ACEOF
21698 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21699 ac_cs_recheck=: ;;
21700 --version | --vers* | -V )
21701 echo "$ac_cs_version"; exit 0 ;;
21702 --he | --h)
21703 # Conflict between --help and --header
21704 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21705 Try \`$0 --help' for more information." >&5
21706 echo "$as_me: error: ambiguous option: $1
21707 Try \`$0 --help' for more information." >&2;}
21708 { (exit 1); exit 1; }; };;
21709 --help | --hel | -h )
21710 echo "$ac_cs_usage"; exit 0 ;;
21711 --debug | --d* | -d )
21712 debug=: ;;
21713 --file | --fil | --fi | --f )
21714 $ac_shift
21715 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21716 ac_need_defaults=false;;
21717 --header | --heade | --head | --hea )
21718 $ac_shift
21719 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21720 ac_need_defaults=false;;
21721 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21722 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21723 ac_cs_silent=: ;;
21724
21725 # This is an error.
21726 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21727 Try \`$0 --help' for more information." >&5
21728 echo "$as_me: error: unrecognized option: $1
21729 Try \`$0 --help' for more information." >&2;}
21730 { (exit 1); exit 1; }; } ;;
21731
21732 *) ac_config_targets="$ac_config_targets $1" ;;
21733
21734 esac
21735 shift
21736 done
21737
21738 ac_configure_extra_args=
21739
21740 if $ac_cs_silent; then
21741 exec 6>/dev/null
21742 ac_configure_extra_args="$ac_configure_extra_args --silent"
21743 fi
21744
21745 _ACEOF
21746 cat >>$CONFIG_STATUS <<_ACEOF
21747 if \$ac_cs_recheck; then
21748 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21749 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21750 fi
21751
21752 _ACEOF
21753
21754 cat >>$CONFIG_STATUS <<_ACEOF
21755 #
21756 # INIT-COMMANDS section.
21757 #
21758
21759 ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
21760 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21761
21762 gdb_host_cpu=$gdb_host_cpu
21763 nativefile=$nativefile
21764
21765
21766 _ACEOF
21767
21768
21769
21770 cat >>$CONFIG_STATUS <<\_ACEOF
21771 for ac_config_target in $ac_config_targets
21772 do
21773 case "$ac_config_target" in
21774 # Handling of arguments.
21775 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21776 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
21777 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
21778 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
21779 "depdir" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
21780 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21781 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21782 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21783 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21784 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21785 { (exit 1); exit 1; }; };;
21786 esac
21787 done
21788
21789 # If the user did not use the arguments to specify the items to instantiate,
21790 # then the envvar interface is used. Set only those that are not.
21791 # We use the long form for the default assignment because of an extremely
21792 # bizarre bug on SunOS 4.1.3.
21793 if $ac_need_defaults; then
21794 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21795 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21796 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
21797 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21798 fi
21799
21800 # Have a temporary directory for convenience. Make it in the build tree
21801 # simply because there is no reason to put it here, and in addition,
21802 # creating and moving files from /tmp can sometimes cause problems.
21803 # Create a temporary directory, and hook for its removal unless debugging.
21804 $debug ||
21805 {
21806 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21807 trap '{ (exit 1); exit 1; }' 1 2 13 15
21808 }
21809
21810 # Create a (secure) tmp directory for tmp files.
21811
21812 {
21813 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21814 test -n "$tmp" && test -d "$tmp"
21815 } ||
21816 {
21817 tmp=./confstat$$-$RANDOM
21818 (umask 077 && mkdir $tmp)
21819 } ||
21820 {
21821 echo "$me: cannot create a temporary directory in ." >&2
21822 { (exit 1); exit 1; }
21823 }
21824
21825 _ACEOF
21826
21827 cat >>$CONFIG_STATUS <<_ACEOF
21828
21829 #
21830 # CONFIG_FILES section.
21831 #
21832
21833 # No need to generate the scripts if there are no CONFIG_FILES.
21834 # This happens for instance when ./config.status config.h
21835 if test -n "\$CONFIG_FILES"; then
21836 # Protect against being on the right side of a sed subst in config.status.
21837 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21838 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21839 s,@SHELL@,$SHELL,;t t
21840 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21841 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21842 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21843 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21844 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21845 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21846 s,@exec_prefix@,$exec_prefix,;t t
21847 s,@prefix@,$prefix,;t t
21848 s,@program_transform_name@,$program_transform_name,;t t
21849 s,@bindir@,$bindir,;t t
21850 s,@sbindir@,$sbindir,;t t
21851 s,@libexecdir@,$libexecdir,;t t
21852 s,@datadir@,$datadir,;t t
21853 s,@sysconfdir@,$sysconfdir,;t t
21854 s,@sharedstatedir@,$sharedstatedir,;t t
21855 s,@localstatedir@,$localstatedir,;t t
21856 s,@libdir@,$libdir,;t t
21857 s,@includedir@,$includedir,;t t
21858 s,@oldincludedir@,$oldincludedir,;t t
21859 s,@infodir@,$infodir,;t t
21860 s,@mandir@,$mandir,;t t
21861 s,@build_alias@,$build_alias,;t t
21862 s,@host_alias@,$host_alias,;t t
21863 s,@target_alias@,$target_alias,;t t
21864 s,@DEFS@,$DEFS,;t t
21865 s,@ECHO_C@,$ECHO_C,;t t
21866 s,@ECHO_N@,$ECHO_N,;t t
21867 s,@ECHO_T@,$ECHO_T,;t t
21868 s,@LIBS@,$LIBS,;t t
21869 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21870 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21871 s,@MAINT@,$MAINT,;t t
21872 s,@CC@,$CC,;t t
21873 s,@CFLAGS@,$CFLAGS,;t t
21874 s,@LDFLAGS@,$LDFLAGS,;t t
21875 s,@CPPFLAGS@,$CPPFLAGS,;t t
21876 s,@ac_ct_CC@,$ac_ct_CC,;t t
21877 s,@EXEEXT@,$EXEEXT,;t t
21878 s,@OBJEXT@,$OBJEXT,;t t
21879 s,@CPP@,$CPP,;t t
21880 s,@EGREP@,$EGREP,;t t
21881 s,@RANLIB@,$RANLIB,;t t
21882 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21883 s,@build@,$build,;t t
21884 s,@build_cpu@,$build_cpu,;t t
21885 s,@build_vendor@,$build_vendor,;t t
21886 s,@build_os@,$build_os,;t t
21887 s,@host@,$host,;t t
21888 s,@host_cpu@,$host_cpu,;t t
21889 s,@host_vendor@,$host_vendor,;t t
21890 s,@host_os@,$host_os,;t t
21891 s,@target@,$target,;t t
21892 s,@target_cpu@,$target_cpu,;t t
21893 s,@target_vendor@,$target_vendor,;t t
21894 s,@target_os@,$target_os,;t t
21895 s,@am__leading_dot@,$am__leading_dot,;t t
21896 s,@DEPDIR@,$DEPDIR,;t t
21897 s,@CCDEPMODE@,$CCDEPMODE,;t t
21898 s,@MAKE@,$MAKE,;t t
21899 s,@GMAKE_TRUE@,$GMAKE_TRUE,;t t
21900 s,@GMAKE_FALSE@,$GMAKE_FALSE,;t t
21901 s,@SET_MAKE@,$SET_MAKE,;t t
21902 s,@USE_NLS@,$USE_NLS,;t t
21903 s,@LIBINTL@,$LIBINTL,;t t
21904 s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
21905 s,@INCINTL@,$INCINTL,;t t
21906 s,@XGETTEXT@,$XGETTEXT,;t t
21907 s,@GMSGFMT@,$GMSGFMT,;t t
21908 s,@POSUB@,$POSUB,;t t
21909 s,@CATALOGS@,$CATALOGS,;t t
21910 s,@DATADIRNAME@,$DATADIRNAME,;t t
21911 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
21912 s,@GENCAT@,$GENCAT,;t t
21913 s,@CATOBJEXT@,$CATOBJEXT,;t t
21914 s,@localedir@,$localedir,;t t
21915 s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
21916 s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
21917 s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
21918 s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
21919 s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
21920 s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
21921 s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
21922 s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
21923 s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
21924 s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
21925 s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
21926 s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
21927 s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
21928 s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
21929 s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
21930 s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
21931 s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
21932 s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
21933 s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
21934 s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
21935 s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
21936 s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
21937 s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
21938 s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
21939 s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
21940 s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
21941 s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
21942 s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
21943 s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
21944 s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
21945 s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
21946 s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
21947 s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
21948 s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
21949 s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
21950 s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
21951 s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
21952 s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
21953 s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
21954 s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
21955 s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
21956 s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
21957 s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
21958 s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
21959 s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
21960 s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
21961 s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
21962 s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
21963 s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
21964 s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
21965 s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
21966 s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
21967 s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
21968 s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
21969 s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
21970 s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
21971 s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
21972 s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
21973 s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
21974 s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
21975 s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
21976 s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
21977 s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
21978 s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
21979 s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
21980 s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
21981 s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
21982 s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
21983 s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
21984 s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
21985 s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
21986 s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
21987 s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
21988 s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
21989 s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
21990 s,@STDINT_H@,$STDINT_H,;t t
21991 s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
21992 s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
21993 s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
21994 s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
21995 s,@WCHAR_H@,$WCHAR_H,;t t
21996 s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
21997 s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
21998 s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
21999 s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
22000 s,@GNULIB_STDINT_H@,$GNULIB_STDINT_H,;t t
22001 s,@PACKAGE@,$PACKAGE,;t t
22002 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22003 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22004 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22005 s,@CYGPATH_W@,$CYGPATH_W,;t t
22006 s,@PYTHON2_4@,$PYTHON2_4,;t t
22007 s,@ACLOCAL@,$ACLOCAL,;t t
22008 s,@AUTOCONF@,$AUTOCONF,;t t
22009 s,@AUTOMAKE@,$AUTOMAKE,;t t
22010 s,@AUTOHEADER@,$AUTOHEADER,;t t
22011 s,@MAKEINFO@,$MAKEINFO,;t t
22012 s,@install_sh@,$install_sh,;t t
22013 s,@STRIP@,$STRIP,;t t
22014 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22015 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22016 s,@mkdir_p@,$mkdir_p,;t t
22017 s,@AWK@,$AWK,;t t
22018 s,@AMTAR@,$AMTAR,;t t
22019 s,@am__tar@,$am__tar,;t t
22020 s,@am__untar@,$am__untar,;t t
22021 s,@am__include@,$am__include,;t t
22022 s,@am__quote@,$am__quote,;t t
22023 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22024 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22025 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22026 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22027 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22028 s,@subdirs@,$subdirs,;t t
22029 s,@TARGET_OBS@,$TARGET_OBS,;t t
22030 s,@PKGVERSION@,$PKGVERSION,;t t
22031 s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
22032 s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
22033 s,@LN_S@,$LN_S,;t t
22034 s,@YACC@,$YACC,;t t
22035 s,@AR@,$AR,;t t
22036 s,@ac_ct_AR@,$ac_ct_AR,;t t
22037 s,@DLLTOOL@,$DLLTOOL,;t t
22038 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22039 s,@WINDRES@,$WINDRES,;t t
22040 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
22041 s,@MIG@,$MIG,;t t
22042 s,@ac_ct_MIG@,$ac_ct_MIG,;t t
22043 s,@LIBICONV@,$LIBICONV,;t t
22044 s,@LIBICONV_INCLUDE@,$LIBICONV_INCLUDE,;t t
22045 s,@LIBICONV_LIBDIR@,$LIBICONV_LIBDIR,;t t
22046 s,@READLINE@,$READLINE,;t t
22047 s,@READLINE_DEPS@,$READLINE_DEPS,;t t
22048 s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
22049 s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
22050 s,@LIBEXPAT@,$LIBEXPAT,;t t
22051 s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
22052 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
22053 s,@ALLOCA@,$ALLOCA,;t t
22054 s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
22055 s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
22056 s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
22057 s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
22058 s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
22059 s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
22060 s,@WIN32LIBS@,$WIN32LIBS,;t t
22061 s,@LIBGUI@,$LIBGUI,;t t
22062 s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
22063 s,@WIN32LDAPP@,$WIN32LDAPP,;t t
22064 s,@TCL_VERSION@,$TCL_VERSION,;t t
22065 s,@TCL_PATCH_LEVEL@,$TCL_PATCH_LEVEL,;t t
22066 s,@TCL_BIN_DIR@,$TCL_BIN_DIR,;t t
22067 s,@TCL_SRC_DIR@,$TCL_SRC_DIR,;t t
22068 s,@TCL_LIB_FILE@,$TCL_LIB_FILE,;t t
22069 s,@TCL_LIB_FLAG@,$TCL_LIB_FLAG,;t t
22070 s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
22071 s,@TCL_STUB_LIB_FILE@,$TCL_STUB_LIB_FILE,;t t
22072 s,@TCL_STUB_LIB_FLAG@,$TCL_STUB_LIB_FLAG,;t t
22073 s,@TCL_STUB_LIB_SPEC@,$TCL_STUB_LIB_SPEC,;t t
22074 s,@TCL_INCLUDE@,$TCL_INCLUDE,;t t
22075 s,@TCL_LIBRARY@,$TCL_LIBRARY,;t t
22076 s,@TCL_DEPS@,$TCL_DEPS,;t t
22077 s,@TK_VERSION@,$TK_VERSION,;t t
22078 s,@TK_BIN_DIR@,$TK_BIN_DIR,;t t
22079 s,@TK_SRC_DIR@,$TK_SRC_DIR,;t t
22080 s,@TK_LIB_FILE@,$TK_LIB_FILE,;t t
22081 s,@TK_LIB_FLAG@,$TK_LIB_FLAG,;t t
22082 s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
22083 s,@TK_STUB_LIB_FILE@,$TK_STUB_LIB_FILE,;t t
22084 s,@TK_STUB_LIB_FLAG@,$TK_STUB_LIB_FLAG,;t t
22085 s,@TK_STUB_LIB_SPEC@,$TK_STUB_LIB_SPEC,;t t
22086 s,@TK_INCLUDE@,$TK_INCLUDE,;t t
22087 s,@TK_LIBRARY@,$TK_LIBRARY,;t t
22088 s,@TK_DEPS@,$TK_DEPS,;t t
22089 s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
22090 s,@X_CFLAGS@,$X_CFLAGS,;t t
22091 s,@X_LDFLAGS@,$X_LDFLAGS,;t t
22092 s,@X_LIBS@,$X_LIBS,;t t
22093 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
22094 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
22095 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
22096 s,@SIM@,$SIM,;t t
22097 s,@SIM_OBS@,$SIM_OBS,;t t
22098 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
22099 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
22100 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
22101 s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
22102 s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
22103 s,@CONFIG_ALL@,$CONFIG_ALL,;t t
22104 s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
22105 s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
22106 s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
22107 s,@target_subdir@,$target_subdir,;t t
22108 s,@frags@,$frags,;t t
22109 s,@nm_h@,$nm_h,;t t
22110 s,@LIBOBJS@,$LIBOBJS,;t t
22111 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22112 s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
22113 s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
22114 s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
22115 s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
22116 /@host_makefile_frag@/r $host_makefile_frag
22117 s,@host_makefile_frag@,,;t t
22118 CEOF
22119
22120 _ACEOF
22121
22122 cat >>$CONFIG_STATUS <<\_ACEOF
22123 # Split the substitutions into bite-sized pieces for seds with
22124 # small command number limits, like on Digital OSF/1 and HP-UX.
22125 ac_max_sed_lines=48
22126 ac_sed_frag=1 # Number of current file.
22127 ac_beg=1 # First line for current file.
22128 ac_end=$ac_max_sed_lines # Line after last line for current file.
22129 ac_more_lines=:
22130 ac_sed_cmds=
22131 while $ac_more_lines; do
22132 if test $ac_beg -gt 1; then
22133 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22134 else
22135 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22136 fi
22137 if test ! -s $tmp/subs.frag; then
22138 ac_more_lines=false
22139 else
22140 # The purpose of the label and of the branching condition is to
22141 # speed up the sed processing (if there are no `@' at all, there
22142 # is no need to browse any of the substitutions).
22143 # These are the two extra sed commands mentioned above.
22144 (echo ':t
22145 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22146 if test -z "$ac_sed_cmds"; then
22147 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22148 else
22149 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22150 fi
22151 ac_sed_frag=`expr $ac_sed_frag + 1`
22152 ac_beg=$ac_end
22153 ac_end=`expr $ac_end + $ac_max_sed_lines`
22154 fi
22155 done
22156 if test -z "$ac_sed_cmds"; then
22157 ac_sed_cmds=cat
22158 fi
22159 fi # test -n "$CONFIG_FILES"
22160
22161 _ACEOF
22162 cat >>$CONFIG_STATUS <<\_ACEOF
22163 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22164 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22165 case $ac_file in
22166 - | *:- | *:-:* ) # input from stdin
22167 cat >$tmp/stdin
22168 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22169 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22170 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22171 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22172 * ) ac_file_in=$ac_file.in ;;
22173 esac
22174
22175 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22176 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22178 X"$ac_file" : 'X\(//\)[^/]' \| \
22179 X"$ac_file" : 'X\(//\)$' \| \
22180 X"$ac_file" : 'X\(/\)' \| \
22181 . : '\(.\)' 2>/dev/null ||
22182 echo X"$ac_file" |
22183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22184 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22185 /^X\(\/\/\)$/{ s//\1/; q; }
22186 /^X\(\/\).*/{ s//\1/; q; }
22187 s/.*/./; q'`
22188 { if $as_mkdir_p; then
22189 mkdir -p "$ac_dir"
22190 else
22191 as_dir="$ac_dir"
22192 as_dirs=
22193 while test ! -d "$as_dir"; do
22194 as_dirs="$as_dir $as_dirs"
22195 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22197 X"$as_dir" : 'X\(//\)[^/]' \| \
22198 X"$as_dir" : 'X\(//\)$' \| \
22199 X"$as_dir" : 'X\(/\)' \| \
22200 . : '\(.\)' 2>/dev/null ||
22201 echo X"$as_dir" |
22202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22203 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22204 /^X\(\/\/\)$/{ s//\1/; q; }
22205 /^X\(\/\).*/{ s//\1/; q; }
22206 s/.*/./; q'`
22207 done
22208 test ! -n "$as_dirs" || mkdir $as_dirs
22209 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22210 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22211 { (exit 1); exit 1; }; }; }
22212
22213 ac_builddir=.
22214
22215 if test "$ac_dir" != .; then
22216 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22217 # A "../" for each directory in $ac_dir_suffix.
22218 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22219 else
22220 ac_dir_suffix= ac_top_builddir=
22221 fi
22222
22223 case $srcdir in
22224 .) # No --srcdir option. We are building in place.
22225 ac_srcdir=.
22226 if test -z "$ac_top_builddir"; then
22227 ac_top_srcdir=.
22228 else
22229 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22230 fi ;;
22231 [\\/]* | ?:[\\/]* ) # Absolute path.
22232 ac_srcdir=$srcdir$ac_dir_suffix;
22233 ac_top_srcdir=$srcdir ;;
22234 *) # Relative path.
22235 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22236 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22237 esac
22238
22239 # Do not use `cd foo && pwd` to compute absolute paths, because
22240 # the directories may not exist.
22241 case `pwd` in
22242 .) ac_abs_builddir="$ac_dir";;
22243 *)
22244 case "$ac_dir" in
22245 .) ac_abs_builddir=`pwd`;;
22246 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22247 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22248 esac;;
22249 esac
22250 case $ac_abs_builddir in
22251 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22252 *)
22253 case ${ac_top_builddir}. in
22254 .) ac_abs_top_builddir=$ac_abs_builddir;;
22255 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22256 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22257 esac;;
22258 esac
22259 case $ac_abs_builddir in
22260 .) ac_abs_srcdir=$ac_srcdir;;
22261 *)
22262 case $ac_srcdir in
22263 .) ac_abs_srcdir=$ac_abs_builddir;;
22264 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22265 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22266 esac;;
22267 esac
22268 case $ac_abs_builddir in
22269 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22270 *)
22271 case $ac_top_srcdir in
22272 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22273 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22274 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22275 esac;;
22276 esac
22277
22278
22279 case $INSTALL in
22280 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22281 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22282 esac
22283
22284 if test x"$ac_file" != x-; then
22285 { echo "$as_me:$LINENO: creating $ac_file" >&5
22286 echo "$as_me: creating $ac_file" >&6;}
22287 rm -f "$ac_file"
22288 fi
22289 # Let's still pretend it is `configure' which instantiates (i.e., don't
22290 # use $as_me), people would be surprised to read:
22291 # /* config.h. Generated by config.status. */
22292 if test x"$ac_file" = x-; then
22293 configure_input=
22294 else
22295 configure_input="$ac_file. "
22296 fi
22297 configure_input=$configure_input"Generated from `echo $ac_file_in |
22298 sed 's,.*/,,'` by configure."
22299
22300 # First look for the input files in the build tree, otherwise in the
22301 # src tree.
22302 ac_file_inputs=`IFS=:
22303 for f in $ac_file_in; do
22304 case $f in
22305 -) echo $tmp/stdin ;;
22306 [\\/$]*)
22307 # Absolute (can't be DOS-style, as IFS=:)
22308 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22309 echo "$as_me: error: cannot find input file: $f" >&2;}
22310 { (exit 1); exit 1; }; }
22311 echo "$f";;
22312 *) # Relative
22313 if test -f "$f"; then
22314 # Build tree
22315 echo "$f"
22316 elif test -f "$srcdir/$f"; then
22317 # Source tree
22318 echo "$srcdir/$f"
22319 else
22320 # /dev/null tree
22321 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22322 echo "$as_me: error: cannot find input file: $f" >&2;}
22323 { (exit 1); exit 1; }; }
22324 fi;;
22325 esac
22326 done` || { (exit 1); exit 1; }
22327 _ACEOF
22328 cat >>$CONFIG_STATUS <<_ACEOF
22329 sed "$ac_vpsub
22330 $extrasub
22331 _ACEOF
22332 cat >>$CONFIG_STATUS <<\_ACEOF
22333 :t
22334 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22335 s,@configure_input@,$configure_input,;t t
22336 s,@srcdir@,$ac_srcdir,;t t
22337 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22338 s,@top_srcdir@,$ac_top_srcdir,;t t
22339 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22340 s,@builddir@,$ac_builddir,;t t
22341 s,@abs_builddir@,$ac_abs_builddir,;t t
22342 s,@top_builddir@,$ac_top_builddir,;t t
22343 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22344 s,@INSTALL@,$ac_INSTALL,;t t
22345 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22346 rm -f $tmp/stdin
22347 if test x"$ac_file" != x-; then
22348 mv $tmp/out $ac_file
22349 else
22350 cat $tmp/out
22351 rm -f $tmp/out
22352 fi
22353
22354 done
22355 _ACEOF
22356 cat >>$CONFIG_STATUS <<\_ACEOF
22357
22358 #
22359 # CONFIG_HEADER section.
22360 #
22361
22362 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22363 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22364 #
22365 # ac_d sets the value in "#define NAME VALUE" lines.
22366 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22367 ac_dB='[ ].*$,\1#\2'
22368 ac_dC=' '
22369 ac_dD=',;t'
22370 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22371 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22372 ac_uB='$,\1#\2define\3'
22373 ac_uC=' '
22374 ac_uD=',;t'
22375
22376 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22377 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22378 case $ac_file in
22379 - | *:- | *:-:* ) # input from stdin
22380 cat >$tmp/stdin
22381 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22382 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22383 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22384 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22385 * ) ac_file_in=$ac_file.in ;;
22386 esac
22387
22388 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22389 echo "$as_me: creating $ac_file" >&6;}
22390
22391 # First look for the input files in the build tree, otherwise in the
22392 # src tree.
22393 ac_file_inputs=`IFS=:
22394 for f in $ac_file_in; do
22395 case $f in
22396 -) echo $tmp/stdin ;;
22397 [\\/$]*)
22398 # Absolute (can't be DOS-style, as IFS=:)
22399 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22400 echo "$as_me: error: cannot find input file: $f" >&2;}
22401 { (exit 1); exit 1; }; }
22402 # Do quote $f, to prevent DOS paths from being IFS'd.
22403 echo "$f";;
22404 *) # Relative
22405 if test -f "$f"; then
22406 # Build tree
22407 echo "$f"
22408 elif test -f "$srcdir/$f"; then
22409 # Source tree
22410 echo "$srcdir/$f"
22411 else
22412 # /dev/null tree
22413 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22414 echo "$as_me: error: cannot find input file: $f" >&2;}
22415 { (exit 1); exit 1; }; }
22416 fi;;
22417 esac
22418 done` || { (exit 1); exit 1; }
22419 # Remove the trailing spaces.
22420 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22421
22422 _ACEOF
22423
22424 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22425 # `conftest.undefs', that substitutes the proper values into
22426 # config.h.in to produce config.h. The first handles `#define'
22427 # templates, and the second `#undef' templates.
22428 # And first: Protect against being on the right side of a sed subst in
22429 # config.status. Protect against being in an unquoted here document
22430 # in config.status.
22431 rm -f conftest.defines conftest.undefs
22432 # Using a here document instead of a string reduces the quoting nightmare.
22433 # Putting comments in sed scripts is not portable.
22434 #
22435 # `end' is used to avoid that the second main sed command (meant for
22436 # 0-ary CPP macros) applies to n-ary macro definitions.
22437 # See the Autoconf documentation for `clear'.
22438 cat >confdef2sed.sed <<\_ACEOF
22439 s/[\\&,]/\\&/g
22440 s,[\\$`],\\&,g
22441 t clear
22442 : clear
22443 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22444 t end
22445 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22446 : end
22447 _ACEOF
22448 # If some macros were called several times there might be several times
22449 # the same #defines, which is useless. Nevertheless, we may not want to
22450 # sort them, since we want the *last* AC-DEFINE to be honored.
22451 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22452 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22453 rm -f confdef2sed.sed
22454
22455 # This sed command replaces #undef with comments. This is necessary, for
22456 # example, in the case of _POSIX_SOURCE, which is predefined and required
22457 # on some systems where configure will not decide to define it.
22458 cat >>conftest.undefs <<\_ACEOF
22459 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22460 _ACEOF
22461
22462 # Break up conftest.defines because some shells have a limit on the size
22463 # of here documents, and old seds have small limits too (100 cmds).
22464 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22465 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22466 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22467 echo ' :' >>$CONFIG_STATUS
22468 rm -f conftest.tail
22469 while grep . conftest.defines >/dev/null
22470 do
22471 # Write a limited-size here document to $tmp/defines.sed.
22472 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22473 # Speed up: don't consider the non `#define' lines.
22474 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22475 # Work around the forget-to-reset-the-flag bug.
22476 echo 't clr' >>$CONFIG_STATUS
22477 echo ': clr' >>$CONFIG_STATUS
22478 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22479 echo 'CEOF
22480 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22481 rm -f $tmp/in
22482 mv $tmp/out $tmp/in
22483 ' >>$CONFIG_STATUS
22484 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22485 rm -f conftest.defines
22486 mv conftest.tail conftest.defines
22487 done
22488 rm -f conftest.defines
22489 echo ' fi # grep' >>$CONFIG_STATUS
22490 echo >>$CONFIG_STATUS
22491
22492 # Break up conftest.undefs because some shells have a limit on the size
22493 # of here documents, and old seds have small limits too (100 cmds).
22494 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22495 rm -f conftest.tail
22496 while grep . conftest.undefs >/dev/null
22497 do
22498 # Write a limited-size here document to $tmp/undefs.sed.
22499 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22500 # Speed up: don't consider the non `#undef'
22501 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22502 # Work around the forget-to-reset-the-flag bug.
22503 echo 't clr' >>$CONFIG_STATUS
22504 echo ': clr' >>$CONFIG_STATUS
22505 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22506 echo 'CEOF
22507 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22508 rm -f $tmp/in
22509 mv $tmp/out $tmp/in
22510 ' >>$CONFIG_STATUS
22511 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22512 rm -f conftest.undefs
22513 mv conftest.tail conftest.undefs
22514 done
22515 rm -f conftest.undefs
22516
22517 cat >>$CONFIG_STATUS <<\_ACEOF
22518 # Let's still pretend it is `configure' which instantiates (i.e., don't
22519 # use $as_me), people would be surprised to read:
22520 # /* config.h. Generated by config.status. */
22521 if test x"$ac_file" = x-; then
22522 echo "/* Generated by configure. */" >$tmp/config.h
22523 else
22524 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22525 fi
22526 cat $tmp/in >>$tmp/config.h
22527 rm -f $tmp/in
22528 if test x"$ac_file" != x-; then
22529 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22530 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22531 echo "$as_me: $ac_file is unchanged" >&6;}
22532 else
22533 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22534 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22535 X"$ac_file" : 'X\(//\)[^/]' \| \
22536 X"$ac_file" : 'X\(//\)$' \| \
22537 X"$ac_file" : 'X\(/\)' \| \
22538 . : '\(.\)' 2>/dev/null ||
22539 echo X"$ac_file" |
22540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22542 /^X\(\/\/\)$/{ s//\1/; q; }
22543 /^X\(\/\).*/{ s//\1/; q; }
22544 s/.*/./; q'`
22545 { if $as_mkdir_p; then
22546 mkdir -p "$ac_dir"
22547 else
22548 as_dir="$ac_dir"
22549 as_dirs=
22550 while test ! -d "$as_dir"; do
22551 as_dirs="$as_dir $as_dirs"
22552 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22554 X"$as_dir" : 'X\(//\)[^/]' \| \
22555 X"$as_dir" : 'X\(//\)$' \| \
22556 X"$as_dir" : 'X\(/\)' \| \
22557 . : '\(.\)' 2>/dev/null ||
22558 echo X"$as_dir" |
22559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22560 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22561 /^X\(\/\/\)$/{ s//\1/; q; }
22562 /^X\(\/\).*/{ s//\1/; q; }
22563 s/.*/./; q'`
22564 done
22565 test ! -n "$as_dirs" || mkdir $as_dirs
22566 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22567 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22568 { (exit 1); exit 1; }; }; }
22569
22570 rm -f $ac_file
22571 mv $tmp/config.h $ac_file
22572 fi
22573 else
22574 cat $tmp/config.h
22575 rm -f $tmp/config.h
22576 fi
22577 # Compute $ac_file's index in $config_headers.
22578 _am_stamp_count=1
22579 for _am_header in $config_headers :; do
22580 case $_am_header in
22581 $ac_file | $ac_file:* )
22582 break ;;
22583 * )
22584 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22585 esac
22586 done
22587 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
22588 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22589 X$ac_file : 'X\(//\)[^/]' \| \
22590 X$ac_file : 'X\(//\)$' \| \
22591 X$ac_file : 'X\(/\)' \| \
22592 . : '\(.\)' 2>/dev/null ||
22593 echo X$ac_file |
22594 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22595 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22596 /^X\(\/\/\)$/{ s//\1/; q; }
22597 /^X\(\/\).*/{ s//\1/; q; }
22598 s/.*/./; q'`/stamp-h$_am_stamp_count
22599 done
22600 _ACEOF
22601 cat >>$CONFIG_STATUS <<\_ACEOF
22602
22603 #
22604 # CONFIG_LINKS section.
22605 #
22606
22607 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
22608 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22609 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22610
22611 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
22612 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
22613
22614 if test ! -r $srcdir/$ac_source; then
22615 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
22616 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
22617 { (exit 1); exit 1; }; }
22618 fi
22619 rm -f $ac_dest
22620
22621 # Make relative symlinks.
22622 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
22623 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22624 X"$ac_dest" : 'X\(//\)[^/]' \| \
22625 X"$ac_dest" : 'X\(//\)$' \| \
22626 X"$ac_dest" : 'X\(/\)' \| \
22627 . : '\(.\)' 2>/dev/null ||
22628 echo X"$ac_dest" |
22629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22630 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22631 /^X\(\/\/\)$/{ s//\1/; q; }
22632 /^X\(\/\).*/{ s//\1/; q; }
22633 s/.*/./; q'`
22634 { if $as_mkdir_p; then
22635 mkdir -p "$ac_dest_dir"
22636 else
22637 as_dir="$ac_dest_dir"
22638 as_dirs=
22639 while test ! -d "$as_dir"; do
22640 as_dirs="$as_dir $as_dirs"
22641 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22643 X"$as_dir" : 'X\(//\)[^/]' \| \
22644 X"$as_dir" : 'X\(//\)$' \| \
22645 X"$as_dir" : 'X\(/\)' \| \
22646 . : '\(.\)' 2>/dev/null ||
22647 echo X"$as_dir" |
22648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22649 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22650 /^X\(\/\/\)$/{ s//\1/; q; }
22651 /^X\(\/\).*/{ s//\1/; q; }
22652 s/.*/./; q'`
22653 done
22654 test ! -n "$as_dirs" || mkdir $as_dirs
22655 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
22656 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
22657 { (exit 1); exit 1; }; }; }
22658
22659 ac_builddir=.
22660
22661 if test "$ac_dest_dir" != .; then
22662 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
22663 # A "../" for each directory in $ac_dir_suffix.
22664 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22665 else
22666 ac_dir_suffix= ac_top_builddir=
22667 fi
22668
22669 case $srcdir in
22670 .) # No --srcdir option. We are building in place.
22671 ac_srcdir=.
22672 if test -z "$ac_top_builddir"; then
22673 ac_top_srcdir=.
22674 else
22675 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22676 fi ;;
22677 [\\/]* | ?:[\\/]* ) # Absolute path.
22678 ac_srcdir=$srcdir$ac_dir_suffix;
22679 ac_top_srcdir=$srcdir ;;
22680 *) # Relative path.
22681 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22682 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22683 esac
22684
22685 # Do not use `cd foo && pwd` to compute absolute paths, because
22686 # the directories may not exist.
22687 case `pwd` in
22688 .) ac_abs_builddir="$ac_dest_dir";;
22689 *)
22690 case "$ac_dest_dir" in
22691 .) ac_abs_builddir=`pwd`;;
22692 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
22693 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
22694 esac;;
22695 esac
22696 case $ac_abs_builddir in
22697 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22698 *)
22699 case ${ac_top_builddir}. in
22700 .) ac_abs_top_builddir=$ac_abs_builddir;;
22701 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22702 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22703 esac;;
22704 esac
22705 case $ac_abs_builddir in
22706 .) ac_abs_srcdir=$ac_srcdir;;
22707 *)
22708 case $ac_srcdir in
22709 .) ac_abs_srcdir=$ac_abs_builddir;;
22710 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22711 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22712 esac;;
22713 esac
22714 case $ac_abs_builddir in
22715 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22716 *)
22717 case $ac_top_srcdir in
22718 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22719 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22720 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22721 esac;;
22722 esac
22723
22724
22725 case $srcdir in
22726 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
22727 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
22728 esac
22729
22730 # Try a symlink, then a hard link, then a copy.
22731 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
22732 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
22733 cp -p $srcdir/$ac_source $ac_dest ||
22734 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
22735 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
22736 { (exit 1); exit 1; }; }
22737 done
22738 _ACEOF
22739 cat >>$CONFIG_STATUS <<\_ACEOF
22740
22741 #
22742 # CONFIG_COMMANDS section.
22743 #
22744 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22745 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22746 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22747 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22748 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22749 X"$ac_dest" : 'X\(//\)[^/]' \| \
22750 X"$ac_dest" : 'X\(//\)$' \| \
22751 X"$ac_dest" : 'X\(/\)' \| \
22752 . : '\(.\)' 2>/dev/null ||
22753 echo X"$ac_dest" |
22754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22756 /^X\(\/\/\)$/{ s//\1/; q; }
22757 /^X\(\/\).*/{ s//\1/; q; }
22758 s/.*/./; q'`
22759 { if $as_mkdir_p; then
22760 mkdir -p "$ac_dir"
22761 else
22762 as_dir="$ac_dir"
22763 as_dirs=
22764 while test ! -d "$as_dir"; do
22765 as_dirs="$as_dir $as_dirs"
22766 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22767 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22768 X"$as_dir" : 'X\(//\)[^/]' \| \
22769 X"$as_dir" : 'X\(//\)$' \| \
22770 X"$as_dir" : 'X\(/\)' \| \
22771 . : '\(.\)' 2>/dev/null ||
22772 echo X"$as_dir" |
22773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22775 /^X\(\/\/\)$/{ s//\1/; q; }
22776 /^X\(\/\).*/{ s//\1/; q; }
22777 s/.*/./; q'`
22778 done
22779 test ! -n "$as_dirs" || mkdir $as_dirs
22780 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22781 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22782 { (exit 1); exit 1; }; }; }
22783
22784 ac_builddir=.
22785
22786 if test "$ac_dir" != .; then
22787 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22788 # A "../" for each directory in $ac_dir_suffix.
22789 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22790 else
22791 ac_dir_suffix= ac_top_builddir=
22792 fi
22793
22794 case $srcdir in
22795 .) # No --srcdir option. We are building in place.
22796 ac_srcdir=.
22797 if test -z "$ac_top_builddir"; then
22798 ac_top_srcdir=.
22799 else
22800 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22801 fi ;;
22802 [\\/]* | ?:[\\/]* ) # Absolute path.
22803 ac_srcdir=$srcdir$ac_dir_suffix;
22804 ac_top_srcdir=$srcdir ;;
22805 *) # Relative path.
22806 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22807 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22808 esac
22809
22810 # Do not use `cd foo && pwd` to compute absolute paths, because
22811 # the directories may not exist.
22812 case `pwd` in
22813 .) ac_abs_builddir="$ac_dir";;
22814 *)
22815 case "$ac_dir" in
22816 .) ac_abs_builddir=`pwd`;;
22817 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22818 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22819 esac;;
22820 esac
22821 case $ac_abs_builddir in
22822 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22823 *)
22824 case ${ac_top_builddir}. in
22825 .) ac_abs_top_builddir=$ac_abs_builddir;;
22826 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22827 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22828 esac;;
22829 esac
22830 case $ac_abs_builddir in
22831 .) ac_abs_srcdir=$ac_srcdir;;
22832 *)
22833 case $ac_srcdir in
22834 .) ac_abs_srcdir=$ac_abs_builddir;;
22835 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22836 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22837 esac;;
22838 esac
22839 case $ac_abs_builddir in
22840 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22841 *)
22842 case $ac_top_srcdir in
22843 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22844 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22845 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22846 esac;;
22847 esac
22848
22849
22850 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22851 echo "$as_me: executing $ac_dest commands" >&6;}
22852 case $ac_dest in
22853 depdir ) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
22854 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22855 # Strip MF so we end up with the name of the file.
22856 mf=`echo "$mf" | sed -e 's/:.*$//'`
22857 # Check whether this is an Automake generated Makefile or not.
22858 # We used to match only the files named `Makefile.in', but
22859 # some people rename them; so instead we look at the file content.
22860 # Grep'ing the first line is not enough: some people post-process
22861 # each Makefile.in and add a new line on top of each file to say so.
22862 # So let's grep whole file.
22863 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22864 dirpart=`(dirname "$mf") 2>/dev/null ||
22865 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22866 X"$mf" : 'X\(//\)[^/]' \| \
22867 X"$mf" : 'X\(//\)$' \| \
22868 X"$mf" : 'X\(/\)' \| \
22869 . : '\(.\)' 2>/dev/null ||
22870 echo X"$mf" |
22871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22873 /^X\(\/\/\)$/{ s//\1/; q; }
22874 /^X\(\/\).*/{ s//\1/; q; }
22875 s/.*/./; q'`
22876 else
22877 continue
22878 fi
22879 # Extract the definition of DEPDIR, am__include, and am__quote
22880 # from the Makefile without running `make'.
22881 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22882 test -z "$DEPDIR" && continue
22883 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22884 test -z "am__include" && continue
22885 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22886 # When using ansi2knr, U may be empty or an underscore; expand it
22887 U=`sed -n 's/^U = //p' < "$mf"`
22888 # Find all dependency output files, they are included files with
22889 # $(DEPDIR) in their names. We invoke sed twice because it is the
22890 # simplest approach to changing $(DEPDIR) to its actual value in the
22891 # expansion.
22892 for file in `sed -n "
22893 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22894 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22895 # Make sure the directory exists.
22896 test -f "$dirpart/$file" && continue
22897 fdir=`(dirname "$file") 2>/dev/null ||
22898 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22899 X"$file" : 'X\(//\)[^/]' \| \
22900 X"$file" : 'X\(//\)$' \| \
22901 X"$file" : 'X\(/\)' \| \
22902 . : '\(.\)' 2>/dev/null ||
22903 echo X"$file" |
22904 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22905 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22906 /^X\(\/\/\)$/{ s//\1/; q; }
22907 /^X\(\/\).*/{ s//\1/; q; }
22908 s/.*/./; q'`
22909 { if $as_mkdir_p; then
22910 mkdir -p $dirpart/$fdir
22911 else
22912 as_dir=$dirpart/$fdir
22913 as_dirs=
22914 while test ! -d "$as_dir"; do
22915 as_dirs="$as_dir $as_dirs"
22916 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22917 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22918 X"$as_dir" : 'X\(//\)[^/]' \| \
22919 X"$as_dir" : 'X\(//\)$' \| \
22920 X"$as_dir" : 'X\(/\)' \| \
22921 . : '\(.\)' 2>/dev/null ||
22922 echo X"$as_dir" |
22923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22924 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22925 /^X\(\/\/\)$/{ s//\1/; q; }
22926 /^X\(\/\).*/{ s//\1/; q; }
22927 s/.*/./; q'`
22928 done
22929 test ! -n "$as_dirs" || mkdir $as_dirs
22930 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22931 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22932 { (exit 1); exit 1; }; }; }
22933
22934 # echo "creating $dirpart/$file"
22935 echo '# dummy' > "$dirpart/$file"
22936 done
22937 done
22938 ;;
22939 default )
22940
22941 sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
22942 mv -f Makefile.tmp Makefile
22943
22944
22945 case x$CONFIG_HEADERS in
22946 xconfig.h:config.in)
22947 echo > stamp-h ;;
22948 esac
22949 ;;
22950 esac
22951 done
22952 _ACEOF
22953
22954 cat >>$CONFIG_STATUS <<\_ACEOF
22955
22956 { (exit 0); exit 0; }
22957 _ACEOF
22958 chmod +x $CONFIG_STATUS
22959 ac_clean_files=$ac_clean_files_save
22960
22961
22962 # configure is writing to config.log, and then calls config.status.
22963 # config.status does its own redirection, appending to config.log.
22964 # Unfortunately, on DOS this fails, as config.log is still kept open
22965 # by configure, so config.status won't be able to write to it; its
22966 # output is simply discarded. So we exec the FD to /dev/null,
22967 # effectively closing config.log, so it can be properly (re)opened and
22968 # appended to by config.status. When coming back to configure, we
22969 # need to make the FD available again.
22970 if test "$no_create" != yes; then
22971 ac_cs_success=:
22972 ac_config_status_args=
22973 test "$silent" = yes &&
22974 ac_config_status_args="$ac_config_status_args --quiet"
22975 exec 5>/dev/null
22976 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22977 exec 5>>config.log
22978 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22979 # would make configure fail if this is the last instruction.
22980 $ac_cs_success || { (exit 1); exit 1; }
22981 fi
22982
22983 #
22984 # CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
22985 #
22986 if test "$no_recursion" != yes; then
22987
22988 # Remove --cache-file and --srcdir arguments so they do not pile up.
22989 ac_sub_configure_args=
22990 ac_prev=
22991 eval "set x $ac_configure_args"
22992 shift
22993 for ac_arg
22994 do
22995 if test -n "$ac_prev"; then
22996 ac_prev=
22997 continue
22998 fi
22999 case $ac_arg in
23000 -cache-file | --cache-file | --cache-fil | --cache-fi \
23001 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23002 ac_prev=cache_file ;;
23003 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23004 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23005 | --c=*)
23006 ;;
23007 --config-cache | -C)
23008 ;;
23009 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23010 ac_prev=srcdir ;;
23011 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23012 ;;
23013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23014 ac_prev=prefix ;;
23015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23016 ;;
23017 *)
23018 case $ac_arg in
23019 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23020 esac
23021 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
23022 esac
23023 done
23024
23025 # Always prepend --prefix to ensure using the same prefix
23026 # in subdir configurations.
23027 ac_arg="--prefix=$prefix"
23028 case $ac_arg in
23029 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23030 esac
23031 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
23032
23033 ac_popdir=`pwd`
23034 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23035
23036 # Do not complain, so a configure script can configure whichever
23037 # parts of a large source tree are present.
23038 test -d "$srcdir/$ac_dir" || continue
23039
23040 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23041 echo "$as_me: configuring in $ac_dir" >&6;}
23042 { if $as_mkdir_p; then
23043 mkdir -p "$ac_dir"
23044 else
23045 as_dir="$ac_dir"
23046 as_dirs=
23047 while test ! -d "$as_dir"; do
23048 as_dirs="$as_dir $as_dirs"
23049 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23050 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23051 X"$as_dir" : 'X\(//\)[^/]' \| \
23052 X"$as_dir" : 'X\(//\)$' \| \
23053 X"$as_dir" : 'X\(/\)' \| \
23054 . : '\(.\)' 2>/dev/null ||
23055 echo X"$as_dir" |
23056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23057 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23058 /^X\(\/\/\)$/{ s//\1/; q; }
23059 /^X\(\/\).*/{ s//\1/; q; }
23060 s/.*/./; q'`
23061 done
23062 test ! -n "$as_dirs" || mkdir $as_dirs
23063 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23064 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23065 { (exit 1); exit 1; }; }; }
23066
23067 ac_builddir=.
23068
23069 if test "$ac_dir" != .; then
23070 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23071 # A "../" for each directory in $ac_dir_suffix.
23072 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23073 else
23074 ac_dir_suffix= ac_top_builddir=
23075 fi
23076
23077 case $srcdir in
23078 .) # No --srcdir option. We are building in place.
23079 ac_srcdir=.
23080 if test -z "$ac_top_builddir"; then
23081 ac_top_srcdir=.
23082 else
23083 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23084 fi ;;
23085 [\\/]* | ?:[\\/]* ) # Absolute path.
23086 ac_srcdir=$srcdir$ac_dir_suffix;
23087 ac_top_srcdir=$srcdir ;;
23088 *) # Relative path.
23089 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23090 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23091 esac
23092
23093 # Do not use `cd foo && pwd` to compute absolute paths, because
23094 # the directories may not exist.
23095 case `pwd` in
23096 .) ac_abs_builddir="$ac_dir";;
23097 *)
23098 case "$ac_dir" in
23099 .) ac_abs_builddir=`pwd`;;
23100 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23101 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23102 esac;;
23103 esac
23104 case $ac_abs_builddir in
23105 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23106 *)
23107 case ${ac_top_builddir}. in
23108 .) ac_abs_top_builddir=$ac_abs_builddir;;
23109 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23110 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23111 esac;;
23112 esac
23113 case $ac_abs_builddir in
23114 .) ac_abs_srcdir=$ac_srcdir;;
23115 *)
23116 case $ac_srcdir in
23117 .) ac_abs_srcdir=$ac_abs_builddir;;
23118 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23119 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23120 esac;;
23121 esac
23122 case $ac_abs_builddir in
23123 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23124 *)
23125 case $ac_top_srcdir in
23126 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23127 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23128 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23129 esac;;
23130 esac
23131
23132
23133 cd "$ac_dir"
23134
23135 # Check for guested configure; otherwise get Cygnus style configure.
23136 if test -f "$ac_srcdir/configure.gnu"; then
23137 ac_sub_configure=$ac_srcdir/configure.gnu
23138 elif test -f "$ac_srcdir/configure"; then
23139 ac_sub_configure=$ac_srcdir/configure
23140 elif test -f "$ac_srcdir/configure.in"; then
23141 # This should be Cygnus configure.
23142 ac_sub_configure=$ac_aux_dir/configure
23143 else
23144 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23145 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23146 ac_sub_configure=
23147 fi
23148
23149 # The recursion is here.
23150 if test -n "$ac_sub_configure"; then
23151 # Make the cache file name correct relative to the subdirectory.
23152 case $cache_file in
23153 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23154 *) # Relative path.
23155 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23156 esac
23157
23158 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23159 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23160 # The eval makes quoting arguments work.
23161 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23162 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23163 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23164 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23165 { (exit 1); exit 1; }; }
23166 fi
23167
23168 cd "$ac_popdir"
23169 done
23170 fi
23171
23172
23173 exit 0
This page took 0.535729 seconds and 4 git commands to generate.