Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
c906108c | 2 | # Guess values for system-dependent variables and create Makefiles. |
bec39cab | 3 | # Generated by GNU Autoconf 2.59. |
c906108c | 4 | # |
bec39cab | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
c906108c SS |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
bec39cab AC |
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 | ||
c906108c | 243 | |
bec39cab AC |
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 | # | |
c906108c | 254 | ac_default_prefix=/usr/local |
bec39cab AC |
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 | ac_subdirs_all="$ac_subdirs_all doc testsuite" | |
313 | ac_subdirs_all="$ac_subdirs_all gdbtk" | |
314 | ac_subdirs_all="$ac_subdirs_all multi-ice" | |
315 | ac_subdirs_all="$ac_subdirs_all gdbserver" | |
316 | 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os RANLIB ac_ct_RANLIB SET_MAKE ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS' | |
317 | ac_subst_files='host_makefile_frag target_makefile_frag' | |
c906108c SS |
318 | |
319 | # Initialize some variables set by options. | |
bec39cab AC |
320 | ac_init_help= |
321 | ac_init_version=false | |
c906108c SS |
322 | # The variables have the same names as the options, with |
323 | # dashes changed to underlines. | |
bec39cab | 324 | cache_file=/dev/null |
c906108c | 325 | exec_prefix=NONE |
c906108c | 326 | no_create= |
c906108c SS |
327 | no_recursion= |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
c906108c SS |
335 | verbose= |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
bec39cab AC |
338 | |
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
c906108c SS |
344 | bindir='${exec_prefix}/bin' |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
347 | datadir='${prefix}/share' | |
348 | sysconfdir='${prefix}/etc' | |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
351 | libdir='${exec_prefix}/lib' | |
352 | includedir='${prefix}/include' | |
353 | oldincludedir='/usr/include' | |
354 | infodir='${prefix}/info' | |
355 | mandir='${prefix}/man' | |
356 | ||
c906108c SS |
357 | ac_prev= |
358 | for ac_option | |
359 | do | |
c906108c SS |
360 | # If the previous option needs an argument, assign it. |
361 | if test -n "$ac_prev"; then | |
362 | eval "$ac_prev=\$ac_option" | |
363 | ac_prev= | |
364 | continue | |
365 | fi | |
366 | ||
bec39cab | 367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
368 | |
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
bec39cab | 371 | case $ac_option in |
c906108c SS |
372 | |
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
bec39cab | 376 | bindir=$ac_optarg ;; |
c906108c SS |
377 | |
378 | -build | --build | --buil | --bui | --bu) | |
bec39cab | 379 | ac_prev=build_alias ;; |
c906108c | 380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
bec39cab | 381 | build_alias=$ac_optarg ;; |
c906108c SS |
382 | |
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
bec39cab AC |
388 | cache_file=$ac_optarg ;; |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
c906108c SS |
392 | |
393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
394 | ac_prev=datadir ;; | |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
396 | | --da=*) | |
bec39cab | 397 | datadir=$ac_optarg ;; |
c906108c SS |
398 | |
399 | -disable-* | --disable-*) | |
bec39cab | 400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 401 | # Reject names that are not valid shell variable names. |
bec39cab AC |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
406 | eval "enable_$ac_feature=no" ;; | |
c906108c SS |
407 | |
408 | -enable-* | --enable-*) | |
bec39cab | 409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 410 | # Reject names that are not valid shell variable names. |
bec39cab AC |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
415 | case $ac_option in | |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
c906108c SS |
417 | *) ac_optarg=yes ;; |
418 | esac | |
bec39cab | 419 | eval "enable_$ac_feature='$ac_optarg'" ;; |
c906108c SS |
420 | |
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
bec39cab | 428 | exec_prefix=$ac_optarg ;; |
c906108c SS |
429 | |
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
bec39cab AC |
434 | -help | --help | --hel | --he | -h) |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
c906108c SS |
440 | |
441 | -host | --host | --hos | --ho) | |
bec39cab | 442 | ac_prev=host_alias ;; |
c906108c | 443 | -host=* | --host=* | --hos=* | --ho=*) |
bec39cab | 444 | host_alias=$ac_optarg ;; |
c906108c SS |
445 | |
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
bec39cab | 451 | includedir=$ac_optarg ;; |
c906108c SS |
452 | |
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
bec39cab | 456 | infodir=$ac_optarg ;; |
c906108c SS |
457 | |
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
bec39cab | 461 | libdir=$ac_optarg ;; |
c906108c SS |
462 | |
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
bec39cab | 468 | libexecdir=$ac_optarg ;; |
c906108c SS |
469 | |
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
471 | | --localstate | --localstat | --localsta | --localst \ | |
472 | | --locals | --local | --loca | --loc | --lo) | |
473 | ac_prev=localstatedir ;; | |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
bec39cab | 477 | localstatedir=$ac_optarg ;; |
c906108c SS |
478 | |
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
bec39cab | 482 | mandir=$ac_optarg ;; |
c906108c SS |
483 | |
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
bec39cab | 489 | | --no-cr | --no-c | -n) |
c906108c SS |
490 | no_create=yes ;; |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
bec39cab | 503 | oldincludedir=$ac_optarg ;; |
c906108c SS |
504 | |
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
bec39cab | 508 | prefix=$ac_optarg ;; |
c906108c SS |
509 | |
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
bec39cab | 515 | program_prefix=$ac_optarg ;; |
c906108c SS |
516 | |
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
bec39cab | 522 | program_suffix=$ac_optarg ;; |
c906108c SS |
523 | |
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
bec39cab | 539 | program_transform_name=$ac_optarg ;; |
c906108c SS |
540 | |
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
bec39cab | 549 | sbindir=$ac_optarg ;; |
c906108c SS |
550 | |
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
bec39cab | 560 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
561 | |
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
bec39cab | 565 | site=$ac_optarg ;; |
3ace7edb | 566 | |
c906108c SS |
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
bec39cab | 570 | srcdir=$ac_optarg ;; |
c906108c SS |
571 | |
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
bec39cab | 577 | sysconfdir=$ac_optarg ;; |
c906108c SS |
578 | |
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
bec39cab | 580 | ac_prev=target_alias ;; |
c906108c | 581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
bec39cab | 582 | target_alias=$ac_optarg ;; |
c906108c SS |
583 | |
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
bec39cab AC |
587 | -version | --version | --versio | --versi | --vers | -V) |
588 | ac_init_version=: ;; | |
c906108c SS |
589 | |
590 | -with-* | --with-*) | |
bec39cab | 591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 592 | # Reject names that are not valid shell variable names. |
bec39cab AC |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
c906108c | 596 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
bec39cab AC |
597 | case $ac_option in |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
c906108c SS |
599 | *) ac_optarg=yes ;; |
600 | esac | |
bec39cab | 601 | eval "with_$ac_package='$ac_optarg'" ;; |
c906108c SS |
602 | |
603 | -without-* | --without-*) | |
bec39cab | 604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 605 | # Reject names that are not valid shell variable names. |
bec39cab AC |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
610 | eval "with_$ac_package=no" ;; | |
c906108c SS |
611 | |
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
bec39cab | 621 | x_includes=$ac_optarg ;; |
c906108c SS |
622 | |
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
bec39cab | 628 | x_libraries=$ac_optarg ;; |
c906108c | 629 | |
bec39cab AC |
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
c906108c SS |
633 | ;; |
634 | ||
bec39cab AC |
635 | *=*) |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
642 | eval "$ac_envvar='$ac_optarg'" | |
643 | export $ac_envvar ;; | |
644 | ||
c906108c | 645 | *) |
bec39cab AC |
646 | # FIXME: should be removed in autoconf 3.0. |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
c906108c SS |
651 | ;; |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
bec39cab AC |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
c906108c | 660 | fi |
c906108c | 661 | |
bec39cab AC |
662 | # Be sure to have absolute paths. |
663 | for ac_var in exec_prefix prefix | |
664 | do | |
665 | eval ac_val=$`echo $ac_var` | |
666 | case $ac_val in | |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
c906108c | 672 | |
bec39cab AC |
673 | # Be sure to have absolute paths. |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
675 | localstatedir libdir includedir oldincludedir infodir mandir | |
c906108c | 676 | do |
bec39cab AC |
677 | eval ac_val=$`echo $ac_var` |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
c906108c SS |
682 | esac |
683 | done | |
684 | ||
bec39cab AC |
685 | # There might be people who depend on the old broken behavior: `$host' |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
c906108c | 702 | |
bec39cab AC |
703 | ac_tool_prefix= |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 707 | |
c906108c SS |
708 | |
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
712 | # Try the directory containing this script, then its parent. | |
bec39cab AC |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
715 | X"$0" : 'X\(//\)[^/]' \| \ | |
716 | X"$0" : 'X\(//\)$' \| \ | |
717 | X"$0" : 'X\(/\)' \| \ | |
718 | . : '\(.\)' 2>/dev/null || | |
719 | echo X"$0" | | |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
c906108c SS |
725 | srcdir=$ac_confdir |
726 | if test ! -r $srcdir/$ac_unique_file; then | |
727 | srcdir=.. | |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
732 | if test ! -r $srcdir/$ac_unique_file; then | |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
bec39cab AC |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
735 | { (exit 1); exit 1; }; } | |
c906108c | 736 | else |
bec39cab AC |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
738 | { (exit 1); exit 1; }; } | |
c906108c SS |
739 | fi |
740 | fi | |
bec39cab AC |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
743 | { (exit 1); exit 1; }; } | |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
c906108c | 777 | |
bec39cab AC |
778 | # |
779 | # Report the --help message. | |
780 | # | |
781 | if test "$ac_init_help" = "long"; then | |
782 | # Omit some internal or obsolete options to make the list less imposing. | |
783 | # This message is too long to be a string in the A/UX 3.1 sh. | |
784 | cat <<_ACEOF | |
785 | \`configure' configures this package to adapt to many kinds of systems. | |
786 | ||
787 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
788 | ||
789 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
790 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
791 | ||
792 | Defaults for the options are specified in brackets. | |
793 | ||
794 | Configuration: | |
795 | -h, --help display this help and exit | |
796 | --help=short display options specific to this package | |
797 | --help=recursive display the short help of all the included packages | |
798 | -V, --version display version information and exit | |
799 | -q, --quiet, --silent do not print \`checking...' messages | |
800 | --cache-file=FILE cache test results in FILE [disabled] | |
801 | -C, --config-cache alias for \`--cache-file=config.cache' | |
802 | -n, --no-create do not create output files | |
803 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
804 | ||
805 | _ACEOF | |
806 | ||
807 | cat <<_ACEOF | |
808 | Installation directories: | |
809 | --prefix=PREFIX install architecture-independent files in PREFIX | |
810 | [$ac_default_prefix] | |
811 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
812 | [PREFIX] | |
813 | ||
814 | By default, \`make install' will install all the files in | |
815 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
816 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
817 | for instance \`--prefix=\$HOME'. | |
818 | ||
819 | For better control, use the options below. | |
820 | ||
821 | Fine tuning of the installation directories: | |
822 | --bindir=DIR user executables [EPREFIX/bin] | |
823 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
824 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
825 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
826 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
827 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
828 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
829 | --libdir=DIR object code libraries [EPREFIX/lib] | |
830 | --includedir=DIR C header files [PREFIX/include] | |
831 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
832 | --infodir=DIR info documentation [PREFIX/info] | |
833 | --mandir=DIR man documentation [PREFIX/man] | |
834 | _ACEOF | |
835 | ||
836 | cat <<\_ACEOF | |
837 | ||
838 | Program names: | |
839 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
840 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
841 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
842 | ||
843 | X features: | |
844 | --x-includes=DIR X include files are in DIR | |
845 | --x-libraries=DIR X library files are in DIR | |
846 | ||
847 | System types: | |
848 | --build=BUILD configure for building on BUILD [guessed] | |
849 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
850 | --target=TARGET configure for building compilers for TARGET [HOST] | |
851 | _ACEOF | |
852 | fi | |
853 | ||
854 | if test -n "$ac_init_help"; then | |
855 | ||
856 | cat <<\_ACEOF | |
857 | ||
858 | Optional Features: | |
859 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
860 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85981d60 AC |
861 | --enable-maintainer-mode enable make rules and dependencies not useful |
862 | (and sometimes confusing) to the casual installer | |
bec39cab AC |
863 | --disable-nls do not use Native Language Support |
864 | --disable-gdbcli disable command-line interface (CLI) | |
865 | --disable-gdbmi disable machine-interface (MI) | |
866 | --enable-tui enable full-screen terminal user interface (TUI) | |
867 | --enable-gdbtk enable gdbtk graphical user interface (GUI) | |
868 | --enable-profiling enable profiling of GDB | |
869 | --enable-build-warnings Enable build-time compiler warnings if gcc is used | |
870 | --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used | |
871 | --enable-sim Link gdb with simulator | |
872 | --enable-multi-ice build the multi-ice-gdb-server | |
873 | ||
874 | Optional Packages: | |
875 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
876 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
877 | --with-included-gettext use the GNU gettext library included here | |
878 | --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug | |
879 | --with-libunwind Use libunwind frame unwinding support | |
880 | --without-included-regex don't use included regex; this is the default | |
881 | on systems with version 2 of the GNU C library | |
882 | (use with caution on other system) | |
883 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
884 | --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh) | |
885 | --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh) | |
886 | --with-tclinclude=DIR Directory where tcl private headers are | |
887 | --with-tkinclude=DIR Directory where tk private headers are | |
888 | --with-itclconfig Directory containing itcl configuration (itclConfig.sh) | |
889 | --with-itkconfig Directory containing itk configuration (itkConfig.sh) | |
890 | --with-x use the X Window System | |
891 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
892 | ||
893 | Some influential environment variables: | |
894 | CC C compiler command | |
895 | CFLAGS C compiler flags | |
896 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
897 | nonstandard directory <lib dir> | |
898 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
899 | headers in a nonstandard directory <include dir> | |
900 | CPP C preprocessor | |
901 | ||
902 | Use these variables to override the choices made by `configure' or to help | |
903 | it to find libraries and programs with nonstandard names/locations. | |
904 | ||
905 | _ACEOF | |
906 | fi | |
907 | ||
908 | if test "$ac_init_help" = "recursive"; then | |
909 | # If there are subdirs, report their specific --help. | |
910 | ac_popdir=`pwd` | |
911 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
912 | test -d $ac_dir || continue | |
913 | ac_builddir=. | |
914 | ||
915 | if test "$ac_dir" != .; then | |
916 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
917 | # A "../" for each directory in $ac_dir_suffix. | |
918 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
919 | else | |
920 | ac_dir_suffix= ac_top_builddir= | |
921 | fi | |
922 | ||
923 | case $srcdir in | |
924 | .) # No --srcdir option. We are building in place. | |
925 | ac_srcdir=. | |
926 | if test -z "$ac_top_builddir"; then | |
927 | ac_top_srcdir=. | |
928 | else | |
929 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
930 | fi ;; | |
931 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
932 | ac_srcdir=$srcdir$ac_dir_suffix; | |
933 | ac_top_srcdir=$srcdir ;; | |
934 | *) # Relative path. | |
935 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
936 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
937 | esac | |
938 | ||
939 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
940 | # the directories may not exist. | |
941 | case `pwd` in | |
942 | .) ac_abs_builddir="$ac_dir";; | |
943 | *) | |
944 | case "$ac_dir" in | |
945 | .) ac_abs_builddir=`pwd`;; | |
946 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
947 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
948 | esac;; | |
949 | esac | |
950 | case $ac_abs_builddir in | |
951 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
952 | *) | |
953 | case ${ac_top_builddir}. in | |
954 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
955 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
956 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
957 | esac;; | |
958 | esac | |
959 | case $ac_abs_builddir in | |
960 | .) ac_abs_srcdir=$ac_srcdir;; | |
961 | *) | |
962 | case $ac_srcdir in | |
963 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
964 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
965 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
966 | esac;; | |
967 | esac | |
968 | case $ac_abs_builddir in | |
969 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
970 | *) | |
971 | case $ac_top_srcdir in | |
972 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
973 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
974 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
975 | esac;; | |
976 | esac | |
977 | ||
978 | cd $ac_dir | |
979 | # Check for guested configure; otherwise get Cygnus style configure. | |
980 | if test -f $ac_srcdir/configure.gnu; then | |
981 | echo | |
982 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
983 | elif test -f $ac_srcdir/configure; then | |
984 | echo | |
985 | $SHELL $ac_srcdir/configure --help=recursive | |
986 | elif test -f $ac_srcdir/configure.ac || | |
987 | test -f $ac_srcdir/configure.in; then | |
988 | echo | |
989 | $ac_configure --help | |
3ace7edb | 990 | else |
bec39cab AC |
991 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
992 | fi | |
993 | cd $ac_popdir | |
994 | done | |
995 | fi | |
996 | ||
997 | test -n "$ac_init_help" && exit 0 | |
998 | if $ac_init_version; then | |
999 | cat <<\_ACEOF | |
1000 | ||
1001 | Copyright (C) 2003 Free Software Foundation, Inc. | |
1002 | This configure script is free software; the Free Software Foundation | |
1003 | gives unlimited permission to copy, distribute and modify it. | |
1004 | _ACEOF | |
1005 | exit 0 | |
1006 | fi | |
1007 | exec 5>config.log | |
1008 | cat >&5 <<_ACEOF | |
1009 | This file contains any messages produced by compilers while | |
1010 | running configure, to aid debugging if configure makes a mistake. | |
1011 | ||
1012 | It was created by $as_me, which was | |
1013 | generated by GNU Autoconf 2.59. Invocation command line was | |
1014 | ||
1015 | $ $0 $@ | |
1016 | ||
1017 | _ACEOF | |
1018 | { | |
1019 | cat <<_ASUNAME | |
1020 | ## --------- ## | |
1021 | ## Platform. ## | |
1022 | ## --------- ## | |
1023 | ||
1024 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1025 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1026 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1027 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1028 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1029 | ||
1030 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1031 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1032 | ||
1033 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1034 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1035 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1036 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1037 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1038 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1039 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1040 | ||
1041 | _ASUNAME | |
1042 | ||
1043 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1044 | for as_dir in $PATH | |
1045 | do | |
1046 | IFS=$as_save_IFS | |
1047 | test -z "$as_dir" && as_dir=. | |
1048 | echo "PATH: $as_dir" | |
1049 | done | |
1050 | ||
1051 | } >&5 | |
1052 | ||
1053 | cat >&5 <<_ACEOF | |
1054 | ||
1055 | ||
1056 | ## ----------- ## | |
1057 | ## Core tests. ## | |
1058 | ## ----------- ## | |
1059 | ||
1060 | _ACEOF | |
1061 | ||
1062 | ||
1063 | # Keep a trace of the command line. | |
1064 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1065 | # Strip out --silent because we don't want to record it for future runs. | |
1066 | # Also quote any args containing shell meta-characters. | |
1067 | # Make two passes to allow for proper duplicate-argument suppression. | |
1068 | ac_configure_args= | |
1069 | ac_configure_args0= | |
1070 | ac_configure_args1= | |
1071 | ac_sep= | |
1072 | ac_must_keep_next=false | |
1073 | for ac_pass in 1 2 | |
1074 | do | |
1075 | for ac_arg | |
1076 | do | |
1077 | case $ac_arg in | |
1078 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1079 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1080 | | -silent | --silent | --silen | --sile | --sil) | |
1081 | continue ;; | |
1082 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1083 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1084 | esac | |
1085 | case $ac_pass in | |
1086 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1087 | 2) | |
1088 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1089 | if test $ac_must_keep_next = true; then | |
1090 | ac_must_keep_next=false # Got value, back to normal. | |
1091 | else | |
1092 | case $ac_arg in | |
1093 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1094 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1095 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1096 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1097 | case "$ac_configure_args0 " in | |
1098 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1099 | esac | |
1100 | ;; | |
1101 | -* ) ac_must_keep_next=true ;; | |
1102 | esac | |
1103 | fi | |
1104 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1105 | # Get rid of the leading space. | |
1106 | ac_sep=" " | |
1107 | ;; | |
1108 | esac | |
1109 | done | |
1110 | done | |
1111 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1112 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1113 | ||
1114 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1115 | # config.log. We remove comments because anyway the quotes in there | |
1116 | # would cause problems or look ugly. | |
1117 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1118 | # such as our DU 5.0 friend, will then `close' the trap. | |
1119 | trap 'exit_status=$? | |
1120 | # Save into config.log some information that might help in debugging. | |
1121 | { | |
1122 | echo | |
1123 | ||
1124 | cat <<\_ASBOX | |
1125 | ## ---------------- ## | |
1126 | ## Cache variables. ## | |
1127 | ## ---------------- ## | |
1128 | _ASBOX | |
1129 | echo | |
1130 | # The following way of writing the cache mishandles newlines in values, | |
1131 | { | |
1132 | (set) 2>&1 | | |
1133 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1134 | *ac_space=\ *) | |
1135 | sed -n \ | |
1136 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1137 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1138 | ;; | |
1139 | *) | |
1140 | sed -n \ | |
1141 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1142 | ;; | |
1143 | esac; | |
1144 | } | |
1145 | echo | |
1146 | ||
1147 | cat <<\_ASBOX | |
1148 | ## ----------------- ## | |
1149 | ## Output variables. ## | |
1150 | ## ----------------- ## | |
1151 | _ASBOX | |
1152 | echo | |
1153 | for ac_var in $ac_subst_vars | |
1154 | do | |
1155 | eval ac_val=$`echo $ac_var` | |
1156 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1157 | done | sort | |
1158 | echo | |
1159 | ||
1160 | if test -n "$ac_subst_files"; then | |
1161 | cat <<\_ASBOX | |
1162 | ## ------------- ## | |
1163 | ## Output files. ## | |
1164 | ## ------------- ## | |
1165 | _ASBOX | |
1166 | echo | |
1167 | for ac_var in $ac_subst_files | |
1168 | do | |
1169 | eval ac_val=$`echo $ac_var` | |
1170 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1171 | done | sort | |
1172 | echo | |
1173 | fi | |
1174 | ||
1175 | if test -s confdefs.h; then | |
1176 | cat <<\_ASBOX | |
1177 | ## ----------- ## | |
1178 | ## confdefs.h. ## | |
1179 | ## ----------- ## | |
1180 | _ASBOX | |
1181 | echo | |
1182 | sed "/^$/d" confdefs.h | sort | |
1183 | echo | |
3ace7edb | 1184 | fi |
bec39cab AC |
1185 | test "$ac_signal" != 0 && |
1186 | echo "$as_me: caught signal $ac_signal" | |
1187 | echo "$as_me: exit $exit_status" | |
1188 | } >&5 | |
1189 | rm -f core *.core && | |
1190 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1191 | exit $exit_status | |
1192 | ' 0 | |
1193 | for ac_signal in 1 2 13 15; do | |
1194 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1195 | done | |
1196 | ac_signal=0 | |
1197 | ||
1198 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1199 | rm -rf conftest* confdefs.h | |
1200 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1201 | echo >confdefs.h | |
1202 | ||
1203 | # Predefined preprocessor variables. | |
1204 | ||
1205 | cat >>confdefs.h <<_ACEOF | |
1206 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1207 | _ACEOF | |
1208 | ||
1209 | ||
1210 | cat >>confdefs.h <<_ACEOF | |
1211 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1212 | _ACEOF | |
1213 | ||
1214 | ||
1215 | cat >>confdefs.h <<_ACEOF | |
1216 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1217 | _ACEOF | |
1218 | ||
1219 | ||
1220 | cat >>confdefs.h <<_ACEOF | |
1221 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1222 | _ACEOF | |
1223 | ||
1224 | ||
1225 | cat >>confdefs.h <<_ACEOF | |
1226 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1227 | _ACEOF | |
1228 | ||
1229 | ||
1230 | # Let the site file select an alternate cache file if it wants to. | |
1231 | # Prefer explicitly selected file to automatically selected ones. | |
1232 | if test -z "$CONFIG_SITE"; then | |
1233 | if test "x$prefix" != xNONE; then | |
1234 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1235 | else | |
1236 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
c906108c SS |
1237 | fi |
1238 | fi | |
1239 | for ac_site_file in $CONFIG_SITE; do | |
1240 | if test -r "$ac_site_file"; then | |
bec39cab AC |
1241 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1242 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1243 | sed 's/^/| /' "$ac_site_file" >&5 | |
c906108c SS |
1244 | . "$ac_site_file" |
1245 | fi | |
1246 | done | |
1247 | ||
1248 | if test -r "$cache_file"; then | |
bec39cab AC |
1249 | # Some versions of bash will fail to source /dev/null (special |
1250 | # files actually), so we avoid doing that. | |
1251 | if test -f "$cache_file"; then | |
1252 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1253 | echo "$as_me: loading cache $cache_file" >&6;} | |
1254 | case $cache_file in | |
1255 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1256 | *) . ./$cache_file;; | |
1257 | esac | |
1258 | fi | |
c906108c | 1259 | else |
bec39cab AC |
1260 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1261 | echo "$as_me: creating cache $cache_file" >&6;} | |
1262 | >$cache_file | |
1263 | fi | |
1264 | ||
1265 | # Check that the precious variables saved in the cache have kept the same | |
1266 | # value. | |
1267 | ac_cache_corrupted=false | |
1268 | for ac_var in `(set) 2>&1 | | |
1269 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1270 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1271 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1272 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1273 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1274 | case $ac_old_set,$ac_new_set in | |
1275 | set,) | |
1276 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1277 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1278 | ac_cache_corrupted=: ;; | |
1279 | ,set) | |
1280 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1281 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1282 | ac_cache_corrupted=: ;; | |
1283 | ,);; | |
1284 | *) | |
1285 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1286 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1287 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1288 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1289 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1290 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1291 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1292 | ac_cache_corrupted=: | |
1293 | fi;; | |
1294 | esac | |
1295 | # Pass precious variables to config.status. | |
1296 | if test "$ac_new_set" = set; then | |
1297 | case $ac_new_val in | |
1298 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1299 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1300 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1301 | esac | |
1302 | case " $ac_configure_args " in | |
1303 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1304 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1305 | esac | |
1306 | fi | |
1307 | done | |
1308 | if $ac_cache_corrupted; then | |
1309 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1310 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1311 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1312 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1313 | { (exit 1); exit 1; }; } | |
c906108c SS |
1314 | fi |
1315 | ||
1316 | ac_ext=c | |
c906108c | 1317 | ac_cpp='$CPP $CPPFLAGS' |
bec39cab AC |
1318 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1319 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1320 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c SS |
1321 | |
1322 | ||
1323 | ||
bec39cab AC |
1324 | |
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | ||
1338 | ||
1339 | ||
1340 | ac_config_headers="$ac_config_headers config.h:config.in" | |
1341 | ||
1342 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1343 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
413ccac7 AC |
1344 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
1345 | if test "${enable_maintainer_mode+set}" = set; then | |
1346 | enableval="$enable_maintainer_mode" | |
1347 | USE_MAINTAINER_MODE=$enableval | |
1348 | else | |
1349 | USE_MAINTAINER_MODE=no | |
bec39cab AC |
1350 | fi; |
1351 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1352 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
413ccac7 | 1353 | |
413ccac7 AC |
1354 | |
1355 | if test $USE_MAINTAINER_MODE = yes; then | |
1356 | MAINTAINER_MODE_TRUE= | |
1357 | MAINTAINER_MODE_FALSE='#' | |
1358 | else | |
1359 | MAINTAINER_MODE_TRUE='#' | |
1360 | MAINTAINER_MODE_FALSE= | |
1361 | fi | |
85981d60 | 1362 | |
413ccac7 | 1363 | MAINT=$MAINTAINER_MODE_TRUE |
413ccac7 | 1364 | |
c906108c | 1365 | |
bec39cab AC |
1366 | |
1367 | ac_ext=c | |
1368 | ac_cpp='$CPP $CPPFLAGS' | |
1369 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1370 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1371 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1372 | if test -n "$ac_tool_prefix"; then | |
1373 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1374 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1375 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1377 | if test "${ac_cv_prog_CC+set}" = set; then | |
1378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1379 | else | |
1380 | if test -n "$CC"; then | |
1381 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1382 | else | |
1383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1384 | for as_dir in $PATH | |
1385 | do | |
1386 | IFS=$as_save_IFS | |
1387 | test -z "$as_dir" && as_dir=. | |
1388 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1389 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1390 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1391 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1392 | break 2 | |
1393 | fi | |
1394 | done | |
1395 | done | |
1396 | ||
1397 | fi | |
1398 | fi | |
1399 | CC=$ac_cv_prog_CC | |
1400 | if test -n "$CC"; then | |
1401 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1402 | echo "${ECHO_T}$CC" >&6 | |
1403 | else | |
1404 | echo "$as_me:$LINENO: result: no" >&5 | |
1405 | echo "${ECHO_T}no" >&6 | |
1406 | fi | |
1407 | ||
1408 | fi | |
1409 | if test -z "$ac_cv_prog_CC"; then | |
1410 | ac_ct_CC=$CC | |
1411 | # Extract the first word of "gcc", so it can be a program name with args. | |
c906108c | 1412 | set dummy gcc; ac_word=$2 |
bec39cab AC |
1413 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1414 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1415 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1417 | else | |
1418 | if test -n "$ac_ct_CC"; then | |
1419 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1420 | else | |
1421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1422 | for as_dir in $PATH | |
1423 | do | |
1424 | IFS=$as_save_IFS | |
1425 | test -z "$as_dir" && as_dir=. | |
1426 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1427 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1428 | ac_cv_prog_ac_ct_CC="gcc" | |
1429 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1430 | break 2 | |
1431 | fi | |
1432 | done | |
1433 | done | |
1434 | ||
1435 | fi | |
1436 | fi | |
1437 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1438 | if test -n "$ac_ct_CC"; then | |
1439 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1440 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1441 | else | |
1442 | echo "$as_me:$LINENO: result: no" >&5 | |
1443 | echo "${ECHO_T}no" >&6 | |
1444 | fi | |
1445 | ||
1446 | CC=$ac_ct_CC | |
1447 | else | |
1448 | CC="$ac_cv_prog_CC" | |
1449 | fi | |
1450 | ||
1451 | if test -z "$CC"; then | |
1452 | if test -n "$ac_tool_prefix"; then | |
1453 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1454 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1455 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1457 | if test "${ac_cv_prog_CC+set}" = set; then | |
1458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1459 | else |
1460 | if test -n "$CC"; then | |
1461 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1462 | else | |
bec39cab AC |
1463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1464 | for as_dir in $PATH | |
1465 | do | |
1466 | IFS=$as_save_IFS | |
1467 | test -z "$as_dir" && as_dir=. | |
1468 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1469 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1470 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1471 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1472 | break 2 | |
1473 | fi | |
1474 | done | |
1475 | done | |
1476 | ||
c906108c SS |
1477 | fi |
1478 | fi | |
bec39cab | 1479 | CC=$ac_cv_prog_CC |
c906108c | 1480 | if test -n "$CC"; then |
bec39cab AC |
1481 | echo "$as_me:$LINENO: result: $CC" >&5 |
1482 | echo "${ECHO_T}$CC" >&6 | |
1483 | else | |
1484 | echo "$as_me:$LINENO: result: no" >&5 | |
1485 | echo "${ECHO_T}no" >&6 | |
1486 | fi | |
1487 | ||
1488 | fi | |
1489 | if test -z "$ac_cv_prog_CC"; then | |
1490 | ac_ct_CC=$CC | |
1491 | # Extract the first word of "cc", so it can be a program name with args. | |
1492 | set dummy cc; ac_word=$2 | |
1493 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1495 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1497 | else | |
1498 | if test -n "$ac_ct_CC"; then | |
1499 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1500 | else | |
1501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1502 | for as_dir in $PATH | |
1503 | do | |
1504 | IFS=$as_save_IFS | |
1505 | test -z "$as_dir" && as_dir=. | |
1506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1507 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1508 | ac_cv_prog_ac_ct_CC="cc" | |
1509 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1510 | break 2 | |
1511 | fi | |
1512 | done | |
1513 | done | |
1514 | ||
1515 | fi | |
1516 | fi | |
1517 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1518 | if test -n "$ac_ct_CC"; then | |
1519 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1520 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
c906108c | 1521 | else |
bec39cab AC |
1522 | echo "$as_me:$LINENO: result: no" >&5 |
1523 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1524 | fi |
1525 | ||
bec39cab AC |
1526 | CC=$ac_ct_CC |
1527 | else | |
1528 | CC="$ac_cv_prog_CC" | |
1529 | fi | |
1530 | ||
1531 | fi | |
c906108c SS |
1532 | if test -z "$CC"; then |
1533 | # Extract the first word of "cc", so it can be a program name with args. | |
1534 | set dummy cc; ac_word=$2 | |
bec39cab AC |
1535 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1537 | if test "${ac_cv_prog_CC+set}" = set; then | |
1538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1539 | else |
1540 | if test -n "$CC"; then | |
1541 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1542 | else | |
c906108c | 1543 | ac_prog_rejected=no |
bec39cab AC |
1544 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1545 | for as_dir in $PATH | |
1546 | do | |
1547 | IFS=$as_save_IFS | |
1548 | test -z "$as_dir" && as_dir=. | |
1549 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1550 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1551 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1552 | ac_prog_rejected=yes | |
1553 | continue | |
1554 | fi | |
1555 | ac_cv_prog_CC="cc" | |
1556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1557 | break 2 | |
1558 | fi | |
1559 | done | |
1560 | done | |
1561 | ||
c906108c SS |
1562 | if test $ac_prog_rejected = yes; then |
1563 | # We found a bogon in the path, so make sure we never use it. | |
1564 | set dummy $ac_cv_prog_CC | |
1565 | shift | |
bec39cab | 1566 | if test $# != 0; then |
c906108c SS |
1567 | # We chose a different compiler from the bogus one. |
1568 | # However, it has the same basename, so the bogon will be chosen | |
1569 | # first if we set CC to just the basename; use the full file name. | |
1570 | shift | |
bec39cab | 1571 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
1572 | fi |
1573 | fi | |
1574 | fi | |
1575 | fi | |
bec39cab | 1576 | CC=$ac_cv_prog_CC |
c906108c | 1577 | if test -n "$CC"; then |
bec39cab AC |
1578 | echo "$as_me:$LINENO: result: $CC" >&5 |
1579 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1580 | else |
bec39cab AC |
1581 | echo "$as_me:$LINENO: result: no" >&5 |
1582 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1583 | fi |
1584 | ||
bec39cab AC |
1585 | fi |
1586 | if test -z "$CC"; then | |
1587 | if test -n "$ac_tool_prefix"; then | |
1588 | for ac_prog in cl | |
1589 | do | |
1590 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1591 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1592 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1594 | if test "${ac_cv_prog_CC+set}" = set; then | |
1595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1596 | else |
1597 | if test -n "$CC"; then | |
1598 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1599 | else | |
bec39cab AC |
1600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1601 | for as_dir in $PATH | |
1602 | do | |
1603 | IFS=$as_save_IFS | |
1604 | test -z "$as_dir" && as_dir=. | |
1605 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1606 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1607 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1608 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1609 | break 2 | |
1610 | fi | |
1611 | done | |
1612 | done | |
1613 | ||
c906108c SS |
1614 | fi |
1615 | fi | |
bec39cab | 1616 | CC=$ac_cv_prog_CC |
c906108c | 1617 | if test -n "$CC"; then |
bec39cab AC |
1618 | echo "$as_me:$LINENO: result: $CC" >&5 |
1619 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1620 | else |
bec39cab AC |
1621 | echo "$as_me:$LINENO: result: no" >&5 |
1622 | echo "${ECHO_T}no" >&6 | |
c906108c | 1623 | fi |
bec39cab AC |
1624 | |
1625 | test -n "$CC" && break | |
1626 | done | |
1627 | fi | |
1628 | if test -z "$CC"; then | |
1629 | ac_ct_CC=$CC | |
1630 | for ac_prog in cl | |
1631 | do | |
1632 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1633 | set dummy $ac_prog; ac_word=$2 | |
1634 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1635 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1636 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1638 | else | |
1639 | if test -n "$ac_ct_CC"; then | |
1640 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1641 | else | |
1642 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1643 | for as_dir in $PATH | |
1644 | do | |
1645 | IFS=$as_save_IFS | |
1646 | test -z "$as_dir" && as_dir=. | |
1647 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1648 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1649 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1650 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1651 | break 2 | |
c906108c | 1652 | fi |
bec39cab AC |
1653 | done |
1654 | done | |
1655 | ||
1656 | fi | |
1657 | fi | |
1658 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1659 | if test -n "$ac_ct_CC"; then | |
1660 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1661 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1662 | else | |
1663 | echo "$as_me:$LINENO: result: no" >&5 | |
1664 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1665 | fi |
1666 | ||
bec39cab AC |
1667 | test -n "$ac_ct_CC" && break |
1668 | done | |
c906108c | 1669 | |
bec39cab AC |
1670 | CC=$ac_ct_CC |
1671 | fi | |
1672 | ||
1673 | fi | |
1674 | ||
1675 | ||
1676 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1677 | See \`config.log' for more details." >&5 | |
1678 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1679 | See \`config.log' for more details." >&2;} | |
1680 | { (exit 1); exit 1; }; } | |
1681 | ||
1682 | # Provide some information about the compiler. | |
1683 | echo "$as_me:$LINENO:" \ | |
1684 | "checking for C compiler version" >&5 | |
1685 | ac_compiler=`set X $ac_compile; echo $2` | |
1686 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1687 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1688 | ac_status=$? | |
1689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1690 | (exit $ac_status); } | |
1691 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1692 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1693 | ac_status=$? | |
1694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1695 | (exit $ac_status); } | |
1696 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1697 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1698 | ac_status=$? | |
1699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1700 | (exit $ac_status); } | |
1701 | ||
1702 | cat >conftest.$ac_ext <<_ACEOF | |
1703 | /* confdefs.h. */ | |
1704 | _ACEOF | |
1705 | cat confdefs.h >>conftest.$ac_ext | |
1706 | cat >>conftest.$ac_ext <<_ACEOF | |
1707 | /* end confdefs.h. */ | |
1708 | ||
1709 | int | |
1710 | main () | |
1711 | { | |
1712 | ||
1713 | ; | |
1714 | return 0; | |
1715 | } | |
1716 | _ACEOF | |
1717 | ac_clean_files_save=$ac_clean_files | |
1718 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1719 | # Try to create an executable without -o first, disregard a.out. | |
1720 | # It will help us diagnose broken compilers, and finding out an intuition | |
1721 | # of exeext. | |
1722 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1723 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1724 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1725 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1726 | (eval $ac_link_default) 2>&5 | |
1727 | ac_status=$? | |
1728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1729 | (exit $ac_status); }; then | |
1730 | # Find the output, starting from the most likely. This scheme is | |
1731 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1732 | # resort. | |
1733 | ||
1734 | # Be careful to initialize this variable, since it used to be cached. | |
1735 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1736 | ac_cv_exeext= | |
1737 | # b.out is created by i960 compilers. | |
1738 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1739 | do | |
1740 | test -f "$ac_file" || continue | |
1741 | case $ac_file in | |
1742 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1743 | ;; | |
1744 | conftest.$ac_ext ) | |
1745 | # This is the source file. | |
1746 | ;; | |
1747 | [ab].out ) | |
1748 | # We found the default executable, but exeext='' is most | |
1749 | # certainly right. | |
1750 | break;; | |
1751 | *.* ) | |
1752 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1753 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1754 | # but it would be cool to find out if it's true. Does anybody | |
1755 | # maintain Libtool? --akim. | |
1756 | export ac_cv_exeext | |
1757 | break;; | |
1758 | * ) | |
1759 | break;; | |
1760 | esac | |
1761 | done | |
1762 | else | |
1763 | echo "$as_me: failed program was:" >&5 | |
1764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1765 | ||
1766 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1767 | See \`config.log' for more details." >&5 | |
1768 | echo "$as_me: error: C compiler cannot create executables | |
1769 | See \`config.log' for more details." >&2;} | |
1770 | { (exit 77); exit 77; }; } | |
1771 | fi | |
1772 | ||
1773 | ac_exeext=$ac_cv_exeext | |
1774 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1775 | echo "${ECHO_T}$ac_file" >&6 | |
1776 | ||
1777 | # Check the compiler produces executables we can run. If not, either | |
1778 | # the compiler is broken, or we cross compile. | |
1779 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1780 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1781 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1782 | # If not cross compiling, check that we can run a simple program. | |
1783 | if test "$cross_compiling" != yes; then | |
1784 | if { ac_try='./$ac_file' | |
1785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1786 | (eval $ac_try) 2>&5 | |
1787 | ac_status=$? | |
1788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1789 | (exit $ac_status); }; }; then | |
1790 | cross_compiling=no | |
c906108c | 1791 | else |
bec39cab AC |
1792 | if test "$cross_compiling" = maybe; then |
1793 | cross_compiling=yes | |
1794 | else | |
1795 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1796 | If you meant to cross compile, use \`--host'. | |
1797 | See \`config.log' for more details." >&5 | |
1798 | echo "$as_me: error: cannot run C compiled programs. | |
1799 | If you meant to cross compile, use \`--host'. | |
1800 | See \`config.log' for more details." >&2;} | |
1801 | { (exit 1); exit 1; }; } | |
1802 | fi | |
c906108c | 1803 | fi |
bec39cab AC |
1804 | fi |
1805 | echo "$as_me:$LINENO: result: yes" >&5 | |
1806 | echo "${ECHO_T}yes" >&6 | |
1807 | ||
1808 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1809 | ac_clean_files=$ac_clean_files_save | |
1810 | # Check the compiler produces executables we can run. If not, either | |
1811 | # the compiler is broken, or we cross compile. | |
1812 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1813 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1814 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1815 | echo "${ECHO_T}$cross_compiling" >&6 | |
1816 | ||
1817 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1818 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1819 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1820 | (eval $ac_link) 2>&5 | |
1821 | ac_status=$? | |
1822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1823 | (exit $ac_status); }; then | |
1824 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1825 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1826 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1827 | # `rm'. | |
1828 | for ac_file in conftest.exe conftest conftest.*; do | |
1829 | test -f "$ac_file" || continue | |
1830 | case $ac_file in | |
1831 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1832 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1833 | export ac_cv_exeext | |
1834 | break;; | |
1835 | * ) break;; | |
1836 | esac | |
1837 | done | |
c906108c | 1838 | else |
bec39cab AC |
1839 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1840 | See \`config.log' for more details." >&5 | |
1841 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1842 | See \`config.log' for more details." >&2;} | |
1843 | { (exit 1); exit 1; }; } | |
c906108c | 1844 | fi |
c906108c | 1845 | |
bec39cab AC |
1846 | rm -f conftest$ac_cv_exeext |
1847 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1848 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 1849 | |
bec39cab AC |
1850 | rm -f conftest.$ac_ext |
1851 | EXEEXT=$ac_cv_exeext | |
1852 | ac_exeext=$EXEEXT | |
1853 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1854 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1855 | if test "${ac_cv_objext+set}" = set; then | |
1856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1857 | else | |
1858 | cat >conftest.$ac_ext <<_ACEOF | |
1859 | /* confdefs.h. */ | |
1860 | _ACEOF | |
1861 | cat confdefs.h >>conftest.$ac_ext | |
1862 | cat >>conftest.$ac_ext <<_ACEOF | |
1863 | /* end confdefs.h. */ | |
c906108c | 1864 | |
bec39cab AC |
1865 | int |
1866 | main () | |
1867 | { | |
c906108c | 1868 | |
bec39cab AC |
1869 | ; |
1870 | return 0; | |
1871 | } | |
1872 | _ACEOF | |
1873 | rm -f conftest.o conftest.obj | |
1874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1875 | (eval $ac_compile) 2>&5 | |
1876 | ac_status=$? | |
1877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1878 | (exit $ac_status); }; then | |
1879 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1880 | case $ac_file in | |
1881 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1882 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1883 | break;; | |
1884 | esac | |
1885 | done | |
c906108c | 1886 | else |
bec39cab AC |
1887 | echo "$as_me: failed program was:" >&5 |
1888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1889 | ||
1890 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1891 | See \`config.log' for more details." >&5 | |
1892 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1893 | See \`config.log' for more details." >&2;} | |
1894 | { (exit 1); exit 1; }; } | |
c906108c SS |
1895 | fi |
1896 | ||
bec39cab AC |
1897 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1898 | fi | |
1899 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1900 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1901 | OBJEXT=$ac_cv_objext | |
1902 | ac_objext=$OBJEXT | |
1903 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1904 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1905 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1907 | else |
bec39cab AC |
1908 | cat >conftest.$ac_ext <<_ACEOF |
1909 | /* confdefs.h. */ | |
1910 | _ACEOF | |
1911 | cat confdefs.h >>conftest.$ac_ext | |
1912 | cat >>conftest.$ac_ext <<_ACEOF | |
1913 | /* end confdefs.h. */ | |
1914 | ||
1915 | int | |
1916 | main () | |
1917 | { | |
1918 | #ifndef __GNUC__ | |
1919 | choke me | |
1920 | #endif | |
1921 | ||
1922 | ; | |
1923 | return 0; | |
1924 | } | |
1925 | _ACEOF | |
1926 | rm -f conftest.$ac_objext | |
1927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1928 | (eval $ac_compile) 2>conftest.er1 | |
1929 | ac_status=$? | |
1930 | grep -v '^ *+' conftest.er1 >conftest.err | |
1931 | rm -f conftest.er1 | |
1932 | cat conftest.err >&5 | |
1933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1934 | (exit $ac_status); } && | |
1935 | { ac_try='test -z "$ac_c_werror_flag" | |
1936 | || test ! -s conftest.err' | |
1937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1938 | (eval $ac_try) 2>&5 | |
1939 | ac_status=$? | |
1940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1941 | (exit $ac_status); }; } && | |
1942 | { ac_try='test -s conftest.$ac_objext' | |
1943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1944 | (eval $ac_try) 2>&5 | |
1945 | ac_status=$? | |
1946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1947 | (exit $ac_status); }; }; then | |
1948 | ac_compiler_gnu=yes | |
1949 | else | |
1950 | echo "$as_me: failed program was:" >&5 | |
1951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1952 | ||
1953 | ac_compiler_gnu=no | |
1954 | fi | |
1955 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
1956 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1957 | ||
1958 | fi | |
1959 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
1960 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
1961 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1962 | ac_test_CFLAGS=${CFLAGS+set} | |
1963 | ac_save_CFLAGS=$CFLAGS | |
1964 | CFLAGS="-g" | |
1965 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1966 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
1967 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1968 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1969 | else | |
1970 | cat >conftest.$ac_ext <<_ACEOF | |
1971 | /* confdefs.h. */ | |
1972 | _ACEOF | |
1973 | cat confdefs.h >>conftest.$ac_ext | |
1974 | cat >>conftest.$ac_ext <<_ACEOF | |
1975 | /* end confdefs.h. */ | |
1976 | ||
1977 | int | |
1978 | main () | |
1979 | { | |
1980 | ||
1981 | ; | |
1982 | return 0; | |
1983 | } | |
1984 | _ACEOF | |
1985 | rm -f conftest.$ac_objext | |
1986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1987 | (eval $ac_compile) 2>conftest.er1 | |
1988 | ac_status=$? | |
1989 | grep -v '^ *+' conftest.er1 >conftest.err | |
1990 | rm -f conftest.er1 | |
1991 | cat conftest.err >&5 | |
1992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1993 | (exit $ac_status); } && | |
1994 | { ac_try='test -z "$ac_c_werror_flag" | |
1995 | || test ! -s conftest.err' | |
1996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1997 | (eval $ac_try) 2>&5 | |
1998 | ac_status=$? | |
1999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2000 | (exit $ac_status); }; } && | |
2001 | { ac_try='test -s conftest.$ac_objext' | |
2002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2003 | (eval $ac_try) 2>&5 | |
2004 | ac_status=$? | |
2005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2006 | (exit $ac_status); }; }; then | |
c906108c SS |
2007 | ac_cv_prog_cc_g=yes |
2008 | else | |
bec39cab AC |
2009 | echo "$as_me: failed program was:" >&5 |
2010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2011 | |
bec39cab | 2012 | ac_cv_prog_cc_g=no |
c906108c | 2013 | fi |
bec39cab AC |
2014 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2015 | fi | |
2016 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2017 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 2018 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 2019 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
2020 | elif test $ac_cv_prog_cc_g = yes; then |
2021 | if test "$GCC" = yes; then | |
2022 | CFLAGS="-g -O2" | |
2023 | else | |
2024 | CFLAGS="-g" | |
2025 | fi | |
2026 | else | |
2027 | if test "$GCC" = yes; then | |
2028 | CFLAGS="-O2" | |
2029 | else | |
2030 | CFLAGS= | |
2031 | fi | |
2032 | fi | |
bec39cab AC |
2033 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2034 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2035 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2037 | else | |
2038 | ac_cv_prog_cc_stdc=no | |
2039 | ac_save_CC=$CC | |
2040 | cat >conftest.$ac_ext <<_ACEOF | |
2041 | /* confdefs.h. */ | |
2042 | _ACEOF | |
2043 | cat confdefs.h >>conftest.$ac_ext | |
2044 | cat >>conftest.$ac_ext <<_ACEOF | |
2045 | /* end confdefs.h. */ | |
c906108c SS |
2046 | #include <stdarg.h> |
2047 | #include <stdio.h> | |
2048 | #include <sys/types.h> | |
2049 | #include <sys/stat.h> | |
2050 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2051 | struct buf { int x; }; | |
2052 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2053 | static char *e (p, i) | |
2054 | char **p; | |
2055 | int i; | |
2056 | { | |
2057 | return p[i]; | |
2058 | } | |
2059 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2060 | { | |
2061 | char *s; | |
2062 | va_list v; | |
2063 | va_start (v,p); | |
2064 | s = g (p, va_arg (v,int)); | |
2065 | va_end (v); | |
2066 | return s; | |
2067 | } | |
bec39cab AC |
2068 | |
2069 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2070 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2071 | These don't provoke an error unfortunately, instead are silently treated | |
2072 | as 'x'. The following induces an error, until -std1 is added to get | |
2073 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2074 | array size at least. It's necessary to write '\x00'==0 to get something | |
2075 | that's true only with -std1. */ | |
2076 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2077 | ||
c906108c SS |
2078 | int test (int i, double x); |
2079 | struct s1 {int (*f) (int a);}; | |
2080 | struct s2 {int (*f) (double a);}; | |
2081 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2082 | int argc; | |
2083 | char **argv; | |
bec39cab AC |
2084 | int |
2085 | main () | |
2086 | { | |
c906108c | 2087 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
bec39cab AC |
2088 | ; |
2089 | return 0; | |
2090 | } | |
2091 | _ACEOF | |
2092 | # Don't try gcc -ansi; that turns off useful extensions and | |
2093 | # breaks some systems' header files. | |
2094 | # AIX -qlanglvl=ansi | |
2095 | # Ultrix and OSF/1 -std1 | |
2096 | # HP-UX 10.20 and later -Ae | |
2097 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2098 | # SVR4 -Xc -D__EXTENSIONS__ | |
2099 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2100 | do | |
2101 | CC="$ac_save_CC $ac_arg" | |
2102 | rm -f conftest.$ac_objext | |
2103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2104 | (eval $ac_compile) 2>conftest.er1 | |
2105 | ac_status=$? | |
2106 | grep -v '^ *+' conftest.er1 >conftest.err | |
2107 | rm -f conftest.er1 | |
2108 | cat conftest.err >&5 | |
2109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2110 | (exit $ac_status); } && | |
2111 | { ac_try='test -z "$ac_c_werror_flag" | |
2112 | || test ! -s conftest.err' | |
2113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2114 | (eval $ac_try) 2>&5 | |
2115 | ac_status=$? | |
2116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2117 | (exit $ac_status); }; } && | |
2118 | { ac_try='test -s conftest.$ac_objext' | |
2119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2120 | (eval $ac_try) 2>&5 | |
2121 | ac_status=$? | |
2122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2123 | (exit $ac_status); }; }; then | |
2124 | ac_cv_prog_cc_stdc=$ac_arg | |
2125 | break | |
c906108c | 2126 | else |
bec39cab AC |
2127 | echo "$as_me: failed program was:" >&5 |
2128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2129 | ||
c906108c | 2130 | fi |
bec39cab | 2131 | rm -f conftest.err conftest.$ac_objext |
c906108c | 2132 | done |
bec39cab AC |
2133 | rm -f conftest.$ac_ext conftest.$ac_objext |
2134 | CC=$ac_save_CC | |
c906108c SS |
2135 | |
2136 | fi | |
2137 | ||
bec39cab AC |
2138 | case "x$ac_cv_prog_cc_stdc" in |
2139 | x|xno) | |
2140 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2141 | echo "${ECHO_T}none needed" >&6 ;; | |
2142 | *) | |
2143 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2144 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2145 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
c906108c SS |
2146 | esac |
2147 | ||
bec39cab AC |
2148 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2149 | # in C++ we need to declare it. In case someone uses the same compiler | |
2150 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2151 | # the declaration of exit, since it's the most demanding environment. | |
2152 | cat >conftest.$ac_ext <<_ACEOF | |
2153 | #ifndef __cplusplus | |
2154 | choke me | |
2155 | #endif | |
2156 | _ACEOF | |
2157 | rm -f conftest.$ac_objext | |
2158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2159 | (eval $ac_compile) 2>conftest.er1 | |
2160 | ac_status=$? | |
2161 | grep -v '^ *+' conftest.er1 >conftest.err | |
2162 | rm -f conftest.er1 | |
2163 | cat conftest.err >&5 | |
2164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2165 | (exit $ac_status); } && | |
2166 | { ac_try='test -z "$ac_c_werror_flag" | |
2167 | || test ! -s conftest.err' | |
2168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2169 | (eval $ac_try) 2>&5 | |
2170 | ac_status=$? | |
2171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2172 | (exit $ac_status); }; } && | |
2173 | { ac_try='test -s conftest.$ac_objext' | |
2174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2175 | (eval $ac_try) 2>&5 | |
2176 | ac_status=$? | |
2177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2178 | (exit $ac_status); }; }; then | |
2179 | for ac_declaration in \ | |
2180 | '' \ | |
2181 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2182 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2183 | 'extern "C" void exit (int) throw ();' \ | |
2184 | 'extern "C" void exit (int);' \ | |
2185 | 'void exit (int);' | |
2186 | do | |
2187 | cat >conftest.$ac_ext <<_ACEOF | |
2188 | /* confdefs.h. */ | |
2189 | _ACEOF | |
2190 | cat confdefs.h >>conftest.$ac_ext | |
2191 | cat >>conftest.$ac_ext <<_ACEOF | |
2192 | /* end confdefs.h. */ | |
2193 | $ac_declaration | |
2194 | #include <stdlib.h> | |
2195 | int | |
2196 | main () | |
2197 | { | |
2198 | exit (42); | |
2199 | ; | |
2200 | return 0; | |
2201 | } | |
2202 | _ACEOF | |
2203 | rm -f conftest.$ac_objext | |
2204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2205 | (eval $ac_compile) 2>conftest.er1 | |
2206 | ac_status=$? | |
2207 | grep -v '^ *+' conftest.er1 >conftest.err | |
2208 | rm -f conftest.er1 | |
2209 | cat conftest.err >&5 | |
2210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2211 | (exit $ac_status); } && | |
2212 | { ac_try='test -z "$ac_c_werror_flag" | |
2213 | || test ! -s conftest.err' | |
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); }; } && | |
2219 | { ac_try='test -s conftest.$ac_objext' | |
2220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2221 | (eval $ac_try) 2>&5 | |
2222 | ac_status=$? | |
2223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2224 | (exit $ac_status); }; }; then | |
2225 | : | |
2226 | else | |
2227 | echo "$as_me: failed program was:" >&5 | |
2228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2229 | |
bec39cab | 2230 | continue |
c906108c | 2231 | fi |
bec39cab AC |
2232 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2233 | cat >conftest.$ac_ext <<_ACEOF | |
2234 | /* confdefs.h. */ | |
2235 | _ACEOF | |
2236 | cat confdefs.h >>conftest.$ac_ext | |
2237 | cat >>conftest.$ac_ext <<_ACEOF | |
2238 | /* end confdefs.h. */ | |
2239 | $ac_declaration | |
2240 | int | |
2241 | main () | |
2242 | { | |
2243 | exit (42); | |
2244 | ; | |
2245 | return 0; | |
2246 | } | |
2247 | _ACEOF | |
2248 | rm -f conftest.$ac_objext | |
2249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2250 | (eval $ac_compile) 2>conftest.er1 | |
2251 | ac_status=$? | |
2252 | grep -v '^ *+' conftest.er1 >conftest.err | |
2253 | rm -f conftest.er1 | |
2254 | cat conftest.err >&5 | |
2255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2256 | (exit $ac_status); } && | |
2257 | { ac_try='test -z "$ac_c_werror_flag" | |
2258 | || test ! -s conftest.err' | |
2259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2260 | (eval $ac_try) 2>&5 | |
2261 | ac_status=$? | |
2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2263 | (exit $ac_status); }; } && | |
2264 | { ac_try='test -s conftest.$ac_objext' | |
2265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2266 | (eval $ac_try) 2>&5 | |
2267 | ac_status=$? | |
2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2269 | (exit $ac_status); }; }; then | |
2270 | break | |
2271 | else | |
2272 | echo "$as_me: failed program was:" >&5 | |
2273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2274 | |
bec39cab AC |
2275 | fi |
2276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2277 | done | |
2278 | rm -f conftest* | |
2279 | if test -n "$ac_declaration"; then | |
2280 | echo '#ifdef __cplusplus' >>confdefs.h | |
2281 | echo $ac_declaration >>confdefs.h | |
2282 | echo '#endif' >>confdefs.h | |
c906108c SS |
2283 | fi |
2284 | ||
bec39cab AC |
2285 | else |
2286 | echo "$as_me: failed program was:" >&5 | |
2287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2288 | |
bec39cab AC |
2289 | fi |
2290 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2291 | ac_ext=c | |
2292 | ac_cpp='$CPP $CPPFLAGS' | |
2293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c | 2296 | |
bec39cab AC |
2297 | cat >>confdefs.h <<\_ACEOF |
2298 | #define _GNU_SOURCE 1 | |
2299 | _ACEOF | |
c906108c SS |
2300 | |
2301 | ||
8bb2c122 | 2302 | |
bec39cab AC |
2303 | ac_ext=c |
2304 | ac_cpp='$CPP $CPPFLAGS' | |
2305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2308 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2309 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2310 | # On Suns, sometimes $CPP names a directory. | |
2311 | if test -n "$CPP" && test -d "$CPP"; then | |
2312 | CPP= | |
8bb2c122 | 2313 | fi |
bec39cab AC |
2314 | if test -z "$CPP"; then |
2315 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2316 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2317 | else | |
2318 | # Double quotes because CPP needs to be expanded | |
2319 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2320 | do | |
2321 | ac_preproc_ok=false | |
2322 | for ac_c_preproc_warn_flag in '' yes | |
2323 | do | |
2324 | # Use a header file that comes with gcc, so configuring glibc | |
2325 | # with a fresh cross-compiler works. | |
2326 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2327 | # <limits.h> exists even on freestanding compilers. | |
2328 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2329 | # not just through cpp. "Syntax error" is here to catch this case. | |
2330 | cat >conftest.$ac_ext <<_ACEOF | |
2331 | /* confdefs.h. */ | |
2332 | _ACEOF | |
2333 | cat confdefs.h >>conftest.$ac_ext | |
2334 | cat >>conftest.$ac_ext <<_ACEOF | |
2335 | /* end confdefs.h. */ | |
2336 | #ifdef __STDC__ | |
2337 | # include <limits.h> | |
2338 | #else | |
2339 | # include <assert.h> | |
2340 | #endif | |
2341 | Syntax error | |
2342 | _ACEOF | |
2343 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2344 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2345 | ac_status=$? | |
2346 | grep -v '^ *+' conftest.er1 >conftest.err | |
2347 | rm -f conftest.er1 | |
2348 | cat conftest.err >&5 | |
2349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2350 | (exit $ac_status); } >/dev/null; then | |
2351 | if test -s conftest.err; then | |
2352 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2353 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2354 | else | |
2355 | ac_cpp_err= | |
2356 | fi | |
8bb2c122 | 2357 | else |
bec39cab | 2358 | ac_cpp_err=yes |
8bb2c122 | 2359 | fi |
bec39cab AC |
2360 | if test -z "$ac_cpp_err"; then |
2361 | : | |
8bb2c122 | 2362 | else |
bec39cab AC |
2363 | echo "$as_me: failed program was:" >&5 |
2364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2365 | ||
2366 | # Broken: fails on valid input. | |
2367 | continue | |
2368 | fi | |
2369 | rm -f conftest.err conftest.$ac_ext | |
2370 | ||
2371 | # OK, works on sane cases. Now check whether non-existent headers | |
2372 | # can be detected and how. | |
2373 | cat >conftest.$ac_ext <<_ACEOF | |
2374 | /* confdefs.h. */ | |
2375 | _ACEOF | |
2376 | cat confdefs.h >>conftest.$ac_ext | |
2377 | cat >>conftest.$ac_ext <<_ACEOF | |
2378 | /* end confdefs.h. */ | |
2379 | #include <ac_nonexistent.h> | |
2380 | _ACEOF | |
2381 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2382 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2383 | ac_status=$? | |
2384 | grep -v '^ *+' conftest.er1 >conftest.err | |
2385 | rm -f conftest.er1 | |
2386 | cat conftest.err >&5 | |
2387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2388 | (exit $ac_status); } >/dev/null; then | |
2389 | if test -s conftest.err; then | |
2390 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2391 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2392 | else | |
2393 | ac_cpp_err= | |
2394 | fi | |
8bb2c122 | 2395 | else |
bec39cab | 2396 | ac_cpp_err=yes |
8bb2c122 | 2397 | fi |
bec39cab AC |
2398 | if test -z "$ac_cpp_err"; then |
2399 | # Broken: success on invalid input. | |
2400 | continue | |
8bb2c122 | 2401 | else |
bec39cab AC |
2402 | echo "$as_me: failed program was:" >&5 |
2403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 2404 | |
bec39cab AC |
2405 | # Passes both tests. |
2406 | ac_preproc_ok=: | |
2407 | break | |
8bb2c122 | 2408 | fi |
bec39cab | 2409 | rm -f conftest.err conftest.$ac_ext |
8bb2c122 | 2410 | |
bec39cab AC |
2411 | done |
2412 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2413 | rm -f conftest.err conftest.$ac_ext | |
2414 | if $ac_preproc_ok; then | |
2415 | break | |
2416 | fi | |
8bb2c122 | 2417 | |
bec39cab AC |
2418 | done |
2419 | ac_cv_prog_CPP=$CPP | |
ddc9cd0f | 2420 | |
c906108c | 2421 | fi |
bec39cab AC |
2422 | CPP=$ac_cv_prog_CPP |
2423 | else | |
2424 | ac_cv_prog_CPP=$CPP | |
c906108c | 2425 | fi |
bec39cab AC |
2426 | echo "$as_me:$LINENO: result: $CPP" >&5 |
2427 | echo "${ECHO_T}$CPP" >&6 | |
2428 | ac_preproc_ok=false | |
2429 | for ac_c_preproc_warn_flag in '' yes | |
2430 | do | |
2431 | # Use a header file that comes with gcc, so configuring glibc | |
2432 | # with a fresh cross-compiler works. | |
2433 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2434 | # <limits.h> exists even on freestanding compilers. | |
2435 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2436 | # not just through cpp. "Syntax error" is here to catch this case. | |
2437 | cat >conftest.$ac_ext <<_ACEOF | |
2438 | /* confdefs.h. */ | |
2439 | _ACEOF | |
2440 | cat confdefs.h >>conftest.$ac_ext | |
2441 | cat >>conftest.$ac_ext <<_ACEOF | |
2442 | /* end confdefs.h. */ | |
2443 | #ifdef __STDC__ | |
2444 | # include <limits.h> | |
2445 | #else | |
2446 | # include <assert.h> | |
2447 | #endif | |
2448 | Syntax error | |
2449 | _ACEOF | |
2450 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2451 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2452 | ac_status=$? | |
2453 | grep -v '^ *+' conftest.er1 >conftest.err | |
2454 | rm -f conftest.er1 | |
2455 | cat conftest.err >&5 | |
2456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2457 | (exit $ac_status); } >/dev/null; then | |
2458 | if test -s conftest.err; then | |
2459 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2460 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2461 | else | |
2462 | ac_cpp_err= | |
2463 | fi | |
c906108c | 2464 | else |
bec39cab | 2465 | ac_cpp_err=yes |
c906108c | 2466 | fi |
bec39cab AC |
2467 | if test -z "$ac_cpp_err"; then |
2468 | : | |
c906108c | 2469 | else |
bec39cab AC |
2470 | echo "$as_me: failed program was:" >&5 |
2471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2472 | ||
2473 | # Broken: fails on valid input. | |
2474 | continue | |
2475 | fi | |
2476 | rm -f conftest.err conftest.$ac_ext | |
2477 | ||
2478 | # OK, works on sane cases. Now check whether non-existent headers | |
2479 | # can be detected and how. | |
2480 | cat >conftest.$ac_ext <<_ACEOF | |
2481 | /* confdefs.h. */ | |
2482 | _ACEOF | |
2483 | cat confdefs.h >>conftest.$ac_ext | |
2484 | cat >>conftest.$ac_ext <<_ACEOF | |
2485 | /* end confdefs.h. */ | |
2486 | #include <ac_nonexistent.h> | |
2487 | _ACEOF | |
2488 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2489 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2490 | ac_status=$? | |
2491 | grep -v '^ *+' conftest.er1 >conftest.err | |
2492 | rm -f conftest.er1 | |
2493 | cat conftest.err >&5 | |
2494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2495 | (exit $ac_status); } >/dev/null; then | |
2496 | if test -s conftest.err; then | |
2497 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2498 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2499 | else | |
2500 | ac_cpp_err= | |
2501 | fi | |
c906108c | 2502 | else |
bec39cab | 2503 | ac_cpp_err=yes |
c906108c | 2504 | fi |
bec39cab AC |
2505 | if test -z "$ac_cpp_err"; then |
2506 | # Broken: success on invalid input. | |
2507 | continue | |
c906108c | 2508 | else |
bec39cab AC |
2509 | echo "$as_me: failed program was:" >&5 |
2510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2511 | |
bec39cab AC |
2512 | # Passes both tests. |
2513 | ac_preproc_ok=: | |
2514 | break | |
c906108c | 2515 | fi |
bec39cab | 2516 | rm -f conftest.err conftest.$ac_ext |
c906108c | 2517 | |
bec39cab AC |
2518 | done |
2519 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2520 | rm -f conftest.err conftest.$ac_ext | |
2521 | if $ac_preproc_ok; then | |
c906108c SS |
2522 | : |
2523 | else | |
bec39cab AC |
2524 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2525 | See \`config.log' for more details." >&5 | |
2526 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2527 | See \`config.log' for more details." >&2;} | |
2528 | { (exit 1); exit 1; }; } | |
c906108c | 2529 | fi |
c906108c | 2530 | |
bec39cab AC |
2531 | ac_ext=c |
2532 | ac_cpp='$CPP $CPPFLAGS' | |
2533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2536 | ||
2537 | ||
2538 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
2539 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2540 | if test "${ac_cv_prog_egrep+set}" = set; then | |
2541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2542 | else | |
2543 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
2544 | then ac_cv_prog_egrep='grep -E' | |
2545 | else ac_cv_prog_egrep='egrep' | |
2546 | fi | |
c906108c | 2547 | fi |
bec39cab AC |
2548 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2549 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2550 | EGREP=$ac_cv_prog_egrep | |
c906108c | 2551 | |
bec39cab AC |
2552 | |
2553 | ||
2554 | echo "$as_me:$LINENO: checking for AIX" >&5 | |
2555 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 | |
2556 | cat >conftest.$ac_ext <<_ACEOF | |
2557 | /* confdefs.h. */ | |
2558 | _ACEOF | |
2559 | cat confdefs.h >>conftest.$ac_ext | |
2560 | cat >>conftest.$ac_ext <<_ACEOF | |
2561 | /* end confdefs.h. */ | |
2562 | #ifdef _AIX | |
2563 | yes | |
2564 | #endif | |
2565 | ||
2566 | _ACEOF | |
c906108c | 2567 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab AC |
2568 | $EGREP "yes" >/dev/null 2>&1; then |
2569 | echo "$as_me:$LINENO: result: yes" >&5 | |
2570 | echo "${ECHO_T}yes" >&6 | |
2571 | cat >>confdefs.h <<\_ACEOF | |
2572 | #define _ALL_SOURCE 1 | |
2573 | _ACEOF | |
2574 | ||
c906108c | 2575 | else |
bec39cab AC |
2576 | echo "$as_me:$LINENO: result: no" >&5 |
2577 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2578 | fi |
2579 | rm -f conftest* | |
2580 | ||
c906108c | 2581 | |
bec39cab AC |
2582 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2583 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2584 | if test "${ac_cv_search_strerror+set}" = set; then | |
2585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2586 | else |
bec39cab AC |
2587 | ac_func_search_save_LIBS=$LIBS |
2588 | ac_cv_search_strerror=no | |
2589 | cat >conftest.$ac_ext <<_ACEOF | |
2590 | /* confdefs.h. */ | |
2591 | _ACEOF | |
2592 | cat confdefs.h >>conftest.$ac_ext | |
2593 | cat >>conftest.$ac_ext <<_ACEOF | |
2594 | /* end confdefs.h. */ | |
c906108c | 2595 | |
bec39cab AC |
2596 | /* Override any gcc2 internal prototype to avoid an error. */ |
2597 | #ifdef __cplusplus | |
2598 | extern "C" | |
2599 | #endif | |
2600 | /* We use char because int might match the return type of a gcc2 | |
2601 | builtin and then its argument prototype would still apply. */ | |
2602 | char strerror (); | |
2603 | int | |
2604 | main () | |
2605 | { | |
2606 | strerror (); | |
2607 | ; | |
2608 | return 0; | |
2609 | } | |
2610 | _ACEOF | |
2611 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2613 | (eval $ac_link) 2>conftest.er1 | |
2614 | ac_status=$? | |
2615 | grep -v '^ *+' conftest.er1 >conftest.err | |
2616 | rm -f conftest.er1 | |
2617 | cat conftest.err >&5 | |
2618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2619 | (exit $ac_status); } && | |
2620 | { ac_try='test -z "$ac_c_werror_flag" | |
2621 | || test ! -s conftest.err' | |
2622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2623 | (eval $ac_try) 2>&5 | |
2624 | ac_status=$? | |
2625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2626 | (exit $ac_status); }; } && | |
2627 | { ac_try='test -s conftest$ac_exeext' | |
2628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2629 | (eval $ac_try) 2>&5 | |
2630 | ac_status=$? | |
2631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2632 | (exit $ac_status); }; }; then | |
2633 | ac_cv_search_strerror="none required" | |
2634 | else | |
2635 | echo "$as_me: failed program was:" >&5 | |
2636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2637 | ||
2638 | fi | |
2639 | rm -f conftest.err conftest.$ac_objext \ | |
2640 | conftest$ac_exeext conftest.$ac_ext | |
2641 | if test "$ac_cv_search_strerror" = no; then | |
2642 | for ac_lib in cposix; do | |
2643 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2644 | cat >conftest.$ac_ext <<_ACEOF | |
2645 | /* confdefs.h. */ | |
2646 | _ACEOF | |
2647 | cat confdefs.h >>conftest.$ac_ext | |
2648 | cat >>conftest.$ac_ext <<_ACEOF | |
2649 | /* end confdefs.h. */ | |
2650 | ||
2651 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2652 | #ifdef __cplusplus | |
2653 | extern "C" | |
2654 | #endif | |
2655 | /* We use char because int might match the return type of a gcc2 | |
2656 | builtin and then its argument prototype would still apply. */ | |
2657 | char strerror (); | |
2658 | int | |
2659 | main () | |
2660 | { | |
2661 | strerror (); | |
2662 | ; | |
2663 | return 0; | |
2664 | } | |
2665 | _ACEOF | |
2666 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2668 | (eval $ac_link) 2>conftest.er1 | |
2669 | ac_status=$? | |
2670 | grep -v '^ *+' conftest.er1 >conftest.err | |
2671 | rm -f conftest.er1 | |
2672 | cat conftest.err >&5 | |
2673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2674 | (exit $ac_status); } && | |
2675 | { ac_try='test -z "$ac_c_werror_flag" | |
2676 | || test ! -s conftest.err' | |
2677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2678 | (eval $ac_try) 2>&5 | |
2679 | ac_status=$? | |
2680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2681 | (exit $ac_status); }; } && | |
2682 | { ac_try='test -s conftest$ac_exeext' | |
2683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2684 | (eval $ac_try) 2>&5 | |
2685 | ac_status=$? | |
2686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2687 | (exit $ac_status); }; }; then | |
2688 | ac_cv_search_strerror="-l$ac_lib" | |
2689 | break | |
c906108c | 2690 | else |
bec39cab AC |
2691 | echo "$as_me: failed program was:" >&5 |
2692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2693 | |
2694 | fi | |
bec39cab AC |
2695 | rm -f conftest.err conftest.$ac_objext \ |
2696 | conftest$ac_exeext conftest.$ac_ext | |
2697 | done | |
c906108c | 2698 | fi |
bec39cab | 2699 | LIBS=$ac_func_search_save_LIBS |
c906108c | 2700 | fi |
bec39cab AC |
2701 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
2702 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2703 | if test "$ac_cv_search_strerror" != no; then | |
2704 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
2705 | ||
c906108c SS |
2706 | fi |
2707 | ||
c906108c | 2708 | |
c906108c | 2709 | |
bec39cab AC |
2710 | |
2711 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 | |
2712 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 | |
2713 | if test "${am_cv_prog_cc_stdc+set}" = set; then | |
2714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2715 | else |
bec39cab AC |
2716 | am_cv_prog_cc_stdc=no |
2717 | ac_save_CC="$CC" | |
2718 | # Don't try gcc -ansi; that turns off useful extensions and | |
2719 | # breaks some systems' header files. | |
2720 | # AIX -qlanglvl=ansi | |
2721 | # Ultrix and OSF/1 -std1 | |
2722 | # HP-UX 10.20 and later -Ae | |
2723 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2724 | # SVR4 -Xc -D__EXTENSIONS__ | |
2725 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2726 | do | |
2727 | CC="$ac_save_CC $ac_arg" | |
2728 | cat >conftest.$ac_ext <<_ACEOF | |
2729 | /* confdefs.h. */ | |
2730 | _ACEOF | |
2731 | cat confdefs.h >>conftest.$ac_ext | |
2732 | cat >>conftest.$ac_ext <<_ACEOF | |
2733 | /* end confdefs.h. */ | |
2734 | #include <stdarg.h> | |
2735 | #include <stdio.h> | |
2736 | #include <sys/types.h> | |
2737 | #include <sys/stat.h> | |
2738 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2739 | struct buf { int x; }; | |
2740 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2741 | static char *e (p, i) | |
2742 | char **p; | |
2743 | int i; | |
2744 | { | |
2745 | return p[i]; | |
2746 | } | |
2747 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2748 | { | |
2749 | char *s; | |
2750 | va_list v; | |
2751 | va_start (v,p); | |
2752 | s = g (p, va_arg (v,int)); | |
2753 | va_end (v); | |
2754 | return s; | |
2755 | } | |
2756 | int test (int i, double x); | |
2757 | struct s1 {int (*f) (int a);}; | |
2758 | struct s2 {int (*f) (double a);}; | |
2759 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2760 | int argc; | |
2761 | char **argv; | |
c906108c | 2762 | |
bec39cab AC |
2763 | int |
2764 | main () | |
2765 | { | |
c906108c | 2766 | |
bec39cab | 2767 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
c906108c | 2768 | |
bec39cab AC |
2769 | ; |
2770 | return 0; | |
2771 | } | |
2772 | _ACEOF | |
2773 | rm -f conftest.$ac_objext | |
2774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2775 | (eval $ac_compile) 2>conftest.er1 | |
2776 | ac_status=$? | |
2777 | grep -v '^ *+' conftest.er1 >conftest.err | |
2778 | rm -f conftest.er1 | |
2779 | cat conftest.err >&5 | |
2780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2781 | (exit $ac_status); } && | |
2782 | { ac_try='test -z "$ac_c_werror_flag" | |
2783 | || test ! -s conftest.err' | |
2784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2785 | (eval $ac_try) 2>&5 | |
2786 | ac_status=$? | |
2787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2788 | (exit $ac_status); }; } && | |
2789 | { ac_try='test -s conftest.$ac_objext' | |
2790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2791 | (eval $ac_try) 2>&5 | |
2792 | ac_status=$? | |
2793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2794 | (exit $ac_status); }; }; then | |
2795 | am_cv_prog_cc_stdc="$ac_arg"; break | |
c906108c | 2796 | else |
bec39cab AC |
2797 | echo "$as_me: failed program was:" >&5 |
2798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2799 | |
2800 | fi | |
bec39cab AC |
2801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2802 | done | |
2803 | CC="$ac_save_CC" | |
c906108c SS |
2804 | |
2805 | fi | |
2806 | ||
bec39cab AC |
2807 | if test -z "$am_cv_prog_cc_stdc"; then |
2808 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2809 | echo "${ECHO_T}none needed" >&6 | |
c906108c | 2810 | else |
bec39cab AC |
2811 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
2812 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 | |
c906108c | 2813 | fi |
bec39cab AC |
2814 | case "x$am_cv_prog_cc_stdc" in |
2815 | x|xno) ;; | |
2816 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
2817 | esac | |
c906108c | 2818 | |
c906108c | 2819 | |
bec39cab AC |
2820 | ac_aux_dir= |
2821 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do | |
2822 | if test -f $ac_dir/install-sh; then | |
2823 | ac_aux_dir=$ac_dir | |
2824 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2825 | break | |
2826 | elif test -f $ac_dir/install.sh; then | |
2827 | ac_aux_dir=$ac_dir | |
2828 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2829 | break | |
2830 | elif test -f $ac_dir/shtool; then | |
2831 | ac_aux_dir=$ac_dir | |
2832 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2833 | break | |
2834 | fi | |
2835 | done | |
2836 | if test -z "$ac_aux_dir"; then | |
2837 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5 | |
2838 | echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;} | |
2839 | { (exit 1); exit 1; }; } | |
c906108c | 2840 | fi |
bec39cab AC |
2841 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
2842 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
2843 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
c906108c | 2844 | |
bec39cab AC |
2845 | # Make sure we can run config.sub. |
2846 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
2847 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
2848 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
2849 | { (exit 1); exit 1; }; } | |
2850 | ||
2851 | echo "$as_me:$LINENO: checking build system type" >&5 | |
2852 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
2853 | if test "${ac_cv_build+set}" = set; then | |
2854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2855 | else | |
2856 | ac_cv_build_alias=$build_alias | |
2857 | test -z "$ac_cv_build_alias" && | |
2858 | ac_cv_build_alias=`$ac_config_guess` | |
2859 | test -z "$ac_cv_build_alias" && | |
2860 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
2861 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2862 | { (exit 1); exit 1; }; } | |
2863 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
2864 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
2865 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
2866 | { (exit 1); exit 1; }; } | |
2867 | ||
2868 | fi | |
2869 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
2870 | echo "${ECHO_T}$ac_cv_build" >&6 | |
2871 | build=$ac_cv_build | |
2872 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2873 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2874 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2875 | ||
2876 | ||
2877 | echo "$as_me:$LINENO: checking host system type" >&5 | |
2878 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
2879 | if test "${ac_cv_host+set}" = set; then | |
2880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2881 | else | |
2882 | ac_cv_host_alias=$host_alias | |
2883 | test -z "$ac_cv_host_alias" && | |
2884 | ac_cv_host_alias=$ac_cv_build_alias | |
2885 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
2886 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
2887 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
2888 | { (exit 1); exit 1; }; } | |
2889 | ||
2890 | fi | |
2891 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
2892 | echo "${ECHO_T}$ac_cv_host" >&6 | |
2893 | host=$ac_cv_host | |
2894 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2895 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2896 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
2897 | ||
2898 | ||
2899 | echo "$as_me:$LINENO: checking target system type" >&5 | |
2900 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
2901 | if test "${ac_cv_target+set}" = set; then | |
2902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2903 | else | |
2904 | ac_cv_target_alias=$target_alias | |
2905 | test "x$ac_cv_target_alias" = "x" && | |
2906 | ac_cv_target_alias=$ac_cv_host_alias | |
2907 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
2908 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
2909 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
2910 | { (exit 1); exit 1; }; } | |
2911 | ||
2912 | fi | |
2913 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
2914 | echo "${ECHO_T}$ac_cv_target" >&6 | |
2915 | target=$ac_cv_target | |
2916 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
2917 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2918 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
c906108c | 2919 | |
c906108c | 2920 | |
bec39cab AC |
2921 | # The aliases save the names the user supplied, while $host etc. |
2922 | # will get canonicalized. | |
2923 | test -n "$target_alias" && | |
2924 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2925 | NONENONEs,x,x, && | |
2926 | program_prefix=${target_alias}- | |
c906108c | 2927 | |
bec39cab AC |
2928 | # FIXME: kettenis/20030102: The AC_PROG_RANLIB from Autoconf 2.13 |
2929 | # doesn't support cross-compilation, but the one from Autoconf 2.5x | |
2930 | # does. Override RANLIB here (i.e. before running AC_PROG_RANLIB) to | |
2931 | # deal with the lossage. Note that CY_GNU_GETTEXT currently calls | |
2932 | # AC_PROG_RANLIB. This can be removed when we switch to Autoconf | |
2933 | # 2.5x. | |
2934 | if test -n "$ac_tool_prefix"; then | |
2935 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2936 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2937 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2938 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2939 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2941 | else |
bec39cab AC |
2942 | if test -n "$RANLIB"; then |
2943 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
c906108c | 2944 | else |
bec39cab AC |
2945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2946 | for as_dir in $PATH | |
2947 | do | |
2948 | IFS=$as_save_IFS | |
2949 | test -z "$as_dir" && as_dir=. | |
2950 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2951 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2952 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2953 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2954 | break 2 | |
2955 | fi | |
2956 | done | |
2957 | done | |
2958 | ||
c906108c | 2959 | fi |
c906108c | 2960 | fi |
bec39cab AC |
2961 | RANLIB=$ac_cv_prog_RANLIB |
2962 | if test -n "$RANLIB"; then | |
2963 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
2964 | echo "${ECHO_T}$RANLIB" >&6 | |
2965 | else | |
2966 | echo "$as_me:$LINENO: result: no" >&5 | |
2967 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2968 | fi |
2969 | ||
bec39cab AC |
2970 | fi |
2971 | if test -z "$ac_cv_prog_RANLIB"; then | |
2972 | ac_ct_RANLIB=$RANLIB | |
2973 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2974 | set dummy ranlib; ac_word=$2 | |
2975 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2976 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2977 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2979 | else |
bec39cab AC |
2980 | if test -n "$ac_ct_RANLIB"; then |
2981 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2982 | else | |
2983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2984 | for as_dir in $PATH | |
2985 | do | |
2986 | IFS=$as_save_IFS | |
2987 | test -z "$as_dir" && as_dir=. | |
2988 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2989 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2990 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2991 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2992 | break 2 | |
2993 | fi | |
2994 | done | |
2995 | done | |
c906108c | 2996 | |
bec39cab AC |
2997 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
2998 | fi | |
2999 | fi | |
3000 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3001 | if test -n "$ac_ct_RANLIB"; then | |
3002 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3003 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
c906108c | 3004 | else |
bec39cab AC |
3005 | echo "$as_me:$LINENO: result: no" >&5 |
3006 | echo "${ECHO_T}no" >&6 | |
c906108c | 3007 | fi |
c906108c | 3008 | |
bec39cab AC |
3009 | RANLIB=$ac_ct_RANLIB |
3010 | else | |
3011 | RANLIB="$ac_cv_prog_RANLIB" | |
c906108c SS |
3012 | fi |
3013 | ||
c906108c | 3014 | |
c906108c | 3015 | |
bec39cab AC |
3016 | CONFIG_OBS= |
3017 | CONFIG_DEPS= | |
3018 | CONFIG_SRCS= | |
3019 | ENABLE_CFLAGS= | |
c906108c | 3020 | |
bec39cab AC |
3021 | CONFIG_ALL= |
3022 | CONFIG_CLEAN= | |
3023 | CONFIG_INSTALL= | |
3024 | CONFIG_UNINSTALL= | |
3025 | ||
3026 | ||
3027 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3028 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
3029 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
3030 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
3031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3032 | else | |
3033 | cat >conftest.make <<\_ACEOF | |
3034 | all: | |
3035 | @echo 'ac_maketemp="$(MAKE)"' | |
3036 | _ACEOF | |
3037 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3038 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
3039 | if test -n "$ac_maketemp"; then | |
3040 | eval ac_cv_prog_make_${ac_make}_set=yes | |
c906108c | 3041 | else |
bec39cab | 3042 | eval ac_cv_prog_make_${ac_make}_set=no |
c906108c | 3043 | fi |
bec39cab AC |
3044 | rm -f conftest.make |
3045 | fi | |
3046 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
3047 | echo "$as_me:$LINENO: result: yes" >&5 | |
3048 | echo "${ECHO_T}yes" >&6 | |
3049 | SET_MAKE= | |
3050 | else | |
3051 | echo "$as_me:$LINENO: result: no" >&5 | |
3052 | echo "${ECHO_T}no" >&6 | |
3053 | SET_MAKE="MAKE=${MAKE-make}" | |
c906108c SS |
3054 | fi |
3055 | ||
bec39cab AC |
3056 | if test -n "$ac_tool_prefix"; then |
3057 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3058 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3059 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3060 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3061 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3063 | else | |
3064 | if test -n "$RANLIB"; then | |
3065 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3066 | else | |
3067 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3068 | for as_dir in $PATH | |
3069 | do | |
3070 | IFS=$as_save_IFS | |
3071 | test -z "$as_dir" && as_dir=. | |
3072 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3073 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3074 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3075 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3076 | break 2 | |
3077 | fi | |
3078 | done | |
3079 | done | |
c906108c | 3080 | |
bec39cab AC |
3081 | fi |
3082 | fi | |
3083 | RANLIB=$ac_cv_prog_RANLIB | |
3084 | if test -n "$RANLIB"; then | |
3085 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
3086 | echo "${ECHO_T}$RANLIB" >&6 | |
c906108c | 3087 | else |
bec39cab AC |
3088 | echo "$as_me:$LINENO: result: no" >&5 |
3089 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
3090 | fi |
3091 | ||
bec39cab AC |
3092 | fi |
3093 | if test -z "$ac_cv_prog_RANLIB"; then | |
3094 | ac_ct_RANLIB=$RANLIB | |
3095 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3096 | set dummy ranlib; ac_word=$2 | |
3097 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3098 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3099 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3101 | else | |
3102 | if test -n "$ac_ct_RANLIB"; then | |
3103 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3104 | else | |
3105 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3106 | for as_dir in $PATH | |
3107 | do | |
3108 | IFS=$as_save_IFS | |
3109 | test -z "$as_dir" && as_dir=. | |
3110 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3111 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3112 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3114 | break 2 | |
3115 | fi | |
3116 | done | |
c906108c | 3117 | done |
bec39cab AC |
3118 | |
3119 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
3120 | fi | |
3121 | fi | |
3122 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3123 | if test -n "$ac_ct_RANLIB"; then | |
3124 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3125 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
3126 | else | |
3127 | echo "$as_me:$LINENO: result: no" >&5 | |
3128 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
3129 | fi |
3130 | ||
bec39cab | 3131 | RANLIB=$ac_ct_RANLIB |
c906108c | 3132 | else |
bec39cab AC |
3133 | RANLIB="$ac_cv_prog_RANLIB" |
3134 | fi | |
3135 | ||
3136 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3137 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3138 | if test "${ac_cv_header_stdc+set}" = set; then | |
3139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3140 | else |
bec39cab AC |
3141 | cat >conftest.$ac_ext <<_ACEOF |
3142 | /* confdefs.h. */ | |
3143 | _ACEOF | |
3144 | cat confdefs.h >>conftest.$ac_ext | |
3145 | cat >>conftest.$ac_ext <<_ACEOF | |
3146 | /* end confdefs.h. */ | |
3147 | #include <stdlib.h> | |
3148 | #include <stdarg.h> | |
3149 | #include <string.h> | |
3150 | #include <float.h> | |
3151 | ||
3152 | int | |
c906108c SS |
3153 | main () |
3154 | { | |
bec39cab AC |
3155 | |
3156 | ; | |
3157 | return 0; | |
c906108c | 3158 | } |
bec39cab AC |
3159 | _ACEOF |
3160 | rm -f conftest.$ac_objext | |
3161 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3162 | (eval $ac_compile) 2>conftest.er1 | |
3163 | ac_status=$? | |
3164 | grep -v '^ *+' conftest.er1 >conftest.err | |
3165 | rm -f conftest.er1 | |
3166 | cat conftest.err >&5 | |
3167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3168 | (exit $ac_status); } && | |
3169 | { ac_try='test -z "$ac_c_werror_flag" | |
3170 | || test ! -s conftest.err' | |
3171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3172 | (eval $ac_try) 2>&5 | |
3173 | ac_status=$? | |
3174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3175 | (exit $ac_status); }; } && | |
3176 | { ac_try='test -s conftest.$ac_objext' | |
3177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3178 | (eval $ac_try) 2>&5 | |
3179 | ac_status=$? | |
3180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3181 | (exit $ac_status); }; }; then | |
3182 | ac_cv_header_stdc=yes | |
c906108c | 3183 | else |
bec39cab AC |
3184 | echo "$as_me: failed program was:" >&5 |
3185 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3186 | |
bec39cab | 3187 | ac_cv_header_stdc=no |
c906108c | 3188 | fi |
bec39cab | 3189 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3190 | |
bec39cab AC |
3191 | if test $ac_cv_header_stdc = yes; then |
3192 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3193 | cat >conftest.$ac_ext <<_ACEOF | |
3194 | /* confdefs.h. */ | |
3195 | _ACEOF | |
3196 | cat confdefs.h >>conftest.$ac_ext | |
3197 | cat >>conftest.$ac_ext <<_ACEOF | |
3198 | /* end confdefs.h. */ | |
3199 | #include <string.h> | |
c906108c | 3200 | |
bec39cab AC |
3201 | _ACEOF |
3202 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3203 | $EGREP "memchr" >/dev/null 2>&1; then | |
3204 | : | |
c906108c | 3205 | else |
bec39cab | 3206 | ac_cv_header_stdc=no |
c906108c | 3207 | fi |
bec39cab | 3208 | rm -f conftest* |
c906108c | 3209 | |
bec39cab | 3210 | fi |
c906108c | 3211 | |
bec39cab AC |
3212 | if test $ac_cv_header_stdc = yes; then |
3213 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3214 | cat >conftest.$ac_ext <<_ACEOF | |
3215 | /* confdefs.h. */ | |
3216 | _ACEOF | |
3217 | cat confdefs.h >>conftest.$ac_ext | |
3218 | cat >>conftest.$ac_ext <<_ACEOF | |
3219 | /* end confdefs.h. */ | |
3220 | #include <stdlib.h> | |
c906108c | 3221 | |
bec39cab AC |
3222 | _ACEOF |
3223 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3224 | $EGREP "free" >/dev/null 2>&1; then | |
3225 | : | |
c906108c | 3226 | else |
bec39cab | 3227 | ac_cv_header_stdc=no |
c906108c SS |
3228 | fi |
3229 | rm -f conftest* | |
c906108c | 3230 | |
c906108c | 3231 | fi |
c906108c | 3232 | |
bec39cab AC |
3233 | if test $ac_cv_header_stdc = yes; then |
3234 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
c906108c | 3235 | if test "$cross_compiling" = yes; then |
bec39cab | 3236 | : |
c906108c | 3237 | else |
bec39cab AC |
3238 | cat >conftest.$ac_ext <<_ACEOF |
3239 | /* confdefs.h. */ | |
3240 | _ACEOF | |
3241 | cat confdefs.h >>conftest.$ac_ext | |
3242 | cat >>conftest.$ac_ext <<_ACEOF | |
3243 | /* end confdefs.h. */ | |
3244 | #include <ctype.h> | |
3245 | #if ((' ' & 0x0FF) == 0x020) | |
3246 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3247 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3248 | #else | |
3249 | # define ISLOWER(c) \ | |
3250 | (('a' <= (c) && (c) <= 'i') \ | |
3251 | || ('j' <= (c) && (c) <= 'r') \ | |
3252 | || ('s' <= (c) && (c) <= 'z')) | |
3253 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3254 | #endif | |
c906108c | 3255 | |
bec39cab AC |
3256 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3257 | int | |
3258 | main () | |
3259 | { | |
3260 | int i; | |
3261 | for (i = 0; i < 256; i++) | |
3262 | if (XOR (islower (i), ISLOWER (i)) | |
3263 | || toupper (i) != TOUPPER (i)) | |
3264 | exit(2); | |
3265 | exit (0); | |
3266 | } | |
3267 | _ACEOF | |
3268 | rm -f conftest$ac_exeext | |
3269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3270 | (eval $ac_link) 2>&5 | |
3271 | ac_status=$? | |
3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3273 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3275 | (eval $ac_try) 2>&5 | |
3276 | ac_status=$? | |
3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3278 | (exit $ac_status); }; }; then | |
3279 | : | |
3280 | else | |
3281 | echo "$as_me: program exited with status $ac_status" >&5 | |
3282 | echo "$as_me: failed program was:" >&5 | |
3283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3284 | |
bec39cab AC |
3285 | ( exit $ac_status ) |
3286 | ac_cv_header_stdc=no | |
3287 | fi | |
3288 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3289 | fi | |
3290 | fi | |
3291 | fi | |
3292 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3293 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3294 | if test $ac_cv_header_stdc = yes; then | |
c906108c | 3295 | |
bec39cab AC |
3296 | cat >>confdefs.h <<\_ACEOF |
3297 | #define STDC_HEADERS 1 | |
3298 | _ACEOF | |
c906108c | 3299 | |
bec39cab | 3300 | fi |
c906108c | 3301 | |
bec39cab AC |
3302 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
3303 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
3304 | if test "${ac_cv_c_const+set}" = set; then | |
3305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3306 | else | |
3307 | cat >conftest.$ac_ext <<_ACEOF | |
3308 | /* confdefs.h. */ | |
3309 | _ACEOF | |
3310 | cat confdefs.h >>conftest.$ac_ext | |
3311 | cat >>conftest.$ac_ext <<_ACEOF | |
3312 | /* end confdefs.h. */ | |
c906108c | 3313 | |
bec39cab AC |
3314 | int |
3315 | main () | |
3316 | { | |
3317 | /* FIXME: Include the comments suggested by Paul. */ | |
3318 | #ifndef __cplusplus | |
3319 | /* Ultrix mips cc rejects this. */ | |
3320 | typedef int charset[2]; | |
3321 | const charset x; | |
3322 | /* SunOS 4.1.1 cc rejects this. */ | |
3323 | char const *const *ccp; | |
3324 | char **p; | |
3325 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3326 | struct point {int x, y;}; | |
3327 | static struct point const zero = {0,0}; | |
3328 | /* AIX XL C 1.02.0.0 rejects this. | |
3329 | It does not let you subtract one const X* pointer from another in | |
3330 | an arm of an if-expression whose if-part is not a constant | |
3331 | expression */ | |
3332 | const char *g = "string"; | |
3333 | ccp = &g + (g ? g-g : 0); | |
3334 | /* HPUX 7.0 cc rejects these. */ | |
3335 | ++ccp; | |
3336 | p = (char**) ccp; | |
3337 | ccp = (char const *const *) p; | |
3338 | { /* SCO 3.2v4 cc rejects this. */ | |
3339 | char *t; | |
3340 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3341 | ||
3342 | *t++ = 0; | |
3343 | } | |
3344 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3345 | int x[] = {25, 17}; | |
3346 | const int *foo = &x[0]; | |
3347 | ++foo; | |
3348 | } | |
3349 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3350 | typedef const int *iptr; | |
3351 | iptr p = 0; | |
3352 | ++p; | |
3353 | } | |
3354 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3355 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3356 | struct s { int j; const int *ap[3]; }; | |
3357 | struct s *b; b->j = 5; | |
3358 | } | |
3359 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3360 | const int foo = 10; | |
3361 | } | |
3362 | #endif | |
c906108c | 3363 | |
bec39cab AC |
3364 | ; |
3365 | return 0; | |
3366 | } | |
3367 | _ACEOF | |
3368 | rm -f conftest.$ac_objext | |
3369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3370 | (eval $ac_compile) 2>conftest.er1 | |
3371 | ac_status=$? | |
3372 | grep -v '^ *+' conftest.er1 >conftest.err | |
3373 | rm -f conftest.er1 | |
3374 | cat conftest.err >&5 | |
3375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3376 | (exit $ac_status); } && | |
3377 | { ac_try='test -z "$ac_c_werror_flag" | |
3378 | || test ! -s conftest.err' | |
3379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3380 | (eval $ac_try) 2>&5 | |
3381 | ac_status=$? | |
3382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3383 | (exit $ac_status); }; } && | |
3384 | { ac_try='test -s conftest.$ac_objext' | |
3385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3386 | (eval $ac_try) 2>&5 | |
3387 | ac_status=$? | |
3388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3389 | (exit $ac_status); }; }; then | |
3390 | ac_cv_c_const=yes | |
c906108c | 3391 | else |
bec39cab AC |
3392 | echo "$as_me: failed program was:" >&5 |
3393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3394 | |
bec39cab AC |
3395 | ac_cv_c_const=no |
3396 | fi | |
3397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 3398 | fi |
bec39cab AC |
3399 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3400 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
3401 | if test $ac_cv_c_const = no; then | |
c906108c | 3402 | |
bec39cab AC |
3403 | cat >>confdefs.h <<\_ACEOF |
3404 | #define const | |
3405 | _ACEOF | |
c906108c SS |
3406 | |
3407 | fi | |
3408 | ||
bec39cab AC |
3409 | echo "$as_me:$LINENO: checking for inline" >&5 |
3410 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
3411 | if test "${ac_cv_c_inline+set}" = set; then | |
3412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3413 | else |
bec39cab AC |
3414 | ac_cv_c_inline=no |
3415 | for ac_kw in inline __inline__ __inline; do | |
3416 | cat >conftest.$ac_ext <<_ACEOF | |
3417 | /* confdefs.h. */ | |
3418 | _ACEOF | |
3419 | cat confdefs.h >>conftest.$ac_ext | |
3420 | cat >>conftest.$ac_ext <<_ACEOF | |
3421 | /* end confdefs.h. */ | |
3422 | #ifndef __cplusplus | |
3423 | typedef int foo_t; | |
3424 | static $ac_kw foo_t static_foo () {return 0; } | |
3425 | $ac_kw foo_t foo () {return 0; } | |
c906108c SS |
3426 | #endif |
3427 | ||
bec39cab AC |
3428 | _ACEOF |
3429 | rm -f conftest.$ac_objext | |
3430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3431 | (eval $ac_compile) 2>conftest.er1 | |
3432 | ac_status=$? | |
3433 | grep -v '^ *+' conftest.er1 >conftest.err | |
3434 | rm -f conftest.er1 | |
3435 | cat conftest.err >&5 | |
3436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3437 | (exit $ac_status); } && | |
3438 | { ac_try='test -z "$ac_c_werror_flag" | |
3439 | || test ! -s conftest.err' | |
3440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3441 | (eval $ac_try) 2>&5 | |
3442 | ac_status=$? | |
3443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3444 | (exit $ac_status); }; } && | |
3445 | { ac_try='test -s conftest.$ac_objext' | |
3446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3447 | (eval $ac_try) 2>&5 | |
3448 | ac_status=$? | |
3449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3450 | (exit $ac_status); }; }; then | |
3451 | ac_cv_c_inline=$ac_kw; break | |
c906108c | 3452 | else |
bec39cab AC |
3453 | echo "$as_me: failed program was:" >&5 |
3454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3455 | |
c906108c | 3456 | fi |
bec39cab | 3457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
3458 | done |
3459 | ||
bec39cab AC |
3460 | fi |
3461 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
3462 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
c906108c | 3463 | |
c906108c | 3464 | |
bec39cab AC |
3465 | case $ac_cv_c_inline in |
3466 | inline | yes) ;; | |
3467 | *) | |
3468 | case $ac_cv_c_inline in | |
3469 | no) ac_val=;; | |
3470 | *) ac_val=$ac_cv_c_inline;; | |
3471 | esac | |
3472 | cat >>confdefs.h <<_ACEOF | |
3473 | #ifndef __cplusplus | |
3474 | #define inline $ac_val | |
c906108c | 3475 | #endif |
bec39cab AC |
3476 | _ACEOF |
3477 | ;; | |
3478 | esac | |
c906108c | 3479 | |
bec39cab | 3480 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
c906108c | 3481 | |
c906108c | 3482 | |
c906108c | 3483 | |
c906108c | 3484 | |
c906108c | 3485 | |
c906108c | 3486 | |
c906108c | 3487 | |
c906108c | 3488 | |
c906108c | 3489 | |
bec39cab AC |
3490 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
3491 | inttypes.h stdint.h unistd.h | |
3492 | do | |
3493 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3494 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3495 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3496 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3498 | else | |
3499 | cat >conftest.$ac_ext <<_ACEOF | |
3500 | /* confdefs.h. */ | |
3501 | _ACEOF | |
3502 | cat confdefs.h >>conftest.$ac_ext | |
3503 | cat >>conftest.$ac_ext <<_ACEOF | |
3504 | /* end confdefs.h. */ | |
3505 | $ac_includes_default | |
3506 | ||
3507 | #include <$ac_header> | |
3508 | _ACEOF | |
3509 | rm -f conftest.$ac_objext | |
3510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3511 | (eval $ac_compile) 2>conftest.er1 | |
3512 | ac_status=$? | |
3513 | grep -v '^ *+' conftest.er1 >conftest.err | |
3514 | rm -f conftest.er1 | |
3515 | cat conftest.err >&5 | |
3516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3517 | (exit $ac_status); } && | |
3518 | { ac_try='test -z "$ac_c_werror_flag" | |
3519 | || test ! -s conftest.err' | |
3520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3521 | (eval $ac_try) 2>&5 | |
3522 | ac_status=$? | |
3523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3524 | (exit $ac_status); }; } && | |
3525 | { ac_try='test -s conftest.$ac_objext' | |
3526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3527 | (eval $ac_try) 2>&5 | |
3528 | ac_status=$? | |
3529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3530 | (exit $ac_status); }; }; then | |
3531 | eval "$as_ac_Header=yes" | |
3532 | else | |
3533 | echo "$as_me: failed program was:" >&5 | |
3534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3535 | ||
3536 | eval "$as_ac_Header=no" | |
3537 | fi | |
3538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3539 | fi | |
3540 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3541 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3542 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3543 | cat >>confdefs.h <<_ACEOF | |
3544 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3545 | _ACEOF | |
c906108c | 3546 | |
c906108c SS |
3547 | fi |
3548 | ||
bec39cab | 3549 | done |
c906108c | 3550 | |
c906108c | 3551 | |
bec39cab AC |
3552 | echo "$as_me:$LINENO: checking for off_t" >&5 |
3553 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
3554 | if test "${ac_cv_type_off_t+set}" = set; then | |
3555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3556 | else |
bec39cab AC |
3557 | cat >conftest.$ac_ext <<_ACEOF |
3558 | /* confdefs.h. */ | |
3559 | _ACEOF | |
3560 | cat confdefs.h >>conftest.$ac_ext | |
3561 | cat >>conftest.$ac_ext <<_ACEOF | |
3562 | /* end confdefs.h. */ | |
3563 | $ac_includes_default | |
3564 | int | |
3565 | main () | |
3566 | { | |
3567 | if ((off_t *) 0) | |
3568 | return 0; | |
3569 | if (sizeof (off_t)) | |
3570 | return 0; | |
3571 | ; | |
3572 | return 0; | |
3573 | } | |
3574 | _ACEOF | |
3575 | rm -f conftest.$ac_objext | |
3576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3577 | (eval $ac_compile) 2>conftest.er1 | |
3578 | ac_status=$? | |
3579 | grep -v '^ *+' conftest.er1 >conftest.err | |
3580 | rm -f conftest.er1 | |
3581 | cat conftest.err >&5 | |
3582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3583 | (exit $ac_status); } && | |
3584 | { ac_try='test -z "$ac_c_werror_flag" | |
3585 | || test ! -s conftest.err' | |
3586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3587 | (eval $ac_try) 2>&5 | |
3588 | ac_status=$? | |
3589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3590 | (exit $ac_status); }; } && | |
3591 | { ac_try='test -s conftest.$ac_objext' | |
3592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3593 | (eval $ac_try) 2>&5 | |
3594 | ac_status=$? | |
3595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3596 | (exit $ac_status); }; }; then | |
3597 | ac_cv_type_off_t=yes | |
3598 | else | |
3599 | echo "$as_me: failed program was:" >&5 | |
3600 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3601 | ||
3602 | ac_cv_type_off_t=no | |
c906108c | 3603 | fi |
bec39cab | 3604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3605 | fi |
bec39cab AC |
3606 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
3607 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
3608 | if test $ac_cv_type_off_t = yes; then | |
3609 | : | |
c906108c | 3610 | else |
bec39cab AC |
3611 | |
3612 | cat >>confdefs.h <<_ACEOF | |
3613 | #define off_t long | |
3614 | _ACEOF | |
3615 | ||
3616 | fi | |
3617 | ||
3618 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
3619 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
3620 | if test "${ac_cv_type_size_t+set}" = set; then | |
3621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3622 | else | |
3623 | cat >conftest.$ac_ext <<_ACEOF | |
3624 | /* confdefs.h. */ | |
3625 | _ACEOF | |
3626 | cat confdefs.h >>conftest.$ac_ext | |
3627 | cat >>conftest.$ac_ext <<_ACEOF | |
3628 | /* end confdefs.h. */ | |
3629 | $ac_includes_default | |
3630 | int | |
3631 | main () | |
3632 | { | |
3633 | if ((size_t *) 0) | |
3634 | return 0; | |
3635 | if (sizeof (size_t)) | |
3636 | return 0; | |
3637 | ; | |
3638 | return 0; | |
3639 | } | |
3640 | _ACEOF | |
3641 | rm -f conftest.$ac_objext | |
3642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3643 | (eval $ac_compile) 2>conftest.er1 | |
3644 | ac_status=$? | |
3645 | grep -v '^ *+' conftest.er1 >conftest.err | |
3646 | rm -f conftest.er1 | |
3647 | cat conftest.err >&5 | |
3648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3649 | (exit $ac_status); } && | |
3650 | { ac_try='test -z "$ac_c_werror_flag" | |
3651 | || test ! -s conftest.err' | |
3652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3653 | (eval $ac_try) 2>&5 | |
3654 | ac_status=$? | |
3655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3656 | (exit $ac_status); }; } && | |
3657 | { ac_try='test -s conftest.$ac_objext' | |
3658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3659 | (eval $ac_try) 2>&5 | |
3660 | ac_status=$? | |
3661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3662 | (exit $ac_status); }; }; then | |
3663 | ac_cv_type_size_t=yes | |
c906108c | 3664 | else |
bec39cab AC |
3665 | echo "$as_me: failed program was:" >&5 |
3666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3667 | ||
3668 | ac_cv_type_size_t=no | |
c906108c | 3669 | fi |
bec39cab | 3670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3671 | fi |
bec39cab AC |
3672 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
3673 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
3674 | if test $ac_cv_type_size_t = yes; then | |
3675 | : | |
3676 | else | |
c906108c | 3677 | |
bec39cab AC |
3678 | cat >>confdefs.h <<_ACEOF |
3679 | #define size_t unsigned | |
3680 | _ACEOF | |
c906108c | 3681 | |
c906108c | 3682 | fi |
bec39cab AC |
3683 | |
3684 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
3685 | # for constant arguments. Useless! | |
3686 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
3687 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
3688 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
3689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3690 | else | |
3691 | cat >conftest.$ac_ext <<_ACEOF | |
3692 | /* confdefs.h. */ | |
3693 | _ACEOF | |
3694 | cat confdefs.h >>conftest.$ac_ext | |
3695 | cat >>conftest.$ac_ext <<_ACEOF | |
3696 | /* end confdefs.h. */ | |
3697 | #include <alloca.h> | |
3698 | int | |
3699 | main () | |
3700 | { | |
3701 | char *p = (char *) alloca (2 * sizeof (int)); | |
3702 | ; | |
3703 | return 0; | |
3704 | } | |
3705 | _ACEOF | |
3706 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3707 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3708 | (eval $ac_link) 2>conftest.er1 | |
3709 | ac_status=$? | |
3710 | grep -v '^ *+' conftest.er1 >conftest.err | |
3711 | rm -f conftest.er1 | |
3712 | cat conftest.err >&5 | |
3713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3714 | (exit $ac_status); } && | |
3715 | { ac_try='test -z "$ac_c_werror_flag" | |
3716 | || test ! -s conftest.err' | |
3717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3718 | (eval $ac_try) 2>&5 | |
3719 | ac_status=$? | |
3720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3721 | (exit $ac_status); }; } && | |
3722 | { ac_try='test -s conftest$ac_exeext' | |
3723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3724 | (eval $ac_try) 2>&5 | |
3725 | ac_status=$? | |
3726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3727 | (exit $ac_status); }; }; then | |
3728 | ac_cv_working_alloca_h=yes | |
3729 | else | |
3730 | echo "$as_me: failed program was:" >&5 | |
3731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3732 | ||
3733 | ac_cv_working_alloca_h=no | |
3734 | fi | |
3735 | rm -f conftest.err conftest.$ac_objext \ | |
3736 | conftest$ac_exeext conftest.$ac_ext | |
3737 | fi | |
3738 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
3739 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
3740 | if test $ac_cv_working_alloca_h = yes; then | |
3741 | ||
3742 | cat >>confdefs.h <<\_ACEOF | |
3743 | #define HAVE_ALLOCA_H 1 | |
3744 | _ACEOF | |
c906108c SS |
3745 | |
3746 | fi | |
bec39cab AC |
3747 | |
3748 | echo "$as_me:$LINENO: checking for alloca" >&5 | |
3749 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
3750 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
3751 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3752 | else |
bec39cab AC |
3753 | cat >conftest.$ac_ext <<_ACEOF |
3754 | /* confdefs.h. */ | |
3755 | _ACEOF | |
3756 | cat confdefs.h >>conftest.$ac_ext | |
3757 | cat >>conftest.$ac_ext <<_ACEOF | |
3758 | /* end confdefs.h. */ | |
3759 | #ifdef __GNUC__ | |
3760 | # define alloca __builtin_alloca | |
3761 | #else | |
3762 | # ifdef _MSC_VER | |
3763 | # include <malloc.h> | |
3764 | # define alloca _alloca | |
3765 | # else | |
3766 | # if HAVE_ALLOCA_H | |
3767 | # include <alloca.h> | |
3768 | # else | |
3769 | # ifdef _AIX | |
3770 | #pragma alloca | |
3771 | # else | |
3772 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3773 | char *alloca (); | |
3774 | # endif | |
3775 | # endif | |
3776 | # endif | |
3777 | # endif | |
3778 | #endif | |
c906108c | 3779 | |
bec39cab AC |
3780 | int |
3781 | main () | |
3782 | { | |
3783 | char *p = (char *) alloca (1); | |
3784 | ; | |
3785 | return 0; | |
3786 | } | |
3787 | _ACEOF | |
3788 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3789 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3790 | (eval $ac_link) 2>conftest.er1 | |
3791 | ac_status=$? | |
3792 | grep -v '^ *+' conftest.er1 >conftest.err | |
3793 | rm -f conftest.er1 | |
3794 | cat conftest.err >&5 | |
3795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3796 | (exit $ac_status); } && | |
3797 | { ac_try='test -z "$ac_c_werror_flag" | |
3798 | || test ! -s conftest.err' | |
3799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3800 | (eval $ac_try) 2>&5 | |
3801 | ac_status=$? | |
3802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3803 | (exit $ac_status); }; } && | |
3804 | { ac_try='test -s conftest$ac_exeext' | |
3805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3806 | (eval $ac_try) 2>&5 | |
3807 | ac_status=$? | |
3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3809 | (exit $ac_status); }; }; then | |
3810 | ac_cv_func_alloca_works=yes | |
c906108c | 3811 | else |
bec39cab AC |
3812 | echo "$as_me: failed program was:" >&5 |
3813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3814 | ||
3815 | ac_cv_func_alloca_works=no | |
c906108c | 3816 | fi |
bec39cab AC |
3817 | rm -f conftest.err conftest.$ac_objext \ |
3818 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 3819 | fi |
bec39cab AC |
3820 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
3821 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
3822 | ||
3823 | if test $ac_cv_func_alloca_works = yes; then | |
3824 | ||
3825 | cat >>confdefs.h <<\_ACEOF | |
3826 | #define HAVE_ALLOCA 1 | |
3827 | _ACEOF | |
c906108c | 3828 | |
c906108c | 3829 | else |
bec39cab AC |
3830 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
3831 | # that cause trouble. Some versions do not even contain alloca or | |
3832 | # contain a buggy version. If you still want to use their alloca, | |
3833 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
c906108c | 3834 | |
bec39cab | 3835 | ALLOCA=alloca.$ac_objext |
c906108c | 3836 | |
bec39cab AC |
3837 | cat >>confdefs.h <<\_ACEOF |
3838 | #define C_ALLOCA 1 | |
3839 | _ACEOF | |
c906108c | 3840 | |
bec39cab AC |
3841 | |
3842 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
3843 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
3844 | if test "${ac_cv_os_cray+set}" = set; then | |
3845 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3846 | else |
bec39cab AC |
3847 | cat >conftest.$ac_ext <<_ACEOF |
3848 | /* confdefs.h. */ | |
3849 | _ACEOF | |
3850 | cat confdefs.h >>conftest.$ac_ext | |
3851 | cat >>conftest.$ac_ext <<_ACEOF | |
3852 | /* end confdefs.h. */ | |
3853 | #if defined(CRAY) && ! defined(CRAY2) | |
3854 | webecray | |
3855 | #else | |
3856 | wenotbecray | |
3857 | #endif | |
3858 | ||
3859 | _ACEOF | |
3860 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3861 | $EGREP "webecray" >/dev/null 2>&1; then | |
3862 | ac_cv_os_cray=yes | |
c906108c | 3863 | else |
bec39cab | 3864 | ac_cv_os_cray=no |
c906108c | 3865 | fi |
bec39cab AC |
3866 | rm -f conftest* |
3867 | ||
3868 | fi | |
3869 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | |
3870 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
3871 | if test $ac_cv_os_cray = yes; then | |
3872 | for ac_func in _getb67 GETB67 getb67; do | |
3873 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
3874 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3875 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3876 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
3877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3878 | else | |
3879 | cat >conftest.$ac_ext <<_ACEOF | |
3880 | /* confdefs.h. */ | |
3881 | _ACEOF | |
3882 | cat confdefs.h >>conftest.$ac_ext | |
3883 | cat >>conftest.$ac_ext <<_ACEOF | |
3884 | /* end confdefs.h. */ | |
3885 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
3886 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3887 | #define $ac_func innocuous_$ac_func | |
3888 | ||
c906108c | 3889 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
3890 | which can conflict with char $ac_func (); below. |
3891 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3892 | <limits.h> exists even on freestanding compilers. */ | |
3893 | ||
3894 | #ifdef __STDC__ | |
3895 | # include <limits.h> | |
3896 | #else | |
3897 | # include <assert.h> | |
3898 | #endif | |
c906108c | 3899 | |
bec39cab | 3900 | #undef $ac_func |
c906108c | 3901 | |
bec39cab AC |
3902 | /* Override any gcc2 internal prototype to avoid an error. */ |
3903 | #ifdef __cplusplus | |
3904 | extern "C" | |
3905 | { | |
3906 | #endif | |
3907 | /* We use char because int might match the return type of a gcc2 | |
3908 | builtin and then its argument prototype would still apply. */ | |
3909 | char $ac_func (); | |
c906108c SS |
3910 | /* The GNU C library defines this for functions which it implements |
3911 | to always fail with ENOSYS. Some functions are actually named | |
3912 | something starting with __ and the normal name is an alias. */ | |
3913 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3914 | choke me | |
3915 | #else | |
bec39cab AC |
3916 | char (*f) () = $ac_func; |
3917 | #endif | |
3918 | #ifdef __cplusplus | |
3919 | } | |
c906108c SS |
3920 | #endif |
3921 | ||
bec39cab AC |
3922 | int |
3923 | main () | |
3924 | { | |
3925 | return f != $ac_func; | |
3926 | ; | |
3927 | return 0; | |
3928 | } | |
3929 | _ACEOF | |
3930 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3932 | (eval $ac_link) 2>conftest.er1 | |
3933 | ac_status=$? | |
3934 | grep -v '^ *+' conftest.er1 >conftest.err | |
3935 | rm -f conftest.er1 | |
3936 | cat conftest.err >&5 | |
3937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3938 | (exit $ac_status); } && | |
3939 | { ac_try='test -z "$ac_c_werror_flag" | |
3940 | || test ! -s conftest.err' | |
3941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3942 | (eval $ac_try) 2>&5 | |
3943 | ac_status=$? | |
3944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3945 | (exit $ac_status); }; } && | |
3946 | { ac_try='test -s conftest$ac_exeext' | |
3947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3948 | (eval $ac_try) 2>&5 | |
3949 | ac_status=$? | |
3950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3951 | (exit $ac_status); }; }; then | |
3952 | eval "$as_ac_var=yes" | |
3953 | else | |
3954 | echo "$as_me: failed program was:" >&5 | |
3955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3956 | ||
3957 | eval "$as_ac_var=no" | |
3958 | fi | |
3959 | rm -f conftest.err conftest.$ac_objext \ | |
3960 | conftest$ac_exeext conftest.$ac_ext | |
3961 | fi | |
3962 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
3963 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
3964 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
3965 | ||
3966 | cat >>confdefs.h <<_ACEOF | |
3967 | #define CRAY_STACKSEG_END $ac_func | |
3968 | _ACEOF | |
c906108c | 3969 | |
bec39cab | 3970 | break |
c906108c | 3971 | fi |
c906108c | 3972 | |
c906108c | 3973 | done |
c906108c | 3974 | fi |
bec39cab AC |
3975 | |
3976 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
3977 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
3978 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
3979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3980 | else |
bec39cab AC |
3981 | if test "$cross_compiling" = yes; then |
3982 | ac_cv_c_stack_direction=0 | |
3983 | else | |
3984 | cat >conftest.$ac_ext <<_ACEOF | |
3985 | /* confdefs.h. */ | |
3986 | _ACEOF | |
3987 | cat confdefs.h >>conftest.$ac_ext | |
3988 | cat >>conftest.$ac_ext <<_ACEOF | |
3989 | /* end confdefs.h. */ | |
3990 | int | |
3991 | find_stack_direction () | |
3992 | { | |
3993 | static char *addr = 0; | |
3994 | auto char dummy; | |
3995 | if (addr == 0) | |
3996 | { | |
3997 | addr = &dummy; | |
3998 | return find_stack_direction (); | |
3999 | } | |
4000 | else | |
4001 | return (&dummy > addr) ? 1 : -1; | |
4002 | } | |
c906108c | 4003 | |
bec39cab AC |
4004 | int |
4005 | main () | |
4006 | { | |
4007 | exit (find_stack_direction () < 0); | |
4008 | } | |
4009 | _ACEOF | |
4010 | rm -f conftest$ac_exeext | |
4011 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4012 | (eval $ac_link) 2>&5 | |
4013 | ac_status=$? | |
4014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4015 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4017 | (eval $ac_try) 2>&5 | |
4018 | ac_status=$? | |
4019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4020 | (exit $ac_status); }; }; then | |
4021 | ac_cv_c_stack_direction=1 | |
c906108c | 4022 | else |
bec39cab AC |
4023 | echo "$as_me: program exited with status $ac_status" >&5 |
4024 | echo "$as_me: failed program was:" >&5 | |
4025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4026 | ||
4027 | ( exit $ac_status ) | |
4028 | ac_cv_c_stack_direction=-1 | |
4029 | fi | |
4030 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
c906108c | 4031 | fi |
c906108c | 4032 | fi |
bec39cab AC |
4033 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
4034 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
4035 | ||
4036 | cat >>confdefs.h <<_ACEOF | |
4037 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
4038 | _ACEOF | |
c906108c | 4039 | |
c906108c | 4040 | |
c906108c SS |
4041 | fi |
4042 | ||
4043 | ||
c906108c | 4044 | |
bec39cab AC |
4045 | for ac_header in stdlib.h unistd.h |
4046 | do | |
4047 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4048 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4049 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4050 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4051 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4053 | fi | |
4054 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4055 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4056 | else | |
4057 | # Is the header compilable? | |
4058 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4059 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4060 | cat >conftest.$ac_ext <<_ACEOF | |
4061 | /* confdefs.h. */ | |
4062 | _ACEOF | |
4063 | cat confdefs.h >>conftest.$ac_ext | |
4064 | cat >>conftest.$ac_ext <<_ACEOF | |
4065 | /* end confdefs.h. */ | |
4066 | $ac_includes_default | |
4067 | #include <$ac_header> | |
4068 | _ACEOF | |
4069 | rm -f conftest.$ac_objext | |
4070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4071 | (eval $ac_compile) 2>conftest.er1 | |
4072 | ac_status=$? | |
4073 | grep -v '^ *+' conftest.er1 >conftest.err | |
4074 | rm -f conftest.er1 | |
4075 | cat conftest.err >&5 | |
4076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4077 | (exit $ac_status); } && | |
4078 | { ac_try='test -z "$ac_c_werror_flag" | |
4079 | || test ! -s conftest.err' | |
4080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4081 | (eval $ac_try) 2>&5 | |
4082 | ac_status=$? | |
4083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4084 | (exit $ac_status); }; } && | |
4085 | { ac_try='test -s conftest.$ac_objext' | |
4086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4087 | (eval $ac_try) 2>&5 | |
4088 | ac_status=$? | |
4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4090 | (exit $ac_status); }; }; then | |
4091 | ac_header_compiler=yes | |
4092 | else | |
4093 | echo "$as_me: failed program was:" >&5 | |
4094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4095 | ||
4096 | ac_header_compiler=no | |
4097 | fi | |
4098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4099 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4100 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4101 | ||
4102 | # Is the header present? | |
4103 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4104 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4105 | cat >conftest.$ac_ext <<_ACEOF | |
4106 | /* confdefs.h. */ | |
4107 | _ACEOF | |
4108 | cat confdefs.h >>conftest.$ac_ext | |
4109 | cat >>conftest.$ac_ext <<_ACEOF | |
4110 | /* end confdefs.h. */ | |
4111 | #include <$ac_header> | |
4112 | _ACEOF | |
4113 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4114 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4115 | ac_status=$? | |
4116 | grep -v '^ *+' conftest.er1 >conftest.err | |
4117 | rm -f conftest.er1 | |
4118 | cat conftest.err >&5 | |
4119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4120 | (exit $ac_status); } >/dev/null; then | |
4121 | if test -s conftest.err; then | |
4122 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4123 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4124 | else | |
4125 | ac_cpp_err= | |
4126 | fi | |
c906108c | 4127 | else |
bec39cab | 4128 | ac_cpp_err=yes |
c906108c | 4129 | fi |
bec39cab AC |
4130 | if test -z "$ac_cpp_err"; then |
4131 | ac_header_preproc=yes | |
c906108c | 4132 | else |
bec39cab AC |
4133 | echo "$as_me: failed program was:" >&5 |
4134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4135 | ||
4136 | ac_header_preproc=no | |
c906108c | 4137 | fi |
bec39cab AC |
4138 | rm -f conftest.err conftest.$ac_ext |
4139 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4140 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 4141 | |
bec39cab AC |
4142 | # So? What about this header? |
4143 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4144 | yes:no: ) | |
4145 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4146 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4147 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4148 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4149 | ac_header_preproc=yes | |
4150 | ;; | |
4151 | no:yes:* ) | |
4152 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4153 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4154 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4155 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4156 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4157 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4158 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4159 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4160 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4161 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4162 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4163 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4164 | ( | |
4165 | cat <<\_ASBOX | |
4166 | ## ------------------------------------------ ## | |
4167 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4168 | ## ------------------------------------------ ## | |
4169 | _ASBOX | |
4170 | ) | | |
4171 | sed "s/^/$as_me: WARNING: /" >&2 | |
4172 | ;; | |
4173 | esac | |
4174 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4175 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4176 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4178 | else | |
4179 | eval "$as_ac_Header=\$ac_header_preproc" | |
4180 | fi | |
4181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4182 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4183 | ||
4184 | fi | |
4185 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4186 | cat >>confdefs.h <<_ACEOF | |
4187 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4188 | _ACEOF | |
4189 | ||
4190 | fi | |
4191 | ||
4192 | done | |
4193 | ||
4194 | ||
4195 | for ac_func in getpagesize | |
4196 | do | |
4197 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4198 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4199 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4200 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4202 | else | |
4203 | cat >conftest.$ac_ext <<_ACEOF | |
4204 | /* confdefs.h. */ | |
4205 | _ACEOF | |
4206 | cat confdefs.h >>conftest.$ac_ext | |
4207 | cat >>conftest.$ac_ext <<_ACEOF | |
4208 | /* end confdefs.h. */ | |
4209 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4210 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4211 | #define $ac_func innocuous_$ac_func | |
4212 | ||
4213 | /* System header to define __stub macros and hopefully few prototypes, | |
4214 | which can conflict with char $ac_func (); below. | |
4215 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4216 | <limits.h> exists even on freestanding compilers. */ | |
4217 | ||
4218 | #ifdef __STDC__ | |
4219 | # include <limits.h> | |
4220 | #else | |
4221 | # include <assert.h> | |
4222 | #endif | |
4223 | ||
4224 | #undef $ac_func | |
4225 | ||
4226 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4227 | #ifdef __cplusplus | |
4228 | extern "C" | |
4229 | { | |
4230 | #endif | |
4231 | /* We use char because int might match the return type of a gcc2 | |
4232 | builtin and then its argument prototype would still apply. */ | |
4233 | char $ac_func (); | |
4234 | /* The GNU C library defines this for functions which it implements | |
4235 | to always fail with ENOSYS. Some functions are actually named | |
4236 | something starting with __ and the normal name is an alias. */ | |
4237 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4238 | choke me | |
4239 | #else | |
4240 | char (*f) () = $ac_func; | |
4241 | #endif | |
4242 | #ifdef __cplusplus | |
4243 | } | |
4244 | #endif | |
4245 | ||
4246 | int | |
4247 | main () | |
4248 | { | |
4249 | return f != $ac_func; | |
4250 | ; | |
4251 | return 0; | |
4252 | } | |
4253 | _ACEOF | |
4254 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4255 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4256 | (eval $ac_link) 2>conftest.er1 | |
4257 | ac_status=$? | |
4258 | grep -v '^ *+' conftest.er1 >conftest.err | |
4259 | rm -f conftest.er1 | |
4260 | cat conftest.err >&5 | |
4261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4262 | (exit $ac_status); } && | |
4263 | { ac_try='test -z "$ac_c_werror_flag" | |
4264 | || test ! -s conftest.err' | |
4265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4266 | (eval $ac_try) 2>&5 | |
4267 | ac_status=$? | |
4268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4269 | (exit $ac_status); }; } && | |
4270 | { ac_try='test -s conftest$ac_exeext' | |
4271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4272 | (eval $ac_try) 2>&5 | |
4273 | ac_status=$? | |
4274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4275 | (exit $ac_status); }; }; then | |
4276 | eval "$as_ac_var=yes" | |
4277 | else | |
4278 | echo "$as_me: failed program was:" >&5 | |
4279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4280 | ||
4281 | eval "$as_ac_var=no" | |
4282 | fi | |
4283 | rm -f conftest.err conftest.$ac_objext \ | |
4284 | conftest$ac_exeext conftest.$ac_ext | |
4285 | fi | |
4286 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4287 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4288 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4289 | cat >>confdefs.h <<_ACEOF | |
4290 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4291 | _ACEOF | |
4292 | ||
4293 | fi | |
4294 | done | |
4295 | ||
4296 | echo "$as_me:$LINENO: checking for working mmap" >&5 | |
4297 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
4298 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
4299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4300 | else | |
4301 | if test "$cross_compiling" = yes; then | |
4302 | ac_cv_func_mmap_fixed_mapped=no | |
4303 | else | |
4304 | cat >conftest.$ac_ext <<_ACEOF | |
4305 | /* confdefs.h. */ | |
4306 | _ACEOF | |
4307 | cat confdefs.h >>conftest.$ac_ext | |
4308 | cat >>conftest.$ac_ext <<_ACEOF | |
4309 | /* end confdefs.h. */ | |
4310 | $ac_includes_default | |
4311 | /* malloc might have been renamed as rpl_malloc. */ | |
4312 | #undef malloc | |
4313 | ||
4314 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
4315 | Here is a matrix of mmap possibilities: | |
4316 | mmap private not fixed | |
4317 | mmap private fixed at somewhere currently unmapped | |
4318 | mmap private fixed at somewhere already mapped | |
4319 | mmap shared not fixed | |
4320 | mmap shared fixed at somewhere currently unmapped | |
4321 | mmap shared fixed at somewhere already mapped | |
4322 | For private mappings, we should verify that changes cannot be read() | |
4323 | back from the file, nor mmap's back from the file at a different | |
4324 | address. (There have been systems where private was not correctly | |
4325 | implemented like the infamous i386 svr4.0, and systems where the | |
4326 | VM page cache was not coherent with the file system buffer cache | |
4327 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
4328 | For shared mappings, we should conversely verify that changes get | |
4329 | propagated back to all the places they're supposed to be. | |
4330 | ||
4331 | Grep wants private fixed already mapped. | |
4332 | The main things grep needs to know about mmap are: | |
4333 | * does it exist and is it safe to write into the mmap'd area | |
4334 | * how to use it (BSD variants) */ | |
4335 | ||
4336 | #include <fcntl.h> | |
4337 | #include <sys/mman.h> | |
4338 | ||
4339 | #if !STDC_HEADERS && !HAVE_STDLIB_H | |
4340 | char *malloc (); | |
4341 | #endif | |
4342 | ||
4343 | /* This mess was copied from the GNU getpagesize.h. */ | |
4344 | #if !HAVE_GETPAGESIZE | |
4345 | /* Assume that all systems that can run configure have sys/param.h. */ | |
4346 | # if !HAVE_SYS_PARAM_H | |
4347 | # define HAVE_SYS_PARAM_H 1 | |
4348 | # endif | |
4349 | ||
4350 | # ifdef _SC_PAGESIZE | |
4351 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
4352 | # else /* no _SC_PAGESIZE */ | |
4353 | # if HAVE_SYS_PARAM_H | |
4354 | # include <sys/param.h> | |
4355 | # ifdef EXEC_PAGESIZE | |
4356 | # define getpagesize() EXEC_PAGESIZE | |
4357 | # else /* no EXEC_PAGESIZE */ | |
4358 | # ifdef NBPG | |
4359 | # define getpagesize() NBPG * CLSIZE | |
4360 | # ifndef CLSIZE | |
4361 | # define CLSIZE 1 | |
4362 | # endif /* no CLSIZE */ | |
4363 | # else /* no NBPG */ | |
4364 | # ifdef NBPC | |
4365 | # define getpagesize() NBPC | |
4366 | # else /* no NBPC */ | |
4367 | # ifdef PAGESIZE | |
4368 | # define getpagesize() PAGESIZE | |
4369 | # endif /* PAGESIZE */ | |
4370 | # endif /* no NBPC */ | |
4371 | # endif /* no NBPG */ | |
4372 | # endif /* no EXEC_PAGESIZE */ | |
4373 | # else /* no HAVE_SYS_PARAM_H */ | |
4374 | # define getpagesize() 8192 /* punt totally */ | |
4375 | # endif /* no HAVE_SYS_PARAM_H */ | |
4376 | # endif /* no _SC_PAGESIZE */ | |
4377 | ||
4378 | #endif /* no HAVE_GETPAGESIZE */ | |
4379 | ||
4380 | int | |
4381 | main () | |
4382 | { | |
4383 | char *data, *data2, *data3; | |
4384 | int i, pagesize; | |
4385 | int fd; | |
4386 | ||
4387 | pagesize = getpagesize (); | |
4388 | ||
4389 | /* First, make a file with some known garbage in it. */ | |
4390 | data = (char *) malloc (pagesize); | |
4391 | if (!data) | |
4392 | exit (1); | |
4393 | for (i = 0; i < pagesize; ++i) | |
4394 | *(data + i) = rand (); | |
4395 | umask (0); | |
4396 | fd = creat ("conftest.mmap", 0600); | |
4397 | if (fd < 0) | |
4398 | exit (1); | |
4399 | if (write (fd, data, pagesize) != pagesize) | |
4400 | exit (1); | |
4401 | close (fd); | |
4402 | ||
4403 | /* Next, try to mmap the file at a fixed address which already has | |
4404 | something else allocated at it. If we can, also make sure that | |
4405 | we see the same garbage. */ | |
4406 | fd = open ("conftest.mmap", O_RDWR); | |
4407 | if (fd < 0) | |
4408 | exit (1); | |
4409 | data2 = (char *) malloc (2 * pagesize); | |
4410 | if (!data2) | |
4411 | exit (1); | |
4412 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
4413 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
4414 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
4415 | exit (1); | |
4416 | for (i = 0; i < pagesize; ++i) | |
4417 | if (*(data + i) != *(data2 + i)) | |
4418 | exit (1); | |
4419 | ||
4420 | /* Finally, make sure that changes to the mapped area do not | |
4421 | percolate back to the file as seen by read(). (This is a bug on | |
4422 | some variants of i386 svr4.0.) */ | |
4423 | for (i = 0; i < pagesize; ++i) | |
4424 | *(data2 + i) = *(data2 + i) + 1; | |
4425 | data3 = (char *) malloc (pagesize); | |
4426 | if (!data3) | |
4427 | exit (1); | |
4428 | if (read (fd, data3, pagesize) != pagesize) | |
4429 | exit (1); | |
4430 | for (i = 0; i < pagesize; ++i) | |
4431 | if (*(data + i) != *(data3 + i)) | |
4432 | exit (1); | |
4433 | close (fd); | |
4434 | exit (0); | |
4435 | } | |
4436 | _ACEOF | |
4437 | rm -f conftest$ac_exeext | |
4438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4439 | (eval $ac_link) 2>&5 | |
4440 | ac_status=$? | |
4441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4442 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4444 | (eval $ac_try) 2>&5 | |
4445 | ac_status=$? | |
4446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4447 | (exit $ac_status); }; }; then | |
4448 | ac_cv_func_mmap_fixed_mapped=yes | |
4449 | else | |
4450 | echo "$as_me: program exited with status $ac_status" >&5 | |
4451 | echo "$as_me: failed program was:" >&5 | |
4452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4453 | ||
4454 | ( exit $ac_status ) | |
4455 | ac_cv_func_mmap_fixed_mapped=no | |
4456 | fi | |
4457 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4458 | fi | |
4459 | fi | |
4460 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
4461 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
4462 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
4463 | ||
4464 | cat >>confdefs.h <<\_ACEOF | |
4465 | #define HAVE_MMAP 1 | |
4466 | _ACEOF | |
4467 | ||
4468 | fi | |
4469 | rm -f conftest.mmap | |
4470 | ||
4471 | ||
4472 | ||
4473 | ||
4474 | ||
4475 | ||
4476 | ||
4477 | ||
4478 | ||
4479 | ||
4480 | ||
4481 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
4482 | unistd.h values.h sys/param.h | |
4483 | do | |
4484 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4485 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4486 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4487 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4488 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4490 | fi | |
4491 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4492 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4493 | else | |
4494 | # Is the header compilable? | |
4495 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4496 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4497 | cat >conftest.$ac_ext <<_ACEOF | |
4498 | /* confdefs.h. */ | |
4499 | _ACEOF | |
4500 | cat confdefs.h >>conftest.$ac_ext | |
4501 | cat >>conftest.$ac_ext <<_ACEOF | |
4502 | /* end confdefs.h. */ | |
4503 | $ac_includes_default | |
4504 | #include <$ac_header> | |
4505 | _ACEOF | |
4506 | rm -f conftest.$ac_objext | |
4507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4508 | (eval $ac_compile) 2>conftest.er1 | |
4509 | ac_status=$? | |
4510 | grep -v '^ *+' conftest.er1 >conftest.err | |
4511 | rm -f conftest.er1 | |
4512 | cat conftest.err >&5 | |
4513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4514 | (exit $ac_status); } && | |
4515 | { ac_try='test -z "$ac_c_werror_flag" | |
4516 | || test ! -s conftest.err' | |
4517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4518 | (eval $ac_try) 2>&5 | |
4519 | ac_status=$? | |
4520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4521 | (exit $ac_status); }; } && | |
4522 | { ac_try='test -s conftest.$ac_objext' | |
4523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4524 | (eval $ac_try) 2>&5 | |
4525 | ac_status=$? | |
4526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4527 | (exit $ac_status); }; }; then | |
4528 | ac_header_compiler=yes | |
4529 | else | |
4530 | echo "$as_me: failed program was:" >&5 | |
4531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4532 | ||
4533 | ac_header_compiler=no | |
4534 | fi | |
4535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4536 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4537 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4538 | ||
4539 | # Is the header present? | |
4540 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4541 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4542 | cat >conftest.$ac_ext <<_ACEOF | |
4543 | /* confdefs.h. */ | |
4544 | _ACEOF | |
4545 | cat confdefs.h >>conftest.$ac_ext | |
4546 | cat >>conftest.$ac_ext <<_ACEOF | |
4547 | /* end confdefs.h. */ | |
4548 | #include <$ac_header> | |
4549 | _ACEOF | |
4550 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4551 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4552 | ac_status=$? | |
4553 | grep -v '^ *+' conftest.er1 >conftest.err | |
4554 | rm -f conftest.er1 | |
4555 | cat conftest.err >&5 | |
4556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4557 | (exit $ac_status); } >/dev/null; then | |
4558 | if test -s conftest.err; then | |
4559 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4560 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4561 | else | |
4562 | ac_cpp_err= | |
4563 | fi | |
4564 | else | |
4565 | ac_cpp_err=yes | |
4566 | fi | |
4567 | if test -z "$ac_cpp_err"; then | |
4568 | ac_header_preproc=yes | |
4569 | else | |
4570 | echo "$as_me: failed program was:" >&5 | |
4571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4572 | ||
4573 | ac_header_preproc=no | |
4574 | fi | |
4575 | rm -f conftest.err conftest.$ac_ext | |
4576 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4577 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4578 | ||
4579 | # So? What about this header? | |
4580 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4581 | yes:no: ) | |
4582 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4583 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4584 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4585 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4586 | ac_header_preproc=yes | |
4587 | ;; | |
4588 | no:yes:* ) | |
4589 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4590 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4591 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4592 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4593 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4594 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4595 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4596 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4597 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4598 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4599 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4600 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4601 | ( | |
4602 | cat <<\_ASBOX | |
4603 | ## ------------------------------------------ ## | |
4604 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4605 | ## ------------------------------------------ ## | |
4606 | _ASBOX | |
4607 | ) | | |
4608 | sed "s/^/$as_me: WARNING: /" >&2 | |
4609 | ;; | |
4610 | esac | |
4611 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4612 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4613 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4615 | else | |
4616 | eval "$as_ac_Header=\$ac_header_preproc" | |
4617 | fi | |
4618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4619 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4620 | ||
4621 | fi | |
4622 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4623 | cat >>confdefs.h <<_ACEOF | |
4624 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4625 | _ACEOF | |
4626 | ||
4627 | fi | |
4628 | ||
4629 | done | |
4630 | ||
4631 | ||
4632 | ||
4633 | ||
4634 | ||
4635 | ||
4636 | ||
4637 | ||
4638 | ||
4639 | ||
4640 | ||
4641 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
4642 | __argz_count __argz_stringify __argz_next | |
4643 | do | |
4644 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4645 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4646 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4647 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4649 | else | |
4650 | cat >conftest.$ac_ext <<_ACEOF | |
4651 | /* confdefs.h. */ | |
4652 | _ACEOF | |
4653 | cat confdefs.h >>conftest.$ac_ext | |
4654 | cat >>conftest.$ac_ext <<_ACEOF | |
4655 | /* end confdefs.h. */ | |
4656 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4657 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4658 | #define $ac_func innocuous_$ac_func | |
4659 | ||
4660 | /* System header to define __stub macros and hopefully few prototypes, | |
4661 | which can conflict with char $ac_func (); below. | |
4662 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4663 | <limits.h> exists even on freestanding compilers. */ | |
4664 | ||
4665 | #ifdef __STDC__ | |
4666 | # include <limits.h> | |
4667 | #else | |
4668 | # include <assert.h> | |
4669 | #endif | |
4670 | ||
4671 | #undef $ac_func | |
4672 | ||
4673 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4674 | #ifdef __cplusplus | |
4675 | extern "C" | |
4676 | { | |
4677 | #endif | |
4678 | /* We use char because int might match the return type of a gcc2 | |
4679 | builtin and then its argument prototype would still apply. */ | |
4680 | char $ac_func (); | |
4681 | /* The GNU C library defines this for functions which it implements | |
4682 | to always fail with ENOSYS. Some functions are actually named | |
4683 | something starting with __ and the normal name is an alias. */ | |
4684 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4685 | choke me | |
4686 | #else | |
4687 | char (*f) () = $ac_func; | |
4688 | #endif | |
4689 | #ifdef __cplusplus | |
4690 | } | |
4691 | #endif | |
4692 | ||
4693 | int | |
4694 | main () | |
4695 | { | |
4696 | return f != $ac_func; | |
4697 | ; | |
4698 | return 0; | |
4699 | } | |
4700 | _ACEOF | |
4701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4703 | (eval $ac_link) 2>conftest.er1 | |
4704 | ac_status=$? | |
4705 | grep -v '^ *+' conftest.er1 >conftest.err | |
4706 | rm -f conftest.er1 | |
4707 | cat conftest.err >&5 | |
4708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4709 | (exit $ac_status); } && | |
4710 | { ac_try='test -z "$ac_c_werror_flag" | |
4711 | || test ! -s conftest.err' | |
4712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4713 | (eval $ac_try) 2>&5 | |
4714 | ac_status=$? | |
4715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4716 | (exit $ac_status); }; } && | |
4717 | { ac_try='test -s conftest$ac_exeext' | |
4718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4719 | (eval $ac_try) 2>&5 | |
4720 | ac_status=$? | |
4721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4722 | (exit $ac_status); }; }; then | |
4723 | eval "$as_ac_var=yes" | |
4724 | else | |
4725 | echo "$as_me: failed program was:" >&5 | |
4726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4727 | ||
4728 | eval "$as_ac_var=no" | |
4729 | fi | |
4730 | rm -f conftest.err conftest.$ac_objext \ | |
4731 | conftest$ac_exeext conftest.$ac_ext | |
4732 | fi | |
4733 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4734 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4735 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4736 | cat >>confdefs.h <<_ACEOF | |
4737 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4738 | _ACEOF | |
4739 | ||
4740 | fi | |
4741 | done | |
4742 | ||
4743 | ||
4744 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
4745 | ||
4746 | for ac_func in stpcpy | |
4747 | do | |
4748 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4749 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4750 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4751 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4753 | else | |
4754 | cat >conftest.$ac_ext <<_ACEOF | |
4755 | /* confdefs.h. */ | |
4756 | _ACEOF | |
4757 | cat confdefs.h >>conftest.$ac_ext | |
4758 | cat >>conftest.$ac_ext <<_ACEOF | |
4759 | /* end confdefs.h. */ | |
4760 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4761 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4762 | #define $ac_func innocuous_$ac_func | |
4763 | ||
4764 | /* System header to define __stub macros and hopefully few prototypes, | |
4765 | which can conflict with char $ac_func (); below. | |
4766 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4767 | <limits.h> exists even on freestanding compilers. */ | |
4768 | ||
4769 | #ifdef __STDC__ | |
4770 | # include <limits.h> | |
4771 | #else | |
4772 | # include <assert.h> | |
4773 | #endif | |
4774 | ||
4775 | #undef $ac_func | |
4776 | ||
4777 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4778 | #ifdef __cplusplus | |
4779 | extern "C" | |
4780 | { | |
4781 | #endif | |
4782 | /* We use char because int might match the return type of a gcc2 | |
4783 | builtin and then its argument prototype would still apply. */ | |
4784 | char $ac_func (); | |
4785 | /* The GNU C library defines this for functions which it implements | |
4786 | to always fail with ENOSYS. Some functions are actually named | |
4787 | something starting with __ and the normal name is an alias. */ | |
4788 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4789 | choke me | |
4790 | #else | |
4791 | char (*f) () = $ac_func; | |
4792 | #endif | |
4793 | #ifdef __cplusplus | |
4794 | } | |
4795 | #endif | |
4796 | ||
4797 | int | |
4798 | main () | |
4799 | { | |
4800 | return f != $ac_func; | |
4801 | ; | |
4802 | return 0; | |
4803 | } | |
4804 | _ACEOF | |
4805 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4807 | (eval $ac_link) 2>conftest.er1 | |
4808 | ac_status=$? | |
4809 | grep -v '^ *+' conftest.er1 >conftest.err | |
4810 | rm -f conftest.er1 | |
4811 | cat conftest.err >&5 | |
4812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4813 | (exit $ac_status); } && | |
4814 | { ac_try='test -z "$ac_c_werror_flag" | |
4815 | || test ! -s conftest.err' | |
4816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4817 | (eval $ac_try) 2>&5 | |
4818 | ac_status=$? | |
4819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4820 | (exit $ac_status); }; } && | |
4821 | { ac_try='test -s conftest$ac_exeext' | |
4822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4823 | (eval $ac_try) 2>&5 | |
4824 | ac_status=$? | |
4825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4826 | (exit $ac_status); }; }; then | |
4827 | eval "$as_ac_var=yes" | |
4828 | else | |
4829 | echo "$as_me: failed program was:" >&5 | |
4830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4831 | ||
4832 | eval "$as_ac_var=no" | |
4833 | fi | |
4834 | rm -f conftest.err conftest.$ac_objext \ | |
4835 | conftest$ac_exeext conftest.$ac_ext | |
4836 | fi | |
4837 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4838 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4839 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4840 | cat >>confdefs.h <<_ACEOF | |
4841 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4842 | _ACEOF | |
4843 | ||
4844 | fi | |
4845 | done | |
4846 | ||
4847 | fi | |
4848 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
4849 | ||
4850 | cat >>confdefs.h <<\_ACEOF | |
4851 | #define HAVE_STPCPY 1 | |
4852 | _ACEOF | |
4853 | ||
4854 | fi | |
4855 | ||
4856 | if test $ac_cv_header_locale_h = yes; then | |
4857 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 | |
4858 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
4859 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
4860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4861 | else | |
4862 | cat >conftest.$ac_ext <<_ACEOF | |
4863 | /* confdefs.h. */ | |
4864 | _ACEOF | |
4865 | cat confdefs.h >>conftest.$ac_ext | |
4866 | cat >>conftest.$ac_ext <<_ACEOF | |
4867 | /* end confdefs.h. */ | |
4868 | #include <locale.h> | |
4869 | int | |
4870 | main () | |
4871 | { | |
4872 | return LC_MESSAGES | |
4873 | ; | |
4874 | return 0; | |
4875 | } | |
4876 | _ACEOF | |
4877 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4879 | (eval $ac_link) 2>conftest.er1 | |
4880 | ac_status=$? | |
4881 | grep -v '^ *+' conftest.er1 >conftest.err | |
4882 | rm -f conftest.er1 | |
4883 | cat conftest.err >&5 | |
4884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4885 | (exit $ac_status); } && | |
4886 | { ac_try='test -z "$ac_c_werror_flag" | |
4887 | || test ! -s conftest.err' | |
4888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4889 | (eval $ac_try) 2>&5 | |
4890 | ac_status=$? | |
4891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4892 | (exit $ac_status); }; } && | |
4893 | { ac_try='test -s conftest$ac_exeext' | |
4894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4895 | (eval $ac_try) 2>&5 | |
4896 | ac_status=$? | |
4897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4898 | (exit $ac_status); }; }; then | |
4899 | am_cv_val_LC_MESSAGES=yes | |
4900 | else | |
4901 | echo "$as_me: failed program was:" >&5 | |
4902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4903 | ||
4904 | am_cv_val_LC_MESSAGES=no | |
4905 | fi | |
4906 | rm -f conftest.err conftest.$ac_objext \ | |
4907 | conftest$ac_exeext conftest.$ac_ext | |
4908 | fi | |
4909 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 | |
4910 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
4911 | if test $am_cv_val_LC_MESSAGES = yes; then | |
4912 | ||
4913 | cat >>confdefs.h <<\_ACEOF | |
4914 | #define HAVE_LC_MESSAGES 1 | |
4915 | _ACEOF | |
4916 | ||
4917 | fi | |
4918 | fi | |
4919 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
4920 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
4921 | # Check whether --enable-nls or --disable-nls was given. | |
4922 | if test "${enable_nls+set}" = set; then | |
4923 | enableval="$enable_nls" | |
4924 | USE_NLS=$enableval | |
4925 | else | |
4926 | USE_NLS=yes | |
4927 | fi; | |
4928 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
4929 | echo "${ECHO_T}$USE_NLS" >&6 | |
4930 | ||
4931 | ||
4932 | USE_INCLUDED_LIBINTL=no | |
4933 | ||
4934 | if test "$USE_NLS" = "yes"; then | |
4935 | ||
4936 | cat >>confdefs.h <<\_ACEOF | |
4937 | #define ENABLE_NLS 1 | |
4938 | _ACEOF | |
4939 | ||
4940 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 | |
4941 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
4942 | ||
4943 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
4944 | if test "${with_included_gettext+set}" = set; then | |
4945 | withval="$with_included_gettext" | |
4946 | nls_cv_force_use_gnu_gettext=$withval | |
4947 | else | |
4948 | nls_cv_force_use_gnu_gettext=no | |
4949 | fi; | |
4950 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
4951 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
4952 | ||
4953 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
4954 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
4955 | nls_cv_header_intl= | |
4956 | nls_cv_header_libgt= | |
4957 | CATOBJEXT=NONE | |
4958 | ||
4959 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4960 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4961 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4962 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4964 | fi | |
4965 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4966 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4967 | else | |
4968 | # Is the header compilable? | |
4969 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
4970 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
4971 | cat >conftest.$ac_ext <<_ACEOF | |
4972 | /* confdefs.h. */ | |
4973 | _ACEOF | |
4974 | cat confdefs.h >>conftest.$ac_ext | |
4975 | cat >>conftest.$ac_ext <<_ACEOF | |
4976 | /* end confdefs.h. */ | |
4977 | $ac_includes_default | |
4978 | #include <libintl.h> | |
4979 | _ACEOF | |
4980 | rm -f conftest.$ac_objext | |
4981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4982 | (eval $ac_compile) 2>conftest.er1 | |
4983 | ac_status=$? | |
4984 | grep -v '^ *+' conftest.er1 >conftest.err | |
4985 | rm -f conftest.er1 | |
4986 | cat conftest.err >&5 | |
4987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4988 | (exit $ac_status); } && | |
4989 | { ac_try='test -z "$ac_c_werror_flag" | |
4990 | || test ! -s conftest.err' | |
4991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4992 | (eval $ac_try) 2>&5 | |
4993 | ac_status=$? | |
4994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4995 | (exit $ac_status); }; } && | |
4996 | { ac_try='test -s conftest.$ac_objext' | |
4997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4998 | (eval $ac_try) 2>&5 | |
4999 | ac_status=$? | |
5000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5001 | (exit $ac_status); }; }; then | |
5002 | ac_header_compiler=yes | |
5003 | else | |
5004 | echo "$as_me: failed program was:" >&5 | |
5005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5006 | ||
5007 | ac_header_compiler=no | |
5008 | fi | |
5009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5010 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5011 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5012 | ||
5013 | # Is the header present? | |
5014 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
5015 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
5016 | cat >conftest.$ac_ext <<_ACEOF | |
5017 | /* confdefs.h. */ | |
5018 | _ACEOF | |
5019 | cat confdefs.h >>conftest.$ac_ext | |
5020 | cat >>conftest.$ac_ext <<_ACEOF | |
5021 | /* end confdefs.h. */ | |
5022 | #include <libintl.h> | |
5023 | _ACEOF | |
5024 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5025 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5026 | ac_status=$? | |
5027 | grep -v '^ *+' conftest.er1 >conftest.err | |
5028 | rm -f conftest.er1 | |
5029 | cat conftest.err >&5 | |
5030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5031 | (exit $ac_status); } >/dev/null; then | |
5032 | if test -s conftest.err; then | |
5033 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5034 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5035 | else | |
5036 | ac_cpp_err= | |
5037 | fi | |
5038 | else | |
5039 | ac_cpp_err=yes | |
5040 | fi | |
5041 | if test -z "$ac_cpp_err"; then | |
5042 | ac_header_preproc=yes | |
5043 | else | |
5044 | echo "$as_me: failed program was:" >&5 | |
5045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5046 | ||
5047 | ac_header_preproc=no | |
5048 | fi | |
5049 | rm -f conftest.err conftest.$ac_ext | |
5050 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5051 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5052 | ||
5053 | # So? What about this header? | |
5054 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5055 | yes:no: ) | |
5056 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5057 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5058 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
5059 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
5060 | ac_header_preproc=yes | |
5061 | ;; | |
5062 | no:yes:* ) | |
5063 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
5064 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
5065 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
5066 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
5067 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
5068 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
5069 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5070 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5071 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
5072 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
5073 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
5074 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
5075 | ( | |
5076 | cat <<\_ASBOX | |
5077 | ## ------------------------------------------ ## | |
5078 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5079 | ## ------------------------------------------ ## | |
5080 | _ASBOX | |
5081 | ) | | |
5082 | sed "s/^/$as_me: WARNING: /" >&2 | |
5083 | ;; | |
5084 | esac | |
5085 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
5086 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
5087 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
5088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5089 | else | |
5090 | ac_cv_header_libintl_h=$ac_header_preproc | |
5091 | fi | |
5092 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
5093 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
5094 | ||
5095 | fi | |
5096 | if test $ac_cv_header_libintl_h = yes; then | |
5097 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
5098 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
5099 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
5100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5101 | else | |
5102 | cat >conftest.$ac_ext <<_ACEOF | |
5103 | /* confdefs.h. */ | |
5104 | _ACEOF | |
5105 | cat confdefs.h >>conftest.$ac_ext | |
5106 | cat >>conftest.$ac_ext <<_ACEOF | |
5107 | /* end confdefs.h. */ | |
5108 | #include <libintl.h> | |
5109 | int | |
5110 | main () | |
5111 | { | |
5112 | return (int) gettext ("") | |
5113 | ; | |
5114 | return 0; | |
5115 | } | |
5116 | _ACEOF | |
5117 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5119 | (eval $ac_link) 2>conftest.er1 | |
5120 | ac_status=$? | |
5121 | grep -v '^ *+' conftest.er1 >conftest.err | |
5122 | rm -f conftest.er1 | |
5123 | cat conftest.err >&5 | |
5124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5125 | (exit $ac_status); } && | |
5126 | { ac_try='test -z "$ac_c_werror_flag" | |
5127 | || test ! -s conftest.err' | |
5128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5129 | (eval $ac_try) 2>&5 | |
5130 | ac_status=$? | |
5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5132 | (exit $ac_status); }; } && | |
5133 | { ac_try='test -s conftest$ac_exeext' | |
5134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5135 | (eval $ac_try) 2>&5 | |
5136 | ac_status=$? | |
5137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5138 | (exit $ac_status); }; }; then | |
5139 | gt_cv_func_gettext_libc=yes | |
5140 | else | |
5141 | echo "$as_me: failed program was:" >&5 | |
5142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5143 | ||
5144 | gt_cv_func_gettext_libc=no | |
5145 | fi | |
5146 | rm -f conftest.err conftest.$ac_objext \ | |
5147 | conftest$ac_exeext conftest.$ac_ext | |
5148 | fi | |
5149 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 | |
5150 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
5151 | ||
5152 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
5153 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 | |
5154 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
5155 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
5156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5157 | else | |
5158 | ac_check_lib_save_LIBS=$LIBS | |
5159 | LIBS="-lintl $LIBS" | |
5160 | cat >conftest.$ac_ext <<_ACEOF | |
5161 | /* confdefs.h. */ | |
5162 | _ACEOF | |
5163 | cat confdefs.h >>conftest.$ac_ext | |
5164 | cat >>conftest.$ac_ext <<_ACEOF | |
5165 | /* end confdefs.h. */ | |
5166 | ||
5167 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5168 | #ifdef __cplusplus | |
5169 | extern "C" | |
5170 | #endif | |
5171 | /* We use char because int might match the return type of a gcc2 | |
5172 | builtin and then its argument prototype would still apply. */ | |
5173 | char bindtextdomain (); | |
5174 | int | |
5175 | main () | |
5176 | { | |
5177 | bindtextdomain (); | |
5178 | ; | |
5179 | return 0; | |
5180 | } | |
5181 | _ACEOF | |
5182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5184 | (eval $ac_link) 2>conftest.er1 | |
5185 | ac_status=$? | |
5186 | grep -v '^ *+' conftest.er1 >conftest.err | |
5187 | rm -f conftest.er1 | |
5188 | cat conftest.err >&5 | |
5189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5190 | (exit $ac_status); } && | |
5191 | { ac_try='test -z "$ac_c_werror_flag" | |
5192 | || test ! -s conftest.err' | |
5193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5194 | (eval $ac_try) 2>&5 | |
5195 | ac_status=$? | |
5196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5197 | (exit $ac_status); }; } && | |
5198 | { ac_try='test -s conftest$ac_exeext' | |
5199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5200 | (eval $ac_try) 2>&5 | |
5201 | ac_status=$? | |
5202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5203 | (exit $ac_status); }; }; then | |
5204 | ac_cv_lib_intl_bindtextdomain=yes | |
5205 | else | |
5206 | echo "$as_me: failed program was:" >&5 | |
5207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5208 | ||
5209 | ac_cv_lib_intl_bindtextdomain=no | |
5210 | fi | |
5211 | rm -f conftest.err conftest.$ac_objext \ | |
5212 | conftest$ac_exeext conftest.$ac_ext | |
5213 | LIBS=$ac_check_lib_save_LIBS | |
5214 | fi | |
5215 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
5216 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
5217 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
5218 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
5219 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
5220 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
5221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5222 | else | |
5223 | cat >conftest.$ac_ext <<_ACEOF | |
5224 | /* confdefs.h. */ | |
5225 | _ACEOF | |
5226 | cat confdefs.h >>conftest.$ac_ext | |
5227 | cat >>conftest.$ac_ext <<_ACEOF | |
5228 | /* end confdefs.h. */ | |
5229 | ||
5230 | int | |
5231 | main () | |
5232 | { | |
5233 | return (int) gettext ("") | |
5234 | ; | |
5235 | return 0; | |
5236 | } | |
5237 | _ACEOF | |
5238 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5240 | (eval $ac_link) 2>conftest.er1 | |
5241 | ac_status=$? | |
5242 | grep -v '^ *+' conftest.er1 >conftest.err | |
5243 | rm -f conftest.er1 | |
5244 | cat conftest.err >&5 | |
5245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5246 | (exit $ac_status); } && | |
5247 | { ac_try='test -z "$ac_c_werror_flag" | |
5248 | || test ! -s conftest.err' | |
5249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5250 | (eval $ac_try) 2>&5 | |
5251 | ac_status=$? | |
5252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5253 | (exit $ac_status); }; } && | |
5254 | { ac_try='test -s conftest$ac_exeext' | |
5255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5256 | (eval $ac_try) 2>&5 | |
5257 | ac_status=$? | |
5258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5259 | (exit $ac_status); }; }; then | |
5260 | gt_cv_func_gettext_libintl=yes | |
5261 | else | |
5262 | echo "$as_me: failed program was:" >&5 | |
5263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5264 | ||
5265 | gt_cv_func_gettext_libintl=no | |
5266 | fi | |
5267 | rm -f conftest.err conftest.$ac_objext \ | |
5268 | conftest$ac_exeext conftest.$ac_ext | |
5269 | fi | |
5270 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 | |
5271 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
5272 | fi | |
5273 | ||
5274 | fi | |
5275 | ||
5276 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
5277 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
5278 | ||
5279 | cat >>confdefs.h <<\_ACEOF | |
5280 | #define HAVE_GETTEXT 1 | |
5281 | _ACEOF | |
5282 | ||
5283 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5284 | set dummy msgfmt; ac_word=$2 | |
5285 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5286 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5287 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5289 | else | |
5290 | case "$MSGFMT" in | |
5291 | /*) | |
5292 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5293 | ;; | |
5294 | *) | |
5295 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5296 | for ac_dir in $PATH; do | |
5297 | test -z "$ac_dir" && ac_dir=. | |
5298 | if test -f $ac_dir/$ac_word; then | |
5299 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5300 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5301 | break | |
5302 | fi | |
5303 | fi | |
5304 | done | |
5305 | IFS="$ac_save_ifs" | |
5306 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
5307 | ;; | |
5308 | esac | |
5309 | fi | |
5310 | MSGFMT="$ac_cv_path_MSGFMT" | |
5311 | if test -n "$MSGFMT"; then | |
5312 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
5313 | echo "${ECHO_T}$MSGFMT" >&6 | |
5314 | else | |
5315 | echo "$as_me:$LINENO: result: no" >&5 | |
5316 | echo "${ECHO_T}no" >&6 | |
5317 | fi | |
5318 | if test "$MSGFMT" != "no"; then | |
5319 | ||
5320 | for ac_func in dcgettext | |
5321 | do | |
5322 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5323 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5324 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5325 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5327 | else | |
5328 | cat >conftest.$ac_ext <<_ACEOF | |
5329 | /* confdefs.h. */ | |
5330 | _ACEOF | |
5331 | cat confdefs.h >>conftest.$ac_ext | |
5332 | cat >>conftest.$ac_ext <<_ACEOF | |
5333 | /* end confdefs.h. */ | |
5334 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5335 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5336 | #define $ac_func innocuous_$ac_func | |
5337 | ||
5338 | /* System header to define __stub macros and hopefully few prototypes, | |
5339 | which can conflict with char $ac_func (); below. | |
5340 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5341 | <limits.h> exists even on freestanding compilers. */ | |
5342 | ||
5343 | #ifdef __STDC__ | |
5344 | # include <limits.h> | |
5345 | #else | |
5346 | # include <assert.h> | |
5347 | #endif | |
5348 | ||
5349 | #undef $ac_func | |
5350 | ||
5351 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5352 | #ifdef __cplusplus | |
5353 | extern "C" | |
5354 | { | |
5355 | #endif | |
5356 | /* We use char because int might match the return type of a gcc2 | |
5357 | builtin and then its argument prototype would still apply. */ | |
5358 | char $ac_func (); | |
5359 | /* The GNU C library defines this for functions which it implements | |
5360 | to always fail with ENOSYS. Some functions are actually named | |
5361 | something starting with __ and the normal name is an alias. */ | |
5362 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5363 | choke me | |
5364 | #else | |
5365 | char (*f) () = $ac_func; | |
5366 | #endif | |
5367 | #ifdef __cplusplus | |
5368 | } | |
5369 | #endif | |
5370 | ||
5371 | int | |
5372 | main () | |
5373 | { | |
5374 | return f != $ac_func; | |
5375 | ; | |
5376 | return 0; | |
5377 | } | |
5378 | _ACEOF | |
5379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5381 | (eval $ac_link) 2>conftest.er1 | |
5382 | ac_status=$? | |
5383 | grep -v '^ *+' conftest.er1 >conftest.err | |
5384 | rm -f conftest.er1 | |
5385 | cat conftest.err >&5 | |
5386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5387 | (exit $ac_status); } && | |
5388 | { ac_try='test -z "$ac_c_werror_flag" | |
5389 | || test ! -s conftest.err' | |
5390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5391 | (eval $ac_try) 2>&5 | |
5392 | ac_status=$? | |
5393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5394 | (exit $ac_status); }; } && | |
5395 | { ac_try='test -s conftest$ac_exeext' | |
5396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5397 | (eval $ac_try) 2>&5 | |
5398 | ac_status=$? | |
5399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5400 | (exit $ac_status); }; }; then | |
5401 | eval "$as_ac_var=yes" | |
5402 | else | |
5403 | echo "$as_me: failed program was:" >&5 | |
5404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5405 | ||
5406 | eval "$as_ac_var=no" | |
5407 | fi | |
5408 | rm -f conftest.err conftest.$ac_objext \ | |
5409 | conftest$ac_exeext conftest.$ac_ext | |
5410 | fi | |
5411 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5412 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5413 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5414 | cat >>confdefs.h <<_ACEOF | |
5415 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5416 | _ACEOF | |
5417 | ||
5418 | fi | |
5419 | done | |
5420 | ||
5421 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5422 | set dummy gmsgfmt; ac_word=$2 | |
5423 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5424 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5425 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5427 | else | |
5428 | case $GMSGFMT in | |
5429 | [\\/]* | ?:[\\/]*) | |
5430 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5431 | ;; | |
5432 | *) | |
5433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5434 | for as_dir in $PATH | |
5435 | do | |
5436 | IFS=$as_save_IFS | |
5437 | test -z "$as_dir" && as_dir=. | |
5438 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5439 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5440 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5441 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5442 | break 2 | |
5443 | fi | |
5444 | done | |
5445 | done | |
5446 | ||
5447 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
5448 | ;; | |
5449 | esac | |
5450 | fi | |
5451 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5452 | ||
5453 | if test -n "$GMSGFMT"; then | |
5454 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
5455 | echo "${ECHO_T}$GMSGFMT" >&6 | |
5456 | else | |
5457 | echo "$as_me:$LINENO: result: no" >&5 | |
5458 | echo "${ECHO_T}no" >&6 | |
5459 | fi | |
5460 | ||
5461 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5462 | set dummy xgettext; ac_word=$2 | |
5463 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5465 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5467 | else | |
5468 | case "$XGETTEXT" in | |
5469 | /*) | |
5470 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5471 | ;; | |
5472 | *) | |
5473 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5474 | for ac_dir in $PATH; do | |
5475 | test -z "$ac_dir" && ac_dir=. | |
5476 | if test -f $ac_dir/$ac_word; then | |
5477 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5478 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5479 | break | |
5480 | fi | |
5481 | fi | |
5482 | done | |
5483 | IFS="$ac_save_ifs" | |
5484 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5485 | ;; | |
5486 | esac | |
5487 | fi | |
5488 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5489 | if test -n "$XGETTEXT"; then | |
5490 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
5491 | echo "${ECHO_T}$XGETTEXT" >&6 | |
5492 | else | |
5493 | echo "$as_me:$LINENO: result: no" >&5 | |
5494 | echo "${ECHO_T}no" >&6 | |
5495 | fi | |
5496 | ||
5497 | cat >conftest.$ac_ext <<_ACEOF | |
5498 | /* confdefs.h. */ | |
5499 | _ACEOF | |
5500 | cat confdefs.h >>conftest.$ac_ext | |
5501 | cat >>conftest.$ac_ext <<_ACEOF | |
5502 | /* end confdefs.h. */ | |
5503 | ||
5504 | int | |
5505 | main () | |
5506 | { | |
5507 | extern int _nl_msg_cat_cntr; | |
5508 | return _nl_msg_cat_cntr | |
5509 | ; | |
5510 | return 0; | |
5511 | } | |
5512 | _ACEOF | |
5513 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5515 | (eval $ac_link) 2>conftest.er1 | |
5516 | ac_status=$? | |
5517 | grep -v '^ *+' conftest.er1 >conftest.err | |
5518 | rm -f conftest.er1 | |
5519 | cat conftest.err >&5 | |
5520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5521 | (exit $ac_status); } && | |
5522 | { ac_try='test -z "$ac_c_werror_flag" | |
5523 | || test ! -s conftest.err' | |
5524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5525 | (eval $ac_try) 2>&5 | |
5526 | ac_status=$? | |
5527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5528 | (exit $ac_status); }; } && | |
5529 | { ac_try='test -s conftest$ac_exeext' | |
5530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5531 | (eval $ac_try) 2>&5 | |
5532 | ac_status=$? | |
5533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5534 | (exit $ac_status); }; }; then | |
5535 | CATOBJEXT=.gmo | |
5536 | DATADIRNAME=share | |
5537 | else | |
5538 | echo "$as_me: failed program was:" >&5 | |
5539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5540 | ||
5541 | CATOBJEXT=.mo | |
5542 | DATADIRNAME=lib | |
5543 | fi | |
5544 | rm -f conftest.err conftest.$ac_objext \ | |
5545 | conftest$ac_exeext conftest.$ac_ext | |
5546 | INSTOBJEXT=.mo | |
5547 | fi | |
5548 | fi | |
5549 | ||
5550 | fi | |
5551 | ||
5552 | ||
5553 | ||
5554 | ||
5555 | if test "$CATOBJEXT" = "NONE"; then | |
5556 | nls_cv_use_gnu_gettext=yes | |
5557 | fi | |
5558 | fi | |
5559 | ||
5560 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
5561 | INTLOBJS="\$(GETTOBJS)" | |
5562 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5563 | set dummy msgfmt; ac_word=$2 | |
5564 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5565 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5566 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5567 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5568 | else | |
5569 | case "$MSGFMT" in | |
5570 | /*) | |
5571 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5572 | ;; | |
5573 | *) | |
5574 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5575 | for ac_dir in $PATH; do | |
5576 | test -z "$ac_dir" && ac_dir=. | |
5577 | if test -f $ac_dir/$ac_word; then | |
5578 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5579 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5580 | break | |
5581 | fi | |
5582 | fi | |
5583 | done | |
5584 | IFS="$ac_save_ifs" | |
5585 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
5586 | ;; | |
5587 | esac | |
5588 | fi | |
5589 | MSGFMT="$ac_cv_path_MSGFMT" | |
5590 | if test -n "$MSGFMT"; then | |
5591 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
5592 | echo "${ECHO_T}$MSGFMT" >&6 | |
5593 | else | |
5594 | echo "$as_me:$LINENO: result: no" >&5 | |
5595 | echo "${ECHO_T}no" >&6 | |
5596 | fi | |
5597 | ||
5598 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
c906108c | 5599 | set dummy gmsgfmt; ac_word=$2 |
bec39cab AC |
5600 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5602 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5604 | else | |
5605 | case $GMSGFMT in | |
5606 | [\\/]* | ?:[\\/]*) | |
5607 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
5608 | ;; | |
5609 | *) | |
5610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5611 | for as_dir in $PATH | |
5612 | do | |
5613 | IFS=$as_save_IFS | |
5614 | test -z "$as_dir" && as_dir=. | |
5615 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5616 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5617 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5618 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5619 | break 2 | |
5620 | fi | |
5621 | done | |
5622 | done | |
5623 | ||
5624 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
5625 | ;; | |
5626 | esac | |
5627 | fi | |
5628 | GMSGFMT=$ac_cv_path_GMSGFMT | |
5629 | ||
5630 | if test -n "$GMSGFMT"; then | |
5631 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
5632 | echo "${ECHO_T}$GMSGFMT" >&6 | |
5633 | else | |
5634 | echo "$as_me:$LINENO: result: no" >&5 | |
5635 | echo "${ECHO_T}no" >&6 | |
5636 | fi | |
5637 | ||
5638 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5639 | set dummy xgettext; ac_word=$2 | |
5640 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5641 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5642 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5644 | else | |
5645 | case "$XGETTEXT" in | |
5646 | /*) | |
5647 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5648 | ;; | |
5649 | *) | |
5650 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5651 | for ac_dir in $PATH; do | |
5652 | test -z "$ac_dir" && ac_dir=. | |
5653 | if test -f $ac_dir/$ac_word; then | |
5654 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5655 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5656 | break | |
5657 | fi | |
5658 | fi | |
5659 | done | |
5660 | IFS="$ac_save_ifs" | |
5661 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5662 | ;; | |
5663 | esac | |
5664 | fi | |
5665 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5666 | if test -n "$XGETTEXT"; then | |
5667 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
5668 | echo "${ECHO_T}$XGETTEXT" >&6 | |
5669 | else | |
5670 | echo "$as_me:$LINENO: result: no" >&5 | |
5671 | echo "${ECHO_T}no" >&6 | |
5672 | fi | |
5673 | ||
5674 | ||
5675 | USE_INCLUDED_LIBINTL=yes | |
5676 | CATOBJEXT=.gmo | |
5677 | INSTOBJEXT=.mo | |
5678 | DATADIRNAME=share | |
5679 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
5680 | INTLLIBS=$INTLDEPS | |
5681 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
5682 | nls_cv_header_intl=libintl.h | |
5683 | nls_cv_header_libgt=libgettext.h | |
5684 | fi | |
5685 | ||
5686 | if test "$XGETTEXT" != ":"; then | |
5687 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
5688 | : ; | |
5689 | else | |
5690 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 | |
5691 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
5692 | XGETTEXT=":" | |
5693 | fi | |
5694 | fi | |
5695 | ||
5696 | # We need to process the po/ directory. | |
5697 | POSUB=po | |
5698 | else | |
5699 | DATADIRNAME=share | |
5700 | nls_cv_header_intl=libintl.h | |
5701 | nls_cv_header_libgt=libgettext.h | |
5702 | fi | |
5703 | ||
5704 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
5705 | # because some of the sources are only built for this goal. | |
5706 | if test "$PACKAGE" = gettext; then | |
5707 | USE_NLS=yes | |
5708 | USE_INCLUDED_LIBINTL=yes | |
5709 | fi | |
5710 | ||
5711 | for lang in $ALL_LINGUAS; do | |
5712 | GMOFILES="$GMOFILES $lang.gmo" | |
5713 | POFILES="$POFILES $lang.po" | |
5714 | done | |
5715 | ||
5716 | ||
5717 | ||
5718 | ||
5719 | ||
5720 | ||
5721 | ||
5722 | ||
5723 | ||
5724 | ||
5725 | ||
5726 | ||
5727 | ||
5728 | ||
5729 | if test "x$CATOBJEXT" != "x"; then | |
5730 | if test "x$ALL_LINGUAS" = "x"; then | |
5731 | LINGUAS= | |
5732 | else | |
5733 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
5734 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
5735 | NEW_LINGUAS= | |
5736 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
5737 | case "$ALL_LINGUAS" in | |
5738 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
5739 | esac | |
5740 | done | |
5741 | LINGUAS=$NEW_LINGUAS | |
5742 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
5743 | echo "${ECHO_T}$LINGUAS" >&6 | |
5744 | fi | |
5745 | ||
5746 | if test -n "$LINGUAS"; then | |
5747 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
5748 | fi | |
5749 | fi | |
5750 | ||
5751 | if test $ac_cv_header_locale_h = yes; then | |
5752 | INCLUDE_LOCALE_H="#include <locale.h>" | |
5753 | else | |
5754 | INCLUDE_LOCALE_H="\ | |
5755 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
5756 | fi | |
5757 | ||
5758 | ||
5759 | if test -f $srcdir/po2tbl.sed.in; then | |
5760 | if test "$CATOBJEXT" = ".cat"; then | |
5761 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5762 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5763 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5764 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5766 | fi | |
5767 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5768 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5769 | else | |
5770 | # Is the header compilable? | |
5771 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
5772 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
5773 | cat >conftest.$ac_ext <<_ACEOF | |
5774 | /* confdefs.h. */ | |
5775 | _ACEOF | |
5776 | cat confdefs.h >>conftest.$ac_ext | |
5777 | cat >>conftest.$ac_ext <<_ACEOF | |
5778 | /* end confdefs.h. */ | |
5779 | $ac_includes_default | |
5780 | #include <linux/version.h> | |
5781 | _ACEOF | |
5782 | rm -f conftest.$ac_objext | |
5783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5784 | (eval $ac_compile) 2>conftest.er1 | |
5785 | ac_status=$? | |
5786 | grep -v '^ *+' conftest.er1 >conftest.err | |
5787 | rm -f conftest.er1 | |
5788 | cat conftest.err >&5 | |
5789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5790 | (exit $ac_status); } && | |
5791 | { ac_try='test -z "$ac_c_werror_flag" | |
5792 | || test ! -s conftest.err' | |
5793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5794 | (eval $ac_try) 2>&5 | |
5795 | ac_status=$? | |
5796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5797 | (exit $ac_status); }; } && | |
5798 | { ac_try='test -s conftest.$ac_objext' | |
5799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5800 | (eval $ac_try) 2>&5 | |
5801 | ac_status=$? | |
5802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5803 | (exit $ac_status); }; }; then | |
5804 | ac_header_compiler=yes | |
5805 | else | |
5806 | echo "$as_me: failed program was:" >&5 | |
5807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5808 | ||
5809 | ac_header_compiler=no | |
5810 | fi | |
5811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5812 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5813 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5814 | ||
5815 | # Is the header present? | |
5816 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
5817 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
5818 | cat >conftest.$ac_ext <<_ACEOF | |
5819 | /* confdefs.h. */ | |
5820 | _ACEOF | |
5821 | cat confdefs.h >>conftest.$ac_ext | |
5822 | cat >>conftest.$ac_ext <<_ACEOF | |
5823 | /* end confdefs.h. */ | |
5824 | #include <linux/version.h> | |
5825 | _ACEOF | |
5826 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5827 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5828 | ac_status=$? | |
5829 | grep -v '^ *+' conftest.er1 >conftest.err | |
5830 | rm -f conftest.er1 | |
5831 | cat conftest.err >&5 | |
5832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5833 | (exit $ac_status); } >/dev/null; then | |
5834 | if test -s conftest.err; then | |
5835 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5836 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5837 | else | |
5838 | ac_cpp_err= | |
5839 | fi | |
5840 | else | |
5841 | ac_cpp_err=yes | |
5842 | fi | |
5843 | if test -z "$ac_cpp_err"; then | |
5844 | ac_header_preproc=yes | |
5845 | else | |
5846 | echo "$as_me: failed program was:" >&5 | |
5847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5848 | ||
5849 | ac_header_preproc=no | |
5850 | fi | |
5851 | rm -f conftest.err conftest.$ac_ext | |
5852 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5853 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5854 | ||
5855 | # So? What about this header? | |
5856 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5857 | yes:no: ) | |
5858 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5859 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5860 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
5861 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
5862 | ac_header_preproc=yes | |
5863 | ;; | |
5864 | no:yes:* ) | |
5865 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
5866 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
5867 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
5868 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
5869 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
5870 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
5871 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5872 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5873 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
5874 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
5875 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
5876 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
5877 | ( | |
5878 | cat <<\_ASBOX | |
5879 | ## ------------------------------------------ ## | |
5880 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5881 | ## ------------------------------------------ ## | |
5882 | _ASBOX | |
5883 | ) | | |
5884 | sed "s/^/$as_me: WARNING: /" >&2 | |
5885 | ;; | |
5886 | esac | |
5887 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5888 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5889 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5890 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5891 | else | |
5892 | ac_cv_header_linux_version_h=$ac_header_preproc | |
5893 | fi | |
5894 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5895 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5896 | ||
5897 | fi | |
5898 | if test $ac_cv_header_linux_version_h = yes; then | |
5899 | msgformat=linux | |
5900 | else | |
5901 | msgformat=xopen | |
5902 | fi | |
5903 | ||
5904 | ||
5905 | ||
5906 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed | |
5907 | fi | |
5908 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
5909 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
5910 | fi | |
5911 | ||
5912 | if test "$PACKAGE" = "gettext"; then | |
5913 | GT_NO="#NO#" | |
5914 | GT_YES= | |
5915 | else | |
5916 | GT_NO= | |
5917 | GT_YES="#YES#" | |
5918 | fi | |
5919 | ||
5920 | ||
5921 | ||
5922 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
5923 | ||
5924 | ||
5925 | l= | |
5926 | ||
5927 | ||
5928 | if test -f $srcdir/po/POTFILES.in; then | |
5929 | test -d po || mkdir po | |
5930 | if test "x$srcdir" != "x."; then | |
5931 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
5932 | posrcprefix="$srcdir/" | |
5933 | else | |
5934 | posrcprefix="../$srcdir/" | |
5935 | fi | |
5936 | else | |
5937 | posrcprefix="../" | |
5938 | fi | |
5939 | rm -f po/POTFILES | |
5940 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
5941 | < $srcdir/po/POTFILES.in > po/POTFILES | |
5942 | fi | |
5943 | ||
5944 | ||
5945 | localedir='${datadir}/locale' | |
5946 | ||
5947 | ||
5948 | if test "x$POSUB" != x; then | |
5949 | ||
5950 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 | |
5951 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
5952 | # Look for .po and .gmo files in the source directory. | |
5953 | CATALOGS= | |
5954 | XLINGUAS= | |
5955 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
5956 | # If there aren't any .gmo files the shell will give us the | |
5957 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
5958 | # weeded out. | |
5959 | case "$cat" in *\**) | |
5960 | continue;; | |
5961 | esac | |
5962 | # The quadruple backslash is collapsed to a double backslash | |
5963 | # by the backticks, then collapsed again by the double quotes, | |
5964 | # leaving us with one backslash in the sed expression (right | |
5965 | # before the dot that mustn't act as a wildcard). | |
5966 | cat=`echo $cat | sed -e "s!$srcdir/!!" -e "s!\\\\.po!.gmo!"` | |
5967 | lang=`echo $cat | sed -e 's!po/!!' -e "s!\\\\.gmo!!"` | |
5968 | # The user is allowed to set LINGUAS to a list of languages to | |
5969 | # install catalogs for. If it's empty that means "all of them." | |
5970 | if test "x$LINGUAS" = x; then | |
5971 | CATALOGS="$CATALOGS $cat" | |
5972 | XLINGUAS="$XLINGUAS $lang" | |
5973 | else | |
5974 | case "$LINGUAS" in *$lang*) | |
5975 | CATALOGS="$CATALOGS $cat" | |
5976 | XLINGUAS="$XLINGUAS $lang" | |
5977 | ;; | |
5978 | esac | |
5979 | fi | |
5980 | done | |
5981 | LINGUAS="$XLINGUAS" | |
5982 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
5983 | echo "${ECHO_T}$LINGUAS" >&6 | |
5984 | ||
5985 | CONFIG_ALL="$CONFIG_ALL all-po" | |
5986 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" | |
5987 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" | |
5988 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" | |
5989 | fi | |
5990 | ||
5991 | PACKAGE=gdb | |
5992 | ||
5993 | cat >>confdefs.h <<_ACEOF | |
5994 | #define PACKAGE "$PACKAGE" | |
5995 | _ACEOF | |
5996 | ||
5997 | ||
5998 | ||
5999 | debugdir=${libdir}/debug | |
6000 | ||
6001 | ||
6002 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. | |
6003 | if test "${with_separate_debug_dir+set}" = set; then | |
6004 | withval="$with_separate_debug_dir" | |
6005 | debugdir="${withval}" | |
6006 | fi; | |
6007 | ||
6008 | ||
6009 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
6010 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6011 | ac_define_dir=`eval echo $debugdir` | |
6012 | ac_define_dir=`eval echo $ac_define_dir` | |
6013 | ||
6014 | cat >>confdefs.h <<_ACEOF | |
6015 | #define DEBUGDIR "$ac_define_dir" | |
6016 | _ACEOF | |
6017 | ||
6018 | ||
6019 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), | |
6020 | ||
6021 | ||
6022 | ||
6023 | subdirs="$subdirs doc testsuite" | |
6024 | ||
6025 | ||
6026 | . $srcdir/configure.host | |
6027 | ||
6028 | . $srcdir/configure.tgt | |
6029 | ||
6030 | # Fetch the default architecture and default target vector from BFD. | |
6031 | targ=$target; . $srcdir/../bfd/config.bfd | |
6032 | ||
6033 | # We only want the first architecture, so strip off the others if | |
6034 | # there is more than one. | |
6035 | targ_archs=`echo $targ_archs | sed 's/ .*//'` | |
6036 | ||
6037 | if test "x$targ_archs" != x; then | |
6038 | ||
6039 | cat >>confdefs.h <<_ACEOF | |
6040 | #define DEFAULT_BFD_ARCH $targ_archs | |
6041 | _ACEOF | |
6042 | ||
6043 | fi | |
6044 | if test "x$targ_defvec" != x; then | |
6045 | ||
6046 | cat >>confdefs.h <<_ACEOF | |
6047 | #define DEFAULT_BFD_VEC $targ_defvec | |
6048 | _ACEOF | |
6049 | ||
6050 | fi | |
6051 | ||
6052 | test "$program_prefix" != NONE && | |
6053 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
6054 | # Use a double $ so make ignores it. | |
6055 | test "$program_suffix" != NONE && | |
6056 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
6057 | # Double any \ or $. echo might interpret backslashes. | |
6058 | # By default was `s,x,x', remove it if useless. | |
6059 | cat <<\_ACEOF >conftest.sed | |
6060 | s/[\\$]/&&/g;s/;s,x,x,$// | |
6061 | _ACEOF | |
6062 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
6063 | rm conftest.sed | |
6064 | ||
6065 | ||
6066 | # The CLI cannot be disabled yet, but may be in the future. | |
6067 | ||
6068 | # Enable CLI. | |
6069 | # Check whether --enable-gdbcli or --disable-gdbcli was given. | |
6070 | if test "${enable_gdbcli+set}" = set; then | |
6071 | enableval="$enable_gdbcli" | |
6072 | case $enableval in | |
6073 | yes) | |
6074 | ;; | |
6075 | no) | |
6076 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 | |
6077 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} | |
6078 | { (exit 1); exit 1; }; } ;; | |
6079 | *) | |
6080 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 | |
6081 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} | |
6082 | { (exit 1); exit 1; }; } ;; | |
6083 | esac | |
6084 | else | |
6085 | enable_gdbcli=yes | |
6086 | fi; | |
6087 | if test x"$enable_gdbcli" = xyes; then | |
6088 | if test -d $srcdir/cli; then | |
6089 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" | |
6090 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" | |
6091 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" | |
6092 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" | |
6093 | fi | |
6094 | fi | |
6095 | ||
6096 | # Enable MI. | |
6097 | # Check whether --enable-gdbmi or --disable-gdbmi was given. | |
6098 | if test "${enable_gdbmi+set}" = set; then | |
6099 | enableval="$enable_gdbmi" | |
6100 | case $enableval in | |
6101 | yes | no) | |
6102 | ;; | |
6103 | *) | |
6104 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 | |
6105 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} | |
6106 | { (exit 1); exit 1; }; } ;; | |
6107 | esac | |
6108 | else | |
6109 | enable_gdbmi=yes | |
6110 | fi; | |
6111 | if test x"$enable_gdbmi" = xyes; then | |
6112 | if test -d $srcdir/mi; then | |
6113 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" | |
6114 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" | |
6115 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" | |
6116 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" | |
6117 | fi | |
6118 | fi | |
6119 | ||
6120 | # Enable TUI. | |
6121 | # Check whether --enable-tui or --disable-tui was given. | |
6122 | if test "${enable_tui+set}" = set; then | |
6123 | enableval="$enable_tui" | |
6124 | case $enableval in | |
6125 | yes | no) | |
6126 | ;; | |
6127 | *) | |
6128 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 | |
6129 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} | |
6130 | { (exit 1); exit 1; }; } ;; | |
6131 | esac | |
6132 | else | |
6133 | enable_tui=yes | |
6134 | fi; | |
6135 | ||
6136 | # Enable gdbtk. | |
6137 | # Check whether --enable-gdbtk or --disable-gdbtk was given. | |
6138 | if test "${enable_gdbtk+set}" = set; then | |
6139 | enableval="$enable_gdbtk" | |
6140 | case $enableval in | |
6141 | yes | no) | |
6142 | ;; | |
6143 | *) | |
6144 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 | |
6145 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} | |
6146 | { (exit 1); exit 1; }; } ;; | |
6147 | esac | |
6148 | else | |
6149 | if test -d $srcdir/gdbtk; then | |
6150 | enable_gdbtk=yes | |
6151 | else | |
6152 | enable_gdbtk=no | |
6153 | fi | |
6154 | fi; | |
6155 | # We unconditionally disable gdbtk tests on selected platforms. | |
6156 | case $host_os in | |
6157 | go32* | windows*) | |
6158 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 | |
6159 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} | |
6160 | enable_gdbtk=no ;; | |
6161 | esac | |
6162 | ||
6163 | # Libunwind support. | |
6164 | ||
6165 | # Check whether --with-libunwind or --without-libunwind was given. | |
6166 | if test "${with_libunwind+set}" = set; then | |
6167 | withval="$with_libunwind" | |
6168 | case "${withval}" in | |
6169 | yes) enable_libunwind=yes ;; | |
6170 | no) enable_libunwind=no ;; | |
6171 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 | |
6172 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} | |
6173 | { (exit 1); exit 1; }; } ;; | |
6174 | esac | |
6175 | else | |
6176 | ||
6177 | ||
6178 | for ac_header in libunwind.h | |
6179 | do | |
6180 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6181 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6182 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6183 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6184 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6185 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6186 | fi | |
6187 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6188 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6189 | else | |
6190 | # Is the header compilable? | |
6191 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6192 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6193 | cat >conftest.$ac_ext <<_ACEOF | |
6194 | /* confdefs.h. */ | |
6195 | _ACEOF | |
6196 | cat confdefs.h >>conftest.$ac_ext | |
6197 | cat >>conftest.$ac_ext <<_ACEOF | |
6198 | /* end confdefs.h. */ | |
6199 | $ac_includes_default | |
6200 | #include <$ac_header> | |
6201 | _ACEOF | |
6202 | rm -f conftest.$ac_objext | |
6203 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6204 | (eval $ac_compile) 2>conftest.er1 | |
6205 | ac_status=$? | |
6206 | grep -v '^ *+' conftest.er1 >conftest.err | |
6207 | rm -f conftest.er1 | |
6208 | cat conftest.err >&5 | |
6209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6210 | (exit $ac_status); } && | |
6211 | { ac_try='test -z "$ac_c_werror_flag" | |
6212 | || test ! -s conftest.err' | |
6213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6214 | (eval $ac_try) 2>&5 | |
6215 | ac_status=$? | |
6216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6217 | (exit $ac_status); }; } && | |
6218 | { ac_try='test -s conftest.$ac_objext' | |
6219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6220 | (eval $ac_try) 2>&5 | |
6221 | ac_status=$? | |
6222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6223 | (exit $ac_status); }; }; then | |
6224 | ac_header_compiler=yes | |
6225 | else | |
6226 | echo "$as_me: failed program was:" >&5 | |
6227 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6228 | ||
6229 | ac_header_compiler=no | |
6230 | fi | |
6231 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6232 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6233 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6234 | ||
6235 | # Is the header present? | |
6236 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6237 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6238 | cat >conftest.$ac_ext <<_ACEOF | |
6239 | /* confdefs.h. */ | |
6240 | _ACEOF | |
6241 | cat confdefs.h >>conftest.$ac_ext | |
6242 | cat >>conftest.$ac_ext <<_ACEOF | |
6243 | /* end confdefs.h. */ | |
6244 | #include <$ac_header> | |
6245 | _ACEOF | |
6246 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6247 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6248 | ac_status=$? | |
6249 | grep -v '^ *+' conftest.er1 >conftest.err | |
6250 | rm -f conftest.er1 | |
6251 | cat conftest.err >&5 | |
6252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6253 | (exit $ac_status); } >/dev/null; then | |
6254 | if test -s conftest.err; then | |
6255 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6256 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6257 | else | |
6258 | ac_cpp_err= | |
6259 | fi | |
6260 | else | |
6261 | ac_cpp_err=yes | |
6262 | fi | |
6263 | if test -z "$ac_cpp_err"; then | |
6264 | ac_header_preproc=yes | |
6265 | else | |
6266 | echo "$as_me: failed program was:" >&5 | |
6267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6268 | ||
6269 | ac_header_preproc=no | |
6270 | fi | |
6271 | rm -f conftest.err conftest.$ac_ext | |
6272 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6273 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6274 | ||
6275 | # So? What about this header? | |
6276 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6277 | yes:no: ) | |
6278 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6279 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6280 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6281 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6282 | ac_header_preproc=yes | |
6283 | ;; | |
6284 | no:yes:* ) | |
6285 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6286 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6287 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6288 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6289 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6290 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6291 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6292 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6293 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6294 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6295 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6296 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6297 | ( | |
6298 | cat <<\_ASBOX | |
6299 | ## ------------------------------------------ ## | |
6300 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6301 | ## ------------------------------------------ ## | |
6302 | _ASBOX | |
6303 | ) | | |
6304 | sed "s/^/$as_me: WARNING: /" >&2 | |
6305 | ;; | |
6306 | esac | |
6307 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6308 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6309 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6311 | else | |
6312 | eval "$as_ac_Header=\$ac_header_preproc" | |
6313 | fi | |
6314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6315 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6316 | ||
6317 | fi | |
6318 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6319 | cat >>confdefs.h <<_ACEOF | |
6320 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6321 | _ACEOF | |
6322 | ||
6323 | fi | |
6324 | ||
6325 | done | |
6326 | ||
6327 | ||
6328 | for ac_header in libunwind-ia64.h | |
6329 | do | |
6330 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6331 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6332 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6333 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6334 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6336 | fi | |
6337 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6338 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6339 | else | |
6340 | # Is the header compilable? | |
6341 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6342 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6343 | cat >conftest.$ac_ext <<_ACEOF | |
6344 | /* confdefs.h. */ | |
6345 | _ACEOF | |
6346 | cat confdefs.h >>conftest.$ac_ext | |
6347 | cat >>conftest.$ac_ext <<_ACEOF | |
6348 | /* end confdefs.h. */ | |
6349 | $ac_includes_default | |
6350 | #include <$ac_header> | |
6351 | _ACEOF | |
6352 | rm -f conftest.$ac_objext | |
6353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6354 | (eval $ac_compile) 2>conftest.er1 | |
6355 | ac_status=$? | |
6356 | grep -v '^ *+' conftest.er1 >conftest.err | |
6357 | rm -f conftest.er1 | |
6358 | cat conftest.err >&5 | |
6359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6360 | (exit $ac_status); } && | |
6361 | { ac_try='test -z "$ac_c_werror_flag" | |
6362 | || test ! -s conftest.err' | |
6363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6364 | (eval $ac_try) 2>&5 | |
6365 | ac_status=$? | |
6366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6367 | (exit $ac_status); }; } && | |
6368 | { ac_try='test -s conftest.$ac_objext' | |
6369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6370 | (eval $ac_try) 2>&5 | |
6371 | ac_status=$? | |
6372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6373 | (exit $ac_status); }; }; then | |
6374 | ac_header_compiler=yes | |
6375 | else | |
6376 | echo "$as_me: failed program was:" >&5 | |
6377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6378 | ||
6379 | ac_header_compiler=no | |
6380 | fi | |
6381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6382 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6383 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6384 | ||
6385 | # Is the header present? | |
6386 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6387 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6388 | cat >conftest.$ac_ext <<_ACEOF | |
6389 | /* confdefs.h. */ | |
6390 | _ACEOF | |
6391 | cat confdefs.h >>conftest.$ac_ext | |
6392 | cat >>conftest.$ac_ext <<_ACEOF | |
6393 | /* end confdefs.h. */ | |
6394 | #include <$ac_header> | |
6395 | _ACEOF | |
6396 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6397 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6398 | ac_status=$? | |
6399 | grep -v '^ *+' conftest.er1 >conftest.err | |
6400 | rm -f conftest.er1 | |
6401 | cat conftest.err >&5 | |
6402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6403 | (exit $ac_status); } >/dev/null; then | |
6404 | if test -s conftest.err; then | |
6405 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6406 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6407 | else | |
6408 | ac_cpp_err= | |
6409 | fi | |
6410 | else | |
6411 | ac_cpp_err=yes | |
6412 | fi | |
6413 | if test -z "$ac_cpp_err"; then | |
6414 | ac_header_preproc=yes | |
6415 | else | |
6416 | echo "$as_me: failed program was:" >&5 | |
6417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6418 | ||
6419 | ac_header_preproc=no | |
6420 | fi | |
6421 | rm -f conftest.err conftest.$ac_ext | |
6422 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6423 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6424 | ||
6425 | # So? What about this header? | |
6426 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6427 | yes:no: ) | |
6428 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6429 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6430 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6431 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6432 | ac_header_preproc=yes | |
6433 | ;; | |
6434 | no:yes:* ) | |
6435 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6436 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6437 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6438 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6439 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6440 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6441 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6442 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6443 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6444 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6445 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6446 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6447 | ( | |
6448 | cat <<\_ASBOX | |
6449 | ## ------------------------------------------ ## | |
6450 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6451 | ## ------------------------------------------ ## | |
6452 | _ASBOX | |
6453 | ) | | |
6454 | sed "s/^/$as_me: WARNING: /" >&2 | |
6455 | ;; | |
6456 | esac | |
6457 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6458 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6459 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6461 | else | |
6462 | eval "$as_ac_Header=\$ac_header_preproc" | |
6463 | fi | |
6464 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6465 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6466 | ||
6467 | fi | |
6468 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6469 | cat >>confdefs.h <<_ACEOF | |
6470 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6471 | _ACEOF | |
6472 | ||
6473 | fi | |
6474 | ||
6475 | done | |
6476 | ||
6477 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then | |
6478 | enable_libunwind=yes; | |
6479 | fi | |
6480 | ||
6481 | fi; | |
6482 | ||
6483 | if test x"$enable_libunwind" = xyes; then | |
6484 | ||
6485 | for ac_header in libunwind.h | |
6486 | do | |
6487 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6488 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6489 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6490 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6491 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6493 | fi | |
6494 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6495 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6496 | else | |
6497 | # Is the header compilable? | |
6498 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6499 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6500 | cat >conftest.$ac_ext <<_ACEOF | |
6501 | /* confdefs.h. */ | |
6502 | _ACEOF | |
6503 | cat confdefs.h >>conftest.$ac_ext | |
6504 | cat >>conftest.$ac_ext <<_ACEOF | |
6505 | /* end confdefs.h. */ | |
6506 | $ac_includes_default | |
6507 | #include <$ac_header> | |
6508 | _ACEOF | |
6509 | rm -f conftest.$ac_objext | |
6510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6511 | (eval $ac_compile) 2>conftest.er1 | |
6512 | ac_status=$? | |
6513 | grep -v '^ *+' conftest.er1 >conftest.err | |
6514 | rm -f conftest.er1 | |
6515 | cat conftest.err >&5 | |
6516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6517 | (exit $ac_status); } && | |
6518 | { ac_try='test -z "$ac_c_werror_flag" | |
6519 | || test ! -s conftest.err' | |
6520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6521 | (eval $ac_try) 2>&5 | |
6522 | ac_status=$? | |
6523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6524 | (exit $ac_status); }; } && | |
6525 | { ac_try='test -s conftest.$ac_objext' | |
6526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6527 | (eval $ac_try) 2>&5 | |
6528 | ac_status=$? | |
6529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6530 | (exit $ac_status); }; }; then | |
6531 | ac_header_compiler=yes | |
6532 | else | |
6533 | echo "$as_me: failed program was:" >&5 | |
6534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6535 | ||
6536 | ac_header_compiler=no | |
6537 | fi | |
6538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6539 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6540 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6541 | ||
6542 | # Is the header present? | |
6543 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6544 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6545 | cat >conftest.$ac_ext <<_ACEOF | |
6546 | /* confdefs.h. */ | |
6547 | _ACEOF | |
6548 | cat confdefs.h >>conftest.$ac_ext | |
6549 | cat >>conftest.$ac_ext <<_ACEOF | |
6550 | /* end confdefs.h. */ | |
6551 | #include <$ac_header> | |
6552 | _ACEOF | |
6553 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6554 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6555 | ac_status=$? | |
6556 | grep -v '^ *+' conftest.er1 >conftest.err | |
6557 | rm -f conftest.er1 | |
6558 | cat conftest.err >&5 | |
6559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6560 | (exit $ac_status); } >/dev/null; then | |
6561 | if test -s conftest.err; then | |
6562 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6563 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6564 | else | |
6565 | ac_cpp_err= | |
6566 | fi | |
6567 | else | |
6568 | ac_cpp_err=yes | |
6569 | fi | |
6570 | if test -z "$ac_cpp_err"; then | |
6571 | ac_header_preproc=yes | |
6572 | else | |
6573 | echo "$as_me: failed program was:" >&5 | |
6574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6575 | ||
6576 | ac_header_preproc=no | |
6577 | fi | |
6578 | rm -f conftest.err conftest.$ac_ext | |
6579 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6580 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6581 | ||
6582 | # So? What about this header? | |
6583 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6584 | yes:no: ) | |
6585 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6586 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6587 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6588 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6589 | ac_header_preproc=yes | |
6590 | ;; | |
6591 | no:yes:* ) | |
6592 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6593 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6594 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6595 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6596 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6597 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6598 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6599 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6600 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6601 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6602 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6603 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6604 | ( | |
6605 | cat <<\_ASBOX | |
6606 | ## ------------------------------------------ ## | |
6607 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6608 | ## ------------------------------------------ ## | |
6609 | _ASBOX | |
6610 | ) | | |
6611 | sed "s/^/$as_me: WARNING: /" >&2 | |
6612 | ;; | |
6613 | esac | |
6614 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6615 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6618 | else | |
6619 | eval "$as_ac_Header=\$ac_header_preproc" | |
6620 | fi | |
6621 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6622 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6623 | ||
6624 | fi | |
6625 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6626 | cat >>confdefs.h <<_ACEOF | |
6627 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6628 | _ACEOF | |
6629 | ||
6630 | fi | |
6631 | ||
6632 | done | |
6633 | ||
6634 | ||
6635 | for ac_header in libunwind-ia64.h | |
6636 | do | |
6637 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6638 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6639 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6640 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6641 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6643 | fi | |
6644 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6645 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6646 | else | |
6647 | # Is the header compilable? | |
6648 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6649 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6650 | cat >conftest.$ac_ext <<_ACEOF | |
6651 | /* confdefs.h. */ | |
6652 | _ACEOF | |
6653 | cat confdefs.h >>conftest.$ac_ext | |
6654 | cat >>conftest.$ac_ext <<_ACEOF | |
6655 | /* end confdefs.h. */ | |
6656 | $ac_includes_default | |
6657 | #include <$ac_header> | |
6658 | _ACEOF | |
6659 | rm -f conftest.$ac_objext | |
6660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6661 | (eval $ac_compile) 2>conftest.er1 | |
6662 | ac_status=$? | |
6663 | grep -v '^ *+' conftest.er1 >conftest.err | |
6664 | rm -f conftest.er1 | |
6665 | cat conftest.err >&5 | |
6666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6667 | (exit $ac_status); } && | |
6668 | { ac_try='test -z "$ac_c_werror_flag" | |
6669 | || test ! -s conftest.err' | |
6670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6671 | (eval $ac_try) 2>&5 | |
6672 | ac_status=$? | |
6673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6674 | (exit $ac_status); }; } && | |
6675 | { ac_try='test -s conftest.$ac_objext' | |
6676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6677 | (eval $ac_try) 2>&5 | |
6678 | ac_status=$? | |
6679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6680 | (exit $ac_status); }; }; then | |
6681 | ac_header_compiler=yes | |
6682 | else | |
6683 | echo "$as_me: failed program was:" >&5 | |
6684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6685 | ||
6686 | ac_header_compiler=no | |
6687 | fi | |
6688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6689 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6690 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6691 | ||
6692 | # Is the header present? | |
6693 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6694 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6695 | cat >conftest.$ac_ext <<_ACEOF | |
6696 | /* confdefs.h. */ | |
6697 | _ACEOF | |
6698 | cat confdefs.h >>conftest.$ac_ext | |
6699 | cat >>conftest.$ac_ext <<_ACEOF | |
6700 | /* end confdefs.h. */ | |
6701 | #include <$ac_header> | |
6702 | _ACEOF | |
6703 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6704 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6705 | ac_status=$? | |
6706 | grep -v '^ *+' conftest.er1 >conftest.err | |
6707 | rm -f conftest.er1 | |
6708 | cat conftest.err >&5 | |
6709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6710 | (exit $ac_status); } >/dev/null; then | |
6711 | if test -s conftest.err; then | |
6712 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6713 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6714 | else | |
6715 | ac_cpp_err= | |
6716 | fi | |
6717 | else | |
6718 | ac_cpp_err=yes | |
6719 | fi | |
6720 | if test -z "$ac_cpp_err"; then | |
6721 | ac_header_preproc=yes | |
6722 | else | |
6723 | echo "$as_me: failed program was:" >&5 | |
6724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6725 | ||
6726 | ac_header_preproc=no | |
6727 | fi | |
6728 | rm -f conftest.err conftest.$ac_ext | |
6729 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6730 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6731 | ||
6732 | # So? What about this header? | |
6733 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6734 | yes:no: ) | |
6735 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6736 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6737 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6738 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6739 | ac_header_preproc=yes | |
6740 | ;; | |
6741 | no:yes:* ) | |
6742 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6743 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6744 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6745 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6746 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6747 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6748 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6749 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6750 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6751 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6752 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6753 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6754 | ( | |
6755 | cat <<\_ASBOX | |
6756 | ## ------------------------------------------ ## | |
6757 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6758 | ## ------------------------------------------ ## | |
6759 | _ASBOX | |
6760 | ) | | |
6761 | sed "s/^/$as_me: WARNING: /" >&2 | |
6762 | ;; | |
6763 | esac | |
6764 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6765 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6766 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6768 | else | |
6769 | eval "$as_ac_Header=\$ac_header_preproc" | |
6770 | fi | |
6771 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6772 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6773 | ||
6774 | fi | |
6775 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6776 | cat >>confdefs.h <<_ACEOF | |
6777 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6778 | _ACEOF | |
6779 | ||
6780 | fi | |
6781 | ||
6782 | done | |
6783 | ||
6784 | cat >>confdefs.h <<\_ACEOF | |
6785 | #define HAVE_LIBUNWIND 1 | |
6786 | _ACEOF | |
6787 | ||
6788 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" | |
6789 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" | |
6790 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" | |
6791 | fi | |
6792 | ||
6793 | # Profiling support. | |
6794 | # Check whether --enable-profiling or --disable-profiling was given. | |
6795 | if test "${enable_profiling+set}" = set; then | |
6796 | enableval="$enable_profiling" | |
6797 | case $enableval in | |
6798 | yes | no) | |
6799 | ;; | |
6800 | *) | |
6801 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 | |
6802 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} | |
6803 | { (exit 1); exit 1; }; } ;; | |
6804 | esac | |
6805 | else | |
6806 | enable_profiling=no | |
6807 | fi; | |
6808 | ||
6809 | ||
6810 | ||
6811 | for ac_func in monstartup _mcleanup | |
6812 | do | |
6813 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6814 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6815 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6816 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6818 | else | |
6819 | cat >conftest.$ac_ext <<_ACEOF | |
6820 | /* confdefs.h. */ | |
6821 | _ACEOF | |
6822 | cat confdefs.h >>conftest.$ac_ext | |
6823 | cat >>conftest.$ac_ext <<_ACEOF | |
6824 | /* end confdefs.h. */ | |
6825 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6826 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6827 | #define $ac_func innocuous_$ac_func | |
6828 | ||
6829 | /* System header to define __stub macros and hopefully few prototypes, | |
6830 | which can conflict with char $ac_func (); below. | |
6831 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6832 | <limits.h> exists even on freestanding compilers. */ | |
6833 | ||
6834 | #ifdef __STDC__ | |
6835 | # include <limits.h> | |
6836 | #else | |
6837 | # include <assert.h> | |
6838 | #endif | |
6839 | ||
6840 | #undef $ac_func | |
6841 | ||
6842 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6843 | #ifdef __cplusplus | |
6844 | extern "C" | |
6845 | { | |
6846 | #endif | |
6847 | /* We use char because int might match the return type of a gcc2 | |
6848 | builtin and then its argument prototype would still apply. */ | |
6849 | char $ac_func (); | |
6850 | /* The GNU C library defines this for functions which it implements | |
6851 | to always fail with ENOSYS. Some functions are actually named | |
6852 | something starting with __ and the normal name is an alias. */ | |
6853 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6854 | choke me | |
6855 | #else | |
6856 | char (*f) () = $ac_func; | |
6857 | #endif | |
6858 | #ifdef __cplusplus | |
6859 | } | |
6860 | #endif | |
6861 | ||
6862 | int | |
6863 | main () | |
6864 | { | |
6865 | return f != $ac_func; | |
6866 | ; | |
6867 | return 0; | |
6868 | } | |
6869 | _ACEOF | |
6870 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6872 | (eval $ac_link) 2>conftest.er1 | |
6873 | ac_status=$? | |
6874 | grep -v '^ *+' conftest.er1 >conftest.err | |
6875 | rm -f conftest.er1 | |
6876 | cat conftest.err >&5 | |
6877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6878 | (exit $ac_status); } && | |
6879 | { ac_try='test -z "$ac_c_werror_flag" | |
6880 | || test ! -s conftest.err' | |
6881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6882 | (eval $ac_try) 2>&5 | |
6883 | ac_status=$? | |
6884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6885 | (exit $ac_status); }; } && | |
6886 | { ac_try='test -s conftest$ac_exeext' | |
6887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6888 | (eval $ac_try) 2>&5 | |
6889 | ac_status=$? | |
6890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6891 | (exit $ac_status); }; }; then | |
6892 | eval "$as_ac_var=yes" | |
6893 | else | |
6894 | echo "$as_me: failed program was:" >&5 | |
6895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6896 | ||
6897 | eval "$as_ac_var=no" | |
6898 | fi | |
6899 | rm -f conftest.err conftest.$ac_objext \ | |
6900 | conftest$ac_exeext conftest.$ac_ext | |
6901 | fi | |
6902 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6903 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6904 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6905 | cat >>confdefs.h <<_ACEOF | |
6906 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6907 | _ACEOF | |
6908 | ||
6909 | fi | |
6910 | done | |
6911 | ||
6912 | echo "$as_me:$LINENO: checking for _etext" >&5 | |
6913 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 | |
6914 | if test "${ac_cv_var__etext+set}" = set; then | |
6915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6916 | else | |
6917 | cat >conftest.$ac_ext <<_ACEOF | |
6918 | /* confdefs.h. */ | |
6919 | _ACEOF | |
6920 | cat confdefs.h >>conftest.$ac_ext | |
6921 | cat >>conftest.$ac_ext <<_ACEOF | |
6922 | /* end confdefs.h. */ | |
6923 | #include <stdlib.h> | |
6924 | extern char _etext; | |
6925 | ||
6926 | int | |
6927 | main () | |
6928 | { | |
6929 | free (&_etext); | |
6930 | ; | |
6931 | return 0; | |
6932 | } | |
6933 | _ACEOF | |
6934 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6935 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6936 | (eval $ac_link) 2>conftest.er1 | |
6937 | ac_status=$? | |
6938 | grep -v '^ *+' conftest.er1 >conftest.err | |
6939 | rm -f conftest.er1 | |
6940 | cat conftest.err >&5 | |
6941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6942 | (exit $ac_status); } && | |
6943 | { ac_try='test -z "$ac_c_werror_flag" | |
6944 | || test ! -s conftest.err' | |
6945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6946 | (eval $ac_try) 2>&5 | |
6947 | ac_status=$? | |
6948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6949 | (exit $ac_status); }; } && | |
6950 | { ac_try='test -s conftest$ac_exeext' | |
6951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6952 | (eval $ac_try) 2>&5 | |
6953 | ac_status=$? | |
6954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6955 | (exit $ac_status); }; }; then | |
6956 | ac_cv_var__etext=yes | |
6957 | else | |
6958 | echo "$as_me: failed program was:" >&5 | |
6959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6960 | ||
6961 | ac_cv_var__etext=no | |
6962 | fi | |
6963 | rm -f conftest.err conftest.$ac_objext \ | |
6964 | conftest$ac_exeext conftest.$ac_ext | |
6965 | fi | |
6966 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 | |
6967 | echo "${ECHO_T}$ac_cv_var__etext" >&6 | |
6968 | if test $ac_cv_var__etext = yes; then | |
6969 | ||
6970 | cat >>confdefs.h <<\_ACEOF | |
6971 | #define HAVE__ETEXT 1 | |
6972 | _ACEOF | |
6973 | ||
6974 | fi | |
6975 | if test "$enable_profiling" = yes ; then | |
6976 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then | |
6977 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 | |
6978 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} | |
6979 | { (exit 1); exit 1; }; } | |
6980 | fi | |
6981 | PROFILE_CFLAGS=-pg | |
6982 | OLD_CFLAGS="$CFLAGS" | |
6983 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" | |
6984 | ||
6985 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 | |
6986 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 | |
6987 | if test "${ac_cv_cc_supports_pg+set}" = set; then | |
6988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6989 | else |
bec39cab AC |
6990 | cat >conftest.$ac_ext <<_ACEOF |
6991 | /* confdefs.h. */ | |
6992 | _ACEOF | |
6993 | cat confdefs.h >>conftest.$ac_ext | |
6994 | cat >>conftest.$ac_ext <<_ACEOF | |
6995 | /* end confdefs.h. */ | |
6996 | ||
6997 | int | |
6998 | main () | |
6999 | { | |
7000 | int x; | |
7001 | ; | |
7002 | return 0; | |
7003 | } | |
7004 | _ACEOF | |
7005 | rm -f conftest.$ac_objext | |
7006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7007 | (eval $ac_compile) 2>conftest.er1 | |
7008 | ac_status=$? | |
7009 | grep -v '^ *+' conftest.er1 >conftest.err | |
7010 | rm -f conftest.er1 | |
7011 | cat conftest.err >&5 | |
7012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7013 | (exit $ac_status); } && | |
7014 | { ac_try='test -z "$ac_c_werror_flag" | |
7015 | || test ! -s conftest.err' | |
7016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7017 | (eval $ac_try) 2>&5 | |
7018 | ac_status=$? | |
7019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7020 | (exit $ac_status); }; } && | |
7021 | { ac_try='test -s conftest.$ac_objext' | |
7022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7023 | (eval $ac_try) 2>&5 | |
7024 | ac_status=$? | |
7025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7026 | (exit $ac_status); }; }; then | |
7027 | ac_cv_cc_supports_pg=yes | |
7028 | else | |
7029 | echo "$as_me: failed program was:" >&5 | |
7030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7031 | ||
7032 | ac_cv_cc_supports_pg=no | |
7033 | fi | |
7034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7035 | fi | |
7036 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 | |
7037 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 | |
7038 | ||
7039 | if test $ac_cv_cc_supports_pg = no; then | |
7040 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 | |
7041 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} | |
7042 | { (exit 1); exit 1; }; } | |
7043 | fi | |
7044 | ||
7045 | CFLAGS="$OLD_CFLAGS" | |
7046 | fi | |
7047 | ||
7048 | # --------------------- # | |
7049 | # Checks for programs. # | |
7050 | # --------------------- # | |
7051 | ||
7052 | for ac_prog in gawk mawk nawk awk | |
7053 | do | |
7054 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7055 | set dummy $ac_prog; ac_word=$2 | |
7056 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7057 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7058 | if test "${ac_cv_prog_AWK+set}" = set; then | |
7059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7060 | else | |
7061 | if test -n "$AWK"; then | |
7062 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
7063 | else | |
7064 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7065 | for as_dir in $PATH | |
7066 | do | |
7067 | IFS=$as_save_IFS | |
7068 | test -z "$as_dir" && as_dir=. | |
7069 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7070 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7071 | ac_cv_prog_AWK="$ac_prog" | |
7072 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7073 | break 2 | |
7074 | fi | |
7075 | done | |
7076 | done | |
7077 | ||
7078 | fi | |
7079 | fi | |
7080 | AWK=$ac_cv_prog_AWK | |
7081 | if test -n "$AWK"; then | |
7082 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
7083 | echo "${ECHO_T}$AWK" >&6 | |
7084 | else | |
7085 | echo "$as_me:$LINENO: result: no" >&5 | |
7086 | echo "${ECHO_T}no" >&6 | |
7087 | fi | |
7088 | ||
7089 | test -n "$AWK" && break | |
7090 | done | |
7091 | ||
7092 | # Find a good install program. We prefer a C program (faster), | |
7093 | # so one script is as good as another. But avoid the broken or | |
7094 | # incompatible versions: | |
7095 | # SysV /etc/install, /usr/sbin/install | |
7096 | # SunOS /usr/etc/install | |
7097 | # IRIX /sbin/install | |
7098 | # AIX /bin/install | |
7099 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
7100 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
7101 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
7102 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
7103 | # OS/2's system install, which has a completely different semantic | |
7104 | # ./install, which can be erroneously created by make from ./install.sh. | |
7105 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
7106 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
7107 | if test -z "$INSTALL"; then | |
7108 | if test "${ac_cv_path_install+set}" = set; then | |
7109 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7110 | else | |
7111 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7112 | for as_dir in $PATH | |
7113 | do | |
7114 | IFS=$as_save_IFS | |
7115 | test -z "$as_dir" && as_dir=. | |
7116 | # Account for people who put trailing slashes in PATH elements. | |
7117 | case $as_dir/ in | |
7118 | ./ | .// | /cC/* | \ | |
7119 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
7120 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
7121 | /usr/ucb/* ) ;; | |
c906108c | 7122 | *) |
bec39cab AC |
7123 | # OSF1 and SCO ODT 3.0 have their own names for install. |
7124 | # Don't use installbsd from OSF since it installs stuff as root | |
7125 | # by default. | |
7126 | for ac_prog in ginstall scoinst install; do | |
7127 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7128 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
7129 | if test $ac_prog = install && | |
7130 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
7131 | # AIX install. It has an incompatible calling convention. | |
7132 | : | |
7133 | elif test $ac_prog = install && | |
7134 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
7135 | # program-specific install script used by HP pwplus--don't use. | |
7136 | : | |
7137 | else | |
7138 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
7139 | break 3 | |
7140 | fi | |
7141 | fi | |
7142 | done | |
7143 | done | |
7144 | ;; | |
c906108c | 7145 | esac |
bec39cab AC |
7146 | done |
7147 | ||
7148 | ||
7149 | fi | |
7150 | if test "${ac_cv_path_install+set}" = set; then | |
7151 | INSTALL=$ac_cv_path_install | |
7152 | else | |
7153 | # As a last resort, use the slow shell script. We don't cache a | |
7154 | # path for INSTALL within a source directory, because that will | |
7155 | # break other packages using the cache if that directory is | |
7156 | # removed, or if the path is relative. | |
7157 | INSTALL=$ac_install_sh | |
7158 | fi | |
7159 | fi | |
7160 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
7161 | echo "${ECHO_T}$INSTALL" >&6 | |
7162 | ||
7163 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
7164 | # It thinks the first close brace ends the variable substitution. | |
7165 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
7166 | ||
7167 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
7168 | ||
7169 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
7170 | ||
7171 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
7172 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
7173 | LN_S=$as_ln_s | |
7174 | if test "$LN_S" = "ln -s"; then | |
7175 | echo "$as_me:$LINENO: result: yes" >&5 | |
7176 | echo "${ECHO_T}yes" >&6 | |
7177 | else | |
7178 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
7179 | echo "${ECHO_T}no, using $LN_S" >&6 | |
7180 | fi | |
7181 | ||
7182 | if test -n "$ac_tool_prefix"; then | |
7183 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
7184 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
7185 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7186 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7187 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
7188 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7189 | else | |
7190 | if test -n "$RANLIB"; then | |
7191 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
7192 | else | |
7193 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7194 | for as_dir in $PATH | |
7195 | do | |
7196 | IFS=$as_save_IFS | |
7197 | test -z "$as_dir" && as_dir=. | |
7198 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7199 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7200 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
7201 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7202 | break 2 | |
7203 | fi | |
7204 | done | |
7205 | done | |
7206 | ||
7207 | fi | |
7208 | fi | |
7209 | RANLIB=$ac_cv_prog_RANLIB | |
7210 | if test -n "$RANLIB"; then | |
7211 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
7212 | echo "${ECHO_T}$RANLIB" >&6 | |
7213 | else | |
7214 | echo "$as_me:$LINENO: result: no" >&5 | |
7215 | echo "${ECHO_T}no" >&6 | |
7216 | fi | |
7217 | ||
7218 | fi | |
7219 | if test -z "$ac_cv_prog_RANLIB"; then | |
7220 | ac_ct_RANLIB=$RANLIB | |
7221 | # Extract the first word of "ranlib", so it can be a program name with args. | |
7222 | set dummy ranlib; ac_word=$2 | |
7223 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7224 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7225 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
7226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7227 | else | |
7228 | if test -n "$ac_ct_RANLIB"; then | |
7229 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
7230 | else | |
7231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7232 | for as_dir in $PATH | |
7233 | do | |
7234 | IFS=$as_save_IFS | |
7235 | test -z "$as_dir" && as_dir=. | |
7236 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7237 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7238 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
7239 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7240 | break 2 | |
7241 | fi | |
7242 | done | |
7243 | done | |
7244 | ||
7245 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
7246 | fi | |
7247 | fi | |
7248 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
7249 | if test -n "$ac_ct_RANLIB"; then | |
7250 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
7251 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
7252 | else | |
7253 | echo "$as_me:$LINENO: result: no" >&5 | |
7254 | echo "${ECHO_T}no" >&6 | |
7255 | fi | |
7256 | ||
7257 | RANLIB=$ac_ct_RANLIB | |
7258 | else | |
7259 | RANLIB="$ac_cv_prog_RANLIB" | |
7260 | fi | |
7261 | ||
7262 | for ac_prog in 'bison -y' byacc | |
7263 | do | |
7264 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7265 | set dummy $ac_prog; ac_word=$2 | |
7266 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7267 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7268 | if test "${ac_cv_prog_YACC+set}" = set; then | |
7269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7270 | else | |
7271 | if test -n "$YACC"; then | |
7272 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
7273 | else | |
7274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7275 | for as_dir in $PATH | |
7276 | do | |
7277 | IFS=$as_save_IFS | |
7278 | test -z "$as_dir" && as_dir=. | |
7279 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7280 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7281 | ac_cv_prog_YACC="$ac_prog" | |
7282 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7283 | break 2 | |
7284 | fi | |
7285 | done | |
7286 | done | |
7287 | ||
7288 | fi | |
7289 | fi | |
7290 | YACC=$ac_cv_prog_YACC | |
7291 | if test -n "$YACC"; then | |
7292 | echo "$as_me:$LINENO: result: $YACC" >&5 | |
7293 | echo "${ECHO_T}$YACC" >&6 | |
7294 | else | |
7295 | echo "$as_me:$LINENO: result: no" >&5 | |
7296 | echo "${ECHO_T}no" >&6 | |
7297 | fi | |
7298 | ||
7299 | test -n "$YACC" && break | |
7300 | done | |
7301 | test -n "$YACC" || YACC="yacc" | |
7302 | ||
7303 | ||
7304 | if test -n "$ac_tool_prefix"; then | |
7305 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
7306 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
7307 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7308 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7309 | if test "${ac_cv_prog_AR+set}" = set; then | |
7310 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7311 | else | |
7312 | if test -n "$AR"; then | |
7313 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
7314 | else | |
7315 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7316 | for as_dir in $PATH | |
7317 | do | |
7318 | IFS=$as_save_IFS | |
7319 | test -z "$as_dir" && as_dir=. | |
7320 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7321 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7322 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
7323 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7324 | break 2 | |
7325 | fi | |
7326 | done | |
7327 | done | |
7328 | ||
7329 | fi | |
7330 | fi | |
7331 | AR=$ac_cv_prog_AR | |
7332 | if test -n "$AR"; then | |
7333 | echo "$as_me:$LINENO: result: $AR" >&5 | |
7334 | echo "${ECHO_T}$AR" >&6 | |
7335 | else | |
7336 | echo "$as_me:$LINENO: result: no" >&5 | |
7337 | echo "${ECHO_T}no" >&6 | |
7338 | fi | |
7339 | ||
7340 | fi | |
7341 | if test -z "$ac_cv_prog_AR"; then | |
7342 | ac_ct_AR=$AR | |
7343 | # Extract the first word of "ar", so it can be a program name with args. | |
7344 | set dummy ar; ac_word=$2 | |
7345 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7346 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7347 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
7348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7349 | else | |
7350 | if test -n "$ac_ct_AR"; then | |
7351 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
7352 | else | |
7353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7354 | for as_dir in $PATH | |
7355 | do | |
7356 | IFS=$as_save_IFS | |
7357 | test -z "$as_dir" && as_dir=. | |
7358 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7359 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7360 | ac_cv_prog_ac_ct_AR="ar" | |
7361 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7362 | break 2 | |
7363 | fi | |
7364 | done | |
7365 | done | |
7366 | ||
7367 | fi | |
7368 | fi | |
7369 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
7370 | if test -n "$ac_ct_AR"; then | |
7371 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
7372 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
7373 | else | |
7374 | echo "$as_me:$LINENO: result: no" >&5 | |
7375 | echo "${ECHO_T}no" >&6 | |
7376 | fi | |
7377 | ||
7378 | AR=$ac_ct_AR | |
7379 | else | |
7380 | AR="$ac_cv_prog_AR" | |
7381 | fi | |
7382 | ||
7383 | if test -n "$ac_tool_prefix"; then | |
7384 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
7385 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
7386 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7387 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7388 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | |
7389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7390 | else | |
7391 | if test -n "$DLLTOOL"; then | |
7392 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
7393 | else | |
7394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7395 | for as_dir in $PATH | |
7396 | do | |
7397 | IFS=$as_save_IFS | |
7398 | test -z "$as_dir" && as_dir=. | |
7399 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7400 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7401 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
7402 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7403 | break 2 | |
7404 | fi | |
7405 | done | |
7406 | done | |
7407 | ||
7408 | fi | |
7409 | fi | |
7410 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
7411 | if test -n "$DLLTOOL"; then | |
7412 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | |
7413 | echo "${ECHO_T}$DLLTOOL" >&6 | |
7414 | else | |
7415 | echo "$as_me:$LINENO: result: no" >&5 | |
7416 | echo "${ECHO_T}no" >&6 | |
7417 | fi | |
7418 | ||
7419 | fi | |
7420 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
7421 | ac_ct_DLLTOOL=$DLLTOOL | |
7422 | # Extract the first word of "dlltool", so it can be a program name with args. | |
7423 | set dummy dlltool; ac_word=$2 | |
7424 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7425 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7426 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | |
7427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7428 | else | |
7429 | if test -n "$ac_ct_DLLTOOL"; then | |
7430 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
7431 | else | |
7432 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7433 | for as_dir in $PATH | |
7434 | do | |
7435 | IFS=$as_save_IFS | |
7436 | test -z "$as_dir" && as_dir=. | |
7437 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7438 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7439 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
7440 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7441 | break 2 | |
7442 | fi | |
7443 | done | |
7444 | done | |
7445 | ||
7446 | fi | |
7447 | fi | |
7448 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
7449 | if test -n "$ac_ct_DLLTOOL"; then | |
7450 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | |
7451 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
7452 | else | |
7453 | echo "$as_me:$LINENO: result: no" >&5 | |
7454 | echo "${ECHO_T}no" >&6 | |
7455 | fi | |
7456 | ||
7457 | DLLTOOL=$ac_ct_DLLTOOL | |
7458 | else | |
7459 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
7460 | fi | |
7461 | ||
7462 | if test -n "$ac_tool_prefix"; then | |
7463 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
7464 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
7465 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7466 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7467 | if test "${ac_cv_prog_WINDRES+set}" = set; then | |
7468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7469 | else | |
7470 | if test -n "$WINDRES"; then | |
7471 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
7472 | else | |
7473 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7474 | for as_dir in $PATH | |
7475 | do | |
7476 | IFS=$as_save_IFS | |
7477 | test -z "$as_dir" && as_dir=. | |
7478 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7479 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7480 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
7481 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7482 | break 2 | |
7483 | fi | |
7484 | done | |
7485 | done | |
7486 | ||
7487 | fi | |
7488 | fi | |
7489 | WINDRES=$ac_cv_prog_WINDRES | |
7490 | if test -n "$WINDRES"; then | |
7491 | echo "$as_me:$LINENO: result: $WINDRES" >&5 | |
7492 | echo "${ECHO_T}$WINDRES" >&6 | |
7493 | else | |
7494 | echo "$as_me:$LINENO: result: no" >&5 | |
7495 | echo "${ECHO_T}no" >&6 | |
7496 | fi | |
7497 | ||
7498 | fi | |
7499 | if test -z "$ac_cv_prog_WINDRES"; then | |
7500 | ac_ct_WINDRES=$WINDRES | |
7501 | # Extract the first word of "windres", so it can be a program name with args. | |
7502 | set dummy windres; ac_word=$2 | |
7503 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7504 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7505 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then | |
7506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7507 | else | |
7508 | if test -n "$ac_ct_WINDRES"; then | |
7509 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
7510 | else | |
7511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7512 | for as_dir in $PATH | |
7513 | do | |
7514 | IFS=$as_save_IFS | |
7515 | test -z "$as_dir" && as_dir=. | |
7516 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7517 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7518 | ac_cv_prog_ac_ct_WINDRES="windres" | |
7519 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7520 | break 2 | |
7521 | fi | |
7522 | done | |
7523 | done | |
7524 | ||
7525 | fi | |
7526 | fi | |
7527 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
7528 | if test -n "$ac_ct_WINDRES"; then | |
7529 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 | |
7530 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
7531 | else | |
7532 | echo "$as_me:$LINENO: result: no" >&5 | |
7533 | echo "${ECHO_T}no" >&6 | |
c906108c | 7534 | fi |
bec39cab AC |
7535 | |
7536 | WINDRES=$ac_ct_WINDRES | |
c906108c | 7537 | else |
bec39cab | 7538 | WINDRES="$ac_cv_prog_WINDRES" |
c906108c SS |
7539 | fi |
7540 | ||
bec39cab AC |
7541 | |
7542 | # Needed for GNU/Hurd. | |
7543 | if test -n "$ac_tool_prefix"; then | |
7544 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. | |
7545 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
7546 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7548 | if test "${ac_cv_prog_MIG+set}" = set; then | |
7549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7550 | else |
bec39cab AC |
7551 | if test -n "$MIG"; then |
7552 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
7553 | else | |
7554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7555 | for as_dir in $PATH | |
7556 | do | |
7557 | IFS=$as_save_IFS | |
7558 | test -z "$as_dir" && as_dir=. | |
7559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7560 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7561 | ac_cv_prog_MIG="${ac_tool_prefix}mig" | |
7562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7563 | break 2 | |
7564 | fi | |
7565 | done | |
7566 | done | |
7567 | ||
c906108c | 7568 | fi |
bec39cab AC |
7569 | fi |
7570 | MIG=$ac_cv_prog_MIG | |
7571 | if test -n "$MIG"; then | |
7572 | echo "$as_me:$LINENO: result: $MIG" >&5 | |
7573 | echo "${ECHO_T}$MIG" >&6 | |
c906108c | 7574 | else |
bec39cab AC |
7575 | echo "$as_me:$LINENO: result: no" >&5 |
7576 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
7577 | fi |
7578 | ||
bec39cab AC |
7579 | fi |
7580 | if test -z "$ac_cv_prog_MIG"; then | |
7581 | ac_ct_MIG=$MIG | |
7582 | # Extract the first word of "mig", so it can be a program name with args. | |
7583 | set dummy mig; ac_word=$2 | |
7584 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7585 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7586 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then | |
7587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7588 | else | |
7589 | if test -n "$ac_ct_MIG"; then | |
7590 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. | |
7591 | else | |
7592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7593 | for as_dir in $PATH | |
7594 | do | |
7595 | IFS=$as_save_IFS | |
7596 | test -z "$as_dir" && as_dir=. | |
7597 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7598 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7599 | ac_cv_prog_ac_ct_MIG="mig" | |
7600 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7601 | break 2 | |
7602 | fi | |
7603 | done | |
7604 | done | |
c906108c | 7605 | |
bec39cab AC |
7606 | fi |
7607 | fi | |
7608 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG | |
7609 | if test -n "$ac_ct_MIG"; then | |
7610 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 | |
7611 | echo "${ECHO_T}$ac_ct_MIG" >&6 | |
7612 | else | |
7613 | echo "$as_me:$LINENO: result: no" >&5 | |
7614 | echo "${ECHO_T}no" >&6 | |
7615 | fi | |
c906108c | 7616 | |
bec39cab AC |
7617 | MIG=$ac_ct_MIG |
7618 | else | |
7619 | MIG="$ac_cv_prog_MIG" | |
7620 | fi | |
c906108c | 7621 | |
c906108c | 7622 | |
bec39cab AC |
7623 | # ---------------------- # |
7624 | # Checks for libraries. # | |
7625 | # ---------------------- # | |
c906108c | 7626 | |
bec39cab | 7627 | # We might need to link with -lm; most simulators need it. |
c906108c | 7628 | |
bec39cab AC |
7629 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
7630 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
7631 | if test "${ac_cv_lib_m_main+set}" = set; then | |
7632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7633 | else | |
7634 | ac_check_lib_save_LIBS=$LIBS | |
7635 | LIBS="-lm $LIBS" | |
7636 | cat >conftest.$ac_ext <<_ACEOF | |
7637 | /* confdefs.h. */ | |
7638 | _ACEOF | |
7639 | cat confdefs.h >>conftest.$ac_ext | |
7640 | cat >>conftest.$ac_ext <<_ACEOF | |
7641 | /* end confdefs.h. */ | |
c906108c | 7642 | |
c906108c | 7643 | |
bec39cab AC |
7644 | int |
7645 | main () | |
7646 | { | |
7647 | main (); | |
7648 | ; | |
7649 | return 0; | |
7650 | } | |
7651 | _ACEOF | |
7652 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7654 | (eval $ac_link) 2>conftest.er1 | |
7655 | ac_status=$? | |
7656 | grep -v '^ *+' conftest.er1 >conftest.err | |
7657 | rm -f conftest.er1 | |
7658 | cat conftest.err >&5 | |
7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7660 | (exit $ac_status); } && | |
7661 | { ac_try='test -z "$ac_c_werror_flag" | |
7662 | || test ! -s conftest.err' | |
7663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7664 | (eval $ac_try) 2>&5 | |
7665 | ac_status=$? | |
7666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7667 | (exit $ac_status); }; } && | |
7668 | { ac_try='test -s conftest$ac_exeext' | |
7669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7670 | (eval $ac_try) 2>&5 | |
7671 | ac_status=$? | |
7672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7673 | (exit $ac_status); }; }; then | |
7674 | ac_cv_lib_m_main=yes | |
7675 | else | |
7676 | echo "$as_me: failed program was:" >&5 | |
7677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7678 | ||
7679 | ac_cv_lib_m_main=no | |
7680 | fi | |
7681 | rm -f conftest.err conftest.$ac_objext \ | |
7682 | conftest$ac_exeext conftest.$ac_ext | |
7683 | LIBS=$ac_check_lib_save_LIBS | |
7684 | fi | |
7685 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 | |
7686 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
7687 | if test $ac_cv_lib_m_main = yes; then | |
7688 | cat >>confdefs.h <<_ACEOF | |
7689 | #define HAVE_LIBM 1 | |
7690 | _ACEOF | |
7691 | ||
7692 | LIBS="-lm $LIBS" | |
c906108c | 7693 | |
c906108c | 7694 | fi |
bec39cab AC |
7695 | |
7696 | ||
7697 | # We need to link with -lw to get `wctype' on Solaris before Solaris | |
7698 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a | |
7699 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 | |
7700 | # is known to have this problem). Therefore we avoid libw if we can. | |
7701 | echo "$as_me:$LINENO: checking for wctype" >&5 | |
7702 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 | |
7703 | if test "${ac_cv_func_wctype+set}" = set; then | |
7704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7705 | else | |
7706 | cat >conftest.$ac_ext <<_ACEOF | |
7707 | /* confdefs.h. */ | |
7708 | _ACEOF | |
7709 | cat confdefs.h >>conftest.$ac_ext | |
7710 | cat >>conftest.$ac_ext <<_ACEOF | |
7711 | /* end confdefs.h. */ | |
7712 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
7713 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7714 | #define wctype innocuous_wctype | |
7715 | ||
7716 | /* System header to define __stub macros and hopefully few prototypes, | |
7717 | which can conflict with char wctype (); below. | |
7718 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7719 | <limits.h> exists even on freestanding compilers. */ | |
7720 | ||
7721 | #ifdef __STDC__ | |
7722 | # include <limits.h> | |
7723 | #else | |
7724 | # include <assert.h> | |
7725 | #endif | |
7726 | ||
7727 | #undef wctype | |
7728 | ||
7729 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7730 | #ifdef __cplusplus | |
7731 | extern "C" | |
7732 | { | |
7733 | #endif | |
7734 | /* We use char because int might match the return type of a gcc2 | |
7735 | builtin and then its argument prototype would still apply. */ | |
7736 | char wctype (); | |
7737 | /* The GNU C library defines this for functions which it implements | |
7738 | to always fail with ENOSYS. Some functions are actually named | |
7739 | something starting with __ and the normal name is an alias. */ | |
7740 | #if defined (__stub_wctype) || defined (__stub___wctype) | |
7741 | choke me | |
7742 | #else | |
7743 | char (*f) () = wctype; | |
7744 | #endif | |
7745 | #ifdef __cplusplus | |
7746 | } | |
7747 | #endif | |
7748 | ||
7749 | int | |
7750 | main () | |
7751 | { | |
7752 | return f != wctype; | |
7753 | ; | |
7754 | return 0; | |
7755 | } | |
7756 | _ACEOF | |
7757 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7759 | (eval $ac_link) 2>conftest.er1 | |
7760 | ac_status=$? | |
7761 | grep -v '^ *+' conftest.er1 >conftest.err | |
7762 | rm -f conftest.er1 | |
7763 | cat conftest.err >&5 | |
7764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7765 | (exit $ac_status); } && | |
7766 | { ac_try='test -z "$ac_c_werror_flag" | |
7767 | || test ! -s conftest.err' | |
7768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7769 | (eval $ac_try) 2>&5 | |
7770 | ac_status=$? | |
7771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7772 | (exit $ac_status); }; } && | |
7773 | { ac_try='test -s conftest$ac_exeext' | |
7774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7775 | (eval $ac_try) 2>&5 | |
7776 | ac_status=$? | |
7777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7778 | (exit $ac_status); }; }; then | |
7779 | ac_cv_func_wctype=yes | |
7780 | else | |
7781 | echo "$as_me: failed program was:" >&5 | |
7782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7783 | ||
7784 | ac_cv_func_wctype=no | |
7785 | fi | |
7786 | rm -f conftest.err conftest.$ac_objext \ | |
7787 | conftest$ac_exeext conftest.$ac_ext | |
7788 | fi | |
7789 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 | |
7790 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 | |
7791 | if test $ac_cv_func_wctype = yes; then | |
7792 | : | |
c906108c | 7793 | else |
c906108c | 7794 | |
bec39cab AC |
7795 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
7796 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 | |
7797 | if test "${ac_cv_lib_w_wctype+set}" = set; then | |
7798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7799 | else | |
7800 | ac_check_lib_save_LIBS=$LIBS | |
7801 | LIBS="-lw $LIBS" | |
7802 | cat >conftest.$ac_ext <<_ACEOF | |
7803 | /* confdefs.h. */ | |
7804 | _ACEOF | |
7805 | cat confdefs.h >>conftest.$ac_ext | |
7806 | cat >>conftest.$ac_ext <<_ACEOF | |
7807 | /* end confdefs.h. */ | |
c906108c | 7808 | |
bec39cab AC |
7809 | /* Override any gcc2 internal prototype to avoid an error. */ |
7810 | #ifdef __cplusplus | |
7811 | extern "C" | |
7812 | #endif | |
7813 | /* We use char because int might match the return type of a gcc2 | |
7814 | builtin and then its argument prototype would still apply. */ | |
7815 | char wctype (); | |
7816 | int | |
7817 | main () | |
7818 | { | |
7819 | wctype (); | |
7820 | ; | |
7821 | return 0; | |
7822 | } | |
7823 | _ACEOF | |
7824 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7826 | (eval $ac_link) 2>conftest.er1 | |
7827 | ac_status=$? | |
7828 | grep -v '^ *+' conftest.er1 >conftest.err | |
7829 | rm -f conftest.er1 | |
7830 | cat conftest.err >&5 | |
7831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7832 | (exit $ac_status); } && | |
7833 | { ac_try='test -z "$ac_c_werror_flag" | |
7834 | || test ! -s conftest.err' | |
7835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7836 | (eval $ac_try) 2>&5 | |
7837 | ac_status=$? | |
7838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7839 | (exit $ac_status); }; } && | |
7840 | { ac_try='test -s conftest$ac_exeext' | |
7841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7842 | (eval $ac_try) 2>&5 | |
7843 | ac_status=$? | |
7844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7845 | (exit $ac_status); }; }; then | |
7846 | ac_cv_lib_w_wctype=yes | |
7847 | else | |
7848 | echo "$as_me: failed program was:" >&5 | |
7849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7850 | ||
7851 | ac_cv_lib_w_wctype=no | |
7852 | fi | |
7853 | rm -f conftest.err conftest.$ac_objext \ | |
7854 | conftest$ac_exeext conftest.$ac_ext | |
7855 | LIBS=$ac_check_lib_save_LIBS | |
7856 | fi | |
7857 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 | |
7858 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 | |
7859 | if test $ac_cv_lib_w_wctype = yes; then | |
7860 | cat >>confdefs.h <<_ACEOF | |
7861 | #define HAVE_LIBW 1 | |
7862 | _ACEOF | |
c906108c | 7863 | |
bec39cab | 7864 | LIBS="-lw $LIBS" |
c906108c | 7865 | |
bec39cab | 7866 | fi |
c906108c | 7867 | |
bec39cab | 7868 | fi |
c906108c | 7869 | |
ddc9cd0f | 7870 | |
bec39cab AC |
7871 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
7872 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 | |
7873 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 | |
7874 | if test "${ac_cv_search_gethostbyname+set}" = set; then | |
7875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7876 | else | |
7877 | ac_func_search_save_LIBS=$LIBS | |
7878 | ac_cv_search_gethostbyname=no | |
7879 | cat >conftest.$ac_ext <<_ACEOF | |
7880 | /* confdefs.h. */ | |
7881 | _ACEOF | |
7882 | cat confdefs.h >>conftest.$ac_ext | |
7883 | cat >>conftest.$ac_ext <<_ACEOF | |
7884 | /* end confdefs.h. */ | |
ddc9cd0f | 7885 | |
bec39cab AC |
7886 | /* Override any gcc2 internal prototype to avoid an error. */ |
7887 | #ifdef __cplusplus | |
7888 | extern "C" | |
7889 | #endif | |
7890 | /* We use char because int might match the return type of a gcc2 | |
7891 | builtin and then its argument prototype would still apply. */ | |
7892 | char gethostbyname (); | |
7893 | int | |
7894 | main () | |
7895 | { | |
7896 | gethostbyname (); | |
7897 | ; | |
7898 | return 0; | |
7899 | } | |
7900 | _ACEOF | |
7901 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7902 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7903 | (eval $ac_link) 2>conftest.er1 | |
7904 | ac_status=$? | |
7905 | grep -v '^ *+' conftest.er1 >conftest.err | |
7906 | rm -f conftest.er1 | |
7907 | cat conftest.err >&5 | |
7908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7909 | (exit $ac_status); } && | |
7910 | { ac_try='test -z "$ac_c_werror_flag" | |
7911 | || test ! -s conftest.err' | |
7912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7913 | (eval $ac_try) 2>&5 | |
7914 | ac_status=$? | |
7915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7916 | (exit $ac_status); }; } && | |
7917 | { ac_try='test -s conftest$ac_exeext' | |
7918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7919 | (eval $ac_try) 2>&5 | |
7920 | ac_status=$? | |
7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7922 | (exit $ac_status); }; }; then | |
7923 | ac_cv_search_gethostbyname="none required" | |
7924 | else | |
7925 | echo "$as_me: failed program was:" >&5 | |
7926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 7927 | |
bec39cab AC |
7928 | fi |
7929 | rm -f conftest.err conftest.$ac_objext \ | |
7930 | conftest$ac_exeext conftest.$ac_ext | |
7931 | if test "$ac_cv_search_gethostbyname" = no; then | |
7932 | for ac_lib in nsl; do | |
7933 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7934 | cat >conftest.$ac_ext <<_ACEOF | |
7935 | /* confdefs.h. */ | |
7936 | _ACEOF | |
7937 | cat confdefs.h >>conftest.$ac_ext | |
7938 | cat >>conftest.$ac_ext <<_ACEOF | |
7939 | /* end confdefs.h. */ | |
ddc9cd0f | 7940 | |
bec39cab AC |
7941 | /* Override any gcc2 internal prototype to avoid an error. */ |
7942 | #ifdef __cplusplus | |
7943 | extern "C" | |
7944 | #endif | |
7945 | /* We use char because int might match the return type of a gcc2 | |
7946 | builtin and then its argument prototype would still apply. */ | |
7947 | char gethostbyname (); | |
7948 | int | |
7949 | main () | |
7950 | { | |
7951 | gethostbyname (); | |
7952 | ; | |
7953 | return 0; | |
7954 | } | |
7955 | _ACEOF | |
7956 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7958 | (eval $ac_link) 2>conftest.er1 | |
7959 | ac_status=$? | |
7960 | grep -v '^ *+' conftest.er1 >conftest.err | |
7961 | rm -f conftest.er1 | |
7962 | cat conftest.err >&5 | |
7963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7964 | (exit $ac_status); } && | |
7965 | { ac_try='test -z "$ac_c_werror_flag" | |
7966 | || test ! -s conftest.err' | |
7967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7968 | (eval $ac_try) 2>&5 | |
7969 | ac_status=$? | |
7970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7971 | (exit $ac_status); }; } && | |
7972 | { ac_try='test -s conftest$ac_exeext' | |
7973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7974 | (eval $ac_try) 2>&5 | |
7975 | ac_status=$? | |
7976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7977 | (exit $ac_status); }; }; then | |
7978 | ac_cv_search_gethostbyname="-l$ac_lib" | |
7979 | break | |
7980 | else | |
7981 | echo "$as_me: failed program was:" >&5 | |
7982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7983 | ||
7984 | fi | |
7985 | rm -f conftest.err conftest.$ac_objext \ | |
7986 | conftest$ac_exeext conftest.$ac_ext | |
ddc9cd0f | 7987 | done |
bec39cab AC |
7988 | fi |
7989 | LIBS=$ac_func_search_save_LIBS | |
7990 | fi | |
7991 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 | |
7992 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 | |
7993 | if test "$ac_cv_search_gethostbyname" != no; then | |
7994 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" | |
ddc9cd0f | 7995 | |
ddc9cd0f AC |
7996 | fi |
7997 | ||
0fbb3da7 | 7998 | |
bec39cab AC |
7999 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
8000 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 | |
8001 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 | |
8002 | if test "${ac_cv_search_socketpair+set}" = set; then | |
8003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8004 | else | |
8005 | ac_func_search_save_LIBS=$LIBS | |
8006 | ac_cv_search_socketpair=no | |
8007 | cat >conftest.$ac_ext <<_ACEOF | |
8008 | /* confdefs.h. */ | |
8009 | _ACEOF | |
8010 | cat confdefs.h >>conftest.$ac_ext | |
8011 | cat >>conftest.$ac_ext <<_ACEOF | |
8012 | /* end confdefs.h. */ | |
0fbb3da7 | 8013 | |
bec39cab AC |
8014 | /* Override any gcc2 internal prototype to avoid an error. */ |
8015 | #ifdef __cplusplus | |
8016 | extern "C" | |
8017 | #endif | |
8018 | /* We use char because int might match the return type of a gcc2 | |
8019 | builtin and then its argument prototype would still apply. */ | |
8020 | char socketpair (); | |
8021 | int | |
8022 | main () | |
8023 | { | |
8024 | socketpair (); | |
8025 | ; | |
8026 | return 0; | |
8027 | } | |
8028 | _ACEOF | |
8029 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8031 | (eval $ac_link) 2>conftest.er1 | |
8032 | ac_status=$? | |
8033 | grep -v '^ *+' conftest.er1 >conftest.err | |
8034 | rm -f conftest.er1 | |
8035 | cat conftest.err >&5 | |
8036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8037 | (exit $ac_status); } && | |
8038 | { ac_try='test -z "$ac_c_werror_flag" | |
8039 | || test ! -s conftest.err' | |
8040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8041 | (eval $ac_try) 2>&5 | |
8042 | ac_status=$? | |
8043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8044 | (exit $ac_status); }; } && | |
8045 | { ac_try='test -s conftest$ac_exeext' | |
8046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8047 | (eval $ac_try) 2>&5 | |
8048 | ac_status=$? | |
8049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8050 | (exit $ac_status); }; }; then | |
8051 | ac_cv_search_socketpair="none required" | |
8052 | else | |
8053 | echo "$as_me: failed program was:" >&5 | |
8054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 8055 | |
5b5d99cf | 8056 | fi |
bec39cab AC |
8057 | rm -f conftest.err conftest.$ac_objext \ |
8058 | conftest$ac_exeext conftest.$ac_ext | |
8059 | if test "$ac_cv_search_socketpair" = no; then | |
8060 | for ac_lib in socket; do | |
8061 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8062 | cat >conftest.$ac_ext <<_ACEOF | |
8063 | /* confdefs.h. */ | |
8064 | _ACEOF | |
8065 | cat confdefs.h >>conftest.$ac_ext | |
8066 | cat >>conftest.$ac_ext <<_ACEOF | |
8067 | /* end confdefs.h. */ | |
5b5d99cf | 8068 | |
bec39cab AC |
8069 | /* Override any gcc2 internal prototype to avoid an error. */ |
8070 | #ifdef __cplusplus | |
8071 | extern "C" | |
8072 | #endif | |
8073 | /* We use char because int might match the return type of a gcc2 | |
8074 | builtin and then its argument prototype would still apply. */ | |
8075 | char socketpair (); | |
8076 | int | |
8077 | main () | |
8078 | { | |
8079 | socketpair (); | |
8080 | ; | |
8081 | return 0; | |
8082 | } | |
8083 | _ACEOF | |
8084 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8086 | (eval $ac_link) 2>conftest.er1 | |
8087 | ac_status=$? | |
8088 | grep -v '^ *+' conftest.er1 >conftest.err | |
8089 | rm -f conftest.er1 | |
8090 | cat conftest.err >&5 | |
8091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8092 | (exit $ac_status); } && | |
8093 | { ac_try='test -z "$ac_c_werror_flag" | |
8094 | || test ! -s conftest.err' | |
8095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8096 | (eval $ac_try) 2>&5 | |
8097 | ac_status=$? | |
8098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8099 | (exit $ac_status); }; } && | |
8100 | { ac_try='test -s conftest$ac_exeext' | |
8101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8102 | (eval $ac_try) 2>&5 | |
8103 | ac_status=$? | |
8104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8105 | (exit $ac_status); }; }; then | |
8106 | ac_cv_search_socketpair="-l$ac_lib" | |
8107 | break | |
8108 | else | |
8109 | echo "$as_me: failed program was:" >&5 | |
8110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8111 | |
bec39cab AC |
8112 | fi |
8113 | rm -f conftest.err conftest.$ac_objext \ | |
8114 | conftest$ac_exeext conftest.$ac_ext | |
8115 | done | |
8116 | fi | |
8117 | LIBS=$ac_func_search_save_LIBS | |
8118 | fi | |
8119 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 | |
8120 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 | |
8121 | if test "$ac_cv_search_socketpair" != no; then | |
8122 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" | |
96baa820 | 8123 | |
bec39cab | 8124 | fi |
96baa820 | 8125 | |
c906108c | 8126 | |
bec39cab AC |
8127 | # For the TUI, we need enhanced curses functionality. |
8128 | # | |
8129 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied | |
8130 | # curses library because the latter might not provide all the | |
8131 | # functionality we need. However, this leads to problems on systems | |
8132 | # where the linker searches /usr/local/lib, but the compiler doesn't | |
8133 | # search /usr/local/include, if ncurses is installed in /usr/local. A | |
8134 | # default installation of ncurses on alpha*-dec-osf* will lead to such | |
8135 | # a situation. | |
8136 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 | |
8137 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 | |
8138 | if test "${ac_cv_search_waddstr+set}" = set; then | |
8139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8140 | else | |
8141 | ac_func_search_save_LIBS=$LIBS | |
8142 | ac_cv_search_waddstr=no | |
8143 | cat >conftest.$ac_ext <<_ACEOF | |
8144 | /* confdefs.h. */ | |
8145 | _ACEOF | |
8146 | cat confdefs.h >>conftest.$ac_ext | |
8147 | cat >>conftest.$ac_ext <<_ACEOF | |
8148 | /* end confdefs.h. */ | |
c906108c | 8149 | |
bec39cab AC |
8150 | /* Override any gcc2 internal prototype to avoid an error. */ |
8151 | #ifdef __cplusplus | |
8152 | extern "C" | |
8153 | #endif | |
8154 | /* We use char because int might match the return type of a gcc2 | |
8155 | builtin and then its argument prototype would still apply. */ | |
8156 | char waddstr (); | |
8157 | int | |
8158 | main () | |
8159 | { | |
8160 | waddstr (); | |
8161 | ; | |
8162 | return 0; | |
8163 | } | |
8164 | _ACEOF | |
8165 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8166 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8167 | (eval $ac_link) 2>conftest.er1 | |
8168 | ac_status=$? | |
8169 | grep -v '^ *+' conftest.er1 >conftest.err | |
8170 | rm -f conftest.er1 | |
8171 | cat conftest.err >&5 | |
8172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8173 | (exit $ac_status); } && | |
8174 | { ac_try='test -z "$ac_c_werror_flag" | |
8175 | || test ! -s conftest.err' | |
8176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8177 | (eval $ac_try) 2>&5 | |
8178 | ac_status=$? | |
8179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8180 | (exit $ac_status); }; } && | |
8181 | { ac_try='test -s conftest$ac_exeext' | |
8182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8183 | (eval $ac_try) 2>&5 | |
8184 | ac_status=$? | |
8185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8186 | (exit $ac_status); }; }; then | |
8187 | ac_cv_search_waddstr="none required" | |
8188 | else | |
8189 | echo "$as_me: failed program was:" >&5 | |
8190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8191 | |
bec39cab AC |
8192 | fi |
8193 | rm -f conftest.err conftest.$ac_objext \ | |
8194 | conftest$ac_exeext conftest.$ac_ext | |
8195 | if test "$ac_cv_search_waddstr" = no; then | |
8196 | for ac_lib in ncurses cursesX curses; do | |
8197 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8198 | cat >conftest.$ac_ext <<_ACEOF | |
8199 | /* confdefs.h. */ | |
8200 | _ACEOF | |
8201 | cat confdefs.h >>conftest.$ac_ext | |
8202 | cat >>conftest.$ac_ext <<_ACEOF | |
8203 | /* end confdefs.h. */ | |
1ba607ad | 8204 | |
bec39cab AC |
8205 | /* Override any gcc2 internal prototype to avoid an error. */ |
8206 | #ifdef __cplusplus | |
8207 | extern "C" | |
8208 | #endif | |
8209 | /* We use char because int might match the return type of a gcc2 | |
8210 | builtin and then its argument prototype would still apply. */ | |
8211 | char waddstr (); | |
8212 | int | |
8213 | main () | |
8214 | { | |
8215 | waddstr (); | |
8216 | ; | |
8217 | return 0; | |
8218 | } | |
8219 | _ACEOF | |
8220 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8222 | (eval $ac_link) 2>conftest.er1 | |
8223 | ac_status=$? | |
8224 | grep -v '^ *+' conftest.er1 >conftest.err | |
8225 | rm -f conftest.er1 | |
8226 | cat conftest.err >&5 | |
8227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8228 | (exit $ac_status); } && | |
8229 | { ac_try='test -z "$ac_c_werror_flag" | |
8230 | || test ! -s conftest.err' | |
8231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8232 | (eval $ac_try) 2>&5 | |
8233 | ac_status=$? | |
8234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8235 | (exit $ac_status); }; } && | |
8236 | { ac_try='test -s conftest$ac_exeext' | |
8237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8238 | (eval $ac_try) 2>&5 | |
8239 | ac_status=$? | |
8240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8241 | (exit $ac_status); }; }; then | |
8242 | ac_cv_search_waddstr="-l$ac_lib" | |
8243 | break | |
8244 | else | |
8245 | echo "$as_me: failed program was:" >&5 | |
8246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1ba607ad AC |
8247 | |
8248 | fi | |
bec39cab AC |
8249 | rm -f conftest.err conftest.$ac_objext \ |
8250 | conftest$ac_exeext conftest.$ac_ext | |
8251 | done | |
1ba607ad | 8252 | fi |
bec39cab AC |
8253 | LIBS=$ac_func_search_save_LIBS |
8254 | fi | |
8255 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 | |
8256 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 | |
8257 | if test "$ac_cv_search_waddstr" != no; then | |
8258 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" | |
c906108c | 8259 | |
8bb2c122 | 8260 | fi |
8bb2c122 | 8261 | |
8bb2c122 | 8262 | |
bec39cab AC |
8263 | # Since GDB uses Readline, we need termcap functionality. In many |
8264 | # cases this will be provided by the curses library, but some systems | |
8265 | # have a seperate termcap library, or no curses library at all. | |
8bb2c122 | 8266 | |
bec39cab AC |
8267 | case $host_os in |
8268 | cygwin*) | |
8269 | if test -d $srcdir/libtermcap; then | |
8270 | LIBS="../libtermcap/libtermcap.a $LIBS" | |
8271 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" | |
8272 | fi ;; | |
8273 | go32* | *djgpp*) | |
8274 | ac_cv_search_tgetent="none required" | |
8275 | ;; | |
8276 | esac | |
627af7ea | 8277 | |
bec39cab AC |
8278 | # These are the libraries checked by Readline. |
8279 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 | |
8280 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
8281 | if test "${ac_cv_search_tgetent+set}" = set; then | |
8282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8283 | else | |
8284 | ac_func_search_save_LIBS=$LIBS | |
8285 | ac_cv_search_tgetent=no | |
8286 | cat >conftest.$ac_ext <<_ACEOF | |
8287 | /* confdefs.h. */ | |
8288 | _ACEOF | |
8289 | cat confdefs.h >>conftest.$ac_ext | |
8290 | cat >>conftest.$ac_ext <<_ACEOF | |
8291 | /* end confdefs.h. */ | |
8292 | ||
8293 | /* Override any gcc2 internal prototype to avoid an error. */ | |
8294 | #ifdef __cplusplus | |
8295 | extern "C" | |
8296 | #endif | |
8297 | /* We use char because int might match the return type of a gcc2 | |
8298 | builtin and then its argument prototype would still apply. */ | |
8299 | char tgetent (); | |
8300 | int | |
8301 | main () | |
8302 | { | |
8303 | tgetent (); | |
8304 | ; | |
8305 | return 0; | |
8306 | } | |
8307 | _ACEOF | |
8308 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8309 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8310 | (eval $ac_link) 2>conftest.er1 | |
8311 | ac_status=$? | |
8312 | grep -v '^ *+' conftest.er1 >conftest.err | |
8313 | rm -f conftest.er1 | |
8314 | cat conftest.err >&5 | |
8315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8316 | (exit $ac_status); } && | |
8317 | { ac_try='test -z "$ac_c_werror_flag" | |
8318 | || test ! -s conftest.err' | |
8319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8320 | (eval $ac_try) 2>&5 | |
8321 | ac_status=$? | |
8322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8323 | (exit $ac_status); }; } && | |
8324 | { ac_try='test -s conftest$ac_exeext' | |
8325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8326 | (eval $ac_try) 2>&5 | |
8327 | ac_status=$? | |
8328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8329 | (exit $ac_status); }; }; then | |
8330 | ac_cv_search_tgetent="none required" | |
627af7ea | 8331 | else |
bec39cab AC |
8332 | echo "$as_me: failed program was:" >&5 |
8333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 8334 | |
627af7ea | 8335 | fi |
bec39cab AC |
8336 | rm -f conftest.err conftest.$ac_objext \ |
8337 | conftest$ac_exeext conftest.$ac_ext | |
8338 | if test "$ac_cv_search_tgetent" = no; then | |
8339 | for ac_lib in termcap tinfo curses ncurses; do | |
8340 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8341 | cat >conftest.$ac_ext <<_ACEOF | |
8342 | /* confdefs.h. */ | |
8343 | _ACEOF | |
8344 | cat confdefs.h >>conftest.$ac_ext | |
8345 | cat >>conftest.$ac_ext <<_ACEOF | |
8346 | /* end confdefs.h. */ | |
627af7ea | 8347 | |
bec39cab AC |
8348 | /* Override any gcc2 internal prototype to avoid an error. */ |
8349 | #ifdef __cplusplus | |
8350 | extern "C" | |
8351 | #endif | |
8352 | /* We use char because int might match the return type of a gcc2 | |
8353 | builtin and then its argument prototype would still apply. */ | |
8354 | char tgetent (); | |
8355 | int | |
8356 | main () | |
8357 | { | |
8358 | tgetent (); | |
8359 | ; | |
8360 | return 0; | |
8361 | } | |
8362 | _ACEOF | |
8363 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8365 | (eval $ac_link) 2>conftest.er1 | |
8366 | ac_status=$? | |
8367 | grep -v '^ *+' conftest.er1 >conftest.err | |
8368 | rm -f conftest.er1 | |
8369 | cat conftest.err >&5 | |
8370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8371 | (exit $ac_status); } && | |
8372 | { ac_try='test -z "$ac_c_werror_flag" | |
8373 | || test ! -s conftest.err' | |
8374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8375 | (eval $ac_try) 2>&5 | |
8376 | ac_status=$? | |
8377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8378 | (exit $ac_status); }; } && | |
8379 | { ac_try='test -s conftest$ac_exeext' | |
8380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8381 | (eval $ac_try) 2>&5 | |
8382 | ac_status=$? | |
8383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8384 | (exit $ac_status); }; }; then | |
8385 | ac_cv_search_tgetent="-l$ac_lib" | |
8386 | break | |
627af7ea | 8387 | else |
bec39cab AC |
8388 | echo "$as_me: failed program was:" >&5 |
8389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 8390 | |
627af7ea | 8391 | fi |
bec39cab AC |
8392 | rm -f conftest.err conftest.$ac_objext \ |
8393 | conftest$ac_exeext conftest.$ac_ext | |
8394 | done | |
8395 | fi | |
8396 | LIBS=$ac_func_search_save_LIBS | |
8397 | fi | |
8398 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 | |
8399 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
8400 | if test "$ac_cv_search_tgetent" != no; then | |
8401 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
627af7ea | 8402 | |
06825bd1 MK |
8403 | fi |
8404 | ||
06825bd1 | 8405 | |
bec39cab AC |
8406 | if test "$ac_cv_search_tgetent" = no; then |
8407 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 | |
8408 | echo "$as_me: error: no termcap library found" >&2;} | |
8409 | { (exit 1); exit 1; }; } | |
8ee53726 MK |
8410 | fi |
8411 | ||
bec39cab AC |
8412 | # ------------------------- # |
8413 | # Checks for header files. # | |
8414 | # ------------------------- # | |
8ee53726 | 8415 | |
0e5d83e3 | 8416 | |
bec39cab AC |
8417 | |
8418 | ||
8419 | ||
8420 | ||
8421 | ac_header_dirent=no | |
8422 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
8423 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
8424 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
8425 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
8426 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8428 | else | |
8429 | cat >conftest.$ac_ext <<_ACEOF | |
8430 | /* confdefs.h. */ | |
8431 | _ACEOF | |
8432 | cat confdefs.h >>conftest.$ac_ext | |
8433 | cat >>conftest.$ac_ext <<_ACEOF | |
8434 | /* end confdefs.h. */ | |
8435 | #include <sys/types.h> | |
0e5d83e3 | 8436 | #include <$ac_hdr> |
bec39cab AC |
8437 | |
8438 | int | |
8439 | main () | |
8440 | { | |
8441 | if ((DIR *) 0) | |
8442 | return 0; | |
8443 | ; | |
8444 | return 0; | |
8445 | } | |
8446 | _ACEOF | |
8447 | rm -f conftest.$ac_objext | |
8448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8449 | (eval $ac_compile) 2>conftest.er1 | |
8450 | ac_status=$? | |
8451 | grep -v '^ *+' conftest.er1 >conftest.err | |
8452 | rm -f conftest.er1 | |
8453 | cat conftest.err >&5 | |
8454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8455 | (exit $ac_status); } && | |
8456 | { ac_try='test -z "$ac_c_werror_flag" | |
8457 | || test ! -s conftest.err' | |
8458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8459 | (eval $ac_try) 2>&5 | |
8460 | ac_status=$? | |
8461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8462 | (exit $ac_status); }; } && | |
8463 | { ac_try='test -s conftest.$ac_objext' | |
8464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8465 | (eval $ac_try) 2>&5 | |
8466 | ac_status=$? | |
8467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8468 | (exit $ac_status); }; }; then | |
8469 | eval "$as_ac_Header=yes" | |
8470 | else | |
8471 | echo "$as_me: failed program was:" >&5 | |
8472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8473 | ||
8474 | eval "$as_ac_Header=no" | |
8475 | fi | |
8476 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8477 | fi | |
8478 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8479 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8480 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8481 | cat >>confdefs.h <<_ACEOF | |
8482 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
8483 | _ACEOF | |
8484 | ||
8485 | ac_header_dirent=$ac_hdr; break | |
0e5d83e3 | 8486 | fi |
0e5d83e3 | 8487 | |
bec39cab AC |
8488 | done |
8489 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
8490 | if test $ac_header_dirent = dirent.h; then | |
8491 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
8492 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
8493 | if test "${ac_cv_search_opendir+set}" = set; then | |
8494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8495 | else | |
8496 | ac_func_search_save_LIBS=$LIBS | |
8497 | ac_cv_search_opendir=no | |
8498 | cat >conftest.$ac_ext <<_ACEOF | |
8499 | /* confdefs.h. */ | |
8500 | _ACEOF | |
8501 | cat confdefs.h >>conftest.$ac_ext | |
8502 | cat >>conftest.$ac_ext <<_ACEOF | |
8503 | /* end confdefs.h. */ | |
0e5d83e3 | 8504 | |
bec39cab AC |
8505 | /* Override any gcc2 internal prototype to avoid an error. */ |
8506 | #ifdef __cplusplus | |
8507 | extern "C" | |
8508 | #endif | |
8509 | /* We use char because int might match the return type of a gcc2 | |
8510 | builtin and then its argument prototype would still apply. */ | |
8511 | char opendir (); | |
8512 | int | |
8513 | main () | |
8514 | { | |
8515 | opendir (); | |
8516 | ; | |
8517 | return 0; | |
8518 | } | |
8519 | _ACEOF | |
8520 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8522 | (eval $ac_link) 2>conftest.er1 | |
8523 | ac_status=$? | |
8524 | grep -v '^ *+' conftest.er1 >conftest.err | |
8525 | rm -f conftest.er1 | |
8526 | cat conftest.err >&5 | |
8527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8528 | (exit $ac_status); } && | |
8529 | { ac_try='test -z "$ac_c_werror_flag" | |
8530 | || test ! -s conftest.err' | |
8531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8532 | (eval $ac_try) 2>&5 | |
8533 | ac_status=$? | |
8534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8535 | (exit $ac_status); }; } && | |
8536 | { ac_try='test -s conftest$ac_exeext' | |
8537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8538 | (eval $ac_try) 2>&5 | |
8539 | ac_status=$? | |
8540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8541 | (exit $ac_status); }; }; then | |
8542 | ac_cv_search_opendir="none required" | |
8543 | else | |
8544 | echo "$as_me: failed program was:" >&5 | |
8545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8546 | ||
8547 | fi | |
8548 | rm -f conftest.err conftest.$ac_objext \ | |
8549 | conftest$ac_exeext conftest.$ac_ext | |
8550 | if test "$ac_cv_search_opendir" = no; then | |
8551 | for ac_lib in dir; do | |
8552 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8553 | cat >conftest.$ac_ext <<_ACEOF | |
8554 | /* confdefs.h. */ | |
8555 | _ACEOF | |
8556 | cat confdefs.h >>conftest.$ac_ext | |
8557 | cat >>conftest.$ac_ext <<_ACEOF | |
8558 | /* end confdefs.h. */ | |
0e5d83e3 | 8559 | |
bec39cab AC |
8560 | /* Override any gcc2 internal prototype to avoid an error. */ |
8561 | #ifdef __cplusplus | |
8562 | extern "C" | |
8563 | #endif | |
8564 | /* We use char because int might match the return type of a gcc2 | |
8565 | builtin and then its argument prototype would still apply. */ | |
8566 | char opendir (); | |
8567 | int | |
8568 | main () | |
8569 | { | |
8570 | opendir (); | |
8571 | ; | |
8572 | return 0; | |
8573 | } | |
8574 | _ACEOF | |
8575 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8576 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8577 | (eval $ac_link) 2>conftest.er1 | |
8578 | ac_status=$? | |
8579 | grep -v '^ *+' conftest.er1 >conftest.err | |
8580 | rm -f conftest.er1 | |
8581 | cat conftest.err >&5 | |
8582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8583 | (exit $ac_status); } && | |
8584 | { ac_try='test -z "$ac_c_werror_flag" | |
8585 | || test ! -s conftest.err' | |
8586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8587 | (eval $ac_try) 2>&5 | |
8588 | ac_status=$? | |
8589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8590 | (exit $ac_status); }; } && | |
8591 | { ac_try='test -s conftest$ac_exeext' | |
8592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8593 | (eval $ac_try) 2>&5 | |
8594 | ac_status=$? | |
8595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8596 | (exit $ac_status); }; }; then | |
8597 | ac_cv_search_opendir="-l$ac_lib" | |
8598 | break | |
0e5d83e3 | 8599 | else |
bec39cab AC |
8600 | echo "$as_me: failed program was:" >&5 |
8601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0e5d83e3 | 8602 | |
0e5d83e3 | 8603 | fi |
bec39cab AC |
8604 | rm -f conftest.err conftest.$ac_objext \ |
8605 | conftest$ac_exeext conftest.$ac_ext | |
8606 | done | |
0e5d83e3 | 8607 | fi |
bec39cab | 8608 | LIBS=$ac_func_search_save_LIBS |
0e5d83e3 | 8609 | fi |
bec39cab AC |
8610 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
8611 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
8612 | if test "$ac_cv_search_opendir" != no; then | |
8613 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
0e5d83e3 | 8614 | |
0e5d83e3 JJ |
8615 | fi |
8616 | ||
d28f9cdf | 8617 | else |
bec39cab AC |
8618 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
8619 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
8620 | if test "${ac_cv_search_opendir+set}" = set; then | |
8621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8622 | else | |
8623 | ac_func_search_save_LIBS=$LIBS | |
8624 | ac_cv_search_opendir=no | |
8625 | cat >conftest.$ac_ext <<_ACEOF | |
8626 | /* confdefs.h. */ | |
8627 | _ACEOF | |
8628 | cat confdefs.h >>conftest.$ac_ext | |
8629 | cat >>conftest.$ac_ext <<_ACEOF | |
8630 | /* end confdefs.h. */ | |
d28f9cdf | 8631 | |
d28f9cdf | 8632 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
8633 | #ifdef __cplusplus |
8634 | extern "C" | |
8635 | #endif | |
d28f9cdf | 8636 | /* We use char because int might match the return type of a gcc2 |
bec39cab AC |
8637 | builtin and then its argument prototype would still apply. */ |
8638 | char opendir (); | |
8639 | int | |
8640 | main () | |
8641 | { | |
8642 | opendir (); | |
8643 | ; | |
8644 | return 0; | |
8645 | } | |
8646 | _ACEOF | |
8647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8649 | (eval $ac_link) 2>conftest.er1 | |
8650 | ac_status=$? | |
8651 | grep -v '^ *+' conftest.er1 >conftest.err | |
8652 | rm -f conftest.er1 | |
8653 | cat conftest.err >&5 | |
8654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8655 | (exit $ac_status); } && | |
8656 | { ac_try='test -z "$ac_c_werror_flag" | |
8657 | || test ! -s conftest.err' | |
8658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8659 | (eval $ac_try) 2>&5 | |
8660 | ac_status=$? | |
8661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8662 | (exit $ac_status); }; } && | |
8663 | { ac_try='test -s conftest$ac_exeext' | |
8664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8665 | (eval $ac_try) 2>&5 | |
8666 | ac_status=$? | |
8667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8668 | (exit $ac_status); }; }; then | |
8669 | ac_cv_search_opendir="none required" | |
8670 | else | |
8671 | echo "$as_me: failed program was:" >&5 | |
8672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8673 | ||
8674 | fi | |
8675 | rm -f conftest.err conftest.$ac_objext \ | |
8676 | conftest$ac_exeext conftest.$ac_ext | |
8677 | if test "$ac_cv_search_opendir" = no; then | |
8678 | for ac_lib in x; do | |
8679 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8680 | cat >conftest.$ac_ext <<_ACEOF | |
8681 | /* confdefs.h. */ | |
8682 | _ACEOF | |
8683 | cat confdefs.h >>conftest.$ac_ext | |
8684 | cat >>conftest.$ac_ext <<_ACEOF | |
8685 | /* end confdefs.h. */ | |
d28f9cdf | 8686 | |
bec39cab AC |
8687 | /* Override any gcc2 internal prototype to avoid an error. */ |
8688 | #ifdef __cplusplus | |
8689 | extern "C" | |
d28f9cdf | 8690 | #endif |
bec39cab AC |
8691 | /* We use char because int might match the return type of a gcc2 |
8692 | builtin and then its argument prototype would still apply. */ | |
8693 | char opendir (); | |
8694 | int | |
8695 | main () | |
8696 | { | |
8697 | opendir (); | |
8698 | ; | |
8699 | return 0; | |
8700 | } | |
8701 | _ACEOF | |
8702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8704 | (eval $ac_link) 2>conftest.er1 | |
8705 | ac_status=$? | |
8706 | grep -v '^ *+' conftest.er1 >conftest.err | |
8707 | rm -f conftest.er1 | |
8708 | cat conftest.err >&5 | |
8709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8710 | (exit $ac_status); } && | |
8711 | { ac_try='test -z "$ac_c_werror_flag" | |
8712 | || test ! -s conftest.err' | |
8713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8714 | (eval $ac_try) 2>&5 | |
8715 | ac_status=$? | |
8716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8717 | (exit $ac_status); }; } && | |
8718 | { ac_try='test -s conftest$ac_exeext' | |
8719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8720 | (eval $ac_try) 2>&5 | |
8721 | ac_status=$? | |
8722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8723 | (exit $ac_status); }; }; then | |
8724 | ac_cv_search_opendir="-l$ac_lib" | |
8725 | break | |
d28f9cdf | 8726 | else |
bec39cab AC |
8727 | echo "$as_me: failed program was:" >&5 |
8728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8729 | ||
d28f9cdf | 8730 | fi |
bec39cab AC |
8731 | rm -f conftest.err conftest.$ac_objext \ |
8732 | conftest$ac_exeext conftest.$ac_ext | |
8733 | done | |
8734 | fi | |
8735 | LIBS=$ac_func_search_save_LIBS | |
d28f9cdf | 8736 | fi |
bec39cab AC |
8737 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
8738 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
8739 | if test "$ac_cv_search_opendir" != no; then | |
8740 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
d28f9cdf | 8741 | |
d28f9cdf DJ |
8742 | fi |
8743 | ||
bec39cab | 8744 | fi |
b0b1c2c0 | 8745 | |
bec39cab AC |
8746 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
8747 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 | |
8748 | if test "${ac_cv_header_stat_broken+set}" = set; then | |
8749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b0b1c2c0 | 8750 | else |
bec39cab AC |
8751 | cat >conftest.$ac_ext <<_ACEOF |
8752 | /* confdefs.h. */ | |
8753 | _ACEOF | |
8754 | cat confdefs.h >>conftest.$ac_ext | |
8755 | cat >>conftest.$ac_ext <<_ACEOF | |
8756 | /* end confdefs.h. */ | |
8757 | #include <sys/types.h> | |
8758 | #include <sys/stat.h> | |
b0b1c2c0 | 8759 | |
bec39cab AC |
8760 | #if defined(S_ISBLK) && defined(S_IFDIR) |
8761 | # if S_ISBLK (S_IFDIR) | |
8762 | You lose. | |
8763 | # endif | |
8764 | #endif | |
b0b1c2c0 | 8765 | |
bec39cab AC |
8766 | #if defined(S_ISBLK) && defined(S_IFCHR) |
8767 | # if S_ISBLK (S_IFCHR) | |
8768 | You lose. | |
8769 | # endif | |
8770 | #endif | |
d28f9cdf | 8771 | |
bec39cab AC |
8772 | #if defined(S_ISLNK) && defined(S_IFREG) |
8773 | # if S_ISLNK (S_IFREG) | |
8774 | You lose. | |
8775 | # endif | |
8776 | #endif | |
d28f9cdf | 8777 | |
bec39cab AC |
8778 | #if defined(S_ISSOCK) && defined(S_IFREG) |
8779 | # if S_ISSOCK (S_IFREG) | |
8780 | You lose. | |
8781 | # endif | |
8782 | #endif | |
8783 | ||
8784 | _ACEOF | |
8785 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8786 | $EGREP "You lose" >/dev/null 2>&1; then | |
8787 | ac_cv_header_stat_broken=yes | |
d28f9cdf | 8788 | else |
bec39cab | 8789 | ac_cv_header_stat_broken=no |
d28f9cdf DJ |
8790 | fi |
8791 | rm -f conftest* | |
d28f9cdf | 8792 | |
d28f9cdf | 8793 | fi |
bec39cab AC |
8794 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
8795 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 | |
8796 | if test $ac_cv_header_stat_broken = yes; then | |
d28f9cdf | 8797 | |
bec39cab AC |
8798 | cat >>confdefs.h <<\_ACEOF |
8799 | #define STAT_MACROS_BROKEN 1 | |
8800 | _ACEOF | |
8bb2c122 | 8801 | |
7a292a7a | 8802 | fi |
bec39cab AC |
8803 | |
8804 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
8805 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
8806 | if test "${ac_cv_header_stdc+set}" = set; then | |
8807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7a292a7a | 8808 | else |
bec39cab AC |
8809 | cat >conftest.$ac_ext <<_ACEOF |
8810 | /* confdefs.h. */ | |
8811 | _ACEOF | |
8812 | cat confdefs.h >>conftest.$ac_ext | |
8813 | cat >>conftest.$ac_ext <<_ACEOF | |
8814 | /* end confdefs.h. */ | |
8815 | #include <stdlib.h> | |
8816 | #include <stdarg.h> | |
8817 | #include <string.h> | |
8818 | #include <float.h> | |
7a292a7a | 8819 | |
bec39cab AC |
8820 | int |
8821 | main () | |
8822 | { | |
7a292a7a | 8823 | |
bec39cab AC |
8824 | ; |
8825 | return 0; | |
8826 | } | |
8827 | _ACEOF | |
8828 | rm -f conftest.$ac_objext | |
8829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8830 | (eval $ac_compile) 2>conftest.er1 | |
8831 | ac_status=$? | |
8832 | grep -v '^ *+' conftest.er1 >conftest.err | |
8833 | rm -f conftest.er1 | |
8834 | cat conftest.err >&5 | |
8835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8836 | (exit $ac_status); } && | |
8837 | { ac_try='test -z "$ac_c_werror_flag" | |
8838 | || test ! -s conftest.err' | |
8839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8840 | (eval $ac_try) 2>&5 | |
8841 | ac_status=$? | |
8842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8843 | (exit $ac_status); }; } && | |
8844 | { ac_try='test -s conftest.$ac_objext' | |
8845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8846 | (eval $ac_try) 2>&5 | |
8847 | ac_status=$? | |
8848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8849 | (exit $ac_status); }; }; then | |
8850 | ac_cv_header_stdc=yes | |
c906108c | 8851 | else |
bec39cab AC |
8852 | echo "$as_me: failed program was:" >&5 |
8853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8854 | |
bec39cab | 8855 | ac_cv_header_stdc=no |
c906108c | 8856 | fi |
bec39cab | 8857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 8858 | |
bec39cab AC |
8859 | if test $ac_cv_header_stdc = yes; then |
8860 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8861 | cat >conftest.$ac_ext <<_ACEOF | |
8862 | /* confdefs.h. */ | |
8863 | _ACEOF | |
8864 | cat confdefs.h >>conftest.$ac_ext | |
8865 | cat >>conftest.$ac_ext <<_ACEOF | |
8866 | /* end confdefs.h. */ | |
8867 | #include <string.h> | |
c906108c | 8868 | |
bec39cab AC |
8869 | _ACEOF |
8870 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8871 | $EGREP "memchr" >/dev/null 2>&1; then | |
8872 | : | |
8bb2c122 | 8873 | else |
bec39cab | 8874 | ac_cv_header_stdc=no |
8bb2c122 | 8875 | fi |
bec39cab AC |
8876 | rm -f conftest* |
8877 | ||
c906108c SS |
8878 | fi |
8879 | ||
bec39cab AC |
8880 | if test $ac_cv_header_stdc = yes; then |
8881 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8882 | cat >conftest.$ac_ext <<_ACEOF | |
8883 | /* confdefs.h. */ | |
8884 | _ACEOF | |
8885 | cat confdefs.h >>conftest.$ac_ext | |
8886 | cat >>conftest.$ac_ext <<_ACEOF | |
8887 | /* end confdefs.h. */ | |
8888 | #include <stdlib.h> | |
8889 | ||
8890 | _ACEOF | |
8891 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8892 | $EGREP "free" >/dev/null 2>&1; then | |
8893 | : | |
c906108c | 8894 | else |
bec39cab | 8895 | ac_cv_header_stdc=no |
c906108c | 8896 | fi |
bec39cab AC |
8897 | rm -f conftest* |
8898 | ||
c906108c SS |
8899 | fi |
8900 | ||
bec39cab AC |
8901 | if test $ac_cv_header_stdc = yes; then |
8902 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8903 | if test "$cross_compiling" = yes; then | |
8904 | : | |
c906108c | 8905 | else |
bec39cab AC |
8906 | cat >conftest.$ac_ext <<_ACEOF |
8907 | /* confdefs.h. */ | |
8908 | _ACEOF | |
8909 | cat confdefs.h >>conftest.$ac_ext | |
8910 | cat >>conftest.$ac_ext <<_ACEOF | |
8911 | /* end confdefs.h. */ | |
8912 | #include <ctype.h> | |
8913 | #if ((' ' & 0x0FF) == 0x020) | |
8914 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8915 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8916 | #else | |
8917 | # define ISLOWER(c) \ | |
8918 | (('a' <= (c) && (c) <= 'i') \ | |
8919 | || ('j' <= (c) && (c) <= 'r') \ | |
8920 | || ('s' <= (c) && (c) <= 'z')) | |
8921 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8922 | #endif | |
8923 | ||
8924 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8925 | int | |
8926 | main () | |
8927 | { | |
8928 | int i; | |
8929 | for (i = 0; i < 256; i++) | |
8930 | if (XOR (islower (i), ISLOWER (i)) | |
8931 | || toupper (i) != TOUPPER (i)) | |
8932 | exit(2); | |
8933 | exit (0); | |
8934 | } | |
8935 | _ACEOF | |
8936 | rm -f conftest$ac_exeext | |
8937 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8938 | (eval $ac_link) 2>&5 | |
8939 | ac_status=$? | |
8940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8941 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8943 | (eval $ac_try) 2>&5 | |
8944 | ac_status=$? | |
8945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8946 | (exit $ac_status); }; }; then | |
8947 | : | |
8948 | else | |
8949 | echo "$as_me: program exited with status $ac_status" >&5 | |
8950 | echo "$as_me: failed program was:" >&5 | |
8951 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8952 | ||
8953 | ( exit $ac_status ) | |
8954 | ac_cv_header_stdc=no | |
c906108c | 8955 | fi |
bec39cab | 8956 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 8957 | fi |
c906108c | 8958 | fi |
bec39cab AC |
8959 | fi |
8960 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
8961 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
8962 | if test $ac_cv_header_stdc = yes; then | |
c906108c | 8963 | |
bec39cab AC |
8964 | cat >>confdefs.h <<\_ACEOF |
8965 | #define STDC_HEADERS 1 | |
8966 | _ACEOF | |
c906108c | 8967 | |
bec39cab | 8968 | fi |
8bb2c122 | 8969 | |
bec39cab | 8970 | |
7cb9022a | 8971 | for ac_header in nlist.h |
bec39cab AC |
8972 | do |
8973 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8974 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8975 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8976 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8977 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8979 | fi | |
8980 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8981 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8982 | else | |
8983 | # Is the header compilable? | |
8984 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8985 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8986 | cat >conftest.$ac_ext <<_ACEOF | |
8987 | /* confdefs.h. */ | |
8988 | _ACEOF | |
8989 | cat confdefs.h >>conftest.$ac_ext | |
8990 | cat >>conftest.$ac_ext <<_ACEOF | |
8991 | /* end confdefs.h. */ | |
8992 | $ac_includes_default | |
8993 | #include <$ac_header> | |
8994 | _ACEOF | |
8995 | rm -f conftest.$ac_objext | |
8996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8997 | (eval $ac_compile) 2>conftest.er1 | |
8998 | ac_status=$? | |
8999 | grep -v '^ *+' conftest.er1 >conftest.err | |
9000 | rm -f conftest.er1 | |
9001 | cat conftest.err >&5 | |
9002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9003 | (exit $ac_status); } && | |
9004 | { ac_try='test -z "$ac_c_werror_flag" | |
9005 | || test ! -s conftest.err' | |
9006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9007 | (eval $ac_try) 2>&5 | |
9008 | ac_status=$? | |
9009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9010 | (exit $ac_status); }; } && | |
9011 | { ac_try='test -s conftest.$ac_objext' | |
9012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9013 | (eval $ac_try) 2>&5 | |
9014 | ac_status=$? | |
9015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9016 | (exit $ac_status); }; }; then | |
9017 | ac_header_compiler=yes | |
9018 | else | |
9019 | echo "$as_me: failed program was:" >&5 | |
9020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9021 | ||
9022 | ac_header_compiler=no | |
9023 | fi | |
9024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9025 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9026 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9027 | ||
9028 | # Is the header present? | |
9029 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9030 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9031 | cat >conftest.$ac_ext <<_ACEOF | |
9032 | /* confdefs.h. */ | |
9033 | _ACEOF | |
9034 | cat confdefs.h >>conftest.$ac_ext | |
9035 | cat >>conftest.$ac_ext <<_ACEOF | |
9036 | /* end confdefs.h. */ | |
9037 | #include <$ac_header> | |
9038 | _ACEOF | |
9039 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9040 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9041 | ac_status=$? | |
9042 | grep -v '^ *+' conftest.er1 >conftest.err | |
9043 | rm -f conftest.er1 | |
9044 | cat conftest.err >&5 | |
9045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9046 | (exit $ac_status); } >/dev/null; then | |
9047 | if test -s conftest.err; then | |
9048 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9049 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9050 | else | |
9051 | ac_cpp_err= | |
9052 | fi | |
c906108c | 9053 | else |
bec39cab | 9054 | ac_cpp_err=yes |
c906108c | 9055 | fi |
bec39cab AC |
9056 | if test -z "$ac_cpp_err"; then |
9057 | ac_header_preproc=yes | |
c906108c | 9058 | else |
bec39cab AC |
9059 | echo "$as_me: failed program was:" >&5 |
9060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 9061 | |
bec39cab AC |
9062 | ac_header_preproc=no |
9063 | fi | |
9064 | rm -f conftest.err conftest.$ac_ext | |
9065 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9066 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 9067 | |
bec39cab AC |
9068 | # So? What about this header? |
9069 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9070 | yes:no: ) | |
9071 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9072 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9073 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9074 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9075 | ac_header_preproc=yes | |
9076 | ;; | |
9077 | no:yes:* ) | |
9078 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9079 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9080 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9081 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9082 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9083 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9084 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9085 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9086 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9087 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9088 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9089 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9090 | ( | |
9091 | cat <<\_ASBOX | |
9092 | ## ------------------------------------------ ## | |
9093 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9094 | ## ------------------------------------------ ## | |
9095 | _ASBOX | |
9096 | ) | | |
9097 | sed "s/^/$as_me: WARNING: /" >&2 | |
9098 | ;; | |
9099 | esac | |
9100 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9101 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9102 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
95ca63c4 | 9104 | else |
bec39cab | 9105 | eval "$as_ac_Header=\$ac_header_preproc" |
95ca63c4 | 9106 | fi |
bec39cab AC |
9107 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9108 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9109 | ||
95ca63c4 | 9110 | fi |
bec39cab AC |
9111 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9112 | cat >>confdefs.h <<_ACEOF | |
9113 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9114 | _ACEOF | |
9115 | ||
95ca63c4 CF |
9116 | fi |
9117 | ||
bec39cab | 9118 | done |
95ca63c4 CF |
9119 | |
9120 | ||
7cb9022a | 9121 | for ac_header in link.h |
bec39cab AC |
9122 | do |
9123 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7cb9022a | 9124 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
bec39cab AC |
9125 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
9126 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 9128 | else |
7cb9022a | 9129 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
9130 | /* confdefs.h. */ |
9131 | _ACEOF | |
9132 | cat confdefs.h >>conftest.$ac_ext | |
9133 | cat >>conftest.$ac_ext <<_ACEOF | |
9134 | /* end confdefs.h. */ | |
7cb9022a MK |
9135 | #if HAVE_SYS_TYPES_H |
9136 | # include <sys/types.h> | |
9137 | #endif | |
9138 | #if HAVE_NLIST_H | |
9139 | # include <nlist.h> | |
9140 | #endif | |
9141 | ||
9142 | ||
bec39cab AC |
9143 | #include <$ac_header> |
9144 | _ACEOF | |
9145 | rm -f conftest.$ac_objext | |
9146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9147 | (eval $ac_compile) 2>conftest.er1 | |
9148 | ac_status=$? | |
9149 | grep -v '^ *+' conftest.er1 >conftest.err | |
9150 | rm -f conftest.er1 | |
9151 | cat conftest.err >&5 | |
9152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9153 | (exit $ac_status); } && | |
9154 | { ac_try='test -z "$ac_c_werror_flag" | |
9155 | || test ! -s conftest.err' | |
9156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9157 | (eval $ac_try) 2>&5 | |
9158 | ac_status=$? | |
9159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9160 | (exit $ac_status); }; } && | |
9161 | { ac_try='test -s conftest.$ac_objext' | |
9162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9163 | (eval $ac_try) 2>&5 | |
9164 | ac_status=$? | |
9165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9166 | (exit $ac_status); }; }; then | |
7cb9022a | 9167 | eval "$as_ac_Header=yes" |
bec39cab AC |
9168 | else |
9169 | echo "$as_me: failed program was:" >&5 | |
9170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9171 | ||
7cb9022a | 9172 | eval "$as_ac_Header=no" |
bec39cab AC |
9173 | fi |
9174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab AC |
9175 | fi |
9176 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9177 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9178 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9179 | cat >>confdefs.h <<_ACEOF | |
9180 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9181 | _ACEOF | |
95ca63c4 | 9182 | |
bec39cab | 9183 | fi |
95ca63c4 | 9184 | |
bec39cab | 9185 | done |
95ca63c4 | 9186 | |
c906108c | 9187 | |
7cb9022a | 9188 | for ac_header in machine/reg.h |
bec39cab AC |
9189 | do |
9190 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9191 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9192 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9193 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9194 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9196 | fi | |
9197 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9198 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9199 | else | |
9200 | # Is the header compilable? | |
9201 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9202 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9203 | cat >conftest.$ac_ext <<_ACEOF | |
9204 | /* confdefs.h. */ | |
9205 | _ACEOF | |
9206 | cat confdefs.h >>conftest.$ac_ext | |
9207 | cat >>conftest.$ac_ext <<_ACEOF | |
9208 | /* end confdefs.h. */ | |
9209 | $ac_includes_default | |
9210 | #include <$ac_header> | |
9211 | _ACEOF | |
9212 | rm -f conftest.$ac_objext | |
9213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9214 | (eval $ac_compile) 2>conftest.er1 | |
9215 | ac_status=$? | |
9216 | grep -v '^ *+' conftest.er1 >conftest.err | |
9217 | rm -f conftest.er1 | |
9218 | cat conftest.err >&5 | |
9219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9220 | (exit $ac_status); } && | |
9221 | { ac_try='test -z "$ac_c_werror_flag" | |
9222 | || test ! -s conftest.err' | |
9223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9224 | (eval $ac_try) 2>&5 | |
9225 | ac_status=$? | |
9226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9227 | (exit $ac_status); }; } && | |
9228 | { ac_try='test -s conftest.$ac_objext' | |
9229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9230 | (eval $ac_try) 2>&5 | |
9231 | ac_status=$? | |
9232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9233 | (exit $ac_status); }; }; then | |
9234 | ac_header_compiler=yes | |
9235 | else | |
9236 | echo "$as_me: failed program was:" >&5 | |
9237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9238 | ||
9239 | ac_header_compiler=no | |
9240 | fi | |
9241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9242 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9243 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9244 | ||
9245 | # Is the header present? | |
9246 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9247 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9248 | cat >conftest.$ac_ext <<_ACEOF | |
9249 | /* confdefs.h. */ | |
9250 | _ACEOF | |
9251 | cat confdefs.h >>conftest.$ac_ext | |
9252 | cat >>conftest.$ac_ext <<_ACEOF | |
9253 | /* end confdefs.h. */ | |
9254 | #include <$ac_header> | |
9255 | _ACEOF | |
9256 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9257 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9258 | ac_status=$? | |
9259 | grep -v '^ *+' conftest.er1 >conftest.err | |
9260 | rm -f conftest.er1 | |
9261 | cat conftest.err >&5 | |
9262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9263 | (exit $ac_status); } >/dev/null; then | |
9264 | if test -s conftest.err; then | |
9265 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9266 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9267 | else | |
9268 | ac_cpp_err= | |
9269 | fi | |
75c6e08a | 9270 | else |
bec39cab | 9271 | ac_cpp_err=yes |
75c6e08a | 9272 | fi |
bec39cab AC |
9273 | if test -z "$ac_cpp_err"; then |
9274 | ac_header_preproc=yes | |
9275 | else | |
9276 | echo "$as_me: failed program was:" >&5 | |
9277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9278 | ||
9279 | ac_header_preproc=no | |
75c6e08a | 9280 | fi |
bec39cab AC |
9281 | rm -f conftest.err conftest.$ac_ext |
9282 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9283 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9284 | ||
9285 | # So? What about this header? | |
9286 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9287 | yes:no: ) | |
9288 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9289 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9290 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9291 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9292 | ac_header_preproc=yes | |
9293 | ;; | |
9294 | no:yes:* ) | |
9295 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9296 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9297 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9298 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9299 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9300 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9301 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9302 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9304 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9305 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9306 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9307 | ( | |
9308 | cat <<\_ASBOX | |
9309 | ## ------------------------------------------ ## | |
9310 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9311 | ## ------------------------------------------ ## | |
9312 | _ASBOX | |
9313 | ) | | |
9314 | sed "s/^/$as_me: WARNING: /" >&2 | |
9315 | ;; | |
9316 | esac | |
9317 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9318 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9319 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9320 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
75c6e08a | 9321 | else |
bec39cab AC |
9322 | eval "$as_ac_Header=\$ac_header_preproc" |
9323 | fi | |
9324 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9325 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9326 | ||
75c6e08a | 9327 | fi |
bec39cab AC |
9328 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9329 | cat >>confdefs.h <<_ACEOF | |
9330 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9331 | _ACEOF | |
75c6e08a | 9332 | |
bec39cab | 9333 | fi |
75c6e08a | 9334 | |
bec39cab | 9335 | done |
75c6e08a MK |
9336 | |
9337 | ||
9a156167 | 9338 | |
bec39cab AC |
9339 | for ac_header in poll.h sys/poll.h |
9340 | do | |
9341 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9342 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9343 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9344 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9345 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9347 | fi | |
9348 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9349 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9350 | else | |
9351 | # Is the header compilable? | |
9352 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9353 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9354 | cat >conftest.$ac_ext <<_ACEOF | |
9355 | /* confdefs.h. */ | |
9356 | _ACEOF | |
9357 | cat confdefs.h >>conftest.$ac_ext | |
9358 | cat >>conftest.$ac_ext <<_ACEOF | |
9359 | /* end confdefs.h. */ | |
9360 | $ac_includes_default | |
9361 | #include <$ac_header> | |
9362 | _ACEOF | |
9363 | rm -f conftest.$ac_objext | |
9364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9365 | (eval $ac_compile) 2>conftest.er1 | |
9366 | ac_status=$? | |
9367 | grep -v '^ *+' conftest.er1 >conftest.err | |
9368 | rm -f conftest.er1 | |
9369 | cat conftest.err >&5 | |
9370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9371 | (exit $ac_status); } && | |
9372 | { ac_try='test -z "$ac_c_werror_flag" | |
9373 | || test ! -s conftest.err' | |
9374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9375 | (eval $ac_try) 2>&5 | |
9376 | ac_status=$? | |
9377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9378 | (exit $ac_status); }; } && | |
9379 | { ac_try='test -s conftest.$ac_objext' | |
9380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9381 | (eval $ac_try) 2>&5 | |
9382 | ac_status=$? | |
9383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9384 | (exit $ac_status); }; }; then | |
9385 | ac_header_compiler=yes | |
9386 | else | |
9387 | echo "$as_me: failed program was:" >&5 | |
9388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9389 | ||
9390 | ac_header_compiler=no | |
9391 | fi | |
9392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9393 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9394 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9395 | ||
9396 | # Is the header present? | |
9397 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9398 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9399 | cat >conftest.$ac_ext <<_ACEOF | |
9400 | /* confdefs.h. */ | |
9401 | _ACEOF | |
9402 | cat confdefs.h >>conftest.$ac_ext | |
9403 | cat >>conftest.$ac_ext <<_ACEOF | |
9404 | /* end confdefs.h. */ | |
9405 | #include <$ac_header> | |
9406 | _ACEOF | |
9407 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9408 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9409 | ac_status=$? | |
9410 | grep -v '^ *+' conftest.er1 >conftest.err | |
9411 | rm -f conftest.er1 | |
9412 | cat conftest.err >&5 | |
9413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9414 | (exit $ac_status); } >/dev/null; then | |
9415 | if test -s conftest.err; then | |
9416 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9417 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9418 | else | |
9419 | ac_cpp_err= | |
9420 | fi | |
9a156167 | 9421 | else |
bec39cab | 9422 | ac_cpp_err=yes |
9a156167 | 9423 | fi |
bec39cab AC |
9424 | if test -z "$ac_cpp_err"; then |
9425 | ac_header_preproc=yes | |
9426 | else | |
9427 | echo "$as_me: failed program was:" >&5 | |
9428 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 9429 | |
bec39cab | 9430 | ac_header_preproc=no |
9a156167 | 9431 | fi |
bec39cab AC |
9432 | rm -f conftest.err conftest.$ac_ext |
9433 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9434 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 9435 | |
bec39cab AC |
9436 | # So? What about this header? |
9437 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9438 | yes:no: ) | |
9439 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9440 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9441 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9442 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9443 | ac_header_preproc=yes | |
9444 | ;; | |
9445 | no:yes:* ) | |
9446 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9447 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9448 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9449 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9450 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9451 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9452 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9453 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9454 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9455 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9456 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9457 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9458 | ( | |
9459 | cat <<\_ASBOX | |
9460 | ## ------------------------------------------ ## | |
9461 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9462 | ## ------------------------------------------ ## | |
9463 | _ASBOX | |
9464 | ) | | |
9465 | sed "s/^/$as_me: WARNING: /" >&2 | |
9466 | ;; | |
9467 | esac | |
9468 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9469 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9470 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9a156167 | 9472 | else |
bec39cab | 9473 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 9474 | fi |
bec39cab AC |
9475 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9476 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 | 9477 | |
bec39cab AC |
9478 | fi |
9479 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9480 | cat >>confdefs.h <<_ACEOF | |
9481 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9482 | _ACEOF | |
9a156167 | 9483 | |
bec39cab | 9484 | fi |
9a156167 | 9485 | |
bec39cab | 9486 | done |
9a156167 | 9487 | |
9a156167 | 9488 | |
9a156167 | 9489 | |
bec39cab AC |
9490 | |
9491 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h | |
9492 | do | |
9493 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9494 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9495 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9496 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9497 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9499 | fi | |
9500 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9501 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9502 | else | |
9503 | # Is the header compilable? | |
9504 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9505 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9506 | cat >conftest.$ac_ext <<_ACEOF | |
9507 | /* confdefs.h. */ | |
9508 | _ACEOF | |
9509 | cat confdefs.h >>conftest.$ac_ext | |
9510 | cat >>conftest.$ac_ext <<_ACEOF | |
9511 | /* end confdefs.h. */ | |
9512 | $ac_includes_default | |
9513 | #include <$ac_header> | |
9514 | _ACEOF | |
9515 | rm -f conftest.$ac_objext | |
9516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9517 | (eval $ac_compile) 2>conftest.er1 | |
9518 | ac_status=$? | |
9519 | grep -v '^ *+' conftest.er1 >conftest.err | |
9520 | rm -f conftest.er1 | |
9521 | cat conftest.err >&5 | |
9522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9523 | (exit $ac_status); } && | |
9524 | { ac_try='test -z "$ac_c_werror_flag" | |
9525 | || test ! -s conftest.err' | |
9526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9527 | (eval $ac_try) 2>&5 | |
9528 | ac_status=$? | |
9529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9530 | (exit $ac_status); }; } && | |
9531 | { ac_try='test -s conftest.$ac_objext' | |
9532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9533 | (eval $ac_try) 2>&5 | |
9534 | ac_status=$? | |
9535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9536 | (exit $ac_status); }; }; then | |
9537 | ac_header_compiler=yes | |
9538 | else | |
9539 | echo "$as_me: failed program was:" >&5 | |
9540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9541 | ||
9542 | ac_header_compiler=no | |
9543 | fi | |
9544 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9545 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9546 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9547 | ||
9548 | # Is the header present? | |
9549 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9550 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9551 | cat >conftest.$ac_ext <<_ACEOF | |
9552 | /* confdefs.h. */ | |
9553 | _ACEOF | |
9554 | cat confdefs.h >>conftest.$ac_ext | |
9555 | cat >>conftest.$ac_ext <<_ACEOF | |
9556 | /* end confdefs.h. */ | |
9557 | #include <$ac_header> | |
9558 | _ACEOF | |
9559 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9560 | (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then | |
9567 | if test -s conftest.err; then | |
9568 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9569 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9570 | else | |
9571 | ac_cpp_err= | |
9572 | fi | |
9a156167 | 9573 | else |
bec39cab | 9574 | ac_cpp_err=yes |
9a156167 | 9575 | fi |
bec39cab AC |
9576 | if test -z "$ac_cpp_err"; then |
9577 | ac_header_preproc=yes | |
9578 | else | |
9579 | echo "$as_me: failed program was:" >&5 | |
9580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 9581 | |
bec39cab | 9582 | ac_header_preproc=no |
9a156167 | 9583 | fi |
bec39cab AC |
9584 | rm -f conftest.err conftest.$ac_ext |
9585 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9586 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 9587 | |
bec39cab AC |
9588 | # So? What about this header? |
9589 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9590 | yes:no: ) | |
9591 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9592 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9593 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9594 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9595 | ac_header_preproc=yes | |
9596 | ;; | |
9597 | no:yes:* ) | |
9598 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9599 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9600 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9601 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9602 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9603 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9604 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9605 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9606 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9607 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9608 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9609 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9610 | ( | |
9611 | cat <<\_ASBOX | |
9612 | ## ------------------------------------------ ## | |
9613 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9614 | ## ------------------------------------------ ## | |
9615 | _ASBOX | |
9616 | ) | | |
9617 | sed "s/^/$as_me: WARNING: /" >&2 | |
9618 | ;; | |
9619 | esac | |
9620 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9621 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9622 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9a156167 | 9624 | else |
bec39cab | 9625 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 9626 | fi |
bec39cab AC |
9627 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9628 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 MK |
9629 | |
9630 | fi | |
bec39cab AC |
9631 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9632 | cat >>confdefs.h <<_ACEOF | |
9633 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9634 | _ACEOF | |
9a156167 | 9635 | |
bec39cab AC |
9636 | fi |
9637 | ||
9638 | done | |
9a156167 | 9639 | |
c890192f | 9640 | |
bec39cab AC |
9641 | for ac_header in stddef.h |
9642 | do | |
9643 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9644 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9645 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9646 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9647 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9648 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9649 | fi | |
9650 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9651 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9652 | else | |
9653 | # Is the header compilable? | |
9654 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9655 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9656 | cat >conftest.$ac_ext <<_ACEOF | |
9657 | /* confdefs.h. */ | |
9658 | _ACEOF | |
9659 | cat confdefs.h >>conftest.$ac_ext | |
9660 | cat >>conftest.$ac_ext <<_ACEOF | |
9661 | /* end confdefs.h. */ | |
9662 | $ac_includes_default | |
9663 | #include <$ac_header> | |
9664 | _ACEOF | |
9665 | rm -f conftest.$ac_objext | |
9666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9667 | (eval $ac_compile) 2>conftest.er1 | |
9668 | ac_status=$? | |
9669 | grep -v '^ *+' conftest.er1 >conftest.err | |
9670 | rm -f conftest.er1 | |
9671 | cat conftest.err >&5 | |
9672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9673 | (exit $ac_status); } && | |
9674 | { ac_try='test -z "$ac_c_werror_flag" | |
9675 | || test ! -s conftest.err' | |
9676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9677 | (eval $ac_try) 2>&5 | |
9678 | ac_status=$? | |
9679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9680 | (exit $ac_status); }; } && | |
9681 | { ac_try='test -s conftest.$ac_objext' | |
9682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9683 | (eval $ac_try) 2>&5 | |
9684 | ac_status=$? | |
9685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9686 | (exit $ac_status); }; }; then | |
9687 | ac_header_compiler=yes | |
9688 | else | |
9689 | echo "$as_me: failed program was:" >&5 | |
9690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9691 | ||
9692 | ac_header_compiler=no | |
9693 | fi | |
9694 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9695 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9696 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9697 | ||
9698 | # Is the header present? | |
9699 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9700 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9701 | cat >conftest.$ac_ext <<_ACEOF | |
9702 | /* confdefs.h. */ | |
9703 | _ACEOF | |
9704 | cat confdefs.h >>conftest.$ac_ext | |
9705 | cat >>conftest.$ac_ext <<_ACEOF | |
9706 | /* end confdefs.h. */ | |
9707 | #include <$ac_header> | |
9708 | _ACEOF | |
9709 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9710 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9711 | ac_status=$? | |
9712 | grep -v '^ *+' conftest.er1 >conftest.err | |
9713 | rm -f conftest.er1 | |
9714 | cat conftest.err >&5 | |
9715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9716 | (exit $ac_status); } >/dev/null; then | |
9717 | if test -s conftest.err; then | |
9718 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9719 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9720 | else | |
9721 | ac_cpp_err= | |
9722 | fi | |
c890192f | 9723 | else |
bec39cab AC |
9724 | ac_cpp_err=yes |
9725 | fi | |
9726 | if test -z "$ac_cpp_err"; then | |
9727 | ac_header_preproc=yes | |
c890192f | 9728 | else |
bec39cab AC |
9729 | echo "$as_me: failed program was:" >&5 |
9730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9731 | ||
9732 | ac_header_preproc=no | |
c890192f | 9733 | fi |
bec39cab AC |
9734 | rm -f conftest.err conftest.$ac_ext |
9735 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9736 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9737 | ||
9738 | # So? What about this header? | |
9739 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9740 | yes:no: ) | |
9741 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9742 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9743 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9744 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9745 | ac_header_preproc=yes | |
9746 | ;; | |
9747 | no:yes:* ) | |
9748 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9749 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9750 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9751 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9752 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9753 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9754 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9755 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9756 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9757 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9758 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9759 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9760 | ( | |
9761 | cat <<\_ASBOX | |
9762 | ## ------------------------------------------ ## | |
9763 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9764 | ## ------------------------------------------ ## | |
9765 | _ASBOX | |
9766 | ) | | |
9767 | sed "s/^/$as_me: WARNING: /" >&2 | |
9768 | ;; | |
9769 | esac | |
9770 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9771 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9772 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c890192f | 9774 | else |
bec39cab | 9775 | eval "$as_ac_Header=\$ac_header_preproc" |
c890192f | 9776 | fi |
bec39cab AC |
9777 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9778 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9779 | ||
c890192f | 9780 | fi |
bec39cab AC |
9781 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9782 | cat >>confdefs.h <<_ACEOF | |
9783 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9784 | _ACEOF | |
c890192f | 9785 | |
c890192f MK |
9786 | fi |
9787 | ||
bec39cab | 9788 | done |
9a156167 | 9789 | |
bec39cab AC |
9790 | |
9791 | for ac_header in stdlib.h | |
9792 | do | |
9793 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9795 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9796 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9797 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9799 | fi | |
9800 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9801 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9802 | else | |
9803 | # Is the header compilable? | |
9804 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9805 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9806 | cat >conftest.$ac_ext <<_ACEOF | |
9807 | /* confdefs.h. */ | |
9808 | _ACEOF | |
9809 | cat confdefs.h >>conftest.$ac_ext | |
9810 | cat >>conftest.$ac_ext <<_ACEOF | |
9811 | /* end confdefs.h. */ | |
9812 | $ac_includes_default | |
9813 | #include <$ac_header> | |
9814 | _ACEOF | |
9815 | rm -f conftest.$ac_objext | |
9816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9817 | (eval $ac_compile) 2>conftest.er1 | |
9818 | ac_status=$? | |
9819 | grep -v '^ *+' conftest.er1 >conftest.err | |
9820 | rm -f conftest.er1 | |
9821 | cat conftest.err >&5 | |
9822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9823 | (exit $ac_status); } && | |
9824 | { ac_try='test -z "$ac_c_werror_flag" | |
9825 | || test ! -s conftest.err' | |
9826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9827 | (eval $ac_try) 2>&5 | |
9828 | ac_status=$? | |
9829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9830 | (exit $ac_status); }; } && | |
9831 | { ac_try='test -s conftest.$ac_objext' | |
9832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9833 | (eval $ac_try) 2>&5 | |
9834 | ac_status=$? | |
9835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9836 | (exit $ac_status); }; }; then | |
9837 | ac_header_compiler=yes | |
9838 | else | |
9839 | echo "$as_me: failed program was:" >&5 | |
9840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9841 | ||
9842 | ac_header_compiler=no | |
9843 | fi | |
9844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9845 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9846 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9847 | ||
9848 | # Is the header present? | |
9849 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9850 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9851 | cat >conftest.$ac_ext <<_ACEOF | |
9852 | /* confdefs.h. */ | |
9853 | _ACEOF | |
9854 | cat confdefs.h >>conftest.$ac_ext | |
9855 | cat >>conftest.$ac_ext <<_ACEOF | |
9856 | /* end confdefs.h. */ | |
9857 | #include <$ac_header> | |
9858 | _ACEOF | |
9859 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9860 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9861 | ac_status=$? | |
9862 | grep -v '^ *+' conftest.er1 >conftest.err | |
9863 | rm -f conftest.er1 | |
9864 | cat conftest.err >&5 | |
9865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9866 | (exit $ac_status); } >/dev/null; then | |
9867 | if test -s conftest.err; then | |
9868 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9869 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9870 | else | |
9871 | ac_cpp_err= | |
9872 | fi | |
9a156167 | 9873 | else |
bec39cab AC |
9874 | ac_cpp_err=yes |
9875 | fi | |
9876 | if test -z "$ac_cpp_err"; then | |
9877 | ac_header_preproc=yes | |
9a156167 | 9878 | else |
bec39cab AC |
9879 | echo "$as_me: failed program was:" >&5 |
9880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9881 | ||
9882 | ac_header_preproc=no | |
9a156167 | 9883 | fi |
bec39cab AC |
9884 | rm -f conftest.err conftest.$ac_ext |
9885 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9886 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9887 | ||
9888 | # So? What about this header? | |
9889 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9890 | yes:no: ) | |
9891 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9892 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9893 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9894 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9895 | ac_header_preproc=yes | |
9896 | ;; | |
9897 | no:yes:* ) | |
9898 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9899 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9900 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9901 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9902 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9903 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9904 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9905 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9906 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9907 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9908 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9909 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9910 | ( | |
9911 | cat <<\_ASBOX | |
9912 | ## ------------------------------------------ ## | |
9913 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9914 | ## ------------------------------------------ ## | |
9915 | _ASBOX | |
9916 | ) | | |
9917 | sed "s/^/$as_me: WARNING: /" >&2 | |
9918 | ;; | |
9919 | esac | |
9920 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9921 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9922 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9a156167 | 9924 | else |
bec39cab | 9925 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 9926 | fi |
bec39cab AC |
9927 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9928 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9929 | ||
9a156167 | 9930 | fi |
bec39cab AC |
9931 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9932 | cat >>confdefs.h <<_ACEOF | |
9933 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9934 | _ACEOF | |
9a156167 | 9935 | |
9a156167 MK |
9936 | fi |
9937 | ||
bec39cab AC |
9938 | done |
9939 | ||
06825bd1 | 9940 | |
bec39cab AC |
9941 | for ac_header in stdint.h |
9942 | do | |
9943 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9944 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9945 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9946 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9947 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9949 | fi | |
9950 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9951 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9952 | else | |
9953 | # Is the header compilable? | |
9954 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9955 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9956 | cat >conftest.$ac_ext <<_ACEOF | |
9957 | /* confdefs.h. */ | |
9958 | _ACEOF | |
9959 | cat confdefs.h >>conftest.$ac_ext | |
9960 | cat >>conftest.$ac_ext <<_ACEOF | |
9961 | /* end confdefs.h. */ | |
9962 | $ac_includes_default | |
9963 | #include <$ac_header> | |
9964 | _ACEOF | |
9965 | rm -f conftest.$ac_objext | |
9966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9967 | (eval $ac_compile) 2>conftest.er1 | |
9968 | ac_status=$? | |
9969 | grep -v '^ *+' conftest.er1 >conftest.err | |
9970 | rm -f conftest.er1 | |
9971 | cat conftest.err >&5 | |
9972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9973 | (exit $ac_status); } && | |
9974 | { ac_try='test -z "$ac_c_werror_flag" | |
9975 | || test ! -s conftest.err' | |
9976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9977 | (eval $ac_try) 2>&5 | |
9978 | ac_status=$? | |
9979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9980 | (exit $ac_status); }; } && | |
9981 | { ac_try='test -s conftest.$ac_objext' | |
9982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9983 | (eval $ac_try) 2>&5 | |
9984 | ac_status=$? | |
9985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9986 | (exit $ac_status); }; }; then | |
9987 | ac_header_compiler=yes | |
9988 | else | |
9989 | echo "$as_me: failed program was:" >&5 | |
9990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9991 | ||
9992 | ac_header_compiler=no | |
9993 | fi | |
9994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9995 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9996 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9997 | ||
9998 | # Is the header present? | |
9999 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10000 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10001 | cat >conftest.$ac_ext <<_ACEOF | |
10002 | /* confdefs.h. */ | |
10003 | _ACEOF | |
10004 | cat confdefs.h >>conftest.$ac_ext | |
10005 | cat >>conftest.$ac_ext <<_ACEOF | |
10006 | /* end confdefs.h. */ | |
10007 | #include <$ac_header> | |
10008 | _ACEOF | |
10009 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10010 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10011 | ac_status=$? | |
10012 | grep -v '^ *+' conftest.er1 >conftest.err | |
10013 | rm -f conftest.er1 | |
10014 | cat conftest.err >&5 | |
10015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10016 | (exit $ac_status); } >/dev/null; then | |
10017 | if test -s conftest.err; then | |
10018 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10019 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10020 | else | |
10021 | ac_cpp_err= | |
10022 | fi | |
06825bd1 | 10023 | else |
bec39cab AC |
10024 | ac_cpp_err=yes |
10025 | fi | |
10026 | if test -z "$ac_cpp_err"; then | |
10027 | ac_header_preproc=yes | |
06825bd1 | 10028 | else |
bec39cab AC |
10029 | echo "$as_me: failed program was:" >&5 |
10030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10031 | ||
10032 | ac_header_preproc=no | |
06825bd1 | 10033 | fi |
bec39cab AC |
10034 | rm -f conftest.err conftest.$ac_ext |
10035 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10036 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10037 | ||
10038 | # So? What about this header? | |
10039 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10040 | yes:no: ) | |
10041 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10042 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10043 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10044 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10045 | ac_header_preproc=yes | |
10046 | ;; | |
10047 | no:yes:* ) | |
10048 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10049 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10050 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10051 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10052 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10053 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10054 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10055 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10056 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10057 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10058 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10059 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10060 | ( | |
10061 | cat <<\_ASBOX | |
10062 | ## ------------------------------------------ ## | |
10063 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10064 | ## ------------------------------------------ ## | |
10065 | _ASBOX | |
10066 | ) | | |
10067 | sed "s/^/$as_me: WARNING: /" >&2 | |
10068 | ;; | |
10069 | esac | |
10070 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10071 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10072 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
06825bd1 | 10074 | else |
bec39cab | 10075 | eval "$as_ac_Header=\$ac_header_preproc" |
06825bd1 | 10076 | fi |
bec39cab AC |
10077 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10078 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10079 | ||
06825bd1 | 10080 | fi |
bec39cab AC |
10081 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10082 | cat >>confdefs.h <<_ACEOF | |
10083 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10084 | _ACEOF | |
06825bd1 | 10085 | |
06825bd1 | 10086 | fi |
4f0be353 | 10087 | |
bec39cab | 10088 | done |
4f0be353 | 10089 | |
06825bd1 | 10090 | |
06825bd1 | 10091 | |
bec39cab AC |
10092 | |
10093 | for ac_header in string.h memory.h strings.h | |
10094 | do | |
10095 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10096 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10097 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10098 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10099 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10101 | fi | |
10102 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10103 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10104 | else | |
10105 | # Is the header compilable? | |
10106 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10107 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10108 | cat >conftest.$ac_ext <<_ACEOF | |
10109 | /* confdefs.h. */ | |
10110 | _ACEOF | |
10111 | cat confdefs.h >>conftest.$ac_ext | |
10112 | cat >>conftest.$ac_ext <<_ACEOF | |
10113 | /* end confdefs.h. */ | |
10114 | $ac_includes_default | |
10115 | #include <$ac_header> | |
10116 | _ACEOF | |
10117 | rm -f conftest.$ac_objext | |
10118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10119 | (eval $ac_compile) 2>conftest.er1 | |
10120 | ac_status=$? | |
10121 | grep -v '^ *+' conftest.er1 >conftest.err | |
10122 | rm -f conftest.er1 | |
10123 | cat conftest.err >&5 | |
10124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10125 | (exit $ac_status); } && | |
10126 | { ac_try='test -z "$ac_c_werror_flag" | |
10127 | || test ! -s conftest.err' | |
10128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10129 | (eval $ac_try) 2>&5 | |
10130 | ac_status=$? | |
10131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10132 | (exit $ac_status); }; } && | |
10133 | { ac_try='test -s conftest.$ac_objext' | |
10134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10135 | (eval $ac_try) 2>&5 | |
10136 | ac_status=$? | |
10137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10138 | (exit $ac_status); }; }; then | |
10139 | ac_header_compiler=yes | |
10140 | else | |
10141 | echo "$as_me: failed program was:" >&5 | |
10142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10143 | ||
10144 | ac_header_compiler=no | |
10145 | fi | |
10146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10147 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10148 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10149 | ||
10150 | # Is the header present? | |
10151 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10152 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10153 | cat >conftest.$ac_ext <<_ACEOF | |
10154 | /* confdefs.h. */ | |
10155 | _ACEOF | |
10156 | cat confdefs.h >>conftest.$ac_ext | |
10157 | cat >>conftest.$ac_ext <<_ACEOF | |
10158 | /* end confdefs.h. */ | |
10159 | #include <$ac_header> | |
10160 | _ACEOF | |
10161 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10162 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10163 | ac_status=$? | |
10164 | grep -v '^ *+' conftest.er1 >conftest.err | |
10165 | rm -f conftest.er1 | |
10166 | cat conftest.err >&5 | |
10167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10168 | (exit $ac_status); } >/dev/null; then | |
10169 | if test -s conftest.err; then | |
10170 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10171 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10172 | else | |
10173 | ac_cpp_err= | |
10174 | fi | |
06825bd1 | 10175 | else |
bec39cab AC |
10176 | ac_cpp_err=yes |
10177 | fi | |
10178 | if test -z "$ac_cpp_err"; then | |
10179 | ac_header_preproc=yes | |
06825bd1 | 10180 | else |
bec39cab AC |
10181 | echo "$as_me: failed program was:" >&5 |
10182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10183 | ||
10184 | ac_header_preproc=no | |
06825bd1 | 10185 | fi |
bec39cab AC |
10186 | rm -f conftest.err conftest.$ac_ext |
10187 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10188 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10189 | ||
10190 | # So? What about this header? | |
10191 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10192 | yes:no: ) | |
10193 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10194 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10195 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10196 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10197 | ac_header_preproc=yes | |
10198 | ;; | |
10199 | no:yes:* ) | |
10200 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10201 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10202 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10203 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10204 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10205 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10206 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10207 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10208 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10209 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10210 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10211 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10212 | ( | |
10213 | cat <<\_ASBOX | |
10214 | ## ------------------------------------------ ## | |
10215 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10216 | ## ------------------------------------------ ## | |
10217 | _ASBOX | |
10218 | ) | | |
10219 | sed "s/^/$as_me: WARNING: /" >&2 | |
10220 | ;; | |
10221 | esac | |
10222 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10223 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10224 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10226 | else | |
10227 | eval "$as_ac_Header=\$ac_header_preproc" | |
06825bd1 | 10228 | fi |
bec39cab AC |
10229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10230 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
06825bd1 | 10231 | |
06825bd1 | 10232 | fi |
bec39cab AC |
10233 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10234 | cat >>confdefs.h <<_ACEOF | |
10235 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10236 | _ACEOF | |
06825bd1 | 10237 | |
06825bd1 MK |
10238 | fi |
10239 | ||
bec39cab | 10240 | done |
5ee754fc | 10241 | |
bec39cab AC |
10242 | |
10243 | for ac_header in sys/fault.h | |
5ee754fc | 10244 | do |
bec39cab AC |
10245 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10246 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10247 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10248 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10249 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10250 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10251 | fi | |
10252 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10253 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10254 | else | |
10255 | # Is the header compilable? | |
10256 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10257 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10258 | cat >conftest.$ac_ext <<_ACEOF | |
10259 | /* confdefs.h. */ | |
10260 | _ACEOF | |
10261 | cat confdefs.h >>conftest.$ac_ext | |
10262 | cat >>conftest.$ac_ext <<_ACEOF | |
10263 | /* end confdefs.h. */ | |
10264 | $ac_includes_default | |
10265 | #include <$ac_header> | |
10266 | _ACEOF | |
10267 | rm -f conftest.$ac_objext | |
10268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10269 | (eval $ac_compile) 2>conftest.er1 | |
10270 | ac_status=$? | |
10271 | grep -v '^ *+' conftest.er1 >conftest.err | |
10272 | rm -f conftest.er1 | |
10273 | cat conftest.err >&5 | |
10274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10275 | (exit $ac_status); } && | |
10276 | { ac_try='test -z "$ac_c_werror_flag" | |
10277 | || test ! -s conftest.err' | |
10278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10279 | (eval $ac_try) 2>&5 | |
10280 | ac_status=$? | |
10281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10282 | (exit $ac_status); }; } && | |
10283 | { ac_try='test -s conftest.$ac_objext' | |
10284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10285 | (eval $ac_try) 2>&5 | |
10286 | ac_status=$? | |
10287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10288 | (exit $ac_status); }; }; then | |
10289 | ac_header_compiler=yes | |
10290 | else | |
10291 | echo "$as_me: failed program was:" >&5 | |
10292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10293 | ||
10294 | ac_header_compiler=no | |
10295 | fi | |
10296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10297 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10298 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10299 | ||
10300 | # Is the header present? | |
10301 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10302 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10303 | cat >conftest.$ac_ext <<_ACEOF | |
10304 | /* confdefs.h. */ | |
10305 | _ACEOF | |
10306 | cat confdefs.h >>conftest.$ac_ext | |
10307 | cat >>conftest.$ac_ext <<_ACEOF | |
10308 | /* end confdefs.h. */ | |
10309 | #include <$ac_header> | |
10310 | _ACEOF | |
10311 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10312 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10313 | ac_status=$? | |
10314 | grep -v '^ *+' conftest.er1 >conftest.err | |
10315 | rm -f conftest.er1 | |
10316 | cat conftest.err >&5 | |
10317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10318 | (exit $ac_status); } >/dev/null; then | |
10319 | if test -s conftest.err; then | |
10320 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10321 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10322 | else | |
10323 | ac_cpp_err= | |
10324 | fi | |
5ee754fc | 10325 | else |
bec39cab | 10326 | ac_cpp_err=yes |
5ee754fc | 10327 | fi |
bec39cab AC |
10328 | if test -z "$ac_cpp_err"; then |
10329 | ac_header_preproc=yes | |
10330 | else | |
10331 | echo "$as_me: failed program was:" >&5 | |
10332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10333 | |
bec39cab | 10334 | ac_header_preproc=no |
5ee754fc | 10335 | fi |
bec39cab AC |
10336 | rm -f conftest.err conftest.$ac_ext |
10337 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10338 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10339 | ||
10340 | # So? What about this header? | |
10341 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10342 | yes:no: ) | |
10343 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10344 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10345 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10346 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10347 | ac_header_preproc=yes | |
10348 | ;; | |
10349 | no:yes:* ) | |
10350 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10351 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10352 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10353 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10354 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10355 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10356 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10357 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10358 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10359 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10360 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10361 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10362 | ( | |
10363 | cat <<\_ASBOX | |
10364 | ## ------------------------------------------ ## | |
10365 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10366 | ## ------------------------------------------ ## | |
10367 | _ASBOX | |
10368 | ) | | |
10369 | sed "s/^/$as_me: WARNING: /" >&2 | |
10370 | ;; | |
10371 | esac | |
10372 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10373 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10374 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5ee754fc | 10376 | else |
bec39cab | 10377 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 10378 | fi |
bec39cab AC |
10379 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10380 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
c906108c | 10381 | |
5ee754fc | 10382 | fi |
bec39cab AC |
10383 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10384 | cat >>confdefs.h <<_ACEOF | |
10385 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10386 | _ACEOF | |
c906108c | 10387 | |
5ee754fc | 10388 | fi |
bec39cab AC |
10389 | |
10390 | done | |
10391 | ||
10392 | ||
10393 | for ac_header in sys/file.h | |
10394 | do | |
10395 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10396 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10397 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10398 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10399 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10401 | fi | |
10402 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10403 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10404 | else | |
10405 | # Is the header compilable? | |
10406 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10407 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10408 | cat >conftest.$ac_ext <<_ACEOF | |
10409 | /* confdefs.h. */ | |
10410 | _ACEOF | |
10411 | cat confdefs.h >>conftest.$ac_ext | |
10412 | cat >>conftest.$ac_ext <<_ACEOF | |
10413 | /* end confdefs.h. */ | |
10414 | $ac_includes_default | |
10415 | #include <$ac_header> | |
10416 | _ACEOF | |
10417 | rm -f conftest.$ac_objext | |
10418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10419 | (eval $ac_compile) 2>conftest.er1 | |
10420 | ac_status=$? | |
10421 | grep -v '^ *+' conftest.er1 >conftest.err | |
10422 | rm -f conftest.er1 | |
10423 | cat conftest.err >&5 | |
10424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10425 | (exit $ac_status); } && | |
10426 | { ac_try='test -z "$ac_c_werror_flag" | |
10427 | || test ! -s conftest.err' | |
10428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10429 | (eval $ac_try) 2>&5 | |
10430 | ac_status=$? | |
10431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10432 | (exit $ac_status); }; } && | |
10433 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
10439 | ac_header_compiler=yes | |
10440 | else | |
10441 | echo "$as_me: failed program was:" >&5 | |
10442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10443 | ||
10444 | ac_header_compiler=no | |
10445 | fi | |
10446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10447 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10448 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10449 | ||
10450 | # Is the header present? | |
10451 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10452 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10453 | cat >conftest.$ac_ext <<_ACEOF | |
10454 | /* confdefs.h. */ | |
10455 | _ACEOF | |
10456 | cat confdefs.h >>conftest.$ac_ext | |
10457 | cat >>conftest.$ac_ext <<_ACEOF | |
10458 | /* end confdefs.h. */ | |
10459 | #include <$ac_header> | |
10460 | _ACEOF | |
10461 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10462 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10463 | ac_status=$? | |
10464 | grep -v '^ *+' conftest.er1 >conftest.err | |
10465 | rm -f conftest.er1 | |
10466 | cat conftest.err >&5 | |
10467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10468 | (exit $ac_status); } >/dev/null; then | |
10469 | if test -s conftest.err; then | |
10470 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10471 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10472 | else | |
10473 | ac_cpp_err= | |
10474 | fi | |
5ee754fc | 10475 | else |
bec39cab | 10476 | ac_cpp_err=yes |
5ee754fc | 10477 | fi |
bec39cab AC |
10478 | if test -z "$ac_cpp_err"; then |
10479 | ac_header_preproc=yes | |
10480 | else | |
10481 | echo "$as_me: failed program was:" >&5 | |
10482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 10483 | |
bec39cab | 10484 | ac_header_preproc=no |
5ee754fc | 10485 | fi |
bec39cab AC |
10486 | rm -f conftest.err conftest.$ac_ext |
10487 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10488 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 10489 | |
bec39cab AC |
10490 | # So? What about this header? |
10491 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10492 | yes:no: ) | |
10493 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10494 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10495 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10496 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10497 | ac_header_preproc=yes | |
10498 | ;; | |
10499 | no:yes:* ) | |
10500 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10501 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10502 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10503 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10504 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10505 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10506 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10507 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10508 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10509 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10510 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10511 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10512 | ( | |
10513 | cat <<\_ASBOX | |
10514 | ## ------------------------------------------ ## | |
10515 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10516 | ## ------------------------------------------ ## | |
10517 | _ASBOX | |
10518 | ) | | |
10519 | sed "s/^/$as_me: WARNING: /" >&2 | |
10520 | ;; | |
10521 | esac | |
10522 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10523 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10524 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9608ab8b | 10526 | else |
bec39cab AC |
10527 | eval "$as_ac_Header=\$ac_header_preproc" |
10528 | fi | |
10529 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10530 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 10531 | |
bec39cab AC |
10532 | fi |
10533 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
10534 | cat >>confdefs.h <<_ACEOF | |
10535 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10536 | _ACEOF | |
5ee754fc | 10537 | |
bec39cab | 10538 | fi |
5ee754fc | 10539 | |
bec39cab | 10540 | done |
5ee754fc | 10541 | |
5ee754fc | 10542 | |
bec39cab AC |
10543 | for ac_header in sys/filio.h |
10544 | do | |
10545 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10546 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10547 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10548 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10549 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10551 | fi | |
10552 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10553 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10554 | else | |
10555 | # Is the header compilable? | |
10556 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10557 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10558 | cat >conftest.$ac_ext <<_ACEOF | |
10559 | /* confdefs.h. */ | |
10560 | _ACEOF | |
10561 | cat confdefs.h >>conftest.$ac_ext | |
10562 | cat >>conftest.$ac_ext <<_ACEOF | |
10563 | /* end confdefs.h. */ | |
10564 | $ac_includes_default | |
10565 | #include <$ac_header> | |
10566 | _ACEOF | |
10567 | rm -f conftest.$ac_objext | |
10568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10569 | (eval $ac_compile) 2>conftest.er1 | |
10570 | ac_status=$? | |
10571 | grep -v '^ *+' conftest.er1 >conftest.err | |
10572 | rm -f conftest.er1 | |
10573 | cat conftest.err >&5 | |
10574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10575 | (exit $ac_status); } && | |
10576 | { ac_try='test -z "$ac_c_werror_flag" | |
10577 | || test ! -s conftest.err' | |
10578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10579 | (eval $ac_try) 2>&5 | |
10580 | ac_status=$? | |
10581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10582 | (exit $ac_status); }; } && | |
10583 | { ac_try='test -s conftest.$ac_objext' | |
10584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10585 | (eval $ac_try) 2>&5 | |
10586 | ac_status=$? | |
10587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10588 | (exit $ac_status); }; }; then | |
10589 | ac_header_compiler=yes | |
10590 | else | |
10591 | echo "$as_me: failed program was:" >&5 | |
10592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10593 | ||
10594 | ac_header_compiler=no | |
10595 | fi | |
10596 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10597 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10598 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10599 | ||
10600 | # Is the header present? | |
10601 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10602 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10603 | cat >conftest.$ac_ext <<_ACEOF | |
10604 | /* confdefs.h. */ | |
10605 | _ACEOF | |
10606 | cat confdefs.h >>conftest.$ac_ext | |
10607 | cat >>conftest.$ac_ext <<_ACEOF | |
10608 | /* end confdefs.h. */ | |
10609 | #include <$ac_header> | |
10610 | _ACEOF | |
10611 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10612 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10613 | ac_status=$? | |
10614 | grep -v '^ *+' conftest.er1 >conftest.err | |
10615 | rm -f conftest.er1 | |
10616 | cat conftest.err >&5 | |
10617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10618 | (exit $ac_status); } >/dev/null; then | |
10619 | if test -s conftest.err; then | |
10620 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10621 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10622 | else | |
10623 | ac_cpp_err= | |
10624 | fi | |
5ee754fc | 10625 | else |
bec39cab | 10626 | ac_cpp_err=yes |
5ee754fc | 10627 | fi |
bec39cab AC |
10628 | if test -z "$ac_cpp_err"; then |
10629 | ac_header_preproc=yes | |
10630 | else | |
10631 | echo "$as_me: failed program was:" >&5 | |
10632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10633 | |
bec39cab | 10634 | ac_header_preproc=no |
5ee754fc | 10635 | fi |
bec39cab AC |
10636 | rm -f conftest.err conftest.$ac_ext |
10637 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10638 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10639 | |
bec39cab AC |
10640 | # So? What about this header? |
10641 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10642 | yes:no: ) | |
10643 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10644 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10645 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10646 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10647 | ac_header_preproc=yes | |
10648 | ;; | |
10649 | no:yes:* ) | |
10650 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10651 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10652 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10653 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10654 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10655 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10656 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10657 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10658 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10659 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10660 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10661 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10662 | ( | |
10663 | cat <<\_ASBOX | |
10664 | ## ------------------------------------------ ## | |
10665 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10666 | ## ------------------------------------------ ## | |
10667 | _ASBOX | |
10668 | ) | | |
10669 | sed "s/^/$as_me: WARNING: /" >&2 | |
10670 | ;; | |
10671 | esac | |
10672 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10673 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10674 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5ee754fc | 10676 | else |
bec39cab | 10677 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 10678 | fi |
bec39cab AC |
10679 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10680 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 10681 | |
5ee754fc | 10682 | fi |
bec39cab AC |
10683 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10684 | cat >>confdefs.h <<_ACEOF | |
10685 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10686 | _ACEOF | |
5ee754fc MK |
10687 | |
10688 | fi | |
10689 | ||
bec39cab AC |
10690 | done |
10691 | ||
10692 | ||
10693 | for ac_header in sys/ioctl.h | |
10694 | do | |
10695 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
10696 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10697 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10698 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10699 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10701 | fi | |
10702 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10703 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10704 | else | |
10705 | # Is the header compilable? | |
10706 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10707 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10708 | cat >conftest.$ac_ext <<_ACEOF | |
10709 | /* confdefs.h. */ | |
10710 | _ACEOF | |
10711 | cat confdefs.h >>conftest.$ac_ext | |
10712 | cat >>conftest.$ac_ext <<_ACEOF | |
10713 | /* end confdefs.h. */ | |
10714 | $ac_includes_default | |
10715 | #include <$ac_header> | |
10716 | _ACEOF | |
10717 | rm -f conftest.$ac_objext | |
10718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10719 | (eval $ac_compile) 2>conftest.er1 | |
10720 | ac_status=$? | |
10721 | grep -v '^ *+' conftest.er1 >conftest.err | |
10722 | rm -f conftest.er1 | |
10723 | cat conftest.err >&5 | |
10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10725 | (exit $ac_status); } && | |
10726 | { ac_try='test -z "$ac_c_werror_flag" | |
10727 | || test ! -s conftest.err' | |
10728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10729 | (eval $ac_try) 2>&5 | |
10730 | ac_status=$? | |
10731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10732 | (exit $ac_status); }; } && | |
10733 | { ac_try='test -s conftest.$ac_objext' | |
10734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10735 | (eval $ac_try) 2>&5 | |
10736 | ac_status=$? | |
10737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10738 | (exit $ac_status); }; }; then | |
10739 | ac_header_compiler=yes | |
10740 | else | |
10741 | echo "$as_me: failed program was:" >&5 | |
10742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10743 | ||
10744 | ac_header_compiler=no | |
10745 | fi | |
10746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10747 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10748 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10749 | ||
10750 | # Is the header present? | |
10751 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10752 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10753 | cat >conftest.$ac_ext <<_ACEOF | |
10754 | /* confdefs.h. */ | |
10755 | _ACEOF | |
10756 | cat confdefs.h >>conftest.$ac_ext | |
10757 | cat >>conftest.$ac_ext <<_ACEOF | |
10758 | /* end confdefs.h. */ | |
10759 | #include <$ac_header> | |
10760 | _ACEOF | |
10761 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10762 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10763 | ac_status=$? | |
10764 | grep -v '^ *+' conftest.er1 >conftest.err | |
10765 | rm -f conftest.er1 | |
10766 | cat conftest.err >&5 | |
10767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10768 | (exit $ac_status); } >/dev/null; then | |
10769 | if test -s conftest.err; then | |
10770 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10771 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10772 | else | |
10773 | ac_cpp_err= | |
10774 | fi | |
5ee754fc | 10775 | else |
bec39cab | 10776 | ac_cpp_err=yes |
5ee754fc | 10777 | fi |
bec39cab AC |
10778 | if test -z "$ac_cpp_err"; then |
10779 | ac_header_preproc=yes | |
10780 | else | |
10781 | echo "$as_me: failed program was:" >&5 | |
10782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10783 | |
bec39cab | 10784 | ac_header_preproc=no |
5ee754fc | 10785 | fi |
bec39cab AC |
10786 | rm -f conftest.err conftest.$ac_ext |
10787 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10788 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10789 | |
bec39cab AC |
10790 | # So? What about this header? |
10791 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10792 | yes:no: ) | |
10793 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10794 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10795 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10796 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10797 | ac_header_preproc=yes | |
10798 | ;; | |
10799 | no:yes:* ) | |
10800 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10801 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10802 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10803 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10804 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10805 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10806 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10807 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10808 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10809 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10810 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10811 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10812 | ( | |
10813 | cat <<\_ASBOX | |
10814 | ## ------------------------------------------ ## | |
10815 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10816 | ## ------------------------------------------ ## | |
10817 | _ASBOX | |
10818 | ) | | |
10819 | sed "s/^/$as_me: WARNING: /" >&2 | |
10820 | ;; | |
10821 | esac | |
10822 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10823 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10824 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9608ab8b | 10826 | else |
bec39cab | 10827 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 10828 | fi |
bec39cab AC |
10829 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10830 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc MK |
10831 | |
10832 | fi | |
bec39cab AC |
10833 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10834 | cat >>confdefs.h <<_ACEOF | |
10835 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10836 | _ACEOF | |
10837 | ||
5ee754fc MK |
10838 | fi |
10839 | ||
bec39cab | 10840 | done |
5ee754fc | 10841 | |
5ee754fc | 10842 | |
bec39cab | 10843 | for ac_header in sys/param.h |
5ee754fc | 10844 | do |
bec39cab AC |
10845 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10846 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10847 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10848 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10849 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10851 | fi | |
10852 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10853 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10854 | else | |
10855 | # Is the header compilable? | |
10856 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10857 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10858 | cat >conftest.$ac_ext <<_ACEOF | |
10859 | /* confdefs.h. */ | |
10860 | _ACEOF | |
10861 | cat confdefs.h >>conftest.$ac_ext | |
10862 | cat >>conftest.$ac_ext <<_ACEOF | |
10863 | /* end confdefs.h. */ | |
10864 | $ac_includes_default | |
10865 | #include <$ac_header> | |
10866 | _ACEOF | |
10867 | rm -f conftest.$ac_objext | |
10868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10869 | (eval $ac_compile) 2>conftest.er1 | |
10870 | ac_status=$? | |
10871 | grep -v '^ *+' conftest.er1 >conftest.err | |
10872 | rm -f conftest.er1 | |
10873 | cat conftest.err >&5 | |
10874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10875 | (exit $ac_status); } && | |
10876 | { ac_try='test -z "$ac_c_werror_flag" | |
10877 | || test ! -s conftest.err' | |
10878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10879 | (eval $ac_try) 2>&5 | |
10880 | ac_status=$? | |
10881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10882 | (exit $ac_status); }; } && | |
10883 | { ac_try='test -s conftest.$ac_objext' | |
10884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10885 | (eval $ac_try) 2>&5 | |
10886 | ac_status=$? | |
10887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10888 | (exit $ac_status); }; }; then | |
10889 | ac_header_compiler=yes | |
10890 | else | |
10891 | echo "$as_me: failed program was:" >&5 | |
10892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10893 | ||
10894 | ac_header_compiler=no | |
10895 | fi | |
10896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10897 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10898 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10899 | ||
10900 | # Is the header present? | |
10901 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10902 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10903 | cat >conftest.$ac_ext <<_ACEOF | |
10904 | /* confdefs.h. */ | |
10905 | _ACEOF | |
10906 | cat confdefs.h >>conftest.$ac_ext | |
10907 | cat >>conftest.$ac_ext <<_ACEOF | |
10908 | /* end confdefs.h. */ | |
10909 | #include <$ac_header> | |
10910 | _ACEOF | |
10911 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10912 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10913 | ac_status=$? | |
10914 | grep -v '^ *+' conftest.er1 >conftest.err | |
10915 | rm -f conftest.er1 | |
10916 | cat conftest.err >&5 | |
10917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10918 | (exit $ac_status); } >/dev/null; then | |
10919 | if test -s conftest.err; then | |
10920 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10921 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10922 | else | |
10923 | ac_cpp_err= | |
10924 | fi | |
5ee754fc | 10925 | else |
bec39cab | 10926 | ac_cpp_err=yes |
5ee754fc | 10927 | fi |
bec39cab AC |
10928 | if test -z "$ac_cpp_err"; then |
10929 | ac_header_preproc=yes | |
10930 | else | |
10931 | echo "$as_me: failed program was:" >&5 | |
10932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 10933 | |
bec39cab | 10934 | ac_header_preproc=no |
5ee754fc | 10935 | fi |
bec39cab AC |
10936 | rm -f conftest.err conftest.$ac_ext |
10937 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10938 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10939 | ||
10940 | # So? What about this header? | |
10941 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10942 | yes:no: ) | |
10943 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10944 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10945 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10946 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10947 | ac_header_preproc=yes | |
10948 | ;; | |
10949 | no:yes:* ) | |
10950 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10951 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10952 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10953 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10954 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10955 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10956 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10957 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10958 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10959 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10960 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10961 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10962 | ( | |
10963 | cat <<\_ASBOX | |
10964 | ## ------------------------------------------ ## | |
10965 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10966 | ## ------------------------------------------ ## | |
10967 | _ASBOX | |
10968 | ) | | |
10969 | sed "s/^/$as_me: WARNING: /" >&2 | |
10970 | ;; | |
10971 | esac | |
10972 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10973 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10974 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5ee754fc | 10976 | else |
bec39cab | 10977 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 10978 | fi |
bec39cab AC |
10979 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10980 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 10981 | |
5ee754fc | 10982 | fi |
bec39cab AC |
10983 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10984 | cat >>confdefs.h <<_ACEOF | |
10985 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10986 | _ACEOF | |
10987 | ||
5ee754fc | 10988 | fi |
bec39cab | 10989 | |
5ee754fc MK |
10990 | done |
10991 | ||
bec39cab AC |
10992 | |
10993 | for ac_header in sys/proc.h | |
5ee754fc | 10994 | do |
bec39cab | 10995 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7cb9022a | 10996 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
bec39cab AC |
10997 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
10998 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 11000 | else |
7cb9022a | 11001 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
11002 | /* confdefs.h. */ |
11003 | _ACEOF | |
11004 | cat confdefs.h >>conftest.$ac_ext | |
11005 | cat >>conftest.$ac_ext <<_ACEOF | |
11006 | /* end confdefs.h. */ | |
7cb9022a MK |
11007 | #if HAVE_SYS_PARAM_H |
11008 | # include <sys/param.h> | |
11009 | #endif | |
11010 | ||
11011 | ||
bec39cab AC |
11012 | #include <$ac_header> |
11013 | _ACEOF | |
11014 | rm -f conftest.$ac_objext | |
11015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11016 | (eval $ac_compile) 2>conftest.er1 | |
11017 | ac_status=$? | |
11018 | grep -v '^ *+' conftest.er1 >conftest.err | |
11019 | rm -f conftest.er1 | |
11020 | cat conftest.err >&5 | |
11021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11022 | (exit $ac_status); } && | |
11023 | { ac_try='test -z "$ac_c_werror_flag" | |
11024 | || test ! -s conftest.err' | |
11025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11026 | (eval $ac_try) 2>&5 | |
11027 | ac_status=$? | |
11028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11029 | (exit $ac_status); }; } && | |
11030 | { ac_try='test -s conftest.$ac_objext' | |
11031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11032 | (eval $ac_try) 2>&5 | |
11033 | ac_status=$? | |
11034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11035 | (exit $ac_status); }; }; then | |
7cb9022a | 11036 | eval "$as_ac_Header=yes" |
bec39cab AC |
11037 | else |
11038 | echo "$as_me: failed program was:" >&5 | |
11039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11040 | ||
7cb9022a | 11041 | eval "$as_ac_Header=no" |
bec39cab AC |
11042 | fi |
11043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 11044 | fi |
bec39cab AC |
11045 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11046 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11047 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11048 | cat >>confdefs.h <<_ACEOF | |
11049 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11050 | _ACEOF | |
11051 | ||
5ee754fc | 11052 | fi |
bec39cab | 11053 | |
5ee754fc MK |
11054 | done |
11055 | ||
bec39cab AC |
11056 | |
11057 | for ac_header in sys/procfs.h | |
5ee754fc | 11058 | do |
bec39cab AC |
11059 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11060 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11061 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11062 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11065 | fi | |
11066 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11067 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11068 | else | |
11069 | # Is the header compilable? | |
11070 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11071 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11072 | cat >conftest.$ac_ext <<_ACEOF | |
11073 | /* confdefs.h. */ | |
11074 | _ACEOF | |
11075 | cat confdefs.h >>conftest.$ac_ext | |
11076 | cat >>conftest.$ac_ext <<_ACEOF | |
11077 | /* end confdefs.h. */ | |
11078 | $ac_includes_default | |
11079 | #include <$ac_header> | |
11080 | _ACEOF | |
11081 | rm -f conftest.$ac_objext | |
11082 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11083 | (eval $ac_compile) 2>conftest.er1 | |
11084 | ac_status=$? | |
11085 | grep -v '^ *+' conftest.er1 >conftest.err | |
11086 | rm -f conftest.er1 | |
11087 | cat conftest.err >&5 | |
11088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11089 | (exit $ac_status); } && | |
11090 | { ac_try='test -z "$ac_c_werror_flag" | |
11091 | || test ! -s conftest.err' | |
11092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11093 | (eval $ac_try) 2>&5 | |
11094 | ac_status=$? | |
11095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11096 | (exit $ac_status); }; } && | |
11097 | { ac_try='test -s conftest.$ac_objext' | |
11098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11099 | (eval $ac_try) 2>&5 | |
11100 | ac_status=$? | |
11101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11102 | (exit $ac_status); }; }; then | |
11103 | ac_header_compiler=yes | |
11104 | else | |
11105 | echo "$as_me: failed program was:" >&5 | |
11106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11107 | ||
11108 | ac_header_compiler=no | |
11109 | fi | |
11110 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11111 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11112 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11113 | ||
11114 | # Is the header present? | |
11115 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11116 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11117 | cat >conftest.$ac_ext <<_ACEOF | |
11118 | /* confdefs.h. */ | |
11119 | _ACEOF | |
11120 | cat confdefs.h >>conftest.$ac_ext | |
11121 | cat >>conftest.$ac_ext <<_ACEOF | |
11122 | /* end confdefs.h. */ | |
11123 | #include <$ac_header> | |
11124 | _ACEOF | |
11125 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11126 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11127 | ac_status=$? | |
11128 | grep -v '^ *+' conftest.er1 >conftest.err | |
11129 | rm -f conftest.er1 | |
11130 | cat conftest.err >&5 | |
11131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11132 | (exit $ac_status); } >/dev/null; then | |
11133 | if test -s conftest.err; then | |
11134 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11135 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11136 | else | |
11137 | ac_cpp_err= | |
11138 | fi | |
11139 | else | |
11140 | ac_cpp_err=yes | |
5ee754fc | 11141 | fi |
bec39cab AC |
11142 | if test -z "$ac_cpp_err"; then |
11143 | ac_header_preproc=yes | |
5ee754fc | 11144 | else |
bec39cab AC |
11145 | echo "$as_me: failed program was:" >&5 |
11146 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11147 | ||
11148 | ac_header_preproc=no | |
5ee754fc | 11149 | fi |
bec39cab AC |
11150 | rm -f conftest.err conftest.$ac_ext |
11151 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11152 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11153 | |
bec39cab AC |
11154 | # So? What about this header? |
11155 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11156 | yes:no: ) | |
11157 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11158 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11159 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11160 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11161 | ac_header_preproc=yes | |
11162 | ;; | |
11163 | no:yes:* ) | |
11164 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11165 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11166 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11167 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11168 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11169 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11170 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11171 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11172 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11173 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11174 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11175 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11176 | ( | |
11177 | cat <<\_ASBOX | |
11178 | ## ------------------------------------------ ## | |
11179 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11180 | ## ------------------------------------------ ## | |
11181 | _ASBOX | |
11182 | ) | | |
11183 | sed "s/^/$as_me: WARNING: /" >&2 | |
11184 | ;; | |
11185 | esac | |
11186 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11187 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11188 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11189 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11190 | else | |
11191 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11192 | fi |
bec39cab AC |
11193 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11194 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11195 | ||
5ee754fc | 11196 | fi |
bec39cab AC |
11197 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11198 | cat >>confdefs.h <<_ACEOF | |
11199 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11200 | _ACEOF | |
11201 | ||
5ee754fc | 11202 | fi |
bec39cab | 11203 | |
5ee754fc MK |
11204 | done |
11205 | ||
bec39cab AC |
11206 | |
11207 | ||
11208 | for ac_header in sys/ptrace.h ptrace.h | |
5ee754fc | 11209 | do |
bec39cab AC |
11210 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11211 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11212 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11213 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11214 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11216 | fi | |
11217 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11218 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11219 | else | |
11220 | # Is the header compilable? | |
11221 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11222 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11223 | cat >conftest.$ac_ext <<_ACEOF | |
11224 | /* confdefs.h. */ | |
11225 | _ACEOF | |
11226 | cat confdefs.h >>conftest.$ac_ext | |
11227 | cat >>conftest.$ac_ext <<_ACEOF | |
11228 | /* end confdefs.h. */ | |
11229 | $ac_includes_default | |
11230 | #include <$ac_header> | |
11231 | _ACEOF | |
11232 | rm -f conftest.$ac_objext | |
11233 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11234 | (eval $ac_compile) 2>conftest.er1 | |
11235 | ac_status=$? | |
11236 | grep -v '^ *+' conftest.er1 >conftest.err | |
11237 | rm -f conftest.er1 | |
11238 | cat conftest.err >&5 | |
11239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11240 | (exit $ac_status); } && | |
11241 | { ac_try='test -z "$ac_c_werror_flag" | |
11242 | || test ! -s conftest.err' | |
11243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11244 | (eval $ac_try) 2>&5 | |
11245 | ac_status=$? | |
11246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11247 | (exit $ac_status); }; } && | |
11248 | { ac_try='test -s conftest.$ac_objext' | |
11249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11250 | (eval $ac_try) 2>&5 | |
11251 | ac_status=$? | |
11252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11253 | (exit $ac_status); }; }; then | |
11254 | ac_header_compiler=yes | |
11255 | else | |
11256 | echo "$as_me: failed program was:" >&5 | |
11257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11258 | ||
11259 | ac_header_compiler=no | |
11260 | fi | |
11261 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11262 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11263 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11264 | ||
11265 | # Is the header present? | |
11266 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11267 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11268 | cat >conftest.$ac_ext <<_ACEOF | |
11269 | /* confdefs.h. */ | |
11270 | _ACEOF | |
11271 | cat confdefs.h >>conftest.$ac_ext | |
11272 | cat >>conftest.$ac_ext <<_ACEOF | |
11273 | /* end confdefs.h. */ | |
11274 | #include <$ac_header> | |
11275 | _ACEOF | |
11276 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11277 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11278 | ac_status=$? | |
11279 | grep -v '^ *+' conftest.er1 >conftest.err | |
11280 | rm -f conftest.er1 | |
11281 | cat conftest.err >&5 | |
11282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11283 | (exit $ac_status); } >/dev/null; then | |
11284 | if test -s conftest.err; then | |
11285 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11286 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11287 | else | |
11288 | ac_cpp_err= | |
11289 | fi | |
11290 | else | |
11291 | ac_cpp_err=yes | |
5ee754fc | 11292 | fi |
bec39cab AC |
11293 | if test -z "$ac_cpp_err"; then |
11294 | ac_header_preproc=yes | |
5ee754fc | 11295 | else |
bec39cab AC |
11296 | echo "$as_me: failed program was:" >&5 |
11297 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11298 | ||
11299 | ac_header_preproc=no | |
5ee754fc | 11300 | fi |
bec39cab AC |
11301 | rm -f conftest.err conftest.$ac_ext |
11302 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11303 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11304 | |
bec39cab AC |
11305 | # So? What about this header? |
11306 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11307 | yes:no: ) | |
11308 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11309 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11310 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11311 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11312 | ac_header_preproc=yes | |
11313 | ;; | |
11314 | no:yes:* ) | |
11315 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11316 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11317 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11318 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11319 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11320 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11321 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11322 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11323 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11324 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11325 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11326 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11327 | ( | |
11328 | cat <<\_ASBOX | |
11329 | ## ------------------------------------------ ## | |
11330 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11331 | ## ------------------------------------------ ## | |
11332 | _ASBOX | |
11333 | ) | | |
11334 | sed "s/^/$as_me: WARNING: /" >&2 | |
11335 | ;; | |
11336 | esac | |
11337 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11338 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11339 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11341 | else | |
11342 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11343 | fi |
bec39cab AC |
11344 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11345 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11346 | ||
5ee754fc | 11347 | fi |
bec39cab AC |
11348 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11349 | cat >>confdefs.h <<_ACEOF | |
11350 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11351 | _ACEOF | |
11352 | ||
5ee754fc | 11353 | fi |
bec39cab | 11354 | |
5ee754fc MK |
11355 | done |
11356 | ||
bec39cab AC |
11357 | |
11358 | ||
11359 | for ac_header in sys/reg.h sys/debugreg.h | |
5ee754fc | 11360 | do |
bec39cab AC |
11361 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11362 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11363 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11364 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11365 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11367 | fi | |
11368 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11369 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11370 | else | |
11371 | # Is the header compilable? | |
11372 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11373 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11374 | cat >conftest.$ac_ext <<_ACEOF | |
11375 | /* confdefs.h. */ | |
11376 | _ACEOF | |
11377 | cat confdefs.h >>conftest.$ac_ext | |
11378 | cat >>conftest.$ac_ext <<_ACEOF | |
11379 | /* end confdefs.h. */ | |
11380 | $ac_includes_default | |
11381 | #include <$ac_header> | |
11382 | _ACEOF | |
11383 | rm -f conftest.$ac_objext | |
11384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11385 | (eval $ac_compile) 2>conftest.er1 | |
11386 | ac_status=$? | |
11387 | grep -v '^ *+' conftest.er1 >conftest.err | |
11388 | rm -f conftest.er1 | |
11389 | cat conftest.err >&5 | |
11390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11391 | (exit $ac_status); } && | |
11392 | { ac_try='test -z "$ac_c_werror_flag" | |
11393 | || test ! -s conftest.err' | |
11394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11395 | (eval $ac_try) 2>&5 | |
11396 | ac_status=$? | |
11397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11398 | (exit $ac_status); }; } && | |
11399 | { ac_try='test -s conftest.$ac_objext' | |
11400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11401 | (eval $ac_try) 2>&5 | |
11402 | ac_status=$? | |
11403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11404 | (exit $ac_status); }; }; then | |
11405 | ac_header_compiler=yes | |
11406 | else | |
11407 | echo "$as_me: failed program was:" >&5 | |
11408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11409 | ||
11410 | ac_header_compiler=no | |
11411 | fi | |
11412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11413 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11414 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11415 | ||
11416 | # Is the header present? | |
11417 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11418 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11419 | cat >conftest.$ac_ext <<_ACEOF | |
11420 | /* confdefs.h. */ | |
11421 | _ACEOF | |
11422 | cat confdefs.h >>conftest.$ac_ext | |
11423 | cat >>conftest.$ac_ext <<_ACEOF | |
11424 | /* end confdefs.h. */ | |
11425 | #include <$ac_header> | |
11426 | _ACEOF | |
11427 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11428 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11429 | ac_status=$? | |
11430 | grep -v '^ *+' conftest.er1 >conftest.err | |
11431 | rm -f conftest.er1 | |
11432 | cat conftest.err >&5 | |
11433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11434 | (exit $ac_status); } >/dev/null; then | |
11435 | if test -s conftest.err; then | |
11436 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11437 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11438 | else | |
11439 | ac_cpp_err= | |
11440 | fi | |
11441 | else | |
11442 | ac_cpp_err=yes | |
5ee754fc | 11443 | fi |
bec39cab AC |
11444 | if test -z "$ac_cpp_err"; then |
11445 | ac_header_preproc=yes | |
5ee754fc | 11446 | else |
bec39cab AC |
11447 | echo "$as_me: failed program was:" >&5 |
11448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11449 | ||
11450 | ac_header_preproc=no | |
5ee754fc | 11451 | fi |
bec39cab AC |
11452 | rm -f conftest.err conftest.$ac_ext |
11453 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11454 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11455 | |
bec39cab AC |
11456 | # So? What about this header? |
11457 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11458 | yes:no: ) | |
11459 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11460 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11461 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11462 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11463 | ac_header_preproc=yes | |
11464 | ;; | |
11465 | no:yes:* ) | |
11466 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11467 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11468 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11469 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11470 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11471 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11472 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11473 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11474 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11475 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11476 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11477 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11478 | ( | |
11479 | cat <<\_ASBOX | |
11480 | ## ------------------------------------------ ## | |
11481 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11482 | ## ------------------------------------------ ## | |
11483 | _ASBOX | |
11484 | ) | | |
11485 | sed "s/^/$as_me: WARNING: /" >&2 | |
11486 | ;; | |
11487 | esac | |
11488 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11489 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11490 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11492 | else | |
11493 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11494 | fi |
bec39cab AC |
11495 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11496 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11497 | ||
5ee754fc | 11498 | fi |
bec39cab AC |
11499 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11500 | cat >>confdefs.h <<_ACEOF | |
11501 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11502 | _ACEOF | |
11503 | ||
5ee754fc | 11504 | fi |
bec39cab | 11505 | |
5ee754fc MK |
11506 | done |
11507 | ||
bec39cab AC |
11508 | |
11509 | for ac_header in sys/select.h | |
5ee754fc | 11510 | do |
bec39cab AC |
11511 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11512 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11513 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11514 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11515 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11516 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11517 | fi | |
11518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11519 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11520 | else | |
11521 | # Is the header compilable? | |
11522 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11523 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11524 | cat >conftest.$ac_ext <<_ACEOF | |
11525 | /* confdefs.h. */ | |
11526 | _ACEOF | |
11527 | cat confdefs.h >>conftest.$ac_ext | |
11528 | cat >>conftest.$ac_ext <<_ACEOF | |
11529 | /* end confdefs.h. */ | |
11530 | $ac_includes_default | |
11531 | #include <$ac_header> | |
11532 | _ACEOF | |
11533 | rm -f conftest.$ac_objext | |
11534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11535 | (eval $ac_compile) 2>conftest.er1 | |
11536 | ac_status=$? | |
11537 | grep -v '^ *+' conftest.er1 >conftest.err | |
11538 | rm -f conftest.er1 | |
11539 | cat conftest.err >&5 | |
11540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11541 | (exit $ac_status); } && | |
11542 | { ac_try='test -z "$ac_c_werror_flag" | |
11543 | || test ! -s conftest.err' | |
11544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11545 | (eval $ac_try) 2>&5 | |
11546 | ac_status=$? | |
11547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11548 | (exit $ac_status); }; } && | |
11549 | { ac_try='test -s conftest.$ac_objext' | |
11550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11551 | (eval $ac_try) 2>&5 | |
11552 | ac_status=$? | |
11553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11554 | (exit $ac_status); }; }; then | |
11555 | ac_header_compiler=yes | |
11556 | else | |
11557 | echo "$as_me: failed program was:" >&5 | |
11558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11559 | ||
11560 | ac_header_compiler=no | |
11561 | fi | |
11562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11563 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11564 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11565 | ||
11566 | # Is the header present? | |
11567 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11568 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11569 | cat >conftest.$ac_ext <<_ACEOF | |
11570 | /* confdefs.h. */ | |
11571 | _ACEOF | |
11572 | cat confdefs.h >>conftest.$ac_ext | |
11573 | cat >>conftest.$ac_ext <<_ACEOF | |
11574 | /* end confdefs.h. */ | |
11575 | #include <$ac_header> | |
11576 | _ACEOF | |
11577 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11578 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11579 | ac_status=$? | |
11580 | grep -v '^ *+' conftest.er1 >conftest.err | |
11581 | rm -f conftest.er1 | |
11582 | cat conftest.err >&5 | |
11583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11584 | (exit $ac_status); } >/dev/null; then | |
11585 | if test -s conftest.err; then | |
11586 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11587 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11588 | else | |
11589 | ac_cpp_err= | |
11590 | fi | |
11591 | else | |
11592 | ac_cpp_err=yes | |
5ee754fc | 11593 | fi |
bec39cab AC |
11594 | if test -z "$ac_cpp_err"; then |
11595 | ac_header_preproc=yes | |
5ee754fc | 11596 | else |
bec39cab AC |
11597 | echo "$as_me: failed program was:" >&5 |
11598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11599 | ||
11600 | ac_header_preproc=no | |
5ee754fc | 11601 | fi |
bec39cab AC |
11602 | rm -f conftest.err conftest.$ac_ext |
11603 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11604 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11605 | |
bec39cab AC |
11606 | # So? What about this header? |
11607 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11608 | yes:no: ) | |
11609 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11610 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11611 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11612 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11613 | ac_header_preproc=yes | |
11614 | ;; | |
11615 | no:yes:* ) | |
11616 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11617 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11618 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11619 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11620 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11621 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11622 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11623 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11624 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11625 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11626 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11627 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11628 | ( | |
11629 | cat <<\_ASBOX | |
11630 | ## ------------------------------------------ ## | |
11631 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11632 | ## ------------------------------------------ ## | |
11633 | _ASBOX | |
11634 | ) | | |
11635 | sed "s/^/$as_me: WARNING: /" >&2 | |
11636 | ;; | |
11637 | esac | |
11638 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11639 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11640 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11642 | else | |
11643 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11644 | fi |
bec39cab AC |
11645 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11646 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11647 | ||
5ee754fc | 11648 | fi |
bec39cab AC |
11649 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11650 | cat >>confdefs.h <<_ACEOF | |
11651 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11652 | _ACEOF | |
11653 | ||
5ee754fc | 11654 | fi |
bec39cab | 11655 | |
5ee754fc MK |
11656 | done |
11657 | ||
bec39cab AC |
11658 | |
11659 | for ac_header in sys/syscall.h | |
5ee754fc | 11660 | do |
bec39cab AC |
11661 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11662 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11663 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11664 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11665 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11667 | fi | |
11668 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11669 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11670 | else | |
11671 | # Is the header compilable? | |
11672 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11673 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11674 | cat >conftest.$ac_ext <<_ACEOF | |
11675 | /* confdefs.h. */ | |
11676 | _ACEOF | |
11677 | cat confdefs.h >>conftest.$ac_ext | |
11678 | cat >>conftest.$ac_ext <<_ACEOF | |
11679 | /* end confdefs.h. */ | |
11680 | $ac_includes_default | |
11681 | #include <$ac_header> | |
11682 | _ACEOF | |
11683 | rm -f conftest.$ac_objext | |
11684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11685 | (eval $ac_compile) 2>conftest.er1 | |
11686 | ac_status=$? | |
11687 | grep -v '^ *+' conftest.er1 >conftest.err | |
11688 | rm -f conftest.er1 | |
11689 | cat conftest.err >&5 | |
11690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11691 | (exit $ac_status); } && | |
11692 | { ac_try='test -z "$ac_c_werror_flag" | |
11693 | || test ! -s conftest.err' | |
11694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11695 | (eval $ac_try) 2>&5 | |
11696 | ac_status=$? | |
11697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11698 | (exit $ac_status); }; } && | |
11699 | { ac_try='test -s conftest.$ac_objext' | |
11700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11701 | (eval $ac_try) 2>&5 | |
11702 | ac_status=$? | |
11703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11704 | (exit $ac_status); }; }; then | |
11705 | ac_header_compiler=yes | |
11706 | else | |
11707 | echo "$as_me: failed program was:" >&5 | |
11708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11709 | ||
11710 | ac_header_compiler=no | |
11711 | fi | |
11712 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11713 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11714 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11715 | ||
11716 | # Is the header present? | |
11717 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11718 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11719 | cat >conftest.$ac_ext <<_ACEOF | |
11720 | /* confdefs.h. */ | |
11721 | _ACEOF | |
11722 | cat confdefs.h >>conftest.$ac_ext | |
11723 | cat >>conftest.$ac_ext <<_ACEOF | |
11724 | /* end confdefs.h. */ | |
11725 | #include <$ac_header> | |
11726 | _ACEOF | |
11727 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11728 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11729 | ac_status=$? | |
11730 | grep -v '^ *+' conftest.er1 >conftest.err | |
11731 | rm -f conftest.er1 | |
11732 | cat conftest.err >&5 | |
11733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11734 | (exit $ac_status); } >/dev/null; then | |
11735 | if test -s conftest.err; then | |
11736 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11737 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11738 | else | |
11739 | ac_cpp_err= | |
11740 | fi | |
11741 | else | |
11742 | ac_cpp_err=yes | |
5ee754fc | 11743 | fi |
bec39cab AC |
11744 | if test -z "$ac_cpp_err"; then |
11745 | ac_header_preproc=yes | |
5ee754fc | 11746 | else |
bec39cab AC |
11747 | echo "$as_me: failed program was:" >&5 |
11748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11749 | ||
11750 | ac_header_preproc=no | |
5ee754fc | 11751 | fi |
bec39cab AC |
11752 | rm -f conftest.err conftest.$ac_ext |
11753 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11754 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11755 | |
bec39cab AC |
11756 | # So? What about this header? |
11757 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11758 | yes:no: ) | |
11759 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11760 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11761 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11762 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11763 | ac_header_preproc=yes | |
11764 | ;; | |
11765 | no:yes:* ) | |
11766 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11767 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11768 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11769 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11770 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11771 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11772 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11773 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11774 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11775 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11776 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11777 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11778 | ( | |
11779 | cat <<\_ASBOX | |
11780 | ## ------------------------------------------ ## | |
11781 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11782 | ## ------------------------------------------ ## | |
11783 | _ASBOX | |
11784 | ) | | |
11785 | sed "s/^/$as_me: WARNING: /" >&2 | |
11786 | ;; | |
11787 | esac | |
11788 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11789 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11790 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11792 | else | |
11793 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11794 | fi |
bec39cab AC |
11795 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11796 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11797 | ||
5ee754fc | 11798 | fi |
bec39cab AC |
11799 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11800 | cat >>confdefs.h <<_ACEOF | |
11801 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11802 | _ACEOF | |
11803 | ||
5ee754fc | 11804 | fi |
bec39cab | 11805 | |
5ee754fc MK |
11806 | done |
11807 | ||
bec39cab AC |
11808 | |
11809 | for ac_header in sys/types.h | |
5ee754fc | 11810 | do |
bec39cab AC |
11811 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11812 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11813 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11814 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11815 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11817 | fi | |
11818 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11819 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11820 | else | |
11821 | # Is the header compilable? | |
11822 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11823 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11824 | cat >conftest.$ac_ext <<_ACEOF | |
11825 | /* confdefs.h. */ | |
11826 | _ACEOF | |
11827 | cat confdefs.h >>conftest.$ac_ext | |
11828 | cat >>conftest.$ac_ext <<_ACEOF | |
11829 | /* end confdefs.h. */ | |
11830 | $ac_includes_default | |
11831 | #include <$ac_header> | |
11832 | _ACEOF | |
11833 | rm -f conftest.$ac_objext | |
11834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11835 | (eval $ac_compile) 2>conftest.er1 | |
11836 | ac_status=$? | |
11837 | grep -v '^ *+' conftest.er1 >conftest.err | |
11838 | rm -f conftest.er1 | |
11839 | cat conftest.err >&5 | |
11840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11841 | (exit $ac_status); } && | |
11842 | { ac_try='test -z "$ac_c_werror_flag" | |
11843 | || test ! -s conftest.err' | |
11844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11845 | (eval $ac_try) 2>&5 | |
11846 | ac_status=$? | |
11847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11848 | (exit $ac_status); }; } && | |
11849 | { ac_try='test -s conftest.$ac_objext' | |
11850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11851 | (eval $ac_try) 2>&5 | |
11852 | ac_status=$? | |
11853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11854 | (exit $ac_status); }; }; then | |
11855 | ac_header_compiler=yes | |
11856 | else | |
11857 | echo "$as_me: failed program was:" >&5 | |
11858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11859 | ||
11860 | ac_header_compiler=no | |
11861 | fi | |
11862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11863 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11864 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11865 | ||
11866 | # Is the header present? | |
11867 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11868 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11869 | cat >conftest.$ac_ext <<_ACEOF | |
11870 | /* confdefs.h. */ | |
11871 | _ACEOF | |
11872 | cat confdefs.h >>conftest.$ac_ext | |
11873 | cat >>conftest.$ac_ext <<_ACEOF | |
11874 | /* end confdefs.h. */ | |
11875 | #include <$ac_header> | |
11876 | _ACEOF | |
11877 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11878 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11879 | ac_status=$? | |
11880 | grep -v '^ *+' conftest.er1 >conftest.err | |
11881 | rm -f conftest.er1 | |
11882 | cat conftest.err >&5 | |
11883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11884 | (exit $ac_status); } >/dev/null; then | |
11885 | if test -s conftest.err; then | |
11886 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11887 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11888 | else | |
11889 | ac_cpp_err= | |
11890 | fi | |
11891 | else | |
11892 | ac_cpp_err=yes | |
5ee754fc | 11893 | fi |
bec39cab AC |
11894 | if test -z "$ac_cpp_err"; then |
11895 | ac_header_preproc=yes | |
5ee754fc | 11896 | else |
bec39cab AC |
11897 | echo "$as_me: failed program was:" >&5 |
11898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11899 | ||
11900 | ac_header_preproc=no | |
5ee754fc | 11901 | fi |
bec39cab AC |
11902 | rm -f conftest.err conftest.$ac_ext |
11903 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11904 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 11905 | |
bec39cab AC |
11906 | # So? What about this header? |
11907 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11908 | yes:no: ) | |
11909 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11910 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11911 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11912 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11913 | ac_header_preproc=yes | |
11914 | ;; | |
11915 | no:yes:* ) | |
11916 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11917 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11918 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11919 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11920 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11921 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11922 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11923 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11924 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11925 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11926 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11927 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11928 | ( | |
11929 | cat <<\_ASBOX | |
11930 | ## ------------------------------------------ ## | |
11931 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11932 | ## ------------------------------------------ ## | |
11933 | _ASBOX | |
11934 | ) | | |
11935 | sed "s/^/$as_me: WARNING: /" >&2 | |
11936 | ;; | |
11937 | esac | |
11938 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11939 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11940 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11942 | else | |
11943 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 11944 | fi |
bec39cab AC |
11945 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11946 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11947 | ||
5ee754fc | 11948 | fi |
bec39cab AC |
11949 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11950 | cat >>confdefs.h <<_ACEOF | |
11951 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11952 | _ACEOF | |
11953 | ||
5ee754fc | 11954 | fi |
bec39cab | 11955 | |
5ee754fc MK |
11956 | done |
11957 | ||
bec39cab AC |
11958 | |
11959 | for ac_header in sys/user.h | |
5ee754fc | 11960 | do |
bec39cab | 11961 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
7cb9022a | 11962 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
bec39cab AC |
11963 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
11964 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11965 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bec39cab | 11966 | else |
7cb9022a | 11967 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
11968 | /* confdefs.h. */ |
11969 | _ACEOF | |
11970 | cat confdefs.h >>conftest.$ac_ext | |
11971 | cat >>conftest.$ac_ext <<_ACEOF | |
11972 | /* end confdefs.h. */ | |
7cb9022a MK |
11973 | #if HAVE_SYS_PARAM_H |
11974 | # include <sys/param.h> | |
11975 | #endif | |
11976 | ||
11977 | ||
bec39cab AC |
11978 | #include <$ac_header> |
11979 | _ACEOF | |
11980 | rm -f conftest.$ac_objext | |
11981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11982 | (eval $ac_compile) 2>conftest.er1 | |
11983 | ac_status=$? | |
11984 | grep -v '^ *+' conftest.er1 >conftest.err | |
11985 | rm -f conftest.er1 | |
11986 | cat conftest.err >&5 | |
11987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11988 | (exit $ac_status); } && | |
11989 | { ac_try='test -z "$ac_c_werror_flag" | |
11990 | || test ! -s conftest.err' | |
11991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11992 | (eval $ac_try) 2>&5 | |
11993 | ac_status=$? | |
11994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11995 | (exit $ac_status); }; } && | |
11996 | { ac_try='test -s conftest.$ac_objext' | |
11997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11998 | (eval $ac_try) 2>&5 | |
11999 | ac_status=$? | |
12000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12001 | (exit $ac_status); }; }; then | |
7cb9022a | 12002 | eval "$as_ac_Header=yes" |
bec39cab AC |
12003 | else |
12004 | echo "$as_me: failed program was:" >&5 | |
12005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12006 | ||
7cb9022a | 12007 | eval "$as_ac_Header=no" |
bec39cab AC |
12008 | fi |
12009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 12010 | fi |
bec39cab AC |
12011 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12012 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
12013 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12014 | cat >>confdefs.h <<_ACEOF | |
12015 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12016 | _ACEOF | |
12017 | ||
5ee754fc | 12018 | fi |
bec39cab | 12019 | |
5ee754fc MK |
12020 | done |
12021 | ||
bec39cab AC |
12022 | |
12023 | ||
12024 | for ac_header in sys/wait.h wait.h | |
5ee754fc | 12025 | do |
bec39cab AC |
12026 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12027 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12028 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12029 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12030 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12032 | fi | |
12033 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12034 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12035 | else | |
12036 | # Is the header compilable? | |
12037 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12038 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12039 | cat >conftest.$ac_ext <<_ACEOF | |
12040 | /* confdefs.h. */ | |
12041 | _ACEOF | |
12042 | cat confdefs.h >>conftest.$ac_ext | |
12043 | cat >>conftest.$ac_ext <<_ACEOF | |
12044 | /* end confdefs.h. */ | |
12045 | $ac_includes_default | |
12046 | #include <$ac_header> | |
12047 | _ACEOF | |
12048 | rm -f conftest.$ac_objext | |
12049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12050 | (eval $ac_compile) 2>conftest.er1 | |
12051 | ac_status=$? | |
12052 | grep -v '^ *+' conftest.er1 >conftest.err | |
12053 | rm -f conftest.er1 | |
12054 | cat conftest.err >&5 | |
12055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12056 | (exit $ac_status); } && | |
12057 | { ac_try='test -z "$ac_c_werror_flag" | |
12058 | || test ! -s conftest.err' | |
12059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12060 | (eval $ac_try) 2>&5 | |
12061 | ac_status=$? | |
12062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12063 | (exit $ac_status); }; } && | |
12064 | { ac_try='test -s conftest.$ac_objext' | |
12065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12066 | (eval $ac_try) 2>&5 | |
12067 | ac_status=$? | |
12068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12069 | (exit $ac_status); }; }; then | |
12070 | ac_header_compiler=yes | |
12071 | else | |
12072 | echo "$as_me: failed program was:" >&5 | |
12073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12074 | ||
12075 | ac_header_compiler=no | |
12076 | fi | |
12077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12078 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12079 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12080 | ||
12081 | # Is the header present? | |
12082 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12083 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12084 | cat >conftest.$ac_ext <<_ACEOF | |
12085 | /* confdefs.h. */ | |
12086 | _ACEOF | |
12087 | cat confdefs.h >>conftest.$ac_ext | |
12088 | cat >>conftest.$ac_ext <<_ACEOF | |
12089 | /* end confdefs.h. */ | |
12090 | #include <$ac_header> | |
12091 | _ACEOF | |
12092 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12093 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12094 | ac_status=$? | |
12095 | grep -v '^ *+' conftest.er1 >conftest.err | |
12096 | rm -f conftest.er1 | |
12097 | cat conftest.err >&5 | |
12098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12099 | (exit $ac_status); } >/dev/null; then | |
12100 | if test -s conftest.err; then | |
12101 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12102 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12103 | else | |
12104 | ac_cpp_err= | |
12105 | fi | |
12106 | else | |
12107 | ac_cpp_err=yes | |
5ee754fc | 12108 | fi |
bec39cab AC |
12109 | if test -z "$ac_cpp_err"; then |
12110 | ac_header_preproc=yes | |
5ee754fc | 12111 | else |
bec39cab AC |
12112 | echo "$as_me: failed program was:" >&5 |
12113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12114 | ||
12115 | ac_header_preproc=no | |
5ee754fc | 12116 | fi |
bec39cab AC |
12117 | rm -f conftest.err conftest.$ac_ext |
12118 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12119 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 12120 | |
bec39cab AC |
12121 | # So? What about this header? |
12122 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12123 | yes:no: ) | |
12124 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12125 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12126 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12127 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12128 | ac_header_preproc=yes | |
12129 | ;; | |
12130 | no:yes:* ) | |
12131 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12132 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12133 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12134 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12135 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12136 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12137 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12138 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12139 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12140 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12141 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12142 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12143 | ( | |
12144 | cat <<\_ASBOX | |
12145 | ## ------------------------------------------ ## | |
12146 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12147 | ## ------------------------------------------ ## | |
12148 | _ASBOX | |
12149 | ) | | |
12150 | sed "s/^/$as_me: WARNING: /" >&2 | |
12151 | ;; | |
12152 | esac | |
12153 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12154 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12155 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12157 | else | |
12158 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 12159 | fi |
bec39cab AC |
12160 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12161 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12162 | ||
9608ab8b | 12163 | fi |
bec39cab AC |
12164 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12165 | cat >>confdefs.h <<_ACEOF | |
12166 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12167 | _ACEOF | |
12168 | ||
9608ab8b | 12169 | fi |
bec39cab | 12170 | |
9608ab8b | 12171 | done |
5ee754fc | 12172 | |
bec39cab AC |
12173 | |
12174 | ||
12175 | ||
12176 | for ac_header in termios.h termio.h sgtty.h | |
5ee754fc | 12177 | do |
bec39cab AC |
12178 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12179 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12180 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12181 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12182 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12184 | fi | |
12185 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12186 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12187 | else | |
12188 | # Is the header compilable? | |
12189 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12190 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12191 | cat >conftest.$ac_ext <<_ACEOF | |
12192 | /* confdefs.h. */ | |
12193 | _ACEOF | |
12194 | cat confdefs.h >>conftest.$ac_ext | |
12195 | cat >>conftest.$ac_ext <<_ACEOF | |
12196 | /* end confdefs.h. */ | |
12197 | $ac_includes_default | |
12198 | #include <$ac_header> | |
12199 | _ACEOF | |
12200 | rm -f conftest.$ac_objext | |
12201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12202 | (eval $ac_compile) 2>conftest.er1 | |
12203 | ac_status=$? | |
12204 | grep -v '^ *+' conftest.er1 >conftest.err | |
12205 | rm -f conftest.er1 | |
12206 | cat conftest.err >&5 | |
12207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12208 | (exit $ac_status); } && | |
12209 | { ac_try='test -z "$ac_c_werror_flag" | |
12210 | || test ! -s conftest.err' | |
12211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12212 | (eval $ac_try) 2>&5 | |
12213 | ac_status=$? | |
12214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12215 | (exit $ac_status); }; } && | |
12216 | { ac_try='test -s conftest.$ac_objext' | |
12217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12218 | (eval $ac_try) 2>&5 | |
12219 | ac_status=$? | |
12220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12221 | (exit $ac_status); }; }; then | |
12222 | ac_header_compiler=yes | |
12223 | else | |
12224 | echo "$as_me: failed program was:" >&5 | |
12225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12226 | ||
12227 | ac_header_compiler=no | |
12228 | fi | |
12229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12230 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12231 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12232 | ||
12233 | # Is the header present? | |
12234 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12235 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12236 | cat >conftest.$ac_ext <<_ACEOF | |
12237 | /* confdefs.h. */ | |
12238 | _ACEOF | |
12239 | cat confdefs.h >>conftest.$ac_ext | |
12240 | cat >>conftest.$ac_ext <<_ACEOF | |
12241 | /* end confdefs.h. */ | |
12242 | #include <$ac_header> | |
12243 | _ACEOF | |
12244 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12245 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12246 | ac_status=$? | |
12247 | grep -v '^ *+' conftest.er1 >conftest.err | |
12248 | rm -f conftest.er1 | |
12249 | cat conftest.err >&5 | |
12250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12251 | (exit $ac_status); } >/dev/null; then | |
12252 | if test -s conftest.err; then | |
12253 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12254 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12255 | else | |
12256 | ac_cpp_err= | |
12257 | fi | |
12258 | else | |
12259 | ac_cpp_err=yes | |
9608ab8b | 12260 | fi |
bec39cab AC |
12261 | if test -z "$ac_cpp_err"; then |
12262 | ac_header_preproc=yes | |
9608ab8b | 12263 | else |
bec39cab AC |
12264 | echo "$as_me: failed program was:" >&5 |
12265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12266 | ||
12267 | ac_header_preproc=no | |
9608ab8b | 12268 | fi |
bec39cab AC |
12269 | rm -f conftest.err conftest.$ac_ext |
12270 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12271 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9608ab8b | 12272 | |
bec39cab AC |
12273 | # So? What about this header? |
12274 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12275 | yes:no: ) | |
12276 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12277 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12278 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12279 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12280 | ac_header_preproc=yes | |
12281 | ;; | |
12282 | no:yes:* ) | |
12283 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12284 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12285 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12286 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12287 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12288 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12289 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12290 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12291 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12292 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12293 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12294 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12295 | ( | |
12296 | cat <<\_ASBOX | |
12297 | ## ------------------------------------------ ## | |
12298 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12299 | ## ------------------------------------------ ## | |
12300 | _ASBOX | |
12301 | ) | | |
12302 | sed "s/^/$as_me: WARNING: /" >&2 | |
12303 | ;; | |
12304 | esac | |
12305 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12306 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12307 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12309 | else | |
12310 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 12311 | fi |
bec39cab AC |
12312 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12313 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12314 | ||
9608ab8b | 12315 | fi |
bec39cab AC |
12316 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12317 | cat >>confdefs.h <<_ACEOF | |
12318 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12319 | _ACEOF | |
12320 | ||
9608ab8b | 12321 | fi |
bec39cab | 12322 | |
5ee754fc | 12323 | done |
9608ab8b | 12324 | |
bec39cab AC |
12325 | |
12326 | for ac_header in unistd.h | |
78434e59 | 12327 | do |
bec39cab AC |
12328 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12329 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12330 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12331 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12332 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12334 | fi | |
12335 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12336 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12337 | else | |
12338 | # Is the header compilable? | |
12339 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12340 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12341 | cat >conftest.$ac_ext <<_ACEOF | |
12342 | /* confdefs.h. */ | |
12343 | _ACEOF | |
12344 | cat confdefs.h >>conftest.$ac_ext | |
12345 | cat >>conftest.$ac_ext <<_ACEOF | |
12346 | /* end confdefs.h. */ | |
12347 | $ac_includes_default | |
12348 | #include <$ac_header> | |
12349 | _ACEOF | |
12350 | rm -f conftest.$ac_objext | |
12351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12352 | (eval $ac_compile) 2>conftest.er1 | |
12353 | ac_status=$? | |
12354 | grep -v '^ *+' conftest.er1 >conftest.err | |
12355 | rm -f conftest.er1 | |
12356 | cat conftest.err >&5 | |
12357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12358 | (exit $ac_status); } && | |
12359 | { ac_try='test -z "$ac_c_werror_flag" | |
12360 | || test ! -s conftest.err' | |
12361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12362 | (eval $ac_try) 2>&5 | |
12363 | ac_status=$? | |
12364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12365 | (exit $ac_status); }; } && | |
12366 | { ac_try='test -s conftest.$ac_objext' | |
12367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12368 | (eval $ac_try) 2>&5 | |
12369 | ac_status=$? | |
12370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12371 | (exit $ac_status); }; }; then | |
12372 | ac_header_compiler=yes | |
12373 | else | |
12374 | echo "$as_me: failed program was:" >&5 | |
12375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12376 | ||
12377 | ac_header_compiler=no | |
12378 | fi | |
12379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12380 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12381 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12382 | ||
12383 | # Is the header present? | |
12384 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12385 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12386 | cat >conftest.$ac_ext <<_ACEOF | |
12387 | /* confdefs.h. */ | |
12388 | _ACEOF | |
12389 | cat confdefs.h >>conftest.$ac_ext | |
12390 | cat >>conftest.$ac_ext <<_ACEOF | |
12391 | /* end confdefs.h. */ | |
12392 | #include <$ac_header> | |
12393 | _ACEOF | |
12394 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12395 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12396 | ac_status=$? | |
12397 | grep -v '^ *+' conftest.er1 >conftest.err | |
12398 | rm -f conftest.er1 | |
12399 | cat conftest.err >&5 | |
12400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12401 | (exit $ac_status); } >/dev/null; then | |
12402 | if test -s conftest.err; then | |
12403 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12404 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12405 | else | |
12406 | ac_cpp_err= | |
12407 | fi | |
12408 | else | |
12409 | ac_cpp_err=yes | |
78434e59 | 12410 | fi |
bec39cab AC |
12411 | if test -z "$ac_cpp_err"; then |
12412 | ac_header_preproc=yes | |
78434e59 | 12413 | else |
bec39cab AC |
12414 | echo "$as_me: failed program was:" >&5 |
12415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12416 | ||
12417 | ac_header_preproc=no | |
78434e59 | 12418 | fi |
bec39cab AC |
12419 | rm -f conftest.err conftest.$ac_ext |
12420 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12421 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
78434e59 | 12422 | |
bec39cab AC |
12423 | # So? What about this header? |
12424 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12425 | yes:no: ) | |
12426 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12427 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12428 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12429 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12430 | ac_header_preproc=yes | |
12431 | ;; | |
12432 | no:yes:* ) | |
12433 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12434 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12435 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12436 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12437 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12438 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12439 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12440 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12441 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12442 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12443 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12444 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12445 | ( | |
12446 | cat <<\_ASBOX | |
12447 | ## ------------------------------------------ ## | |
12448 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12449 | ## ------------------------------------------ ## | |
12450 | _ASBOX | |
12451 | ) | | |
12452 | sed "s/^/$as_me: WARNING: /" >&2 | |
12453 | ;; | |
12454 | esac | |
12455 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12456 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12457 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12459 | else | |
12460 | eval "$as_ac_Header=\$ac_header_preproc" | |
086ec9eb | 12461 | fi |
bec39cab AC |
12462 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12463 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12464 | ||
086ec9eb | 12465 | fi |
bec39cab AC |
12466 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12467 | cat >>confdefs.h <<_ACEOF | |
12468 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12469 | _ACEOF | |
12470 | ||
086ec9eb | 12471 | fi |
bec39cab | 12472 | |
086ec9eb MK |
12473 | done |
12474 | ||
9608ab8b | 12475 | |
b1d19a62 | 12476 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
5ee754fc MK |
12477 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
12478 | # think that we don't have <curses.h> if we're using GCC. | |
12479 | case $host_os in | |
b1d19a62 | 12480 | solaris2.[789]) |
5ee754fc | 12481 | if test "$GCC" = yes; then |
bec39cab AC |
12482 | |
12483 | cat >>confdefs.h <<\_ACEOF | |
5ee754fc | 12484 | #define _MSE_INT_H 1 |
bec39cab | 12485 | _ACEOF |
5ee754fc MK |
12486 | |
12487 | fi ;; | |
12488 | esac | |
bec39cab AC |
12489 | |
12490 | ||
12491 | ||
12492 | ||
12493 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h | |
5ee754fc | 12494 | do |
bec39cab AC |
12495 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12496 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12497 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12498 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12499 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12501 | fi | |
12502 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12503 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12504 | else | |
12505 | # Is the header compilable? | |
12506 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12507 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12508 | cat >conftest.$ac_ext <<_ACEOF | |
12509 | /* confdefs.h. */ | |
12510 | _ACEOF | |
12511 | cat confdefs.h >>conftest.$ac_ext | |
12512 | cat >>conftest.$ac_ext <<_ACEOF | |
12513 | /* end confdefs.h. */ | |
12514 | $ac_includes_default | |
12515 | #include <$ac_header> | |
12516 | _ACEOF | |
12517 | rm -f conftest.$ac_objext | |
12518 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12519 | (eval $ac_compile) 2>conftest.er1 | |
12520 | ac_status=$? | |
12521 | grep -v '^ *+' conftest.er1 >conftest.err | |
12522 | rm -f conftest.er1 | |
12523 | cat conftest.err >&5 | |
12524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12525 | (exit $ac_status); } && | |
12526 | { ac_try='test -z "$ac_c_werror_flag" | |
12527 | || test ! -s conftest.err' | |
12528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12529 | (eval $ac_try) 2>&5 | |
12530 | ac_status=$? | |
12531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12532 | (exit $ac_status); }; } && | |
12533 | { ac_try='test -s conftest.$ac_objext' | |
12534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12535 | (eval $ac_try) 2>&5 | |
12536 | ac_status=$? | |
12537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12538 | (exit $ac_status); }; }; then | |
12539 | ac_header_compiler=yes | |
12540 | else | |
12541 | echo "$as_me: failed program was:" >&5 | |
12542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12543 | ||
12544 | ac_header_compiler=no | |
12545 | fi | |
12546 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12547 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12548 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12549 | ||
12550 | # Is the header present? | |
12551 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12552 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12553 | cat >conftest.$ac_ext <<_ACEOF | |
12554 | /* confdefs.h. */ | |
12555 | _ACEOF | |
12556 | cat confdefs.h >>conftest.$ac_ext | |
12557 | cat >>conftest.$ac_ext <<_ACEOF | |
12558 | /* end confdefs.h. */ | |
12559 | #include <$ac_header> | |
12560 | _ACEOF | |
12561 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12562 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12563 | ac_status=$? | |
12564 | grep -v '^ *+' conftest.er1 >conftest.err | |
12565 | rm -f conftest.er1 | |
12566 | cat conftest.err >&5 | |
12567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12568 | (exit $ac_status); } >/dev/null; then | |
12569 | if test -s conftest.err; then | |
12570 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12571 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12572 | else | |
12573 | ac_cpp_err= | |
12574 | fi | |
12575 | else | |
12576 | ac_cpp_err=yes | |
c906108c | 12577 | fi |
bec39cab AC |
12578 | if test -z "$ac_cpp_err"; then |
12579 | ac_header_preproc=yes | |
12580 | else | |
12581 | echo "$as_me: failed program was:" >&5 | |
12582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12583 | ||
12584 | ac_header_preproc=no | |
c906108c | 12585 | fi |
bec39cab AC |
12586 | rm -f conftest.err conftest.$ac_ext |
12587 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12588 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12589 | ||
12590 | # So? What about this header? | |
12591 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12592 | yes:no: ) | |
12593 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12594 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12595 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12596 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12597 | ac_header_preproc=yes | |
12598 | ;; | |
12599 | no:yes:* ) | |
12600 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12601 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12602 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12603 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12604 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12605 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12606 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12607 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12608 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12609 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12610 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12611 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12612 | ( | |
12613 | cat <<\_ASBOX | |
12614 | ## ------------------------------------------ ## | |
12615 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12616 | ## ------------------------------------------ ## | |
12617 | _ASBOX | |
12618 | ) | | |
12619 | sed "s/^/$as_me: WARNING: /" >&2 | |
12620 | ;; | |
12621 | esac | |
12622 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12623 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12624 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 12626 | else |
bec39cab | 12627 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 12628 | fi |
bec39cab AC |
12629 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12630 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12631 | ||
12632 | fi | |
12633 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12634 | cat >>confdefs.h <<_ACEOF | |
12635 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12636 | _ACEOF | |
12637 | ||
12638 | fi | |
12639 | ||
5ee754fc | 12640 | done |
c906108c | 12641 | |
bec39cab AC |
12642 | |
12643 | ||
12644 | for ac_header in ncurses/term.h term.h | |
3b78cdbb | 12645 | do |
bec39cab AC |
12646 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12647 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12648 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12649 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12650 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12652 | fi | |
12653 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12654 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12655 | else | |
12656 | # Is the header compilable? | |
12657 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12658 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12659 | cat >conftest.$ac_ext <<_ACEOF | |
12660 | /* confdefs.h. */ | |
12661 | _ACEOF | |
12662 | cat confdefs.h >>conftest.$ac_ext | |
12663 | cat >>conftest.$ac_ext <<_ACEOF | |
12664 | /* end confdefs.h. */ | |
12665 | $ac_includes_default | |
12666 | #include <$ac_header> | |
12667 | _ACEOF | |
12668 | rm -f conftest.$ac_objext | |
12669 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12670 | (eval $ac_compile) 2>conftest.er1 | |
12671 | ac_status=$? | |
12672 | grep -v '^ *+' conftest.er1 >conftest.err | |
12673 | rm -f conftest.er1 | |
12674 | cat conftest.err >&5 | |
12675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12676 | (exit $ac_status); } && | |
12677 | { ac_try='test -z "$ac_c_werror_flag" | |
12678 | || test ! -s conftest.err' | |
12679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12680 | (eval $ac_try) 2>&5 | |
12681 | ac_status=$? | |
12682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12683 | (exit $ac_status); }; } && | |
12684 | { ac_try='test -s conftest.$ac_objext' | |
12685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12686 | (eval $ac_try) 2>&5 | |
12687 | ac_status=$? | |
12688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12689 | (exit $ac_status); }; }; then | |
12690 | ac_header_compiler=yes | |
12691 | else | |
12692 | echo "$as_me: failed program was:" >&5 | |
12693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12694 | ||
12695 | ac_header_compiler=no | |
12696 | fi | |
12697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12698 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12699 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12700 | ||
12701 | # Is the header present? | |
12702 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12703 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
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 | #include <$ac_header> | |
12711 | _ACEOF | |
12712 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12713 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12714 | ac_status=$? | |
12715 | grep -v '^ *+' conftest.er1 >conftest.err | |
12716 | rm -f conftest.er1 | |
12717 | cat conftest.err >&5 | |
12718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12719 | (exit $ac_status); } >/dev/null; then | |
12720 | if test -s conftest.err; then | |
12721 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12722 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12723 | else | |
12724 | ac_cpp_err= | |
12725 | fi | |
12726 | else | |
12727 | ac_cpp_err=yes | |
3b78cdbb | 12728 | fi |
bec39cab AC |
12729 | if test -z "$ac_cpp_err"; then |
12730 | ac_header_preproc=yes | |
12731 | else | |
12732 | echo "$as_me: failed program was:" >&5 | |
12733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12734 | ||
12735 | ac_header_preproc=no | |
3b78cdbb | 12736 | fi |
bec39cab AC |
12737 | rm -f conftest.err conftest.$ac_ext |
12738 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12739 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12740 | ||
12741 | # So? What about this header? | |
12742 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12743 | yes:no: ) | |
12744 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12745 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12746 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12747 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12748 | ac_header_preproc=yes | |
12749 | ;; | |
12750 | no:yes:* ) | |
12751 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12752 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12753 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12754 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12755 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12756 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12757 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12758 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12759 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12760 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12761 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12762 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12763 | ( | |
12764 | cat <<\_ASBOX | |
12765 | ## ------------------------------------------ ## | |
12766 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12767 | ## ------------------------------------------ ## | |
12768 | _ASBOX | |
12769 | ) | | |
12770 | sed "s/^/$as_me: WARNING: /" >&2 | |
12771 | ;; | |
12772 | esac | |
12773 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12774 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12775 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3b78cdbb | 12777 | else |
bec39cab AC |
12778 | eval "$as_ac_Header=\$ac_header_preproc" |
12779 | fi | |
12780 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12781 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12782 | ||
3b78cdbb | 12783 | fi |
bec39cab AC |
12784 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12785 | cat >>confdefs.h <<_ACEOF | |
12786 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12787 | _ACEOF | |
12788 | ||
12789 | fi | |
12790 | ||
3b78cdbb DA |
12791 | done |
12792 | ||
c906108c | 12793 | |
5ee754fc MK |
12794 | # FIXME: kettenis/20030102: In most cases we include these |
12795 | # unconditionally, so what's the point in checking these? | |
bec39cab AC |
12796 | |
12797 | ||
12798 | for ac_header in ctype.h time.h | |
c906108c | 12799 | do |
bec39cab AC |
12800 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12801 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12802 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12803 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12804 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12806 | fi | |
12807 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12808 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12809 | else | |
12810 | # Is the header compilable? | |
12811 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12812 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12813 | cat >conftest.$ac_ext <<_ACEOF | |
12814 | /* confdefs.h. */ | |
12815 | _ACEOF | |
12816 | cat confdefs.h >>conftest.$ac_ext | |
12817 | cat >>conftest.$ac_ext <<_ACEOF | |
12818 | /* end confdefs.h. */ | |
12819 | $ac_includes_default | |
12820 | #include <$ac_header> | |
12821 | _ACEOF | |
12822 | rm -f conftest.$ac_objext | |
12823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12824 | (eval $ac_compile) 2>conftest.er1 | |
12825 | ac_status=$? | |
12826 | grep -v '^ *+' conftest.er1 >conftest.err | |
12827 | rm -f conftest.er1 | |
12828 | cat conftest.err >&5 | |
12829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12830 | (exit $ac_status); } && | |
12831 | { ac_try='test -z "$ac_c_werror_flag" | |
12832 | || test ! -s conftest.err' | |
12833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12834 | (eval $ac_try) 2>&5 | |
12835 | ac_status=$? | |
12836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12837 | (exit $ac_status); }; } && | |
12838 | { ac_try='test -s conftest.$ac_objext' | |
12839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12840 | (eval $ac_try) 2>&5 | |
12841 | ac_status=$? | |
12842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12843 | (exit $ac_status); }; }; then | |
12844 | ac_header_compiler=yes | |
12845 | else | |
12846 | echo "$as_me: failed program was:" >&5 | |
12847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12848 | ||
12849 | ac_header_compiler=no | |
12850 | fi | |
12851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12852 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12853 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12854 | ||
12855 | # Is the header present? | |
12856 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12857 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12858 | cat >conftest.$ac_ext <<_ACEOF | |
12859 | /* confdefs.h. */ | |
12860 | _ACEOF | |
12861 | cat confdefs.h >>conftest.$ac_ext | |
12862 | cat >>conftest.$ac_ext <<_ACEOF | |
12863 | /* end confdefs.h. */ | |
12864 | #include <$ac_header> | |
12865 | _ACEOF | |
12866 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12867 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12868 | ac_status=$? | |
12869 | grep -v '^ *+' conftest.er1 >conftest.err | |
12870 | rm -f conftest.er1 | |
12871 | cat conftest.err >&5 | |
12872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12873 | (exit $ac_status); } >/dev/null; then | |
12874 | if test -s conftest.err; then | |
12875 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12876 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12877 | else | |
12878 | ac_cpp_err= | |
12879 | fi | |
12880 | else | |
12881 | ac_cpp_err=yes | |
c906108c | 12882 | fi |
bec39cab AC |
12883 | if test -z "$ac_cpp_err"; then |
12884 | ac_header_preproc=yes | |
12885 | else | |
12886 | echo "$as_me: failed program was:" >&5 | |
12887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12888 | ||
12889 | ac_header_preproc=no | |
c906108c | 12890 | fi |
bec39cab AC |
12891 | rm -f conftest.err conftest.$ac_ext |
12892 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12893 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12894 | ||
12895 | # So? What about this header? | |
12896 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12897 | yes:no: ) | |
12898 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12899 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12900 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12901 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12902 | ac_header_preproc=yes | |
12903 | ;; | |
12904 | no:yes:* ) | |
12905 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12906 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12907 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12908 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12909 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12910 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12911 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12912 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12913 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12914 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12915 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12916 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12917 | ( | |
12918 | cat <<\_ASBOX | |
12919 | ## ------------------------------------------ ## | |
12920 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12921 | ## ------------------------------------------ ## | |
12922 | _ASBOX | |
12923 | ) | | |
12924 | sed "s/^/$as_me: WARNING: /" >&2 | |
12925 | ;; | |
12926 | esac | |
12927 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12928 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12929 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 12931 | else |
bec39cab AC |
12932 | eval "$as_ac_Header=\$ac_header_preproc" |
12933 | fi | |
12934 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12935 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12936 | ||
12937 | fi | |
12938 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12939 | cat >>confdefs.h <<_ACEOF | |
12940 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12941 | _ACEOF | |
12942 | ||
c906108c | 12943 | fi |
bec39cab | 12944 | |
c906108c SS |
12945 | done |
12946 | ||
5ee754fc | 12947 | |
bec39cab AC |
12948 | echo "$as_me:$LINENO: checking for member st_blocks in struct stat" >&5 |
12949 | echo $ECHO_N "checking for member st_blocks in struct stat... $ECHO_C" >&6 | |
12950 | if test "${gdb_cv_have_struct_stat_with_st_blocks_member+set}" = set; then | |
12951 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
40a7debc | 12952 | else |
bec39cab AC |
12953 | cat >conftest.$ac_ext <<_ACEOF |
12954 | /* confdefs.h. */ | |
12955 | _ACEOF | |
12956 | cat confdefs.h >>conftest.$ac_ext | |
12957 | cat >>conftest.$ac_ext <<_ACEOF | |
12958 | /* end confdefs.h. */ | |
40a7debc EZ |
12959 | #include <sys/types.h> |
12960 | #include <sys/stat.h> | |
bec39cab AC |
12961 | int |
12962 | main () | |
12963 | { | |
40a7debc | 12964 | struct stat st; (void) st.st_blocks; |
bec39cab AC |
12965 | ; |
12966 | return 0; | |
12967 | } | |
12968 | _ACEOF | |
12969 | rm -f conftest.$ac_objext | |
12970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12971 | (eval $ac_compile) 2>conftest.er1 | |
12972 | ac_status=$? | |
12973 | grep -v '^ *+' conftest.er1 >conftest.err | |
12974 | rm -f conftest.er1 | |
12975 | cat conftest.err >&5 | |
12976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12977 | (exit $ac_status); } && | |
12978 | { ac_try='test -z "$ac_c_werror_flag" | |
12979 | || test ! -s conftest.err' | |
12980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12981 | (eval $ac_try) 2>&5 | |
12982 | ac_status=$? | |
12983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12984 | (exit $ac_status); }; } && | |
12985 | { ac_try='test -s conftest.$ac_objext' | |
12986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12987 | (eval $ac_try) 2>&5 | |
12988 | ac_status=$? | |
12989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12990 | (exit $ac_status); }; }; then | |
40a7debc EZ |
12991 | gdb_cv_have_struct_stat_with_st_blocks_member=yes |
12992 | else | |
bec39cab AC |
12993 | echo "$as_me: failed program was:" >&5 |
12994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12995 | ||
12996 | gdb_cv_have_struct_stat_with_st_blocks_member=no | |
40a7debc | 12997 | fi |
bec39cab | 12998 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
40a7debc EZ |
12999 | fi |
13000 | ||
bec39cab AC |
13001 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_stat_with_st_blocks_member" >&5 |
13002 | echo "${ECHO_T}$gdb_cv_have_struct_stat_with_st_blocks_member" >&6 | |
40a7debc | 13003 | if test $gdb_cv_have_struct_stat_with_st_blocks_member = yes; then |
bec39cab | 13004 | cat >>confdefs.h <<\_ACEOF |
40a7debc | 13005 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
bec39cab | 13006 | _ACEOF |
40a7debc EZ |
13007 | |
13008 | fi | |
086ec9eb | 13009 | |
b9362cc7 AC |
13010 | # ------------------------- # |
13011 | # Checks for declarations. # | |
13012 | # ------------------------- # | |
13013 | ||
13014 | for ac_func in getopt | |
13015 | do | |
13016 | ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
bec39cab AC |
13017 | echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5 |
13018 | echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6 | |
13019 | if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then | |
13020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13021 | else | |
13022 | cat >conftest.$ac_ext <<_ACEOF | |
13023 | /* confdefs.h. */ | |
13024 | _ACEOF | |
13025 | cat confdefs.h >>conftest.$ac_ext | |
13026 | cat >>conftest.$ac_ext <<_ACEOF | |
13027 | /* end confdefs.h. */ | |
b9362cc7 AC |
13028 | #undef $ac_tr_decl |
13029 | #define $ac_tr_decl 1 | |
b9362cc7 | 13030 | |
bec39cab AC |
13031 | |
13032 | int | |
13033 | main () | |
13034 | { | |
b9362cc7 AC |
13035 | #ifndef $ac_func |
13036 | char *(*pfn) = (char *(*)) $ac_func ; | |
13037 | #endif | |
bec39cab AC |
13038 | ; |
13039 | return 0; | |
13040 | } | |
13041 | _ACEOF | |
13042 | rm -f conftest.$ac_objext | |
13043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13044 | (eval $ac_compile) 2>conftest.er1 | |
13045 | ac_status=$? | |
13046 | grep -v '^ *+' conftest.er1 >conftest.err | |
13047 | rm -f conftest.er1 | |
13048 | cat conftest.err >&5 | |
13049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13050 | (exit $ac_status); } && | |
13051 | { ac_try='test -z "$ac_c_werror_flag" | |
13052 | || test ! -s conftest.err' | |
13053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13054 | (eval $ac_try) 2>&5 | |
13055 | ac_status=$? | |
13056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13057 | (exit $ac_status); }; } && | |
13058 | { ac_try='test -s conftest.$ac_objext' | |
13059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13060 | (eval $ac_try) 2>&5 | |
13061 | ac_status=$? | |
13062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13063 | (exit $ac_status); }; }; then | |
b9362cc7 AC |
13064 | eval "gcc_cv_have_decl_$ac_func=yes" |
13065 | else | |
bec39cab AC |
13066 | echo "$as_me: failed program was:" >&5 |
13067 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13068 | ||
13069 | eval "gcc_cv_have_decl_$ac_func=no" | |
b9362cc7 | 13070 | fi |
bec39cab | 13071 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b9362cc7 AC |
13072 | fi |
13073 | ||
13074 | if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then | |
bec39cab AC |
13075 | echo "$as_me:$LINENO: result: yes" >&5 |
13076 | echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF | |
b9362cc7 | 13077 | #define $ac_tr_decl 1 |
bec39cab AC |
13078 | _ACEOF |
13079 | ||
b9362cc7 | 13080 | else |
bec39cab AC |
13081 | echo "$as_me:$LINENO: result: no" >&5 |
13082 | echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF | |
b9362cc7 | 13083 | #define $ac_tr_decl 0 |
bec39cab AC |
13084 | _ACEOF |
13085 | ||
b9362cc7 AC |
13086 | fi |
13087 | ||
13088 | done | |
13089 | if test x = y ; then | |
bec39cab AC |
13090 | |
13091 | cat >>confdefs.h <<\_ACEOF | |
b9362cc7 | 13092 | #define HAVE_DECL_GETOPT 1 |
bec39cab | 13093 | _ACEOF |
b9362cc7 AC |
13094 | fi |
13095 | ||
13096 | ||
5ee754fc MK |
13097 | # ------------------ # |
13098 | # Checks for types. # | |
13099 | # ------------------ # | |
13100 | ||
bec39cab AC |
13101 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
13102 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
13103 | if test "${ac_cv_type_signal+set}" = set; then | |
13104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13105 | else | |
13106 | cat >conftest.$ac_ext <<_ACEOF | |
13107 | /* confdefs.h. */ | |
13108 | _ACEOF | |
13109 | cat confdefs.h >>conftest.$ac_ext | |
13110 | cat >>conftest.$ac_ext <<_ACEOF | |
13111 | /* end confdefs.h. */ | |
c906108c | 13112 | #include <sys/types.h> |
5ee754fc MK |
13113 | #include <signal.h> |
13114 | #ifdef signal | |
bec39cab | 13115 | # undef signal |
c906108c | 13116 | #endif |
5ee754fc MK |
13117 | #ifdef __cplusplus |
13118 | extern "C" void (*signal (int, void (*)(int)))(int); | |
13119 | #else | |
13120 | void (*signal ()) (); | |
c906108c SS |
13121 | #endif |
13122 | ||
bec39cab AC |
13123 | int |
13124 | main () | |
13125 | { | |
5ee754fc | 13126 | int i; |
bec39cab AC |
13127 | ; |
13128 | return 0; | |
13129 | } | |
13130 | _ACEOF | |
13131 | rm -f conftest.$ac_objext | |
13132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13133 | (eval $ac_compile) 2>conftest.er1 | |
13134 | ac_status=$? | |
13135 | grep -v '^ *+' conftest.er1 >conftest.err | |
13136 | rm -f conftest.er1 | |
13137 | cat conftest.err >&5 | |
13138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13139 | (exit $ac_status); } && | |
13140 | { ac_try='test -z "$ac_c_werror_flag" | |
13141 | || test ! -s conftest.err' | |
13142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13143 | (eval $ac_try) 2>&5 | |
13144 | ac_status=$? | |
13145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13146 | (exit $ac_status); }; } && | |
13147 | { ac_try='test -s conftest.$ac_objext' | |
13148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13149 | (eval $ac_try) 2>&5 | |
13150 | ac_status=$? | |
13151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13152 | (exit $ac_status); }; }; then | |
5ee754fc | 13153 | ac_cv_type_signal=void |
c906108c | 13154 | else |
bec39cab AC |
13155 | echo "$as_me: failed program was:" >&5 |
13156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13157 | ||
13158 | ac_cv_type_signal=int | |
c906108c | 13159 | fi |
bec39cab | 13160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 13161 | fi |
bec39cab AC |
13162 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
13163 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
c906108c | 13164 | |
bec39cab | 13165 | cat >>confdefs.h <<_ACEOF |
5ee754fc | 13166 | #define RETSIGTYPE $ac_cv_type_signal |
bec39cab | 13167 | _ACEOF |
c906108c | 13168 | |
c906108c SS |
13169 | |
13170 | ||
5ee754fc MK |
13171 | # ------------------------------------- # |
13172 | # Checks for compiler characteristics. # | |
13173 | # ------------------------------------- # | |
13174 | ||
bec39cab AC |
13175 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
13176 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13177 | if test "${ac_cv_c_const+set}" = set; then | |
13178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13179 | else | |
13180 | cat >conftest.$ac_ext <<_ACEOF | |
13181 | /* confdefs.h. */ | |
13182 | _ACEOF | |
13183 | cat confdefs.h >>conftest.$ac_ext | |
13184 | cat >>conftest.$ac_ext <<_ACEOF | |
13185 | /* end confdefs.h. */ | |
13186 | ||
13187 | int | |
13188 | main () | |
13189 | { | |
13190 | /* FIXME: Include the comments suggested by Paul. */ | |
13191 | #ifndef __cplusplus | |
13192 | /* Ultrix mips cc rejects this. */ | |
13193 | typedef int charset[2]; | |
13194 | const charset x; | |
13195 | /* SunOS 4.1.1 cc rejects this. */ | |
13196 | char const *const *ccp; | |
13197 | char **p; | |
13198 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13199 | struct point {int x, y;}; | |
13200 | static struct point const zero = {0,0}; | |
13201 | /* AIX XL C 1.02.0.0 rejects this. | |
13202 | It does not let you subtract one const X* pointer from another in | |
13203 | an arm of an if-expression whose if-part is not a constant | |
13204 | expression */ | |
13205 | const char *g = "string"; | |
13206 | ccp = &g + (g ? g-g : 0); | |
13207 | /* HPUX 7.0 cc rejects these. */ | |
13208 | ++ccp; | |
13209 | p = (char**) ccp; | |
13210 | ccp = (char const *const *) p; | |
13211 | { /* SCO 3.2v4 cc rejects this. */ | |
13212 | char *t; | |
13213 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13214 | ||
13215 | *t++ = 0; | |
13216 | } | |
13217 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13218 | int x[] = {25, 17}; | |
13219 | const int *foo = &x[0]; | |
13220 | ++foo; | |
13221 | } | |
13222 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13223 | typedef const int *iptr; | |
13224 | iptr p = 0; | |
13225 | ++p; | |
13226 | } | |
13227 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13228 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13229 | struct s { int j; const int *ap[3]; }; | |
13230 | struct s *b; b->j = 5; | |
13231 | } | |
13232 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13233 | const int foo = 10; | |
13234 | } | |
13235 | #endif | |
13236 | ||
13237 | ; | |
13238 | return 0; | |
13239 | } | |
13240 | _ACEOF | |
13241 | rm -f conftest.$ac_objext | |
13242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13243 | (eval $ac_compile) 2>conftest.er1 | |
13244 | ac_status=$? | |
13245 | grep -v '^ *+' conftest.er1 >conftest.err | |
13246 | rm -f conftest.er1 | |
13247 | cat conftest.err >&5 | |
13248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13249 | (exit $ac_status); } && | |
13250 | { ac_try='test -z "$ac_c_werror_flag" | |
13251 | || test ! -s conftest.err' | |
13252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13253 | (eval $ac_try) 2>&5 | |
13254 | ac_status=$? | |
13255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13256 | (exit $ac_status); }; } && | |
13257 | { ac_try='test -s conftest.$ac_objext' | |
13258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13259 | (eval $ac_try) 2>&5 | |
13260 | ac_status=$? | |
13261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13262 | (exit $ac_status); }; }; then | |
c906108c SS |
13263 | ac_cv_c_const=yes |
13264 | else | |
bec39cab AC |
13265 | echo "$as_me: failed program was:" >&5 |
13266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13267 | ||
13268 | ac_cv_c_const=no | |
c906108c | 13269 | fi |
bec39cab | 13270 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 13271 | fi |
bec39cab AC |
13272 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
13273 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
c906108c | 13274 | if test $ac_cv_c_const = no; then |
bec39cab AC |
13275 | |
13276 | cat >>confdefs.h <<\_ACEOF | |
13277 | #define const | |
13278 | _ACEOF | |
c906108c SS |
13279 | |
13280 | fi | |
13281 | ||
bec39cab AC |
13282 | echo "$as_me:$LINENO: checking for inline" >&5 |
13283 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13284 | if test "${ac_cv_c_inline+set}" = set; then | |
13285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
bce58c09 JB |
13286 | else |
13287 | ac_cv_c_inline=no | |
13288 | for ac_kw in inline __inline__ __inline; do | |
bec39cab AC |
13289 | cat >conftest.$ac_ext <<_ACEOF |
13290 | /* confdefs.h. */ | |
13291 | _ACEOF | |
13292 | cat confdefs.h >>conftest.$ac_ext | |
13293 | cat >>conftest.$ac_ext <<_ACEOF | |
13294 | /* end confdefs.h. */ | |
13295 | #ifndef __cplusplus | |
13296 | typedef int foo_t; | |
13297 | static $ac_kw foo_t static_foo () {return 0; } | |
13298 | $ac_kw foo_t foo () {return 0; } | |
13299 | #endif | |
13300 | ||
13301 | _ACEOF | |
13302 | rm -f conftest.$ac_objext | |
13303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13304 | (eval $ac_compile) 2>conftest.er1 | |
13305 | ac_status=$? | |
13306 | grep -v '^ *+' conftest.er1 >conftest.err | |
13307 | rm -f conftest.er1 | |
13308 | cat conftest.err >&5 | |
13309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13310 | (exit $ac_status); } && | |
13311 | { ac_try='test -z "$ac_c_werror_flag" | |
13312 | || test ! -s conftest.err' | |
13313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13314 | (eval $ac_try) 2>&5 | |
13315 | ac_status=$? | |
13316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13317 | (exit $ac_status); }; } && | |
13318 | { ac_try='test -s conftest.$ac_objext' | |
13319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13320 | (eval $ac_try) 2>&5 | |
13321 | ac_status=$? | |
13322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13323 | (exit $ac_status); }; }; then | |
bce58c09 JB |
13324 | ac_cv_c_inline=$ac_kw; break |
13325 | else | |
bec39cab AC |
13326 | echo "$as_me: failed program was:" >&5 |
13327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13328 | ||
bce58c09 | 13329 | fi |
bec39cab | 13330 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bce58c09 JB |
13331 | done |
13332 | ||
13333 | fi | |
bec39cab AC |
13334 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
13335 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
13336 | ||
bce58c09 | 13337 | |
bec39cab | 13338 | case $ac_cv_c_inline in |
bce58c09 | 13339 | inline | yes) ;; |
bec39cab AC |
13340 | *) |
13341 | case $ac_cv_c_inline in | |
13342 | no) ac_val=;; | |
13343 | *) ac_val=$ac_cv_c_inline;; | |
13344 | esac | |
13345 | cat >>confdefs.h <<_ACEOF | |
13346 | #ifndef __cplusplus | |
13347 | #define inline $ac_val | |
13348 | #endif | |
13349 | _ACEOF | |
13350 | ;; | |
bce58c09 JB |
13351 | esac |
13352 | ||
c906108c | 13353 | |
5ee754fc MK |
13354 | # ------------------------------ # |
13355 | # Checks for library functions. # | |
13356 | # ------------------------------ # | |
13357 | ||
46711df8 MK |
13358 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
13359 | # for constant arguments. Useless! | |
bec39cab AC |
13360 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
13361 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
13362 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
13363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13364 | else | |
13365 | cat >conftest.$ac_ext <<_ACEOF | |
13366 | /* confdefs.h. */ | |
13367 | _ACEOF | |
13368 | cat confdefs.h >>conftest.$ac_ext | |
13369 | cat >>conftest.$ac_ext <<_ACEOF | |
13370 | /* end confdefs.h. */ | |
46711df8 | 13371 | #include <alloca.h> |
bec39cab AC |
13372 | int |
13373 | main () | |
13374 | { | |
13375 | char *p = (char *) alloca (2 * sizeof (int)); | |
13376 | ; | |
13377 | return 0; | |
13378 | } | |
13379 | _ACEOF | |
13380 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13381 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13382 | (eval $ac_link) 2>conftest.er1 | |
13383 | ac_status=$? | |
13384 | grep -v '^ *+' conftest.er1 >conftest.err | |
13385 | rm -f conftest.er1 | |
13386 | cat conftest.err >&5 | |
13387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13388 | (exit $ac_status); } && | |
13389 | { ac_try='test -z "$ac_c_werror_flag" | |
13390 | || test ! -s conftest.err' | |
13391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13392 | (eval $ac_try) 2>&5 | |
13393 | ac_status=$? | |
13394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13395 | (exit $ac_status); }; } && | |
13396 | { ac_try='test -s conftest$ac_exeext' | |
13397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13398 | (eval $ac_try) 2>&5 | |
13399 | ac_status=$? | |
13400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13401 | (exit $ac_status); }; }; then | |
13402 | ac_cv_working_alloca_h=yes | |
13403 | else | |
13404 | echo "$as_me: failed program was:" >&5 | |
13405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13406 | ||
13407 | ac_cv_working_alloca_h=no | |
13408 | fi | |
13409 | rm -f conftest.err conftest.$ac_objext \ | |
13410 | conftest$ac_exeext conftest.$ac_ext | |
13411 | fi | |
13412 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
13413 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
13414 | if test $ac_cv_working_alloca_h = yes; then | |
13415 | ||
13416 | cat >>confdefs.h <<\_ACEOF | |
46711df8 | 13417 | #define HAVE_ALLOCA_H 1 |
bec39cab | 13418 | _ACEOF |
46711df8 MK |
13419 | |
13420 | fi | |
13421 | ||
bec39cab AC |
13422 | echo "$as_me:$LINENO: checking for alloca" >&5 |
13423 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
13424 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
13425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46711df8 | 13426 | else |
bec39cab AC |
13427 | cat >conftest.$ac_ext <<_ACEOF |
13428 | /* confdefs.h. */ | |
13429 | _ACEOF | |
13430 | cat confdefs.h >>conftest.$ac_ext | |
13431 | cat >>conftest.$ac_ext <<_ACEOF | |
13432 | /* end confdefs.h. */ | |
46711df8 MK |
13433 | #ifdef __GNUC__ |
13434 | # define alloca __builtin_alloca | |
13435 | #else | |
13436 | # ifdef _MSC_VER | |
13437 | # include <malloc.h> | |
13438 | # define alloca _alloca | |
13439 | # else | |
13440 | # if HAVE_ALLOCA_H | |
13441 | # include <alloca.h> | |
13442 | # else | |
13443 | # ifdef _AIX | |
13444 | #pragma alloca | |
13445 | # else | |
13446 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
13447 | char *alloca (); | |
13448 | # endif | |
13449 | # endif | |
13450 | # endif | |
13451 | # endif | |
13452 | #endif | |
13453 | ||
bec39cab AC |
13454 | int |
13455 | main () | |
13456 | { | |
13457 | char *p = (char *) alloca (1); | |
13458 | ; | |
13459 | return 0; | |
13460 | } | |
13461 | _ACEOF | |
13462 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13463 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13464 | (eval $ac_link) 2>conftest.er1 | |
13465 | ac_status=$? | |
13466 | grep -v '^ *+' conftest.er1 >conftest.err | |
13467 | rm -f conftest.er1 | |
13468 | cat conftest.err >&5 | |
13469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13470 | (exit $ac_status); } && | |
13471 | { ac_try='test -z "$ac_c_werror_flag" | |
13472 | || test ! -s conftest.err' | |
13473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13474 | (eval $ac_try) 2>&5 | |
13475 | ac_status=$? | |
13476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13477 | (exit $ac_status); }; } && | |
13478 | { ac_try='test -s conftest$ac_exeext' | |
13479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13480 | (eval $ac_try) 2>&5 | |
13481 | ac_status=$? | |
13482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13483 | (exit $ac_status); }; }; then | |
46711df8 MK |
13484 | ac_cv_func_alloca_works=yes |
13485 | else | |
bec39cab AC |
13486 | echo "$as_me: failed program was:" >&5 |
13487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13488 | ||
13489 | ac_cv_func_alloca_works=no | |
46711df8 | 13490 | fi |
bec39cab AC |
13491 | rm -f conftest.err conftest.$ac_objext \ |
13492 | conftest$ac_exeext conftest.$ac_ext | |
46711df8 | 13493 | fi |
bec39cab AC |
13494 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
13495 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
46711df8 | 13496 | |
46711df8 | 13497 | if test $ac_cv_func_alloca_works = yes; then |
46711df8 | 13498 | |
bec39cab AC |
13499 | cat >>confdefs.h <<\_ACEOF |
13500 | #define HAVE_ALLOCA 1 | |
13501 | _ACEOF | |
46711df8 | 13502 | |
bec39cab | 13503 | else |
46711df8 | 13504 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
bec39cab AC |
13505 | # that cause trouble. Some versions do not even contain alloca or |
13506 | # contain a buggy version. If you still want to use their alloca, | |
13507 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
13508 | ||
13509 | ALLOCA=alloca.$ac_objext | |
13510 | ||
13511 | cat >>confdefs.h <<\_ACEOF | |
46711df8 | 13512 | #define C_ALLOCA 1 |
bec39cab | 13513 | _ACEOF |
46711df8 MK |
13514 | |
13515 | ||
bec39cab AC |
13516 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
13517 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
13518 | if test "${ac_cv_os_cray+set}" = set; then | |
13519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46711df8 | 13520 | else |
bec39cab AC |
13521 | cat >conftest.$ac_ext <<_ACEOF |
13522 | /* confdefs.h. */ | |
13523 | _ACEOF | |
13524 | cat confdefs.h >>conftest.$ac_ext | |
13525 | cat >>conftest.$ac_ext <<_ACEOF | |
13526 | /* end confdefs.h. */ | |
46711df8 MK |
13527 | #if defined(CRAY) && ! defined(CRAY2) |
13528 | webecray | |
13529 | #else | |
13530 | wenotbecray | |
13531 | #endif | |
13532 | ||
bec39cab | 13533 | _ACEOF |
46711df8 | 13534 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 13535 | $EGREP "webecray" >/dev/null 2>&1; then |
46711df8 MK |
13536 | ac_cv_os_cray=yes |
13537 | else | |
46711df8 MK |
13538 | ac_cv_os_cray=no |
13539 | fi | |
13540 | rm -f conftest* | |
13541 | ||
13542 | fi | |
bec39cab AC |
13543 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
13544 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
46711df8 | 13545 | if test $ac_cv_os_cray = yes; then |
bec39cab AC |
13546 | for ac_func in _getb67 GETB67 getb67; do |
13547 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13548 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13549 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13550 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13552 | else | |
13553 | cat >conftest.$ac_ext <<_ACEOF | |
13554 | /* confdefs.h. */ | |
13555 | _ACEOF | |
13556 | cat confdefs.h >>conftest.$ac_ext | |
13557 | cat >>conftest.$ac_ext <<_ACEOF | |
13558 | /* end confdefs.h. */ | |
13559 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13560 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13561 | #define $ac_func innocuous_$ac_func | |
13562 | ||
46711df8 | 13563 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
13564 | which can conflict with char $ac_func (); below. |
13565 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13566 | <limits.h> exists even on freestanding compilers. */ | |
13567 | ||
13568 | #ifdef __STDC__ | |
13569 | # include <limits.h> | |
13570 | #else | |
13571 | # include <assert.h> | |
13572 | #endif | |
46711df8 | 13573 | |
bec39cab | 13574 | #undef $ac_func |
46711df8 | 13575 | |
bec39cab AC |
13576 | /* Override any gcc2 internal prototype to avoid an error. */ |
13577 | #ifdef __cplusplus | |
13578 | extern "C" | |
13579 | { | |
13580 | #endif | |
13581 | /* We use char because int might match the return type of a gcc2 | |
13582 | builtin and then its argument prototype would still apply. */ | |
13583 | char $ac_func (); | |
46711df8 MK |
13584 | /* The GNU C library defines this for functions which it implements |
13585 | to always fail with ENOSYS. Some functions are actually named | |
13586 | something starting with __ and the normal name is an alias. */ | |
13587 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13588 | choke me | |
13589 | #else | |
bec39cab AC |
13590 | char (*f) () = $ac_func; |
13591 | #endif | |
13592 | #ifdef __cplusplus | |
13593 | } | |
46711df8 MK |
13594 | #endif |
13595 | ||
bec39cab AC |
13596 | int |
13597 | main () | |
13598 | { | |
13599 | return f != $ac_func; | |
13600 | ; | |
13601 | return 0; | |
13602 | } | |
13603 | _ACEOF | |
13604 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13605 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13606 | (eval $ac_link) 2>conftest.er1 | |
13607 | ac_status=$? | |
13608 | grep -v '^ *+' conftest.er1 >conftest.err | |
13609 | rm -f conftest.er1 | |
13610 | cat conftest.err >&5 | |
13611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13612 | (exit $ac_status); } && | |
13613 | { ac_try='test -z "$ac_c_werror_flag" | |
13614 | || test ! -s conftest.err' | |
13615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13616 | (eval $ac_try) 2>&5 | |
13617 | ac_status=$? | |
13618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13619 | (exit $ac_status); }; } && | |
13620 | { ac_try='test -s conftest$ac_exeext' | |
13621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13622 | (eval $ac_try) 2>&5 | |
13623 | ac_status=$? | |
13624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13625 | (exit $ac_status); }; }; then | |
13626 | eval "$as_ac_var=yes" | |
13627 | else | |
13628 | echo "$as_me: failed program was:" >&5 | |
13629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13630 | ||
13631 | eval "$as_ac_var=no" | |
13632 | fi | |
13633 | rm -f conftest.err conftest.$ac_objext \ | |
13634 | conftest$ac_exeext conftest.$ac_ext | |
13635 | fi | |
13636 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13637 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13638 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13639 | ||
13640 | cat >>confdefs.h <<_ACEOF | |
46711df8 | 13641 | #define CRAY_STACKSEG_END $ac_func |
bec39cab | 13642 | _ACEOF |
46711df8 | 13643 | |
bec39cab | 13644 | break |
46711df8 MK |
13645 | fi |
13646 | ||
bec39cab | 13647 | done |
46711df8 MK |
13648 | fi |
13649 | ||
bec39cab AC |
13650 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
13651 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
13652 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
13653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
46711df8 MK |
13654 | else |
13655 | if test "$cross_compiling" = yes; then | |
13656 | ac_cv_c_stack_direction=0 | |
13657 | else | |
bec39cab AC |
13658 | cat >conftest.$ac_ext <<_ACEOF |
13659 | /* confdefs.h. */ | |
13660 | _ACEOF | |
13661 | cat confdefs.h >>conftest.$ac_ext | |
13662 | cat >>conftest.$ac_ext <<_ACEOF | |
13663 | /* end confdefs.h. */ | |
13664 | int | |
46711df8 MK |
13665 | find_stack_direction () |
13666 | { | |
13667 | static char *addr = 0; | |
13668 | auto char dummy; | |
13669 | if (addr == 0) | |
13670 | { | |
13671 | addr = &dummy; | |
13672 | return find_stack_direction (); | |
13673 | } | |
13674 | else | |
13675 | return (&dummy > addr) ? 1 : -1; | |
13676 | } | |
bec39cab AC |
13677 | |
13678 | int | |
46711df8 MK |
13679 | main () |
13680 | { | |
bec39cab | 13681 | exit (find_stack_direction () < 0); |
46711df8 | 13682 | } |
bec39cab AC |
13683 | _ACEOF |
13684 | rm -f conftest$ac_exeext | |
13685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13686 | (eval $ac_link) 2>&5 | |
13687 | ac_status=$? | |
13688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13689 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13691 | (eval $ac_try) 2>&5 | |
13692 | ac_status=$? | |
13693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13694 | (exit $ac_status); }; }; then | |
46711df8 MK |
13695 | ac_cv_c_stack_direction=1 |
13696 | else | |
bec39cab AC |
13697 | echo "$as_me: program exited with status $ac_status" >&5 |
13698 | echo "$as_me: failed program was:" >&5 | |
13699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13700 | ||
13701 | ( exit $ac_status ) | |
13702 | ac_cv_c_stack_direction=-1 | |
46711df8 | 13703 | fi |
bec39cab | 13704 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
46711df8 | 13705 | fi |
46711df8 | 13706 | fi |
bec39cab AC |
13707 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
13708 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
46711df8 | 13709 | |
bec39cab | 13710 | cat >>confdefs.h <<_ACEOF |
46711df8 | 13711 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
bec39cab AC |
13712 | _ACEOF |
13713 | ||
46711df8 MK |
13714 | |
13715 | fi | |
13716 | ||
bec39cab AC |
13717 | |
13718 | ||
13719 | for ac_header in stdlib.h unistd.h | |
97bf5e38 | 13720 | do |
bec39cab AC |
13721 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13723 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13724 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13725 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13727 | fi | |
13728 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13729 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13730 | else | |
13731 | # Is the header compilable? | |
13732 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13733 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13734 | cat >conftest.$ac_ext <<_ACEOF | |
13735 | /* confdefs.h. */ | |
13736 | _ACEOF | |
13737 | cat confdefs.h >>conftest.$ac_ext | |
13738 | cat >>conftest.$ac_ext <<_ACEOF | |
13739 | /* end confdefs.h. */ | |
13740 | $ac_includes_default | |
13741 | #include <$ac_header> | |
13742 | _ACEOF | |
13743 | rm -f conftest.$ac_objext | |
13744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13745 | (eval $ac_compile) 2>conftest.er1 | |
13746 | ac_status=$? | |
13747 | grep -v '^ *+' conftest.er1 >conftest.err | |
13748 | rm -f conftest.er1 | |
13749 | cat conftest.err >&5 | |
13750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13751 | (exit $ac_status); } && | |
13752 | { ac_try='test -z "$ac_c_werror_flag" | |
13753 | || test ! -s conftest.err' | |
13754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13755 | (eval $ac_try) 2>&5 | |
13756 | ac_status=$? | |
13757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13758 | (exit $ac_status); }; } && | |
13759 | { ac_try='test -s conftest.$ac_objext' | |
13760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13761 | (eval $ac_try) 2>&5 | |
13762 | ac_status=$? | |
13763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13764 | (exit $ac_status); }; }; then | |
13765 | ac_header_compiler=yes | |
13766 | else | |
13767 | echo "$as_me: failed program was:" >&5 | |
13768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13769 | ||
13770 | ac_header_compiler=no | |
13771 | fi | |
13772 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13773 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13774 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13775 | ||
13776 | # Is the header present? | |
13777 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13778 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13779 | cat >conftest.$ac_ext <<_ACEOF | |
13780 | /* confdefs.h. */ | |
13781 | _ACEOF | |
13782 | cat confdefs.h >>conftest.$ac_ext | |
13783 | cat >>conftest.$ac_ext <<_ACEOF | |
13784 | /* end confdefs.h. */ | |
13785 | #include <$ac_header> | |
13786 | _ACEOF | |
13787 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13788 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13789 | ac_status=$? | |
13790 | grep -v '^ *+' conftest.er1 >conftest.err | |
13791 | rm -f conftest.er1 | |
13792 | cat conftest.err >&5 | |
13793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13794 | (exit $ac_status); } >/dev/null; then | |
13795 | if test -s conftest.err; then | |
13796 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13797 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13798 | else | |
13799 | ac_cpp_err= | |
13800 | fi | |
13801 | else | |
13802 | ac_cpp_err=yes | |
74c1b268 | 13803 | fi |
bec39cab AC |
13804 | if test -z "$ac_cpp_err"; then |
13805 | ac_header_preproc=yes | |
13806 | else | |
13807 | echo "$as_me: failed program was:" >&5 | |
13808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13809 | ||
13810 | ac_header_preproc=no | |
74c1b268 | 13811 | fi |
bec39cab AC |
13812 | rm -f conftest.err conftest.$ac_ext |
13813 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13814 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13815 | ||
13816 | # So? What about this header? | |
13817 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13818 | yes:no: ) | |
13819 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13820 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13821 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13822 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13823 | ac_header_preproc=yes | |
13824 | ;; | |
13825 | no:yes:* ) | |
13826 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13827 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13828 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13829 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13830 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13831 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13832 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13833 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13834 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13835 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13836 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13837 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13838 | ( | |
13839 | cat <<\_ASBOX | |
13840 | ## ------------------------------------------ ## | |
13841 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13842 | ## ------------------------------------------ ## | |
13843 | _ASBOX | |
13844 | ) | | |
13845 | sed "s/^/$as_me: WARNING: /" >&2 | |
13846 | ;; | |
13847 | esac | |
13848 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13849 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13850 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
74c1b268 | 13852 | else |
bec39cab AC |
13853 | eval "$as_ac_Header=\$ac_header_preproc" |
13854 | fi | |
13855 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13856 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13857 | ||
74c1b268 | 13858 | fi |
bec39cab AC |
13859 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13860 | cat >>confdefs.h <<_ACEOF | |
13861 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13862 | _ACEOF | |
13863 | ||
13864 | fi | |
13865 | ||
97bf5e38 | 13866 | done |
74c1b268 | 13867 | |
bec39cab | 13868 | |
97bf5e38 MK |
13869 | for ac_func in getpagesize |
13870 | do | |
bec39cab AC |
13871 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13872 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13873 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13874 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13876 | else | |
13877 | cat >conftest.$ac_ext <<_ACEOF | |
13878 | /* confdefs.h. */ | |
13879 | _ACEOF | |
13880 | cat confdefs.h >>conftest.$ac_ext | |
13881 | cat >>conftest.$ac_ext <<_ACEOF | |
13882 | /* end confdefs.h. */ | |
13883 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13884 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13885 | #define $ac_func innocuous_$ac_func | |
13886 | ||
74c1b268 | 13887 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
13888 | which can conflict with char $ac_func (); below. |
13889 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13890 | <limits.h> exists even on freestanding compilers. */ | |
13891 | ||
13892 | #ifdef __STDC__ | |
13893 | # include <limits.h> | |
13894 | #else | |
13895 | # include <assert.h> | |
13896 | #endif | |
74c1b268 | 13897 | |
bec39cab | 13898 | #undef $ac_func |
74c1b268 | 13899 | |
bec39cab AC |
13900 | /* Override any gcc2 internal prototype to avoid an error. */ |
13901 | #ifdef __cplusplus | |
13902 | extern "C" | |
13903 | { | |
13904 | #endif | |
13905 | /* We use char because int might match the return type of a gcc2 | |
13906 | builtin and then its argument prototype would still apply. */ | |
13907 | char $ac_func (); | |
74c1b268 AC |
13908 | /* The GNU C library defines this for functions which it implements |
13909 | to always fail with ENOSYS. Some functions are actually named | |
13910 | something starting with __ and the normal name is an alias. */ | |
97bf5e38 | 13911 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
74c1b268 AC |
13912 | choke me |
13913 | #else | |
bec39cab AC |
13914 | char (*f) () = $ac_func; |
13915 | #endif | |
13916 | #ifdef __cplusplus | |
13917 | } | |
74c1b268 AC |
13918 | #endif |
13919 | ||
bec39cab AC |
13920 | int |
13921 | main () | |
13922 | { | |
13923 | return f != $ac_func; | |
13924 | ; | |
13925 | return 0; | |
13926 | } | |
13927 | _ACEOF | |
13928 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13930 | (eval $ac_link) 2>conftest.er1 | |
13931 | ac_status=$? | |
13932 | grep -v '^ *+' conftest.er1 >conftest.err | |
13933 | rm -f conftest.er1 | |
13934 | cat conftest.err >&5 | |
13935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13936 | (exit $ac_status); } && | |
13937 | { ac_try='test -z "$ac_c_werror_flag" | |
13938 | || test ! -s conftest.err' | |
13939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13940 | (eval $ac_try) 2>&5 | |
13941 | ac_status=$? | |
13942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13943 | (exit $ac_status); }; } && | |
13944 | { ac_try='test -s conftest$ac_exeext' | |
13945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13946 | (eval $ac_try) 2>&5 | |
13947 | ac_status=$? | |
13948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13949 | (exit $ac_status); }; }; then | |
13950 | eval "$as_ac_var=yes" | |
13951 | else | |
13952 | echo "$as_me: failed program was:" >&5 | |
13953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13954 | ||
13955 | eval "$as_ac_var=no" | |
13956 | fi | |
13957 | rm -f conftest.err conftest.$ac_objext \ | |
13958 | conftest$ac_exeext conftest.$ac_ext | |
13959 | fi | |
13960 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13961 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13962 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13963 | cat >>confdefs.h <<_ACEOF | |
13964 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13965 | _ACEOF | |
74c1b268 | 13966 | |
74c1b268 | 13967 | fi |
97bf5e38 | 13968 | done |
74c1b268 | 13969 | |
bec39cab AC |
13970 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
13971 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
13972 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
13973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
13974 | else |
13975 | if test "$cross_compiling" = yes; then | |
13976 | ac_cv_func_mmap_fixed_mapped=no | |
74c1b268 | 13977 | else |
bec39cab AC |
13978 | cat >conftest.$ac_ext <<_ACEOF |
13979 | /* confdefs.h. */ | |
13980 | _ACEOF | |
13981 | cat confdefs.h >>conftest.$ac_ext | |
13982 | cat >>conftest.$ac_ext <<_ACEOF | |
13983 | /* end confdefs.h. */ | |
13984 | $ac_includes_default | |
13985 | /* malloc might have been renamed as rpl_malloc. */ | |
13986 | #undef malloc | |
97bf5e38 MK |
13987 | |
13988 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
13989 | Here is a matrix of mmap possibilities: | |
13990 | mmap private not fixed | |
13991 | mmap private fixed at somewhere currently unmapped | |
13992 | mmap private fixed at somewhere already mapped | |
13993 | mmap shared not fixed | |
13994 | mmap shared fixed at somewhere currently unmapped | |
13995 | mmap shared fixed at somewhere already mapped | |
13996 | For private mappings, we should verify that changes cannot be read() | |
13997 | back from the file, nor mmap's back from the file at a different | |
13998 | address. (There have been systems where private was not correctly | |
13999 | implemented like the infamous i386 svr4.0, and systems where the | |
bec39cab | 14000 | VM page cache was not coherent with the file system buffer cache |
97bf5e38 MK |
14001 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
14002 | For shared mappings, we should conversely verify that changes get | |
bec39cab | 14003 | propagated back to all the places they're supposed to be. |
97bf5e38 MK |
14004 | |
14005 | Grep wants private fixed already mapped. | |
14006 | The main things grep needs to know about mmap are: | |
14007 | * does it exist and is it safe to write into the mmap'd area | |
14008 | * how to use it (BSD variants) */ | |
bec39cab | 14009 | |
97bf5e38 MK |
14010 | #include <fcntl.h> |
14011 | #include <sys/mman.h> | |
14012 | ||
bec39cab AC |
14013 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
14014 | char *malloc (); | |
14015 | #endif | |
97bf5e38 | 14016 | |
bec39cab AC |
14017 | /* This mess was copied from the GNU getpagesize.h. */ |
14018 | #if !HAVE_GETPAGESIZE | |
97bf5e38 | 14019 | /* Assume that all systems that can run configure have sys/param.h. */ |
bec39cab | 14020 | # if !HAVE_SYS_PARAM_H |
97bf5e38 MK |
14021 | # define HAVE_SYS_PARAM_H 1 |
14022 | # endif | |
14023 | ||
14024 | # ifdef _SC_PAGESIZE | |
14025 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
14026 | # else /* no _SC_PAGESIZE */ | |
bec39cab | 14027 | # if HAVE_SYS_PARAM_H |
97bf5e38 MK |
14028 | # include <sys/param.h> |
14029 | # ifdef EXEC_PAGESIZE | |
14030 | # define getpagesize() EXEC_PAGESIZE | |
14031 | # else /* no EXEC_PAGESIZE */ | |
14032 | # ifdef NBPG | |
14033 | # define getpagesize() NBPG * CLSIZE | |
14034 | # ifndef CLSIZE | |
14035 | # define CLSIZE 1 | |
14036 | # endif /* no CLSIZE */ | |
14037 | # else /* no NBPG */ | |
14038 | # ifdef NBPC | |
14039 | # define getpagesize() NBPC | |
14040 | # else /* no NBPC */ | |
14041 | # ifdef PAGESIZE | |
14042 | # define getpagesize() PAGESIZE | |
14043 | # endif /* PAGESIZE */ | |
14044 | # endif /* no NBPC */ | |
14045 | # endif /* no NBPG */ | |
14046 | # endif /* no EXEC_PAGESIZE */ | |
14047 | # else /* no HAVE_SYS_PARAM_H */ | |
14048 | # define getpagesize() 8192 /* punt totally */ | |
14049 | # endif /* no HAVE_SYS_PARAM_H */ | |
14050 | # endif /* no _SC_PAGESIZE */ | |
14051 | ||
14052 | #endif /* no HAVE_GETPAGESIZE */ | |
14053 | ||
bec39cab AC |
14054 | int |
14055 | main () | |
14056 | { | |
14057 | char *data, *data2, *data3; | |
14058 | int i, pagesize; | |
14059 | int fd; | |
14060 | ||
14061 | pagesize = getpagesize (); | |
14062 | ||
14063 | /* First, make a file with some known garbage in it. */ | |
14064 | data = (char *) malloc (pagesize); | |
14065 | if (!data) | |
14066 | exit (1); | |
14067 | for (i = 0; i < pagesize; ++i) | |
14068 | *(data + i) = rand (); | |
14069 | umask (0); | |
14070 | fd = creat ("conftest.mmap", 0600); | |
14071 | if (fd < 0) | |
14072 | exit (1); | |
14073 | if (write (fd, data, pagesize) != pagesize) | |
14074 | exit (1); | |
14075 | close (fd); | |
14076 | ||
14077 | /* Next, try to mmap the file at a fixed address which already has | |
14078 | something else allocated at it. If we can, also make sure that | |
14079 | we see the same garbage. */ | |
14080 | fd = open ("conftest.mmap", O_RDWR); | |
14081 | if (fd < 0) | |
14082 | exit (1); | |
14083 | data2 = (char *) malloc (2 * pagesize); | |
14084 | if (!data2) | |
14085 | exit (1); | |
14086 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
14087 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
14088 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
14089 | exit (1); | |
14090 | for (i = 0; i < pagesize; ++i) | |
14091 | if (*(data + i) != *(data2 + i)) | |
14092 | exit (1); | |
14093 | ||
14094 | /* Finally, make sure that changes to the mapped area do not | |
14095 | percolate back to the file as seen by read(). (This is a bug on | |
14096 | some variants of i386 svr4.0.) */ | |
14097 | for (i = 0; i < pagesize; ++i) | |
14098 | *(data2 + i) = *(data2 + i) + 1; | |
14099 | data3 = (char *) malloc (pagesize); | |
14100 | if (!data3) | |
14101 | exit (1); | |
14102 | if (read (fd, data3, pagesize) != pagesize) | |
14103 | exit (1); | |
14104 | for (i = 0; i < pagesize; ++i) | |
14105 | if (*(data + i) != *(data3 + i)) | |
14106 | exit (1); | |
14107 | close (fd); | |
14108 | exit (0); | |
14109 | } | |
14110 | _ACEOF | |
14111 | rm -f conftest$ac_exeext | |
14112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14113 | (eval $ac_link) 2>&5 | |
14114 | ac_status=$? | |
14115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14116 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14118 | (eval $ac_try) 2>&5 | |
14119 | ac_status=$? | |
14120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14121 | (exit $ac_status); }; }; then | |
97bf5e38 | 14122 | ac_cv_func_mmap_fixed_mapped=yes |
74c1b268 | 14123 | else |
bec39cab AC |
14124 | echo "$as_me: program exited with status $ac_status" >&5 |
14125 | echo "$as_me: failed program was:" >&5 | |
14126 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14127 | ||
14128 | ( exit $ac_status ) | |
14129 | ac_cv_func_mmap_fixed_mapped=no | |
74c1b268 | 14130 | fi |
bec39cab | 14131 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
74c1b268 | 14132 | fi |
74c1b268 | 14133 | fi |
bec39cab AC |
14134 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
14135 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
97bf5e38 | 14136 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
bec39cab AC |
14137 | |
14138 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 14139 | #define HAVE_MMAP 1 |
bec39cab | 14140 | _ACEOF |
74c1b268 AC |
14141 | |
14142 | fi | |
bec39cab | 14143 | rm -f conftest.mmap |
74c1b268 | 14144 | |
bec39cab AC |
14145 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
14146 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
14147 | if test "${ac_cv_type_pid_t+set}" = set; then | |
14148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0200359f | 14149 | else |
bec39cab AC |
14150 | cat >conftest.$ac_ext <<_ACEOF |
14151 | /* confdefs.h. */ | |
14152 | _ACEOF | |
14153 | cat confdefs.h >>conftest.$ac_ext | |
14154 | cat >>conftest.$ac_ext <<_ACEOF | |
14155 | /* end confdefs.h. */ | |
14156 | $ac_includes_default | |
14157 | int | |
14158 | main () | |
14159 | { | |
14160 | if ((pid_t *) 0) | |
14161 | return 0; | |
14162 | if (sizeof (pid_t)) | |
14163 | return 0; | |
14164 | ; | |
14165 | return 0; | |
14166 | } | |
14167 | _ACEOF | |
14168 | rm -f conftest.$ac_objext | |
14169 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14170 | (eval $ac_compile) 2>conftest.er1 | |
14171 | ac_status=$? | |
14172 | grep -v '^ *+' conftest.er1 >conftest.err | |
14173 | rm -f conftest.er1 | |
14174 | cat conftest.err >&5 | |
14175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14176 | (exit $ac_status); } && | |
14177 | { ac_try='test -z "$ac_c_werror_flag" | |
14178 | || test ! -s conftest.err' | |
14179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14180 | (eval $ac_try) 2>&5 | |
14181 | ac_status=$? | |
14182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14183 | (exit $ac_status); }; } && | |
14184 | { ac_try='test -s conftest.$ac_objext' | |
14185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14186 | (eval $ac_try) 2>&5 | |
14187 | ac_status=$? | |
14188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14189 | (exit $ac_status); }; }; then | |
97bf5e38 | 14190 | ac_cv_type_pid_t=yes |
0200359f | 14191 | else |
bec39cab AC |
14192 | echo "$as_me: failed program was:" >&5 |
14193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0200359f | 14194 | |
bec39cab | 14195 | ac_cv_type_pid_t=no |
0200359f | 14196 | fi |
bec39cab | 14197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
72473524 | 14198 | fi |
bec39cab AC |
14199 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
14200 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
14201 | if test $ac_cv_type_pid_t = yes; then | |
14202 | : | |
14203 | else | |
14204 | ||
14205 | cat >>confdefs.h <<_ACEOF | |
14206 | #define pid_t int | |
14207 | _ACEOF | |
14208 | ||
72473524 | 14209 | fi |
72473524 | 14210 | |
bec39cab AC |
14211 | |
14212 | ||
14213 | for ac_header in unistd.h vfork.h | |
14214 | do | |
14215 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14216 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14217 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14218 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14219 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14221 | fi | |
14222 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14223 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14224 | else | |
14225 | # Is the header compilable? | |
14226 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14227 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14228 | cat >conftest.$ac_ext <<_ACEOF | |
14229 | /* confdefs.h. */ | |
14230 | _ACEOF | |
14231 | cat confdefs.h >>conftest.$ac_ext | |
14232 | cat >>conftest.$ac_ext <<_ACEOF | |
14233 | /* end confdefs.h. */ | |
14234 | $ac_includes_default | |
14235 | #include <$ac_header> | |
14236 | _ACEOF | |
14237 | rm -f conftest.$ac_objext | |
14238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14239 | (eval $ac_compile) 2>conftest.er1 | |
14240 | ac_status=$? | |
14241 | grep -v '^ *+' conftest.er1 >conftest.err | |
14242 | rm -f conftest.er1 | |
14243 | cat conftest.err >&5 | |
14244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14245 | (exit $ac_status); } && | |
14246 | { ac_try='test -z "$ac_c_werror_flag" | |
14247 | || test ! -s conftest.err' | |
14248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14249 | (eval $ac_try) 2>&5 | |
14250 | ac_status=$? | |
14251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14252 | (exit $ac_status); }; } && | |
14253 | { ac_try='test -s conftest.$ac_objext' | |
14254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14255 | (eval $ac_try) 2>&5 | |
14256 | ac_status=$? | |
14257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14258 | (exit $ac_status); }; }; then | |
14259 | ac_header_compiler=yes | |
14260 | else | |
14261 | echo "$as_me: failed program was:" >&5 | |
14262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14263 | ||
14264 | ac_header_compiler=no | |
14265 | fi | |
14266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14267 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14268 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14269 | ||
14270 | # Is the header present? | |
14271 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14272 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14273 | cat >conftest.$ac_ext <<_ACEOF | |
14274 | /* confdefs.h. */ | |
14275 | _ACEOF | |
14276 | cat confdefs.h >>conftest.$ac_ext | |
14277 | cat >>conftest.$ac_ext <<_ACEOF | |
14278 | /* end confdefs.h. */ | |
14279 | #include <$ac_header> | |
14280 | _ACEOF | |
14281 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14282 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14283 | ac_status=$? | |
14284 | grep -v '^ *+' conftest.er1 >conftest.err | |
14285 | rm -f conftest.er1 | |
14286 | cat conftest.err >&5 | |
14287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14288 | (exit $ac_status); } >/dev/null; then | |
14289 | if test -s conftest.err; then | |
14290 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14291 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14292 | else | |
14293 | ac_cpp_err= | |
14294 | fi | |
14295 | else | |
14296 | ac_cpp_err=yes | |
14297 | fi | |
14298 | if test -z "$ac_cpp_err"; then | |
14299 | ac_header_preproc=yes | |
97bf5e38 | 14300 | else |
bec39cab AC |
14301 | echo "$as_me: failed program was:" >&5 |
14302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14303 | ||
14304 | ac_header_preproc=no | |
72473524 | 14305 | fi |
bec39cab AC |
14306 | rm -f conftest.err conftest.$ac_ext |
14307 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14308 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 14309 | |
bec39cab AC |
14310 | # So? What about this header? |
14311 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14312 | yes:no: ) | |
14313 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14314 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14315 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14316 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14317 | ac_header_preproc=yes | |
14318 | ;; | |
14319 | no:yes:* ) | |
14320 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14321 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14322 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14323 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14324 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14325 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14326 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14327 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14328 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14329 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14330 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14331 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14332 | ( | |
14333 | cat <<\_ASBOX | |
14334 | ## ------------------------------------------ ## | |
14335 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14336 | ## ------------------------------------------ ## | |
14337 | _ASBOX | |
14338 | ) | | |
14339 | sed "s/^/$as_me: WARNING: /" >&2 | |
14340 | ;; | |
14341 | esac | |
14342 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14343 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14344 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 14346 | else |
bec39cab AC |
14347 | eval "$as_ac_Header=\$ac_header_preproc" |
14348 | fi | |
14349 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14350 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14351 | ||
14352 | fi | |
14353 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14354 | cat >>confdefs.h <<_ACEOF | |
14355 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14356 | _ACEOF | |
14357 | ||
14358 | fi | |
14359 | ||
14360 | done | |
14361 | ||
14362 | ||
14363 | ||
14364 | for ac_func in fork vfork | |
14365 | do | |
14366 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14367 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14368 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14369 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14371 | else | |
14372 | cat >conftest.$ac_ext <<_ACEOF | |
14373 | /* confdefs.h. */ | |
14374 | _ACEOF | |
14375 | cat confdefs.h >>conftest.$ac_ext | |
14376 | cat >>conftest.$ac_ext <<_ACEOF | |
14377 | /* end confdefs.h. */ | |
14378 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14379 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14380 | #define $ac_func innocuous_$ac_func | |
14381 | ||
97bf5e38 | 14382 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
14383 | which can conflict with char $ac_func (); below. |
14384 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14385 | <limits.h> exists even on freestanding compilers. */ | |
2b2d558c | 14386 | |
bec39cab AC |
14387 | #ifdef __STDC__ |
14388 | # include <limits.h> | |
14389 | #else | |
14390 | # include <assert.h> | |
14391 | #endif | |
97bf5e38 | 14392 | |
bec39cab AC |
14393 | #undef $ac_func |
14394 | ||
14395 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14396 | #ifdef __cplusplus | |
14397 | extern "C" | |
14398 | { | |
14399 | #endif | |
14400 | /* We use char because int might match the return type of a gcc2 | |
14401 | builtin and then its argument prototype would still apply. */ | |
14402 | char $ac_func (); | |
97bf5e38 MK |
14403 | /* The GNU C library defines this for functions which it implements |
14404 | to always fail with ENOSYS. Some functions are actually named | |
14405 | something starting with __ and the normal name is an alias. */ | |
bec39cab | 14406 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 MK |
14407 | choke me |
14408 | #else | |
bec39cab AC |
14409 | char (*f) () = $ac_func; |
14410 | #endif | |
14411 | #ifdef __cplusplus | |
14412 | } | |
97bf5e38 MK |
14413 | #endif |
14414 | ||
bec39cab AC |
14415 | int |
14416 | main () | |
14417 | { | |
14418 | return f != $ac_func; | |
14419 | ; | |
14420 | return 0; | |
14421 | } | |
14422 | _ACEOF | |
14423 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14425 | (eval $ac_link) 2>conftest.er1 | |
14426 | ac_status=$? | |
14427 | grep -v '^ *+' conftest.er1 >conftest.err | |
14428 | rm -f conftest.er1 | |
14429 | cat conftest.err >&5 | |
14430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14431 | (exit $ac_status); } && | |
14432 | { ac_try='test -z "$ac_c_werror_flag" | |
14433 | || test ! -s conftest.err' | |
14434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14435 | (eval $ac_try) 2>&5 | |
14436 | ac_status=$? | |
14437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14438 | (exit $ac_status); }; } && | |
14439 | { ac_try='test -s conftest$ac_exeext' | |
14440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14441 | (eval $ac_try) 2>&5 | |
14442 | ac_status=$? | |
14443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14444 | (exit $ac_status); }; }; then | |
14445 | eval "$as_ac_var=yes" | |
14446 | else | |
14447 | echo "$as_me: failed program was:" >&5 | |
14448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14449 | ||
14450 | eval "$as_ac_var=no" | |
14451 | fi | |
14452 | rm -f conftest.err conftest.$ac_objext \ | |
14453 | conftest$ac_exeext conftest.$ac_ext | |
14454 | fi | |
14455 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14456 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14457 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14458 | cat >>confdefs.h <<_ACEOF | |
14459 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14460 | _ACEOF | |
14461 | ||
2b2d558c | 14462 | fi |
bec39cab | 14463 | done |
2b2d558c | 14464 | |
bec39cab AC |
14465 | if test "x$ac_cv_func_fork" = xyes; then |
14466 | echo "$as_me:$LINENO: checking for working fork" >&5 | |
14467 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
14468 | if test "${ac_cv_func_fork_works+set}" = set; then | |
14469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 14470 | else |
bec39cab AC |
14471 | if test "$cross_compiling" = yes; then |
14472 | ac_cv_func_fork_works=cross | |
14473 | else | |
14474 | cat >conftest.$ac_ext <<_ACEOF | |
14475 | /* By Ruediger Kuhlmann. */ | |
14476 | #include <sys/types.h> | |
14477 | #if HAVE_UNISTD_H | |
14478 | # include <unistd.h> | |
14479 | #endif | |
14480 | /* Some systems only have a dummy stub for fork() */ | |
14481 | int main () | |
14482 | { | |
14483 | if (fork() < 0) | |
14484 | exit (1); | |
14485 | exit (0); | |
14486 | } | |
14487 | _ACEOF | |
14488 | rm -f conftest$ac_exeext | |
14489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14490 | (eval $ac_link) 2>&5 | |
14491 | ac_status=$? | |
14492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14493 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14495 | (eval $ac_try) 2>&5 | |
14496 | ac_status=$? | |
14497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14498 | (exit $ac_status); }; }; then | |
14499 | ac_cv_func_fork_works=yes | |
14500 | else | |
14501 | echo "$as_me: program exited with status $ac_status" >&5 | |
14502 | echo "$as_me: failed program was:" >&5 | |
14503 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14504 | ||
14505 | ( exit $ac_status ) | |
14506 | ac_cv_func_fork_works=no | |
14507 | fi | |
14508 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14509 | fi | |
14510 | fi | |
14511 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 | |
14512 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
14513 | ||
14514 | else | |
14515 | ac_cv_func_fork_works=$ac_cv_func_fork | |
14516 | fi | |
14517 | if test "x$ac_cv_func_fork_works" = xcross; then | |
14518 | case $host in | |
14519 | *-*-amigaos* | *-*-msdosdjgpp*) | |
14520 | # Override, as these systems have only a dummy fork() stub | |
14521 | ac_cv_func_fork_works=no | |
14522 | ;; | |
14523 | *) | |
14524 | ac_cv_func_fork_works=yes | |
14525 | ;; | |
14526 | esac | |
14527 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
14528 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
2b2d558c | 14529 | fi |
97bf5e38 | 14530 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
bec39cab AC |
14531 | if test "x$ac_cv_func_vfork" = xyes; then |
14532 | echo "$as_me:$LINENO: checking for working vfork" >&5 | |
14533 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
14534 | if test "${ac_cv_func_vfork_works+set}" = set; then | |
14535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7dfa765c | 14536 | else |
bec39cab AC |
14537 | if test "$cross_compiling" = yes; then |
14538 | ac_cv_func_vfork_works=cross | |
14539 | else | |
14540 | cat >conftest.$ac_ext <<_ACEOF | |
14541 | /* confdefs.h. */ | |
14542 | _ACEOF | |
14543 | cat confdefs.h >>conftest.$ac_ext | |
14544 | cat >>conftest.$ac_ext <<_ACEOF | |
14545 | /* end confdefs.h. */ | |
97bf5e38 MK |
14546 | /* Thanks to Paul Eggert for this test. */ |
14547 | #include <stdio.h> | |
bec39cab | 14548 | #include <stdlib.h> |
97bf5e38 MK |
14549 | #include <sys/types.h> |
14550 | #include <sys/stat.h> | |
bec39cab AC |
14551 | #include <sys/wait.h> |
14552 | #if HAVE_UNISTD_H | |
14553 | # include <unistd.h> | |
97bf5e38 | 14554 | #endif |
bec39cab AC |
14555 | #if HAVE_VFORK_H |
14556 | # include <vfork.h> | |
97bf5e38 MK |
14557 | #endif |
14558 | /* On some sparc systems, changes by the child to local and incoming | |
bec39cab AC |
14559 | argument registers are propagated back to the parent. The compiler |
14560 | is told about this with #include <vfork.h>, but some compilers | |
14561 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
14562 | static variable whose address is put into a register that is | |
14563 | clobbered by the vfork. */ | |
14564 | static void | |
97bf5e38 MK |
14565 | #ifdef __cplusplus |
14566 | sparc_address_test (int arg) | |
bec39cab | 14567 | # else |
97bf5e38 MK |
14568 | sparc_address_test (arg) int arg; |
14569 | #endif | |
14570 | { | |
14571 | static pid_t child; | |
14572 | if (!child) { | |
14573 | child = vfork (); | |
14574 | if (child < 0) { | |
14575 | perror ("vfork"); | |
14576 | _exit(2); | |
14577 | } | |
14578 | if (!child) { | |
14579 | arg = getpid(); | |
14580 | write(-1, "", 0); | |
14581 | _exit (arg); | |
14582 | } | |
14583 | } | |
14584 | } | |
bec39cab AC |
14585 | |
14586 | int | |
14587 | main () | |
14588 | { | |
97bf5e38 MK |
14589 | pid_t parent = getpid (); |
14590 | pid_t child; | |
7dfa765c | 14591 | |
bec39cab | 14592 | sparc_address_test (0); |
7dfa765c | 14593 | |
97bf5e38 | 14594 | child = vfork (); |
7dfa765c | 14595 | |
97bf5e38 | 14596 | if (child == 0) { |
bec39cab AC |
14597 | /* Here is another test for sparc vfork register problems. This |
14598 | test uses lots of local variables, at least as many local | |
14599 | variables as main has allocated so far including compiler | |
14600 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
14601 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
14602 | reuse the register of parent for one of the local variables, | |
14603 | since it will think that parent can't possibly be used any more | |
14604 | in this routine. Assigning to the local variable will thus | |
14605 | munge parent in the parent process. */ | |
97bf5e38 MK |
14606 | pid_t |
14607 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
14608 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
14609 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
14610 | use the same hardware register for all 8 local variables. */ | |
14611 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
14612 | || p != p5 || p != p6 || p != p7) | |
14613 | _exit(1); | |
7dfa765c | 14614 | |
bec39cab AC |
14615 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
14616 | from child file descriptors. If the child closes a descriptor | |
14617 | before it execs or exits, this munges the parent's descriptor | |
14618 | as well. Test for this by closing stdout in the child. */ | |
97bf5e38 MK |
14619 | _exit(close(fileno(stdout)) != 0); |
14620 | } else { | |
14621 | int status; | |
14622 | struct stat st; | |
64bb1671 | 14623 | |
97bf5e38 MK |
14624 | while (wait(&status) != child) |
14625 | ; | |
14626 | exit( | |
14627 | /* Was there some problem with vforking? */ | |
14628 | child < 0 | |
64bb1671 | 14629 | |
97bf5e38 MK |
14630 | /* Did the child fail? (This shouldn't happen.) */ |
14631 | || status | |
64bb1671 | 14632 | |
97bf5e38 MK |
14633 | /* Did the vfork/compiler bug occur? */ |
14634 | || parent != getpid() | |
14635 | ||
14636 | /* Did the file descriptor bug occur? */ | |
14637 | || fstat(fileno(stdout), &st) != 0 | |
14638 | ); | |
14639 | } | |
14640 | } | |
bec39cab AC |
14641 | _ACEOF |
14642 | rm -f conftest$ac_exeext | |
14643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14644 | (eval $ac_link) 2>&5 | |
14645 | ac_status=$? | |
14646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14647 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14649 | (eval $ac_try) 2>&5 | |
14650 | ac_status=$? | |
14651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14652 | (exit $ac_status); }; }; then | |
97bf5e38 | 14653 | ac_cv_func_vfork_works=yes |
5c44784c | 14654 | else |
bec39cab AC |
14655 | echo "$as_me: program exited with status $ac_status" >&5 |
14656 | echo "$as_me: failed program was:" >&5 | |
14657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14658 | ||
14659 | ( exit $ac_status ) | |
14660 | ac_cv_func_vfork_works=no | |
5c44784c | 14661 | fi |
bec39cab | 14662 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5c44784c | 14663 | fi |
bec39cab AC |
14664 | fi |
14665 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 | |
14666 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
5c44784c | 14667 | |
bec39cab AC |
14668 | fi; |
14669 | if test "x$ac_cv_func_fork_works" = xcross; then | |
14670 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
14671 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
14672 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
0afdd437 MK |
14673 | fi |
14674 | ||
bec39cab AC |
14675 | if test "x$ac_cv_func_vfork_works" = xyes; then |
14676 | ||
14677 | cat >>confdefs.h <<\_ACEOF | |
14678 | #define HAVE_WORKING_VFORK 1 | |
14679 | _ACEOF | |
14680 | ||
14681 | else | |
14682 | ||
14683 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 14684 | #define vfork fork |
bec39cab AC |
14685 | _ACEOF |
14686 | ||
14687 | fi | |
14688 | if test "x$ac_cv_func_fork_works" = xyes; then | |
14689 | ||
14690 | cat >>confdefs.h <<\_ACEOF | |
14691 | #define HAVE_WORKING_FORK 1 | |
14692 | _ACEOF | |
0afdd437 MK |
14693 | |
14694 | fi | |
14695 | ||
bec39cab AC |
14696 | |
14697 | ||
97bf5e38 MK |
14698 | for ac_func in canonicalize_file_name realpath |
14699 | do | |
bec39cab AC |
14700 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14701 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14702 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14703 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14705 | else | |
14706 | cat >conftest.$ac_ext <<_ACEOF | |
14707 | /* confdefs.h. */ | |
14708 | _ACEOF | |
14709 | cat confdefs.h >>conftest.$ac_ext | |
14710 | cat >>conftest.$ac_ext <<_ACEOF | |
14711 | /* end confdefs.h. */ | |
14712 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14713 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14714 | #define $ac_func innocuous_$ac_func | |
14715 | ||
97bf5e38 | 14716 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
14717 | which can conflict with char $ac_func (); below. |
14718 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14719 | <limits.h> exists even on freestanding compilers. */ | |
14720 | ||
14721 | #ifdef __STDC__ | |
14722 | # include <limits.h> | |
14723 | #else | |
14724 | # include <assert.h> | |
14725 | #endif | |
97bf5e38 | 14726 | |
bec39cab | 14727 | #undef $ac_func |
97bf5e38 | 14728 | |
bec39cab AC |
14729 | /* Override any gcc2 internal prototype to avoid an error. */ |
14730 | #ifdef __cplusplus | |
14731 | extern "C" | |
14732 | { | |
14733 | #endif | |
14734 | /* We use char because int might match the return type of a gcc2 | |
14735 | builtin and then its argument prototype would still apply. */ | |
14736 | char $ac_func (); | |
97bf5e38 MK |
14737 | /* The GNU C library defines this for functions which it implements |
14738 | to always fail with ENOSYS. Some functions are actually named | |
14739 | something starting with __ and the normal name is an alias. */ | |
14740 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14741 | choke me | |
14742 | #else | |
bec39cab AC |
14743 | char (*f) () = $ac_func; |
14744 | #endif | |
14745 | #ifdef __cplusplus | |
14746 | } | |
97bf5e38 MK |
14747 | #endif |
14748 | ||
bec39cab AC |
14749 | int |
14750 | main () | |
14751 | { | |
14752 | return f != $ac_func; | |
14753 | ; | |
14754 | return 0; | |
14755 | } | |
14756 | _ACEOF | |
14757 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14759 | (eval $ac_link) 2>conftest.er1 | |
14760 | ac_status=$? | |
14761 | grep -v '^ *+' conftest.er1 >conftest.err | |
14762 | rm -f conftest.er1 | |
14763 | cat conftest.err >&5 | |
14764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14765 | (exit $ac_status); } && | |
14766 | { ac_try='test -z "$ac_c_werror_flag" | |
14767 | || test ! -s conftest.err' | |
14768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14769 | (eval $ac_try) 2>&5 | |
14770 | ac_status=$? | |
14771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14772 | (exit $ac_status); }; } && | |
14773 | { ac_try='test -s conftest$ac_exeext' | |
14774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14775 | (eval $ac_try) 2>&5 | |
14776 | ac_status=$? | |
14777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14778 | (exit $ac_status); }; }; then | |
14779 | eval "$as_ac_var=yes" | |
14780 | else | |
14781 | echo "$as_me: failed program was:" >&5 | |
14782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14783 | ||
14784 | eval "$as_ac_var=no" | |
14785 | fi | |
14786 | rm -f conftest.err conftest.$ac_objext \ | |
14787 | conftest$ac_exeext conftest.$ac_ext | |
14788 | fi | |
14789 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14790 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14791 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14792 | cat >>confdefs.h <<_ACEOF | |
14793 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14794 | _ACEOF | |
7e89e357 | 14795 | |
7e89e357 | 14796 | fi |
97bf5e38 | 14797 | done |
7e89e357 | 14798 | |
bec39cab | 14799 | |
97bf5e38 | 14800 | for ac_func in poll |
7be570e7 | 14801 | do |
bec39cab AC |
14802 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14803 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14804 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14805 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14807 | else | |
14808 | cat >conftest.$ac_ext <<_ACEOF | |
14809 | /* confdefs.h. */ | |
14810 | _ACEOF | |
14811 | cat confdefs.h >>conftest.$ac_ext | |
14812 | cat >>conftest.$ac_ext <<_ACEOF | |
14813 | /* end confdefs.h. */ | |
14814 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14815 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14816 | #define $ac_func innocuous_$ac_func | |
14817 | ||
7be570e7 | 14818 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
14819 | which can conflict with char $ac_func (); below. |
14820 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14821 | <limits.h> exists even on freestanding compilers. */ | |
14822 | ||
14823 | #ifdef __STDC__ | |
14824 | # include <limits.h> | |
14825 | #else | |
14826 | # include <assert.h> | |
14827 | #endif | |
7be570e7 | 14828 | |
bec39cab | 14829 | #undef $ac_func |
7be570e7 | 14830 | |
bec39cab AC |
14831 | /* Override any gcc2 internal prototype to avoid an error. */ |
14832 | #ifdef __cplusplus | |
14833 | extern "C" | |
14834 | { | |
14835 | #endif | |
14836 | /* We use char because int might match the return type of a gcc2 | |
14837 | builtin and then its argument prototype would still apply. */ | |
14838 | char $ac_func (); | |
7be570e7 JM |
14839 | /* The GNU C library defines this for functions which it implements |
14840 | to always fail with ENOSYS. Some functions are actually named | |
14841 | something starting with __ and the normal name is an alias. */ | |
14842 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14843 | choke me | |
14844 | #else | |
bec39cab AC |
14845 | char (*f) () = $ac_func; |
14846 | #endif | |
14847 | #ifdef __cplusplus | |
14848 | } | |
7be570e7 JM |
14849 | #endif |
14850 | ||
bec39cab AC |
14851 | int |
14852 | main () | |
14853 | { | |
14854 | return f != $ac_func; | |
14855 | ; | |
14856 | return 0; | |
14857 | } | |
14858 | _ACEOF | |
14859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14861 | (eval $ac_link) 2>conftest.er1 | |
14862 | ac_status=$? | |
14863 | grep -v '^ *+' conftest.er1 >conftest.err | |
14864 | rm -f conftest.er1 | |
14865 | cat conftest.err >&5 | |
14866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14867 | (exit $ac_status); } && | |
14868 | { ac_try='test -z "$ac_c_werror_flag" | |
14869 | || test ! -s conftest.err' | |
14870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14871 | (eval $ac_try) 2>&5 | |
14872 | ac_status=$? | |
14873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14874 | (exit $ac_status); }; } && | |
14875 | { ac_try='test -s conftest$ac_exeext' | |
14876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14877 | (eval $ac_try) 2>&5 | |
14878 | ac_status=$? | |
14879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14880 | (exit $ac_status); }; }; then | |
14881 | eval "$as_ac_var=yes" | |
14882 | else | |
14883 | echo "$as_me: failed program was:" >&5 | |
14884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14885 | ||
14886 | eval "$as_ac_var=no" | |
14887 | fi | |
14888 | rm -f conftest.err conftest.$ac_objext \ | |
14889 | conftest$ac_exeext conftest.$ac_ext | |
14890 | fi | |
14891 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14892 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14893 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14894 | cat >>confdefs.h <<_ACEOF | |
14895 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14896 | _ACEOF | |
14abd0fb | 14897 | |
14abd0fb MK |
14898 | fi |
14899 | done | |
14900 | ||
bec39cab | 14901 | |
14abd0fb MK |
14902 | for ac_func in pread64 |
14903 | do | |
bec39cab AC |
14904 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14905 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14906 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14907 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14909 | else | |
14910 | cat >conftest.$ac_ext <<_ACEOF | |
14911 | /* confdefs.h. */ | |
14912 | _ACEOF | |
14913 | cat confdefs.h >>conftest.$ac_ext | |
14914 | cat >>conftest.$ac_ext <<_ACEOF | |
14915 | /* end confdefs.h. */ | |
14916 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14917 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14918 | #define $ac_func innocuous_$ac_func | |
14919 | ||
14abd0fb | 14920 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
14921 | which can conflict with char $ac_func (); below. |
14922 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14923 | <limits.h> exists even on freestanding compilers. */ | |
14924 | ||
14925 | #ifdef __STDC__ | |
14926 | # include <limits.h> | |
14927 | #else | |
14928 | # include <assert.h> | |
14929 | #endif | |
14abd0fb | 14930 | |
bec39cab | 14931 | #undef $ac_func |
14abd0fb | 14932 | |
bec39cab AC |
14933 | /* Override any gcc2 internal prototype to avoid an error. */ |
14934 | #ifdef __cplusplus | |
14935 | extern "C" | |
14936 | { | |
14937 | #endif | |
14938 | /* We use char because int might match the return type of a gcc2 | |
14939 | builtin and then its argument prototype would still apply. */ | |
14940 | char $ac_func (); | |
14abd0fb MK |
14941 | /* The GNU C library defines this for functions which it implements |
14942 | to always fail with ENOSYS. Some functions are actually named | |
14943 | something starting with __ and the normal name is an alias. */ | |
14944 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14945 | choke me | |
14946 | #else | |
bec39cab AC |
14947 | char (*f) () = $ac_func; |
14948 | #endif | |
14949 | #ifdef __cplusplus | |
14950 | } | |
14abd0fb MK |
14951 | #endif |
14952 | ||
bec39cab AC |
14953 | int |
14954 | main () | |
14955 | { | |
14956 | return f != $ac_func; | |
14957 | ; | |
14958 | return 0; | |
14959 | } | |
14960 | _ACEOF | |
14961 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14962 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14963 | (eval $ac_link) 2>conftest.er1 | |
14964 | ac_status=$? | |
14965 | grep -v '^ *+' conftest.er1 >conftest.err | |
14966 | rm -f conftest.er1 | |
14967 | cat conftest.err >&5 | |
14968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14969 | (exit $ac_status); } && | |
14970 | { ac_try='test -z "$ac_c_werror_flag" | |
14971 | || test ! -s conftest.err' | |
14972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14973 | (eval $ac_try) 2>&5 | |
14974 | ac_status=$? | |
14975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14976 | (exit $ac_status); }; } && | |
14977 | { ac_try='test -s conftest$ac_exeext' | |
14978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14979 | (eval $ac_try) 2>&5 | |
14980 | ac_status=$? | |
14981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14982 | (exit $ac_status); }; }; then | |
14983 | eval "$as_ac_var=yes" | |
14984 | else | |
14985 | echo "$as_me: failed program was:" >&5 | |
14986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14987 | ||
14988 | eval "$as_ac_var=no" | |
14989 | fi | |
14990 | rm -f conftest.err conftest.$ac_objext \ | |
14991 | conftest$ac_exeext conftest.$ac_ext | |
14992 | fi | |
14993 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14994 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14995 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14996 | cat >>confdefs.h <<_ACEOF | |
14997 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14998 | _ACEOF | |
7be570e7 | 14999 | |
7be570e7 JM |
15000 | fi |
15001 | done | |
15002 | ||
bec39cab | 15003 | |
97bf5e38 MK |
15004 | for ac_func in sbrk |
15005 | do | |
bec39cab AC |
15006 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15007 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15008 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15009 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15011 | else | |
15012 | cat >conftest.$ac_ext <<_ACEOF | |
15013 | /* confdefs.h. */ | |
15014 | _ACEOF | |
15015 | cat confdefs.h >>conftest.$ac_ext | |
15016 | cat >>conftest.$ac_ext <<_ACEOF | |
15017 | /* end confdefs.h. */ | |
15018 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15019 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15020 | #define $ac_func innocuous_$ac_func | |
15021 | ||
97bf5e38 | 15022 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15023 | which can conflict with char $ac_func (); below. |
15024 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15025 | <limits.h> exists even on freestanding compilers. */ | |
15026 | ||
15027 | #ifdef __STDC__ | |
15028 | # include <limits.h> | |
15029 | #else | |
15030 | # include <assert.h> | |
15031 | #endif | |
c906108c | 15032 | |
bec39cab | 15033 | #undef $ac_func |
97bf5e38 | 15034 | |
bec39cab AC |
15035 | /* Override any gcc2 internal prototype to avoid an error. */ |
15036 | #ifdef __cplusplus | |
15037 | extern "C" | |
15038 | { | |
15039 | #endif | |
15040 | /* We use char because int might match the return type of a gcc2 | |
15041 | builtin and then its argument prototype would still apply. */ | |
15042 | char $ac_func (); | |
97bf5e38 MK |
15043 | /* The GNU C library defines this for functions which it implements |
15044 | to always fail with ENOSYS. Some functions are actually named | |
15045 | something starting with __ and the normal name is an alias. */ | |
15046 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15047 | choke me | |
c906108c | 15048 | #else |
bec39cab AC |
15049 | char (*f) () = $ac_func; |
15050 | #endif | |
15051 | #ifdef __cplusplus | |
15052 | } | |
c906108c | 15053 | #endif |
97bf5e38 | 15054 | |
bec39cab AC |
15055 | int |
15056 | main () | |
15057 | { | |
15058 | return f != $ac_func; | |
15059 | ; | |
15060 | return 0; | |
15061 | } | |
15062 | _ACEOF | |
15063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15065 | (eval $ac_link) 2>conftest.er1 | |
15066 | ac_status=$? | |
15067 | grep -v '^ *+' conftest.er1 >conftest.err | |
15068 | rm -f conftest.er1 | |
15069 | cat conftest.err >&5 | |
15070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15071 | (exit $ac_status); } && | |
15072 | { ac_try='test -z "$ac_c_werror_flag" | |
15073 | || test ! -s conftest.err' | |
15074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15075 | (eval $ac_try) 2>&5 | |
15076 | ac_status=$? | |
15077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15078 | (exit $ac_status); }; } && | |
15079 | { ac_try='test -s conftest$ac_exeext' | |
15080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15081 | (eval $ac_try) 2>&5 | |
15082 | ac_status=$? | |
15083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15084 | (exit $ac_status); }; }; then | |
15085 | eval "$as_ac_var=yes" | |
15086 | else | |
15087 | echo "$as_me: failed program was:" >&5 | |
15088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15089 | ||
15090 | eval "$as_ac_var=no" | |
15091 | fi | |
15092 | rm -f conftest.err conftest.$ac_objext \ | |
15093 | conftest$ac_exeext conftest.$ac_ext | |
15094 | fi | |
15095 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15096 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15097 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15098 | cat >>confdefs.h <<_ACEOF | |
15099 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15100 | _ACEOF | |
c906108c | 15101 | |
c906108c | 15102 | fi |
97bf5e38 | 15103 | done |
c906108c | 15104 | |
bec39cab AC |
15105 | |
15106 | ||
97bf5e38 MK |
15107 | for ac_func in setpgid setpgrp |
15108 | do | |
bec39cab AC |
15109 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15110 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15111 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15112 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15114 | else | |
15115 | cat >conftest.$ac_ext <<_ACEOF | |
15116 | /* confdefs.h. */ | |
15117 | _ACEOF | |
15118 | cat confdefs.h >>conftest.$ac_ext | |
15119 | cat >>conftest.$ac_ext <<_ACEOF | |
15120 | /* end confdefs.h. */ | |
15121 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15122 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15123 | #define $ac_func innocuous_$ac_func | |
15124 | ||
97bf5e38 | 15125 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15126 | which can conflict with char $ac_func (); below. |
15127 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15128 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 15129 | |
bec39cab AC |
15130 | #ifdef __STDC__ |
15131 | # include <limits.h> | |
15132 | #else | |
15133 | # include <assert.h> | |
15134 | #endif | |
97bf5e38 | 15135 | |
bec39cab AC |
15136 | #undef $ac_func |
15137 | ||
15138 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15139 | #ifdef __cplusplus | |
15140 | extern "C" | |
15141 | { | |
15142 | #endif | |
15143 | /* We use char because int might match the return type of a gcc2 | |
15144 | builtin and then its argument prototype would still apply. */ | |
15145 | char $ac_func (); | |
97bf5e38 MK |
15146 | /* The GNU C library defines this for functions which it implements |
15147 | to always fail with ENOSYS. Some functions are actually named | |
15148 | something starting with __ and the normal name is an alias. */ | |
15149 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15150 | choke me | |
c906108c | 15151 | #else |
bec39cab AC |
15152 | char (*f) () = $ac_func; |
15153 | #endif | |
15154 | #ifdef __cplusplus | |
15155 | } | |
c906108c | 15156 | #endif |
97bf5e38 | 15157 | |
bec39cab AC |
15158 | int |
15159 | main () | |
15160 | { | |
15161 | return f != $ac_func; | |
15162 | ; | |
15163 | return 0; | |
15164 | } | |
15165 | _ACEOF | |
15166 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15167 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15168 | (eval $ac_link) 2>conftest.er1 | |
15169 | ac_status=$? | |
15170 | grep -v '^ *+' conftest.er1 >conftest.err | |
15171 | rm -f conftest.er1 | |
15172 | cat conftest.err >&5 | |
15173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15174 | (exit $ac_status); } && | |
15175 | { ac_try='test -z "$ac_c_werror_flag" | |
15176 | || test ! -s conftest.err' | |
15177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15178 | (eval $ac_try) 2>&5 | |
15179 | ac_status=$? | |
15180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15181 | (exit $ac_status); }; } && | |
15182 | { ac_try='test -s conftest$ac_exeext' | |
15183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15184 | (eval $ac_try) 2>&5 | |
15185 | ac_status=$? | |
15186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15187 | (exit $ac_status); }; }; then | |
15188 | eval "$as_ac_var=yes" | |
15189 | else | |
15190 | echo "$as_me: failed program was:" >&5 | |
15191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15192 | ||
15193 | eval "$as_ac_var=no" | |
15194 | fi | |
15195 | rm -f conftest.err conftest.$ac_objext \ | |
15196 | conftest$ac_exeext conftest.$ac_ext | |
15197 | fi | |
15198 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15199 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15200 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15201 | cat >>confdefs.h <<_ACEOF | |
15202 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15203 | _ACEOF | |
c906108c | 15204 | |
c906108c | 15205 | fi |
97bf5e38 | 15206 | done |
c906108c | 15207 | |
bec39cab AC |
15208 | |
15209 | ||
15210 | ||
e1ea1d75 | 15211 | for ac_func in sigaction sigprocmask sigsetmask |
97bf5e38 | 15212 | do |
bec39cab AC |
15213 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15214 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15215 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15216 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15218 | else | |
15219 | cat >conftest.$ac_ext <<_ACEOF | |
15220 | /* confdefs.h. */ | |
15221 | _ACEOF | |
15222 | cat confdefs.h >>conftest.$ac_ext | |
15223 | cat >>conftest.$ac_ext <<_ACEOF | |
15224 | /* end confdefs.h. */ | |
15225 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15226 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15227 | #define $ac_func innocuous_$ac_func | |
15228 | ||
97bf5e38 | 15229 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15230 | which can conflict with char $ac_func (); below. |
15231 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15232 | <limits.h> exists even on freestanding compilers. */ | |
15233 | ||
15234 | #ifdef __STDC__ | |
15235 | # include <limits.h> | |
15236 | #else | |
15237 | # include <assert.h> | |
15238 | #endif | |
c906108c | 15239 | |
bec39cab | 15240 | #undef $ac_func |
97bf5e38 | 15241 | |
bec39cab AC |
15242 | /* Override any gcc2 internal prototype to avoid an error. */ |
15243 | #ifdef __cplusplus | |
15244 | extern "C" | |
15245 | { | |
15246 | #endif | |
15247 | /* We use char because int might match the return type of a gcc2 | |
15248 | builtin and then its argument prototype would still apply. */ | |
15249 | char $ac_func (); | |
97bf5e38 MK |
15250 | /* The GNU C library defines this for functions which it implements |
15251 | to always fail with ENOSYS. Some functions are actually named | |
15252 | something starting with __ and the normal name is an alias. */ | |
15253 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15254 | choke me | |
c906108c | 15255 | #else |
bec39cab AC |
15256 | char (*f) () = $ac_func; |
15257 | #endif | |
15258 | #ifdef __cplusplus | |
15259 | } | |
c906108c | 15260 | #endif |
97bf5e38 | 15261 | |
bec39cab AC |
15262 | int |
15263 | main () | |
15264 | { | |
15265 | return f != $ac_func; | |
15266 | ; | |
15267 | return 0; | |
15268 | } | |
15269 | _ACEOF | |
15270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15272 | (eval $ac_link) 2>conftest.er1 | |
15273 | ac_status=$? | |
15274 | grep -v '^ *+' conftest.er1 >conftest.err | |
15275 | rm -f conftest.er1 | |
15276 | cat conftest.err >&5 | |
15277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15278 | (exit $ac_status); } && | |
15279 | { ac_try='test -z "$ac_c_werror_flag" | |
15280 | || test ! -s conftest.err' | |
15281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15282 | (eval $ac_try) 2>&5 | |
15283 | ac_status=$? | |
15284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15285 | (exit $ac_status); }; } && | |
15286 | { ac_try='test -s conftest$ac_exeext' | |
15287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15288 | (eval $ac_try) 2>&5 | |
15289 | ac_status=$? | |
15290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15291 | (exit $ac_status); }; }; then | |
15292 | eval "$as_ac_var=yes" | |
15293 | else | |
15294 | echo "$as_me: failed program was:" >&5 | |
15295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15296 | ||
15297 | eval "$as_ac_var=no" | |
15298 | fi | |
15299 | rm -f conftest.err conftest.$ac_objext \ | |
15300 | conftest$ac_exeext conftest.$ac_ext | |
15301 | fi | |
15302 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15303 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15304 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15305 | cat >>confdefs.h <<_ACEOF | |
15306 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15307 | _ACEOF | |
c906108c | 15308 | |
c906108c | 15309 | fi |
97bf5e38 | 15310 | done |
c906108c | 15311 | |
bec39cab | 15312 | |
97bf5e38 MK |
15313 | for ac_func in socketpair |
15314 | do | |
bec39cab AC |
15315 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15316 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15317 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15318 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15320 | else | |
15321 | cat >conftest.$ac_ext <<_ACEOF | |
15322 | /* confdefs.h. */ | |
15323 | _ACEOF | |
15324 | cat confdefs.h >>conftest.$ac_ext | |
15325 | cat >>conftest.$ac_ext <<_ACEOF | |
15326 | /* end confdefs.h. */ | |
15327 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15328 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15329 | #define $ac_func innocuous_$ac_func | |
15330 | ||
97bf5e38 | 15331 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15332 | which can conflict with char $ac_func (); below. |
15333 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15334 | <limits.h> exists even on freestanding compilers. */ | |
15335 | ||
15336 | #ifdef __STDC__ | |
15337 | # include <limits.h> | |
15338 | #else | |
15339 | # include <assert.h> | |
15340 | #endif | |
c906108c | 15341 | |
bec39cab | 15342 | #undef $ac_func |
97bf5e38 | 15343 | |
bec39cab AC |
15344 | /* Override any gcc2 internal prototype to avoid an error. */ |
15345 | #ifdef __cplusplus | |
15346 | extern "C" | |
15347 | { | |
15348 | #endif | |
15349 | /* We use char because int might match the return type of a gcc2 | |
15350 | builtin and then its argument prototype would still apply. */ | |
15351 | char $ac_func (); | |
97bf5e38 MK |
15352 | /* The GNU C library defines this for functions which it implements |
15353 | to always fail with ENOSYS. Some functions are actually named | |
15354 | something starting with __ and the normal name is an alias. */ | |
15355 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15356 | choke me | |
c906108c | 15357 | #else |
bec39cab AC |
15358 | char (*f) () = $ac_func; |
15359 | #endif | |
15360 | #ifdef __cplusplus | |
15361 | } | |
c906108c | 15362 | #endif |
97bf5e38 | 15363 | |
bec39cab AC |
15364 | int |
15365 | main () | |
15366 | { | |
15367 | return f != $ac_func; | |
15368 | ; | |
15369 | return 0; | |
15370 | } | |
15371 | _ACEOF | |
15372 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15374 | (eval $ac_link) 2>conftest.er1 | |
15375 | ac_status=$? | |
15376 | grep -v '^ *+' conftest.er1 >conftest.err | |
15377 | rm -f conftest.er1 | |
15378 | cat conftest.err >&5 | |
15379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15380 | (exit $ac_status); } && | |
15381 | { ac_try='test -z "$ac_c_werror_flag" | |
15382 | || test ! -s conftest.err' | |
15383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15384 | (eval $ac_try) 2>&5 | |
15385 | ac_status=$? | |
15386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15387 | (exit $ac_status); }; } && | |
15388 | { ac_try='test -s conftest$ac_exeext' | |
15389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15390 | (eval $ac_try) 2>&5 | |
15391 | ac_status=$? | |
15392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15393 | (exit $ac_status); }; }; then | |
15394 | eval "$as_ac_var=yes" | |
15395 | else | |
15396 | echo "$as_me: failed program was:" >&5 | |
15397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15398 | ||
15399 | eval "$as_ac_var=no" | |
15400 | fi | |
15401 | rm -f conftest.err conftest.$ac_objext \ | |
15402 | conftest$ac_exeext conftest.$ac_ext | |
15403 | fi | |
15404 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15405 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15406 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15407 | cat >>confdefs.h <<_ACEOF | |
15408 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15409 | _ACEOF | |
c906108c | 15410 | |
c906108c | 15411 | fi |
97bf5e38 | 15412 | done |
c906108c | 15413 | |
bec39cab | 15414 | |
b757528f JJ |
15415 | for ac_func in syscall |
15416 | do | |
bec39cab AC |
15417 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15418 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15419 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15420 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15422 | else | |
15423 | cat >conftest.$ac_ext <<_ACEOF | |
15424 | /* confdefs.h. */ | |
15425 | _ACEOF | |
15426 | cat confdefs.h >>conftest.$ac_ext | |
15427 | cat >>conftest.$ac_ext <<_ACEOF | |
15428 | /* end confdefs.h. */ | |
15429 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15430 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15431 | #define $ac_func innocuous_$ac_func | |
15432 | ||
b757528f | 15433 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15434 | which can conflict with char $ac_func (); below. |
15435 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15436 | <limits.h> exists even on freestanding compilers. */ | |
15437 | ||
15438 | #ifdef __STDC__ | |
15439 | # include <limits.h> | |
15440 | #else | |
15441 | # include <assert.h> | |
15442 | #endif | |
b757528f | 15443 | |
bec39cab | 15444 | #undef $ac_func |
b757528f | 15445 | |
bec39cab AC |
15446 | /* Override any gcc2 internal prototype to avoid an error. */ |
15447 | #ifdef __cplusplus | |
15448 | extern "C" | |
15449 | { | |
15450 | #endif | |
15451 | /* We use char because int might match the return type of a gcc2 | |
15452 | builtin and then its argument prototype would still apply. */ | |
15453 | char $ac_func (); | |
b757528f JJ |
15454 | /* The GNU C library defines this for functions which it implements |
15455 | to always fail with ENOSYS. Some functions are actually named | |
15456 | something starting with __ and the normal name is an alias. */ | |
15457 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15458 | choke me | |
15459 | #else | |
bec39cab AC |
15460 | char (*f) () = $ac_func; |
15461 | #endif | |
15462 | #ifdef __cplusplus | |
15463 | } | |
b757528f JJ |
15464 | #endif |
15465 | ||
bec39cab AC |
15466 | int |
15467 | main () | |
15468 | { | |
15469 | return f != $ac_func; | |
15470 | ; | |
15471 | return 0; | |
15472 | } | |
15473 | _ACEOF | |
15474 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15475 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15476 | (eval $ac_link) 2>conftest.er1 | |
15477 | ac_status=$? | |
15478 | grep -v '^ *+' conftest.er1 >conftest.err | |
15479 | rm -f conftest.er1 | |
15480 | cat conftest.err >&5 | |
15481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15482 | (exit $ac_status); } && | |
15483 | { ac_try='test -z "$ac_c_werror_flag" | |
15484 | || test ! -s conftest.err' | |
15485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15486 | (eval $ac_try) 2>&5 | |
15487 | ac_status=$? | |
15488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15489 | (exit $ac_status); }; } && | |
15490 | { ac_try='test -s conftest$ac_exeext' | |
15491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15492 | (eval $ac_try) 2>&5 | |
15493 | ac_status=$? | |
15494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15495 | (exit $ac_status); }; }; then | |
15496 | eval "$as_ac_var=yes" | |
15497 | else | |
15498 | echo "$as_me: failed program was:" >&5 | |
15499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15500 | ||
15501 | eval "$as_ac_var=no" | |
15502 | fi | |
15503 | rm -f conftest.err conftest.$ac_objext \ | |
15504 | conftest$ac_exeext conftest.$ac_ext | |
15505 | fi | |
15506 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15507 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15508 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15509 | cat >>confdefs.h <<_ACEOF | |
15510 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15511 | _ACEOF | |
b757528f | 15512 | |
b757528f JJ |
15513 | fi |
15514 | done | |
15515 | ||
bec39cab | 15516 | |
bcb3dc3d MK |
15517 | for ac_func in ttrace |
15518 | do | |
bec39cab AC |
15519 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15520 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15521 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15522 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15524 | else | |
15525 | cat >conftest.$ac_ext <<_ACEOF | |
15526 | /* confdefs.h. */ | |
15527 | _ACEOF | |
15528 | cat confdefs.h >>conftest.$ac_ext | |
15529 | cat >>conftest.$ac_ext <<_ACEOF | |
15530 | /* end confdefs.h. */ | |
15531 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15532 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15533 | #define $ac_func innocuous_$ac_func | |
15534 | ||
bcb3dc3d | 15535 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15536 | which can conflict with char $ac_func (); below. |
15537 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15538 | <limits.h> exists even on freestanding compilers. */ | |
15539 | ||
15540 | #ifdef __STDC__ | |
15541 | # include <limits.h> | |
15542 | #else | |
15543 | # include <assert.h> | |
15544 | #endif | |
bcb3dc3d | 15545 | |
bec39cab | 15546 | #undef $ac_func |
bcb3dc3d | 15547 | |
bec39cab AC |
15548 | /* Override any gcc2 internal prototype to avoid an error. */ |
15549 | #ifdef __cplusplus | |
15550 | extern "C" | |
15551 | { | |
15552 | #endif | |
15553 | /* We use char because int might match the return type of a gcc2 | |
15554 | builtin and then its argument prototype would still apply. */ | |
15555 | char $ac_func (); | |
bcb3dc3d MK |
15556 | /* The GNU C library defines this for functions which it implements |
15557 | to always fail with ENOSYS. Some functions are actually named | |
15558 | something starting with __ and the normal name is an alias. */ | |
15559 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15560 | choke me | |
15561 | #else | |
bec39cab AC |
15562 | char (*f) () = $ac_func; |
15563 | #endif | |
15564 | #ifdef __cplusplus | |
15565 | } | |
bcb3dc3d MK |
15566 | #endif |
15567 | ||
bec39cab AC |
15568 | int |
15569 | main () | |
15570 | { | |
15571 | return f != $ac_func; | |
15572 | ; | |
15573 | return 0; | |
15574 | } | |
15575 | _ACEOF | |
15576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15578 | (eval $ac_link) 2>conftest.er1 | |
15579 | ac_status=$? | |
15580 | grep -v '^ *+' conftest.er1 >conftest.err | |
15581 | rm -f conftest.er1 | |
15582 | cat conftest.err >&5 | |
15583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15584 | (exit $ac_status); } && | |
15585 | { ac_try='test -z "$ac_c_werror_flag" | |
15586 | || test ! -s conftest.err' | |
15587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15588 | (eval $ac_try) 2>&5 | |
15589 | ac_status=$? | |
15590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15591 | (exit $ac_status); }; } && | |
15592 | { ac_try='test -s conftest$ac_exeext' | |
15593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15594 | (eval $ac_try) 2>&5 | |
15595 | ac_status=$? | |
15596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15597 | (exit $ac_status); }; }; then | |
15598 | eval "$as_ac_var=yes" | |
15599 | else | |
15600 | echo "$as_me: failed program was:" >&5 | |
15601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15602 | ||
15603 | eval "$as_ac_var=no" | |
15604 | fi | |
15605 | rm -f conftest.err conftest.$ac_objext \ | |
15606 | conftest$ac_exeext conftest.$ac_ext | |
15607 | fi | |
15608 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15609 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15610 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15611 | cat >>confdefs.h <<_ACEOF | |
15612 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15613 | _ACEOF | |
bcb3dc3d | 15614 | |
bcb3dc3d MK |
15615 | fi |
15616 | done | |
15617 | ||
bec39cab | 15618 | |
8b9cf735 MK |
15619 | for ac_func in wborder |
15620 | do | |
bec39cab AC |
15621 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
15622 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
15623 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15624 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
15625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15626 | else | |
15627 | cat >conftest.$ac_ext <<_ACEOF | |
15628 | /* confdefs.h. */ | |
15629 | _ACEOF | |
15630 | cat confdefs.h >>conftest.$ac_ext | |
15631 | cat >>conftest.$ac_ext <<_ACEOF | |
15632 | /* end confdefs.h. */ | |
15633 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15634 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15635 | #define $ac_func innocuous_$ac_func | |
15636 | ||
8b9cf735 | 15637 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15638 | which can conflict with char $ac_func (); below. |
15639 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15640 | <limits.h> exists even on freestanding compilers. */ | |
15641 | ||
15642 | #ifdef __STDC__ | |
15643 | # include <limits.h> | |
15644 | #else | |
15645 | # include <assert.h> | |
15646 | #endif | |
8b9cf735 | 15647 | |
bec39cab | 15648 | #undef $ac_func |
8b9cf735 | 15649 | |
bec39cab AC |
15650 | /* Override any gcc2 internal prototype to avoid an error. */ |
15651 | #ifdef __cplusplus | |
15652 | extern "C" | |
15653 | { | |
15654 | #endif | |
15655 | /* We use char because int might match the return type of a gcc2 | |
15656 | builtin and then its argument prototype would still apply. */ | |
15657 | char $ac_func (); | |
8b9cf735 MK |
15658 | /* The GNU C library defines this for functions which it implements |
15659 | to always fail with ENOSYS. Some functions are actually named | |
15660 | something starting with __ and the normal name is an alias. */ | |
15661 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
15662 | choke me | |
15663 | #else | |
bec39cab AC |
15664 | char (*f) () = $ac_func; |
15665 | #endif | |
15666 | #ifdef __cplusplus | |
15667 | } | |
8b9cf735 MK |
15668 | #endif |
15669 | ||
bec39cab AC |
15670 | int |
15671 | main () | |
15672 | { | |
15673 | return f != $ac_func; | |
15674 | ; | |
15675 | return 0; | |
15676 | } | |
15677 | _ACEOF | |
15678 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15680 | (eval $ac_link) 2>conftest.er1 | |
15681 | ac_status=$? | |
15682 | grep -v '^ *+' conftest.er1 >conftest.err | |
15683 | rm -f conftest.er1 | |
15684 | cat conftest.err >&5 | |
15685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15686 | (exit $ac_status); } && | |
15687 | { ac_try='test -z "$ac_c_werror_flag" | |
15688 | || test ! -s conftest.err' | |
15689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15690 | (eval $ac_try) 2>&5 | |
15691 | ac_status=$? | |
15692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15693 | (exit $ac_status); }; } && | |
15694 | { ac_try='test -s 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 | eval "$as_ac_var=yes" | |
15701 | else | |
15702 | echo "$as_me: failed program was:" >&5 | |
15703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15704 | ||
15705 | eval "$as_ac_var=no" | |
15706 | fi | |
15707 | rm -f conftest.err conftest.$ac_objext \ | |
15708 | conftest$ac_exeext conftest.$ac_ext | |
15709 | fi | |
15710 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
15711 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
15712 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
15713 | cat >>confdefs.h <<_ACEOF | |
15714 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
15715 | _ACEOF | |
8b9cf735 | 15716 | |
8b9cf735 MK |
15717 | fi |
15718 | done | |
15719 | ||
97bf5e38 | 15720 | |
086ec9eb MK |
15721 | # Check the return and argument types of ptrace. No canned test for |
15722 | # this, so roll our own. | |
15723 | gdb_ptrace_headers=' | |
15724 | #if HAVE_SYS_TYPES_H | |
15725 | # include <sys/types.h> | |
15726 | #endif | |
15727 | #if HAVE_SYS_PTRACE_H | |
15728 | # include <sys/ptrace.h> | |
15729 | #endif | |
15730 | #if HAVE_UNISTD_H | |
15731 | # include <unistd.h> | |
15732 | #endif | |
15733 | ' | |
15734 | # There is no point in checking if we don't have a prototype. | |
15735 | for ac_func in ptrace | |
15736 | do | |
15737 | ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
bec39cab AC |
15738 | echo "$as_me:$LINENO: checking whether $ac_func is declared" >&5 |
15739 | echo $ECHO_N "checking whether $ac_func is declared... $ECHO_C" >&6 | |
15740 | if eval "test \"\${gcc_cv_have_decl_$ac_func+set}\" = set"; then | |
15741 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15742 | else | |
15743 | cat >conftest.$ac_ext <<_ACEOF | |
15744 | /* confdefs.h. */ | |
15745 | _ACEOF | |
15746 | cat confdefs.h >>conftest.$ac_ext | |
15747 | cat >>conftest.$ac_ext <<_ACEOF | |
15748 | /* end confdefs.h. */ | |
086ec9eb MK |
15749 | #undef $ac_tr_decl |
15750 | #define $ac_tr_decl 1 | |
15751 | $gdb_ptrace_headers | |
15752 | ||
bec39cab AC |
15753 | int |
15754 | main () | |
15755 | { | |
086ec9eb MK |
15756 | #ifndef $ac_func |
15757 | char *(*pfn) = (char *(*)) $ac_func ; | |
15758 | #endif | |
bec39cab AC |
15759 | ; |
15760 | return 0; | |
15761 | } | |
15762 | _ACEOF | |
15763 | rm -f conftest.$ac_objext | |
15764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15765 | (eval $ac_compile) 2>conftest.er1 | |
15766 | ac_status=$? | |
15767 | grep -v '^ *+' conftest.er1 >conftest.err | |
15768 | rm -f conftest.er1 | |
15769 | cat conftest.err >&5 | |
15770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15771 | (exit $ac_status); } && | |
15772 | { ac_try='test -z "$ac_c_werror_flag" | |
15773 | || test ! -s conftest.err' | |
15774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15775 | (eval $ac_try) 2>&5 | |
15776 | ac_status=$? | |
15777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15778 | (exit $ac_status); }; } && | |
15779 | { ac_try='test -s conftest.$ac_objext' | |
15780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15781 | (eval $ac_try) 2>&5 | |
15782 | ac_status=$? | |
15783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15784 | (exit $ac_status); }; }; then | |
086ec9eb MK |
15785 | eval "gcc_cv_have_decl_$ac_func=yes" |
15786 | else | |
bec39cab AC |
15787 | echo "$as_me: failed program was:" >&5 |
15788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15789 | ||
15790 | eval "gcc_cv_have_decl_$ac_func=no" | |
086ec9eb | 15791 | fi |
bec39cab | 15792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
086ec9eb MK |
15793 | fi |
15794 | ||
15795 | if eval "test \"`echo '$gcc_cv_have_decl_'$ac_func`\" = yes"; then | |
bec39cab AC |
15796 | echo "$as_me:$LINENO: result: yes" >&5 |
15797 | echo "${ECHO_T}yes" >&6 ; cat >>confdefs.h <<_ACEOF | |
086ec9eb | 15798 | #define $ac_tr_decl 1 |
bec39cab AC |
15799 | _ACEOF |
15800 | ||
086ec9eb | 15801 | else |
bec39cab AC |
15802 | echo "$as_me:$LINENO: result: no" >&5 |
15803 | echo "${ECHO_T}no" >&6 ; cat >>confdefs.h <<_ACEOF | |
086ec9eb | 15804 | #define $ac_tr_decl 0 |
bec39cab AC |
15805 | _ACEOF |
15806 | ||
086ec9eb MK |
15807 | : ${gdb_cv_func_ptrace_ret='int'} |
15808 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
15809 | ||
15810 | fi | |
15811 | ||
15812 | done | |
15813 | if test x = y ; then | |
bec39cab AC |
15814 | |
15815 | cat >>confdefs.h <<\_ACEOF | |
086ec9eb | 15816 | #define HAVE_DECL_PTRACE 1 |
bec39cab | 15817 | _ACEOF |
086ec9eb MK |
15818 | fi |
15819 | ||
15820 | # Check return type. | |
bec39cab AC |
15821 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
15822 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 | |
15823 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then | |
15824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15825 | else | |
15826 | cat >conftest.$ac_ext <<_ACEOF | |
15827 | /* confdefs.h. */ | |
15828 | _ACEOF | |
15829 | cat confdefs.h >>conftest.$ac_ext | |
15830 | cat >>conftest.$ac_ext <<_ACEOF | |
15831 | /* end confdefs.h. */ | |
086ec9eb | 15832 | $gdb_ptrace_headers |
bec39cab AC |
15833 | int |
15834 | main () | |
15835 | { | |
5885ab49 | 15836 | extern int ptrace (); |
bec39cab AC |
15837 | ; |
15838 | return 0; | |
15839 | } | |
15840 | _ACEOF | |
15841 | rm -f conftest.$ac_objext | |
15842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15843 | (eval $ac_compile) 2>conftest.er1 | |
15844 | ac_status=$? | |
15845 | grep -v '^ *+' conftest.er1 >conftest.err | |
15846 | rm -f conftest.er1 | |
15847 | cat conftest.err >&5 | |
15848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15849 | (exit $ac_status); } && | |
15850 | { ac_try='test -z "$ac_c_werror_flag" | |
15851 | || test ! -s conftest.err' | |
15852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15853 | (eval $ac_try) 2>&5 | |
15854 | ac_status=$? | |
15855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15856 | (exit $ac_status); }; } && | |
15857 | { ac_try='test -s conftest.$ac_objext' | |
15858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15859 | (eval $ac_try) 2>&5 | |
15860 | ac_status=$? | |
15861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15862 | (exit $ac_status); }; }; then | |
5885ab49 | 15863 | gdb_cv_func_ptrace_ret='int' |
086ec9eb | 15864 | else |
bec39cab AC |
15865 | echo "$as_me: failed program was:" >&5 |
15866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15867 | ||
15868 | gdb_cv_func_ptrace_ret='long' | |
086ec9eb | 15869 | fi |
bec39cab | 15870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
086ec9eb | 15871 | fi |
bec39cab AC |
15872 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
15873 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 | |
086ec9eb | 15874 | |
bec39cab | 15875 | cat >>confdefs.h <<_ACEOF |
086ec9eb | 15876 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret |
bec39cab | 15877 | _ACEOF |
086ec9eb MK |
15878 | |
15879 | # Check argument types. | |
bec39cab AC |
15880 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
15881 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 | |
15882 | if test "${gdb_cv_func_ptrace_args+set}" = set; then | |
15883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
086ec9eb | 15884 | else |
bec39cab | 15885 | |
086ec9eb MK |
15886 | for gdb_arg1 in 'int' 'long'; do |
15887 | for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
15888 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do | |
15889 | for gdb_arg4 in 'int' 'long'; do | |
bec39cab AC |
15890 | cat >conftest.$ac_ext <<_ACEOF |
15891 | /* confdefs.h. */ | |
15892 | _ACEOF | |
15893 | cat confdefs.h >>conftest.$ac_ext | |
15894 | cat >>conftest.$ac_ext <<_ACEOF | |
15895 | /* end confdefs.h. */ | |
086ec9eb | 15896 | $gdb_ptrace_headers |
bec39cab AC |
15897 | int |
15898 | main () | |
15899 | { | |
086ec9eb MK |
15900 | |
15901 | extern $gdb_cv_func_ptrace_ret | |
15902 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
15903 | ||
bec39cab AC |
15904 | ; |
15905 | return 0; | |
15906 | } | |
15907 | _ACEOF | |
15908 | rm -f conftest.$ac_objext | |
15909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15910 | (eval $ac_compile) 2>conftest.er1 | |
15911 | ac_status=$? | |
15912 | grep -v '^ *+' conftest.er1 >conftest.err | |
15913 | rm -f conftest.er1 | |
15914 | cat conftest.err >&5 | |
15915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15916 | (exit $ac_status); } && | |
15917 | { ac_try='test -z "$ac_c_werror_flag" | |
15918 | || test ! -s conftest.err' | |
15919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15920 | (eval $ac_try) 2>&5 | |
15921 | ac_status=$? | |
15922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15923 | (exit $ac_status); }; } && | |
15924 | { ac_try='test -s conftest.$ac_objext' | |
15925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15926 | (eval $ac_try) 2>&5 | |
15927 | ac_status=$? | |
15928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15929 | (exit $ac_status); }; }; then | |
086ec9eb MK |
15930 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
15931 | break 4; | |
15932 | else | |
bec39cab AC |
15933 | echo "$as_me: failed program was:" >&5 |
15934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15935 | ||
086ec9eb | 15936 | fi |
bec39cab | 15937 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
086ec9eb | 15938 | for gdb_arg5 in 'int *' 'int' 'long'; do |
bec39cab AC |
15939 | cat >conftest.$ac_ext <<_ACEOF |
15940 | /* confdefs.h. */ | |
15941 | _ACEOF | |
15942 | cat confdefs.h >>conftest.$ac_ext | |
15943 | cat >>conftest.$ac_ext <<_ACEOF | |
15944 | /* end confdefs.h. */ | |
086ec9eb | 15945 | $gdb_ptrace_headers |
bec39cab AC |
15946 | int |
15947 | main () | |
15948 | { | |
086ec9eb MK |
15949 | |
15950 | extern $gdb_cv_func_ptrace_ret | |
15951 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
15952 | ||
bec39cab AC |
15953 | ; |
15954 | return 0; | |
15955 | } | |
15956 | _ACEOF | |
15957 | rm -f conftest.$ac_objext | |
15958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15959 | (eval $ac_compile) 2>conftest.er1 | |
15960 | ac_status=$? | |
15961 | grep -v '^ *+' conftest.er1 >conftest.err | |
15962 | rm -f conftest.er1 | |
15963 | cat conftest.err >&5 | |
15964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15965 | (exit $ac_status); } && | |
15966 | { ac_try='test -z "$ac_c_werror_flag" | |
15967 | || test ! -s conftest.err' | |
15968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15969 | (eval $ac_try) 2>&5 | |
15970 | ac_status=$? | |
15971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15972 | (exit $ac_status); }; } && | |
15973 | { ac_try='test -s conftest.$ac_objext' | |
15974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15975 | (eval $ac_try) 2>&5 | |
15976 | ac_status=$? | |
15977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15978 | (exit $ac_status); }; }; then | |
15979 | ||
086ec9eb MK |
15980 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; |
15981 | break 5; | |
15982 | else | |
bec39cab AC |
15983 | echo "$as_me: failed program was:" >&5 |
15984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15985 | ||
086ec9eb | 15986 | fi |
bec39cab | 15987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
086ec9eb MK |
15988 | done |
15989 | done | |
15990 | done | |
15991 | done | |
15992 | done | |
15993 | # Provide a safe default value. | |
15994 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
15995 | ||
15996 | fi | |
bec39cab AC |
15997 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
15998 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 | |
086ec9eb MK |
15999 | ac_save_IFS=$IFS; IFS=',' |
16000 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
16001 | IFS=$ac_save_IFS | |
16002 | shift | |
bec39cab AC |
16003 | |
16004 | cat >>confdefs.h <<_ACEOF | |
64218d3e | 16005 | #define PTRACE_TYPE_ARG3 $3 |
bec39cab | 16006 | _ACEOF |
086ec9eb MK |
16007 | |
16008 | if test -n "$5"; then | |
bec39cab AC |
16009 | |
16010 | cat >>confdefs.h <<_ACEOF | |
64218d3e | 16011 | #define PTRACE_TYPE_ARG5 $5 |
bec39cab | 16012 | _ACEOF |
086ec9eb MK |
16013 | |
16014 | fi | |
16015 | ||
97bf5e38 | 16016 | if test "$cross_compiling" = no; then |
bec39cab AC |
16017 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
16018 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
16019 | if test "${ac_cv_func_setpgrp_void+set}" = set; then | |
16020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
16021 | else |
16022 | if test "$cross_compiling" = yes; then | |
bec39cab AC |
16023 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 |
16024 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} | |
16025 | { (exit 1); exit 1; }; } | |
16026 | else | |
16027 | cat >conftest.$ac_ext <<_ACEOF | |
16028 | /* confdefs.h. */ | |
16029 | _ACEOF | |
16030 | cat confdefs.h >>conftest.$ac_ext | |
16031 | cat >>conftest.$ac_ext <<_ACEOF | |
16032 | /* end confdefs.h. */ | |
16033 | #if HAVE_UNISTD_H | |
16034 | # include <unistd.h> | |
c906108c | 16035 | #endif |
97bf5e38 | 16036 | |
bec39cab AC |
16037 | int |
16038 | main () | |
97bf5e38 | 16039 | { |
bec39cab AC |
16040 | /* If this system has a BSD-style setpgrp which takes arguments, |
16041 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
16042 | exit successfully. */ | |
16043 | exit (setpgrp (1,1) == -1 ? 0 : 1); | |
16044 | ; | |
16045 | return 0; | |
97bf5e38 | 16046 | } |
bec39cab AC |
16047 | _ACEOF |
16048 | rm -f conftest$ac_exeext | |
16049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16050 | (eval $ac_link) 2>&5 | |
16051 | ac_status=$? | |
16052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16053 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16055 | (eval $ac_try) 2>&5 | |
16056 | ac_status=$? | |
16057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16058 | (exit $ac_status); }; }; then | |
97bf5e38 | 16059 | ac_cv_func_setpgrp_void=no |
c906108c | 16060 | else |
bec39cab AC |
16061 | echo "$as_me: program exited with status $ac_status" >&5 |
16062 | echo "$as_me: failed program was:" >&5 | |
16063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16064 | ||
16065 | ( exit $ac_status ) | |
16066 | ac_cv_func_setpgrp_void=yes | |
c906108c | 16067 | fi |
bec39cab | 16068 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 16069 | fi |
97bf5e38 | 16070 | fi |
bec39cab AC |
16071 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
16072 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
97bf5e38 | 16073 | if test $ac_cv_func_setpgrp_void = yes; then |
bec39cab AC |
16074 | |
16075 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 16076 | #define SETPGRP_VOID 1 |
bec39cab | 16077 | _ACEOF |
c906108c SS |
16078 | |
16079 | fi | |
16080 | ||
97bf5e38 | 16081 | else |
bec39cab AC |
16082 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
16083 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
16084 | if test "${ac_cv_func_setpgrp_void+set}" = set; then | |
16085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b83266a0 | 16086 | else |
bec39cab AC |
16087 | cat >conftest.$ac_ext <<_ACEOF |
16088 | /* confdefs.h. */ | |
16089 | _ACEOF | |
16090 | cat confdefs.h >>conftest.$ac_ext | |
16091 | cat >>conftest.$ac_ext <<_ACEOF | |
16092 | /* end confdefs.h. */ | |
b83266a0 | 16093 | |
b83266a0 | 16094 | #include <unistd.h> |
97bf5e38 | 16095 | |
bec39cab AC |
16096 | int |
16097 | main () | |
16098 | { | |
97bf5e38 MK |
16099 | |
16100 | if (setpgrp(1,1) == -1) | |
16101 | exit (0); | |
16102 | else | |
16103 | exit (1); | |
16104 | ||
bec39cab AC |
16105 | ; |
16106 | return 0; | |
16107 | } | |
16108 | _ACEOF | |
16109 | rm -f conftest.$ac_objext | |
16110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16111 | (eval $ac_compile) 2>conftest.er1 | |
16112 | ac_status=$? | |
16113 | grep -v '^ *+' conftest.er1 >conftest.err | |
16114 | rm -f conftest.er1 | |
16115 | cat conftest.err >&5 | |
16116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16117 | (exit $ac_status); } && | |
16118 | { ac_try='test -z "$ac_c_werror_flag" | |
16119 | || test ! -s conftest.err' | |
16120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16121 | (eval $ac_try) 2>&5 | |
16122 | ac_status=$? | |
16123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16124 | (exit $ac_status); }; } && | |
16125 | { ac_try='test -s conftest.$ac_objext' | |
16126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16127 | (eval $ac_try) 2>&5 | |
16128 | ac_status=$? | |
16129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16130 | (exit $ac_status); }; }; then | |
97bf5e38 | 16131 | ac_cv_func_setpgrp_void=no |
b83266a0 | 16132 | else |
bec39cab AC |
16133 | echo "$as_me: failed program was:" >&5 |
16134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16135 | ||
16136 | ac_cv_func_setpgrp_void=yes | |
b83266a0 | 16137 | fi |
bec39cab | 16138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b83266a0 | 16139 | fi |
bec39cab AC |
16140 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
16141 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
97bf5e38 | 16142 | if test $ac_cv_func_setpgrp_void = yes; then |
bec39cab | 16143 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 16144 | #define SETPGRP_VOID 1 |
bec39cab | 16145 | _ACEOF |
b83266a0 | 16146 | |
97bf5e38 | 16147 | fi |
b83266a0 SS |
16148 | fi |
16149 | ||
97bf5e38 MK |
16150 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
16151 | # since sigsetjmp might only be defined as a macro. | |
bec39cab AC |
16152 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
16153 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 | |
16154 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then | |
16155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16156 | else | |
16157 | cat >conftest.$ac_ext <<_ACEOF | |
16158 | /* confdefs.h. */ | |
16159 | _ACEOF | |
16160 | cat confdefs.h >>conftest.$ac_ext | |
16161 | cat >>conftest.$ac_ext <<_ACEOF | |
16162 | /* end confdefs.h. */ | |
a4db0f07 | 16163 | |
97bf5e38 MK |
16164 | #include <setjmp.h> |
16165 | ||
bec39cab AC |
16166 | int |
16167 | main () | |
16168 | { | |
97bf5e38 | 16169 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
bec39cab AC |
16170 | ; |
16171 | return 0; | |
16172 | } | |
16173 | _ACEOF | |
16174 | rm -f conftest.$ac_objext | |
16175 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16176 | (eval $ac_compile) 2>conftest.er1 | |
16177 | ac_status=$? | |
16178 | grep -v '^ *+' conftest.er1 >conftest.err | |
16179 | rm -f conftest.er1 | |
16180 | cat conftest.err >&5 | |
16181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16182 | (exit $ac_status); } && | |
16183 | { ac_try='test -z "$ac_c_werror_flag" | |
16184 | || test ! -s conftest.err' | |
16185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16186 | (eval $ac_try) 2>&5 | |
16187 | ac_status=$? | |
16188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16189 | (exit $ac_status); }; } && | |
16190 | { ac_try='test -s conftest.$ac_objext' | |
16191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16192 | (eval $ac_try) 2>&5 | |
16193 | ac_status=$? | |
16194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16195 | (exit $ac_status); }; }; then | |
97bf5e38 | 16196 | gdb_cv_func_sigsetjmp=yes |
a4db0f07 | 16197 | else |
bec39cab AC |
16198 | echo "$as_me: failed program was:" >&5 |
16199 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16200 | ||
16201 | gdb_cv_func_sigsetjmp=no | |
a4db0f07 | 16202 | fi |
bec39cab | 16203 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a4db0f07 | 16204 | fi |
bec39cab AC |
16205 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
16206 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 | |
97bf5e38 | 16207 | if test $gdb_cv_func_sigsetjmp = yes; then |
bec39cab AC |
16208 | |
16209 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 16210 | #define HAVE_SIGSETJMP 1 |
bec39cab | 16211 | _ACEOF |
a4db0f07 RH |
16212 | |
16213 | fi | |
c906108c | 16214 | |
06825bd1 MK |
16215 | # Assume we'll default to using the included libiberty regex. |
16216 | gdb_use_included_regex=yes | |
16217 | ||
16218 | # However, if the system regex is GNU regex, then default to *not* | |
16219 | # using the included regex. | |
bec39cab AC |
16220 | echo "$as_me:$LINENO: checking for GNU regex" >&5 |
16221 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 | |
16222 | if test "${gdb_cv_have_gnu_regex+set}" = set; then | |
16223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16224 | else | |
16225 | cat >conftest.$ac_ext <<_ACEOF | |
16226 | /* confdefs.h. */ | |
16227 | _ACEOF | |
16228 | cat confdefs.h >>conftest.$ac_ext | |
16229 | cat >>conftest.$ac_ext <<_ACEOF | |
16230 | /* end confdefs.h. */ | |
06825bd1 | 16231 | #include <gnu-versions.h> |
bec39cab AC |
16232 | int |
16233 | main () | |
16234 | { | |
06825bd1 MK |
16235 | #define REGEX_INTERFACE_VERSION 1 |
16236 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION | |
16237 | # error "Version mismatch" | |
16238 | #endif | |
bec39cab AC |
16239 | ; |
16240 | return 0; | |
16241 | } | |
16242 | _ACEOF | |
16243 | rm -f conftest.$ac_objext | |
16244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16245 | (eval $ac_compile) 2>conftest.er1 | |
16246 | ac_status=$? | |
16247 | grep -v '^ *+' conftest.er1 >conftest.err | |
16248 | rm -f conftest.er1 | |
16249 | cat conftest.err >&5 | |
16250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16251 | (exit $ac_status); } && | |
16252 | { ac_try='test -z "$ac_c_werror_flag" | |
16253 | || test ! -s conftest.err' | |
16254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16255 | (eval $ac_try) 2>&5 | |
16256 | ac_status=$? | |
16257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16258 | (exit $ac_status); }; } && | |
16259 | { ac_try='test -s conftest.$ac_objext' | |
16260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16261 | (eval $ac_try) 2>&5 | |
16262 | ac_status=$? | |
16263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16264 | (exit $ac_status); }; }; then | |
06825bd1 MK |
16265 | gdb_cv_have_gnu_regex=yes |
16266 | else | |
bec39cab AC |
16267 | echo "$as_me: failed program was:" >&5 |
16268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16269 | ||
16270 | gdb_cv_have_gnu_regex=no | |
06825bd1 | 16271 | fi |
bec39cab | 16272 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
06825bd1 | 16273 | fi |
bec39cab AC |
16274 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
16275 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 | |
06825bd1 MK |
16276 | if test $gdb_cv_have_gnu_regex = yes; then |
16277 | gdb_use_included_regex=no | |
16278 | fi | |
16279 | ||
bec39cab | 16280 | |
06825bd1 MK |
16281 | # Check whether --with-included-regex or --without-included-regex was given. |
16282 | if test "${with_included_regex+set}" = set; then | |
16283 | withval="$with_included_regex" | |
16284 | gdb_with_regex=$withval | |
16285 | else | |
16286 | gdb_with_regex=$gdb_use_included_regex | |
bec39cab | 16287 | fi; |
06825bd1 | 16288 | if test "$gdb_with_regex" = yes; then |
bec39cab AC |
16289 | |
16290 | cat >>confdefs.h <<\_ACEOF | |
06825bd1 | 16291 | #define USE_INCLUDED_REGEX 1 |
bec39cab | 16292 | _ACEOF |
06825bd1 MK |
16293 | |
16294 | fi | |
16295 | ||
70f9f479 | 16296 | # See if <sys/proc.h> defines `struct thread' with a td_pcb member. |
bec39cab AC |
16297 | echo "$as_me:$LINENO: checking for td_pcb in struct thread" >&5 |
16298 | echo $ECHO_N "checking for td_pcb in struct thread... $ECHO_C" >&6 | |
16299 | if test "${gdb_cv_struct_thread_td_pcb+set}" = set; then | |
16300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16301 | else | |
16302 | cat >conftest.$ac_ext <<_ACEOF | |
16303 | /* confdefs.h. */ | |
16304 | _ACEOF | |
16305 | cat confdefs.h >>conftest.$ac_ext | |
16306 | cat >>conftest.$ac_ext <<_ACEOF | |
16307 | /* end confdefs.h. */ | |
d15be926 | 16308 | #include <sys/param.h> |
70f9f479 | 16309 | #include <sys/proc.h> |
bec39cab AC |
16310 | int |
16311 | main () | |
16312 | { | |
70f9f479 | 16313 | struct thread td; td.td_pcb; |
bec39cab AC |
16314 | ; |
16315 | return 0; | |
16316 | } | |
16317 | _ACEOF | |
16318 | rm -f conftest.$ac_objext | |
16319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16320 | (eval $ac_compile) 2>conftest.er1 | |
16321 | ac_status=$? | |
16322 | grep -v '^ *+' conftest.er1 >conftest.err | |
16323 | rm -f conftest.er1 | |
16324 | cat conftest.err >&5 | |
16325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16326 | (exit $ac_status); } && | |
16327 | { ac_try='test -z "$ac_c_werror_flag" | |
16328 | || test ! -s conftest.err' | |
16329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16330 | (eval $ac_try) 2>&5 | |
16331 | ac_status=$? | |
16332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16333 | (exit $ac_status); }; } && | |
16334 | { ac_try='test -s conftest.$ac_objext' | |
16335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16336 | (eval $ac_try) 2>&5 | |
16337 | ac_status=$? | |
16338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16339 | (exit $ac_status); }; }; then | |
70f9f479 MK |
16340 | gdb_cv_struct_thread_td_pcb=yes |
16341 | else | |
bec39cab AC |
16342 | echo "$as_me: failed program was:" >&5 |
16343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16344 | ||
16345 | gdb_cv_struct_thread_td_pcb=no | |
70f9f479 | 16346 | fi |
bec39cab | 16347 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
70f9f479 | 16348 | fi |
bec39cab AC |
16349 | echo "$as_me:$LINENO: result: $gdb_cv_struct_thread_td_pcb" >&5 |
16350 | echo "${ECHO_T}$gdb_cv_struct_thread_td_pcb" >&6 | |
70f9f479 | 16351 | if test $gdb_cv_struct_thread_td_pcb = yes; then |
bec39cab AC |
16352 | |
16353 | cat >>confdefs.h <<\_ACEOF | |
70f9f479 | 16354 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
bec39cab | 16355 | _ACEOF |
70f9f479 MK |
16356 | |
16357 | fi | |
16358 | ||
5c7f2947 | 16359 | # See if <sys/lwp.h> defines `struct lwp`. |
bec39cab AC |
16360 | echo "$as_me:$LINENO: checking for struct lwp" >&5 |
16361 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 | |
16362 | if test "${gdb_cv_struct_lwp+set}" = set; then | |
16363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16364 | else | |
16365 | cat >conftest.$ac_ext <<_ACEOF | |
16366 | /* confdefs.h. */ | |
16367 | _ACEOF | |
16368 | cat confdefs.h >>conftest.$ac_ext | |
16369 | cat >>conftest.$ac_ext <<_ACEOF | |
16370 | /* end confdefs.h. */ | |
5c7f2947 MK |
16371 | #include <sys/param.h> |
16372 | #include <sys/lwp.h> | |
bec39cab AC |
16373 | int |
16374 | main () | |
16375 | { | |
5c7f2947 | 16376 | struct lwp l; |
bec39cab AC |
16377 | ; |
16378 | return 0; | |
16379 | } | |
16380 | _ACEOF | |
16381 | rm -f conftest.$ac_objext | |
16382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16383 | (eval $ac_compile) 2>conftest.er1 | |
16384 | ac_status=$? | |
16385 | grep -v '^ *+' conftest.er1 >conftest.err | |
16386 | rm -f conftest.er1 | |
16387 | cat conftest.err >&5 | |
16388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16389 | (exit $ac_status); } && | |
16390 | { ac_try='test -z "$ac_c_werror_flag" | |
16391 | || test ! -s conftest.err' | |
16392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16393 | (eval $ac_try) 2>&5 | |
16394 | ac_status=$? | |
16395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16396 | (exit $ac_status); }; } && | |
16397 | { ac_try='test -s conftest.$ac_objext' | |
16398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16399 | (eval $ac_try) 2>&5 | |
16400 | ac_status=$? | |
16401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16402 | (exit $ac_status); }; }; then | |
5c7f2947 MK |
16403 | gdb_cv_struct_lwp=yes |
16404 | else | |
bec39cab AC |
16405 | echo "$as_me: failed program was:" >&5 |
16406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16407 | ||
16408 | gdb_cv_struct_lwp=no | |
5c7f2947 | 16409 | fi |
bec39cab | 16410 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5c7f2947 | 16411 | fi |
bec39cab AC |
16412 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
16413 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 | |
5c7f2947 | 16414 | if test $gdb_cv_struct_lwp = yes; then |
bec39cab AC |
16415 | |
16416 | cat >>confdefs.h <<\_ACEOF | |
5c7f2947 | 16417 | #define HAVE_STRUCT_LWP 1 |
bec39cab | 16418 | _ACEOF |
5c7f2947 MK |
16419 | |
16420 | fi | |
16421 | ||
78434e59 | 16422 | # See if <machine/reg.h> degines `struct reg'. |
bec39cab AC |
16423 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
16424 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 | |
16425 | if test "${gdb_cv_struct_reg+set}" = set; then | |
16426 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16427 | else | |
16428 | cat >conftest.$ac_ext <<_ACEOF | |
16429 | /* confdefs.h. */ | |
16430 | _ACEOF | |
16431 | cat confdefs.h >>conftest.$ac_ext | |
16432 | cat >>conftest.$ac_ext <<_ACEOF | |
16433 | /* end confdefs.h. */ | |
78434e59 MK |
16434 | #include <sys/types.h> |
16435 | #include <machine/reg.h> | |
bec39cab AC |
16436 | int |
16437 | main () | |
16438 | { | |
78434e59 | 16439 | struct reg r; |
bec39cab AC |
16440 | ; |
16441 | return 0; | |
16442 | } | |
16443 | _ACEOF | |
16444 | rm -f conftest.$ac_objext | |
16445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16446 | (eval $ac_compile) 2>conftest.er1 | |
16447 | ac_status=$? | |
16448 | grep -v '^ *+' conftest.er1 >conftest.err | |
16449 | rm -f conftest.er1 | |
16450 | cat conftest.err >&5 | |
16451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16452 | (exit $ac_status); } && | |
16453 | { ac_try='test -z "$ac_c_werror_flag" | |
16454 | || test ! -s conftest.err' | |
16455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16456 | (eval $ac_try) 2>&5 | |
16457 | ac_status=$? | |
16458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16459 | (exit $ac_status); }; } && | |
16460 | { ac_try='test -s conftest.$ac_objext' | |
16461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16462 | (eval $ac_try) 2>&5 | |
16463 | ac_status=$? | |
16464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16465 | (exit $ac_status); }; }; then | |
78434e59 MK |
16466 | gdb_cv_struct_reg=yes |
16467 | else | |
bec39cab AC |
16468 | echo "$as_me: failed program was:" >&5 |
16469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16470 | ||
16471 | gdb_cv_struct_reg=no | |
78434e59 | 16472 | fi |
bec39cab | 16473 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
78434e59 | 16474 | fi |
bec39cab AC |
16475 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
16476 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 | |
78434e59 | 16477 | if test $gdb_cv_struct_reg = yes; then |
bec39cab AC |
16478 | |
16479 | cat >>confdefs.h <<\_ACEOF | |
78434e59 | 16480 | #define HAVE_STRUCT_REG 1 |
bec39cab | 16481 | _ACEOF |
78434e59 MK |
16482 | |
16483 | fi | |
16484 | ||
97bf5e38 MK |
16485 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
16486 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | |
bec39cab AC |
16487 | echo "$as_me:$LINENO: checking for r_fs in struct reg" >&5 |
16488 | echo $ECHO_N "checking for r_fs in struct reg... $ECHO_C" >&6 | |
16489 | if test "${gdb_cv_struct_reg_r_fs+set}" = set; then | |
16490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16491 | else | |
16492 | cat >conftest.$ac_ext <<_ACEOF | |
16493 | /* confdefs.h. */ | |
16494 | _ACEOF | |
16495 | cat confdefs.h >>conftest.$ac_ext | |
16496 | cat >>conftest.$ac_ext <<_ACEOF | |
16497 | /* end confdefs.h. */ | |
97bf5e38 | 16498 | #include <machine/reg.h> |
bec39cab AC |
16499 | int |
16500 | main () | |
16501 | { | |
97bf5e38 | 16502 | struct reg r; r.r_fs; |
bec39cab AC |
16503 | ; |
16504 | return 0; | |
16505 | } | |
16506 | _ACEOF | |
16507 | rm -f conftest.$ac_objext | |
16508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16509 | (eval $ac_compile) 2>conftest.er1 | |
16510 | ac_status=$? | |
16511 | grep -v '^ *+' conftest.er1 >conftest.err | |
16512 | rm -f conftest.er1 | |
16513 | cat conftest.err >&5 | |
16514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16515 | (exit $ac_status); } && | |
16516 | { ac_try='test -z "$ac_c_werror_flag" | |
16517 | || test ! -s conftest.err' | |
16518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16519 | (eval $ac_try) 2>&5 | |
16520 | ac_status=$? | |
16521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16522 | (exit $ac_status); }; } && | |
16523 | { ac_try='test -s conftest.$ac_objext' | |
16524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16525 | (eval $ac_try) 2>&5 | |
16526 | ac_status=$? | |
16527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16528 | (exit $ac_status); }; }; then | |
97bf5e38 | 16529 | gdb_cv_struct_reg_r_fs=yes |
c906108c | 16530 | else |
bec39cab AC |
16531 | echo "$as_me: failed program was:" >&5 |
16532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16533 | ||
16534 | gdb_cv_struct_reg_r_fs=no | |
c906108c | 16535 | fi |
bec39cab | 16536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 16537 | fi |
bec39cab AC |
16538 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_fs" >&5 |
16539 | echo "${ECHO_T}$gdb_cv_struct_reg_r_fs" >&6 | |
97bf5e38 | 16540 | if test $gdb_cv_struct_reg_r_fs = yes; then |
bec39cab | 16541 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 16542 | #define HAVE_STRUCT_REG_R_FS 1 |
bec39cab | 16543 | _ACEOF |
97bf5e38 MK |
16544 | |
16545 | fi | |
bec39cab AC |
16546 | echo "$as_me:$LINENO: checking for r_gs in struct reg" >&5 |
16547 | echo $ECHO_N "checking for r_gs in struct reg... $ECHO_C" >&6 | |
16548 | if test "${gdb_cv_struct_reg_r_gs+set}" = set; then | |
16549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 16550 | else |
bec39cab AC |
16551 | cat >conftest.$ac_ext <<_ACEOF |
16552 | /* confdefs.h. */ | |
16553 | _ACEOF | |
16554 | cat confdefs.h >>conftest.$ac_ext | |
16555 | cat >>conftest.$ac_ext <<_ACEOF | |
16556 | /* end confdefs.h. */ | |
97bf5e38 | 16557 | #include <machine/reg.h> |
bec39cab AC |
16558 | int |
16559 | main () | |
16560 | { | |
97bf5e38 | 16561 | struct reg r; r.r_gs; |
bec39cab AC |
16562 | ; |
16563 | return 0; | |
16564 | } | |
16565 | _ACEOF | |
16566 | rm -f conftest.$ac_objext | |
16567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16568 | (eval $ac_compile) 2>conftest.er1 | |
16569 | ac_status=$? | |
16570 | grep -v '^ *+' conftest.er1 >conftest.err | |
16571 | rm -f conftest.er1 | |
16572 | cat conftest.err >&5 | |
16573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16574 | (exit $ac_status); } && | |
16575 | { ac_try='test -z "$ac_c_werror_flag" | |
16576 | || test ! -s conftest.err' | |
16577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16578 | (eval $ac_try) 2>&5 | |
16579 | ac_status=$? | |
16580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16581 | (exit $ac_status); }; } && | |
16582 | { ac_try='test -s conftest.$ac_objext' | |
16583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16584 | (eval $ac_try) 2>&5 | |
16585 | ac_status=$? | |
16586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16587 | (exit $ac_status); }; }; then | |
97bf5e38 | 16588 | gdb_cv_struct_reg_r_gs=yes |
c906108c | 16589 | else |
bec39cab AC |
16590 | echo "$as_me: failed program was:" >&5 |
16591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16592 | ||
16593 | gdb_cv_struct_reg_r_gs=no | |
c906108c | 16594 | fi |
bec39cab | 16595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 16596 | fi |
bec39cab AC |
16597 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg_r_gs" >&5 |
16598 | echo "${ECHO_T}$gdb_cv_struct_reg_r_gs" >&6 | |
97bf5e38 | 16599 | if test $gdb_cv_struct_reg_r_gs = yes; then |
bec39cab | 16600 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 16601 | #define HAVE_STRUCT_REG_R_GS 1 |
bec39cab | 16602 | _ACEOF |
c3f6f71d | 16603 | |
c906108c SS |
16604 | fi |
16605 | ||
97bf5e38 | 16606 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
bec39cab AC |
16607 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
16608 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 | |
16609 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then | |
16610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16611 | else | |
16612 | cat >conftest.$ac_ext <<_ACEOF | |
16613 | /* confdefs.h. */ | |
16614 | _ACEOF | |
16615 | cat confdefs.h >>conftest.$ac_ext | |
16616 | cat >>conftest.$ac_ext <<_ACEOF | |
16617 | /* end confdefs.h. */ | |
97bf5e38 | 16618 | #include <sys/ptrace.h> |
bec39cab AC |
16619 | int |
16620 | main () | |
16621 | { | |
97bf5e38 | 16622 | PTRACE_GETREGS; |
bec39cab AC |
16623 | ; |
16624 | return 0; | |
16625 | } | |
16626 | _ACEOF | |
16627 | rm -f conftest.$ac_objext | |
16628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16629 | (eval $ac_compile) 2>conftest.er1 | |
16630 | ac_status=$? | |
16631 | grep -v '^ *+' conftest.er1 >conftest.err | |
16632 | rm -f conftest.er1 | |
16633 | cat conftest.err >&5 | |
16634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16635 | (exit $ac_status); } && | |
16636 | { ac_try='test -z "$ac_c_werror_flag" | |
16637 | || test ! -s conftest.err' | |
16638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16639 | (eval $ac_try) 2>&5 | |
16640 | ac_status=$? | |
16641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16642 | (exit $ac_status); }; } && | |
16643 | { ac_try='test -s conftest.$ac_objext' | |
16644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16645 | (eval $ac_try) 2>&5 | |
16646 | ac_status=$? | |
16647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16648 | (exit $ac_status); }; }; then | |
97bf5e38 | 16649 | gdb_cv_have_ptrace_getregs=yes |
c906108c | 16650 | else |
bec39cab AC |
16651 | echo "$as_me: failed program was:" >&5 |
16652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16653 | ||
16654 | gdb_cv_have_ptrace_getregs=no | |
c906108c | 16655 | fi |
bec39cab | 16656 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
16657 | fi |
16658 | ||
bec39cab AC |
16659 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
16660 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 | |
97bf5e38 | 16661 | if test $gdb_cv_have_ptrace_getregs = yes; then |
bec39cab | 16662 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 16663 | #define HAVE_PTRACE_GETREGS 1 |
bec39cab | 16664 | _ACEOF |
c906108c | 16665 | |
97bf5e38 | 16666 | fi |
c906108c | 16667 | |
97bf5e38 | 16668 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
bec39cab AC |
16669 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
16670 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 | |
16671 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then | |
16672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16673 | else | |
16674 | cat >conftest.$ac_ext <<_ACEOF | |
16675 | /* confdefs.h. */ | |
16676 | _ACEOF | |
16677 | cat confdefs.h >>conftest.$ac_ext | |
16678 | cat >>conftest.$ac_ext <<_ACEOF | |
16679 | /* end confdefs.h. */ | |
97bf5e38 | 16680 | #include <sys/ptrace.h> |
bec39cab AC |
16681 | int |
16682 | main () | |
16683 | { | |
97bf5e38 | 16684 | PTRACE_GETFPXREGS; |
bec39cab AC |
16685 | ; |
16686 | return 0; | |
16687 | } | |
16688 | _ACEOF | |
16689 | rm -f conftest.$ac_objext | |
16690 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16691 | (eval $ac_compile) 2>conftest.er1 | |
16692 | ac_status=$? | |
16693 | grep -v '^ *+' conftest.er1 >conftest.err | |
16694 | rm -f conftest.er1 | |
16695 | cat conftest.err >&5 | |
16696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16697 | (exit $ac_status); } && | |
16698 | { ac_try='test -z "$ac_c_werror_flag" | |
16699 | || test ! -s conftest.err' | |
16700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16701 | (eval $ac_try) 2>&5 | |
16702 | ac_status=$? | |
16703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16704 | (exit $ac_status); }; } && | |
16705 | { ac_try='test -s conftest.$ac_objext' | |
16706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16707 | (eval $ac_try) 2>&5 | |
16708 | ac_status=$? | |
16709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16710 | (exit $ac_status); }; }; then | |
97bf5e38 | 16711 | gdb_cv_have_ptrace_getfpxregs=yes |
c906108c | 16712 | else |
bec39cab AC |
16713 | echo "$as_me: failed program was:" >&5 |
16714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16715 | ||
16716 | gdb_cv_have_ptrace_getfpxregs=no | |
c906108c | 16717 | fi |
bec39cab | 16718 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
16719 | fi |
16720 | ||
bec39cab AC |
16721 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
16722 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 | |
97bf5e38 | 16723 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
bec39cab | 16724 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 16725 | #define HAVE_PTRACE_GETFPXREGS 1 |
bec39cab | 16726 | _ACEOF |
c906108c | 16727 | |
97bf5e38 | 16728 | fi |
c906108c | 16729 | |
97bf5e38 | 16730 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
bec39cab AC |
16731 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
16732 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 | |
16733 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then | |
16734 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16735 | else | |
16736 | cat >conftest.$ac_ext <<_ACEOF | |
16737 | /* confdefs.h. */ | |
16738 | _ACEOF | |
16739 | cat confdefs.h >>conftest.$ac_ext | |
16740 | cat >>conftest.$ac_ext <<_ACEOF | |
16741 | /* end confdefs.h. */ | |
97bf5e38 MK |
16742 | #include <sys/types.h> |
16743 | #include <sys/ptrace.h> | |
bec39cab AC |
16744 | int |
16745 | main () | |
16746 | { | |
97bf5e38 | 16747 | PT_GETDBREGS; |
bec39cab AC |
16748 | ; |
16749 | return 0; | |
16750 | } | |
16751 | _ACEOF | |
16752 | rm -f conftest.$ac_objext | |
16753 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16754 | (eval $ac_compile) 2>conftest.er1 | |
16755 | ac_status=$? | |
16756 | grep -v '^ *+' conftest.er1 >conftest.err | |
16757 | rm -f conftest.er1 | |
16758 | cat conftest.err >&5 | |
16759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16760 | (exit $ac_status); } && | |
16761 | { ac_try='test -z "$ac_c_werror_flag" | |
16762 | || test ! -s conftest.err' | |
16763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16764 | (eval $ac_try) 2>&5 | |
16765 | ac_status=$? | |
16766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16767 | (exit $ac_status); }; } && | |
16768 | { ac_try='test -s conftest.$ac_objext' | |
16769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16770 | (eval $ac_try) 2>&5 | |
16771 | ac_status=$? | |
16772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16773 | (exit $ac_status); }; }; then | |
97bf5e38 | 16774 | gdb_cv_have_pt_getdbregs=yes |
c906108c | 16775 | else |
bec39cab AC |
16776 | echo "$as_me: failed program was:" >&5 |
16777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16778 | ||
16779 | gdb_cv_have_pt_getdbregs=no | |
c906108c | 16780 | fi |
bec39cab | 16781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
16782 | fi |
16783 | ||
bec39cab AC |
16784 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
16785 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 | |
97bf5e38 | 16786 | if test $gdb_cv_have_pt_getdbregs = yes; then |
bec39cab | 16787 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 16788 | #define HAVE_PT_GETDBREGS 1 |
bec39cab | 16789 | _ACEOF |
c906108c | 16790 | |
97bf5e38 | 16791 | fi |
c906108c | 16792 | |
97bf5e38 | 16793 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
bec39cab AC |
16794 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
16795 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 | |
16796 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then | |
16797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16798 | else | |
16799 | cat >conftest.$ac_ext <<_ACEOF | |
16800 | /* confdefs.h. */ | |
16801 | _ACEOF | |
16802 | cat confdefs.h >>conftest.$ac_ext | |
16803 | cat >>conftest.$ac_ext <<_ACEOF | |
16804 | /* end confdefs.h. */ | |
97bf5e38 MK |
16805 | #include <sys/types.h> |
16806 | #include <sys/ptrace.h> | |
bec39cab AC |
16807 | int |
16808 | main () | |
16809 | { | |
97bf5e38 | 16810 | PT_GETXMMREGS; |
bec39cab AC |
16811 | ; |
16812 | return 0; | |
16813 | } | |
16814 | _ACEOF | |
16815 | rm -f conftest.$ac_objext | |
16816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16817 | (eval $ac_compile) 2>conftest.er1 | |
16818 | ac_status=$? | |
16819 | grep -v '^ *+' conftest.er1 >conftest.err | |
16820 | rm -f conftest.er1 | |
16821 | cat conftest.err >&5 | |
16822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16823 | (exit $ac_status); } && | |
16824 | { ac_try='test -z "$ac_c_werror_flag" | |
16825 | || test ! -s conftest.err' | |
16826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16827 | (eval $ac_try) 2>&5 | |
16828 | ac_status=$? | |
16829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16830 | (exit $ac_status); }; } && | |
16831 | { ac_try='test -s conftest.$ac_objext' | |
16832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16833 | (eval $ac_try) 2>&5 | |
16834 | ac_status=$? | |
16835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16836 | (exit $ac_status); }; }; then | |
97bf5e38 | 16837 | gdb_cv_have_pt_getxmmregs=yes |
c906108c | 16838 | else |
bec39cab AC |
16839 | echo "$as_me: failed program was:" >&5 |
16840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16841 | ||
16842 | gdb_cv_have_pt_getxmmregs=no | |
c906108c | 16843 | fi |
bec39cab | 16844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
16845 | fi |
16846 | ||
bec39cab AC |
16847 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
16848 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 | |
97bf5e38 | 16849 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
bec39cab | 16850 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 16851 | #define HAVE_PT_GETXMMREGS 1 |
bec39cab | 16852 | _ACEOF |
c906108c | 16853 | |
97bf5e38 | 16854 | fi |
c906108c | 16855 | |
27ca5dad | 16856 | # See if stdint.h provides the uintptr_t type. |
d3e0a5bf | 16857 | # Autoconf 2.5X has an improved AC_CHECK_TYPE which will simplify this. |
bec39cab AC |
16858 | echo "$as_me:$LINENO: checking for uintptr_t in stdint.h" >&5 |
16859 | echo $ECHO_N "checking for uintptr_t in stdint.h... $ECHO_C" >&6 | |
16860 | if test "${gdb_cv_have_uintptr_t+set}" = set; then | |
16861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16862 | else | |
16863 | cat >conftest.$ac_ext <<_ACEOF | |
16864 | /* confdefs.h. */ | |
16865 | _ACEOF | |
16866 | cat confdefs.h >>conftest.$ac_ext | |
16867 | cat >>conftest.$ac_ext <<_ACEOF | |
16868 | /* end confdefs.h. */ | |
27ca5dad | 16869 | #include <stdint.h> |
bec39cab AC |
16870 | int |
16871 | main () | |
16872 | { | |
27ca5dad | 16873 | uintptr_t foo = 0; |
bec39cab AC |
16874 | ; |
16875 | return 0; | |
16876 | } | |
16877 | _ACEOF | |
16878 | rm -f conftest.$ac_objext | |
16879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16880 | (eval $ac_compile) 2>conftest.er1 | |
16881 | ac_status=$? | |
16882 | grep -v '^ *+' conftest.er1 >conftest.err | |
16883 | rm -f conftest.er1 | |
16884 | cat conftest.err >&5 | |
16885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16886 | (exit $ac_status); } && | |
16887 | { ac_try='test -z "$ac_c_werror_flag" | |
16888 | || test ! -s conftest.err' | |
16889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16890 | (eval $ac_try) 2>&5 | |
16891 | ac_status=$? | |
16892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16893 | (exit $ac_status); }; } && | |
16894 | { ac_try='test -s conftest.$ac_objext' | |
16895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16896 | (eval $ac_try) 2>&5 | |
16897 | ac_status=$? | |
16898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16899 | (exit $ac_status); }; }; then | |
27ca5dad MC |
16900 | gdb_cv_have_uintptr_t=yes |
16901 | else | |
bec39cab AC |
16902 | echo "$as_me: failed program was:" >&5 |
16903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16904 | ||
16905 | gdb_cv_have_uintptr_t=no | |
27ca5dad | 16906 | fi |
bec39cab | 16907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27ca5dad | 16908 | fi |
bec39cab AC |
16909 | echo "$as_me:$LINENO: result: $gdb_cv_have_uintptr_t" >&5 |
16910 | echo "${ECHO_T}$gdb_cv_have_uintptr_t" >&6 | |
27ca5dad | 16911 | if test $gdb_cv_have_uintptr_t = yes; then |
bec39cab AC |
16912 | |
16913 | cat >>confdefs.h <<\_ACEOF | |
27ca5dad | 16914 | #define HAVE_UINTPTR_T 1 |
bec39cab | 16915 | _ACEOF |
27ca5dad MC |
16916 | |
16917 | fi | |
97bf5e38 | 16918 | |
bec39cab AC |
16919 | echo "$as_me:$LINENO: checking whether malloc must be declared" >&5 |
16920 | echo $ECHO_N "checking whether malloc must be declared... $ECHO_C" >&6 | |
16921 | if test "${bfd_cv_decl_needed_malloc+set}" = set; then | |
16922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3862412b | 16923 | else |
bec39cab AC |
16924 | cat >conftest.$ac_ext <<_ACEOF |
16925 | /* confdefs.h. */ | |
16926 | _ACEOF | |
16927 | cat confdefs.h >>conftest.$ac_ext | |
16928 | cat >>conftest.$ac_ext <<_ACEOF | |
16929 | /* end confdefs.h. */ | |
e17bf198 | 16930 | |
97bf5e38 MK |
16931 | #include <stdio.h> |
16932 | #ifdef HAVE_STRING_H | |
16933 | #include <string.h> | |
16934 | #else | |
16935 | #ifdef HAVE_STRINGS_H | |
16936 | #include <strings.h> | |
16937 | #endif | |
16938 | #endif | |
16939 | #ifdef HAVE_STDLIB_H | |
16940 | #include <stdlib.h> | |
16941 | #endif | |
16942 | #ifdef HAVE_UNISTD_H | |
16943 | #include <unistd.h> | |
16944 | #endif | |
bec39cab AC |
16945 | int |
16946 | main () | |
16947 | { | |
97bf5e38 | 16948 | char *(*pfn) = (char *(*)) malloc |
bec39cab AC |
16949 | ; |
16950 | return 0; | |
16951 | } | |
16952 | _ACEOF | |
16953 | rm -f conftest.$ac_objext | |
16954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16955 | (eval $ac_compile) 2>conftest.er1 | |
16956 | ac_status=$? | |
16957 | grep -v '^ *+' conftest.er1 >conftest.err | |
16958 | rm -f conftest.er1 | |
16959 | cat conftest.err >&5 | |
16960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16961 | (exit $ac_status); } && | |
16962 | { ac_try='test -z "$ac_c_werror_flag" | |
16963 | || test ! -s conftest.err' | |
16964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16965 | (eval $ac_try) 2>&5 | |
16966 | ac_status=$? | |
16967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16968 | (exit $ac_status); }; } && | |
16969 | { ac_try='test -s conftest.$ac_objext' | |
16970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16971 | (eval $ac_try) 2>&5 | |
16972 | ac_status=$? | |
16973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16974 | (exit $ac_status); }; }; then | |
97bf5e38 | 16975 | bfd_cv_decl_needed_malloc=no |
3862412b | 16976 | else |
bec39cab AC |
16977 | echo "$as_me: failed program was:" >&5 |
16978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16979 | ||
16980 | bfd_cv_decl_needed_malloc=yes | |
3862412b | 16981 | fi |
bec39cab | 16982 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
16983 | fi |
16984 | ||
bec39cab AC |
16985 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_malloc" >&5 |
16986 | echo "${ECHO_T}$bfd_cv_decl_needed_malloc" >&6 | |
97bf5e38 | 16987 | if test $bfd_cv_decl_needed_malloc = yes; then |
bec39cab AC |
16988 | |
16989 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 16990 | #define NEED_DECLARATION_MALLOC 1 |
bec39cab | 16991 | _ACEOF |
3862412b | 16992 | |
97bf5e38 | 16993 | fi |
3862412b | 16994 | |
bec39cab AC |
16995 | echo "$as_me:$LINENO: checking whether realloc must be declared" >&5 |
16996 | echo $ECHO_N "checking whether realloc must be declared... $ECHO_C" >&6 | |
16997 | if test "${bfd_cv_decl_needed_realloc+set}" = set; then | |
16998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3862412b | 16999 | else |
bec39cab AC |
17000 | cat >conftest.$ac_ext <<_ACEOF |
17001 | /* confdefs.h. */ | |
17002 | _ACEOF | |
17003 | cat confdefs.h >>conftest.$ac_ext | |
17004 | cat >>conftest.$ac_ext <<_ACEOF | |
17005 | /* end confdefs.h. */ | |
e17bf198 | 17006 | |
97bf5e38 MK |
17007 | #include <stdio.h> |
17008 | #ifdef HAVE_STRING_H | |
17009 | #include <string.h> | |
17010 | #else | |
17011 | #ifdef HAVE_STRINGS_H | |
17012 | #include <strings.h> | |
17013 | #endif | |
17014 | #endif | |
17015 | #ifdef HAVE_STDLIB_H | |
17016 | #include <stdlib.h> | |
17017 | #endif | |
17018 | #ifdef HAVE_UNISTD_H | |
17019 | #include <unistd.h> | |
17020 | #endif | |
bec39cab AC |
17021 | int |
17022 | main () | |
17023 | { | |
97bf5e38 | 17024 | char *(*pfn) = (char *(*)) realloc |
bec39cab AC |
17025 | ; |
17026 | return 0; | |
17027 | } | |
17028 | _ACEOF | |
17029 | rm -f conftest.$ac_objext | |
17030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17031 | (eval $ac_compile) 2>conftest.er1 | |
17032 | ac_status=$? | |
17033 | grep -v '^ *+' conftest.er1 >conftest.err | |
17034 | rm -f conftest.er1 | |
17035 | cat conftest.err >&5 | |
17036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17037 | (exit $ac_status); } && | |
17038 | { ac_try='test -z "$ac_c_werror_flag" | |
17039 | || test ! -s conftest.err' | |
17040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17041 | (eval $ac_try) 2>&5 | |
17042 | ac_status=$? | |
17043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17044 | (exit $ac_status); }; } && | |
17045 | { ac_try='test -s conftest.$ac_objext' | |
17046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17047 | (eval $ac_try) 2>&5 | |
17048 | ac_status=$? | |
17049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17050 | (exit $ac_status); }; }; then | |
97bf5e38 | 17051 | bfd_cv_decl_needed_realloc=no |
3862412b | 17052 | else |
bec39cab AC |
17053 | echo "$as_me: failed program was:" >&5 |
17054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17055 | ||
17056 | bfd_cv_decl_needed_realloc=yes | |
3862412b | 17057 | fi |
bec39cab | 17058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
17059 | fi |
17060 | ||
bec39cab AC |
17061 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_realloc" >&5 |
17062 | echo "${ECHO_T}$bfd_cv_decl_needed_realloc" >&6 | |
97bf5e38 | 17063 | if test $bfd_cv_decl_needed_realloc = yes; then |
bec39cab AC |
17064 | |
17065 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17066 | #define NEED_DECLARATION_REALLOC 1 |
bec39cab | 17067 | _ACEOF |
3862412b | 17068 | |
97bf5e38 | 17069 | fi |
3862412b | 17070 | |
bec39cab AC |
17071 | echo "$as_me:$LINENO: checking whether free must be declared" >&5 |
17072 | echo $ECHO_N "checking whether free must be declared... $ECHO_C" >&6 | |
17073 | if test "${bfd_cv_decl_needed_free+set}" = set; then | |
17074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
451928c5 | 17075 | else |
bec39cab AC |
17076 | cat >conftest.$ac_ext <<_ACEOF |
17077 | /* confdefs.h. */ | |
17078 | _ACEOF | |
17079 | cat confdefs.h >>conftest.$ac_ext | |
17080 | cat >>conftest.$ac_ext <<_ACEOF | |
17081 | /* end confdefs.h. */ | |
e17bf198 | 17082 | |
97bf5e38 MK |
17083 | #include <stdio.h> |
17084 | #ifdef HAVE_STRING_H | |
17085 | #include <string.h> | |
17086 | #else | |
17087 | #ifdef HAVE_STRINGS_H | |
17088 | #include <strings.h> | |
17089 | #endif | |
17090 | #endif | |
17091 | #ifdef HAVE_STDLIB_H | |
17092 | #include <stdlib.h> | |
17093 | #endif | |
17094 | #ifdef HAVE_UNISTD_H | |
17095 | #include <unistd.h> | |
17096 | #endif | |
bec39cab AC |
17097 | int |
17098 | main () | |
17099 | { | |
97bf5e38 | 17100 | char *(*pfn) = (char *(*)) free |
bec39cab AC |
17101 | ; |
17102 | return 0; | |
17103 | } | |
17104 | _ACEOF | |
17105 | rm -f conftest.$ac_objext | |
17106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17107 | (eval $ac_compile) 2>conftest.er1 | |
17108 | ac_status=$? | |
17109 | grep -v '^ *+' conftest.er1 >conftest.err | |
17110 | rm -f conftest.er1 | |
17111 | cat conftest.err >&5 | |
17112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17113 | (exit $ac_status); } && | |
17114 | { ac_try='test -z "$ac_c_werror_flag" | |
17115 | || test ! -s conftest.err' | |
17116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17117 | (eval $ac_try) 2>&5 | |
17118 | ac_status=$? | |
17119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17120 | (exit $ac_status); }; } && | |
17121 | { ac_try='test -s conftest.$ac_objext' | |
17122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17123 | (eval $ac_try) 2>&5 | |
17124 | ac_status=$? | |
17125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17126 | (exit $ac_status); }; }; then | |
97bf5e38 | 17127 | bfd_cv_decl_needed_free=no |
451928c5 | 17128 | else |
bec39cab AC |
17129 | echo "$as_me: failed program was:" >&5 |
17130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17131 | ||
17132 | bfd_cv_decl_needed_free=yes | |
451928c5 | 17133 | fi |
bec39cab | 17134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
17135 | fi |
17136 | ||
bec39cab AC |
17137 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_free" >&5 |
17138 | echo "${ECHO_T}$bfd_cv_decl_needed_free" >&6 | |
97bf5e38 | 17139 | if test $bfd_cv_decl_needed_free = yes; then |
bec39cab AC |
17140 | |
17141 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17142 | #define NEED_DECLARATION_FREE 1 |
bec39cab | 17143 | _ACEOF |
451928c5 | 17144 | |
97bf5e38 | 17145 | fi |
451928c5 | 17146 | |
bec39cab AC |
17147 | echo "$as_me:$LINENO: checking whether strerror must be declared" >&5 |
17148 | echo $ECHO_N "checking whether strerror must be declared... $ECHO_C" >&6 | |
17149 | if test "${bfd_cv_decl_needed_strerror+set}" = set; then | |
17150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
451928c5 | 17151 | else |
bec39cab AC |
17152 | cat >conftest.$ac_ext <<_ACEOF |
17153 | /* confdefs.h. */ | |
17154 | _ACEOF | |
17155 | cat confdefs.h >>conftest.$ac_ext | |
17156 | cat >>conftest.$ac_ext <<_ACEOF | |
17157 | /* end confdefs.h. */ | |
e17bf198 | 17158 | |
97bf5e38 MK |
17159 | #include <stdio.h> |
17160 | #ifdef HAVE_STRING_H | |
17161 | #include <string.h> | |
17162 | #else | |
17163 | #ifdef HAVE_STRINGS_H | |
17164 | #include <strings.h> | |
17165 | #endif | |
17166 | #endif | |
17167 | #ifdef HAVE_STDLIB_H | |
17168 | #include <stdlib.h> | |
17169 | #endif | |
17170 | #ifdef HAVE_UNISTD_H | |
17171 | #include <unistd.h> | |
17172 | #endif | |
bec39cab AC |
17173 | int |
17174 | main () | |
17175 | { | |
97bf5e38 | 17176 | char *(*pfn) = (char *(*)) strerror |
bec39cab AC |
17177 | ; |
17178 | return 0; | |
17179 | } | |
17180 | _ACEOF | |
17181 | rm -f conftest.$ac_objext | |
17182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17183 | (eval $ac_compile) 2>conftest.er1 | |
17184 | ac_status=$? | |
17185 | grep -v '^ *+' conftest.er1 >conftest.err | |
17186 | rm -f conftest.er1 | |
17187 | cat conftest.err >&5 | |
17188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17189 | (exit $ac_status); } && | |
17190 | { ac_try='test -z "$ac_c_werror_flag" | |
17191 | || test ! -s conftest.err' | |
17192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17193 | (eval $ac_try) 2>&5 | |
17194 | ac_status=$? | |
17195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17196 | (exit $ac_status); }; } && | |
17197 | { ac_try='test -s conftest.$ac_objext' | |
17198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17199 | (eval $ac_try) 2>&5 | |
17200 | ac_status=$? | |
17201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17202 | (exit $ac_status); }; }; then | |
97bf5e38 | 17203 | bfd_cv_decl_needed_strerror=no |
451928c5 | 17204 | else |
bec39cab AC |
17205 | echo "$as_me: failed program was:" >&5 |
17206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17207 | ||
17208 | bfd_cv_decl_needed_strerror=yes | |
451928c5 | 17209 | fi |
bec39cab | 17210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
17211 | fi |
17212 | ||
bec39cab AC |
17213 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strerror" >&5 |
17214 | echo "${ECHO_T}$bfd_cv_decl_needed_strerror" >&6 | |
97bf5e38 | 17215 | if test $bfd_cv_decl_needed_strerror = yes; then |
bec39cab AC |
17216 | |
17217 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17218 | #define NEED_DECLARATION_STRERROR 1 |
bec39cab | 17219 | _ACEOF |
451928c5 | 17220 | |
97bf5e38 | 17221 | fi |
451928c5 | 17222 | |
bec39cab AC |
17223 | echo "$as_me:$LINENO: checking whether strdup must be declared" >&5 |
17224 | echo $ECHO_N "checking whether strdup must be declared... $ECHO_C" >&6 | |
17225 | if test "${bfd_cv_decl_needed_strdup+set}" = set; then | |
17226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3862412b | 17227 | else |
bec39cab AC |
17228 | cat >conftest.$ac_ext <<_ACEOF |
17229 | /* confdefs.h. */ | |
17230 | _ACEOF | |
17231 | cat confdefs.h >>conftest.$ac_ext | |
17232 | cat >>conftest.$ac_ext <<_ACEOF | |
17233 | /* end confdefs.h. */ | |
e17bf198 | 17234 | |
97bf5e38 MK |
17235 | #include <stdio.h> |
17236 | #ifdef HAVE_STRING_H | |
17237 | #include <string.h> | |
17238 | #else | |
17239 | #ifdef HAVE_STRINGS_H | |
17240 | #include <strings.h> | |
17241 | #endif | |
17242 | #endif | |
17243 | #ifdef HAVE_STDLIB_H | |
17244 | #include <stdlib.h> | |
17245 | #endif | |
17246 | #ifdef HAVE_UNISTD_H | |
17247 | #include <unistd.h> | |
17248 | #endif | |
bec39cab AC |
17249 | int |
17250 | main () | |
17251 | { | |
97bf5e38 | 17252 | char *(*pfn) = (char *(*)) strdup |
bec39cab AC |
17253 | ; |
17254 | return 0; | |
17255 | } | |
17256 | _ACEOF | |
17257 | rm -f conftest.$ac_objext | |
17258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17259 | (eval $ac_compile) 2>conftest.er1 | |
17260 | ac_status=$? | |
17261 | grep -v '^ *+' conftest.er1 >conftest.err | |
17262 | rm -f conftest.er1 | |
17263 | cat conftest.err >&5 | |
17264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17265 | (exit $ac_status); } && | |
17266 | { ac_try='test -z "$ac_c_werror_flag" | |
17267 | || test ! -s conftest.err' | |
17268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17269 | (eval $ac_try) 2>&5 | |
17270 | ac_status=$? | |
17271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17272 | (exit $ac_status); }; } && | |
17273 | { ac_try='test -s conftest.$ac_objext' | |
17274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17275 | (eval $ac_try) 2>&5 | |
17276 | ac_status=$? | |
17277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17278 | (exit $ac_status); }; }; then | |
97bf5e38 | 17279 | bfd_cv_decl_needed_strdup=no |
3862412b | 17280 | else |
bec39cab AC |
17281 | echo "$as_me: failed program was:" >&5 |
17282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17283 | ||
17284 | bfd_cv_decl_needed_strdup=yes | |
3862412b | 17285 | fi |
bec39cab | 17286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
17287 | fi |
17288 | ||
bec39cab AC |
17289 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strdup" >&5 |
17290 | echo "${ECHO_T}$bfd_cv_decl_needed_strdup" >&6 | |
97bf5e38 | 17291 | if test $bfd_cv_decl_needed_strdup = yes; then |
bec39cab AC |
17292 | |
17293 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17294 | #define NEED_DECLARATION_STRDUP 1 |
bec39cab | 17295 | _ACEOF |
3862412b | 17296 | |
97bf5e38 | 17297 | fi |
3862412b | 17298 | |
bec39cab AC |
17299 | echo "$as_me:$LINENO: checking whether strstr must be declared" >&5 |
17300 | echo $ECHO_N "checking whether strstr must be declared... $ECHO_C" >&6 | |
17301 | if test "${bfd_cv_decl_needed_strstr+set}" = set; then | |
17302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3862412b | 17303 | else |
bec39cab AC |
17304 | cat >conftest.$ac_ext <<_ACEOF |
17305 | /* confdefs.h. */ | |
17306 | _ACEOF | |
17307 | cat confdefs.h >>conftest.$ac_ext | |
17308 | cat >>conftest.$ac_ext <<_ACEOF | |
17309 | /* end confdefs.h. */ | |
e17bf198 | 17310 | |
97bf5e38 MK |
17311 | #include <stdio.h> |
17312 | #ifdef HAVE_STRING_H | |
17313 | #include <string.h> | |
17314 | #else | |
17315 | #ifdef HAVE_STRINGS_H | |
17316 | #include <strings.h> | |
17317 | #endif | |
17318 | #endif | |
17319 | #ifdef HAVE_STDLIB_H | |
17320 | #include <stdlib.h> | |
17321 | #endif | |
17322 | #ifdef HAVE_UNISTD_H | |
17323 | #include <unistd.h> | |
17324 | #endif | |
bec39cab AC |
17325 | int |
17326 | main () | |
17327 | { | |
97bf5e38 | 17328 | char *(*pfn) = (char *(*)) strstr |
bec39cab AC |
17329 | ; |
17330 | return 0; | |
17331 | } | |
17332 | _ACEOF | |
17333 | rm -f conftest.$ac_objext | |
17334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17335 | (eval $ac_compile) 2>conftest.er1 | |
17336 | ac_status=$? | |
17337 | grep -v '^ *+' conftest.er1 >conftest.err | |
17338 | rm -f conftest.er1 | |
17339 | cat conftest.err >&5 | |
17340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17341 | (exit $ac_status); } && | |
17342 | { ac_try='test -z "$ac_c_werror_flag" | |
17343 | || test ! -s conftest.err' | |
17344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17345 | (eval $ac_try) 2>&5 | |
17346 | ac_status=$? | |
17347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17348 | (exit $ac_status); }; } && | |
17349 | { ac_try='test -s conftest.$ac_objext' | |
17350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17351 | (eval $ac_try) 2>&5 | |
17352 | ac_status=$? | |
17353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17354 | (exit $ac_status); }; }; then | |
97bf5e38 | 17355 | bfd_cv_decl_needed_strstr=no |
3862412b | 17356 | else |
bec39cab AC |
17357 | echo "$as_me: failed program was:" >&5 |
17358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17359 | ||
17360 | bfd_cv_decl_needed_strstr=yes | |
3862412b | 17361 | fi |
bec39cab | 17362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
17363 | fi |
17364 | ||
bec39cab AC |
17365 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_strstr" >&5 |
17366 | echo "${ECHO_T}$bfd_cv_decl_needed_strstr" >&6 | |
97bf5e38 | 17367 | if test $bfd_cv_decl_needed_strstr = yes; then |
bec39cab AC |
17368 | |
17369 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17370 | #define NEED_DECLARATION_STRSTR 1 |
bec39cab | 17371 | _ACEOF |
3862412b | 17372 | |
97bf5e38 | 17373 | fi |
3862412b | 17374 | |
bec39cab AC |
17375 | echo "$as_me:$LINENO: checking whether canonicalize_file_name must be declared" >&5 |
17376 | echo $ECHO_N "checking whether canonicalize_file_name must be declared... $ECHO_C" >&6 | |
17377 | if test "${bfd_cv_decl_needed_canonicalize_file_name+set}" = set; then | |
17378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 17379 | else |
bec39cab AC |
17380 | cat >conftest.$ac_ext <<_ACEOF |
17381 | /* confdefs.h. */ | |
17382 | _ACEOF | |
17383 | cat confdefs.h >>conftest.$ac_ext | |
17384 | cat >>conftest.$ac_ext <<_ACEOF | |
17385 | /* end confdefs.h. */ | |
596c9d4b | 17386 | |
97bf5e38 MK |
17387 | #include <stdio.h> |
17388 | #ifdef HAVE_STRING_H | |
17389 | #include <string.h> | |
17390 | #else | |
17391 | #ifdef HAVE_STRINGS_H | |
17392 | #include <strings.h> | |
17393 | #endif | |
17394 | #endif | |
17395 | #ifdef HAVE_STDLIB_H | |
17396 | #include <stdlib.h> | |
17397 | #endif | |
17398 | #ifdef HAVE_UNISTD_H | |
17399 | #include <unistd.h> | |
17400 | #endif | |
bec39cab AC |
17401 | int |
17402 | main () | |
17403 | { | |
97bf5e38 | 17404 | char *(*pfn) = (char *(*)) canonicalize_file_name |
bec39cab AC |
17405 | ; |
17406 | return 0; | |
17407 | } | |
17408 | _ACEOF | |
17409 | rm -f conftest.$ac_objext | |
17410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17411 | (eval $ac_compile) 2>conftest.er1 | |
17412 | ac_status=$? | |
17413 | grep -v '^ *+' conftest.er1 >conftest.err | |
17414 | rm -f conftest.er1 | |
17415 | cat conftest.err >&5 | |
17416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17417 | (exit $ac_status); } && | |
17418 | { ac_try='test -z "$ac_c_werror_flag" | |
17419 | || test ! -s conftest.err' | |
17420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17421 | (eval $ac_try) 2>&5 | |
17422 | ac_status=$? | |
17423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17424 | (exit $ac_status); }; } && | |
17425 | { ac_try='test -s conftest.$ac_objext' | |
17426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17427 | (eval $ac_try) 2>&5 | |
17428 | ac_status=$? | |
17429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17430 | (exit $ac_status); }; }; then | |
97bf5e38 | 17431 | bfd_cv_decl_needed_canonicalize_file_name=no |
596c9d4b | 17432 | else |
bec39cab AC |
17433 | echo "$as_me: failed program was:" >&5 |
17434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17435 | ||
17436 | bfd_cv_decl_needed_canonicalize_file_name=yes | |
596c9d4b | 17437 | fi |
bec39cab | 17438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
17439 | fi |
17440 | ||
bec39cab AC |
17441 | echo "$as_me:$LINENO: result: $bfd_cv_decl_needed_canonicalize_file_name" >&5 |
17442 | echo "${ECHO_T}$bfd_cv_decl_needed_canonicalize_file_name" >&6 | |
97bf5e38 | 17443 | if test $bfd_cv_decl_needed_canonicalize_file_name = yes; then |
bec39cab AC |
17444 | |
17445 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17446 | #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 |
bec39cab | 17447 | _ACEOF |
596c9d4b | 17448 | |
97bf5e38 | 17449 | fi |
596c9d4b | 17450 | |
97bf5e38 | 17451 | |
bec39cab AC |
17452 | # The following save_state_t checkery is only necessary for HPUX |
17453 | # versions earlier than 10.20. When those fade from memory, this | |
97bf5e38 MK |
17454 | # could be expunged. --jsm 1999-03-22 |
17455 | ||
bec39cab AC |
17456 | echo "$as_me:$LINENO: checking for HPUX save_state structure" >&5 |
17457 | echo $ECHO_N "checking for HPUX save_state structure... $ECHO_C" >&6 | |
17458 | cat >conftest.$ac_ext <<_ACEOF | |
17459 | /* confdefs.h. */ | |
17460 | _ACEOF | |
17461 | cat confdefs.h >>conftest.$ac_ext | |
17462 | cat >>conftest.$ac_ext <<_ACEOF | |
17463 | /* end confdefs.h. */ | |
97bf5e38 | 17464 | #include <machine/save_state.h> |
bec39cab AC |
17465 | |
17466 | _ACEOF | |
97bf5e38 | 17467 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 17468 | $EGREP "save_state_t" >/dev/null 2>&1; then |
97bf5e38 MK |
17469 | gdb_cv_hpux_savestate=yes |
17470 | else | |
97bf5e38 MK |
17471 | gdb_cv_hpux_savestate=no |
17472 | fi | |
17473 | rm -f conftest* | |
17474 | ||
bec39cab AC |
17475 | cat >conftest.$ac_ext <<_ACEOF |
17476 | /* confdefs.h. */ | |
17477 | _ACEOF | |
17478 | cat confdefs.h >>conftest.$ac_ext | |
17479 | cat >>conftest.$ac_ext <<_ACEOF | |
17480 | /* end confdefs.h. */ | |
97bf5e38 | 17481 | #include <machine/save_state.h> |
bec39cab AC |
17482 | |
17483 | _ACEOF | |
97bf5e38 | 17484 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 17485 | $EGREP "ss_wide" >/dev/null 2>&1; then |
97bf5e38 MK |
17486 | gdb_cv_hpux_sswide=yes |
17487 | else | |
97bf5e38 MK |
17488 | gdb_cv_hpux_sswide=no |
17489 | fi | |
17490 | rm -f conftest* | |
17491 | ||
17492 | if test $gdb_cv_hpux_savestate = yes | |
17493 | then | |
bec39cab | 17494 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17495 | #define HAVE_STRUCT_SAVE_STATE_T 1 |
bec39cab | 17496 | _ACEOF |
97bf5e38 MK |
17497 | |
17498 | fi | |
17499 | if test $gdb_cv_hpux_sswide = yes | |
17500 | then | |
bec39cab | 17501 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17502 | #define HAVE_STRUCT_MEMBER_SS_WIDE 1 |
bec39cab | 17503 | _ACEOF |
97bf5e38 MK |
17504 | |
17505 | fi | |
bec39cab AC |
17506 | echo "$as_me:$LINENO: result: $gdb_cv_hpux_sswide" >&5 |
17507 | echo "${ECHO_T}$gdb_cv_hpux_sswide" >&6 | |
97bf5e38 MK |
17508 | |
17509 | ||
17510 | # If we are configured native on GNU/Linux, work around problems with | |
17511 | # sys/procfs.h | |
17512 | # Also detect which type of /proc is in use, such as for Unixware or Solaris. | |
17513 | ||
17514 | if test "${target}" = "${host}"; then | |
17515 | case "${host}" in | |
17516 | i[3456]86-*-linux*) | |
bec39cab | 17517 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17518 | #define START_INFERIOR_TRAPS_EXPECTED 2 |
bec39cab | 17519 | _ACEOF |
97bf5e38 | 17520 | |
bec39cab | 17521 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17522 | #define sys_quotactl 1 |
bec39cab | 17523 | _ACEOF |
97bf5e38 MK |
17524 | |
17525 | ;; | |
17526 | ia64-*-aix*) | |
bec39cab | 17527 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17528 | #define NEW_PROC_API 1 |
bec39cab | 17529 | _ACEOF |
97bf5e38 MK |
17530 | |
17531 | ;; | |
17532 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) | |
bec39cab | 17533 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17534 | #define NEW_PROC_API 1 |
bec39cab | 17535 | _ACEOF |
97bf5e38 MK |
17536 | |
17537 | ;; | |
0bbc026e | 17538 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]) |
bec39cab | 17539 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 17540 | #define NEW_PROC_API 1 |
bec39cab | 17541 | _ACEOF |
c960c18f AC |
17542 | |
17543 | ;; | |
17544 | mips-sgi-irix5*) | |
17545 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. | |
bec39cab | 17546 | cat >>confdefs.h <<\_ACEOF |
c960c18f | 17547 | #define _KMEMUSER 1 |
bec39cab | 17548 | _ACEOF |
97bf5e38 MK |
17549 | |
17550 | ;; | |
17551 | esac | |
17552 | fi | |
17553 | ||
17554 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
bec39cab AC |
17555 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
17556 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
17557 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then | |
17558 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17559 | else | |
17560 | cat >conftest.$ac_ext <<_ACEOF | |
17561 | /* confdefs.h. */ | |
17562 | _ACEOF | |
17563 | cat confdefs.h >>conftest.$ac_ext | |
17564 | cat >>conftest.$ac_ext <<_ACEOF | |
17565 | /* end confdefs.h. */ | |
596c9d4b KB |
17566 | |
17567 | #define _SYSCALL32 | |
17568 | #include <sys/procfs.h> | |
bec39cab AC |
17569 | int |
17570 | main () | |
17571 | { | |
97bf5e38 | 17572 | pstatus_t avar |
bec39cab AC |
17573 | ; |
17574 | return 0; | |
17575 | } | |
17576 | _ACEOF | |
17577 | rm -f conftest.$ac_objext | |
17578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17579 | (eval $ac_compile) 2>conftest.er1 | |
17580 | ac_status=$? | |
17581 | grep -v '^ *+' conftest.er1 >conftest.err | |
17582 | rm -f conftest.er1 | |
17583 | cat conftest.err >&5 | |
17584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17585 | (exit $ac_status); } && | |
17586 | { ac_try='test -z "$ac_c_werror_flag" | |
17587 | || test ! -s conftest.err' | |
17588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17589 | (eval $ac_try) 2>&5 | |
17590 | ac_status=$? | |
17591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17592 | (exit $ac_status); }; } && | |
17593 | { ac_try='test -s conftest.$ac_objext' | |
17594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17595 | (eval $ac_try) 2>&5 | |
17596 | ac_status=$? | |
17597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17598 | (exit $ac_status); }; }; then | |
97bf5e38 | 17599 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
596c9d4b | 17600 | else |
bec39cab AC |
17601 | echo "$as_me: failed program was:" >&5 |
17602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17603 | ||
17604 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
17605 | ||
596c9d4b | 17606 | fi |
bec39cab | 17607 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
17608 | fi |
17609 | ||
97bf5e38 | 17610 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
bec39cab AC |
17611 | |
17612 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17613 | #define HAVE_PSTATUS_T 1 |
bec39cab | 17614 | _ACEOF |
596c9d4b KB |
17615 | |
17616 | fi | |
bec39cab AC |
17617 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
17618 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
596c9d4b | 17619 | |
bec39cab AC |
17620 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
17621 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 | |
17622 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then | |
17623 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 17624 | else |
bec39cab AC |
17625 | cat >conftest.$ac_ext <<_ACEOF |
17626 | /* confdefs.h. */ | |
17627 | _ACEOF | |
17628 | cat confdefs.h >>conftest.$ac_ext | |
17629 | cat >>conftest.$ac_ext <<_ACEOF | |
17630 | /* end confdefs.h. */ | |
596c9d4b KB |
17631 | |
17632 | #define _SYSCALL32 | |
17633 | #include <sys/procfs.h> | |
bec39cab AC |
17634 | int |
17635 | main () | |
17636 | { | |
97bf5e38 | 17637 | prrun_t avar |
bec39cab AC |
17638 | ; |
17639 | return 0; | |
17640 | } | |
17641 | _ACEOF | |
17642 | rm -f conftest.$ac_objext | |
17643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17644 | (eval $ac_compile) 2>conftest.er1 | |
17645 | ac_status=$? | |
17646 | grep -v '^ *+' conftest.er1 >conftest.err | |
17647 | rm -f conftest.er1 | |
17648 | cat conftest.err >&5 | |
17649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17650 | (exit $ac_status); } && | |
17651 | { ac_try='test -z "$ac_c_werror_flag" | |
17652 | || test ! -s conftest.err' | |
17653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17654 | (eval $ac_try) 2>&5 | |
17655 | ac_status=$? | |
17656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17657 | (exit $ac_status); }; } && | |
17658 | { ac_try='test -s conftest.$ac_objext' | |
17659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17660 | (eval $ac_try) 2>&5 | |
17661 | ac_status=$? | |
17662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17663 | (exit $ac_status); }; }; then | |
97bf5e38 | 17664 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
596c9d4b | 17665 | else |
bec39cab AC |
17666 | echo "$as_me: failed program was:" >&5 |
17667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17668 | ||
17669 | bfd_cv_have_sys_procfs_type_prrun_t=no | |
17670 | ||
596c9d4b | 17671 | fi |
bec39cab | 17672 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
17673 | fi |
17674 | ||
97bf5e38 | 17675 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
bec39cab AC |
17676 | |
17677 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17678 | #define HAVE_PRRUN_T 1 |
bec39cab | 17679 | _ACEOF |
596c9d4b KB |
17680 | |
17681 | fi | |
bec39cab AC |
17682 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
17683 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 | |
596c9d4b | 17684 | |
bec39cab AC |
17685 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
17686 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 | |
17687 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then | |
17688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 17689 | else |
bec39cab AC |
17690 | cat >conftest.$ac_ext <<_ACEOF |
17691 | /* confdefs.h. */ | |
17692 | _ACEOF | |
17693 | cat confdefs.h >>conftest.$ac_ext | |
17694 | cat >>conftest.$ac_ext <<_ACEOF | |
17695 | /* end confdefs.h. */ | |
596c9d4b KB |
17696 | |
17697 | #define _SYSCALL32 | |
17698 | #include <sys/procfs.h> | |
bec39cab AC |
17699 | int |
17700 | main () | |
17701 | { | |
97bf5e38 | 17702 | gregset_t avar |
bec39cab AC |
17703 | ; |
17704 | return 0; | |
17705 | } | |
17706 | _ACEOF | |
17707 | rm -f conftest.$ac_objext | |
17708 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17709 | (eval $ac_compile) 2>conftest.er1 | |
17710 | ac_status=$? | |
17711 | grep -v '^ *+' conftest.er1 >conftest.err | |
17712 | rm -f conftest.er1 | |
17713 | cat conftest.err >&5 | |
17714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17715 | (exit $ac_status); } && | |
17716 | { ac_try='test -z "$ac_c_werror_flag" | |
17717 | || test ! -s conftest.err' | |
17718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17719 | (eval $ac_try) 2>&5 | |
17720 | ac_status=$? | |
17721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17722 | (exit $ac_status); }; } && | |
17723 | { ac_try='test -s conftest.$ac_objext' | |
17724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17725 | (eval $ac_try) 2>&5 | |
17726 | ac_status=$? | |
17727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17728 | (exit $ac_status); }; }; then | |
97bf5e38 | 17729 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
596c9d4b | 17730 | else |
bec39cab AC |
17731 | echo "$as_me: failed program was:" >&5 |
17732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17733 | ||
17734 | bfd_cv_have_sys_procfs_type_gregset_t=no | |
17735 | ||
596c9d4b | 17736 | fi |
bec39cab | 17737 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
17738 | fi |
17739 | ||
97bf5e38 | 17740 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
bec39cab AC |
17741 | |
17742 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17743 | #define HAVE_GREGSET_T 1 |
bec39cab | 17744 | _ACEOF |
596c9d4b KB |
17745 | |
17746 | fi | |
bec39cab AC |
17747 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
17748 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 | |
451928c5 | 17749 | |
bec39cab AC |
17750 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
17751 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
17752 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then | |
17753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d84dd0c5 | 17754 | else |
bec39cab AC |
17755 | cat >conftest.$ac_ext <<_ACEOF |
17756 | /* confdefs.h. */ | |
17757 | _ACEOF | |
17758 | cat confdefs.h >>conftest.$ac_ext | |
17759 | cat >>conftest.$ac_ext <<_ACEOF | |
17760 | /* end confdefs.h. */ | |
97bf5e38 MK |
17761 | |
17762 | #define _SYSCALL32 | |
d84dd0c5 | 17763 | #include <sys/procfs.h> |
bec39cab AC |
17764 | int |
17765 | main () | |
17766 | { | |
97bf5e38 | 17767 | fpregset_t avar |
bec39cab AC |
17768 | ; |
17769 | return 0; | |
17770 | } | |
17771 | _ACEOF | |
17772 | rm -f conftest.$ac_objext | |
17773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17774 | (eval $ac_compile) 2>conftest.er1 | |
17775 | ac_status=$? | |
17776 | grep -v '^ *+' conftest.er1 >conftest.err | |
17777 | rm -f conftest.er1 | |
17778 | cat conftest.err >&5 | |
17779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17780 | (exit $ac_status); } && | |
17781 | { ac_try='test -z "$ac_c_werror_flag" | |
17782 | || test ! -s conftest.err' | |
17783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17784 | (eval $ac_try) 2>&5 | |
17785 | ac_status=$? | |
17786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17787 | (exit $ac_status); }; } && | |
17788 | { ac_try='test -s conftest.$ac_objext' | |
17789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17790 | (eval $ac_try) 2>&5 | |
17791 | ac_status=$? | |
17792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17793 | (exit $ac_status); }; }; then | |
97bf5e38 | 17794 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
d84dd0c5 | 17795 | else |
bec39cab AC |
17796 | echo "$as_me: failed program was:" >&5 |
17797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17798 | ||
17799 | bfd_cv_have_sys_procfs_type_fpregset_t=no | |
17800 | ||
d84dd0c5 | 17801 | fi |
bec39cab | 17802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d84dd0c5 MK |
17803 | fi |
17804 | ||
97bf5e38 | 17805 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
bec39cab AC |
17806 | |
17807 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17808 | #define HAVE_FPREGSET_T 1 |
bec39cab | 17809 | _ACEOF |
d84dd0c5 | 17810 | |
97bf5e38 | 17811 | fi |
bec39cab AC |
17812 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
17813 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 | |
d84dd0c5 | 17814 | |
bec39cab AC |
17815 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
17816 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 | |
17817 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then | |
17818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 17819 | else |
bec39cab AC |
17820 | cat >conftest.$ac_ext <<_ACEOF |
17821 | /* confdefs.h. */ | |
17822 | _ACEOF | |
17823 | cat confdefs.h >>conftest.$ac_ext | |
17824 | cat >>conftest.$ac_ext <<_ACEOF | |
17825 | /* end confdefs.h. */ | |
c906108c | 17826 | |
97bf5e38 MK |
17827 | #define _SYSCALL32 |
17828 | #include <sys/procfs.h> | |
bec39cab AC |
17829 | int |
17830 | main () | |
17831 | { | |
97bf5e38 | 17832 | prgregset_t avar |
bec39cab AC |
17833 | ; |
17834 | return 0; | |
17835 | } | |
17836 | _ACEOF | |
17837 | rm -f conftest.$ac_objext | |
17838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17839 | (eval $ac_compile) 2>conftest.er1 | |
17840 | ac_status=$? | |
17841 | grep -v '^ *+' conftest.er1 >conftest.err | |
17842 | rm -f conftest.er1 | |
17843 | cat conftest.err >&5 | |
17844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17845 | (exit $ac_status); } && | |
17846 | { ac_try='test -z "$ac_c_werror_flag" | |
17847 | || test ! -s conftest.err' | |
17848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17849 | (eval $ac_try) 2>&5 | |
17850 | ac_status=$? | |
17851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17852 | (exit $ac_status); }; } && | |
17853 | { ac_try='test -s conftest.$ac_objext' | |
17854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17855 | (eval $ac_try) 2>&5 | |
17856 | ac_status=$? | |
17857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17858 | (exit $ac_status); }; }; then | |
97bf5e38 | 17859 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
c906108c | 17860 | else |
bec39cab AC |
17861 | echo "$as_me: failed program was:" >&5 |
17862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17863 | ||
17864 | bfd_cv_have_sys_procfs_type_prgregset_t=no | |
17865 | ||
c906108c | 17866 | fi |
bec39cab | 17867 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
17868 | fi |
17869 | ||
97bf5e38 | 17870 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
bec39cab AC |
17871 | |
17872 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17873 | #define HAVE_PRGREGSET_T 1 |
bec39cab | 17874 | _ACEOF |
c906108c | 17875 | |
97bf5e38 | 17876 | fi |
bec39cab AC |
17877 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
17878 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 | |
c906108c | 17879 | |
bec39cab AC |
17880 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
17881 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
17882 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then | |
17883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 17884 | else |
bec39cab AC |
17885 | cat >conftest.$ac_ext <<_ACEOF |
17886 | /* confdefs.h. */ | |
17887 | _ACEOF | |
17888 | cat confdefs.h >>conftest.$ac_ext | |
17889 | cat >>conftest.$ac_ext <<_ACEOF | |
17890 | /* end confdefs.h. */ | |
97bf5e38 MK |
17891 | |
17892 | #define _SYSCALL32 | |
17893 | #include <sys/procfs.h> | |
bec39cab AC |
17894 | int |
17895 | main () | |
17896 | { | |
97bf5e38 | 17897 | prfpregset_t avar |
bec39cab AC |
17898 | ; |
17899 | return 0; | |
17900 | } | |
17901 | _ACEOF | |
17902 | rm -f conftest.$ac_objext | |
17903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17904 | (eval $ac_compile) 2>conftest.er1 | |
17905 | ac_status=$? | |
17906 | grep -v '^ *+' conftest.er1 >conftest.err | |
17907 | rm -f conftest.er1 | |
17908 | cat conftest.err >&5 | |
17909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17910 | (exit $ac_status); } && | |
17911 | { ac_try='test -z "$ac_c_werror_flag" | |
17912 | || test ! -s conftest.err' | |
17913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17914 | (eval $ac_try) 2>&5 | |
17915 | ac_status=$? | |
17916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17917 | (exit $ac_status); }; } && | |
17918 | { ac_try='test -s conftest.$ac_objext' | |
17919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17920 | (eval $ac_try) 2>&5 | |
17921 | ac_status=$? | |
17922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17923 | (exit $ac_status); }; }; then | |
97bf5e38 | 17924 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
d45fe813 | 17925 | else |
bec39cab AC |
17926 | echo "$as_me: failed program was:" >&5 |
17927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17928 | ||
17929 | bfd_cv_have_sys_procfs_type_prfpregset_t=no | |
17930 | ||
d45fe813 | 17931 | fi |
bec39cab | 17932 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
17933 | fi |
17934 | ||
97bf5e38 | 17935 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
17936 | |
17937 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 17938 | #define HAVE_PRFPREGSET_T 1 |
bec39cab | 17939 | _ACEOF |
d45fe813 | 17940 | |
97bf5e38 | 17941 | fi |
bec39cab AC |
17942 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
17943 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 | |
d45fe813 | 17944 | |
bec39cab AC |
17945 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
17946 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
17947 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then | |
17948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 17949 | else |
bec39cab AC |
17950 | cat >conftest.$ac_ext <<_ACEOF |
17951 | /* confdefs.h. */ | |
17952 | _ACEOF | |
17953 | cat confdefs.h >>conftest.$ac_ext | |
17954 | cat >>conftest.$ac_ext <<_ACEOF | |
17955 | /* end confdefs.h. */ | |
97bf5e38 MK |
17956 | |
17957 | #define _SYSCALL32 | |
17958 | #include <sys/procfs.h> | |
bec39cab AC |
17959 | int |
17960 | main () | |
17961 | { | |
97bf5e38 | 17962 | prgregset32_t avar |
bec39cab AC |
17963 | ; |
17964 | return 0; | |
17965 | } | |
17966 | _ACEOF | |
17967 | rm -f conftest.$ac_objext | |
17968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17969 | (eval $ac_compile) 2>conftest.er1 | |
17970 | ac_status=$? | |
17971 | grep -v '^ *+' conftest.er1 >conftest.err | |
17972 | rm -f conftest.er1 | |
17973 | cat conftest.err >&5 | |
17974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17975 | (exit $ac_status); } && | |
17976 | { ac_try='test -z "$ac_c_werror_flag" | |
17977 | || test ! -s conftest.err' | |
17978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17979 | (eval $ac_try) 2>&5 | |
17980 | ac_status=$? | |
17981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17982 | (exit $ac_status); }; } && | |
17983 | { ac_try='test -s conftest.$ac_objext' | |
17984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17985 | (eval $ac_try) 2>&5 | |
17986 | ac_status=$? | |
17987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17988 | (exit $ac_status); }; }; then | |
97bf5e38 | 17989 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
d45fe813 | 17990 | else |
bec39cab AC |
17991 | echo "$as_me: failed program was:" >&5 |
17992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17993 | ||
17994 | bfd_cv_have_sys_procfs_type_prgregset32_t=no | |
17995 | ||
d45fe813 | 17996 | fi |
bec39cab | 17997 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
17998 | fi |
17999 | ||
97bf5e38 | 18000 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
bec39cab AC |
18001 | |
18002 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18003 | #define HAVE_PRGREGSET32_T 1 |
bec39cab | 18004 | _ACEOF |
d45fe813 | 18005 | |
97bf5e38 | 18006 | fi |
bec39cab AC |
18007 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
18008 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 | |
d45fe813 | 18009 | |
bec39cab AC |
18010 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
18011 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
18012 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then | |
18013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 18014 | else |
bec39cab AC |
18015 | cat >conftest.$ac_ext <<_ACEOF |
18016 | /* confdefs.h. */ | |
18017 | _ACEOF | |
18018 | cat confdefs.h >>conftest.$ac_ext | |
18019 | cat >>conftest.$ac_ext <<_ACEOF | |
18020 | /* end confdefs.h. */ | |
97bf5e38 MK |
18021 | |
18022 | #define _SYSCALL32 | |
18023 | #include <sys/procfs.h> | |
bec39cab AC |
18024 | int |
18025 | main () | |
18026 | { | |
97bf5e38 | 18027 | prfpregset32_t avar |
bec39cab AC |
18028 | ; |
18029 | return 0; | |
18030 | } | |
18031 | _ACEOF | |
18032 | rm -f conftest.$ac_objext | |
18033 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18034 | (eval $ac_compile) 2>conftest.er1 | |
18035 | ac_status=$? | |
18036 | grep -v '^ *+' conftest.er1 >conftest.err | |
18037 | rm -f conftest.er1 | |
18038 | cat conftest.err >&5 | |
18039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18040 | (exit $ac_status); } && | |
18041 | { ac_try='test -z "$ac_c_werror_flag" | |
18042 | || test ! -s conftest.err' | |
18043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18044 | (eval $ac_try) 2>&5 | |
18045 | ac_status=$? | |
18046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18047 | (exit $ac_status); }; } && | |
18048 | { ac_try='test -s conftest.$ac_objext' | |
18049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18050 | (eval $ac_try) 2>&5 | |
18051 | ac_status=$? | |
18052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18053 | (exit $ac_status); }; }; then | |
97bf5e38 | 18054 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
d45fe813 | 18055 | else |
bec39cab AC |
18056 | echo "$as_me: failed program was:" >&5 |
18057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18058 | ||
18059 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no | |
18060 | ||
d45fe813 | 18061 | fi |
bec39cab | 18062 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
18063 | fi |
18064 | ||
97bf5e38 | 18065 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
bec39cab AC |
18066 | |
18067 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18068 | #define HAVE_PRFPREGSET32_T 1 |
bec39cab | 18069 | _ACEOF |
d45fe813 | 18070 | |
97bf5e38 | 18071 | fi |
bec39cab AC |
18072 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
18073 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 | |
d45fe813 | 18074 | |
bec39cab AC |
18075 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
18076 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 | |
18077 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then | |
18078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 18079 | else |
bec39cab AC |
18080 | cat >conftest.$ac_ext <<_ACEOF |
18081 | /* confdefs.h. */ | |
18082 | _ACEOF | |
18083 | cat confdefs.h >>conftest.$ac_ext | |
18084 | cat >>conftest.$ac_ext <<_ACEOF | |
18085 | /* end confdefs.h. */ | |
97bf5e38 | 18086 | |
d45fe813 | 18087 | #define _SYSCALL32 |
97bf5e38 | 18088 | #include <sys/procfs.h> |
bec39cab AC |
18089 | int |
18090 | main () | |
18091 | { | |
97bf5e38 | 18092 | lwpid_t avar |
bec39cab AC |
18093 | ; |
18094 | return 0; | |
18095 | } | |
18096 | _ACEOF | |
18097 | rm -f conftest.$ac_objext | |
18098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18099 | (eval $ac_compile) 2>conftest.er1 | |
18100 | ac_status=$? | |
18101 | grep -v '^ *+' conftest.er1 >conftest.err | |
18102 | rm -f conftest.er1 | |
18103 | cat conftest.err >&5 | |
18104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18105 | (exit $ac_status); } && | |
18106 | { ac_try='test -z "$ac_c_werror_flag" | |
18107 | || test ! -s conftest.err' | |
18108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18109 | (eval $ac_try) 2>&5 | |
18110 | ac_status=$? | |
18111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18112 | (exit $ac_status); }; } && | |
18113 | { ac_try='test -s conftest.$ac_objext' | |
18114 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18115 | (eval $ac_try) 2>&5 | |
18116 | ac_status=$? | |
18117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18118 | (exit $ac_status); }; }; then | |
97bf5e38 | 18119 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
d45fe813 | 18120 | else |
bec39cab AC |
18121 | echo "$as_me: failed program was:" >&5 |
18122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18123 | ||
18124 | bfd_cv_have_sys_procfs_type_lwpid_t=no | |
18125 | ||
d45fe813 | 18126 | fi |
bec39cab | 18127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
18128 | fi |
18129 | ||
97bf5e38 | 18130 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
bec39cab AC |
18131 | |
18132 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18133 | #define HAVE_LWPID_T 1 |
bec39cab | 18134 | _ACEOF |
d45fe813 | 18135 | |
97bf5e38 | 18136 | fi |
bec39cab AC |
18137 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
18138 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 | |
c906108c | 18139 | |
bec39cab AC |
18140 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
18141 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 | |
18142 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then | |
18143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18144 | else |
bec39cab AC |
18145 | cat >conftest.$ac_ext <<_ACEOF |
18146 | /* confdefs.h. */ | |
18147 | _ACEOF | |
18148 | cat confdefs.h >>conftest.$ac_ext | |
18149 | cat >>conftest.$ac_ext <<_ACEOF | |
18150 | /* end confdefs.h. */ | |
c906108c | 18151 | |
97bf5e38 MK |
18152 | #define _SYSCALL32 |
18153 | #include <sys/procfs.h> | |
bec39cab AC |
18154 | int |
18155 | main () | |
18156 | { | |
97bf5e38 | 18157 | psaddr_t avar |
bec39cab AC |
18158 | ; |
18159 | return 0; | |
18160 | } | |
18161 | _ACEOF | |
18162 | rm -f conftest.$ac_objext | |
18163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18164 | (eval $ac_compile) 2>conftest.er1 | |
18165 | ac_status=$? | |
18166 | grep -v '^ *+' conftest.er1 >conftest.err | |
18167 | rm -f conftest.er1 | |
18168 | cat conftest.err >&5 | |
18169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18170 | (exit $ac_status); } && | |
18171 | { ac_try='test -z "$ac_c_werror_flag" | |
18172 | || test ! -s conftest.err' | |
18173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18174 | (eval $ac_try) 2>&5 | |
18175 | ac_status=$? | |
18176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18177 | (exit $ac_status); }; } && | |
18178 | { ac_try='test -s conftest.$ac_objext' | |
18179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18180 | (eval $ac_try) 2>&5 | |
18181 | ac_status=$? | |
18182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18183 | (exit $ac_status); }; }; then | |
97bf5e38 | 18184 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
c906108c | 18185 | else |
bec39cab AC |
18186 | echo "$as_me: failed program was:" >&5 |
18187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18188 | ||
18189 | bfd_cv_have_sys_procfs_type_psaddr_t=no | |
18190 | ||
c906108c | 18191 | fi |
bec39cab | 18192 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18193 | fi |
18194 | ||
97bf5e38 | 18195 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
bec39cab AC |
18196 | |
18197 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18198 | #define HAVE_PSADDR_T 1 |
bec39cab | 18199 | _ACEOF |
c906108c | 18200 | |
97bf5e38 | 18201 | fi |
bec39cab AC |
18202 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
18203 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 | |
c906108c | 18204 | |
bec39cab AC |
18205 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
18206 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 | |
18207 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then | |
18208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18209 | else |
bec39cab AC |
18210 | cat >conftest.$ac_ext <<_ACEOF |
18211 | /* confdefs.h. */ | |
18212 | _ACEOF | |
18213 | cat confdefs.h >>conftest.$ac_ext | |
18214 | cat >>conftest.$ac_ext <<_ACEOF | |
18215 | /* end confdefs.h. */ | |
c906108c | 18216 | |
97bf5e38 MK |
18217 | #define _SYSCALL32 |
18218 | #include <sys/procfs.h> | |
bec39cab AC |
18219 | int |
18220 | main () | |
18221 | { | |
97bf5e38 | 18222 | prsysent_t avar |
bec39cab AC |
18223 | ; |
18224 | return 0; | |
18225 | } | |
18226 | _ACEOF | |
18227 | rm -f conftest.$ac_objext | |
18228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18229 | (eval $ac_compile) 2>conftest.er1 | |
18230 | ac_status=$? | |
18231 | grep -v '^ *+' conftest.er1 >conftest.err | |
18232 | rm -f conftest.er1 | |
18233 | cat conftest.err >&5 | |
18234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18235 | (exit $ac_status); } && | |
18236 | { ac_try='test -z "$ac_c_werror_flag" | |
18237 | || test ! -s conftest.err' | |
18238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18239 | (eval $ac_try) 2>&5 | |
18240 | ac_status=$? | |
18241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18242 | (exit $ac_status); }; } && | |
18243 | { ac_try='test -s conftest.$ac_objext' | |
18244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18245 | (eval $ac_try) 2>&5 | |
18246 | ac_status=$? | |
18247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18248 | (exit $ac_status); }; }; then | |
97bf5e38 | 18249 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
c906108c | 18250 | else |
bec39cab AC |
18251 | echo "$as_me: failed program was:" >&5 |
18252 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18253 | ||
18254 | bfd_cv_have_sys_procfs_type_prsysent_t=no | |
18255 | ||
c906108c | 18256 | fi |
bec39cab | 18257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18258 | fi |
18259 | ||
97bf5e38 | 18260 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
bec39cab AC |
18261 | |
18262 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18263 | #define HAVE_PRSYSENT_T 1 |
bec39cab | 18264 | _ACEOF |
c906108c | 18265 | |
97bf5e38 | 18266 | fi |
bec39cab AC |
18267 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
18268 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 | |
c906108c | 18269 | |
bec39cab AC |
18270 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
18271 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 | |
18272 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then | |
18273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18274 | else |
bec39cab AC |
18275 | cat >conftest.$ac_ext <<_ACEOF |
18276 | /* confdefs.h. */ | |
18277 | _ACEOF | |
18278 | cat confdefs.h >>conftest.$ac_ext | |
18279 | cat >>conftest.$ac_ext <<_ACEOF | |
18280 | /* end confdefs.h. */ | |
c906108c | 18281 | |
97bf5e38 MK |
18282 | #define _SYSCALL32 |
18283 | #include <sys/procfs.h> | |
bec39cab AC |
18284 | int |
18285 | main () | |
18286 | { | |
97bf5e38 | 18287 | pr_sigset_t avar |
bec39cab AC |
18288 | ; |
18289 | return 0; | |
18290 | } | |
18291 | _ACEOF | |
18292 | rm -f conftest.$ac_objext | |
18293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18294 | (eval $ac_compile) 2>conftest.er1 | |
18295 | ac_status=$? | |
18296 | grep -v '^ *+' conftest.er1 >conftest.err | |
18297 | rm -f conftest.er1 | |
18298 | cat conftest.err >&5 | |
18299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18300 | (exit $ac_status); } && | |
18301 | { ac_try='test -z "$ac_c_werror_flag" | |
18302 | || test ! -s conftest.err' | |
18303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18304 | (eval $ac_try) 2>&5 | |
18305 | ac_status=$? | |
18306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18307 | (exit $ac_status); }; } && | |
18308 | { ac_try='test -s conftest.$ac_objext' | |
18309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18310 | (eval $ac_try) 2>&5 | |
18311 | ac_status=$? | |
18312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18313 | (exit $ac_status); }; }; then | |
97bf5e38 | 18314 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
c906108c | 18315 | else |
bec39cab AC |
18316 | echo "$as_me: failed program was:" >&5 |
18317 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18318 | ||
18319 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no | |
18320 | ||
c906108c | 18321 | fi |
bec39cab | 18322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18323 | fi |
18324 | ||
97bf5e38 | 18325 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
bec39cab AC |
18326 | |
18327 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18328 | #define HAVE_PR_SIGSET_T 1 |
bec39cab | 18329 | _ACEOF |
c906108c | 18330 | |
97bf5e38 | 18331 | fi |
bec39cab AC |
18332 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
18333 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 | |
c906108c | 18334 | |
bec39cab AC |
18335 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
18336 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 | |
18337 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then | |
18338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18339 | else |
bec39cab AC |
18340 | cat >conftest.$ac_ext <<_ACEOF |
18341 | /* confdefs.h. */ | |
18342 | _ACEOF | |
18343 | cat confdefs.h >>conftest.$ac_ext | |
18344 | cat >>conftest.$ac_ext <<_ACEOF | |
18345 | /* end confdefs.h. */ | |
c906108c | 18346 | |
97bf5e38 MK |
18347 | #define _SYSCALL32 |
18348 | #include <sys/procfs.h> | |
bec39cab AC |
18349 | int |
18350 | main () | |
18351 | { | |
97bf5e38 | 18352 | pr_sigaction64_t avar |
bec39cab AC |
18353 | ; |
18354 | return 0; | |
18355 | } | |
18356 | _ACEOF | |
18357 | rm -f conftest.$ac_objext | |
18358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18359 | (eval $ac_compile) 2>conftest.er1 | |
18360 | ac_status=$? | |
18361 | grep -v '^ *+' conftest.er1 >conftest.err | |
18362 | rm -f conftest.er1 | |
18363 | cat conftest.err >&5 | |
18364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18365 | (exit $ac_status); } && | |
18366 | { ac_try='test -z "$ac_c_werror_flag" | |
18367 | || test ! -s conftest.err' | |
18368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18369 | (eval $ac_try) 2>&5 | |
18370 | ac_status=$? | |
18371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18372 | (exit $ac_status); }; } && | |
18373 | { ac_try='test -s conftest.$ac_objext' | |
18374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18375 | (eval $ac_try) 2>&5 | |
18376 | ac_status=$? | |
18377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18378 | (exit $ac_status); }; }; then | |
97bf5e38 | 18379 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
c906108c | 18380 | else |
bec39cab AC |
18381 | echo "$as_me: failed program was:" >&5 |
18382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18383 | ||
18384 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no | |
18385 | ||
c906108c | 18386 | fi |
bec39cab | 18387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18388 | fi |
18389 | ||
97bf5e38 | 18390 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
bec39cab AC |
18391 | |
18392 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18393 | #define HAVE_PR_SIGACTION64_T 1 |
bec39cab | 18394 | _ACEOF |
c906108c | 18395 | |
97bf5e38 | 18396 | fi |
bec39cab AC |
18397 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
18398 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 | |
97bf5e38 | 18399 | |
bec39cab AC |
18400 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
18401 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 | |
18402 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then | |
18403 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 18404 | else |
bec39cab AC |
18405 | cat >conftest.$ac_ext <<_ACEOF |
18406 | /* confdefs.h. */ | |
18407 | _ACEOF | |
18408 | cat confdefs.h >>conftest.$ac_ext | |
18409 | cat >>conftest.$ac_ext <<_ACEOF | |
18410 | /* end confdefs.h. */ | |
97bf5e38 MK |
18411 | |
18412 | #define _SYSCALL32 | |
18413 | #include <sys/procfs.h> | |
bec39cab AC |
18414 | int |
18415 | main () | |
18416 | { | |
97bf5e38 | 18417 | pr_siginfo64_t avar |
bec39cab AC |
18418 | ; |
18419 | return 0; | |
18420 | } | |
18421 | _ACEOF | |
18422 | rm -f conftest.$ac_objext | |
18423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18424 | (eval $ac_compile) 2>conftest.er1 | |
18425 | ac_status=$? | |
18426 | grep -v '^ *+' conftest.er1 >conftest.err | |
18427 | rm -f conftest.er1 | |
18428 | cat conftest.err >&5 | |
18429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18430 | (exit $ac_status); } && | |
18431 | { ac_try='test -z "$ac_c_werror_flag" | |
18432 | || test ! -s conftest.err' | |
18433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18434 | (eval $ac_try) 2>&5 | |
18435 | ac_status=$? | |
18436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18437 | (exit $ac_status); }; } && | |
18438 | { ac_try='test -s conftest.$ac_objext' | |
18439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18440 | (eval $ac_try) 2>&5 | |
18441 | ac_status=$? | |
18442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18443 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18444 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
18445 | else | |
bec39cab AC |
18446 | echo "$as_me: failed program was:" >&5 |
18447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18448 | ||
18449 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no | |
18450 | ||
97bf5e38 | 18451 | fi |
bec39cab | 18452 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18453 | fi |
c906108c | 18454 | |
97bf5e38 | 18455 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
bec39cab AC |
18456 | |
18457 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 18458 | #define HAVE_PR_SIGINFO64_T 1 |
bec39cab | 18459 | _ACEOF |
c906108c | 18460 | |
97bf5e38 | 18461 | fi |
bec39cab AC |
18462 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
18463 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 | |
18464 | ||
18465 | ||
97bf5e38 MK |
18466 | |
18467 | ||
18468 | ||
97bf5e38 | 18469 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
18470 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
18471 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 | |
18472 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then | |
18473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
18474 | else |
18475 | if test "$cross_compiling" = yes; then | |
97bf5e38 | 18476 | gdb_cv_prfpregset_t_broken=yes |
c906108c | 18477 | else |
bec39cab AC |
18478 | cat >conftest.$ac_ext <<_ACEOF |
18479 | /* confdefs.h. */ | |
18480 | _ACEOF | |
18481 | cat confdefs.h >>conftest.$ac_ext | |
18482 | cat >>conftest.$ac_ext <<_ACEOF | |
18483 | /* end confdefs.h. */ | |
97bf5e38 MK |
18484 | #include <sys/procfs.h> |
18485 | int main () | |
18486 | { | |
18487 | if (sizeof (prfpregset_t) == sizeof (void *)) | |
18488 | return 1; | |
18489 | return 0; | |
18490 | } | |
bec39cab AC |
18491 | _ACEOF |
18492 | rm -f conftest$ac_exeext | |
18493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18494 | (eval $ac_link) 2>&5 | |
18495 | ac_status=$? | |
18496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18497 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18499 | (eval $ac_try) 2>&5 | |
18500 | ac_status=$? | |
18501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18502 | (exit $ac_status); }; }; then | |
97bf5e38 | 18503 | gdb_cv_prfpregset_t_broken=no |
c906108c | 18504 | else |
bec39cab AC |
18505 | echo "$as_me: program exited with status $ac_status" >&5 |
18506 | echo "$as_me: failed program was:" >&5 | |
18507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18508 | ||
18509 | ( exit $ac_status ) | |
18510 | gdb_cv_prfpregset_t_broken=yes | |
c906108c | 18511 | fi |
bec39cab | 18512 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 18513 | fi |
c906108c SS |
18514 | fi |
18515 | ||
bec39cab AC |
18516 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
18517 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 | |
97bf5e38 | 18518 | if test $gdb_cv_prfpregset_t_broken = yes; then |
bec39cab | 18519 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 18520 | #define PRFPREGSET_T_BROKEN 1 |
bec39cab | 18521 | _ACEOF |
c906108c | 18522 | |
97bf5e38 MK |
18523 | fi |
18524 | fi | |
c906108c | 18525 | |
bec39cab AC |
18526 | |
18527 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 | |
18528 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 | |
18529 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then | |
18530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18531 | else |
bec39cab AC |
18532 | cat >conftest.$ac_ext <<_ACEOF |
18533 | /* confdefs.h. */ | |
18534 | _ACEOF | |
18535 | cat confdefs.h >>conftest.$ac_ext | |
18536 | cat >>conftest.$ac_ext <<_ACEOF | |
18537 | /* end confdefs.h. */ | |
97bf5e38 MK |
18538 | #include <unistd.h> |
18539 | #include <sys/types.h> | |
18540 | #include <sys/procfs.h> | |
18541 | ||
bec39cab AC |
18542 | int |
18543 | main () | |
18544 | { | |
97bf5e38 MK |
18545 | |
18546 | int dummy;; | |
18547 | dummy = ioctl(0, PIOCSET, &dummy); | |
bec39cab AC |
18548 | |
18549 | ; | |
18550 | return 0; | |
18551 | } | |
18552 | _ACEOF | |
18553 | rm -f conftest.$ac_objext | |
18554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18555 | (eval $ac_compile) 2>conftest.er1 | |
18556 | ac_status=$? | |
18557 | grep -v '^ *+' conftest.er1 >conftest.err | |
18558 | rm -f conftest.er1 | |
18559 | cat conftest.err >&5 | |
18560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18561 | (exit $ac_status); } && | |
18562 | { ac_try='test -z "$ac_c_werror_flag" | |
18563 | || test ! -s conftest.err' | |
18564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18565 | (eval $ac_try) 2>&5 | |
18566 | ac_status=$? | |
18567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18568 | (exit $ac_status); }; } && | |
18569 | { ac_try='test -s conftest.$ac_objext' | |
18570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18571 | (eval $ac_try) 2>&5 | |
18572 | ac_status=$? | |
18573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18574 | (exit $ac_status); }; }; then | |
97bf5e38 | 18575 | gdb_cv_have_procfs_piocset=yes |
c906108c | 18576 | else |
bec39cab AC |
18577 | echo "$as_me: failed program was:" >&5 |
18578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18579 | ||
18580 | gdb_cv_have_procfs_piocset=no | |
c906108c | 18581 | fi |
bec39cab | 18582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18583 | fi |
97bf5e38 | 18584 | |
bec39cab AC |
18585 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
18586 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 | |
97bf5e38 | 18587 | if test $gdb_cv_have_procfs_piocset = yes; then |
bec39cab | 18588 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 18589 | #define HAVE_PROCFS_PIOCSET 1 |
bec39cab | 18590 | _ACEOF |
97bf5e38 MK |
18591 | |
18592 | fi | |
c906108c | 18593 | fi |
c906108c | 18594 | |
97bf5e38 | 18595 | if test ${host} = ${target} ; then |
bec39cab AC |
18596 | |
18597 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 | |
18598 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 | |
18599 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then | |
18600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18601 | else | |
18602 | cat >conftest.$ac_ext <<_ACEOF | |
18603 | /* confdefs.h. */ | |
18604 | _ACEOF | |
18605 | cat confdefs.h >>conftest.$ac_ext | |
18606 | cat >>conftest.$ac_ext <<_ACEOF | |
18607 | /* end confdefs.h. */ | |
97bf5e38 | 18608 | #include <link.h> |
bec39cab AC |
18609 | int |
18610 | main () | |
18611 | { | |
97bf5e38 | 18612 | struct link_map lm; (void) lm.l_addr; |
bec39cab AC |
18613 | ; |
18614 | return 0; | |
18615 | } | |
18616 | _ACEOF | |
18617 | rm -f conftest.$ac_objext | |
18618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18619 | (eval $ac_compile) 2>conftest.er1 | |
18620 | ac_status=$? | |
18621 | grep -v '^ *+' conftest.er1 >conftest.err | |
18622 | rm -f conftest.er1 | |
18623 | cat conftest.err >&5 | |
18624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18625 | (exit $ac_status); } && | |
18626 | { ac_try='test -z "$ac_c_werror_flag" | |
18627 | || test ! -s conftest.err' | |
18628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18629 | (eval $ac_try) 2>&5 | |
18630 | ac_status=$? | |
18631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18632 | (exit $ac_status); }; } && | |
18633 | { ac_try='test -s conftest.$ac_objext' | |
18634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18635 | (eval $ac_try) 2>&5 | |
18636 | ac_status=$? | |
18637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18638 | (exit $ac_status); }; }; then | |
97bf5e38 | 18639 | gdb_cv_have_struct_link_map_with_l_members=yes |
c906108c | 18640 | else |
bec39cab AC |
18641 | echo "$as_me: failed program was:" >&5 |
18642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18643 | ||
18644 | gdb_cv_have_struct_link_map_with_l_members=no | |
c906108c | 18645 | fi |
bec39cab | 18646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
18647 | fi |
18648 | ||
bec39cab AC |
18649 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
18650 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 | |
97bf5e38 | 18651 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
bec39cab | 18652 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 18653 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
bec39cab | 18654 | _ACEOF |
97bf5e38 MK |
18655 | |
18656 | fi | |
18657 | ||
bec39cab AC |
18658 | |
18659 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 | |
18660 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 | |
18661 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then | |
18662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18663 | else |
bec39cab AC |
18664 | cat >conftest.$ac_ext <<_ACEOF |
18665 | /* confdefs.h. */ | |
18666 | _ACEOF | |
18667 | cat confdefs.h >>conftest.$ac_ext | |
18668 | cat >>conftest.$ac_ext <<_ACEOF | |
18669 | /* end confdefs.h. */ | |
97bf5e38 MK |
18670 | #include <sys/types.h> |
18671 | #include <link.h> | |
bec39cab AC |
18672 | int |
18673 | main () | |
18674 | { | |
97bf5e38 | 18675 | struct link_map lm; (void) lm.lm_addr; |
bec39cab AC |
18676 | ; |
18677 | return 0; | |
18678 | } | |
18679 | _ACEOF | |
18680 | rm -f conftest.$ac_objext | |
18681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18682 | (eval $ac_compile) 2>conftest.er1 | |
18683 | ac_status=$? | |
18684 | grep -v '^ *+' conftest.er1 >conftest.err | |
18685 | rm -f conftest.er1 | |
18686 | cat conftest.err >&5 | |
18687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18688 | (exit $ac_status); } && | |
18689 | { ac_try='test -z "$ac_c_werror_flag" | |
18690 | || test ! -s conftest.err' | |
18691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18692 | (eval $ac_try) 2>&5 | |
18693 | ac_status=$? | |
18694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18695 | (exit $ac_status); }; } && | |
18696 | { ac_try='test -s conftest.$ac_objext' | |
18697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18698 | (eval $ac_try) 2>&5 | |
18699 | ac_status=$? | |
18700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18701 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18702 | gdb_cv_have_struct_link_map_with_lm_members=yes |
18703 | else | |
bec39cab AC |
18704 | echo "$as_me: failed program was:" >&5 |
18705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18706 | ||
18707 | gdb_cv_have_struct_link_map_with_lm_members=no | |
97bf5e38 | 18708 | fi |
bec39cab | 18709 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18710 | fi |
c906108c | 18711 | |
bec39cab AC |
18712 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
18713 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 | |
97bf5e38 | 18714 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
bec39cab | 18715 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 18716 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
bec39cab | 18717 | _ACEOF |
97bf5e38 MK |
18718 | |
18719 | fi | |
18720 | ||
bec39cab AC |
18721 | |
18722 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 | |
18723 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 | |
18724 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then | |
18725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 18726 | else |
bec39cab AC |
18727 | cat >conftest.$ac_ext <<_ACEOF |
18728 | /* confdefs.h. */ | |
18729 | _ACEOF | |
18730 | cat confdefs.h >>conftest.$ac_ext | |
18731 | cat >>conftest.$ac_ext <<_ACEOF | |
18732 | /* end confdefs.h. */ | |
97bf5e38 MK |
18733 | #include <sys/types.h> |
18734 | #ifdef HAVE_NLIST_H | |
18735 | #include <nlist.h> | |
18736 | #endif | |
18737 | #include <link.h> | |
bec39cab AC |
18738 | int |
18739 | main () | |
18740 | { | |
97bf5e38 | 18741 | struct so_map lm; (void) lm.som_addr; |
bec39cab AC |
18742 | ; |
18743 | return 0; | |
18744 | } | |
18745 | _ACEOF | |
18746 | rm -f conftest.$ac_objext | |
18747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18748 | (eval $ac_compile) 2>conftest.er1 | |
18749 | ac_status=$? | |
18750 | grep -v '^ *+' conftest.er1 >conftest.err | |
18751 | rm -f conftest.er1 | |
18752 | cat conftest.err >&5 | |
18753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18754 | (exit $ac_status); } && | |
18755 | { ac_try='test -z "$ac_c_werror_flag" | |
18756 | || test ! -s conftest.err' | |
18757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18758 | (eval $ac_try) 2>&5 | |
18759 | ac_status=$? | |
18760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18761 | (exit $ac_status); }; } && | |
18762 | { ac_try='test -s conftest.$ac_objext' | |
18763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18764 | (eval $ac_try) 2>&5 | |
18765 | ac_status=$? | |
18766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18767 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18768 | gdb_cv_have_struct_so_map_with_som_members=yes |
18769 | else | |
bec39cab AC |
18770 | echo "$as_me: failed program was:" >&5 |
18771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18772 | ||
18773 | gdb_cv_have_struct_so_map_with_som_members=no | |
97bf5e38 | 18774 | fi |
bec39cab | 18775 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 18776 | fi |
c906108c | 18777 | |
bec39cab AC |
18778 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
18779 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 | |
97bf5e38 | 18780 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
bec39cab | 18781 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 18782 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
bec39cab | 18783 | _ACEOF |
c906108c | 18784 | |
97bf5e38 | 18785 | fi |
c906108c | 18786 | |
bec39cab AC |
18787 | |
18788 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 | |
18789 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 | |
18790 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then | |
18791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 18792 | else |
bec39cab AC |
18793 | cat >conftest.$ac_ext <<_ACEOF |
18794 | /* confdefs.h. */ | |
18795 | _ACEOF | |
18796 | cat confdefs.h >>conftest.$ac_ext | |
18797 | cat >>conftest.$ac_ext <<_ACEOF | |
18798 | /* end confdefs.h. */ | |
97bf5e38 MK |
18799 | #define _SYSCALL32 |
18800 | #include <sys/link.h> | |
bec39cab AC |
18801 | int |
18802 | main () | |
18803 | { | |
97bf5e38 | 18804 | struct link_map32 l; |
bec39cab AC |
18805 | ; |
18806 | return 0; | |
18807 | } | |
18808 | _ACEOF | |
18809 | rm -f conftest.$ac_objext | |
18810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18811 | (eval $ac_compile) 2>conftest.er1 | |
18812 | ac_status=$? | |
18813 | grep -v '^ *+' conftest.er1 >conftest.err | |
18814 | rm -f conftest.er1 | |
18815 | cat conftest.err >&5 | |
18816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18817 | (exit $ac_status); } && | |
18818 | { ac_try='test -z "$ac_c_werror_flag" | |
18819 | || test ! -s conftest.err' | |
18820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18821 | (eval $ac_try) 2>&5 | |
18822 | ac_status=$? | |
18823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18824 | (exit $ac_status); }; } && | |
18825 | { ac_try='test -s conftest.$ac_objext' | |
18826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18827 | (eval $ac_try) 2>&5 | |
18828 | ac_status=$? | |
18829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18830 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18831 | gdb_cv_have_struct_link_map32=yes |
18832 | else | |
bec39cab AC |
18833 | echo "$as_me: failed program was:" >&5 |
18834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18835 | ||
18836 | gdb_cv_have_struct_link_map32=no | |
97bf5e38 | 18837 | fi |
bec39cab | 18838 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 18839 | fi |
c906108c | 18840 | |
bec39cab AC |
18841 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
18842 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 | |
97bf5e38 | 18843 | if test $gdb_cv_have_struct_link_map32 = yes; then |
bec39cab | 18844 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 18845 | #define HAVE_STRUCT_LINK_MAP32 1 |
bec39cab | 18846 | _ACEOF |
c906108c | 18847 | |
bec39cab | 18848 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 18849 | #define _SYSCALL32 1 |
bec39cab | 18850 | _ACEOF |
c906108c | 18851 | |
97bf5e38 MK |
18852 | fi |
18853 | fi | |
c906108c | 18854 | |
c906108c | 18855 | |
bec39cab AC |
18856 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
18857 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 | |
18858 | if test "${gdb_cv_c_long_long+set}" = set; then | |
18859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 18860 | else |
bec39cab AC |
18861 | cat >conftest.$ac_ext <<_ACEOF |
18862 | /* confdefs.h. */ | |
18863 | _ACEOF | |
18864 | cat confdefs.h >>conftest.$ac_ext | |
18865 | cat >>conftest.$ac_ext <<_ACEOF | |
18866 | /* end confdefs.h. */ | |
c906108c | 18867 | |
bec39cab AC |
18868 | int |
18869 | main () | |
18870 | { | |
c906108c | 18871 | |
97bf5e38 MK |
18872 | extern long long foo; |
18873 | switch (foo & 2) { case 0: return 1; } | |
c906108c | 18874 | |
bec39cab AC |
18875 | ; |
18876 | return 0; | |
18877 | } | |
18878 | _ACEOF | |
18879 | rm -f conftest.$ac_objext | |
18880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18881 | (eval $ac_compile) 2>conftest.er1 | |
18882 | ac_status=$? | |
18883 | grep -v '^ *+' conftest.er1 >conftest.err | |
18884 | rm -f conftest.er1 | |
18885 | cat conftest.err >&5 | |
18886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18887 | (exit $ac_status); } && | |
18888 | { ac_try='test -z "$ac_c_werror_flag" | |
18889 | || test ! -s conftest.err' | |
18890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18891 | (eval $ac_try) 2>&5 | |
18892 | ac_status=$? | |
18893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18894 | (exit $ac_status); }; } && | |
18895 | { ac_try='test -s conftest.$ac_objext' | |
18896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18897 | (eval $ac_try) 2>&5 | |
18898 | ac_status=$? | |
18899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18900 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18901 | gdb_cv_c_long_long=yes |
18902 | else | |
bec39cab AC |
18903 | echo "$as_me: failed program was:" >&5 |
18904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18905 | ||
18906 | gdb_cv_c_long_long=no | |
97bf5e38 | 18907 | fi |
bec39cab | 18908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 18909 | fi |
c906108c | 18910 | |
bec39cab AC |
18911 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
18912 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 | |
97bf5e38 | 18913 | if test $gdb_cv_c_long_long = yes; then |
bec39cab | 18914 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 18915 | #define CC_HAS_LONG_LONG 1 |
bec39cab | 18916 | _ACEOF |
97bf5e38 MK |
18917 | |
18918 | fi | |
18919 | ||
18920 | ||
bec39cab AC |
18921 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
18922 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 | |
18923 | if test "${gdb_cv_printf_has_long_long+set}" = set; then | |
18924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
18925 | else |
18926 | if test "$cross_compiling" = yes; then | |
18927 | gdb_cv_printf_has_long_long=no | |
18928 | else | |
bec39cab AC |
18929 | cat >conftest.$ac_ext <<_ACEOF |
18930 | /* confdefs.h. */ | |
18931 | _ACEOF | |
18932 | cat confdefs.h >>conftest.$ac_ext | |
18933 | cat >>conftest.$ac_ext <<_ACEOF | |
18934 | /* end confdefs.h. */ | |
97bf5e38 MK |
18935 | |
18936 | int main () { | |
18937 | char buf[32]; | |
18938 | long long l = 0; | |
18939 | l = (l << 16) + 0x0123; | |
18940 | l = (l << 16) + 0x4567; | |
18941 | l = (l << 16) + 0x89ab; | |
18942 | l = (l << 16) + 0xcdef; | |
18943 | sprintf (buf, "0x%016llx", l); | |
18944 | return (strcmp ("0x0123456789abcdef", buf)); | |
c906108c | 18945 | } |
bec39cab AC |
18946 | _ACEOF |
18947 | rm -f conftest$ac_exeext | |
18948 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18949 | (eval $ac_link) 2>&5 | |
18950 | ac_status=$? | |
18951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18952 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18954 | (eval $ac_try) 2>&5 | |
18955 | ac_status=$? | |
18956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18957 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
18958 | gdb_cv_printf_has_long_long=yes |
18959 | else | |
bec39cab AC |
18960 | echo "$as_me: program exited with status $ac_status" >&5 |
18961 | echo "$as_me: failed program was:" >&5 | |
18962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18963 | ||
18964 | ( exit $ac_status ) | |
18965 | gdb_cv_printf_has_long_long=no | |
97bf5e38 | 18966 | fi |
bec39cab | 18967 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 18968 | fi |
97bf5e38 MK |
18969 | fi |
18970 | ||
18971 | if test $gdb_cv_printf_has_long_long = yes; then | |
bec39cab | 18972 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 18973 | #define PRINTF_HAS_LONG_LONG 1 |
bec39cab | 18974 | _ACEOF |
97bf5e38 MK |
18975 | |
18976 | fi | |
bec39cab AC |
18977 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
18978 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 | |
97bf5e38 MK |
18979 | |
18980 | ||
bec39cab AC |
18981 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
18982 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 | |
18983 | if test "${ac_cv_c_long_double+set}" = set; then | |
18984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 18985 | else |
bec39cab AC |
18986 | cat >conftest.$ac_ext <<_ACEOF |
18987 | /* confdefs.h. */ | |
18988 | _ACEOF | |
18989 | cat confdefs.h >>conftest.$ac_ext | |
18990 | cat >>conftest.$ac_ext <<_ACEOF | |
18991 | /* end confdefs.h. */ | |
97bf5e38 | 18992 | |
bec39cab AC |
18993 | int |
18994 | main () | |
18995 | { | |
97bf5e38 | 18996 | long double foo; |
bec39cab AC |
18997 | ; |
18998 | return 0; | |
18999 | } | |
19000 | _ACEOF | |
19001 | rm -f conftest.$ac_objext | |
19002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19003 | (eval $ac_compile) 2>conftest.er1 | |
19004 | ac_status=$? | |
19005 | grep -v '^ *+' conftest.er1 >conftest.err | |
19006 | rm -f conftest.er1 | |
19007 | cat conftest.err >&5 | |
19008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19009 | (exit $ac_status); } && | |
19010 | { ac_try='test -z "$ac_c_werror_flag" | |
19011 | || test ! -s conftest.err' | |
19012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19013 | (eval $ac_try) 2>&5 | |
19014 | ac_status=$? | |
19015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19016 | (exit $ac_status); }; } && | |
19017 | { ac_try='test -s conftest.$ac_objext' | |
19018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19019 | (eval $ac_try) 2>&5 | |
19020 | ac_status=$? | |
19021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19022 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19023 | ac_cv_c_long_double=yes |
19024 | else | |
bec39cab AC |
19025 | echo "$as_me: failed program was:" >&5 |
19026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19027 | ||
19028 | ac_cv_c_long_double=no | |
97bf5e38 | 19029 | fi |
bec39cab | 19030 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19031 | fi |
c906108c | 19032 | |
bec39cab AC |
19033 | echo "$as_me:$LINENO: result: $ac_cv_c_long_double" >&5 |
19034 | echo "${ECHO_T}$ac_cv_c_long_double" >&6 | |
97bf5e38 | 19035 | if test $ac_cv_c_long_double = yes; then |
bec39cab | 19036 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 19037 | #define HAVE_LONG_DOUBLE 1 |
bec39cab | 19038 | _ACEOF |
97bf5e38 MK |
19039 | |
19040 | fi | |
19041 | ||
19042 | ||
bec39cab AC |
19043 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
19044 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 | |
19045 | if test "${gdb_cv_printf_has_long_double+set}" = set; then | |
19046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
19047 | else |
19048 | if test "$cross_compiling" = yes; then | |
19049 | gdb_cv_printf_has_long_double=no | |
19050 | else | |
bec39cab AC |
19051 | cat >conftest.$ac_ext <<_ACEOF |
19052 | /* confdefs.h. */ | |
19053 | _ACEOF | |
19054 | cat confdefs.h >>conftest.$ac_ext | |
19055 | cat >>conftest.$ac_ext <<_ACEOF | |
19056 | /* end confdefs.h. */ | |
97bf5e38 MK |
19057 | |
19058 | int main () { | |
19059 | char buf[16]; | |
19060 | long double f = 3.141592653; | |
19061 | sprintf (buf, "%Lg", f); | |
19062 | return (strncmp ("3.14159", buf, 7)); | |
19063 | } | |
bec39cab AC |
19064 | _ACEOF |
19065 | rm -f conftest$ac_exeext | |
19066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19067 | (eval $ac_link) 2>&5 | |
19068 | ac_status=$? | |
19069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19070 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19072 | (eval $ac_try) 2>&5 | |
19073 | ac_status=$? | |
19074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19075 | (exit $ac_status); }; }; then | |
97bf5e38 | 19076 | gdb_cv_printf_has_long_double=yes |
c906108c | 19077 | else |
bec39cab AC |
19078 | echo "$as_me: program exited with status $ac_status" >&5 |
19079 | echo "$as_me: failed program was:" >&5 | |
19080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19081 | ||
19082 | ( exit $ac_status ) | |
19083 | gdb_cv_printf_has_long_double=no | |
c906108c | 19084 | fi |
bec39cab | 19085 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 19086 | fi |
c906108c SS |
19087 | fi |
19088 | ||
97bf5e38 | 19089 | if test $gdb_cv_printf_has_long_double = yes; then |
bec39cab | 19090 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 19091 | #define PRINTF_HAS_LONG_DOUBLE 1 |
bec39cab | 19092 | _ACEOF |
97bf5e38 MK |
19093 | |
19094 | fi | |
bec39cab AC |
19095 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
19096 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 | |
97bf5e38 MK |
19097 | |
19098 | ||
bec39cab AC |
19099 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
19100 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 | |
19101 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then | |
19102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
19103 | else |
19104 | if test "$cross_compiling" = yes; then | |
19105 | gdb_cv_scanf_has_long_double=no | |
19106 | else | |
bec39cab AC |
19107 | cat >conftest.$ac_ext <<_ACEOF |
19108 | /* confdefs.h. */ | |
19109 | _ACEOF | |
19110 | cat confdefs.h >>conftest.$ac_ext | |
19111 | cat >>conftest.$ac_ext <<_ACEOF | |
19112 | /* end confdefs.h. */ | |
97bf5e38 MK |
19113 | |
19114 | int main () { | |
19115 | char *buf = "3.141592653"; | |
19116 | long double f = 0; | |
19117 | sscanf (buf, "%Lg", &f); | |
19118 | return !(f > 3.14159 && f < 3.14160); | |
19119 | } | |
bec39cab AC |
19120 | _ACEOF |
19121 | rm -f conftest$ac_exeext | |
19122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19123 | (eval $ac_link) 2>&5 | |
19124 | ac_status=$? | |
19125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19126 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19128 | (eval $ac_try) 2>&5 | |
19129 | ac_status=$? | |
19130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19131 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
19132 | gdb_cv_scanf_has_long_double=yes |
19133 | else | |
bec39cab AC |
19134 | echo "$as_me: program exited with status $ac_status" >&5 |
19135 | echo "$as_me: failed program was:" >&5 | |
19136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19137 | ||
19138 | ( exit $ac_status ) | |
19139 | gdb_cv_scanf_has_long_double=no | |
97bf5e38 | 19140 | fi |
bec39cab | 19141 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 19142 | fi |
c906108c SS |
19143 | fi |
19144 | ||
97bf5e38 | 19145 | if test $gdb_cv_scanf_has_long_double = yes; then |
bec39cab | 19146 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 19147 | #define SCANF_HAS_LONG_DOUBLE 1 |
bec39cab | 19148 | _ACEOF |
97bf5e38 MK |
19149 | |
19150 | fi | |
bec39cab AC |
19151 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
19152 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 | |
c906108c | 19153 | |
438013df AO |
19154 | case ${host_os} in |
19155 | aix*) | |
bec39cab AC |
19156 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
19157 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
19158 | if test "${gdb_cv_bigtoc+set}" = set; then | |
19159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
438013df | 19160 | else |
bec39cab | 19161 | |
438013df AO |
19162 | SAVE_LDFLAGS=$LDFLAGS |
19163 | ||
19164 | case $GCC in | |
19165 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
19166 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
19167 | esac | |
19168 | ||
19169 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
bec39cab AC |
19170 | cat >conftest.$ac_ext <<_ACEOF |
19171 | /* confdefs.h. */ | |
19172 | _ACEOF | |
19173 | cat confdefs.h >>conftest.$ac_ext | |
19174 | cat >>conftest.$ac_ext <<_ACEOF | |
19175 | /* end confdefs.h. */ | |
438013df | 19176 | |
bec39cab AC |
19177 | int |
19178 | main () | |
19179 | { | |
438013df | 19180 | int i; |
bec39cab AC |
19181 | ; |
19182 | return 0; | |
19183 | } | |
19184 | _ACEOF | |
19185 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19186 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19187 | (eval $ac_link) 2>conftest.er1 | |
19188 | ac_status=$? | |
19189 | grep -v '^ *+' conftest.er1 >conftest.err | |
19190 | rm -f conftest.er1 | |
19191 | cat conftest.err >&5 | |
19192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19193 | (exit $ac_status); } && | |
19194 | { ac_try='test -z "$ac_c_werror_flag" | |
19195 | || test ! -s conftest.err' | |
19196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19197 | (eval $ac_try) 2>&5 | |
19198 | ac_status=$? | |
19199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19200 | (exit $ac_status); }; } && | |
19201 | { ac_try='test -s conftest$ac_exeext' | |
19202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19203 | (eval $ac_try) 2>&5 | |
19204 | ac_status=$? | |
19205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19206 | (exit $ac_status); }; }; then | |
438013df AO |
19207 | : |
19208 | else | |
bec39cab AC |
19209 | echo "$as_me: failed program was:" >&5 |
19210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19211 | ||
19212 | gdb_cv_bigtoc= | |
438013df | 19213 | fi |
bec39cab AC |
19214 | rm -f conftest.err conftest.$ac_objext \ |
19215 | conftest$ac_exeext conftest.$ac_ext | |
ec76baa5 | 19216 | LDFLAGS="${SAVE_LDFLAGS}" |
438013df | 19217 | |
bec39cab AC |
19218 | fi |
19219 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 | |
19220 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
438013df AO |
19221 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
19222 | ;; | |
19223 | esac | |
19224 | ||
c906108c SS |
19225 | |
19226 | ||
19227 | if test ${build} = ${host} -a ${host} = ${target} ; then | |
19228 | case ${host_os} in | |
19229 | hpux*) | |
bec39cab AC |
19230 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
19231 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 | |
c906108c SS |
19232 | if test -f /usr/include/dce/cma_config.h ; then |
19233 | if test "$GCC" = "yes" ; then | |
bec39cab AC |
19234 | echo "$as_me:$LINENO: result: yes" >&5 |
19235 | echo "${ECHO_T}yes" >&6 | |
19236 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 19237 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
bec39cab | 19238 | _ACEOF |
c906108c | 19239 | |
3483b318 | 19240 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
c906108c SS |
19241 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
19242 | else | |
bec39cab AC |
19243 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
19244 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 | |
c906108c SS |
19245 | fi |
19246 | else | |
bec39cab AC |
19247 | echo "$as_me:$LINENO: result: no" >&5 |
19248 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
19249 | fi |
19250 | ;; | |
19251 | solaris*) | |
d92419e5 JB |
19252 | # See if thread_db library is around for Solaris thread debugging. |
19253 | # Note that we must explicitly test for version 1 of the library | |
19254 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have | |
19255 | # the same API. | |
bec39cab AC |
19256 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
19257 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 | |
c906108c | 19258 | if test -f /usr/lib/libthread_db.so.1 ; then |
bec39cab AC |
19259 | echo "$as_me:$LINENO: result: yes" >&5 |
19260 | echo "${ECHO_T}yes" >&6 | |
19261 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 19262 | #define HAVE_THREAD_DB_LIB 1 |
bec39cab | 19263 | _ACEOF |
c906108c | 19264 | |
3483b318 | 19265 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
c906108c | 19266 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
bec39cab AC |
19267 | |
19268 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
19269 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
19270 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
19271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19272 | else |
bec39cab | 19273 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 19274 | LIBS="-ldl $LIBS" |
bec39cab AC |
19275 | cat >conftest.$ac_ext <<_ACEOF |
19276 | /* confdefs.h. */ | |
19277 | _ACEOF | |
19278 | cat confdefs.h >>conftest.$ac_ext | |
19279 | cat >>conftest.$ac_ext <<_ACEOF | |
19280 | /* end confdefs.h. */ | |
19281 | ||
c906108c | 19282 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
19283 | #ifdef __cplusplus |
19284 | extern "C" | |
19285 | #endif | |
c906108c | 19286 | /* We use char because int might match the return type of a gcc2 |
bec39cab AC |
19287 | builtin and then its argument prototype would still apply. */ |
19288 | char dlopen (); | |
19289 | int | |
19290 | main () | |
19291 | { | |
19292 | dlopen (); | |
19293 | ; | |
19294 | return 0; | |
19295 | } | |
19296 | _ACEOF | |
19297 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19298 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19299 | (eval $ac_link) 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_exeext' | |
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 | ac_cv_lib_dl_dlopen=yes | |
19320 | else | |
19321 | echo "$as_me: failed program was:" >&5 | |
19322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19323 | ||
19324 | ac_cv_lib_dl_dlopen=no | |
19325 | fi | |
19326 | rm -f conftest.err conftest.$ac_objext \ | |
19327 | conftest$ac_exeext conftest.$ac_ext | |
19328 | LIBS=$ac_check_lib_save_LIBS | |
19329 | fi | |
19330 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
19331 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
19332 | if test $ac_cv_lib_dl_dlopen = yes; then | |
19333 | cat >>confdefs.h <<_ACEOF | |
19334 | #define HAVE_LIBDL 1 | |
19335 | _ACEOF | |
c906108c SS |
19336 | |
19337 | LIBS="-ldl $LIBS" | |
19338 | ||
c906108c SS |
19339 | fi |
19340 | ||
19341 | if test "$GCC" = "yes" ; then | |
19342 | # The GNU linker requires the -export-dynamic option to make | |
19343 | # all symbols visible in the dynamic symbol table. | |
19344 | hold_ldflags=$LDFLAGS | |
bec39cab AC |
19345 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
19346 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 | |
c906108c | 19347 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
bec39cab AC |
19348 | cat >conftest.$ac_ext <<_ACEOF |
19349 | /* confdefs.h. */ | |
19350 | _ACEOF | |
19351 | cat confdefs.h >>conftest.$ac_ext | |
19352 | cat >>conftest.$ac_ext <<_ACEOF | |
19353 | /* end confdefs.h. */ | |
c906108c | 19354 | |
bec39cab AC |
19355 | int |
19356 | main () | |
19357 | { | |
c906108c | 19358 | int i; |
bec39cab AC |
19359 | ; |
19360 | return 0; | |
19361 | } | |
19362 | _ACEOF | |
19363 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19365 | (eval $ac_link) 2>conftest.er1 | |
19366 | ac_status=$? | |
19367 | grep -v '^ *+' conftest.er1 >conftest.err | |
19368 | rm -f conftest.er1 | |
19369 | cat conftest.err >&5 | |
19370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19371 | (exit $ac_status); } && | |
19372 | { ac_try='test -z "$ac_c_werror_flag" | |
19373 | || test ! -s conftest.err' | |
19374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19375 | (eval $ac_try) 2>&5 | |
19376 | ac_status=$? | |
19377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19378 | (exit $ac_status); }; } && | |
19379 | { ac_try='test -s conftest$ac_exeext' | |
19380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19381 | (eval $ac_try) 2>&5 | |
19382 | ac_status=$? | |
19383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19384 | (exit $ac_status); }; }; then | |
c906108c SS |
19385 | found=yes |
19386 | else | |
bec39cab AC |
19387 | echo "$as_me: failed program was:" >&5 |
19388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19389 | ||
19390 | found=no | |
c906108c | 19391 | fi |
bec39cab AC |
19392 | rm -f conftest.err conftest.$ac_objext \ |
19393 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 19394 | LDFLAGS=$hold_ldflags |
bec39cab AC |
19395 | echo "$as_me:$LINENO: result: $found" >&5 |
19396 | echo "${ECHO_T}$found" >&6 | |
c906108c SS |
19397 | if test $found = yes; then |
19398 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" | |
19399 | fi | |
19400 | fi | |
19401 | # Sun randomly tweaked the prototypes in <proc_service.h> | |
19402 | # at one point. | |
bec39cab AC |
19403 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
19404 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 | |
19405 | if test "${gdb_cv_proc_service_is_old+set}" = set; then | |
19406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19407 | else |
bec39cab AC |
19408 | |
19409 | cat >conftest.$ac_ext <<_ACEOF | |
19410 | /* confdefs.h. */ | |
19411 | _ACEOF | |
19412 | cat confdefs.h >>conftest.$ac_ext | |
19413 | cat >>conftest.$ac_ext <<_ACEOF | |
19414 | /* end confdefs.h. */ | |
c906108c SS |
19415 | |
19416 | #include <proc_service.h> | |
19417 | ps_err_e ps_pdwrite | |
19418 | (struct ps_prochandle*, psaddr_t, const void*, size_t); | |
c906108c | 19419 | |
bec39cab AC |
19420 | int |
19421 | main () | |
19422 | { | |
19423 | ||
19424 | ; | |
19425 | return 0; | |
19426 | } | |
19427 | _ACEOF | |
19428 | rm -f conftest.$ac_objext | |
19429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19430 | (eval $ac_compile) 2>conftest.er1 | |
19431 | ac_status=$? | |
19432 | grep -v '^ *+' conftest.er1 >conftest.err | |
19433 | rm -f conftest.er1 | |
19434 | cat conftest.err >&5 | |
19435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19436 | (exit $ac_status); } && | |
19437 | { ac_try='test -z "$ac_c_werror_flag" | |
19438 | || test ! -s conftest.err' | |
19439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19440 | (eval $ac_try) 2>&5 | |
19441 | ac_status=$? | |
19442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19443 | (exit $ac_status); }; } && | |
19444 | { ac_try='test -s conftest.$ac_objext' | |
19445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19446 | (eval $ac_try) 2>&5 | |
19447 | ac_status=$? | |
19448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19449 | (exit $ac_status); }; }; then | |
c906108c SS |
19450 | gdb_cv_proc_service_is_old=no |
19451 | else | |
bec39cab AC |
19452 | echo "$as_me: failed program was:" >&5 |
19453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19454 | ||
19455 | gdb_cv_proc_service_is_old=yes | |
c906108c | 19456 | fi |
bec39cab AC |
19457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19458 | ||
c906108c SS |
19459 | fi |
19460 | ||
bec39cab AC |
19461 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
19462 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 | |
c906108c | 19463 | if test $gdb_cv_proc_service_is_old = yes; then |
bec39cab | 19464 | cat >>confdefs.h <<\_ACEOF |
c906108c | 19465 | #define PROC_SERVICE_IS_OLD 1 |
bec39cab | 19466 | _ACEOF |
c906108c SS |
19467 | |
19468 | fi | |
19469 | else | |
bec39cab AC |
19470 | echo "$as_me:$LINENO: result: no" >&5 |
19471 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
19472 | fi |
19473 | ;; | |
d92419e5 | 19474 | aix*) |
bec39cab AC |
19475 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
19476 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 | |
19477 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then | |
19478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19479 | else | |
19480 | cat >conftest.$ac_ext <<_ACEOF | |
19481 | /* confdefs.h. */ | |
19482 | _ACEOF | |
19483 | cat confdefs.h >>conftest.$ac_ext | |
19484 | cat >>conftest.$ac_ext <<_ACEOF | |
19485 | /* end confdefs.h. */ | |
d92419e5 | 19486 | #include <sys/pthdebug.h> |
bec39cab AC |
19487 | int |
19488 | main () | |
19489 | { | |
d92419e5 JB |
19490 | #ifndef PTHDB_VERSION_3 |
19491 | #error | |
19492 | #endif | |
bec39cab AC |
19493 | ; |
19494 | return 0; | |
19495 | } | |
19496 | _ACEOF | |
19497 | rm -f conftest.$ac_objext | |
19498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19499 | (eval $ac_compile) 2>conftest.er1 | |
19500 | ac_status=$? | |
19501 | grep -v '^ *+' conftest.er1 >conftest.err | |
19502 | rm -f conftest.er1 | |
19503 | cat conftest.err >&5 | |
19504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19505 | (exit $ac_status); } && | |
19506 | { ac_try='test -z "$ac_c_werror_flag" | |
19507 | || test ! -s conftest.err' | |
19508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19509 | (eval $ac_try) 2>&5 | |
19510 | ac_status=$? | |
19511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19512 | (exit $ac_status); }; } && | |
19513 | { ac_try='test -s conftest.$ac_objext' | |
19514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19515 | (eval $ac_try) 2>&5 | |
19516 | ac_status=$? | |
19517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19518 | (exit $ac_status); }; }; then | |
d92419e5 JB |
19519 | gdb_cv_have_aix_thread_debug=yes |
19520 | else | |
bec39cab AC |
19521 | echo "$as_me: failed program was:" >&5 |
19522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19523 | ||
19524 | gdb_cv_have_aix_thread_debug=no | |
d92419e5 | 19525 | fi |
bec39cab | 19526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d92419e5 JB |
19527 | fi |
19528 | ||
bec39cab AC |
19529 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
19530 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 | |
d92419e5 JB |
19531 | if test $gdb_cv_have_aix_thread_debug = yes; then |
19532 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | |
3483b318 | 19533 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
d92419e5 JB |
19534 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
19535 | fi | |
19536 | ;; | |
c906108c | 19537 | esac |
bec39cab | 19538 | |
c906108c SS |
19539 | fi |
19540 | ||
3f47be5c | 19541 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
bec39cab AC |
19542 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
19543 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 | |
19544 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then | |
19545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19546 | else | |
19547 | cat >conftest.$ac_ext <<_ACEOF | |
19548 | /* confdefs.h. */ | |
19549 | _ACEOF | |
19550 | cat confdefs.h >>conftest.$ac_ext | |
19551 | cat >>conftest.$ac_ext <<_ACEOF | |
19552 | /* end confdefs.h. */ | |
3f47be5c | 19553 | #include <thread_db.h> |
bec39cab AC |
19554 | int |
19555 | main () | |
19556 | { | |
3f47be5c | 19557 | int i = TD_NOTALLOC; |
bec39cab AC |
19558 | ; |
19559 | return 0; | |
19560 | } | |
19561 | _ACEOF | |
19562 | rm -f conftest.$ac_objext | |
19563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19564 | (eval $ac_compile) 2>conftest.er1 | |
19565 | ac_status=$? | |
19566 | grep -v '^ *+' conftest.er1 >conftest.err | |
19567 | rm -f conftest.er1 | |
19568 | cat conftest.err >&5 | |
19569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19570 | (exit $ac_status); } && | |
19571 | { ac_try='test -z "$ac_c_werror_flag" | |
19572 | || test ! -s conftest.err' | |
19573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19574 | (eval $ac_try) 2>&5 | |
19575 | ac_status=$? | |
19576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19577 | (exit $ac_status); }; } && | |
19578 | { ac_try='test -s conftest.$ac_objext' | |
19579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19580 | (eval $ac_try) 2>&5 | |
19581 | ac_status=$? | |
19582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19583 | (exit $ac_status); }; }; then | |
3f47be5c EZ |
19584 | gdb_cv_thread_db_h_has_td_notalloc=yes |
19585 | else | |
bec39cab AC |
19586 | echo "$as_me: failed program was:" >&5 |
19587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19588 | ||
19589 | gdb_cv_thread_db_h_has_td_notalloc=no | |
19590 | ||
3f47be5c | 19591 | fi |
bec39cab | 19592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f47be5c | 19593 | |
bec39cab AC |
19594 | fi |
19595 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 | |
19596 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 | |
3f47be5c EZ |
19597 | fi |
19598 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then | |
bec39cab AC |
19599 | |
19600 | cat >>confdefs.h <<\_ACEOF | |
3f47be5c | 19601 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
bec39cab | 19602 | _ACEOF |
3f47be5c EZ |
19603 | |
19604 | fi | |
19605 | ||
b757528f | 19606 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
bec39cab AC |
19607 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
19608 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 | |
19609 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then | |
19610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19611 | else | |
19612 | cat >conftest.$ac_ext <<_ACEOF | |
19613 | /* confdefs.h. */ | |
19614 | _ACEOF | |
19615 | cat confdefs.h >>conftest.$ac_ext | |
19616 | cat >>conftest.$ac_ext <<_ACEOF | |
19617 | /* end confdefs.h. */ | |
b757528f | 19618 | #include <sys/syscall.h> |
bec39cab AC |
19619 | int |
19620 | main () | |
19621 | { | |
b757528f | 19622 | int i = __NR_tkill; |
bec39cab AC |
19623 | ; |
19624 | return 0; | |
19625 | } | |
19626 | _ACEOF | |
19627 | rm -f conftest.$ac_objext | |
19628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19629 | (eval $ac_compile) 2>conftest.er1 | |
19630 | ac_status=$? | |
19631 | grep -v '^ *+' conftest.er1 >conftest.err | |
19632 | rm -f conftest.er1 | |
19633 | cat conftest.err >&5 | |
19634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19635 | (exit $ac_status); } && | |
19636 | { ac_try='test -z "$ac_c_werror_flag" | |
19637 | || test ! -s conftest.err' | |
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); }; } && | |
19643 | { ac_try='test -s conftest.$ac_objext' | |
19644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19645 | (eval $ac_try) 2>&5 | |
19646 | ac_status=$? | |
19647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19648 | (exit $ac_status); }; }; then | |
b757528f JJ |
19649 | gdb_cv_sys_syscall_h_has_tkill=yes |
19650 | else | |
bec39cab AC |
19651 | echo "$as_me: failed program was:" >&5 |
19652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19653 | ||
19654 | gdb_cv_sys_syscall_h_has_tkill=no | |
19655 | ||
b757528f | 19656 | fi |
bec39cab | 19657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b757528f | 19658 | |
bec39cab AC |
19659 | fi |
19660 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 | |
19661 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 | |
b757528f JJ |
19662 | fi |
19663 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then | |
bec39cab AC |
19664 | |
19665 | cat >>confdefs.h <<\_ACEOF | |
b757528f | 19666 | #define HAVE_TKILL_SYSCALL 1 |
bec39cab | 19667 | _ACEOF |
b757528f JJ |
19668 | |
19669 | fi | |
19670 | ||
fb40c209 | 19671 | |
bec39cab | 19672 | |
030292b7 DJ |
19673 | # Check whether --with-sysroot or --without-sysroot was given. |
19674 | if test "${with_sysroot+set}" = set; then | |
19675 | withval="$with_sysroot" | |
bec39cab | 19676 | |
030292b7 | 19677 | case ${with_sysroot} in |
715d1656 | 19678 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
030292b7 DJ |
19679 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
19680 | esac | |
19681 | ||
19682 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
19683 | ||
19684 | if test "x$exec_prefix" = xNONE; then | |
19685 | if test "x$prefix" = xNONE; then | |
19686 | test_prefix=/usr/local | |
19687 | else | |
19688 | test_prefix=$prefix | |
19689 | fi | |
19690 | else | |
19691 | test_prefix=$exec_prefix | |
19692 | fi | |
19693 | case ${TARGET_SYSTEM_ROOT} in | |
715d1656 AO |
19694 | "${test_prefix}"|"${test_prefix}/"*|\ |
19695 | '${exec_prefix}'|'${exec_prefix}/'*) | |
030292b7 DJ |
19696 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
19697 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
19698 | ;; | |
19699 | esac | |
19700 | ||
19701 | else | |
bec39cab | 19702 | |
030292b7 DJ |
19703 | TARGET_SYSTEM_ROOT= |
19704 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
19705 | ||
bec39cab | 19706 | fi; |
030292b7 DJ |
19707 | |
19708 | ||
19709 | ||
3b851bce AC |
19710 | # NOTE: Don't add -Wall or -Wunused, they both include |
19711 | # -Wunused-parameter which reports bogus warnings. | |
19712 | # NOTE: If you add to this list, remember to update | |
19713 | # gdb/doc/gdbint.texinfo. | |
1decb323 | 19714 | build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ |
0f0cffd2 | 19715 | -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -Wformat-nonliteral \ |
4566dfcf | 19716 | -Wunused-label -Wunused-function" |
d8038014 | 19717 | # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs |
0f0cffd2 | 19718 | # -Wunused-function -Wunused-variable -Wunused-value |
93d56215 | 19719 | # -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual |
d8038014 AC |
19720 | # -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes |
19721 | # -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls | |
19722 | # -Woverloaded-virtual -Winline -Werror" | |
c906108c SS |
19723 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
19724 | if test "${enable_build_warnings+set}" = set; then | |
19725 | enableval="$enable_build_warnings" | |
1decb323 | 19726 | case "${enableval}" in |
c906108c SS |
19727 | yes) ;; |
19728 | no) build_warnings="-w";; | |
19729 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
19730 | build_warnings="${build_warnings} ${t}";; | |
19731 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
19732 | build_warnings="${t} ${build_warnings}";; | |
19733 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
19734 | esac | |
d4f3574e | 19735 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
746a987d | 19736 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
c906108c | 19737 | fi |
bec39cab | 19738 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
3b851bce AC |
19739 | if test "${enable_gdb_build_warnings+set}" = set; then |
19740 | enableval="$enable_gdb_build_warnings" | |
19741 | case "${enableval}" in | |
19742 | yes) ;; | |
19743 | no) build_warnings="-w";; | |
19744 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
19745 | build_warnings="${build_warnings} ${t}";; | |
19746 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
19747 | build_warnings="${t} ${build_warnings}";; | |
19748 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
19749 | esac | |
19750 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
19751 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
19752 | fi | |
bec39cab | 19753 | fi; WARN_CFLAGS="" |
104c1213 | 19754 | WERROR_CFLAGS="" |
c906108c SS |
19755 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
19756 | then | |
bec39cab AC |
19757 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
19758 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
746a987d AC |
19759 | # Separate out the -Werror flag as some files just cannot be |
19760 | # compiled with it enabled. | |
19761 | for w in ${build_warnings}; do | |
19762 | case $w in | |
19763 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
19764 | *) # Check that GCC accepts it | |
4536bbc6 AC |
19765 | saved_CFLAGS="$CFLAGS" |
19766 | CFLAGS="$CFLAGS $w" | |
bec39cab AC |
19767 | cat >conftest.$ac_ext <<_ACEOF |
19768 | /* confdefs.h. */ | |
19769 | _ACEOF | |
19770 | cat confdefs.h >>conftest.$ac_ext | |
19771 | cat >>conftest.$ac_ext <<_ACEOF | |
19772 | /* end confdefs.h. */ | |
4536bbc6 | 19773 | |
bec39cab AC |
19774 | int |
19775 | main () | |
19776 | { | |
4536bbc6 | 19777 | |
bec39cab AC |
19778 | ; |
19779 | return 0; | |
19780 | } | |
19781 | _ACEOF | |
19782 | rm -f conftest.$ac_objext | |
19783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19784 | (eval $ac_compile) 2>conftest.er1 | |
19785 | ac_status=$? | |
19786 | grep -v '^ *+' conftest.er1 >conftest.err | |
19787 | rm -f conftest.er1 | |
19788 | cat conftest.err >&5 | |
19789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19790 | (exit $ac_status); } && | |
19791 | { ac_try='test -z "$ac_c_werror_flag" | |
19792 | || test ! -s conftest.err' | |
19793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19794 | (eval $ac_try) 2>&5 | |
19795 | ac_status=$? | |
19796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19797 | (exit $ac_status); }; } && | |
19798 | { ac_try='test -s conftest.$ac_objext' | |
19799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19800 | (eval $ac_try) 2>&5 | |
19801 | ac_status=$? | |
19802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19803 | (exit $ac_status); }; }; then | |
4536bbc6 AC |
19804 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
19805 | else | |
bec39cab AC |
19806 | echo "$as_me: failed program was:" >&5 |
19807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19808 | ||
4536bbc6 | 19809 | fi |
bec39cab | 19810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4536bbc6 | 19811 | CFLAGS="$saved_CFLAGS" |
746a987d AC |
19812 | esac |
19813 | done | |
bec39cab AC |
19814 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS}${WERROR_CFLAGS}" >&5 |
19815 | echo "${ECHO_T}${WARN_CFLAGS}${WERROR_CFLAGS}" >&6 | |
c906108c SS |
19816 | fi |
19817 | ||
19818 | ||
104c1213 | 19819 | |
7a292a7a | 19820 | # In the Cygwin environment, we need some additional flags. |
bec39cab AC |
19821 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
19822 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 | |
19823 | if test "${gdb_cv_os_cygwin+set}" = set; then | |
19824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19825 | else | |
19826 | cat >conftest.$ac_ext <<_ACEOF | |
19827 | /* confdefs.h. */ | |
19828 | _ACEOF | |
19829 | cat confdefs.h >>conftest.$ac_ext | |
19830 | cat >>conftest.$ac_ext <<_ACEOF | |
19831 | /* end confdefs.h. */ | |
7a292a7a SS |
19832 | |
19833 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) | |
19834 | lose | |
19835 | #endif | |
bec39cab | 19836 | _ACEOF |
7a292a7a | 19837 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 19838 | $EGREP "lose" >/dev/null 2>&1; then |
7a292a7a SS |
19839 | gdb_cv_os_cygwin=yes |
19840 | else | |
7a292a7a SS |
19841 | gdb_cv_os_cygwin=no |
19842 | fi | |
19843 | rm -f conftest* | |
19844 | ||
19845 | fi | |
bec39cab AC |
19846 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
19847 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 | |
7a292a7a | 19848 | |
aff38e61 AC |
19849 | |
19850 | SER_HARDWIRE="ser-unix.o ser-pipe.o ser-tcp.o" | |
19851 | case ${host} in | |
95cbc983 AC |
19852 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
19853 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; | |
aff38e61 AC |
19854 | esac |
19855 | ||
19856 | ||
cd0fc7c3 SS |
19857 | # libreadline needs libuser32.a in a cygwin environment |
19858 | WIN32LIBS= | |
19859 | if test x$gdb_cv_os_cygwin = xyes; then | |
c5394b80 JM |
19860 | WIN32LIBS="-luser32" |
19861 | case "${target}" in | |
19862 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" | |
19863 | ;; | |
19864 | esac | |
cd0fc7c3 | 19865 | fi |
c906108c | 19866 | |
7a292a7a | 19867 | |
3fc11d3e JM |
19868 | LIBGUI="../libgui/src/libgui.a" |
19869 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
19870 | ||
19871 | ||
7a292a7a | 19872 | |
3fc11d3e JM |
19873 | WIN32LDAPP= |
19874 | ||
19875 | ||
19876 | ||
d91670b9 CV |
19877 | case "${host}" in |
19878 | *-*-cygwin*) | |
19879 | configdir="win" | |
19880 | ;; | |
19881 | *) | |
19882 | configdir="unix" | |
19883 | ;; | |
19884 | esac | |
3fc11d3e JM |
19885 | |
19886 | GDBTKLIBS= | |
19887 | if test "${enable_gdbtk}" = "yes"; then | |
19888 | ||
d1c3b63a KS |
19889 | # Gdbtk must have an absolute path to srcdir in order to run |
19890 | # properly when not installed. | |
19891 | here=`pwd` | |
19892 | cd ${srcdir} | |
19893 | GDBTK_SRC_DIR=`pwd` | |
19894 | cd $here | |
19895 | ||
bec39cab | 19896 | |
3fc11d3e JM |
19897 | # |
19898 | # Ok, lets find the tcl configuration | |
bec39cab | 19899 | # First, look for one uninstalled. |
3fc11d3e JM |
19900 | # the alternative search directory is invoked by --with-tclconfig |
19901 | # | |
19902 | ||
19903 | if test x"${no_tcl}" = x ; then | |
19904 | # we reset no_tcl in case something fails here | |
19905 | no_tcl=true | |
bec39cab AC |
19906 | |
19907 | # Check whether --with-tclconfig or --without-tclconfig was given. | |
3fc11d3e JM |
19908 | if test "${with_tclconfig+set}" = set; then |
19909 | withval="$with_tclconfig" | |
19910 | with_tclconfig=${withval} | |
bec39cab AC |
19911 | fi; |
19912 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 | |
19913 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 | |
19914 | if test "${ac_cv_c_tclconfig+set}" = set; then | |
19915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 19916 | else |
bec39cab | 19917 | |
3fc11d3e JM |
19918 | |
19919 | # First check to see if --with-tclconfig was specified. | |
19920 | if test x"${with_tclconfig}" != x ; then | |
19921 | if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
19922 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
19923 | else | |
bec39cab AC |
19924 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
19925 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} | |
19926 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
19927 | fi |
19928 | fi | |
19929 | ||
19930 | # then check for a private Tcl installation | |
19931 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
19932 | for i in \ | |
19933 | ../tcl \ | |
19934 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ | |
19935 | ../../tcl \ | |
19936 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ | |
19937 | ../../../tcl \ | |
19938 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do | |
19939 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
19940 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
19941 | break | |
19942 | fi | |
19943 | done | |
19944 | fi | |
19945 | # check in a few common install locations | |
19946 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
19947 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
19948 | if test -f "$i/tclConfig.sh" ; then | |
19949 | ac_cv_c_tclconfig=`(cd $i; pwd)` | |
19950 | break | |
19951 | fi | |
19952 | done | |
19953 | fi | |
19954 | # check in a few other private locations | |
19955 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
19956 | for i in \ | |
19957 | ${srcdir}/../tcl \ | |
19958 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do | |
19959 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
19960 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
19961 | break | |
19962 | fi | |
19963 | done | |
19964 | fi | |
bec39cab | 19965 | |
3fc11d3e JM |
19966 | fi |
19967 | ||
19968 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
19969 | TCLCONFIG="# no Tcl configs found" | |
bec39cab AC |
19970 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
19971 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} | |
3fc11d3e JM |
19972 | else |
19973 | no_tcl= | |
19974 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh | |
bec39cab AC |
19975 | echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5 |
19976 | echo "${ECHO_T}found $TCLCONFIG" >&6 | |
3fc11d3e JM |
19977 | fi |
19978 | fi | |
19979 | ||
19980 | if test -z "${no_tcl}"; then | |
bec39cab | 19981 | |
3fc11d3e JM |
19982 | . $TCLCONFIG |
19983 | ||
3fc11d3e JM |
19984 | |
19985 | ||
19986 | ||
19987 | ||
3fc11d3e JM |
19988 | |
19989 | ||
19990 | ||
bec39cab AC |
19991 | |
19992 | ||
19993 | ||
19994 | ||
19995 | ||
19996 | ||
19997 | ||
19998 | ||
19999 | ||
20000 | ||
20001 | ||
20002 | ||
20003 | ||
20004 | ||
20005 | ||
20006 | ||
20007 | ||
20008 | ||
20009 | ||
3fc11d3e JM |
20010 | # |
20011 | # Ok, lets find the tk configuration | |
bec39cab | 20012 | # First, look for one uninstalled. |
3fc11d3e JM |
20013 | # the alternative search directory is invoked by --with-tkconfig |
20014 | # | |
20015 | ||
20016 | if test x"${no_tk}" = x ; then | |
20017 | # we reset no_tk in case something fails here | |
20018 | no_tk=true | |
bec39cab AC |
20019 | |
20020 | # Check whether --with-tkconfig or --without-tkconfig was given. | |
3fc11d3e JM |
20021 | if test "${with_tkconfig+set}" = set; then |
20022 | withval="$with_tkconfig" | |
20023 | with_tkconfig=${withval} | |
bec39cab AC |
20024 | fi; |
20025 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 | |
20026 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 | |
20027 | if test "${ac_cv_c_tkconfig+set}" = set; then | |
20028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20029 | else |
bec39cab | 20030 | |
3fc11d3e JM |
20031 | |
20032 | # First check to see if --with-tkconfig was specified. | |
20033 | if test x"${with_tkconfig}" != x ; then | |
20034 | if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
20035 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
20036 | else | |
bec39cab AC |
20037 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
20038 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} | |
20039 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20040 | fi |
20041 | fi | |
20042 | ||
20043 | # then check for a private Tk library | |
20044 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20045 | for i in \ | |
20046 | ../tk \ | |
20047 | `ls -dr ../tk[4-9]* 2>/dev/null` \ | |
20048 | ../../tk \ | |
20049 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ | |
20050 | ../../../tk \ | |
20051 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do | |
20052 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
20053 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
20054 | break | |
20055 | fi | |
20056 | done | |
20057 | fi | |
20058 | # check in a few common install locations | |
20059 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20060 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
20061 | if test -f "$i/tkConfig.sh" ; then | |
20062 | ac_cv_c_tkconfig=`(cd $i; pwd)` | |
20063 | break | |
20064 | fi | |
20065 | done | |
20066 | fi | |
20067 | # check in a few other private locations | |
20068 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20069 | for i in \ | |
20070 | ${srcdir}/../tk \ | |
20071 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do | |
20072 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
20073 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
20074 | break | |
20075 | fi | |
20076 | done | |
20077 | fi | |
bec39cab | 20078 | |
3fc11d3e JM |
20079 | fi |
20080 | ||
20081 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20082 | TKCONFIG="# no Tk configs found" | |
bec39cab AC |
20083 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
20084 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} | |
3fc11d3e JM |
20085 | else |
20086 | no_tk= | |
20087 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh | |
bec39cab AC |
20088 | echo "$as_me:$LINENO: result: found $TKCONFIG" >&5 |
20089 | echo "${ECHO_T}found $TKCONFIG" >&6 | |
3fc11d3e JM |
20090 | fi |
20091 | fi | |
20092 | ||
20093 | ||
20094 | ||
dd2504ab JM |
20095 | # now look for Tcl library stuff |
20096 | ||
d91670b9 | 20097 | tcldir="../tcl/${configdir}/" |
dd2504ab JM |
20098 | |
20099 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" | |
20100 | ||
3fc11d3e JM |
20101 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
20102 | # point to doing Tcl. | |
20103 | if test -z "${no_tk}"; then | |
bec39cab | 20104 | |
3fc11d3e JM |
20105 | if test -f "$TKCONFIG" ; then |
20106 | . $TKCONFIG | |
20107 | fi | |
20108 | ||
3fc11d3e | 20109 | |
3fc11d3e JM |
20110 | |
20111 | ||
3fc11d3e | 20112 | |
bec39cab AC |
20113 | |
20114 | ||
20115 | ||
20116 | ||
20117 | ||
20118 | ||
20119 | ||
20120 | ||
20121 | ||
3fc11d3e JM |
20122 | # |
20123 | # Ok, lets find the tcl source trees so we can use the headers | |
20124 | # Warning: transition of version 9 to 10 will break this algorithm | |
20125 | # because 10 sorts before 9. We also look for just tcl. We have to | |
20126 | # be careful that we don't match stuff like tclX by accident. | |
20127 | # the alternative search directory is involked by --with-tclinclude | |
20128 | # | |
20129 | ||
20130 | no_tcl=true | |
bec39cab AC |
20131 | echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5 |
20132 | echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6 | |
20133 | ||
3fc11d3e JM |
20134 | # Check whether --with-tclinclude or --without-tclinclude was given. |
20135 | if test "${with_tclinclude+set}" = set; then | |
20136 | withval="$with_tclinclude" | |
20137 | with_tclinclude=${withval} | |
bec39cab AC |
20138 | fi; |
20139 | if test "${ac_cv_c_tclh+set}" = set; then | |
20140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20141 | else |
bec39cab | 20142 | |
3fc11d3e JM |
20143 | # first check to see if --with-tclinclude was specified |
20144 | if test x"${with_tclinclude}" != x ; then | |
20145 | if test -f ${with_tclinclude}/tclInt.h ; then | |
20146 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` | |
20147 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then | |
20148 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` | |
20149 | else | |
bec39cab AC |
20150 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5 |
20151 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;} | |
20152 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20153 | fi |
20154 | fi | |
20155 | ||
20156 | # next check if it came with Tcl configuration file | |
20157 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
20158 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then | |
20159 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` | |
20160 | fi | |
20161 | fi | |
20162 | ||
20163 | # next check in private source directory | |
20164 | # | |
20165 | # since ls returns lowest version numbers first, reverse its output | |
20166 | if test x"${ac_cv_c_tclh}" = x ; then | |
20167 | for i in \ | |
20168 | ${srcdir}/../tcl \ | |
20169 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ | |
20170 | ${srcdir}/../../tcl \ | |
20171 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ | |
20172 | ${srcdir}/../../../tcl \ | |
20173 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do | |
20174 | if test -f $i/generic/tclInt.h ; then | |
20175 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
20176 | break | |
20177 | fi | |
20178 | done | |
20179 | fi | |
20180 | # finally check in a few common install locations | |
20181 | # | |
20182 | # since ls returns lowest version numbers first, reverse its output | |
20183 | if test x"${ac_cv_c_tclh}" = x ; then | |
20184 | for i in \ | |
20185 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ | |
20186 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ | |
20187 | /usr/local/src/tcl \ | |
20188 | /usr/local/lib/tcl \ | |
20189 | ${prefix}/include ; do | |
20190 | if test -f $i/generic/tclInt.h ; then | |
20191 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
20192 | break | |
20193 | fi | |
20194 | done | |
20195 | fi | |
20196 | # see if one is installed | |
20197 | if test x"${ac_cv_c_tclh}" = x ; then | |
bec39cab AC |
20198 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
20199 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 | |
20200 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
20201 | if test "${ac_cv_header_tclInt_h+set}" = set; then | |
20202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20203 | fi | |
20204 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 | |
20205 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
20206 | else | |
20207 | # Is the header compilable? | |
20208 | echo "$as_me:$LINENO: checking tclInt.h usability" >&5 | |
20209 | echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6 | |
20210 | cat >conftest.$ac_ext <<_ACEOF | |
20211 | /* confdefs.h. */ | |
20212 | _ACEOF | |
20213 | cat confdefs.h >>conftest.$ac_ext | |
20214 | cat >>conftest.$ac_ext <<_ACEOF | |
20215 | /* end confdefs.h. */ | |
20216 | $ac_includes_default | |
20217 | #include <tclInt.h> | |
20218 | _ACEOF | |
20219 | rm -f conftest.$ac_objext | |
20220 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20221 | (eval $ac_compile) 2>conftest.er1 | |
20222 | ac_status=$? | |
20223 | grep -v '^ *+' conftest.er1 >conftest.err | |
20224 | rm -f conftest.er1 | |
20225 | cat conftest.err >&5 | |
20226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20227 | (exit $ac_status); } && | |
20228 | { ac_try='test -z "$ac_c_werror_flag" | |
20229 | || test ! -s conftest.err' | |
20230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20231 | (eval $ac_try) 2>&5 | |
20232 | ac_status=$? | |
20233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20234 | (exit $ac_status); }; } && | |
20235 | { ac_try='test -s conftest.$ac_objext' | |
20236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20237 | (eval $ac_try) 2>&5 | |
20238 | ac_status=$? | |
20239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20240 | (exit $ac_status); }; }; then | |
20241 | ac_header_compiler=yes | |
20242 | else | |
20243 | echo "$as_me: failed program was:" >&5 | |
20244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20245 | ||
20246 | ac_header_compiler=no | |
20247 | fi | |
20248 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20249 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20250 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20251 | ||
20252 | # Is the header present? | |
20253 | echo "$as_me:$LINENO: checking tclInt.h presence" >&5 | |
20254 | echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6 | |
20255 | cat >conftest.$ac_ext <<_ACEOF | |
20256 | /* confdefs.h. */ | |
20257 | _ACEOF | |
20258 | cat confdefs.h >>conftest.$ac_ext | |
20259 | cat >>conftest.$ac_ext <<_ACEOF | |
20260 | /* end confdefs.h. */ | |
3fc11d3e | 20261 | #include <tclInt.h> |
bec39cab AC |
20262 | _ACEOF |
20263 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20264 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20265 | ac_status=$? | |
20266 | grep -v '^ *+' conftest.er1 >conftest.err | |
20267 | rm -f conftest.er1 | |
20268 | cat conftest.err >&5 | |
20269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20270 | (exit $ac_status); } >/dev/null; then | |
20271 | if test -s conftest.err; then | |
20272 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20273 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
20274 | else | |
20275 | ac_cpp_err= | |
20276 | fi | |
20277 | else | |
20278 | ac_cpp_err=yes | |
3fc11d3e | 20279 | fi |
bec39cab AC |
20280 | if test -z "$ac_cpp_err"; then |
20281 | ac_header_preproc=yes | |
20282 | else | |
20283 | echo "$as_me: failed program was:" >&5 | |
20284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20285 | ||
20286 | ac_header_preproc=no | |
3fc11d3e | 20287 | fi |
bec39cab AC |
20288 | rm -f conftest.err conftest.$ac_ext |
20289 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20290 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20291 | ||
20292 | # So? What about this header? | |
20293 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20294 | yes:no: ) | |
20295 | { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20296 | echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20297 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5 | |
20298 | echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;} | |
20299 | ac_header_preproc=yes | |
20300 | ;; | |
20301 | no:yes:* ) | |
20302 | { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5 | |
20303 | echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;} | |
20304 | { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5 | |
20305 | echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;} | |
20306 | { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5 | |
20307 | echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;} | |
20308 | { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20309 | echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
20310 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5 | |
20311 | echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;} | |
20312 | { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5 | |
20313 | echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;} | |
20314 | ( | |
20315 | cat <<\_ASBOX | |
20316 | ## ------------------------------------------ ## | |
20317 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20318 | ## ------------------------------------------ ## | |
20319 | _ASBOX | |
20320 | ) | | |
20321 | sed "s/^/$as_me: WARNING: /" >&2 | |
20322 | ;; | |
20323 | esac | |
20324 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 | |
20325 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
20326 | if test "${ac_cv_header_tclInt_h+set}" = set; then | |
20327 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20328 | else | |
20329 | ac_cv_header_tclInt_h=$ac_header_preproc | |
20330 | fi | |
20331 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 | |
20332 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
20333 | ||
20334 | fi | |
20335 | if test $ac_cv_header_tclInt_h = yes; then | |
3fc11d3e JM |
20336 | ac_cv_c_tclh=installed |
20337 | else | |
bec39cab | 20338 | ac_cv_c_tclh="" |
3fc11d3e JM |
20339 | fi |
20340 | ||
bec39cab | 20341 | |
3fc11d3e JM |
20342 | fi |
20343 | ||
20344 | fi | |
20345 | ||
20346 | if test x"${ac_cv_c_tclh}" = x ; then | |
20347 | TCLHDIR="# no Tcl private headers found" | |
bec39cab AC |
20348 | { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5 |
20349 | echo "$as_me: error: Can't find Tcl private headers" >&2;} | |
20350 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20351 | fi |
20352 | if test x"${ac_cv_c_tclh}" != x ; then | |
20353 | no_tcl="" | |
20354 | if test x"${ac_cv_c_tclh}" = x"installed" ; then | |
bec39cab AC |
20355 | echo "$as_me:$LINENO: result: is installed" >&5 |
20356 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
20357 | TCLHDIR="" |
20358 | else | |
bec39cab AC |
20359 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5 |
20360 | echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6 | |
3fc11d3e JM |
20361 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
20362 | TCLHDIR="-I${ac_cv_c_tclh}" | |
20363 | fi | |
20364 | fi | |
20365 | ||
20366 | ||
20367 | ||
bec39cab | 20368 | |
3fc11d3e JM |
20369 | # |
20370 | # Ok, lets find the tk source trees so we can use the headers | |
20371 | # If the directory (presumably symlink) named "tk" exists, use that one | |
20372 | # in preference to any others. Same logic is used when choosing library | |
20373 | # and again with Tcl. The search order is the best place to look first, then in | |
20374 | # decreasing significance. The loop breaks if the trigger file is found. | |
20375 | # Note the gross little conversion here of srcdir by cd'ing to the found | |
20376 | # directory. This converts the path from a relative to an absolute, so | |
20377 | # recursive cache variables for the path will work right. We check all | |
20378 | # the possible paths in one loop rather than many seperate loops to speed | |
20379 | # things up. | |
20380 | # the alternative search directory is involked by --with-tkinclude | |
20381 | # | |
20382 | no_tk=true | |
bec39cab AC |
20383 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
20384 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 | |
20385 | ||
3fc11d3e JM |
20386 | # Check whether --with-tkinclude or --without-tkinclude was given. |
20387 | if test "${with_tkinclude+set}" = set; then | |
20388 | withval="$with_tkinclude" | |
20389 | with_tkinclude=${withval} | |
bec39cab AC |
20390 | fi; |
20391 | if test "${ac_cv_c_tkh+set}" = set; then | |
20392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20393 | else |
bec39cab | 20394 | |
3fc11d3e JM |
20395 | # first check to see if --with-tkinclude was specified |
20396 | if test x"${with_tkinclude}" != x ; then | |
20397 | if test -f ${with_tkinclude}/tk.h ; then | |
20398 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` | |
20399 | elif test -f ${with_tkinclude}/generic/tk.h ; then | |
20400 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` | |
20401 | else | |
bec39cab AC |
20402 | { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5 |
20403 | echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;} | |
20404 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20405 | fi |
20406 | fi | |
20407 | ||
20408 | # next check if it came with Tk configuration file | |
20409 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
20410 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then | |
20411 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` | |
20412 | fi | |
20413 | fi | |
20414 | ||
20415 | # next check in private source directory | |
20416 | # | |
20417 | # since ls returns lowest version numbers first, reverse its output | |
20418 | if test x"${ac_cv_c_tkh}" = x ; then | |
20419 | for i in \ | |
20420 | ${srcdir}/../tk \ | |
20421 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ | |
20422 | ${srcdir}/../../tk \ | |
20423 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ | |
20424 | ${srcdir}/../../../tk \ | |
20425 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do | |
20426 | if test -f $i/generic/tk.h ; then | |
20427 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
20428 | break | |
20429 | fi | |
20430 | done | |
20431 | fi | |
20432 | # finally check in a few common install locations | |
20433 | # | |
20434 | # since ls returns lowest version numbers first, reverse its output | |
20435 | if test x"${ac_cv_c_tkh}" = x ; then | |
20436 | for i in \ | |
20437 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ | |
20438 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ | |
20439 | /usr/local/src/tk \ | |
20440 | /usr/local/lib/tk \ | |
20441 | ${prefix}/include ; do | |
20442 | if test -f $i/generic/tk.h ; then | |
20443 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
20444 | break | |
20445 | fi | |
20446 | done | |
20447 | fi | |
20448 | # see if one is installed | |
20449 | if test x"${ac_cv_c_tkh}" = x ; then | |
bec39cab AC |
20450 | if test "${ac_cv_header_tk_h+set}" = set; then |
20451 | echo "$as_me:$LINENO: checking for tk.h" >&5 | |
20452 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
20453 | if test "${ac_cv_header_tk_h+set}" = set; then | |
20454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20455 | fi | |
20456 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 | |
20457 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
20458 | else | |
20459 | # Is the header compilable? | |
20460 | echo "$as_me:$LINENO: checking tk.h usability" >&5 | |
20461 | echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6 | |
20462 | cat >conftest.$ac_ext <<_ACEOF | |
20463 | /* confdefs.h. */ | |
20464 | _ACEOF | |
20465 | cat confdefs.h >>conftest.$ac_ext | |
20466 | cat >>conftest.$ac_ext <<_ACEOF | |
20467 | /* end confdefs.h. */ | |
20468 | $ac_includes_default | |
3fc11d3e | 20469 | #include <tk.h> |
bec39cab AC |
20470 | _ACEOF |
20471 | rm -f conftest.$ac_objext | |
20472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20473 | (eval $ac_compile) 2>conftest.er1 | |
20474 | ac_status=$? | |
20475 | grep -v '^ *+' conftest.er1 >conftest.err | |
20476 | rm -f conftest.er1 | |
20477 | cat conftest.err >&5 | |
20478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20479 | (exit $ac_status); } && | |
20480 | { ac_try='test -z "$ac_c_werror_flag" | |
20481 | || test ! -s conftest.err' | |
20482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20483 | (eval $ac_try) 2>&5 | |
20484 | ac_status=$? | |
20485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20486 | (exit $ac_status); }; } && | |
20487 | { ac_try='test -s conftest.$ac_objext' | |
20488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20489 | (eval $ac_try) 2>&5 | |
20490 | ac_status=$? | |
20491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20492 | (exit $ac_status); }; }; then | |
20493 | ac_header_compiler=yes | |
20494 | else | |
20495 | echo "$as_me: failed program was:" >&5 | |
20496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20497 | ||
20498 | ac_header_compiler=no | |
20499 | fi | |
20500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20501 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20502 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20503 | ||
20504 | # Is the header present? | |
20505 | echo "$as_me:$LINENO: checking tk.h presence" >&5 | |
20506 | echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6 | |
20507 | cat >conftest.$ac_ext <<_ACEOF | |
20508 | /* confdefs.h. */ | |
20509 | _ACEOF | |
20510 | cat confdefs.h >>conftest.$ac_ext | |
20511 | cat >>conftest.$ac_ext <<_ACEOF | |
20512 | /* end confdefs.h. */ | |
20513 | #include <tk.h> | |
20514 | _ACEOF | |
20515 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20516 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20517 | ac_status=$? | |
20518 | grep -v '^ *+' conftest.er1 >conftest.err | |
20519 | rm -f conftest.er1 | |
20520 | cat conftest.err >&5 | |
20521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20522 | (exit $ac_status); } >/dev/null; then | |
20523 | if test -s conftest.err; then | |
20524 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20525 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
20526 | else | |
20527 | ac_cpp_err= | |
20528 | fi | |
20529 | else | |
20530 | ac_cpp_err=yes | |
3fc11d3e | 20531 | fi |
bec39cab AC |
20532 | if test -z "$ac_cpp_err"; then |
20533 | ac_header_preproc=yes | |
20534 | else | |
20535 | echo "$as_me: failed program was:" >&5 | |
20536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20537 | ||
20538 | ac_header_preproc=no | |
20539 | fi | |
20540 | rm -f conftest.err conftest.$ac_ext | |
20541 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20542 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20543 | ||
20544 | # So? What about this header? | |
20545 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20546 | yes:no: ) | |
20547 | { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20548 | echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20549 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5 | |
20550 | echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;} | |
20551 | ac_header_preproc=yes | |
20552 | ;; | |
20553 | no:yes:* ) | |
20554 | { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5 | |
20555 | echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;} | |
20556 | { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5 | |
20557 | echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;} | |
20558 | { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5 | |
20559 | echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;} | |
20560 | { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5 | |
20561 | echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
20562 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5 | |
20563 | echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;} | |
20564 | { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5 | |
20565 | echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;} | |
20566 | ( | |
20567 | cat <<\_ASBOX | |
20568 | ## ------------------------------------------ ## | |
20569 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20570 | ## ------------------------------------------ ## | |
20571 | _ASBOX | |
20572 | ) | | |
20573 | sed "s/^/$as_me: WARNING: /" >&2 | |
20574 | ;; | |
20575 | esac | |
20576 | echo "$as_me:$LINENO: checking for tk.h" >&5 | |
20577 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
20578 | if test "${ac_cv_header_tk_h+set}" = set; then | |
20579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20580 | else | |
20581 | ac_cv_header_tk_h=$ac_header_preproc | |
20582 | fi | |
20583 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 | |
20584 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
20585 | ||
3fc11d3e | 20586 | fi |
bec39cab | 20587 | if test $ac_cv_header_tk_h = yes; then |
3fc11d3e JM |
20588 | ac_cv_c_tkh=installed |
20589 | else | |
bec39cab | 20590 | ac_cv_c_tkh="" |
3fc11d3e JM |
20591 | fi |
20592 | ||
bec39cab | 20593 | |
3fc11d3e JM |
20594 | fi |
20595 | ||
20596 | fi | |
20597 | ||
20598 | if test x"${ac_cv_c_tkh}" != x ; then | |
20599 | no_tk="" | |
20600 | if test x"${ac_cv_c_tkh}" = x"installed" ; then | |
bec39cab AC |
20601 | echo "$as_me:$LINENO: result: is installed" >&5 |
20602 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
20603 | TKHDIR="" |
20604 | else | |
bec39cab AC |
20605 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5 |
20606 | echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6 | |
3fc11d3e JM |
20607 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
20608 | TKHDIR="-I${ac_cv_c_tkh}" | |
20609 | fi | |
20610 | else | |
20611 | TKHDIR="# no Tk directory found" | |
bec39cab AC |
20612 | { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5 |
20613 | echo "$as_me: WARNING: Can't find Tk private headers" >&2;} | |
3fc11d3e JM |
20614 | no_tk=true |
20615 | fi | |
20616 | ||
20617 | ||
20618 | ||
bec39cab AC |
20619 | |
20620 | echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5 | |
20621 | echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
20622 | if test x"${ac_cv_c_itclh}" = x ; then |
20623 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do | |
20624 | if test -f $i/generic/itcl.h ; then | |
20625 | ac_cv_c_itclh=`(cd $i/generic; pwd)` | |
20626 | break | |
20627 | fi | |
20628 | done | |
20629 | fi | |
20630 | if test x"${ac_cv_c_itclh}" = x ; then | |
20631 | ITCLHDIR="# no Itcl private headers found" | |
bec39cab AC |
20632 | { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5 |
20633 | echo "$as_me: error: Can't find Itcl private headers" >&2;} | |
20634 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20635 | fi |
20636 | if test x"${ac_cv_c_itclh}" != x ; then | |
20637 | ITCLHDIR="-I${ac_cv_c_itclh}" | |
20638 | fi | |
20639 | # should always be here | |
20640 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" | |
20641 | ||
20642 | #AC_SUBST(ITCLLIB) | |
20643 | ||
bec39cab AC |
20644 | |
20645 | echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5 | |
20646 | echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
20647 | if test x"${ac_cv_c_itkh}" = x ; then |
20648 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do | |
20649 | if test -f $i/generic/itk.h ; then | |
20650 | ac_cv_c_itkh=`(cd $i/generic; pwd)` | |
20651 | break | |
20652 | fi | |
20653 | done | |
20654 | fi | |
20655 | if test x"${ac_cv_c_itkh}" = x ; then | |
20656 | ITKHDIR="# no Itk private headers found" | |
bec39cab AC |
20657 | { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5 |
20658 | echo "$as_me: error: Can't find Itk private headers" >&2;} | |
20659 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20660 | fi |
20661 | if test x"${ac_cv_c_itkh}" != x ; then | |
20662 | ITKHDIR="-I${ac_cv_c_itkh}" | |
20663 | fi | |
20664 | # should always be here | |
20665 | # ITKLIB="../itcl/itk/unix/libitk.a" | |
20666 | ||
20667 | #AC_SUBST(ITKLIB) | |
20668 | ||
3fc11d3e | 20669 | |
dd2504ab JM |
20670 | |
20671 | # now look for Tk library stuff | |
20672 | ||
d91670b9 | 20673 | tkdir="../tk/${configdir}/" |
dd2504ab JM |
20674 | |
20675 | TK_DEPS="${tkdir}${TK_LIB_FILE}" | |
20676 | ||
3fc11d3e JM |
20677 | # now look for Itcl library stuff |
20678 | ||
bec39cab | 20679 | |
3fc11d3e JM |
20680 | # |
20681 | # Ok, lets find the itcl configuration | |
bec39cab | 20682 | # First, look for one uninstalled. |
3fc11d3e JM |
20683 | # the alternative search directory is invoked by --with-itclconfig |
20684 | # | |
20685 | ||
20686 | if test x"${no_itcl}" = x ; then | |
20687 | # we reset no_itcl in case something fails here | |
20688 | no_itcl=true | |
bec39cab AC |
20689 | |
20690 | # Check whether --with-itclconfig or --without-itclconfig was given. | |
3fc11d3e JM |
20691 | if test "${with_itclconfig+set}" = set; then |
20692 | withval="$with_itclconfig" | |
20693 | with_itclconfig=${withval} | |
bec39cab AC |
20694 | fi; |
20695 | echo "$as_me:$LINENO: checking for Itcl configuration" >&5 | |
20696 | echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6 | |
20697 | if test "${ac_cv_c_itclconfig+set}" = set; then | |
20698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20699 | else |
bec39cab | 20700 | |
3fc11d3e JM |
20701 | |
20702 | # First check to see if --with-itclconfig was specified. | |
20703 | if test x"${with_itclconfig}" != x ; then | |
20704 | if test -f "${with_itclconfig}/itclConfig.sh" ; then | |
20705 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` | |
20706 | else | |
bec39cab AC |
20707 | { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 |
20708 | echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} | |
20709 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20710 | fi |
20711 | fi | |
20712 | ||
20713 | # then check for a private Itcl library | |
20714 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
20715 | for i in \ | |
20716 | ../itcl/itcl \ | |
20717 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ | |
20718 | ../../itcl \ | |
20719 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ | |
20720 | ../../../itcl \ | |
20721 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do | |
20722 | if test -f "$i/itclConfig.sh" ; then | |
20723 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
20724 | break | |
20725 | fi | |
20726 | done | |
20727 | fi | |
20728 | # check in a few common install locations | |
20729 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
20730 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
20731 | if test -f "$i/itclConfig.sh" ; then | |
20732 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
20733 | break | |
20734 | fi | |
20735 | done | |
20736 | fi | |
20737 | # check in a few other private locations | |
20738 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
20739 | for i in \ | |
20740 | ${srcdir}/../itcl/itcl \ | |
20741 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do | |
20742 | if test -f "$i/itclConfig.sh" ; then | |
20743 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
20744 | break | |
20745 | fi | |
20746 | done | |
20747 | fi | |
bec39cab | 20748 | |
3fc11d3e JM |
20749 | fi |
20750 | ||
20751 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
20752 | ITCLCONFIG="# no Itcl configs found" | |
bec39cab AC |
20753 | { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5 |
20754 | echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;} | |
3fc11d3e JM |
20755 | else |
20756 | no_itcl= | |
20757 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh | |
bec39cab AC |
20758 | echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5 |
20759 | echo "${ECHO_T}found $ITCLCONFIG" >&6 | |
3fc11d3e JM |
20760 | fi |
20761 | fi | |
20762 | ||
20763 | if test -z "${no_itcl}"; then | |
bec39cab | 20764 | |
3fc11d3e JM |
20765 | if test -f "$ITCLCONFIG" ; then |
20766 | . $ITCLCONFIG | |
20767 | fi | |
20768 | ||
3fc11d3e | 20769 | |
3fc11d3e JM |
20770 | |
20771 | ||
bec39cab AC |
20772 | |
20773 | ||
20774 | ||
20775 | ||
20776 | ||
20777 | ||
20778 | ||
3fc11d3e JM |
20779 | |
20780 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" | |
b381d62d | 20781 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
3fc11d3e JM |
20782 | fi |
20783 | ||
bec39cab | 20784 | |
3fc11d3e | 20785 | # now look for Itk library stuff |
bec39cab | 20786 | |
3fc11d3e JM |
20787 | # |
20788 | # Ok, lets find the itk configuration | |
bec39cab | 20789 | # First, look for one uninstalled. |
3fc11d3e JM |
20790 | # the alternative search directory is invoked by --with-itkconfig |
20791 | # | |
20792 | ||
20793 | if test x"${no_itk}" = x ; then | |
20794 | # we reset no_itk in case something fails here | |
20795 | no_itk=true | |
bec39cab AC |
20796 | |
20797 | # Check whether --with-itkconfig or --without-itkconfig was given. | |
3fc11d3e JM |
20798 | if test "${with_itkconfig+set}" = set; then |
20799 | withval="$with_itkconfig" | |
20800 | with_itkconfig=${withval} | |
bec39cab AC |
20801 | fi; |
20802 | echo "$as_me:$LINENO: checking for Itk configuration" >&5 | |
20803 | echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6 | |
20804 | if test "${ac_cv_c_itkconfig+set}" = set; then | |
20805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 20806 | else |
bec39cab | 20807 | |
3fc11d3e JM |
20808 | |
20809 | # First check to see if --with-itkconfig was specified. | |
20810 | if test x"${with_itkconfig}" != x ; then | |
20811 | if test -f "${with_itkconfig}/itkConfig.sh" ; then | |
20812 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` | |
20813 | else | |
bec39cab AC |
20814 | { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5 |
20815 | echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;} | |
20816 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
20817 | fi |
20818 | fi | |
20819 | ||
20820 | # then check for a private Itk library | |
20821 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
20822 | for i in \ | |
20823 | ../itcl/itk \ | |
20824 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ | |
20825 | ../../itk \ | |
20826 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ | |
20827 | ../../../itk \ | |
20828 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do | |
20829 | if test -f "$i/itkConfig.sh" ; then | |
20830 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
20831 | break | |
20832 | fi | |
20833 | done | |
20834 | fi | |
20835 | # check in a few common install locations | |
20836 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
20837 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
20838 | if test -f "$i/itkConfig.sh" ; then | |
20839 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
20840 | break | |
20841 | fi | |
20842 | done | |
20843 | fi | |
20844 | # check in a few other private locations | |
20845 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
20846 | for i in \ | |
20847 | ${srcdir}/../itcl/itk \ | |
20848 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do | |
20849 | if test -f "$i/itkConfig.sh" ; then | |
20850 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
20851 | break | |
20852 | fi | |
20853 | done | |
20854 | fi | |
bec39cab | 20855 | |
3fc11d3e JM |
20856 | fi |
20857 | ||
20858 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
20859 | ITKCONFIG="# no Itk configs found" | |
bec39cab AC |
20860 | { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5 |
20861 | echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;} | |
3fc11d3e JM |
20862 | else |
20863 | no_itk= | |
20864 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh | |
bec39cab AC |
20865 | echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5 |
20866 | echo "${ECHO_T}found $ITKCONFIG" >&6 | |
3fc11d3e JM |
20867 | fi |
20868 | fi | |
20869 | ||
20870 | ||
bec39cab AC |
20871 | if test -z "${no_itcl}"; then |
20872 | ||
20873 | if test -f "$ITKCONFIG" ; then | |
20874 | . $ITKCONFIG | |
20875 | fi | |
20876 | ||
20877 | ||
20878 | ||
20879 | ||
20880 | ||
20881 | ||
3fc11d3e | 20882 | |
3fc11d3e | 20883 | |
3fc11d3e JM |
20884 | |
20885 | ||
3fc11d3e JM |
20886 | |
20887 | ||
3fc11d3e | 20888 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
b381d62d | 20889 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
3fc11d3e JM |
20890 | fi |
20891 | ||
4226a5a5 | 20892 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
3fc11d3e JM |
20893 | # Tcl/Tk 8.1 require -fwritable strings. I don't |
20894 | # know whether 8.2 will or not, but I bet it will. | |
20895 | # I don't have to worry about 7.x since we don't support it. | |
20896 | GDBTK_CFLAGS="" | |
20897 | if test "$GCC" = "yes"; then | |
20898 | if test "$TCL_VERSION" != "8.0" ; then | |
20899 | GDBTK_CFLAGS="-fwritable-strings" | |
20900 | fi | |
20901 | fi | |
20902 | ||
20903 | # Include some libraries that Tcl and Tk want. | |
b2a1bd4f | 20904 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
3fc11d3e JM |
20905 | # Yes, the ordering seems wrong here. But it isn't. |
20906 | # TK_LIBS is the list of libraries that need to be linked | |
20907 | # after Tcl/Tk. Note that this isn't put into LIBS. If it | |
20908 | # were in LIBS then any link tests after this point would | |
20909 | # try to include things like `$(LIBGUI)', which wouldn't work. | |
20910 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
4226a5a5 FN |
20911 | |
20912 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" | |
20913 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" | |
20914 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" | |
33f8ca73 AC |
20915 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
20916 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" | |
20917 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" | |
20918 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" | |
3fc11d3e JM |
20919 | |
20920 | if test x$gdb_cv_os_cygwin = xyes; then | |
20921 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" | |
20922 | WIN32LDAPP="-Wl,--subsystem,console" | |
20923 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" | |
20924 | fi | |
20925 | fi | |
20926 | fi | |
ffc6a242 | 20927 | |
bec39cab AC |
20928 | |
20929 | ||
20930 | subdirs="$subdirs gdbtk" | |
3ace7edb | 20931 | |
3fc11d3e JM |
20932 | fi |
20933 | ||
20934 | ||
20935 | ||
20936 | ||
20937 | ||
20938 | ||
20939 | ||
20940 | ||
20941 | ||
20942 | ||
20943 | ||
20944 | ||
20945 | ||
dd2504ab | 20946 | |
bec39cab AC |
20947 | echo "$as_me:$LINENO: checking for X" >&5 |
20948 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
20949 | ||
c906108c SS |
20950 | |
20951 | # Check whether --with-x or --without-x was given. | |
20952 | if test "${with_x+set}" = set; then | |
20953 | withval="$with_x" | |
c906108c | 20954 | |
bec39cab | 20955 | fi; |
c906108c SS |
20956 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
20957 | if test "x$with_x" = xno; then | |
20958 | # The user explicitly disabled X. | |
20959 | have_x=disabled | |
20960 | else | |
20961 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
20962 | # Both variables are already set. | |
20963 | have_x=yes | |
20964 | else | |
bec39cab AC |
20965 | if test "${ac_cv_have_x+set}" = set; then |
20966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
20967 | else |
20968 | # One or both of the vars are not set, and there is no cached value. | |
bec39cab AC |
20969 | ac_x_includes=no ac_x_libraries=no |
20970 | rm -fr conftest.dir | |
20971 | if mkdir conftest.dir; then | |
20972 | cd conftest.dir | |
c906108c | 20973 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
bec39cab | 20974 | cat >Imakefile <<'_ACEOF' |
c906108c SS |
20975 | acfindx: |
20976 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
bec39cab | 20977 | _ACEOF |
c906108c SS |
20978 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
20979 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
20980 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
20981 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
20982 | for ac_extension in a so sl; do | |
20983 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
bec39cab AC |
20984 | test -f $ac_im_libdir/libX11.$ac_extension; then |
20985 | ac_im_usrlibdir=$ac_im_libdir; break | |
c906108c SS |
20986 | fi |
20987 | done | |
20988 | # Screen out bogus values from the imake configuration. They are | |
20989 | # bogus both because they are the default anyway, and because | |
20990 | # using them would break gcc on systems where it needs fixed includes. | |
bec39cab | 20991 | case $ac_im_incroot in |
c906108c | 20992 | /usr/include) ;; |
bec39cab | 20993 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
c906108c | 20994 | esac |
bec39cab | 20995 | case $ac_im_usrlibdir in |
c906108c | 20996 | /usr/lib | /lib) ;; |
bec39cab | 20997 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
c906108c SS |
20998 | esac |
20999 | fi | |
21000 | cd .. | |
bec39cab | 21001 | rm -fr conftest.dir |
c906108c SS |
21002 | fi |
21003 | ||
bec39cab AC |
21004 | # Standard set of common directories for X headers. |
21005 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
21006 | ac_x_header_dirs=' | |
21007 | /usr/X11/include | |
21008 | /usr/X11R6/include | |
21009 | /usr/X11R5/include | |
21010 | /usr/X11R4/include | |
21011 | ||
21012 | /usr/include/X11 | |
21013 | /usr/include/X11R6 | |
21014 | /usr/include/X11R5 | |
21015 | /usr/include/X11R4 | |
21016 | ||
21017 | /usr/local/X11/include | |
21018 | /usr/local/X11R6/include | |
21019 | /usr/local/X11R5/include | |
21020 | /usr/local/X11R4/include | |
21021 | ||
21022 | /usr/local/include/X11 | |
21023 | /usr/local/include/X11R6 | |
21024 | /usr/local/include/X11R5 | |
21025 | /usr/local/include/X11R4 | |
21026 | ||
21027 | /usr/X386/include | |
21028 | /usr/x386/include | |
21029 | /usr/XFree86/include/X11 | |
21030 | ||
21031 | /usr/include | |
21032 | /usr/local/include | |
21033 | /usr/unsupported/include | |
21034 | /usr/athena/include | |
21035 | /usr/local/x11r5/include | |
21036 | /usr/lpp/Xamples/include | |
21037 | ||
21038 | /usr/openwin/include | |
21039 | /usr/openwin/share/include' | |
21040 | ||
21041 | if test "$ac_x_includes" = no; then | |
21042 | # Guess where to find include files, by looking for Intrinsic.h. | |
c906108c | 21043 | # First, try using that file with no special directory specified. |
bec39cab AC |
21044 | cat >conftest.$ac_ext <<_ACEOF |
21045 | /* confdefs.h. */ | |
21046 | _ACEOF | |
21047 | cat confdefs.h >>conftest.$ac_ext | |
21048 | cat >>conftest.$ac_ext <<_ACEOF | |
21049 | /* end confdefs.h. */ | |
21050 | #include <X11/Intrinsic.h> | |
21051 | _ACEOF | |
21052 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21053 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21054 | ac_status=$? | |
21055 | grep -v '^ *+' conftest.er1 >conftest.err | |
21056 | rm -f conftest.er1 | |
21057 | cat conftest.err >&5 | |
21058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21059 | (exit $ac_status); } >/dev/null; then | |
21060 | if test -s conftest.err; then | |
21061 | ac_cpp_err=$ac_c_preproc_warn_flag | |
21062 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
21063 | else | |
21064 | ac_cpp_err= | |
21065 | fi | |
21066 | else | |
21067 | ac_cpp_err=yes | |
21068 | fi | |
21069 | if test -z "$ac_cpp_err"; then | |
c906108c SS |
21070 | # We can compile using X headers with no special include directory. |
21071 | ac_x_includes= | |
21072 | else | |
bec39cab AC |
21073 | echo "$as_me: failed program was:" >&5 |
21074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21075 | ||
21076 | for ac_dir in $ac_x_header_dirs; do | |
21077 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
21078 | ac_x_includes=$ac_dir | |
21079 | break | |
21080 | fi | |
21081 | done | |
c906108c | 21082 | fi |
bec39cab AC |
21083 | rm -f conftest.err conftest.$ac_ext |
21084 | fi # $ac_x_includes = no | |
c906108c | 21085 | |
bec39cab | 21086 | if test "$ac_x_libraries" = no; then |
c906108c | 21087 | # Check for the libraries. |
c906108c SS |
21088 | # See if we find them without any special options. |
21089 | # Don't add to $LIBS permanently. | |
bec39cab AC |
21090 | ac_save_LIBS=$LIBS |
21091 | LIBS="-lXt $LIBS" | |
21092 | cat >conftest.$ac_ext <<_ACEOF | |
21093 | /* confdefs.h. */ | |
21094 | _ACEOF | |
21095 | cat confdefs.h >>conftest.$ac_ext | |
21096 | cat >>conftest.$ac_ext <<_ACEOF | |
21097 | /* end confdefs.h. */ | |
21098 | #include <X11/Intrinsic.h> | |
21099 | int | |
21100 | main () | |
21101 | { | |
21102 | XtMalloc (0) | |
21103 | ; | |
21104 | return 0; | |
21105 | } | |
21106 | _ACEOF | |
21107 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21108 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21109 | (eval $ac_link) 2>conftest.er1 | |
21110 | ac_status=$? | |
21111 | grep -v '^ *+' conftest.er1 >conftest.err | |
21112 | rm -f conftest.er1 | |
21113 | cat conftest.err >&5 | |
21114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21115 | (exit $ac_status); } && | |
21116 | { ac_try='test -z "$ac_c_werror_flag" | |
21117 | || test ! -s conftest.err' | |
21118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21119 | (eval $ac_try) 2>&5 | |
21120 | ac_status=$? | |
21121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21122 | (exit $ac_status); }; } && | |
21123 | { ac_try='test -s conftest$ac_exeext' | |
21124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21125 | (eval $ac_try) 2>&5 | |
21126 | ac_status=$? | |
21127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21128 | (exit $ac_status); }; }; then | |
21129 | LIBS=$ac_save_LIBS | |
c906108c SS |
21130 | # We can link X programs with no special library path. |
21131 | ac_x_libraries= | |
21132 | else | |
bec39cab AC |
21133 | echo "$as_me: failed program was:" >&5 |
21134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21135 | ||
21136 | LIBS=$ac_save_LIBS | |
21137 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
c906108c | 21138 | do |
bec39cab | 21139 | # Don't even attempt the hair of trying to link an X program! |
c906108c | 21140 | for ac_extension in a so sl; do |
bec39cab | 21141 | if test -r $ac_dir/libXt.$ac_extension; then |
c906108c SS |
21142 | ac_x_libraries=$ac_dir |
21143 | break 2 | |
21144 | fi | |
21145 | done | |
21146 | done | |
21147 | fi | |
bec39cab AC |
21148 | rm -f conftest.err conftest.$ac_objext \ |
21149 | conftest$ac_exeext conftest.$ac_ext | |
21150 | fi # $ac_x_libraries = no | |
c906108c | 21151 | |
bec39cab | 21152 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
c906108c SS |
21153 | # Didn't find X anywhere. Cache the known absence of X. |
21154 | ac_cv_have_x="have_x=no" | |
21155 | else | |
21156 | # Record where we found X for the cache. | |
21157 | ac_cv_have_x="have_x=yes \ | |
bec39cab | 21158 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
c906108c SS |
21159 | fi |
21160 | fi | |
bec39cab | 21161 | |
c906108c SS |
21162 | fi |
21163 | eval "$ac_cv_have_x" | |
21164 | fi # $with_x != no | |
21165 | ||
21166 | if test "$have_x" != yes; then | |
bec39cab AC |
21167 | echo "$as_me:$LINENO: result: $have_x" >&5 |
21168 | echo "${ECHO_T}$have_x" >&6 | |
c906108c SS |
21169 | no_x=yes |
21170 | else | |
21171 | # If each of the values was on the command line, it overrides each guess. | |
21172 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
21173 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
21174 | # Update the cache value to reflect the command line values. | |
21175 | ac_cv_have_x="have_x=yes \ | |
21176 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
bec39cab AC |
21177 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
21178 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
c906108c SS |
21179 | fi |
21180 | ||
21181 | ||
9cc52bde MK |
21182 | # Check whether we should enable the TUI, but only do so if we really |
21183 | # can. | |
21184 | if test x"$enable_tui" = xyes; then | |
21185 | if test -d $srcdir/tui; then | |
21186 | if test "$ac_cv_search_waddstr" != no; then | |
21187 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" | |
21188 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | |
21189 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | |
21190 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" | |
21191 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" | |
21192 | CONFIG_ALL="${CONFIG_ALL} all-tui" | |
21193 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
21194 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
21195 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
21196 | else | |
bec39cab AC |
21197 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
21198 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} | |
9cc52bde MK |
21199 | fi |
21200 | fi | |
21201 | fi | |
21202 | ||
bec39cab AC |
21203 | # Unlike the sim directory, whether a simulator is linked is controlled by |
21204 | # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file. | |
7a292a7a SS |
21205 | # This code just checks for a few cases where we'd like to ignore those |
21206 | # definitions, even when they're present in the '.mt' file. These cases | |
21207 | # are when --disable-sim is specified, or if the simulator directory is | |
6c5cfe5b | 21208 | # not part of the source tree. |
7a292a7a SS |
21209 | # |
21210 | # Check whether --enable-sim or --disable-sim was given. | |
21211 | if test "${enable_sim+set}" = set; then | |
21212 | enableval="$enable_sim" | |
21213 | echo "enable_sim = $enable_sim"; | |
21214 | echo "enableval = ${enableval}"; | |
21215 | case "${enableval}" in | |
21216 | yes) ignore_sim=false ;; | |
21217 | no) ignore_sim=true ;; | |
21218 | *) ignore_sim=false ;; | |
21219 | esac | |
21220 | else | |
21221 | ignore_sim=false | |
bec39cab | 21222 | fi; |
7a292a7a SS |
21223 | |
21224 | if test ! -d "${srcdir}/../sim"; then | |
21225 | ignore_sim=true | |
21226 | fi | |
21227 | ||
21228 | if test "${ignore_sim}" = "true"; then | |
21229 | IGNORE_SIM="SIM=" | |
21230 | IGNORE_SIM_OBS="SIM_OBS=" | |
21231 | else | |
21232 | IGNORE_SIM="" | |
21233 | IGNORE_SIM_OBS="" | |
bec39cab | 21234 | cat >>confdefs.h <<\_ACEOF |
7a292a7a | 21235 | #define WITH_SIM 1 |
bec39cab | 21236 | _ACEOF |
7a292a7a SS |
21237 | |
21238 | fi | |
21239 | ||
21240 | ||
21241 | ||
c906108c SS |
21242 | |
21243 | ||
21244 | ||
21245 | ||
21246 | ||
21247 | ||
dfcd3bfb | 21248 | |
e56ac5c3 AC |
21249 | |
21250 | ||
b3a90332 AC |
21251 | |
21252 | ||
c35f4ffc | 21253 | # List of host floatformats. |
bec39cab AC |
21254 | |
21255 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 21256 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
bec39cab | 21257 | _ACEOF |
c35f4ffc | 21258 | |
bec39cab AC |
21259 | |
21260 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 21261 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
bec39cab AC |
21262 | _ACEOF |
21263 | ||
c35f4ffc | 21264 | |
bec39cab | 21265 | cat >>confdefs.h <<_ACEOF |
c35f4ffc | 21266 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
bec39cab | 21267 | _ACEOF |
c35f4ffc AC |
21268 | |
21269 | ||
c906108c SS |
21270 | # target_subdir is used by the testsuite to find the target libraries. |
21271 | target_subdir= | |
21272 | if test "${host}" != "${target}"; then | |
21273 | target_subdir="${target_alias}/" | |
21274 | fi | |
21275 | ||
21276 | ||
21277 | frags= | |
0dad8a66 MK |
21278 | if test "${target}" = "${host}"; then |
21279 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh | |
21280 | if test ! -f ${host_makefile_frag}; then | |
bec39cab AC |
21281 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
21282 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} | |
21283 | { (exit 1); exit 1; }; } | |
0dad8a66 MK |
21284 | fi |
21285 | frags="$frags $host_makefile_frag" | |
21286 | else | |
21287 | host_makefile_frag=/dev/null | |
c906108c | 21288 | fi |
c906108c SS |
21289 | |
21290 | target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | |
21291 | if test ! -f ${target_makefile_frag}; then | |
bec39cab AC |
21292 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5 |
21293 | echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;} | |
21294 | { (exit 1); exit 1; }; } | |
c906108c SS |
21295 | fi |
21296 | frags="$frags $target_makefile_frag" | |
21297 | ||
21298 | ||
21299 | ||
21300 | ||
21301 | ||
21302 | hostfile=`sed -n ' | |
21303 | s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
21304 | ' ${host_makefile_frag}` | |
21305 | ||
21306 | targetfile=`sed -n ' | |
2c0fc042 | 21307 | s/DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
c906108c SS |
21308 | ' ${target_makefile_frag}` |
21309 | ||
c906108c | 21310 | if test "${target}" = "${host}"; then |
a85f51e7 DJ |
21311 | # We pick this up from the host configuration file (.mh) because we |
21312 | # do not have a native configuration Makefile fragment. | |
c906108c SS |
21313 | nativefile=`sed -n ' |
21314 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
21315 | ' ${host_makefile_frag}` | |
c906108c SS |
21316 | fi |
21317 | ||
21318 | ||
b00a8037 | 21319 | if test x"${gdb_osabi}" != x ; then |
bec39cab AC |
21320 | |
21321 | cat >>confdefs.h <<_ACEOF | |
b00a8037 | 21322 | #define GDB_OSABI_DEFAULT $gdb_osabi |
bec39cab | 21323 | _ACEOF |
b00a8037 DJ |
21324 | |
21325 | fi | |
21326 | ||
8dcde887 MK |
21327 | # Enable multi-ice-gdb-server. |
21328 | # Check whether --enable-multi-ice or --disable-multi-ice was given. | |
21329 | if test "${enable_multi_ice+set}" = set; then | |
21330 | enableval="$enable_multi_ice" | |
21331 | case $enableval in | |
21332 | yes | no) | |
21333 | ;; | |
bec39cab AC |
21334 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
21335 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} | |
21336 | { (exit 1); exit 1; }; } ;; | |
8dcde887 | 21337 | esac |
bec39cab | 21338 | fi; |
8dcde887 | 21339 | if test "x$enable_multi_ice" = xyes; then |
bec39cab AC |
21340 | |
21341 | ||
21342 | subdirs="$subdirs multi-ice" | |
3ace7edb | 21343 | |
a85f51e7 DJ |
21344 | fi |
21345 | ||
8dcde887 MK |
21346 | # We only build gdbserver automatically if host and target are the same. |
21347 | if test "x$target" = "x$host"; then | |
bec39cab AC |
21348 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
21349 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 | |
8dcde887 | 21350 | if test "x$build_gdbserver" = xyes; then |
bec39cab AC |
21351 | echo "$as_me:$LINENO: result: yes" >&5 |
21352 | echo "${ECHO_T}yes" >&6 | |
21353 | ||
21354 | ||
21355 | subdirs="$subdirs gdbserver" | |
3ace7edb | 21356 | |
8dcde887 | 21357 | else |
bec39cab AC |
21358 | echo "$as_me:$LINENO: result: no" >&5 |
21359 | echo "${ECHO_T}no" >&6 | |
8dcde887 MK |
21360 | fi |
21361 | fi | |
21362 | ||
2c0fc042 AC |
21363 | # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or |
21364 | # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link | |
21365 | # to an empty version. | |
c906108c SS |
21366 | |
21367 | files= | |
21368 | links= | |
5a2402b8 | 21369 | |
c906108c | 21370 | rm -f xm.h |
5a2402b8 | 21371 | xm_h="" |
c906108c | 21372 | if test "${hostfile}" != ""; then |
5a2402b8 | 21373 | xm_h=xm.h |
0f475e27 AC |
21374 | case "${hostfile}" in |
21375 | xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;; | |
21376 | * ) GDB_XM_FILE="${hostfile}" | |
21377 | esac | |
5a2402b8 AC |
21378 | files="${files} ${GDB_XM_FILE}" |
21379 | links="${links} xm.h" | |
bec39cab | 21380 | cat >>confdefs.h <<_ACEOF |
b78960be | 21381 | #define GDB_XM_FILE "${GDB_XM_FILE}" |
bec39cab | 21382 | _ACEOF |
5a2402b8 | 21383 | |
c906108c | 21384 | fi |
5a2402b8 AC |
21385 | |
21386 | ||
c906108c | 21387 | rm -f tm.h |
5a2402b8 | 21388 | tm_h="" |
c906108c | 21389 | if test "${targetfile}" != ""; then |
5a2402b8 | 21390 | tm_h=tm.h |
0f475e27 | 21391 | case "${targetfile}" in |
b8c4aece | 21392 | tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;; |
0f475e27 AC |
21393 | * ) GDB_TM_FILE="${targetfile}" |
21394 | esac | |
5a2402b8 AC |
21395 | files="${files} ${GDB_TM_FILE}" |
21396 | links="${links} tm.h" | |
bec39cab | 21397 | cat >>confdefs.h <<_ACEOF |
b78960be | 21398 | #define GDB_TM_FILE "${GDB_TM_FILE}" |
bec39cab | 21399 | _ACEOF |
5a2402b8 | 21400 | |
c906108c | 21401 | fi |
5a2402b8 AC |
21402 | |
21403 | ||
c906108c | 21404 | rm -f nm.h |
5a2402b8 | 21405 | nm_h="" |
c906108c | 21406 | if test "${nativefile}" != ""; then |
5a2402b8 | 21407 | nm_h=nm.h |
0f475e27 AC |
21408 | case "${nativefile}" in |
21409 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; | |
21410 | * ) GDB_NM_FILE="${nativefile}" | |
21411 | esac | |
5a2402b8 AC |
21412 | files="${files} ${GDB_NM_FILE}" |
21413 | links="${links} nm.h" | |
bec39cab | 21414 | cat >>confdefs.h <<_ACEOF |
b78960be | 21415 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
bec39cab | 21416 | _ACEOF |
5a2402b8 | 21417 | |
c906108c | 21418 | fi |
5a2402b8 AC |
21419 | |
21420 | ||
bec39cab AC |
21421 | ac_sources="$files" |
21422 | ac_dests="$links" | |
21423 | while test -n "$ac_sources"; do | |
21424 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
21425 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
21426 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
21427 | done | |
21428 | ac_config_links="$ac_config_links $ac_config_links_1" | |
c906108c SS |
21429 | |
21430 | ||
c906108c SS |
21431 | |
21432 | ||
c906108c | 21433 | |
c906108c | 21434 | |
bec39cab AC |
21435 | cat >>confdefs.h <<\_ACEOF |
21436 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" | |
21437 | _ACEOF | |
c906108c | 21438 | |
234b45d4 | 21439 | |
234b45d4 KB |
21440 | |
21441 | ||
21442 | ||
bec39cab | 21443 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
234b45d4 KB |
21444 | if test "${with_libiconv_prefix+set}" = set; then |
21445 | withval="$with_libiconv_prefix" | |
bec39cab | 21446 | |
234b45d4 KB |
21447 | for dir in `echo "$withval" | tr : ' '`; do |
21448 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
21449 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
21450 | done | |
234b45d4 | 21451 | |
bec39cab | 21452 | fi; |
234b45d4 | 21453 | |
bec39cab AC |
21454 | echo "$as_me:$LINENO: checking for iconv" >&5 |
21455 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
21456 | if test "${am_cv_func_iconv+set}" = set; then | |
21457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
234b45d4 | 21458 | else |
bec39cab | 21459 | |
234b45d4 KB |
21460 | am_cv_func_iconv="no, consider installing GNU libiconv" |
21461 | am_cv_lib_iconv=no | |
bec39cab AC |
21462 | cat >conftest.$ac_ext <<_ACEOF |
21463 | /* confdefs.h. */ | |
21464 | _ACEOF | |
21465 | cat confdefs.h >>conftest.$ac_ext | |
21466 | cat >>conftest.$ac_ext <<_ACEOF | |
21467 | /* end confdefs.h. */ | |
234b45d4 KB |
21468 | #include <stdlib.h> |
21469 | #include <iconv.h> | |
bec39cab AC |
21470 | int |
21471 | main () | |
21472 | { | |
234b45d4 KB |
21473 | iconv_t cd = iconv_open("",""); |
21474 | iconv(cd,NULL,NULL,NULL,NULL); | |
21475 | iconv_close(cd); | |
bec39cab AC |
21476 | ; |
21477 | return 0; | |
21478 | } | |
21479 | _ACEOF | |
21480 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21481 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21482 | (eval $ac_link) 2>conftest.er1 | |
21483 | ac_status=$? | |
21484 | grep -v '^ *+' conftest.er1 >conftest.err | |
21485 | rm -f conftest.er1 | |
21486 | cat conftest.err >&5 | |
21487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21488 | (exit $ac_status); } && | |
21489 | { ac_try='test -z "$ac_c_werror_flag" | |
21490 | || test ! -s conftest.err' | |
21491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21492 | (eval $ac_try) 2>&5 | |
21493 | ac_status=$? | |
21494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21495 | (exit $ac_status); }; } && | |
21496 | { ac_try='test -s conftest$ac_exeext' | |
21497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21498 | (eval $ac_try) 2>&5 | |
21499 | ac_status=$? | |
21500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21501 | (exit $ac_status); }; }; then | |
234b45d4 KB |
21502 | am_cv_func_iconv=yes |
21503 | else | |
bec39cab AC |
21504 | echo "$as_me: failed program was:" >&5 |
21505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21506 | ||
234b45d4 | 21507 | fi |
bec39cab AC |
21508 | rm -f conftest.err conftest.$ac_objext \ |
21509 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
21510 | if test "$am_cv_func_iconv" != yes; then |
21511 | am_save_LIBS="$LIBS" | |
21512 | LIBS="$LIBS -liconv" | |
bec39cab AC |
21513 | cat >conftest.$ac_ext <<_ACEOF |
21514 | /* confdefs.h. */ | |
21515 | _ACEOF | |
21516 | cat confdefs.h >>conftest.$ac_ext | |
21517 | cat >>conftest.$ac_ext <<_ACEOF | |
21518 | /* end confdefs.h. */ | |
234b45d4 KB |
21519 | #include <stdlib.h> |
21520 | #include <iconv.h> | |
bec39cab AC |
21521 | int |
21522 | main () | |
21523 | { | |
234b45d4 KB |
21524 | iconv_t cd = iconv_open("",""); |
21525 | iconv(cd,NULL,NULL,NULL,NULL); | |
21526 | iconv_close(cd); | |
bec39cab AC |
21527 | ; |
21528 | return 0; | |
21529 | } | |
21530 | _ACEOF | |
21531 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21533 | (eval $ac_link) 2>conftest.er1 | |
21534 | ac_status=$? | |
21535 | grep -v '^ *+' conftest.er1 >conftest.err | |
21536 | rm -f conftest.er1 | |
21537 | cat conftest.err >&5 | |
21538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21539 | (exit $ac_status); } && | |
21540 | { ac_try='test -z "$ac_c_werror_flag" | |
21541 | || test ! -s conftest.err' | |
21542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21543 | (eval $ac_try) 2>&5 | |
21544 | ac_status=$? | |
21545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21546 | (exit $ac_status); }; } && | |
21547 | { ac_try='test -s conftest$ac_exeext' | |
21548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21549 | (eval $ac_try) 2>&5 | |
21550 | ac_status=$? | |
21551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21552 | (exit $ac_status); }; }; then | |
234b45d4 KB |
21553 | am_cv_lib_iconv=yes |
21554 | am_cv_func_iconv=yes | |
21555 | else | |
bec39cab AC |
21556 | echo "$as_me: failed program was:" >&5 |
21557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21558 | ||
234b45d4 | 21559 | fi |
bec39cab AC |
21560 | rm -f conftest.err conftest.$ac_objext \ |
21561 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
21562 | LIBS="$am_save_LIBS" |
21563 | fi | |
bec39cab AC |
21564 | |
21565 | fi | |
21566 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
21567 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
21568 | if test "$am_cv_func_iconv" = yes; then | |
21569 | ||
21570 | cat >>confdefs.h <<\_ACEOF | |
21571 | #define HAVE_ICONV 1 | |
21572 | _ACEOF | |
21573 | ||
21574 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 | |
21575 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
21576 | if test "${am_cv_proto_iconv+set}" = set; then | |
21577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21578 | else | |
21579 | ||
21580 | cat >conftest.$ac_ext <<_ACEOF | |
21581 | /* confdefs.h. */ | |
21582 | _ACEOF | |
21583 | cat confdefs.h >>conftest.$ac_ext | |
21584 | cat >>conftest.$ac_ext <<_ACEOF | |
21585 | /* end confdefs.h. */ | |
21586 | ||
21587 | #include <stdlib.h> | |
21588 | #include <iconv.h> | |
21589 | extern | |
21590 | #ifdef __cplusplus | |
21591 | "C" | |
21592 | #endif | |
21593 | #if defined(__STDC__) || defined(__cplusplus) | |
21594 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
21595 | #else | |
21596 | size_t iconv(); | |
21597 | #endif | |
21598 | ||
21599 | int | |
21600 | main () | |
21601 | { | |
21602 | ||
21603 | ; | |
21604 | return 0; | |
21605 | } | |
21606 | _ACEOF | |
21607 | rm -f conftest.$ac_objext | |
21608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21609 | (eval $ac_compile) 2>conftest.er1 | |
21610 | ac_status=$? | |
21611 | grep -v '^ *+' conftest.er1 >conftest.err | |
21612 | rm -f conftest.er1 | |
21613 | cat conftest.err >&5 | |
21614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21615 | (exit $ac_status); } && | |
21616 | { ac_try='test -z "$ac_c_werror_flag" | |
21617 | || test ! -s conftest.err' | |
21618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21619 | (eval $ac_try) 2>&5 | |
21620 | ac_status=$? | |
21621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21622 | (exit $ac_status); }; } && | |
21623 | { ac_try='test -s conftest.$ac_objext' | |
21624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21625 | (eval $ac_try) 2>&5 | |
21626 | ac_status=$? | |
21627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21628 | (exit $ac_status); }; }; then | |
21629 | am_cv_proto_iconv_arg1="" | |
21630 | else | |
21631 | echo "$as_me: failed program was:" >&5 | |
21632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21633 | ||
21634 | am_cv_proto_iconv_arg1="const" | |
21635 | fi | |
21636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21637 | 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);" | |
21638 | fi | |
21639 | ||
21640 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
21641 | echo "$as_me:$LINENO: result: ${ac_t:- | |
21642 | }$am_cv_proto_iconv" >&5 | |
21643 | echo "${ECHO_T}${ac_t:- | |
21644 | }$am_cv_proto_iconv" >&6 | |
21645 | ||
21646 | cat >>confdefs.h <<_ACEOF | |
21647 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
21648 | _ACEOF | |
21649 | ||
21650 | fi | |
21651 | LIBICONV= | |
21652 | if test "$am_cv_lib_iconv" = yes; then | |
21653 | LIBICONV="-liconv" | |
21654 | fi | |
21655 | ||
21656 | ||
21657 | ||
21658 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in" | |
21659 | ac_config_commands="$ac_config_commands default" | |
21660 | cat >confcache <<\_ACEOF | |
21661 | # This file is a shell script that caches the results of configure | |
21662 | # tests run on this system so they can be shared between configure | |
21663 | # scripts and configure runs, see configure's option --config-cache. | |
21664 | # It is not useful on other systems. If it contains results you don't | |
21665 | # want to keep, you may remove or edit it. | |
21666 | # | |
21667 | # config.status only pays attention to the cache file if you give it | |
21668 | # the --recheck option to rerun configure. | |
21669 | # | |
21670 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21671 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21672 | # following values. | |
21673 | ||
21674 | _ACEOF | |
21675 | ||
21676 | # The following way of writing the cache mishandles newlines in values, | |
21677 | # but we know of no workaround that is simple, portable, and efficient. | |
21678 | # So, don't put newlines in cache variables' values. | |
21679 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21680 | # and sets the high bit in the cache file unless we assign to the vars. | |
21681 | { | |
21682 | (set) 2>&1 | | |
21683 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
21684 | *ac_space=\ *) | |
21685 | # `set' does not quote correctly, so add quotes (double-quote | |
21686 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21687 | sed -n \ | |
21688 | "s/'/'\\\\''/g; | |
21689 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
21690 | ;; | |
21691 | *) | |
21692 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21693 | sed -n \ | |
21694 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
21695 | ;; | |
21696 | esac; | |
21697 | } | | |
21698 | sed ' | |
21699 | t clear | |
21700 | : clear | |
21701 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21702 | t end | |
21703 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21704 | : end' >>confcache | |
21705 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21706 | if test -w $cache_file; then | |
21707 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
21708 | cat confcache >$cache_file | |
21709 | else | |
21710 | echo "not updating unwritable cache $cache_file" | |
21711 | fi | |
21712 | fi | |
21713 | rm -f confcache | |
21714 | ||
21715 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
21716 | # Let make expand exec_prefix. | |
21717 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
21718 | ||
21719 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
21720 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
21721 | # trailing colons and then remove the whole line if VPATH becomes empty | |
21722 | # (actually we leave an empty line to preserve line numbers). | |
21723 | if test "x$srcdir" = x.; then | |
21724 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
21725 | s/:*\$(srcdir):*/:/; | |
21726 | s/:*\${srcdir}:*/:/; | |
21727 | s/:*@srcdir@:*/:/; | |
21728 | s/^\([^=]*=[ ]*\):*/\1/; | |
21729 | s/:*$//; | |
21730 | s/^[^=]*=[ ]*$//; | |
21731 | }' | |
21732 | fi | |
21733 | ||
21734 | DEFS=-DHAVE_CONFIG_H | |
21735 | ||
21736 | ac_libobjs= | |
21737 | ac_ltlibobjs= | |
21738 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
21739 | # 1. Remove the extension, and $U if already installed. | |
21740 | ac_i=`echo "$ac_i" | | |
21741 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
21742 | # 2. Add them. | |
21743 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
21744 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
21745 | done | |
21746 | LIBOBJS=$ac_libobjs | |
21747 | ||
21748 | LTLIBOBJS=$ac_ltlibobjs | |
21749 | ||
21750 | ||
85981d60 AC |
21751 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
21752 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
21753 | Usually this means the macro was only invoked conditionally." >&5 | |
21754 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
21755 | Usually this means the macro was only invoked conditionally." >&2;} | |
21756 | { (exit 1); exit 1; }; } | |
21757 | fi | |
bec39cab AC |
21758 | |
21759 | : ${CONFIG_STATUS=./config.status} | |
21760 | ac_clean_files_save=$ac_clean_files | |
21761 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
21762 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
21763 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
21764 | cat >$CONFIG_STATUS <<_ACEOF | |
21765 | #! $SHELL | |
21766 | # Generated by $as_me. | |
21767 | # Run this file to recreate the current configuration. | |
21768 | # Compiler output produced by configure, useful for debugging | |
21769 | # configure, is in config.log if it exists. | |
21770 | ||
21771 | debug=false | |
21772 | ac_cs_recheck=false | |
21773 | ac_cs_silent=false | |
21774 | SHELL=\${CONFIG_SHELL-$SHELL} | |
21775 | _ACEOF | |
21776 | ||
21777 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21778 | ## --------------------- ## | |
21779 | ## M4sh Initialization. ## | |
21780 | ## --------------------- ## | |
21781 | ||
21782 | # Be Bourne compatible | |
21783 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
21784 | emulate sh | |
21785 | NULLCMD=: | |
21786 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21787 | # is contrary to our usage. Disable this feature. | |
21788 | alias -g '${1+"$@"}'='"$@"' | |
21789 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
21790 | set -o posix | |
21791 | fi | |
21792 | DUALCASE=1; export DUALCASE # for MKS sh | |
21793 | ||
21794 | # Support unset when possible. | |
21795 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
21796 | as_unset=unset | |
21797 | else | |
21798 | as_unset=false | |
21799 | fi | |
21800 | ||
21801 | ||
21802 | # Work around bugs in pre-3.0 UWIN ksh. | |
21803 | $as_unset ENV MAIL MAILPATH | |
21804 | PS1='$ ' | |
21805 | PS2='> ' | |
21806 | PS4='+ ' | |
21807 | ||
21808 | # NLS nuisances. | |
21809 | for as_var in \ | |
21810 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
21811 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
21812 | LC_TELEPHONE LC_TIME | |
21813 | do | |
21814 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
21815 | eval $as_var=C; export $as_var | |
21816 | else | |
21817 | $as_unset $as_var | |
21818 | fi | |
21819 | done | |
21820 | ||
21821 | # Required to use basename. | |
21822 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21823 | as_expr=expr | |
21824 | else | |
21825 | as_expr=false | |
21826 | fi | |
21827 | ||
21828 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
21829 | as_basename=basename | |
21830 | else | |
21831 | as_basename=false | |
21832 | fi | |
21833 | ||
21834 | ||
21835 | # Name of the executable. | |
21836 | as_me=`$as_basename "$0" || | |
21837 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
21838 | X"$0" : 'X\(//\)$' \| \ | |
21839 | X"$0" : 'X\(/\)$' \| \ | |
21840 | . : '\(.\)' 2>/dev/null || | |
21841 | echo X/"$0" | | |
21842 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
21843 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
21844 | /^X\/\(\/\).*/{ s//\1/; q; } | |
21845 | s/.*/./; q'` | |
21846 | ||
21847 | ||
21848 | # PATH needs CR, and LINENO needs CR and PATH. | |
21849 | # Avoid depending upon Character Ranges. | |
21850 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
21851 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
21852 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
21853 | as_cr_digits='0123456789' | |
21854 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
21855 | ||
21856 | # The user is always right. | |
21857 | if test "${PATH_SEPARATOR+set}" != set; then | |
21858 | echo "#! /bin/sh" >conf$$.sh | |
21859 | echo "exit 0" >>conf$$.sh | |
21860 | chmod +x conf$$.sh | |
21861 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
21862 | PATH_SEPARATOR=';' | |
21863 | else | |
21864 | PATH_SEPARATOR=: | |
21865 | fi | |
21866 | rm -f conf$$.sh | |
21867 | fi | |
21868 | ||
21869 | ||
21870 | as_lineno_1=$LINENO | |
21871 | as_lineno_2=$LINENO | |
21872 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21873 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21874 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
21875 | # Find who we are. Look in the path if we contain no path at all | |
21876 | # relative or not. | |
21877 | case $0 in | |
21878 | *[\\/]* ) as_myself=$0 ;; | |
21879 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21880 | for as_dir in $PATH | |
21881 | do | |
21882 | IFS=$as_save_IFS | |
21883 | test -z "$as_dir" && as_dir=. | |
21884 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
21885 | done | |
21886 | ||
21887 | ;; | |
21888 | esac | |
21889 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
21890 | # in which case we are not to be found in the path. | |
21891 | if test "x$as_myself" = x; then | |
21892 | as_myself=$0 | |
21893 | fi | |
21894 | if test ! -f "$as_myself"; then | |
21895 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
21896 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
21897 | { (exit 1); exit 1; }; } | |
21898 | fi | |
21899 | case $CONFIG_SHELL in | |
21900 | '') | |
21901 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21902 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
21903 | do | |
21904 | IFS=$as_save_IFS | |
21905 | test -z "$as_dir" && as_dir=. | |
21906 | for as_base in sh bash ksh sh5; do | |
21907 | case $as_dir in | |
21908 | /*) | |
21909 | if ("$as_dir/$as_base" -c ' | |
21910 | as_lineno_1=$LINENO | |
21911 | as_lineno_2=$LINENO | |
21912 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
21913 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
21914 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
21915 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
21916 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
21917 | CONFIG_SHELL=$as_dir/$as_base | |
21918 | export CONFIG_SHELL | |
21919 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
21920 | fi;; | |
21921 | esac | |
21922 | done | |
21923 | done | |
21924 | ;; | |
21925 | esac | |
21926 | ||
21927 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
21928 | # uniformly replaced by the line number. The first 'sed' inserts a | |
21929 | # line-number line before each line; the second 'sed' does the real | |
21930 | # work. The second script uses 'N' to pair each line-number line | |
21931 | # with the numbered line, and appends trailing '-' during | |
21932 | # substitution so that $LINENO is not a special case at line end. | |
21933 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
21934 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
21935 | sed '=' <$as_myself | | |
21936 | sed ' | |
21937 | N | |
21938 | s,$,-, | |
21939 | : loop | |
21940 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
21941 | t loop | |
21942 | s,-$,, | |
21943 | s,^['$as_cr_digits']*\n,, | |
21944 | ' >$as_me.lineno && | |
21945 | chmod +x $as_me.lineno || | |
21946 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
21947 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
21948 | { (exit 1); exit 1; }; } | |
21949 | ||
21950 | # Don't try to exec as it changes $[0], causing all sort of problems | |
21951 | # (the dirname of $[0] is not the place where we might find the | |
21952 | # original and so on. Autoconf is especially sensible to this). | |
21953 | . ./$as_me.lineno | |
21954 | # Exit status is that of the last command. | |
21955 | exit | |
21956 | } | |
21957 | ||
21958 | ||
21959 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
21960 | *c*,-n*) ECHO_N= ECHO_C=' | |
21961 | ' ECHO_T=' ' ;; | |
21962 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
21963 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
21964 | esac | |
21965 | ||
21966 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
21967 | as_expr=expr | |
21968 | else | |
21969 | as_expr=false | |
21970 | fi | |
21971 | ||
21972 | rm -f conf$$ conf$$.exe conf$$.file | |
21973 | echo >conf$$.file | |
21974 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
21975 | # We could just check for DJGPP; but this test a) works b) is more generic | |
21976 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
21977 | if test -f conf$$.exe; then | |
21978 | # Don't use ln at all; we don't have any links | |
21979 | as_ln_s='cp -p' | |
21980 | else | |
21981 | as_ln_s='ln -s' | |
21982 | fi | |
21983 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
21984 | as_ln_s=ln | |
21985 | else | |
21986 | as_ln_s='cp -p' | |
21987 | fi | |
21988 | rm -f conf$$ conf$$.exe conf$$.file | |
21989 | ||
21990 | if mkdir -p . 2>/dev/null; then | |
21991 | as_mkdir_p=: | |
21992 | else | |
21993 | test -d ./-p && rmdir ./-p | |
21994 | as_mkdir_p=false | |
21995 | fi | |
21996 | ||
21997 | as_executable_p="test -f" | |
21998 | ||
21999 | # Sed expression to map a string onto a valid CPP name. | |
22000 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
22001 | ||
22002 | # Sed expression to map a string onto a valid variable name. | |
22003 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
22004 | ||
22005 | ||
22006 | # IFS | |
22007 | # We need space, tab and new line, in precisely that order. | |
22008 | as_nl=' | |
22009 | ' | |
22010 | IFS=" $as_nl" | |
22011 | ||
22012 | # CDPATH. | |
22013 | $as_unset CDPATH | |
22014 | ||
22015 | exec 6>&1 | |
22016 | ||
22017 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
22018 | # report actual input values of CONFIG_FILES etc. instead of their | |
22019 | # values after options handling. Logging --version etc. is OK. | |
22020 | exec 5>>config.log | |
22021 | { | |
22022 | echo | |
22023 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
22024 | ## Running $as_me. ## | |
22025 | _ASBOX | |
22026 | } >&5 | |
22027 | cat >&5 <<_CSEOF | |
22028 | ||
22029 | This file was extended by $as_me, which was | |
22030 | generated by GNU Autoconf 2.59. Invocation command line was | |
22031 | ||
22032 | CONFIG_FILES = $CONFIG_FILES | |
22033 | CONFIG_HEADERS = $CONFIG_HEADERS | |
22034 | CONFIG_LINKS = $CONFIG_LINKS | |
22035 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
22036 | $ $0 $@ | |
22037 | ||
22038 | _CSEOF | |
22039 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
22040 | echo >&5 | |
22041 | _ACEOF | |
22042 | ||
22043 | # Files that config.status was made for. | |
22044 | if test -n "$ac_config_files"; then | |
22045 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
22046 | fi | |
22047 | ||
22048 | if test -n "$ac_config_headers"; then | |
22049 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
22050 | fi | |
22051 | ||
22052 | if test -n "$ac_config_links"; then | |
22053 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
234b45d4 KB |
22054 | fi |
22055 | ||
bec39cab AC |
22056 | if test -n "$ac_config_commands"; then |
22057 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
22058 | fi | |
234b45d4 | 22059 | |
bec39cab | 22060 | cat >>$CONFIG_STATUS <<\_ACEOF |
234b45d4 | 22061 | |
bec39cab AC |
22062 | ac_cs_usage="\ |
22063 | \`$as_me' instantiates files from templates according to the | |
22064 | current configuration. | |
234b45d4 | 22065 | |
bec39cab | 22066 | Usage: $0 [OPTIONS] [FILE]... |
234b45d4 | 22067 | |
bec39cab AC |
22068 | -h, --help print this help, then exit |
22069 | -V, --version print version number, then exit | |
22070 | -q, --quiet do not print progress messages | |
22071 | -d, --debug don't remove temporary files | |
22072 | --recheck update $as_me by reconfiguring in the same conditions | |
22073 | --file=FILE[:TEMPLATE] | |
22074 | instantiate the configuration file FILE | |
22075 | --header=FILE[:TEMPLATE] | |
22076 | instantiate the configuration header FILE | |
234b45d4 | 22077 | |
bec39cab AC |
22078 | Configuration files: |
22079 | $config_files | |
234b45d4 | 22080 | |
bec39cab AC |
22081 | Configuration headers: |
22082 | $config_headers | |
234b45d4 | 22083 | |
bec39cab AC |
22084 | Configuration links: |
22085 | $config_links | |
234b45d4 | 22086 | |
bec39cab AC |
22087 | Configuration commands: |
22088 | $config_commands | |
22089 | ||
22090 | Report bugs to <bug-autoconf@gnu.org>." | |
22091 | _ACEOF | |
22092 | ||
22093 | cat >>$CONFIG_STATUS <<_ACEOF | |
22094 | ac_cs_version="\\ | |
22095 | config.status | |
22096 | configured by $0, generated by GNU Autoconf 2.59, | |
22097 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
22098 | ||
22099 | Copyright (C) 2003 Free Software Foundation, Inc. | |
22100 | This config.status script is free software; the Free Software Foundation | |
22101 | gives unlimited permission to copy, distribute and modify it." | |
22102 | srcdir=$srcdir | |
22103 | INSTALL="$INSTALL" | |
22104 | _ACEOF | |
22105 | ||
22106 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22107 | # If no file are specified by the user, then we need to provide default | |
22108 | # value. By we need to know if files were specified by the user. | |
22109 | ac_need_defaults=: | |
22110 | while test $# != 0 | |
22111 | do | |
22112 | case $1 in | |
22113 | --*=*) | |
22114 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
22115 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
22116 | ac_shift=: | |
c906108c | 22117 | ;; |
bec39cab AC |
22118 | -*) |
22119 | ac_option=$1 | |
22120 | ac_optarg=$2 | |
22121 | ac_shift=shift | |
c906108c | 22122 | ;; |
bec39cab AC |
22123 | *) # This is not an option, so the user has probably given explicit |
22124 | # arguments. | |
22125 | ac_option=$1 | |
22126 | ac_need_defaults=false;; | |
22127 | esac | |
c906108c | 22128 | |
bec39cab AC |
22129 | case $ac_option in |
22130 | # Handling of the options. | |
22131 | _ACEOF | |
22132 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22133 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22134 | ac_cs_recheck=: ;; | |
22135 | --version | --vers* | -V ) | |
22136 | echo "$ac_cs_version"; exit 0 ;; | |
22137 | --he | --h) | |
22138 | # Conflict between --help and --header | |
22139 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
22140 | Try \`$0 --help' for more information." >&5 | |
22141 | echo "$as_me: error: ambiguous option: $1 | |
22142 | Try \`$0 --help' for more information." >&2;} | |
22143 | { (exit 1); exit 1; }; };; | |
22144 | --help | --hel | -h ) | |
22145 | echo "$ac_cs_usage"; exit 0 ;; | |
22146 | --debug | --d* | -d ) | |
22147 | debug=: ;; | |
22148 | --file | --fil | --fi | --f ) | |
22149 | $ac_shift | |
22150 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
22151 | ac_need_defaults=false;; | |
22152 | --header | --heade | --head | --hea ) | |
22153 | $ac_shift | |
22154 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
22155 | ac_need_defaults=false;; | |
22156 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
22157 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
22158 | ac_cs_silent=: ;; | |
c906108c | 22159 | |
bec39cab AC |
22160 | # This is an error. |
22161 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
22162 | Try \`$0 --help' for more information." >&5 | |
22163 | echo "$as_me: error: unrecognized option: $1 | |
22164 | Try \`$0 --help' for more information." >&2;} | |
22165 | { (exit 1); exit 1; }; } ;; | |
c906108c | 22166 | |
bec39cab | 22167 | *) ac_config_targets="$ac_config_targets $1" ;; |
c906108c | 22168 | |
bec39cab AC |
22169 | esac |
22170 | shift | |
22171 | done | |
c906108c | 22172 | |
bec39cab | 22173 | ac_configure_extra_args= |
c906108c | 22174 | |
bec39cab AC |
22175 | if $ac_cs_silent; then |
22176 | exec 6>/dev/null | |
22177 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
22178 | fi | |
c906108c | 22179 | |
bec39cab AC |
22180 | _ACEOF |
22181 | cat >>$CONFIG_STATUS <<_ACEOF | |
22182 | if \$ac_cs_recheck; then | |
22183 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
22184 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
22185 | fi | |
22186 | ||
22187 | _ACEOF | |
22188 | ||
22189 | cat >>$CONFIG_STATUS <<_ACEOF | |
c906108c | 22190 | # |
bec39cab | 22191 | # INIT-COMMANDS section. |
c906108c | 22192 | # |
c906108c | 22193 | |
bec39cab AC |
22194 | |
22195 | gdb_host_cpu=$gdb_host_cpu | |
22196 | gdb_target_cpu=$gdb_target_cpu | |
22197 | nativefile=$nativefile | |
22198 | ||
22199 | ||
22200 | _ACEOF | |
22201 | ||
22202 | ||
22203 | ||
22204 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22205 | for ac_config_target in $ac_config_targets | |
c906108c | 22206 | do |
bec39cab AC |
22207 | case "$ac_config_target" in |
22208 | # Handling of arguments. | |
22209 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
22210 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
22211 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
22212 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
22213 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
22214 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
22215 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
22216 | { (exit 1); exit 1; }; };; | |
c906108c SS |
22217 | esac |
22218 | done | |
22219 | ||
bec39cab AC |
22220 | # If the user did not use the arguments to specify the items to instantiate, |
22221 | # then the envvar interface is used. Set only those that are not. | |
22222 | # We use the long form for the default assignment because of an extremely | |
22223 | # bizarre bug on SunOS 4.1.3. | |
22224 | if $ac_need_defaults; then | |
22225 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
22226 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
22227 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
22228 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
22229 | fi | |
22230 | ||
22231 | # Have a temporary directory for convenience. Make it in the build tree | |
22232 | # simply because there is no reason to put it here, and in addition, | |
22233 | # creating and moving files from /tmp can sometimes cause problems. | |
22234 | # Create a temporary directory, and hook for its removal unless debugging. | |
22235 | $debug || | |
22236 | { | |
22237 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
22238 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
22239 | } | |
c906108c | 22240 | |
bec39cab | 22241 | # Create a (secure) tmp directory for tmp files. |
c906108c | 22242 | |
bec39cab AC |
22243 | { |
22244 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
22245 | test -n "$tmp" && test -d "$tmp" | |
22246 | } || | |
22247 | { | |
22248 | tmp=./confstat$$-$RANDOM | |
22249 | (umask 077 && mkdir $tmp) | |
22250 | } || | |
22251 | { | |
22252 | echo "$me: cannot create a temporary directory in ." >&2 | |
22253 | { (exit 1); exit 1; } | |
22254 | } | |
22255 | ||
22256 | _ACEOF | |
22257 | ||
22258 | cat >>$CONFIG_STATUS <<_ACEOF | |
22259 | ||
22260 | # | |
22261 | # CONFIG_FILES section. | |
22262 | # | |
22263 | ||
22264 | # No need to generate the scripts if there are no CONFIG_FILES. | |
22265 | # This happens for instance when ./config.status config.h | |
22266 | if test -n "\$CONFIG_FILES"; then | |
22267 | # Protect against being on the right side of a sed subst in config.status. | |
22268 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
22269 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
22270 | s,@SHELL@,$SHELL,;t t | |
22271 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
22272 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
22273 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
22274 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
22275 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
22276 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
22277 | s,@exec_prefix@,$exec_prefix,;t t | |
22278 | s,@prefix@,$prefix,;t t | |
22279 | s,@program_transform_name@,$program_transform_name,;t t | |
22280 | s,@bindir@,$bindir,;t t | |
22281 | s,@sbindir@,$sbindir,;t t | |
22282 | s,@libexecdir@,$libexecdir,;t t | |
22283 | s,@datadir@,$datadir,;t t | |
22284 | s,@sysconfdir@,$sysconfdir,;t t | |
22285 | s,@sharedstatedir@,$sharedstatedir,;t t | |
22286 | s,@localstatedir@,$localstatedir,;t t | |
22287 | s,@libdir@,$libdir,;t t | |
22288 | s,@includedir@,$includedir,;t t | |
22289 | s,@oldincludedir@,$oldincludedir,;t t | |
22290 | s,@infodir@,$infodir,;t t | |
22291 | s,@mandir@,$mandir,;t t | |
22292 | s,@build_alias@,$build_alias,;t t | |
22293 | s,@host_alias@,$host_alias,;t t | |
22294 | s,@target_alias@,$target_alias,;t t | |
22295 | s,@DEFS@,$DEFS,;t t | |
22296 | s,@ECHO_C@,$ECHO_C,;t t | |
22297 | s,@ECHO_N@,$ECHO_N,;t t | |
22298 | s,@ECHO_T@,$ECHO_T,;t t | |
22299 | s,@LIBS@,$LIBS,;t t | |
22300 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
22301 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
22302 | s,@MAINT@,$MAINT,;t t | |
22303 | s,@CC@,$CC,;t t | |
22304 | s,@CFLAGS@,$CFLAGS,;t t | |
22305 | s,@LDFLAGS@,$LDFLAGS,;t t | |
22306 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
22307 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
22308 | s,@EXEEXT@,$EXEEXT,;t t | |
22309 | s,@OBJEXT@,$OBJEXT,;t t | |
22310 | s,@CPP@,$CPP,;t t | |
22311 | s,@EGREP@,$EGREP,;t t | |
22312 | s,@build@,$build,;t t | |
22313 | s,@build_cpu@,$build_cpu,;t t | |
22314 | s,@build_vendor@,$build_vendor,;t t | |
22315 | s,@build_os@,$build_os,;t t | |
22316 | s,@host@,$host,;t t | |
22317 | s,@host_cpu@,$host_cpu,;t t | |
22318 | s,@host_vendor@,$host_vendor,;t t | |
22319 | s,@host_os@,$host_os,;t t | |
22320 | s,@target@,$target,;t t | |
22321 | s,@target_cpu@,$target_cpu,;t t | |
22322 | s,@target_vendor@,$target_vendor,;t t | |
22323 | s,@target_os@,$target_os,;t t | |
22324 | s,@RANLIB@,$RANLIB,;t t | |
22325 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
22326 | s,@SET_MAKE@,$SET_MAKE,;t t | |
22327 | s,@ALLOCA@,$ALLOCA,;t t | |
22328 | s,@USE_NLS@,$USE_NLS,;t t | |
22329 | s,@MSGFMT@,$MSGFMT,;t t | |
22330 | s,@GMSGFMT@,$GMSGFMT,;t t | |
22331 | s,@XGETTEXT@,$XGETTEXT,;t t | |
22332 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
22333 | s,@CATALOGS@,$CATALOGS,;t t | |
22334 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
22335 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
22336 | s,@GMOFILES@,$GMOFILES,;t t | |
22337 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
22338 | s,@INTLDEPS@,$INTLDEPS,;t t | |
22339 | s,@INTLLIBS@,$INTLLIBS,;t t | |
22340 | s,@INTLOBJS@,$INTLOBJS,;t t | |
22341 | s,@POFILES@,$POFILES,;t t | |
22342 | s,@POSUB@,$POSUB,;t t | |
22343 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
22344 | s,@GT_NO@,$GT_NO,;t t | |
22345 | s,@GT_YES@,$GT_YES,;t t | |
22346 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
22347 | s,@l@,$l,;t t | |
22348 | s,@localedir@,$localedir,;t t | |
22349 | s,@PACKAGE@,$PACKAGE,;t t | |
22350 | s,@subdirs@,$subdirs,;t t | |
22351 | s,@AWK@,$AWK,;t t | |
22352 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
22353 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
22354 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
22355 | s,@LN_S@,$LN_S,;t t | |
22356 | s,@YACC@,$YACC,;t t | |
22357 | s,@AR@,$AR,;t t | |
22358 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
22359 | s,@DLLTOOL@,$DLLTOOL,;t t | |
22360 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
22361 | s,@WINDRES@,$WINDRES,;t t | |
22362 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
22363 | s,@MIG@,$MIG,;t t | |
22364 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t | |
22365 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t | |
22366 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t | |
22367 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t | |
22368 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
22369 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
22370 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t | |
22371 | s,@WIN32LIBS@,$WIN32LIBS,;t t | |
22372 | s,@LIBGUI@,$LIBGUI,;t t | |
22373 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t | |
22374 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t | |
22375 | s,@TCL_VERSION@,$TCL_VERSION,;t t | |
22376 | s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t | |
22377 | s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t | |
22378 | s,@TCL_CC@,$TCL_CC,;t t | |
22379 | s,@TCL_DEFS@,$TCL_DEFS,;t t | |
22380 | s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t | |
22381 | s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t | |
22382 | s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t | |
22383 | s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t | |
22384 | s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t | |
22385 | s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t | |
22386 | s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t | |
22387 | s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t | |
22388 | s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t | |
22389 | s,@TCL_RANLIB@,$TCL_RANLIB,;t t | |
22390 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t | |
22391 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t | |
22392 | s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t | |
22393 | s,@TK_VERSION@,$TK_VERSION,;t t | |
22394 | s,@TK_DEFS@,$TK_DEFS,;t t | |
22395 | s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t | |
22396 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t | |
22397 | s,@TK_XLIBSW@,$TK_XLIBSW,;t t | |
22398 | s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t | |
22399 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t | |
22400 | s,@TCLHDIR@,$TCLHDIR,;t t | |
22401 | s,@TKHDIR@,$TKHDIR,;t t | |
22402 | s,@ITCLHDIR@,$ITCLHDIR,;t t | |
22403 | s,@ITKHDIR@,$ITKHDIR,;t t | |
22404 | s,@ITCL_VERSION@,$ITCL_VERSION,;t t | |
22405 | s,@ITCL_DEFS@,$ITCL_DEFS,;t t | |
22406 | s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t | |
22407 | s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t | |
22408 | s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t | |
22409 | s,@ITK_VERSION@,$ITK_VERSION,;t t | |
22410 | s,@ITK_DEFS@,$ITK_DEFS,;t t | |
22411 | s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t | |
22412 | s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t | |
22413 | s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t | |
22414 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
22415 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t | |
22416 | s,@X_LIBS@,$X_LIBS,;t t | |
22417 | s,@TCL_DEPS@,$TCL_DEPS,;t t | |
22418 | s,@TK_DEPS@,$TK_DEPS,;t t | |
22419 | s,@ITCLLIB@,$ITCLLIB,;t t | |
22420 | s,@ITCL_DEPS@,$ITCL_DEPS,;t t | |
22421 | s,@ITKLIB@,$ITKLIB,;t t | |
22422 | s,@ITK_DEPS@,$ITK_DEPS,;t t | |
22423 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t | |
22424 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t | |
22425 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t | |
22426 | s,@IGNORE_SIM@,$IGNORE_SIM,;t t | |
22427 | s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t | |
22428 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t | |
22429 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t | |
22430 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t | |
22431 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t | |
22432 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t | |
22433 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t | |
22434 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t | |
22435 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t | |
22436 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t | |
22437 | s,@target_subdir@,$target_subdir,;t t | |
22438 | s,@frags@,$frags,;t t | |
22439 | s,@xm_h@,$xm_h,;t t | |
22440 | s,@tm_h@,$tm_h,;t t | |
22441 | s,@nm_h@,$nm_h,;t t | |
22442 | s,@LIBICONV@,$LIBICONV,;t t | |
22443 | s,@LIBOBJS@,$LIBOBJS,;t t | |
22444 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
c906108c | 22445 | /@host_makefile_frag@/r $host_makefile_frag |
bec39cab | 22446 | s,@host_makefile_frag@,,;t t |
c906108c | 22447 | /@target_makefile_frag@/r $target_makefile_frag |
bec39cab | 22448 | s,@target_makefile_frag@,,;t t |
c906108c | 22449 | CEOF |
bec39cab AC |
22450 | |
22451 | _ACEOF | |
22452 | ||
22453 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22454 | # Split the substitutions into bite-sized pieces for seds with | |
22455 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
22456 | ac_max_sed_lines=48 | |
22457 | ac_sed_frag=1 # Number of current file. | |
22458 | ac_beg=1 # First line for current file. | |
22459 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
22460 | ac_more_lines=: | |
22461 | ac_sed_cmds= | |
22462 | while $ac_more_lines; do | |
22463 | if test $ac_beg -gt 1; then | |
22464 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22465 | else | |
22466 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
22467 | fi | |
22468 | if test ! -s $tmp/subs.frag; then | |
22469 | ac_more_lines=false | |
c906108c | 22470 | else |
bec39cab AC |
22471 | # The purpose of the label and of the branching condition is to |
22472 | # speed up the sed processing (if there are no `@' at all, there | |
22473 | # is no need to browse any of the substitutions). | |
22474 | # These are the two extra sed commands mentioned above. | |
22475 | (echo ':t | |
22476 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
22477 | if test -z "$ac_sed_cmds"; then | |
22478 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
22479 | else | |
22480 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
22481 | fi | |
22482 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
22483 | ac_beg=$ac_end | |
22484 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
c906108c | 22485 | fi |
bec39cab AC |
22486 | done |
22487 | if test -z "$ac_sed_cmds"; then | |
22488 | ac_sed_cmds=cat | |
c906108c | 22489 | fi |
bec39cab | 22490 | fi # test -n "$CONFIG_FILES" |
c906108c | 22491 | |
bec39cab AC |
22492 | _ACEOF |
22493 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22494 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
c906108c | 22495 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
bec39cab AC |
22496 | case $ac_file in |
22497 | - | *:- | *:-:* ) # input from stdin | |
22498 | cat >$tmp/stdin | |
22499 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22500 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22501 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22502 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22503 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
22504 | esac |
22505 | ||
bec39cab AC |
22506 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
22507 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
22508 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22509 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22510 | X"$ac_file" : 'X\(//\)$' \| \ | |
22511 | X"$ac_file" : 'X\(/\)' \| \ | |
22512 | . : '\(.\)' 2>/dev/null || | |
22513 | echo X"$ac_file" | | |
22514 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22515 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22516 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22517 | /^X\(\/\).*/{ s//\1/; q; } | |
22518 | s/.*/./; q'` | |
22519 | { if $as_mkdir_p; then | |
22520 | mkdir -p "$ac_dir" | |
c906108c | 22521 | else |
bec39cab AC |
22522 | as_dir="$ac_dir" |
22523 | as_dirs= | |
22524 | while test ! -d "$as_dir"; do | |
22525 | as_dirs="$as_dir $as_dirs" | |
22526 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22527 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22528 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22529 | X"$as_dir" : 'X\(//\)$' \| \ | |
22530 | X"$as_dir" : 'X\(/\)' \| \ | |
22531 | . : '\(.\)' 2>/dev/null || | |
22532 | echo X"$as_dir" | | |
22533 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22534 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22535 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22536 | /^X\(\/\).*/{ s//\1/; q; } | |
22537 | s/.*/./; q'` | |
22538 | done | |
22539 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22540 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22541 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22542 | { (exit 1); exit 1; }; }; } | |
c906108c | 22543 | |
bec39cab AC |
22544 | ac_builddir=. |
22545 | ||
22546 | if test "$ac_dir" != .; then | |
22547 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22548 | # A "../" for each directory in $ac_dir_suffix. | |
22549 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22550 | else | |
22551 | ac_dir_suffix= ac_top_builddir= | |
22552 | fi | |
22553 | ||
22554 | case $srcdir in | |
22555 | .) # No --srcdir option. We are building in place. | |
22556 | ac_srcdir=. | |
22557 | if test -z "$ac_top_builddir"; then | |
22558 | ac_top_srcdir=. | |
22559 | else | |
22560 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22561 | fi ;; | |
22562 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22563 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22564 | ac_top_srcdir=$srcdir ;; | |
c906108c | 22565 | *) # Relative path. |
bec39cab AC |
22566 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
22567 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22568 | esac | |
22569 | ||
22570 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22571 | # the directories may not exist. | |
22572 | case `pwd` in | |
22573 | .) ac_abs_builddir="$ac_dir";; | |
22574 | *) | |
22575 | case "$ac_dir" in | |
22576 | .) ac_abs_builddir=`pwd`;; | |
22577 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22578 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22579 | esac;; | |
22580 | esac | |
22581 | case $ac_abs_builddir in | |
22582 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22583 | *) | |
22584 | case ${ac_top_builddir}. in | |
22585 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22586 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22587 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22588 | esac;; | |
22589 | esac | |
22590 | case $ac_abs_builddir in | |
22591 | .) ac_abs_srcdir=$ac_srcdir;; | |
22592 | *) | |
22593 | case $ac_srcdir in | |
22594 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22595 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22596 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22597 | esac;; | |
22598 | esac | |
22599 | case $ac_abs_builddir in | |
22600 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22601 | *) | |
22602 | case $ac_top_srcdir in | |
22603 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22604 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22605 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22606 | esac;; | |
22607 | esac | |
c906108c | 22608 | |
c906108c | 22609 | |
bec39cab AC |
22610 | case $INSTALL in |
22611 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
22612 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
c906108c SS |
22613 | esac |
22614 | ||
bec39cab AC |
22615 | if test x"$ac_file" != x-; then |
22616 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
22617 | echo "$as_me: creating $ac_file" >&6;} | |
22618 | rm -f "$ac_file" | |
22619 | fi | |
22620 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22621 | # use $as_me), people would be surprised to read: | |
22622 | # /* config.h. Generated by config.status. */ | |
22623 | if test x"$ac_file" = x-; then | |
22624 | configure_input= | |
22625 | else | |
22626 | configure_input="$ac_file. " | |
22627 | fi | |
22628 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
22629 | sed 's,.*/,,'` by configure." | |
22630 | ||
22631 | # First look for the input files in the build tree, otherwise in the | |
22632 | # src tree. | |
22633 | ac_file_inputs=`IFS=: | |
22634 | for f in $ac_file_in; do | |
22635 | case $f in | |
22636 | -) echo $tmp/stdin ;; | |
22637 | [\\/$]*) | |
22638 | # Absolute (can't be DOS-style, as IFS=:) | |
22639 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22640 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
22641 | { (exit 1); exit 1; }; } | |
22642 | echo "$f";; | |
22643 | *) # Relative | |
22644 | if test -f "$f"; then | |
22645 | # Build tree | |
22646 | echo "$f" | |
22647 | elif test -f "$srcdir/$f"; then | |
22648 | # Source tree | |
22649 | echo "$srcdir/$f" | |
22650 | else | |
22651 | # /dev/null tree | |
22652 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22653 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
22654 | { (exit 1); exit 1; }; } | |
22655 | fi;; | |
22656 | esac | |
22657 | done` || { (exit 1); exit 1; } | |
22658 | _ACEOF | |
22659 | cat >>$CONFIG_STATUS <<_ACEOF | |
22660 | sed "$ac_vpsub | |
22661 | $extrasub | |
22662 | _ACEOF | |
22663 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22664 | :t | |
22665 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22666 | s,@configure_input@,$configure_input,;t t | |
22667 | s,@srcdir@,$ac_srcdir,;t t | |
22668 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
22669 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
22670 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
22671 | s,@builddir@,$ac_builddir,;t t | |
22672 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
22673 | s,@top_builddir@,$ac_top_builddir,;t t | |
22674 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
22675 | s,@INSTALL@,$ac_INSTALL,;t t | |
22676 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
22677 | rm -f $tmp/stdin | |
22678 | if test x"$ac_file" != x-; then | |
22679 | mv $tmp/out $ac_file | |
22680 | else | |
22681 | cat $tmp/out | |
22682 | rm -f $tmp/out | |
22683 | fi | |
22684 | ||
22685 | done | |
22686 | _ACEOF | |
22687 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22688 | ||
22689 | # | |
22690 | # CONFIG_HEADER section. | |
22691 | # | |
c906108c SS |
22692 | |
22693 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
22694 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
22695 | # | |
22696 | # ac_d sets the value in "#define NAME VALUE" lines. | |
bec39cab AC |
22697 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
22698 | ac_dB='[ ].*$,\1#\2' | |
22699 | ac_dC=' ' | |
22700 | ac_dD=',;t' | |
22701 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
22702 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
22703 | ac_uB='$,\1#\2define\3' | |
c906108c | 22704 | ac_uC=' ' |
bec39cab AC |
22705 | ac_uD=',;t' |
22706 | ||
22707 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
c906108c | 22708 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
bec39cab AC |
22709 | case $ac_file in |
22710 | - | *:- | *:-:* ) # input from stdin | |
22711 | cat >$tmp/stdin | |
22712 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22713 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22714 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22715 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
22716 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
22717 | esac |
22718 | ||
bec39cab AC |
22719 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
22720 | echo "$as_me: creating $ac_file" >&6;} | |
22721 | ||
22722 | # First look for the input files in the build tree, otherwise in the | |
22723 | # src tree. | |
22724 | ac_file_inputs=`IFS=: | |
22725 | for f in $ac_file_in; do | |
22726 | case $f in | |
22727 | -) echo $tmp/stdin ;; | |
22728 | [\\/$]*) | |
22729 | # Absolute (can't be DOS-style, as IFS=:) | |
22730 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22731 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
22732 | { (exit 1); exit 1; }; } | |
22733 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
22734 | echo "$f";; | |
22735 | *) # Relative | |
22736 | if test -f "$f"; then | |
22737 | # Build tree | |
22738 | echo "$f" | |
22739 | elif test -f "$srcdir/$f"; then | |
22740 | # Source tree | |
22741 | echo "$srcdir/$f" | |
22742 | else | |
22743 | # /dev/null tree | |
22744 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
22745 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
22746 | { (exit 1); exit 1; }; } | |
22747 | fi;; | |
22748 | esac | |
22749 | done` || { (exit 1); exit 1; } | |
22750 | # Remove the trailing spaces. | |
22751 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
22752 | ||
22753 | _ACEOF | |
22754 | ||
22755 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
22756 | # `conftest.undefs', that substitutes the proper values into | |
22757 | # config.h.in to produce config.h. The first handles `#define' | |
22758 | # templates, and the second `#undef' templates. | |
22759 | # And first: Protect against being on the right side of a sed subst in | |
22760 | # config.status. Protect against being in an unquoted here document | |
22761 | # in config.status. | |
22762 | rm -f conftest.defines conftest.undefs | |
22763 | # Using a here document instead of a string reduces the quoting nightmare. | |
22764 | # Putting comments in sed scripts is not portable. | |
22765 | # | |
22766 | # `end' is used to avoid that the second main sed command (meant for | |
22767 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
22768 | # See the Autoconf documentation for `clear'. | |
22769 | cat >confdef2sed.sed <<\_ACEOF | |
22770 | s/[\\&,]/\\&/g | |
22771 | s,[\\$`],\\&,g | |
22772 | t clear | |
22773 | : clear | |
22774 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
22775 | t end | |
22776 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
22777 | : end | |
22778 | _ACEOF | |
22779 | # If some macros were called several times there might be several times | |
22780 | # the same #defines, which is useless. Nevertheless, we may not want to | |
22781 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
22782 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
22783 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
22784 | rm -f confdef2sed.sed | |
c906108c SS |
22785 | |
22786 | # This sed command replaces #undef with comments. This is necessary, for | |
22787 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
22788 | # on some systems where configure will not decide to define it. | |
bec39cab AC |
22789 | cat >>conftest.undefs <<\_ACEOF |
22790 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
22791 | _ACEOF | |
22792 | ||
22793 | # Break up conftest.defines because some shells have a limit on the size | |
22794 | # of here documents, and old seds have small limits too (100 cmds). | |
22795 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
22796 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
22797 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
22798 | echo ' :' >>$CONFIG_STATUS | |
22799 | rm -f conftest.tail | |
22800 | while grep . conftest.defines >/dev/null | |
22801 | do | |
22802 | # Write a limited-size here document to $tmp/defines.sed. | |
22803 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
22804 | # Speed up: don't consider the non `#define' lines. | |
22805 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
22806 | # Work around the forget-to-reset-the-flag bug. | |
22807 | echo 't clr' >>$CONFIG_STATUS | |
22808 | echo ': clr' >>$CONFIG_STATUS | |
22809 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
22810 | echo 'CEOF | |
22811 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
22812 | rm -f $tmp/in | |
22813 | mv $tmp/out $tmp/in | |
22814 | ' >>$CONFIG_STATUS | |
22815 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
22816 | rm -f conftest.defines | |
22817 | mv conftest.tail conftest.defines | |
22818 | done | |
22819 | rm -f conftest.defines | |
22820 | echo ' fi # grep' >>$CONFIG_STATUS | |
22821 | echo >>$CONFIG_STATUS | |
c906108c | 22822 | |
bec39cab AC |
22823 | # Break up conftest.undefs because some shells have a limit on the size |
22824 | # of here documents, and old seds have small limits too (100 cmds). | |
22825 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
c906108c | 22826 | rm -f conftest.tail |
bec39cab | 22827 | while grep . conftest.undefs >/dev/null |
c906108c | 22828 | do |
bec39cab AC |
22829 | # Write a limited-size here document to $tmp/undefs.sed. |
22830 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
22831 | # Speed up: don't consider the non `#undef' | |
22832 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
22833 | # Work around the forget-to-reset-the-flag bug. | |
22834 | echo 't clr' >>$CONFIG_STATUS | |
22835 | echo ': clr' >>$CONFIG_STATUS | |
22836 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
c906108c | 22837 | echo 'CEOF |
bec39cab AC |
22838 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
22839 | rm -f $tmp/in | |
22840 | mv $tmp/out $tmp/in | |
22841 | ' >>$CONFIG_STATUS | |
22842 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
22843 | rm -f conftest.undefs | |
22844 | mv conftest.tail conftest.undefs | |
22845 | done | |
22846 | rm -f conftest.undefs | |
22847 | ||
22848 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22849 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22850 | # use $as_me), people would be surprised to read: | |
22851 | # /* config.h. Generated by config.status. */ | |
22852 | if test x"$ac_file" = x-; then | |
22853 | echo "/* Generated by configure. */" >$tmp/config.h | |
c906108c | 22854 | else |
bec39cab | 22855 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
c906108c | 22856 | fi |
bec39cab AC |
22857 | cat $tmp/in >>$tmp/config.h |
22858 | rm -f $tmp/in | |
22859 | if test x"$ac_file" != x-; then | |
22860 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
22861 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
22862 | echo "$as_me: $ac_file is unchanged" >&6;} | |
22863 | else | |
22864 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
22865 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22866 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22867 | X"$ac_file" : 'X\(//\)$' \| \ | |
22868 | X"$ac_file" : 'X\(/\)' \| \ | |
22869 | . : '\(.\)' 2>/dev/null || | |
22870 | echo X"$ac_file" | | |
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 | { if $as_mkdir_p; then | |
22877 | mkdir -p "$ac_dir" | |
22878 | else | |
22879 | as_dir="$ac_dir" | |
22880 | as_dirs= | |
22881 | while test ! -d "$as_dir"; do | |
22882 | as_dirs="$as_dir $as_dirs" | |
22883 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22884 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22885 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22886 | X"$as_dir" : 'X\(//\)$' \| \ | |
22887 | X"$as_dir" : 'X\(/\)' \| \ | |
22888 | . : '\(.\)' 2>/dev/null || | |
22889 | echo X"$as_dir" | | |
22890 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22891 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22892 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22893 | /^X\(\/\).*/{ s//\1/; q; } | |
22894 | s/.*/./; q'` | |
22895 | done | |
22896 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22897 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22898 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22899 | { (exit 1); exit 1; }; }; } | |
c906108c | 22900 | |
bec39cab AC |
22901 | rm -f $ac_file |
22902 | mv $tmp/config.h $ac_file | |
22903 | fi | |
22904 | else | |
22905 | cat $tmp/config.h | |
22906 | rm -f $tmp/config.h | |
22907 | fi | |
22908 | done | |
22909 | _ACEOF | |
22910 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c906108c | 22911 | |
bec39cab AC |
22912 | # |
22913 | # CONFIG_LINKS section. | |
22914 | # | |
c906108c | 22915 | |
bec39cab AC |
22916 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
22917 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
22918 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 22919 | |
bec39cab AC |
22920 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
22921 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
22922 | |
22923 | if test ! -r $srcdir/$ac_source; then | |
bec39cab AC |
22924 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
22925 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
22926 | { (exit 1); exit 1; }; } | |
c906108c SS |
22927 | fi |
22928 | rm -f $ac_dest | |
22929 | ||
22930 | # Make relative symlinks. | |
bec39cab AC |
22931 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || |
22932 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22933 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
22934 | X"$ac_dest" : 'X\(//\)$' \| \ | |
22935 | X"$ac_dest" : 'X\(/\)' \| \ | |
22936 | . : '\(.\)' 2>/dev/null || | |
22937 | echo X"$ac_dest" | | |
22938 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22939 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22940 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22941 | /^X\(\/\).*/{ s//\1/; q; } | |
22942 | s/.*/./; q'` | |
22943 | { if $as_mkdir_p; then | |
22944 | mkdir -p "$ac_dest_dir" | |
c906108c | 22945 | else |
bec39cab AC |
22946 | as_dir="$ac_dest_dir" |
22947 | as_dirs= | |
22948 | while test ! -d "$as_dir"; do | |
22949 | as_dirs="$as_dir $as_dirs" | |
22950 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22951 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22952 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22953 | X"$as_dir" : 'X\(//\)$' \| \ | |
22954 | X"$as_dir" : 'X\(/\)' \| \ | |
22955 | . : '\(.\)' 2>/dev/null || | |
22956 | echo X"$as_dir" | | |
22957 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22958 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22959 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22960 | /^X\(\/\).*/{ s//\1/; q; } | |
22961 | s/.*/./; q'` | |
22962 | done | |
22963 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22964 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
22965 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
22966 | { (exit 1); exit 1; }; }; } | |
22967 | ||
22968 | ac_builddir=. | |
22969 | ||
22970 | if test "$ac_dest_dir" != .; then | |
22971 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
22972 | # A "../" for each directory in $ac_dir_suffix. | |
22973 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22974 | else | |
22975 | ac_dir_suffix= ac_top_builddir= | |
22976 | fi | |
22977 | ||
22978 | case $srcdir in | |
22979 | .) # No --srcdir option. We are building in place. | |
22980 | ac_srcdir=. | |
22981 | if test -z "$ac_top_builddir"; then | |
22982 | ac_top_srcdir=. | |
22983 | else | |
22984 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22985 | fi ;; | |
22986 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22987 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22988 | ac_top_srcdir=$srcdir ;; | |
22989 | *) # Relative path. | |
22990 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22991 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22992 | esac | |
22993 | ||
22994 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22995 | # the directories may not exist. | |
22996 | case `pwd` in | |
22997 | .) ac_abs_builddir="$ac_dest_dir";; | |
22998 | *) | |
22999 | case "$ac_dest_dir" in | |
23000 | .) ac_abs_builddir=`pwd`;; | |
23001 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
23002 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
23003 | esac;; | |
23004 | esac | |
23005 | case $ac_abs_builddir in | |
23006 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23007 | *) | |
23008 | case ${ac_top_builddir}. in | |
23009 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23010 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23011 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23012 | esac;; | |
23013 | esac | |
23014 | case $ac_abs_builddir in | |
23015 | .) ac_abs_srcdir=$ac_srcdir;; | |
23016 | *) | |
23017 | case $ac_srcdir in | |
23018 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23019 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23020 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23021 | esac;; | |
23022 | esac | |
23023 | case $ac_abs_builddir in | |
23024 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23025 | *) | |
23026 | case $ac_top_srcdir in | |
23027 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23028 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23029 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23030 | esac;; | |
23031 | esac | |
c906108c | 23032 | |
bec39cab AC |
23033 | |
23034 | case $srcdir in | |
23035 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
23036 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; | |
c906108c SS |
23037 | esac |
23038 | ||
bec39cab AC |
23039 | # Try a symlink, then a hard link, then a copy. |
23040 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
23041 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
23042 | cp -p $srcdir/$ac_source $ac_dest || | |
23043 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
23044 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
23045 | { (exit 1); exit 1; }; } | |
c906108c | 23046 | done |
bec39cab AC |
23047 | _ACEOF |
23048 | cat >>$CONFIG_STATUS <<\_ACEOF | |
c906108c | 23049 | |
bec39cab AC |
23050 | # |
23051 | # CONFIG_COMMANDS section. | |
23052 | # | |
23053 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
23054 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
23055 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
23056 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
23057 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23058 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
23059 | X"$ac_dest" : 'X\(//\)$' \| \ | |
23060 | X"$ac_dest" : 'X\(/\)' \| \ | |
23061 | . : '\(.\)' 2>/dev/null || | |
23062 | echo X"$ac_dest" | | |
23063 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23064 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23065 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23066 | /^X\(\/\).*/{ s//\1/; q; } | |
23067 | s/.*/./; q'` | |
23068 | { if $as_mkdir_p; then | |
23069 | mkdir -p "$ac_dir" | |
23070 | else | |
23071 | as_dir="$ac_dir" | |
23072 | as_dirs= | |
23073 | while test ! -d "$as_dir"; do | |
23074 | as_dirs="$as_dir $as_dirs" | |
23075 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23076 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23077 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23078 | X"$as_dir" : 'X\(//\)$' \| \ | |
23079 | X"$as_dir" : 'X\(/\)' \| \ | |
23080 | . : '\(.\)' 2>/dev/null || | |
23081 | echo X"$as_dir" | | |
23082 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23083 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23084 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23085 | /^X\(\/\).*/{ s//\1/; q; } | |
23086 | s/.*/./; q'` | |
23087 | done | |
23088 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23089 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23090 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
23091 | { (exit 1); exit 1; }; }; } | |
23092 | ||
23093 | ac_builddir=. | |
23094 | ||
23095 | if test "$ac_dir" != .; then | |
23096 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
23097 | # A "../" for each directory in $ac_dir_suffix. | |
23098 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
23099 | else | |
23100 | ac_dir_suffix= ac_top_builddir= | |
23101 | fi | |
23102 | ||
23103 | case $srcdir in | |
23104 | .) # No --srcdir option. We are building in place. | |
23105 | ac_srcdir=. | |
23106 | if test -z "$ac_top_builddir"; then | |
23107 | ac_top_srcdir=. | |
23108 | else | |
23109 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
23110 | fi ;; | |
23111 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
23112 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23113 | ac_top_srcdir=$srcdir ;; | |
23114 | *) # Relative path. | |
23115 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
23116 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
23117 | esac | |
23118 | ||
23119 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
23120 | # the directories may not exist. | |
23121 | case `pwd` in | |
23122 | .) ac_abs_builddir="$ac_dir";; | |
23123 | *) | |
23124 | case "$ac_dir" in | |
23125 | .) ac_abs_builddir=`pwd`;; | |
23126 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
23127 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
23128 | esac;; | |
23129 | esac | |
23130 | case $ac_abs_builddir in | |
23131 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23132 | *) | |
23133 | case ${ac_top_builddir}. in | |
23134 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23135 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23136 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23137 | esac;; | |
23138 | esac | |
23139 | case $ac_abs_builddir in | |
23140 | .) ac_abs_srcdir=$ac_srcdir;; | |
23141 | *) | |
23142 | case $ac_srcdir in | |
23143 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23144 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23145 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23146 | esac;; | |
23147 | esac | |
23148 | case $ac_abs_builddir in | |
23149 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23150 | *) | |
23151 | case $ac_top_srcdir in | |
23152 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23153 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23154 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23155 | esac;; | |
23156 | esac | |
c906108c | 23157 | |
c906108c | 23158 | |
bec39cab AC |
23159 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
23160 | echo "$as_me: executing $ac_dest commands" >&6;} | |
23161 | case $ac_dest in | |
23162 | default ) | |
c906108c | 23163 | |
2c0fc042 | 23164 | sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, |
c906108c SS |
23165 | /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, |
23166 | /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp | |
23167 | mv -f Makefile.tmp Makefile | |
23168 | ||
2acceee2 | 23169 | |
c906108c SS |
23170 | case x$CONFIG_HEADERS in |
23171 | xconfig.h:config.in) | |
23172 | echo > stamp-h ;; | |
23173 | esac | |
bec39cab AC |
23174 | ;; |
23175 | esac | |
23176 | done | |
23177 | _ACEOF | |
c906108c | 23178 | |
bec39cab AC |
23179 | cat >>$CONFIG_STATUS <<\_ACEOF |
23180 | ||
23181 | { (exit 0); exit 0; } | |
23182 | _ACEOF | |
c906108c | 23183 | chmod +x $CONFIG_STATUS |
bec39cab AC |
23184 | ac_clean_files=$ac_clean_files_save |
23185 | ||
23186 | ||
23187 | # configure is writing to config.log, and then calls config.status. | |
23188 | # config.status does its own redirection, appending to config.log. | |
23189 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
23190 | # by configure, so config.status won't be able to write to it; its | |
23191 | # output is simply discarded. So we exec the FD to /dev/null, | |
23192 | # effectively closing config.log, so it can be properly (re)opened and | |
23193 | # appended to by config.status. When coming back to configure, we | |
23194 | # need to make the FD available again. | |
23195 | if test "$no_create" != yes; then | |
23196 | ac_cs_success=: | |
23197 | ac_config_status_args= | |
23198 | test "$silent" = yes && | |
23199 | ac_config_status_args="$ac_config_status_args --quiet" | |
23200 | exec 5>/dev/null | |
23201 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23202 | exec 5>>config.log | |
23203 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23204 | # would make configure fail if this is the last instruction. | |
23205 | $ac_cs_success || { (exit 1); exit 1; } | |
23206 | fi | |
c906108c | 23207 | |
bec39cab AC |
23208 | # |
23209 | # CONFIG_SUBDIRS section. | |
23210 | # | |
c906108c SS |
23211 | if test "$no_recursion" != yes; then |
23212 | ||
23213 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
23214 | ac_sub_configure_args= | |
23215 | ac_prev= | |
23216 | for ac_arg in $ac_configure_args; do | |
23217 | if test -n "$ac_prev"; then | |
23218 | ac_prev= | |
23219 | continue | |
23220 | fi | |
bec39cab | 23221 | case $ac_arg in |
c906108c SS |
23222 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
23223 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
23224 | ac_prev=cache_file ;; | |
23225 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
bec39cab AC |
23226 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
23227 | | --c=*) | |
23228 | ;; | |
23229 | --config-cache | -C) | |
c906108c SS |
23230 | ;; |
23231 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
23232 | ac_prev=srcdir ;; | |
23233 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
23234 | ;; | |
bec39cab AC |
23235 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
23236 | ac_prev=prefix ;; | |
23237 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
23238 | ;; | |
c906108c SS |
23239 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
23240 | esac | |
23241 | done | |
23242 | ||
bec39cab AC |
23243 | # Always prepend --prefix to ensure using the same prefix |
23244 | # in subdir configurations. | |
23245 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
23246 | ||
23247 | ac_popdir=`pwd` | |
23248 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
c906108c SS |
23249 | |
23250 | # Do not complain, so a configure script can configure whichever | |
23251 | # parts of a large source tree are present. | |
bec39cab | 23252 | test -d $srcdir/$ac_dir || continue |
c906108c | 23253 | |
bec39cab AC |
23254 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
23255 | echo "$as_me: configuring in $ac_dir" >&6;} | |
23256 | { if $as_mkdir_p; then | |
23257 | mkdir -p "$ac_dir" | |
23258 | else | |
23259 | as_dir="$ac_dir" | |
23260 | as_dirs= | |
23261 | while test ! -d "$as_dir"; do | |
23262 | as_dirs="$as_dir $as_dirs" | |
23263 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23264 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23265 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23266 | X"$as_dir" : 'X\(//\)$' \| \ | |
23267 | X"$as_dir" : 'X\(/\)' \| \ | |
23268 | . : '\(.\)' 2>/dev/null || | |
23269 | echo X"$as_dir" | | |
23270 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23271 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23272 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23273 | /^X\(\/\).*/{ s//\1/; q; } | |
23274 | s/.*/./; q'` | |
23275 | done | |
23276 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23277 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23278 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
23279 | { (exit 1); exit 1; }; }; } | |
c906108c | 23280 | |
bec39cab AC |
23281 | ac_builddir=. |
23282 | ||
23283 | if test "$ac_dir" != .; then | |
23284 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
23285 | # A "../" for each directory in $ac_dir_suffix. | |
23286 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
23287 | else | |
23288 | ac_dir_suffix= ac_top_builddir= | |
23289 | fi | |
23290 | ||
23291 | case $srcdir in | |
23292 | .) # No --srcdir option. We are building in place. | |
23293 | ac_srcdir=. | |
23294 | if test -z "$ac_top_builddir"; then | |
23295 | ac_top_srcdir=. | |
23296 | else | |
23297 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
23298 | fi ;; | |
23299 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
23300 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23301 | ac_top_srcdir=$srcdir ;; | |
23302 | *) # Relative path. | |
23303 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
23304 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
23305 | esac | |
c906108c | 23306 | |
bec39cab AC |
23307 | # Do not use `cd foo && pwd` to compute absolute paths, because |
23308 | # the directories may not exist. | |
23309 | case `pwd` in | |
23310 | .) ac_abs_builddir="$ac_dir";; | |
23311 | *) | |
23312 | case "$ac_dir" in | |
23313 | .) ac_abs_builddir=`pwd`;; | |
23314 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
23315 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
23316 | esac;; | |
23317 | esac | |
23318 | case $ac_abs_builddir in | |
23319 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23320 | *) | |
23321 | case ${ac_top_builddir}. in | |
23322 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23323 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23324 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23325 | esac;; | |
23326 | esac | |
23327 | case $ac_abs_builddir in | |
23328 | .) ac_abs_srcdir=$ac_srcdir;; | |
23329 | *) | |
23330 | case $ac_srcdir in | |
23331 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23332 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23333 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23334 | esac;; | |
23335 | esac | |
23336 | case $ac_abs_builddir in | |
23337 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23338 | *) | |
23339 | case $ac_top_srcdir in | |
23340 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23341 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23342 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23343 | esac;; | |
23344 | esac | |
c906108c | 23345 | |
c906108c | 23346 | |
bec39cab | 23347 | cd $ac_dir |
c906108c SS |
23348 | |
23349 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab AC |
23350 | if test -f $ac_srcdir/configure.gnu; then |
23351 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
23352 | elif test -f $ac_srcdir/configure; then | |
23353 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
23354 | elif test -f $ac_srcdir/configure.in; then | |
c906108c SS |
23355 | ac_sub_configure=$ac_configure |
23356 | else | |
bec39cab AC |
23357 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
23358 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
23359 | ac_sub_configure= |
23360 | fi | |
23361 | ||
23362 | # The recursion is here. | |
23363 | if test -n "$ac_sub_configure"; then | |
c906108c | 23364 | # Make the cache file name correct relative to the subdirectory. |
bec39cab AC |
23365 | case $cache_file in |
23366 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
c906108c | 23367 | *) # Relative path. |
bec39cab | 23368 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
c906108c | 23369 | esac |
c906108c | 23370 | |
bec39cab AC |
23371 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
23372 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 23373 | # The eval makes quoting arguments work. |
bec39cab AC |
23374 | eval $ac_sub_configure $ac_sub_configure_args \ |
23375 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
23376 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
23377 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
23378 | { (exit 1); exit 1; }; } | |
c906108c SS |
23379 | fi |
23380 | ||
23381 | cd $ac_popdir | |
23382 | done | |
23383 | fi | |
23384 | ||
23385 | ||
23386 | exit 0 |