Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
c906108c | 2 | # Guess values for system-dependent variables and create Makefiles. |
b4e70030 | 3 | # Generated by GNU Autoconf 2.59. |
c906108c | 4 | # |
b4e70030 | 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+"$@"}'='"$@"' | |
b4e70030 JB |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
20 | set -o posix | |
bec39cab AC |
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. | |
b4e70030 | 33 | $as_unset ENV MAIL MAILPATH |
bec39cab AC |
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 | |
b4e70030 | 47 | $as_unset $as_var |
bec39cab AC |
48 | fi |
49 | done | |
50 | ||
51 | # Required to use basename. | |
b4e70030 | 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
53 | as_expr=expr |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
b4e70030 | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
bec39cab AC |
59 | as_basename=basename |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
b4e70030 | 66 | as_me=`$as_basename "$0" || |
bec39cab AC |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
68 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
69 | X"$0" : 'X\(/\)$' \| \ |
70 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 71 | echo X/"$0" | |
b4e70030 JB |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
bec39cab | 76 | |
4e8d927d | 77 | |
b4e70030 JB |
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 | |
4e8d927d | 85 | |
b4e70030 JB |
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 | |
4e8d927d DJ |
97 | fi |
98 | ||
4e8d927d | 99 | |
b4e70030 JB |
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 | |
4e8d927d | 116 | |
b4e70030 JB |
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 | '') | |
bec39cab | 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
b4e70030 | 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
bec39cab AC |
132 | do |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
b4e70030 JB |
135 | for as_base in sh bash ksh sh5; do |
136 | case $as_dir in | |
bec39cab | 137 | /*) |
b4e70030 | 138 | if ("$as_dir/$as_base" -c ' |
4e8d927d DJ |
139 | as_lineno_1=$LINENO |
140 | as_lineno_2=$LINENO | |
b4e70030 | 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
4e8d927d | 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
b4e70030 JB |
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 | |
bec39cab AC |
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 | |
b4e70030 JB |
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. | |
bec39cab | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
b4e70030 JB |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
164 | sed '=' <$as_myself | | |
bec39cab AC |
165 | sed ' |
166 | N | |
b4e70030 JB |
167 | s,$,-, |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
bec39cab | 170 | t loop |
b4e70030 JB |
171 | s,-$,, |
172 | s,^['$as_cr_digits']*\n,, | |
bec39cab | 173 | ' >$as_me.lineno && |
b4e70030 | 174 | chmod +x $as_me.lineno || |
bec39cab AC |
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 | |
b4e70030 JB |
180 | # original and so on. Autoconf is especially sensible to this). |
181 | . ./$as_me.lineno | |
bec39cab AC |
182 | # Exit status is that of the last command. |
183 | exit | |
184 | } | |
185 | ||
186 | ||
b4e70030 JB |
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= ;; | |
bec39cab AC |
192 | esac |
193 | ||
b4e70030 | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
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 | |
b4e70030 JB |
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 | |
bec39cab | 207 | as_ln_s='cp -p' |
b4e70030 JB |
208 | else |
209 | as_ln_s='ln -s' | |
210 | fi | |
bec39cab AC |
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 | |
b4e70030 | 216 | rm -f conf$$ conf$$.exe conf$$.file |
bec39cab AC |
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 | ||
b4e70030 | 225 | as_executable_p="test -f" |
bec39cab AC |
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 | ||
b4e70030 JB |
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 | |
bec39cab | 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 | ||
b4e70030 JB |
249 | exec 6>&1 |
250 | ||
bec39cab AC |
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 | ||
b4e70030 JB |
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 | ||
bec39cab AC |
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" | |
20e95c23 | 275 | ac_subdirs_all="$ac_subdirs_all doc testsuite" |
bec39cab AC |
276 | # Factoring default headers for most tests. |
277 | ac_includes_default="\ | |
278 | #include <stdio.h> | |
279 | #if HAVE_SYS_TYPES_H | |
280 | # include <sys/types.h> | |
281 | #endif | |
282 | #if HAVE_SYS_STAT_H | |
283 | # include <sys/stat.h> | |
284 | #endif | |
285 | #if STDC_HEADERS | |
286 | # include <stdlib.h> | |
287 | # include <stddef.h> | |
288 | #else | |
289 | # if HAVE_STDLIB_H | |
290 | # include <stdlib.h> | |
291 | # endif | |
292 | #endif | |
293 | #if HAVE_STRING_H | |
294 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
295 | # include <memory.h> | |
296 | # endif | |
297 | # include <string.h> | |
298 | #endif | |
299 | #if HAVE_STRINGS_H | |
300 | # include <strings.h> | |
301 | #endif | |
302 | #if HAVE_INTTYPES_H | |
303 | # include <inttypes.h> | |
b4e70030 JB |
304 | #else |
305 | # if HAVE_STDINT_H | |
306 | # include <stdint.h> | |
307 | # endif | |
bec39cab AC |
308 | #endif |
309 | #if HAVE_UNISTD_H | |
310 | # include <unistd.h> | |
311 | #endif" | |
312 | ||
b4e70030 JB |
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" | |
6a30b0a5 | 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 USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR 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' |
b4e70030 | 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' | |
b4e70030 | 347 | datadir='${prefix}/share' |
c906108c SS |
348 | sysconfdir='${prefix}/etc' |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
b4e70030 | 351 | libdir='${exec_prefix}/lib' |
c906108c SS |
352 | includedir='${prefix}/include' |
353 | oldincludedir='/usr/include' | |
b4e70030 JB |
354 | infodir='${prefix}/info' |
355 | mandir='${prefix}/man' | |
c906108c | 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 | |
b4e70030 | 362 | eval "$ac_prev=\$ac_option" |
c906108c SS |
363 | ac_prev= |
364 | continue | |
365 | fi | |
366 | ||
b4e70030 | 367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
368 | |
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
b4e70030 | 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 | 392 | |
b4e70030 | 393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
c906108c | 394 | ac_prev=datadir ;; |
b4e70030 JB |
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'` | |
b4e70030 | 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'` | |
b4e70030 JB |
415 | case $ac_option in |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
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 \ | |
b4e70030 JB |
471 | | --localstate | --localstat | --localsta | --localst \ |
472 | | --locals | --local | --loca | --loc | --lo) | |
c906108c SS |
473 | ac_prev=localstatedir ;; |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
b4e70030 JB |
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'` |
b4e70030 JB |
597 | case $ac_option in |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
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'` | |
b4e70030 | 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; }; } | |
b4e70030 JB |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
642 | eval "$ac_envvar='$ac_optarg'" | |
bec39cab AC |
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 | |
b4e70030 JB |
662 | # Be sure to have absolute paths. |
663 | for ac_var in exec_prefix prefix | |
c906108c | 664 | do |
b4e70030 | 665 | eval ac_val=$`echo $ac_var` |
bec39cab | 666 | case $ac_val in |
b4e70030 JB |
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 | |
672 | ||
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 | |
676 | do | |
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 | |
b4e70030 JB |
712 | # Try the directory containing this script, then its parent. |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
bec39cab AC |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
715 | X"$0" : 'X\(//\)[^/]' \| \ | |
716 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
717 | X"$0" : 'X\(/\)' \| \ |
718 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 719 | echo X"$0" | |
b4e70030 JB |
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 | 725 | srcdir=$ac_confdir |
b4e70030 | 726 | if test ! -r $srcdir/$ac_unique_file; then |
c906108c SS |
727 | srcdir=.. |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
b4e70030 JB |
732 | if test ! -r $srcdir/$ac_unique_file; then |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
bec39cab | 738 | { (exit 1); exit 1; }; } |
b4e70030 | 739 | fi |
c906108c | 740 | fi |
b4e70030 JB |
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 | |
bec39cab | 743 | { (exit 1); exit 1; }; } |
b4e70030 JB |
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 | ||
b4e70030 JB |
805 | _ACEOF |
806 | ||
807 | cat <<_ACEOF | |
bec39cab AC |
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] | |
b4e70030 | 825 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
bec39cab AC |
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] | |
b4e70030 JB |
832 | --infodir=DIR info documentation [PREFIX/info] |
833 | --mandir=DIR man documentation [PREFIX/man] | |
bec39cab AC |
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-gdbcli disable command-line interface (CLI) |
864 | --disable-gdbmi disable machine-interface (MI) | |
865 | --enable-tui enable full-screen terminal user interface (TUI) | |
866 | --enable-gdbtk enable gdbtk graphical user interface (GUI) | |
867 | --enable-profiling enable profiling of GDB | |
3841debe | 868 | --disable-rpath do not hardcode runtime library paths |
094a342e | 869 | --enable-werror treat compile warnings as errors |
bec39cab AC |
870 | --enable-build-warnings Enable build-time compiler warnings if gcc is used |
871 | --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used | |
872 | --enable-sim Link gdb with simulator | |
873 | --enable-multi-ice build the multi-ice-gdb-server | |
874 | ||
875 | Optional Packages: | |
876 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
877 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
bec39cab AC |
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 | |
6a30b0a5 | 880 | --with-system-readline use installed readline library |
5c39566f | 881 | --with-expat include expat support (auto/yes/no) |
3841debe DJ |
882 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
883 | --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib | |
884 | --without-libexpat-prefix don't search for libexpat in includedir and libdir | |
bec39cab AC |
885 | --without-included-regex don't use included regex; this is the default |
886 | on systems with version 2 of the GNU C library | |
887 | (use with caution on other system) | |
888 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
889 | --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh) | |
890 | --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh) | |
891 | --with-tclinclude=DIR Directory where tcl private headers are | |
892 | --with-tkinclude=DIR Directory where tk private headers are | |
893 | --with-itclconfig Directory containing itcl configuration (itclConfig.sh) | |
894 | --with-itkconfig Directory containing itk configuration (itkConfig.sh) | |
895 | --with-x use the X Window System | |
896 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
897 | ||
898 | Some influential environment variables: | |
899 | CC C compiler command | |
900 | CFLAGS C compiler flags | |
901 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
902 | nonstandard directory <lib dir> | |
b4e70030 JB |
903 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
904 | headers in a nonstandard directory <include dir> | |
bec39cab AC |
905 | CPP C preprocessor |
906 | ||
907 | Use these variables to override the choices made by `configure' or to help | |
908 | it to find libraries and programs with nonstandard names/locations. | |
909 | ||
910 | _ACEOF | |
911 | fi | |
912 | ||
913 | if test "$ac_init_help" = "recursive"; then | |
914 | # If there are subdirs, report their specific --help. | |
b4e70030 | 915 | ac_popdir=`pwd` |
bec39cab AC |
916 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
917 | test -d $ac_dir || continue | |
918 | ac_builddir=. | |
919 | ||
b4e70030 | 920 | if test "$ac_dir" != .; then |
bec39cab | 921 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
922 | # A "../" for each directory in $ac_dir_suffix. |
923 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
924 | else | |
925 | ac_dir_suffix= ac_top_builddir= | |
926 | fi | |
bec39cab AC |
927 | |
928 | case $srcdir in | |
b4e70030 | 929 | .) # No --srcdir option. We are building in place. |
bec39cab | 930 | ac_srcdir=. |
b4e70030 JB |
931 | if test -z "$ac_top_builddir"; then |
932 | ac_top_srcdir=. | |
933 | else | |
934 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
935 | fi ;; | |
936 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 937 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
938 | ac_top_srcdir=$srcdir ;; |
939 | *) # Relative path. | |
940 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
941 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
942 | esac | |
943 | ||
944 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
945 | # the directories may not exist. | |
946 | case `pwd` in | |
947 | .) ac_abs_builddir="$ac_dir";; | |
948 | *) | |
949 | case "$ac_dir" in | |
950 | .) ac_abs_builddir=`pwd`;; | |
951 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
952 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
953 | esac;; | |
954 | esac | |
955 | case $ac_abs_builddir in | |
956 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
957 | *) | |
958 | case ${ac_top_builddir}. in | |
959 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
960 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
961 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
962 | esac;; | |
963 | esac | |
964 | case $ac_abs_builddir in | |
965 | .) ac_abs_srcdir=$ac_srcdir;; | |
966 | *) | |
967 | case $ac_srcdir in | |
968 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
969 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
970 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
971 | esac;; | |
972 | esac | |
973 | case $ac_abs_builddir in | |
974 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
975 | *) | |
976 | case $ac_top_srcdir in | |
977 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
978 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
979 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
980 | esac;; | |
bec39cab AC |
981 | esac |
982 | ||
b4e70030 JB |
983 | cd $ac_dir |
984 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab | 985 | if test -f $ac_srcdir/configure.gnu; then |
b4e70030 | 986 | echo |
bec39cab AC |
987 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
988 | elif test -f $ac_srcdir/configure; then | |
b4e70030 | 989 | echo |
bec39cab | 990 | $SHELL $ac_srcdir/configure --help=recursive |
b4e70030 JB |
991 | elif test -f $ac_srcdir/configure.ac || |
992 | test -f $ac_srcdir/configure.in; then | |
993 | echo | |
994 | $ac_configure --help | |
3ace7edb | 995 | else |
bec39cab | 996 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
b4e70030 JB |
997 | fi |
998 | cd $ac_popdir | |
bec39cab AC |
999 | done |
1000 | fi | |
1001 | ||
b4e70030 | 1002 | test -n "$ac_init_help" && exit 0 |
bec39cab AC |
1003 | if $ac_init_version; then |
1004 | cat <<\_ACEOF | |
1005 | ||
b4e70030 | 1006 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
1007 | This configure script is free software; the Free Software Foundation |
1008 | gives unlimited permission to copy, distribute and modify it. | |
1009 | _ACEOF | |
b4e70030 | 1010 | exit 0 |
bec39cab | 1011 | fi |
b4e70030 JB |
1012 | exec 5>config.log |
1013 | cat >&5 <<_ACEOF | |
bec39cab AC |
1014 | This file contains any messages produced by compilers while |
1015 | running configure, to aid debugging if configure makes a mistake. | |
1016 | ||
1017 | It was created by $as_me, which was | |
b4e70030 | 1018 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
1019 | |
1020 | $ $0 $@ | |
1021 | ||
1022 | _ACEOF | |
1023 | { | |
1024 | cat <<_ASUNAME | |
1025 | ## --------- ## | |
1026 | ## Platform. ## | |
1027 | ## --------- ## | |
1028 | ||
1029 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1030 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1031 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1032 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1033 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1034 | ||
1035 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1036 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1037 | ||
1038 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1039 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1040 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
b4e70030 | 1041 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
bec39cab AC |
1042 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1043 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1044 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1045 | ||
1046 | _ASUNAME | |
1047 | ||
1048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1049 | for as_dir in $PATH | |
1050 | do | |
1051 | IFS=$as_save_IFS | |
1052 | test -z "$as_dir" && as_dir=. | |
1053 | echo "PATH: $as_dir" | |
1054 | done | |
1055 | ||
1056 | } >&5 | |
1057 | ||
1058 | cat >&5 <<_ACEOF | |
1059 | ||
1060 | ||
1061 | ## ----------- ## | |
1062 | ## Core tests. ## | |
1063 | ## ----------- ## | |
1064 | ||
1065 | _ACEOF | |
1066 | ||
1067 | ||
1068 | # Keep a trace of the command line. | |
1069 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1070 | # Strip out --silent because we don't want to record it for future runs. | |
1071 | # Also quote any args containing shell meta-characters. | |
1072 | # Make two passes to allow for proper duplicate-argument suppression. | |
1073 | ac_configure_args= | |
1074 | ac_configure_args0= | |
1075 | ac_configure_args1= | |
1076 | ac_sep= | |
1077 | ac_must_keep_next=false | |
1078 | for ac_pass in 1 2 | |
1079 | do | |
1080 | for ac_arg | |
1081 | do | |
1082 | case $ac_arg in | |
1083 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1084 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1085 | | -silent | --silent | --silen | --sile | --sil) | |
1086 | continue ;; | |
b4e70030 | 1087 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
bec39cab AC |
1088 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1089 | esac | |
1090 | case $ac_pass in | |
1091 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1092 | 2) | |
1093 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1094 | if test $ac_must_keep_next = true; then | |
1095 | ac_must_keep_next=false # Got value, back to normal. | |
1096 | else | |
1097 | case $ac_arg in | |
1098 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1099 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1100 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1101 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1102 | case "$ac_configure_args0 " in | |
1103 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1104 | esac | |
1105 | ;; | |
1106 | -* ) ac_must_keep_next=true ;; | |
1107 | esac | |
1108 | fi | |
1109 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1110 | # Get rid of the leading space. | |
1111 | ac_sep=" " | |
1112 | ;; | |
1113 | esac | |
1114 | done | |
1115 | done | |
1116 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1117 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1118 | ||
1119 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1120 | # config.log. We remove comments because anyway the quotes in there | |
1121 | # would cause problems or look ugly. | |
b4e70030 JB |
1122 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1123 | # such as our DU 5.0 friend, will then `close' the trap. | |
bec39cab AC |
1124 | trap 'exit_status=$? |
1125 | # Save into config.log some information that might help in debugging. | |
1126 | { | |
1127 | echo | |
1128 | ||
1129 | cat <<\_ASBOX | |
1130 | ## ---------------- ## | |
1131 | ## Cache variables. ## | |
1132 | ## ---------------- ## | |
1133 | _ASBOX | |
1134 | echo | |
1135 | # The following way of writing the cache mishandles newlines in values, | |
b4e70030 | 1136 | { |
bec39cab | 1137 | (set) 2>&1 | |
b4e70030 JB |
1138 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1139 | *ac_space=\ *) | |
bec39cab | 1140 | sed -n \ |
b4e70030 JB |
1141 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1142 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1143 | ;; | |
bec39cab | 1144 | *) |
b4e70030 JB |
1145 | sed -n \ |
1146 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 1147 | ;; |
b4e70030 JB |
1148 | esac; |
1149 | } | |
bec39cab AC |
1150 | echo |
1151 | ||
1152 | cat <<\_ASBOX | |
1153 | ## ----------------- ## | |
1154 | ## Output variables. ## | |
1155 | ## ----------------- ## | |
1156 | _ASBOX | |
1157 | echo | |
1158 | for ac_var in $ac_subst_vars | |
1159 | do | |
b4e70030 JB |
1160 | eval ac_val=$`echo $ac_var` |
1161 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1162 | done | sort |
1163 | echo | |
1164 | ||
1165 | if test -n "$ac_subst_files"; then | |
1166 | cat <<\_ASBOX | |
b4e70030 JB |
1167 | ## ------------- ## |
1168 | ## Output files. ## | |
1169 | ## ------------- ## | |
bec39cab AC |
1170 | _ASBOX |
1171 | echo | |
1172 | for ac_var in $ac_subst_files | |
1173 | do | |
b4e70030 JB |
1174 | eval ac_val=$`echo $ac_var` |
1175 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1176 | done | sort |
1177 | echo | |
1178 | fi | |
1179 | ||
1180 | if test -s confdefs.h; then | |
1181 | cat <<\_ASBOX | |
1182 | ## ----------- ## | |
1183 | ## confdefs.h. ## | |
1184 | ## ----------- ## | |
1185 | _ASBOX | |
1186 | echo | |
b4e70030 | 1187 | sed "/^$/d" confdefs.h | sort |
bec39cab | 1188 | echo |
3ace7edb | 1189 | fi |
bec39cab AC |
1190 | test "$ac_signal" != 0 && |
1191 | echo "$as_me: caught signal $ac_signal" | |
1192 | echo "$as_me: exit $exit_status" | |
1193 | } >&5 | |
b4e70030 JB |
1194 | rm -f core *.core && |
1195 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
bec39cab | 1196 | exit $exit_status |
b4e70030 | 1197 | ' 0 |
bec39cab AC |
1198 | for ac_signal in 1 2 13 15; do |
1199 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1200 | done | |
1201 | ac_signal=0 | |
1202 | ||
1203 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
b4e70030 JB |
1204 | rm -rf conftest* confdefs.h |
1205 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1206 | echo >confdefs.h | |
bec39cab AC |
1207 | |
1208 | # Predefined preprocessor variables. | |
1209 | ||
1210 | cat >>confdefs.h <<_ACEOF | |
1211 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1212 | _ACEOF | |
1213 | ||
1214 | ||
1215 | cat >>confdefs.h <<_ACEOF | |
1216 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1217 | _ACEOF | |
1218 | ||
1219 | ||
1220 | cat >>confdefs.h <<_ACEOF | |
1221 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1222 | _ACEOF | |
1223 | ||
1224 | ||
1225 | cat >>confdefs.h <<_ACEOF | |
1226 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1227 | _ACEOF | |
1228 | ||
1229 | ||
1230 | cat >>confdefs.h <<_ACEOF | |
1231 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1232 | _ACEOF | |
1233 | ||
1234 | ||
1235 | # Let the site file select an alternate cache file if it wants to. | |
1236 | # Prefer explicitly selected file to automatically selected ones. | |
b4e70030 JB |
1237 | if test -z "$CONFIG_SITE"; then |
1238 | if test "x$prefix" != xNONE; then | |
1239 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1240 | else | |
1241 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1242 | fi | |
c906108c | 1243 | fi |
b4e70030 | 1244 | for ac_site_file in $CONFIG_SITE; do |
c906108c | 1245 | if test -r "$ac_site_file"; then |
bec39cab AC |
1246 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1247 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1248 | sed 's/^/| /' "$ac_site_file" >&5 | |
c906108c SS |
1249 | . "$ac_site_file" |
1250 | fi | |
1251 | done | |
1252 | ||
1253 | if test -r "$cache_file"; then | |
bec39cab AC |
1254 | # Some versions of bash will fail to source /dev/null (special |
1255 | # files actually), so we avoid doing that. | |
1256 | if test -f "$cache_file"; then | |
1257 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1258 | echo "$as_me: loading cache $cache_file" >&6;} | |
1259 | case $cache_file in | |
1260 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1261 | *) . ./$cache_file;; | |
1262 | esac | |
1263 | fi | |
c906108c | 1264 | else |
bec39cab AC |
1265 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1266 | echo "$as_me: creating cache $cache_file" >&6;} | |
1267 | >$cache_file | |
1268 | fi | |
1269 | ||
1270 | # Check that the precious variables saved in the cache have kept the same | |
1271 | # value. | |
1272 | ac_cache_corrupted=false | |
b4e70030 JB |
1273 | for ac_var in `(set) 2>&1 | |
1274 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
bec39cab AC |
1275 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1276 | eval ac_new_set=\$ac_env_${ac_var}_set | |
b4e70030 JB |
1277 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1278 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
bec39cab AC |
1279 | case $ac_old_set,$ac_new_set in |
1280 | set,) | |
1281 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1282 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1283 | ac_cache_corrupted=: ;; | |
1284 | ,set) | |
1285 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1286 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1287 | ac_cache_corrupted=: ;; | |
1288 | ,);; | |
1289 | *) | |
1290 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1291 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1292 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1293 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1294 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1295 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1296 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1297 | ac_cache_corrupted=: | |
1298 | fi;; | |
1299 | esac | |
1300 | # Pass precious variables to config.status. | |
1301 | if test "$ac_new_set" = set; then | |
1302 | case $ac_new_val in | |
b4e70030 JB |
1303 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1304 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
bec39cab AC |
1305 | *) ac_arg=$ac_var=$ac_new_val ;; |
1306 | esac | |
1307 | case " $ac_configure_args " in | |
1308 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1309 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1310 | esac | |
1311 | fi | |
1312 | done | |
1313 | if $ac_cache_corrupted; then | |
1314 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1315 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1316 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1317 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1318 | { (exit 1); exit 1; }; } | |
c906108c SS |
1319 | fi |
1320 | ||
b4e70030 JB |
1321 | ac_ext=c |
1322 | ac_cpp='$CPP $CPPFLAGS' | |
1323 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1324 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1325 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c SS |
1326 | |
1327 | ||
bec39cab AC |
1328 | |
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | ||
1338 | ||
1339 | ||
1340 | ||
1341 | ||
1342 | ||
1343 | ||
bec39cab | 1344 | |
b4e70030 JB |
1345 | ac_config_headers="$ac_config_headers config.h:config.in" |
1346 | ||
1347 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1348 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1349 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
413ccac7 | 1350 | if test "${enable_maintainer_mode+set}" = set; then |
b4e70030 JB |
1351 | enableval="$enable_maintainer_mode" |
1352 | USE_MAINTAINER_MODE=$enableval | |
413ccac7 AC |
1353 | else |
1354 | USE_MAINTAINER_MODE=no | |
b4e70030 JB |
1355 | fi; |
1356 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1357 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
413ccac7 | 1358 | |
413ccac7 AC |
1359 | |
1360 | if test $USE_MAINTAINER_MODE = yes; then | |
1361 | MAINTAINER_MODE_TRUE= | |
1362 | MAINTAINER_MODE_FALSE='#' | |
1363 | else | |
1364 | MAINTAINER_MODE_TRUE='#' | |
1365 | MAINTAINER_MODE_FALSE= | |
1366 | fi | |
85981d60 | 1367 | |
413ccac7 | 1368 | MAINT=$MAINTAINER_MODE_TRUE |
413ccac7 | 1369 | |
c906108c | 1370 | |
bec39cab AC |
1371 | |
1372 | ac_ext=c | |
1373 | ac_cpp='$CPP $CPPFLAGS' | |
1374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1377 | if test -n "$ac_tool_prefix"; then | |
1378 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1379 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b4e70030 JB |
1380 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1382 | if test "${ac_cv_prog_CC+set}" = set; then |
1383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1384 | else | |
1385 | if test -n "$CC"; then | |
1386 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1387 | else | |
1388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1389 | for as_dir in $PATH | |
1390 | do | |
1391 | IFS=$as_save_IFS | |
1392 | test -z "$as_dir" && as_dir=. | |
1393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1394 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1395 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1397 | break 2 | |
1398 | fi | |
1399 | done | |
1400 | done | |
1401 | ||
1402 | fi | |
1403 | fi | |
1404 | CC=$ac_cv_prog_CC | |
1405 | if test -n "$CC"; then | |
b4e70030 JB |
1406 | echo "$as_me:$LINENO: result: $CC" >&5 |
1407 | echo "${ECHO_T}$CC" >&6 | |
bec39cab | 1408 | else |
b4e70030 JB |
1409 | echo "$as_me:$LINENO: result: no" >&5 |
1410 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1411 | fi |
1412 | ||
1413 | fi | |
1414 | if test -z "$ac_cv_prog_CC"; then | |
1415 | ac_ct_CC=$CC | |
1416 | # Extract the first word of "gcc", so it can be a program name with args. | |
c906108c | 1417 | set dummy gcc; ac_word=$2 |
b4e70030 JB |
1418 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1420 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1422 | else | |
1423 | if test -n "$ac_ct_CC"; then | |
1424 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1425 | else | |
1426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1427 | for as_dir in $PATH | |
1428 | do | |
1429 | IFS=$as_save_IFS | |
1430 | test -z "$as_dir" && as_dir=. | |
1431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1433 | ac_cv_prog_ac_ct_CC="gcc" |
1434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1435 | break 2 | |
1436 | fi | |
1437 | done | |
1438 | done | |
1439 | ||
1440 | fi | |
1441 | fi | |
1442 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1443 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1444 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1445 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1446 | else |
b4e70030 JB |
1447 | echo "$as_me:$LINENO: result: no" >&5 |
1448 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1449 | fi |
1450 | ||
b4e70030 | 1451 | CC=$ac_ct_CC |
bec39cab AC |
1452 | else |
1453 | CC="$ac_cv_prog_CC" | |
1454 | fi | |
1455 | ||
1456 | if test -z "$CC"; then | |
b4e70030 JB |
1457 | if test -n "$ac_tool_prefix"; then |
1458 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bec39cab | 1459 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b4e70030 JB |
1460 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1462 | if test "${ac_cv_prog_CC+set}" = set; then |
1463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1464 | else |
1465 | if test -n "$CC"; then | |
1466 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1467 | else | |
bec39cab AC |
1468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1469 | for as_dir in $PATH | |
1470 | do | |
1471 | IFS=$as_save_IFS | |
1472 | test -z "$as_dir" && as_dir=. | |
1473 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1474 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1475 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1476 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1477 | break 2 | |
1478 | fi | |
1479 | done | |
1480 | done | |
1481 | ||
c906108c SS |
1482 | fi |
1483 | fi | |
bec39cab | 1484 | CC=$ac_cv_prog_CC |
c906108c | 1485 | if test -n "$CC"; then |
b4e70030 JB |
1486 | echo "$as_me:$LINENO: result: $CC" >&5 |
1487 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1488 | else |
b4e70030 JB |
1489 | echo "$as_me:$LINENO: result: no" >&5 |
1490 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1491 | fi |
1492 | ||
b4e70030 JB |
1493 | fi |
1494 | if test -z "$ac_cv_prog_CC"; then | |
1495 | ac_ct_CC=$CC | |
1496 | # Extract the first word of "cc", so it can be a program name with args. | |
1497 | set dummy cc; ac_word=$2 | |
1498 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1500 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1502 | else | |
1503 | if test -n "$ac_ct_CC"; then | |
1504 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1505 | else | |
1506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1507 | for as_dir in $PATH | |
1508 | do | |
1509 | IFS=$as_save_IFS | |
1510 | test -z "$as_dir" && as_dir=. | |
1511 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1512 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1513 | ac_cv_prog_ac_ct_CC="cc" | |
1514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1515 | break 2 | |
4e8d927d | 1516 | fi |
b4e70030 JB |
1517 | done |
1518 | done | |
1519 | ||
1520 | fi | |
1521 | fi | |
1522 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1523 | if test -n "$ac_ct_CC"; then | |
1524 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1525 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1526 | else | |
1527 | echo "$as_me:$LINENO: result: no" >&5 | |
1528 | echo "${ECHO_T}no" >&6 | |
1529 | fi | |
1530 | ||
1531 | CC=$ac_ct_CC | |
1532 | else | |
1533 | CC="$ac_cv_prog_CC" | |
1534 | fi | |
1535 | ||
bec39cab | 1536 | fi |
c906108c SS |
1537 | if test -z "$CC"; then |
1538 | # Extract the first word of "cc", so it can be a program name with args. | |
1539 | set dummy cc; ac_word=$2 | |
b4e70030 JB |
1540 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1542 | if test "${ac_cv_prog_CC+set}" = set; then |
1543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1544 | else |
1545 | if test -n "$CC"; then | |
1546 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1547 | else | |
c906108c | 1548 | ac_prog_rejected=no |
bec39cab AC |
1549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1550 | for as_dir in $PATH | |
1551 | do | |
1552 | IFS=$as_save_IFS | |
1553 | test -z "$as_dir" && as_dir=. | |
1554 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1555 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1556 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1557 | ac_prog_rejected=yes | |
1558 | continue | |
1559 | fi | |
1560 | ac_cv_prog_CC="cc" | |
1561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1562 | break 2 | |
1563 | fi | |
1564 | done | |
1565 | done | |
1566 | ||
c906108c SS |
1567 | if test $ac_prog_rejected = yes; then |
1568 | # We found a bogon in the path, so make sure we never use it. | |
1569 | set dummy $ac_cv_prog_CC | |
1570 | shift | |
bec39cab | 1571 | if test $# != 0; then |
c906108c SS |
1572 | # We chose a different compiler from the bogus one. |
1573 | # However, it has the same basename, so the bogon will be chosen | |
1574 | # first if we set CC to just the basename; use the full file name. | |
1575 | shift | |
bec39cab | 1576 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
1577 | fi |
1578 | fi | |
1579 | fi | |
1580 | fi | |
bec39cab | 1581 | CC=$ac_cv_prog_CC |
c906108c | 1582 | if test -n "$CC"; then |
b4e70030 JB |
1583 | echo "$as_me:$LINENO: result: $CC" >&5 |
1584 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1585 | else |
b4e70030 JB |
1586 | echo "$as_me:$LINENO: result: no" >&5 |
1587 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1588 | fi |
1589 | ||
bec39cab AC |
1590 | fi |
1591 | if test -z "$CC"; then | |
1592 | if test -n "$ac_tool_prefix"; then | |
b4e70030 | 1593 | for ac_prog in cl |
bec39cab AC |
1594 | do |
1595 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1596 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b4e70030 JB |
1597 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1599 | if test "${ac_cv_prog_CC+set}" = set; then |
1600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1601 | else |
1602 | if test -n "$CC"; then | |
1603 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1604 | else | |
bec39cab AC |
1605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1606 | for as_dir in $PATH | |
1607 | do | |
1608 | IFS=$as_save_IFS | |
1609 | test -z "$as_dir" && as_dir=. | |
1610 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1611 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1612 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1613 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1614 | break 2 | |
1615 | fi | |
1616 | done | |
1617 | done | |
1618 | ||
c906108c SS |
1619 | fi |
1620 | fi | |
bec39cab | 1621 | CC=$ac_cv_prog_CC |
c906108c | 1622 | if test -n "$CC"; then |
b4e70030 JB |
1623 | echo "$as_me:$LINENO: result: $CC" >&5 |
1624 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1625 | else |
b4e70030 JB |
1626 | echo "$as_me:$LINENO: result: no" >&5 |
1627 | echo "${ECHO_T}no" >&6 | |
c906108c | 1628 | fi |
bec39cab AC |
1629 | |
1630 | test -n "$CC" && break | |
1631 | done | |
1632 | fi | |
1633 | if test -z "$CC"; then | |
1634 | ac_ct_CC=$CC | |
b4e70030 | 1635 | for ac_prog in cl |
bec39cab AC |
1636 | do |
1637 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1638 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
1639 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1641 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1643 | else | |
1644 | if test -n "$ac_ct_CC"; then | |
1645 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1646 | else | |
1647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1648 | for as_dir in $PATH | |
1649 | do | |
1650 | IFS=$as_save_IFS | |
1651 | test -z "$as_dir" && as_dir=. | |
1652 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1653 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1654 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1656 | break 2 | |
c906108c | 1657 | fi |
bec39cab AC |
1658 | done |
1659 | done | |
1660 | ||
1661 | fi | |
1662 | fi | |
1663 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1664 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1665 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1666 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1667 | else |
b4e70030 JB |
1668 | echo "$as_me:$LINENO: result: no" >&5 |
1669 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1670 | fi |
1671 | ||
bec39cab AC |
1672 | test -n "$ac_ct_CC" && break |
1673 | done | |
c906108c | 1674 | |
b4e70030 | 1675 | CC=$ac_ct_CC |
bec39cab AC |
1676 | fi |
1677 | ||
1678 | fi | |
1679 | ||
1680 | ||
1681 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1682 | See \`config.log' for more details." >&5 | |
1683 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1684 | See \`config.log' for more details." >&2;} | |
1685 | { (exit 1); exit 1; }; } | |
1686 | ||
1687 | # Provide some information about the compiler. | |
b4e70030 JB |
1688 | echo "$as_me:$LINENO:" \ |
1689 | "checking for C compiler version" >&5 | |
bec39cab | 1690 | ac_compiler=`set X $ac_compile; echo $2` |
b4e70030 JB |
1691 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1692 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
bec39cab AC |
1693 | ac_status=$? |
1694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1695 | (exit $ac_status); } | |
b4e70030 JB |
1696 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1697 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
bec39cab AC |
1698 | ac_status=$? |
1699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1700 | (exit $ac_status); } | |
b4e70030 JB |
1701 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1702 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
bec39cab AC |
1703 | ac_status=$? |
1704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1705 | (exit $ac_status); } | |
1706 | ||
1707 | cat >conftest.$ac_ext <<_ACEOF | |
1708 | /* confdefs.h. */ | |
1709 | _ACEOF | |
1710 | cat confdefs.h >>conftest.$ac_ext | |
1711 | cat >>conftest.$ac_ext <<_ACEOF | |
1712 | /* end confdefs.h. */ | |
1713 | ||
1714 | int | |
1715 | main () | |
1716 | { | |
1717 | ||
1718 | ; | |
1719 | return 0; | |
1720 | } | |
1721 | _ACEOF | |
1722 | ac_clean_files_save=$ac_clean_files | |
b4e70030 | 1723 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
bec39cab AC |
1724 | # Try to create an executable without -o first, disregard a.out. |
1725 | # It will help us diagnose broken compilers, and finding out an intuition | |
1726 | # of exeext. | |
b4e70030 JB |
1727 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1728 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
bec39cab AC |
1729 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1730 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1731 | (eval $ac_link_default) 2>&5 | |
1732 | ac_status=$? | |
1733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1734 | (exit $ac_status); }; then | |
b4e70030 JB |
1735 | # Find the output, starting from the most likely. This scheme is |
1736 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1737 | # resort. | |
1738 | ||
1739 | # Be careful to initialize this variable, since it used to be cached. | |
1740 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1741 | ac_cv_exeext= | |
1742 | # b.out is created by i960 compilers. | |
1743 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
bec39cab AC |
1744 | do |
1745 | test -f "$ac_file" || continue | |
1746 | case $ac_file in | |
b4e70030 JB |
1747 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1748 | ;; | |
1749 | conftest.$ac_ext ) | |
1750 | # This is the source file. | |
1751 | ;; | |
1752 | [ab].out ) | |
1753 | # We found the default executable, but exeext='' is most | |
1754 | # certainly right. | |
1755 | break;; | |
1756 | *.* ) | |
1757 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1758 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1759 | # but it would be cool to find out if it's true. Does anybody | |
1760 | # maintain Libtool? --akim. | |
1761 | export ac_cv_exeext | |
1762 | break;; | |
1763 | * ) | |
1764 | break;; | |
bec39cab AC |
1765 | esac |
1766 | done | |
1767 | else | |
1768 | echo "$as_me: failed program was:" >&5 | |
1769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1770 | ||
1771 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1772 | See \`config.log' for more details." >&5 | |
1773 | echo "$as_me: error: C compiler cannot create executables | |
1774 | See \`config.log' for more details." >&2;} | |
1775 | { (exit 77); exit 77; }; } | |
1776 | fi | |
1777 | ||
b4e70030 JB |
1778 | ac_exeext=$ac_cv_exeext |
1779 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1780 | echo "${ECHO_T}$ac_file" >&6 | |
1781 | ||
1782 | # Check the compiler produces executables we can run. If not, either | |
bec39cab | 1783 | # the compiler is broken, or we cross compile. |
b4e70030 JB |
1784 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1785 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
bec39cab AC |
1786 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1787 | # If not cross compiling, check that we can run a simple program. | |
1788 | if test "$cross_compiling" != yes; then | |
1789 | if { ac_try='./$ac_file' | |
1790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1791 | (eval $ac_try) 2>&5 | |
1792 | ac_status=$? | |
1793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1794 | (exit $ac_status); }; }; then | |
1795 | cross_compiling=no | |
c906108c | 1796 | else |
bec39cab AC |
1797 | if test "$cross_compiling" = maybe; then |
1798 | cross_compiling=yes | |
1799 | else | |
1800 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1801 | If you meant to cross compile, use \`--host'. | |
1802 | See \`config.log' for more details." >&5 | |
1803 | echo "$as_me: error: cannot run C compiled programs. | |
1804 | If you meant to cross compile, use \`--host'. | |
1805 | See \`config.log' for more details." >&2;} | |
1806 | { (exit 1); exit 1; }; } | |
1807 | fi | |
c906108c | 1808 | fi |
bec39cab | 1809 | fi |
b4e70030 JB |
1810 | echo "$as_me:$LINENO: result: yes" >&5 |
1811 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 1812 | |
b4e70030 JB |
1813 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1814 | ac_clean_files=$ac_clean_files_save | |
1815 | # Check the compiler produces executables we can run. If not, either | |
1816 | # the compiler is broken, or we cross compile. | |
1817 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1818 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1819 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1820 | echo "${ECHO_T}$cross_compiling" >&6 | |
4e8d927d | 1821 | |
b4e70030 JB |
1822 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1823 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
bec39cab AC |
1825 | (eval $ac_link) 2>&5 |
1826 | ac_status=$? | |
1827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1828 | (exit $ac_status); }; then | |
b4e70030 JB |
1829 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
1830 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1831 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1832 | # `rm'. | |
1833 | for ac_file in conftest.exe conftest conftest.*; do | |
1834 | test -f "$ac_file" || continue | |
1835 | case $ac_file in | |
1836 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1837 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1838 | export ac_cv_exeext | |
1839 | break;; | |
1840 | * ) break;; | |
1841 | esac | |
1842 | done | |
c906108c | 1843 | else |
bec39cab AC |
1844 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1845 | See \`config.log' for more details." >&5 | |
1846 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1847 | See \`config.log' for more details." >&2;} | |
1848 | { (exit 1); exit 1; }; } | |
c906108c | 1849 | fi |
c906108c | 1850 | |
b4e70030 JB |
1851 | rm -f conftest$ac_cv_exeext |
1852 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1853 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 1854 | |
b4e70030 | 1855 | rm -f conftest.$ac_ext |
bec39cab AC |
1856 | EXEEXT=$ac_cv_exeext |
1857 | ac_exeext=$EXEEXT | |
b4e70030 JB |
1858 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1859 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
bec39cab AC |
1860 | if test "${ac_cv_objext+set}" = set; then |
1861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1862 | else | |
b4e70030 JB |
1863 | cat >conftest.$ac_ext <<_ACEOF |
1864 | /* confdefs.h. */ | |
1865 | _ACEOF | |
1866 | cat confdefs.h >>conftest.$ac_ext | |
1867 | cat >>conftest.$ac_ext <<_ACEOF | |
1868 | /* end confdefs.h. */ | |
1869 | ||
1870 | int | |
1871 | main () | |
1872 | { | |
1873 | ||
1874 | ; | |
1875 | return 0; | |
1876 | } | |
1877 | _ACEOF | |
1878 | rm -f conftest.o conftest.obj | |
bec39cab AC |
1879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1880 | (eval $ac_compile) 2>&5 | |
1881 | ac_status=$? | |
1882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1883 | (exit $ac_status); }; then | |
b4e70030 | 1884 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
bec39cab | 1885 | case $ac_file in |
b4e70030 | 1886 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
bec39cab AC |
1887 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1888 | break;; | |
1889 | esac | |
1890 | done | |
c906108c | 1891 | else |
bec39cab AC |
1892 | echo "$as_me: failed program was:" >&5 |
1893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1894 | ||
1895 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1896 | See \`config.log' for more details." >&5 | |
1897 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1898 | See \`config.log' for more details." >&2;} | |
1899 | { (exit 1); exit 1; }; } | |
c906108c SS |
1900 | fi |
1901 | ||
b4e70030 | 1902 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
bec39cab | 1903 | fi |
b4e70030 JB |
1904 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1905 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
bec39cab AC |
1906 | OBJEXT=$ac_cv_objext |
1907 | ac_objext=$OBJEXT | |
b4e70030 JB |
1908 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1909 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
bec39cab AC |
1910 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1912 | else |
bec39cab AC |
1913 | cat >conftest.$ac_ext <<_ACEOF |
1914 | /* confdefs.h. */ | |
1915 | _ACEOF | |
1916 | cat confdefs.h >>conftest.$ac_ext | |
1917 | cat >>conftest.$ac_ext <<_ACEOF | |
1918 | /* end confdefs.h. */ | |
1919 | ||
1920 | int | |
1921 | main () | |
1922 | { | |
1923 | #ifndef __GNUC__ | |
1924 | choke me | |
1925 | #endif | |
1926 | ||
1927 | ; | |
1928 | return 0; | |
1929 | } | |
1930 | _ACEOF | |
1931 | rm -f conftest.$ac_objext | |
1932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1933 | (eval $ac_compile) 2>conftest.er1 | |
1934 | ac_status=$? | |
1935 | grep -v '^ *+' conftest.er1 >conftest.err | |
1936 | rm -f conftest.er1 | |
1937 | cat conftest.err >&5 | |
1938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1939 | (exit $ac_status); } && | |
b4e70030 JB |
1940 | { ac_try='test -z "$ac_c_werror_flag" |
1941 | || test ! -s conftest.err' | |
bec39cab AC |
1942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1943 | (eval $ac_try) 2>&5 | |
1944 | ac_status=$? | |
1945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1946 | (exit $ac_status); }; } && | |
1947 | { ac_try='test -s conftest.$ac_objext' | |
1948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1949 | (eval $ac_try) 2>&5 | |
1950 | ac_status=$? | |
1951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1952 | (exit $ac_status); }; }; then | |
1953 | ac_compiler_gnu=yes | |
1954 | else | |
1955 | echo "$as_me: failed program was:" >&5 | |
1956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1957 | ||
b4e70030 | 1958 | ac_compiler_gnu=no |
bec39cab AC |
1959 | fi |
1960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
1961 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1962 | ||
1963 | fi | |
b4e70030 JB |
1964 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
1965 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
bec39cab AC |
1966 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
1967 | ac_test_CFLAGS=${CFLAGS+set} | |
1968 | ac_save_CFLAGS=$CFLAGS | |
b4e70030 JB |
1969 | CFLAGS="-g" |
1970 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1971 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
bec39cab AC |
1972 | if test "${ac_cv_prog_cc_g+set}" = set; then |
1973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1974 | else | |
b4e70030 | 1975 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
1976 | /* confdefs.h. */ |
1977 | _ACEOF | |
1978 | cat confdefs.h >>conftest.$ac_ext | |
1979 | cat >>conftest.$ac_ext <<_ACEOF | |
1980 | /* end confdefs.h. */ | |
1981 | ||
1982 | int | |
1983 | main () | |
1984 | { | |
1985 | ||
1986 | ; | |
1987 | return 0; | |
1988 | } | |
1989 | _ACEOF | |
1990 | rm -f conftest.$ac_objext | |
1991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1992 | (eval $ac_compile) 2>conftest.er1 | |
1993 | ac_status=$? | |
1994 | grep -v '^ *+' conftest.er1 >conftest.err | |
1995 | rm -f conftest.er1 | |
1996 | cat conftest.err >&5 | |
1997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1998 | (exit $ac_status); } && | |
b4e70030 JB |
1999 | { ac_try='test -z "$ac_c_werror_flag" |
2000 | || test ! -s conftest.err' | |
bec39cab AC |
2001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2002 | (eval $ac_try) 2>&5 | |
2003 | ac_status=$? | |
2004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2005 | (exit $ac_status); }; } && | |
2006 | { ac_try='test -s conftest.$ac_objext' | |
2007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2008 | (eval $ac_try) 2>&5 | |
2009 | ac_status=$? | |
2010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2011 | (exit $ac_status); }; }; then | |
c906108c SS |
2012 | ac_cv_prog_cc_g=yes |
2013 | else | |
bec39cab AC |
2014 | echo "$as_me: failed program was:" >&5 |
2015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2016 | |
b4e70030 | 2017 | ac_cv_prog_cc_g=no |
4e8d927d | 2018 | fi |
bec39cab AC |
2019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2020 | fi | |
b4e70030 JB |
2021 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2022 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 2023 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 2024 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
2025 | elif test $ac_cv_prog_cc_g = yes; then |
2026 | if test "$GCC" = yes; then | |
2027 | CFLAGS="-g -O2" | |
2028 | else | |
2029 | CFLAGS="-g" | |
2030 | fi | |
2031 | else | |
2032 | if test "$GCC" = yes; then | |
2033 | CFLAGS="-O2" | |
2034 | else | |
2035 | CFLAGS= | |
2036 | fi | |
2037 | fi | |
b4e70030 JB |
2038 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2039 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2040 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
bec39cab AC |
2041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2042 | else | |
b4e70030 | 2043 | ac_cv_prog_cc_stdc=no |
bec39cab AC |
2044 | ac_save_CC=$CC |
2045 | cat >conftest.$ac_ext <<_ACEOF | |
2046 | /* confdefs.h. */ | |
2047 | _ACEOF | |
2048 | cat confdefs.h >>conftest.$ac_ext | |
2049 | cat >>conftest.$ac_ext <<_ACEOF | |
2050 | /* end confdefs.h. */ | |
c906108c SS |
2051 | #include <stdarg.h> |
2052 | #include <stdio.h> | |
2053 | #include <sys/types.h> | |
2054 | #include <sys/stat.h> | |
2055 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2056 | struct buf { int x; }; | |
2057 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2058 | static char *e (p, i) | |
2059 | char **p; | |
2060 | int i; | |
2061 | { | |
2062 | return p[i]; | |
2063 | } | |
2064 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2065 | { | |
2066 | char *s; | |
2067 | va_list v; | |
2068 | va_start (v,p); | |
2069 | s = g (p, va_arg (v,int)); | |
2070 | va_end (v); | |
2071 | return s; | |
2072 | } | |
bec39cab AC |
2073 | |
2074 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2075 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2076 | These don't provoke an error unfortunately, instead are silently treated | |
b4e70030 | 2077 | as 'x'. The following induces an error, until -std1 is added to get |
bec39cab AC |
2078 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2079 | array size at least. It's necessary to write '\x00'==0 to get something | |
b4e70030 | 2080 | that's true only with -std1. */ |
bec39cab AC |
2081 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2082 | ||
c906108c SS |
2083 | int test (int i, double x); |
2084 | struct s1 {int (*f) (int a);}; | |
2085 | struct s2 {int (*f) (double a);}; | |
2086 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2087 | int argc; | |
2088 | char **argv; | |
bec39cab AC |
2089 | int |
2090 | main () | |
2091 | { | |
c906108c | 2092 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
bec39cab AC |
2093 | ; |
2094 | return 0; | |
2095 | } | |
2096 | _ACEOF | |
b4e70030 JB |
2097 | # Don't try gcc -ansi; that turns off useful extensions and |
2098 | # breaks some systems' header files. | |
2099 | # AIX -qlanglvl=ansi | |
2100 | # Ultrix and OSF/1 -std1 | |
2101 | # HP-UX 10.20 and later -Ae | |
2102 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2103 | # SVR4 -Xc -D__EXTENSIONS__ | |
2104 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bec39cab AC |
2105 | do |
2106 | CC="$ac_save_CC $ac_arg" | |
2107 | rm -f conftest.$ac_objext | |
2108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2109 | (eval $ac_compile) 2>conftest.er1 | |
2110 | ac_status=$? | |
2111 | grep -v '^ *+' conftest.er1 >conftest.err | |
2112 | rm -f conftest.er1 | |
2113 | cat conftest.err >&5 | |
2114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2115 | (exit $ac_status); } && | |
b4e70030 JB |
2116 | { ac_try='test -z "$ac_c_werror_flag" |
2117 | || test ! -s conftest.err' | |
bec39cab AC |
2118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2119 | (eval $ac_try) 2>&5 | |
2120 | ac_status=$? | |
2121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2122 | (exit $ac_status); }; } && | |
2123 | { ac_try='test -s conftest.$ac_objext' | |
2124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2125 | (eval $ac_try) 2>&5 | |
2126 | ac_status=$? | |
2127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2128 | (exit $ac_status); }; }; then | |
b4e70030 JB |
2129 | ac_cv_prog_cc_stdc=$ac_arg |
2130 | break | |
c906108c | 2131 | else |
bec39cab AC |
2132 | echo "$as_me: failed program was:" >&5 |
2133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2134 | ||
c906108c | 2135 | fi |
bec39cab | 2136 | rm -f conftest.err conftest.$ac_objext |
c906108c | 2137 | done |
b4e70030 | 2138 | rm -f conftest.$ac_ext conftest.$ac_objext |
bec39cab | 2139 | CC=$ac_save_CC |
c906108c SS |
2140 | |
2141 | fi | |
b4e70030 JB |
2142 | |
2143 | case "x$ac_cv_prog_cc_stdc" in | |
2144 | x|xno) | |
2145 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2146 | echo "${ECHO_T}none needed" >&6 ;; | |
bec39cab | 2147 | *) |
b4e70030 JB |
2148 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2149 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2150 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
c906108c SS |
2151 | esac |
2152 | ||
b4e70030 JB |
2153 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2154 | # in C++ we need to declare it. In case someone uses the same compiler | |
2155 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2156 | # the declaration of exit, since it's the most demanding environment. | |
2157 | cat >conftest.$ac_ext <<_ACEOF | |
2158 | #ifndef __cplusplus | |
2159 | choke me | |
2160 | #endif | |
2161 | _ACEOF | |
2162 | rm -f conftest.$ac_objext | |
2163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2164 | (eval $ac_compile) 2>conftest.er1 | |
2165 | ac_status=$? | |
2166 | grep -v '^ *+' conftest.er1 >conftest.err | |
2167 | rm -f conftest.er1 | |
2168 | cat conftest.err >&5 | |
2169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2170 | (exit $ac_status); } && | |
2171 | { ac_try='test -z "$ac_c_werror_flag" | |
2172 | || test ! -s conftest.err' | |
2173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2174 | (eval $ac_try) 2>&5 | |
2175 | ac_status=$? | |
2176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2177 | (exit $ac_status); }; } && | |
2178 | { ac_try='test -s conftest.$ac_objext' | |
2179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2180 | (eval $ac_try) 2>&5 | |
2181 | ac_status=$? | |
2182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2183 | (exit $ac_status); }; }; then | |
2184 | for ac_declaration in \ | |
2185 | '' \ | |
2186 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2187 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2188 | 'extern "C" void exit (int) throw ();' \ | |
2189 | 'extern "C" void exit (int);' \ | |
2190 | 'void exit (int);' | |
2191 | do | |
2192 | cat >conftest.$ac_ext <<_ACEOF | |
2193 | /* confdefs.h. */ | |
2194 | _ACEOF | |
2195 | cat confdefs.h >>conftest.$ac_ext | |
2196 | cat >>conftest.$ac_ext <<_ACEOF | |
2197 | /* end confdefs.h. */ | |
2198 | $ac_declaration | |
2199 | #include <stdlib.h> | |
2200 | int | |
2201 | main () | |
2202 | { | |
2203 | exit (42); | |
2204 | ; | |
2205 | return 0; | |
2206 | } | |
2207 | _ACEOF | |
2208 | rm -f conftest.$ac_objext | |
2209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2210 | (eval $ac_compile) 2>conftest.er1 | |
2211 | ac_status=$? | |
2212 | grep -v '^ *+' conftest.er1 >conftest.err | |
2213 | rm -f conftest.er1 | |
2214 | cat conftest.err >&5 | |
2215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2216 | (exit $ac_status); } && | |
2217 | { ac_try='test -z "$ac_c_werror_flag" | |
2218 | || test ! -s conftest.err' | |
2219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2220 | (eval $ac_try) 2>&5 | |
2221 | ac_status=$? | |
2222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2223 | (exit $ac_status); }; } && | |
2224 | { ac_try='test -s conftest.$ac_objext' | |
2225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2226 | (eval $ac_try) 2>&5 | |
2227 | ac_status=$? | |
2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2229 | (exit $ac_status); }; }; then | |
2230 | : | |
2231 | else | |
2232 | echo "$as_me: failed program was:" >&5 | |
2233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2234 | ||
2235 | continue | |
2236 | fi | |
2237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2238 | cat >conftest.$ac_ext <<_ACEOF | |
2239 | /* confdefs.h. */ | |
2240 | _ACEOF | |
2241 | cat confdefs.h >>conftest.$ac_ext | |
2242 | cat >>conftest.$ac_ext <<_ACEOF | |
2243 | /* end confdefs.h. */ | |
2244 | $ac_declaration | |
2245 | int | |
2246 | main () | |
2247 | { | |
2248 | exit (42); | |
2249 | ; | |
2250 | return 0; | |
2251 | } | |
2252 | _ACEOF | |
2253 | rm -f conftest.$ac_objext | |
2254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2255 | (eval $ac_compile) 2>conftest.er1 | |
2256 | ac_status=$? | |
2257 | grep -v '^ *+' conftest.er1 >conftest.err | |
2258 | rm -f conftest.er1 | |
2259 | cat conftest.err >&5 | |
2260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2261 | (exit $ac_status); } && | |
2262 | { ac_try='test -z "$ac_c_werror_flag" | |
2263 | || test ! -s conftest.err' | |
2264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2265 | (eval $ac_try) 2>&5 | |
2266 | ac_status=$? | |
2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2268 | (exit $ac_status); }; } && | |
2269 | { ac_try='test -s conftest.$ac_objext' | |
2270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2271 | (eval $ac_try) 2>&5 | |
2272 | ac_status=$? | |
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2274 | (exit $ac_status); }; }; then | |
2275 | break | |
2276 | else | |
2277 | echo "$as_me: failed program was:" >&5 | |
2278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2279 | ||
2280 | fi | |
2281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2282 | done | |
2283 | rm -f conftest* | |
2284 | if test -n "$ac_declaration"; then | |
2285 | echo '#ifdef __cplusplus' >>confdefs.h | |
2286 | echo $ac_declaration >>confdefs.h | |
2287 | echo '#endif' >>confdefs.h | |
2288 | fi | |
2289 | ||
2290 | else | |
2291 | echo "$as_me: failed program was:" >&5 | |
2292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2293 | |
b4e70030 JB |
2294 | fi |
2295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab AC |
2296 | ac_ext=c |
2297 | ac_cpp='$CPP $CPPFLAGS' | |
2298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c | 2301 | |
60ca704f | 2302 | |
bec39cab AC |
2303 | cat >>confdefs.h <<\_ACEOF |
2304 | #define _GNU_SOURCE 1 | |
2305 | _ACEOF | |
c906108c SS |
2306 | |
2307 | ||
8bb2c122 | 2308 | |
bec39cab AC |
2309 | ac_ext=c |
2310 | ac_cpp='$CPP $CPPFLAGS' | |
2311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b4e70030 JB |
2314 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2315 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
bec39cab AC |
2316 | # On Suns, sometimes $CPP names a directory. |
2317 | if test -n "$CPP" && test -d "$CPP"; then | |
2318 | CPP= | |
8bb2c122 | 2319 | fi |
bec39cab AC |
2320 | if test -z "$CPP"; then |
2321 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2323 | else | |
2324 | # Double quotes because CPP needs to be expanded | |
2325 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2326 | do | |
2327 | ac_preproc_ok=false | |
2328 | for ac_c_preproc_warn_flag in '' yes | |
2329 | do | |
2330 | # Use a header file that comes with gcc, so configuring glibc | |
2331 | # with a fresh cross-compiler works. | |
2332 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2333 | # <limits.h> exists even on freestanding compilers. | |
2334 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2335 | # not just through cpp. "Syntax error" is here to catch this case. | |
2336 | cat >conftest.$ac_ext <<_ACEOF | |
2337 | /* confdefs.h. */ | |
2338 | _ACEOF | |
2339 | cat confdefs.h >>conftest.$ac_ext | |
2340 | cat >>conftest.$ac_ext <<_ACEOF | |
2341 | /* end confdefs.h. */ | |
2342 | #ifdef __STDC__ | |
2343 | # include <limits.h> | |
2344 | #else | |
2345 | # include <assert.h> | |
2346 | #endif | |
2347 | Syntax error | |
2348 | _ACEOF | |
2349 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2350 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2351 | ac_status=$? | |
2352 | grep -v '^ *+' conftest.er1 >conftest.err | |
2353 | rm -f conftest.er1 | |
2354 | cat conftest.err >&5 | |
2355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2356 | (exit $ac_status); } >/dev/null; then | |
2357 | if test -s conftest.err; then | |
2358 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2359 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2360 | else | |
2361 | ac_cpp_err= | |
2362 | fi | |
8bb2c122 | 2363 | else |
bec39cab | 2364 | ac_cpp_err=yes |
8bb2c122 | 2365 | fi |
bec39cab AC |
2366 | if test -z "$ac_cpp_err"; then |
2367 | : | |
8bb2c122 | 2368 | else |
bec39cab AC |
2369 | echo "$as_me: failed program was:" >&5 |
2370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2371 | ||
2372 | # Broken: fails on valid input. | |
2373 | continue | |
2374 | fi | |
2375 | rm -f conftest.err conftest.$ac_ext | |
2376 | ||
b4e70030 | 2377 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2378 | # can be detected and how. |
2379 | cat >conftest.$ac_ext <<_ACEOF | |
2380 | /* confdefs.h. */ | |
2381 | _ACEOF | |
2382 | cat confdefs.h >>conftest.$ac_ext | |
2383 | cat >>conftest.$ac_ext <<_ACEOF | |
2384 | /* end confdefs.h. */ | |
2385 | #include <ac_nonexistent.h> | |
2386 | _ACEOF | |
2387 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2388 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2389 | ac_status=$? | |
2390 | grep -v '^ *+' conftest.er1 >conftest.err | |
2391 | rm -f conftest.er1 | |
2392 | cat conftest.err >&5 | |
2393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2394 | (exit $ac_status); } >/dev/null; then | |
2395 | if test -s conftest.err; then | |
2396 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2397 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2398 | else | |
2399 | ac_cpp_err= | |
2400 | fi | |
8bb2c122 | 2401 | else |
bec39cab | 2402 | ac_cpp_err=yes |
8bb2c122 | 2403 | fi |
bec39cab AC |
2404 | if test -z "$ac_cpp_err"; then |
2405 | # Broken: success on invalid input. | |
2406 | continue | |
8bb2c122 | 2407 | else |
bec39cab AC |
2408 | echo "$as_me: failed program was:" >&5 |
2409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 2410 | |
bec39cab AC |
2411 | # Passes both tests. |
2412 | ac_preproc_ok=: | |
2413 | break | |
8bb2c122 | 2414 | fi |
bec39cab | 2415 | rm -f conftest.err conftest.$ac_ext |
8bb2c122 | 2416 | |
bec39cab AC |
2417 | done |
2418 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2419 | rm -f conftest.err conftest.$ac_ext | |
2420 | if $ac_preproc_ok; then | |
2421 | break | |
2422 | fi | |
8bb2c122 | 2423 | |
bec39cab AC |
2424 | done |
2425 | ac_cv_prog_CPP=$CPP | |
ddc9cd0f | 2426 | |
c906108c | 2427 | fi |
bec39cab AC |
2428 | CPP=$ac_cv_prog_CPP |
2429 | else | |
2430 | ac_cv_prog_CPP=$CPP | |
c906108c | 2431 | fi |
b4e70030 JB |
2432 | echo "$as_me:$LINENO: result: $CPP" >&5 |
2433 | echo "${ECHO_T}$CPP" >&6 | |
bec39cab AC |
2434 | ac_preproc_ok=false |
2435 | for ac_c_preproc_warn_flag in '' yes | |
2436 | do | |
2437 | # Use a header file that comes with gcc, so configuring glibc | |
2438 | # with a fresh cross-compiler works. | |
2439 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2440 | # <limits.h> exists even on freestanding compilers. | |
2441 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2442 | # not just through cpp. "Syntax error" is here to catch this case. | |
2443 | cat >conftest.$ac_ext <<_ACEOF | |
2444 | /* confdefs.h. */ | |
2445 | _ACEOF | |
2446 | cat confdefs.h >>conftest.$ac_ext | |
2447 | cat >>conftest.$ac_ext <<_ACEOF | |
2448 | /* end confdefs.h. */ | |
2449 | #ifdef __STDC__ | |
2450 | # include <limits.h> | |
2451 | #else | |
2452 | # include <assert.h> | |
2453 | #endif | |
2454 | Syntax error | |
2455 | _ACEOF | |
2456 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2457 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2458 | ac_status=$? | |
2459 | grep -v '^ *+' conftest.er1 >conftest.err | |
2460 | rm -f conftest.er1 | |
2461 | cat conftest.err >&5 | |
2462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2463 | (exit $ac_status); } >/dev/null; then | |
2464 | if test -s conftest.err; then | |
2465 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2466 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2467 | else | |
2468 | ac_cpp_err= | |
2469 | fi | |
c906108c | 2470 | else |
bec39cab | 2471 | ac_cpp_err=yes |
c906108c | 2472 | fi |
bec39cab AC |
2473 | if test -z "$ac_cpp_err"; then |
2474 | : | |
c906108c | 2475 | else |
bec39cab AC |
2476 | echo "$as_me: failed program was:" >&5 |
2477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2478 | ||
2479 | # Broken: fails on valid input. | |
2480 | continue | |
2481 | fi | |
2482 | rm -f conftest.err conftest.$ac_ext | |
2483 | ||
b4e70030 | 2484 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2485 | # can be detected and how. |
2486 | cat >conftest.$ac_ext <<_ACEOF | |
2487 | /* confdefs.h. */ | |
2488 | _ACEOF | |
2489 | cat confdefs.h >>conftest.$ac_ext | |
2490 | cat >>conftest.$ac_ext <<_ACEOF | |
2491 | /* end confdefs.h. */ | |
2492 | #include <ac_nonexistent.h> | |
2493 | _ACEOF | |
2494 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2495 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2496 | ac_status=$? | |
2497 | grep -v '^ *+' conftest.er1 >conftest.err | |
2498 | rm -f conftest.er1 | |
2499 | cat conftest.err >&5 | |
2500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2501 | (exit $ac_status); } >/dev/null; then | |
2502 | if test -s conftest.err; then | |
2503 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2504 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2505 | else | |
2506 | ac_cpp_err= | |
2507 | fi | |
c906108c | 2508 | else |
bec39cab | 2509 | ac_cpp_err=yes |
c906108c | 2510 | fi |
bec39cab AC |
2511 | if test -z "$ac_cpp_err"; then |
2512 | # Broken: success on invalid input. | |
2513 | continue | |
c906108c | 2514 | else |
bec39cab AC |
2515 | echo "$as_me: failed program was:" >&5 |
2516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2517 | |
bec39cab AC |
2518 | # Passes both tests. |
2519 | ac_preproc_ok=: | |
2520 | break | |
c906108c | 2521 | fi |
bec39cab | 2522 | rm -f conftest.err conftest.$ac_ext |
c906108c | 2523 | |
bec39cab AC |
2524 | done |
2525 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2526 | rm -f conftest.err conftest.$ac_ext | |
2527 | if $ac_preproc_ok; then | |
c906108c SS |
2528 | : |
2529 | else | |
bec39cab AC |
2530 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2531 | See \`config.log' for more details." >&5 | |
2532 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2533 | See \`config.log' for more details." >&2;} | |
2534 | { (exit 1); exit 1; }; } | |
c906108c | 2535 | fi |
c906108c | 2536 | |
bec39cab AC |
2537 | ac_ext=c |
2538 | ac_cpp='$CPP $CPPFLAGS' | |
2539 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2540 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2541 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2542 | ||
2543 | ||
b4e70030 JB |
2544 | echo "$as_me:$LINENO: checking for egrep" >&5 |
2545 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2546 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4e8d927d DJ |
2547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2548 | else | |
b4e70030 JB |
2549 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2550 | then ac_cv_prog_egrep='grep -E' | |
2551 | else ac_cv_prog_egrep='egrep' | |
bec39cab | 2552 | fi |
4e8d927d | 2553 | fi |
b4e70030 JB |
2554 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2555 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2556 | EGREP=$ac_cv_prog_egrep | |
c906108c | 2557 | |
bec39cab AC |
2558 | |
2559 | ||
b4e70030 JB |
2560 | echo "$as_me:$LINENO: checking for AIX" >&5 |
2561 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 | |
bec39cab AC |
2562 | cat >conftest.$ac_ext <<_ACEOF |
2563 | /* confdefs.h. */ | |
2564 | _ACEOF | |
2565 | cat confdefs.h >>conftest.$ac_ext | |
2566 | cat >>conftest.$ac_ext <<_ACEOF | |
2567 | /* end confdefs.h. */ | |
2568 | #ifdef _AIX | |
2569 | yes | |
2570 | #endif | |
2571 | ||
2572 | _ACEOF | |
c906108c | 2573 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 2574 | $EGREP "yes" >/dev/null 2>&1; then |
b4e70030 JB |
2575 | echo "$as_me:$LINENO: result: yes" >&5 |
2576 | echo "${ECHO_T}yes" >&6 | |
bec39cab AC |
2577 | cat >>confdefs.h <<\_ACEOF |
2578 | #define _ALL_SOURCE 1 | |
2579 | _ACEOF | |
2580 | ||
c906108c | 2581 | else |
b4e70030 JB |
2582 | echo "$as_me:$LINENO: result: no" >&5 |
2583 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2584 | fi |
2585 | rm -f conftest* | |
2586 | ||
c906108c | 2587 | |
b4e70030 JB |
2588 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2589 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
bec39cab AC |
2590 | if test "${ac_cv_search_strerror+set}" = set; then |
2591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2592 | else |
bec39cab | 2593 | ac_func_search_save_LIBS=$LIBS |
b4e70030 | 2594 | ac_cv_search_strerror=no |
bec39cab AC |
2595 | cat >conftest.$ac_ext <<_ACEOF |
2596 | /* confdefs.h. */ | |
2597 | _ACEOF | |
2598 | cat confdefs.h >>conftest.$ac_ext | |
2599 | cat >>conftest.$ac_ext <<_ACEOF | |
2600 | /* end confdefs.h. */ | |
c906108c | 2601 | |
b4e70030 | 2602 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
2603 | #ifdef __cplusplus |
2604 | extern "C" | |
2605 | #endif | |
b4e70030 JB |
2606 | /* We use char because int might match the return type of a gcc2 |
2607 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
2608 | char strerror (); |
2609 | int | |
2610 | main () | |
2611 | { | |
b4e70030 | 2612 | strerror (); |
bec39cab AC |
2613 | ; |
2614 | return 0; | |
2615 | } | |
2616 | _ACEOF | |
b4e70030 | 2617 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
2618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2619 | (eval $ac_link) 2>conftest.er1 | |
2620 | ac_status=$? | |
2621 | grep -v '^ *+' conftest.er1 >conftest.err | |
2622 | rm -f conftest.er1 | |
2623 | cat conftest.err >&5 | |
2624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2625 | (exit $ac_status); } && | |
b4e70030 JB |
2626 | { ac_try='test -z "$ac_c_werror_flag" |
2627 | || test ! -s conftest.err' | |
bec39cab AC |
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); }; } && | |
2633 | { ac_try='test -s conftest$ac_exeext' | |
2634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2635 | (eval $ac_try) 2>&5 | |
2636 | ac_status=$? | |
2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2638 | (exit $ac_status); }; }; then | |
b4e70030 | 2639 | ac_cv_search_strerror="none required" |
c906108c | 2640 | else |
bec39cab AC |
2641 | echo "$as_me: failed program was:" >&5 |
2642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2643 | |
2644 | fi | |
bec39cab | 2645 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
2646 | conftest$ac_exeext conftest.$ac_ext |
2647 | if test "$ac_cv_search_strerror" = no; then | |
2648 | for ac_lib in cposix; do | |
2649 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2650 | cat >conftest.$ac_ext <<_ACEOF | |
2651 | /* confdefs.h. */ | |
2652 | _ACEOF | |
2653 | cat confdefs.h >>conftest.$ac_ext | |
2654 | cat >>conftest.$ac_ext <<_ACEOF | |
2655 | /* end confdefs.h. */ | |
2656 | ||
2657 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2658 | #ifdef __cplusplus | |
2659 | extern "C" | |
2660 | #endif | |
2661 | /* We use char because int might match the return type of a gcc2 | |
2662 | builtin and then its argument prototype would still apply. */ | |
2663 | char strerror (); | |
2664 | int | |
2665 | main () | |
2666 | { | |
2667 | strerror (); | |
2668 | ; | |
2669 | return 0; | |
2670 | } | |
2671 | _ACEOF | |
2672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2674 | (eval $ac_link) 2>conftest.er1 | |
2675 | ac_status=$? | |
2676 | grep -v '^ *+' conftest.er1 >conftest.err | |
2677 | rm -f conftest.er1 | |
2678 | cat conftest.err >&5 | |
2679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2680 | (exit $ac_status); } && | |
2681 | { ac_try='test -z "$ac_c_werror_flag" | |
2682 | || test ! -s conftest.err' | |
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); }; } && | |
2688 | { ac_try='test -s conftest$ac_exeext' | |
2689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2690 | (eval $ac_try) 2>&5 | |
2691 | ac_status=$? | |
2692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2693 | (exit $ac_status); }; }; then | |
2694 | ac_cv_search_strerror="-l$ac_lib" | |
2695 | break | |
4e8d927d | 2696 | else |
b4e70030 JB |
2697 | echo "$as_me: failed program was:" >&5 |
2698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2699 | ||
2700 | fi | |
2701 | rm -f conftest.err conftest.$ac_objext \ | |
2702 | conftest$ac_exeext conftest.$ac_ext | |
2703 | done | |
c906108c | 2704 | fi |
bec39cab | 2705 | LIBS=$ac_func_search_save_LIBS |
c906108c | 2706 | fi |
b4e70030 JB |
2707 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
2708 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2709 | if test "$ac_cv_search_strerror" != no; then | |
2710 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
bec39cab | 2711 | |
c906108c SS |
2712 | fi |
2713 | ||
c906108c | 2714 | |
c906108c | 2715 | |
bec39cab | 2716 | |
b4e70030 JB |
2717 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 |
2718 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 | |
bec39cab AC |
2719 | if test "${am_cv_prog_cc_stdc+set}" = set; then |
2720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2721 | else |
bec39cab AC |
2722 | am_cv_prog_cc_stdc=no |
2723 | ac_save_CC="$CC" | |
2724 | # Don't try gcc -ansi; that turns off useful extensions and | |
2725 | # breaks some systems' header files. | |
2726 | # AIX -qlanglvl=ansi | |
2727 | # Ultrix and OSF/1 -std1 | |
2728 | # HP-UX 10.20 and later -Ae | |
2729 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2730 | # SVR4 -Xc -D__EXTENSIONS__ | |
2731 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2732 | do | |
2733 | CC="$ac_save_CC $ac_arg" | |
2734 | cat >conftest.$ac_ext <<_ACEOF | |
2735 | /* confdefs.h. */ | |
2736 | _ACEOF | |
2737 | cat confdefs.h >>conftest.$ac_ext | |
2738 | cat >>conftest.$ac_ext <<_ACEOF | |
2739 | /* end confdefs.h. */ | |
2740 | #include <stdarg.h> | |
2741 | #include <stdio.h> | |
2742 | #include <sys/types.h> | |
2743 | #include <sys/stat.h> | |
2744 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2745 | struct buf { int x; }; | |
2746 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2747 | static char *e (p, i) | |
2748 | char **p; | |
2749 | int i; | |
2750 | { | |
2751 | return p[i]; | |
2752 | } | |
2753 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2754 | { | |
2755 | char *s; | |
2756 | va_list v; | |
2757 | va_start (v,p); | |
2758 | s = g (p, va_arg (v,int)); | |
2759 | va_end (v); | |
2760 | return s; | |
2761 | } | |
2762 | int test (int i, double x); | |
2763 | struct s1 {int (*f) (int a);}; | |
2764 | struct s2 {int (*f) (double a);}; | |
2765 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2766 | int argc; | |
2767 | char **argv; | |
c906108c | 2768 | |
bec39cab AC |
2769 | int |
2770 | main () | |
2771 | { | |
c906108c | 2772 | |
bec39cab | 2773 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
c906108c | 2774 | |
bec39cab AC |
2775 | ; |
2776 | return 0; | |
2777 | } | |
2778 | _ACEOF | |
2779 | rm -f conftest.$ac_objext | |
2780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2781 | (eval $ac_compile) 2>conftest.er1 | |
2782 | ac_status=$? | |
2783 | grep -v '^ *+' conftest.er1 >conftest.err | |
2784 | rm -f conftest.er1 | |
2785 | cat conftest.err >&5 | |
2786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2787 | (exit $ac_status); } && | |
b4e70030 JB |
2788 | { ac_try='test -z "$ac_c_werror_flag" |
2789 | || test ! -s conftest.err' | |
bec39cab AC |
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); }; } && | |
2795 | { ac_try='test -s conftest.$ac_objext' | |
2796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2797 | (eval $ac_try) 2>&5 | |
2798 | ac_status=$? | |
2799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2800 | (exit $ac_status); }; }; then | |
2801 | am_cv_prog_cc_stdc="$ac_arg"; break | |
c906108c | 2802 | else |
bec39cab AC |
2803 | echo "$as_me: failed program was:" >&5 |
2804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2805 | |
2806 | fi | |
bec39cab AC |
2807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2808 | done | |
2809 | CC="$ac_save_CC" | |
c906108c SS |
2810 | |
2811 | fi | |
2812 | ||
bec39cab | 2813 | if test -z "$am_cv_prog_cc_stdc"; then |
b4e70030 JB |
2814 | echo "$as_me:$LINENO: result: none needed" >&5 |
2815 | echo "${ECHO_T}none needed" >&6 | |
c906108c | 2816 | else |
b4e70030 JB |
2817 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
2818 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 | |
c906108c | 2819 | fi |
bec39cab AC |
2820 | case "x$am_cv_prog_cc_stdc" in |
2821 | x|xno) ;; | |
2822 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
2823 | esac | |
c906108c | 2824 | |
c906108c | 2825 | |
bec39cab AC |
2826 | ac_aux_dir= |
2827 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do | |
2828 | if test -f $ac_dir/install-sh; then | |
2829 | ac_aux_dir=$ac_dir | |
2830 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2831 | break | |
2832 | elif test -f $ac_dir/install.sh; then | |
2833 | ac_aux_dir=$ac_dir | |
2834 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2835 | break | |
2836 | elif test -f $ac_dir/shtool; then | |
2837 | ac_aux_dir=$ac_dir | |
2838 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2839 | break | |
2840 | fi | |
2841 | done | |
2842 | if test -z "$ac_aux_dir"; then | |
2843 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5 | |
2844 | echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;} | |
2845 | { (exit 1); exit 1; }; } | |
c906108c | 2846 | fi |
bec39cab AC |
2847 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
2848 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
2849 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
c906108c | 2850 | |
bec39cab AC |
2851 | # Make sure we can run config.sub. |
2852 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
2853 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
2854 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
2855 | { (exit 1); exit 1; }; } | |
2856 | ||
b4e70030 JB |
2857 | echo "$as_me:$LINENO: checking build system type" >&5 |
2858 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
bec39cab AC |
2859 | if test "${ac_cv_build+set}" = set; then |
2860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2861 | else | |
b4e70030 JB |
2862 | ac_cv_build_alias=$build_alias |
2863 | test -z "$ac_cv_build_alias" && | |
2864 | ac_cv_build_alias=`$ac_config_guess` | |
2865 | test -z "$ac_cv_build_alias" && | |
bec39cab AC |
2866 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2867 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2868 | { (exit 1); exit 1; }; } | |
b4e70030 JB |
2869 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
2870 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
2871 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
bec39cab AC |
2872 | { (exit 1); exit 1; }; } |
2873 | ||
2874 | fi | |
b4e70030 JB |
2875 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2876 | echo "${ECHO_T}$ac_cv_build" >&6 | |
bec39cab | 2877 | build=$ac_cv_build |
b4e70030 JB |
2878 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2879 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2880 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
bec39cab AC |
2881 | |
2882 | ||
b4e70030 JB |
2883 | echo "$as_me:$LINENO: checking host system type" >&5 |
2884 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
bec39cab AC |
2885 | if test "${ac_cv_host+set}" = set; then |
2886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2887 | else | |
b4e70030 JB |
2888 | ac_cv_host_alias=$host_alias |
2889 | test -z "$ac_cv_host_alias" && | |
2890 | ac_cv_host_alias=$ac_cv_build_alias | |
2891 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
2892 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
2893 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
bec39cab AC |
2894 | { (exit 1); exit 1; }; } |
2895 | ||
2896 | fi | |
b4e70030 JB |
2897 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2898 | echo "${ECHO_T}$ac_cv_host" >&6 | |
bec39cab | 2899 | host=$ac_cv_host |
b4e70030 JB |
2900 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2901 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2902 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
bec39cab AC |
2903 | |
2904 | ||
b4e70030 JB |
2905 | echo "$as_me:$LINENO: checking target system type" >&5 |
2906 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
bec39cab AC |
2907 | if test "${ac_cv_target+set}" = set; then |
2908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2909 | else | |
b4e70030 JB |
2910 | ac_cv_target_alias=$target_alias |
2911 | test "x$ac_cv_target_alias" = "x" && | |
2912 | ac_cv_target_alias=$ac_cv_host_alias | |
2913 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
2914 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
2915 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
bec39cab AC |
2916 | { (exit 1); exit 1; }; } |
2917 | ||
2918 | fi | |
b4e70030 JB |
2919 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2920 | echo "${ECHO_T}$ac_cv_target" >&6 | |
bec39cab | 2921 | target=$ac_cv_target |
b4e70030 JB |
2922 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2923 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2924 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
c906108c | 2925 | |
c906108c | 2926 | |
bec39cab AC |
2927 | # The aliases save the names the user supplied, while $host etc. |
2928 | # will get canonicalized. | |
2929 | test -n "$target_alias" && | |
2930 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2931 | NONENONEs,x,x, && | |
2932 | program_prefix=${target_alias}- | |
c906108c | 2933 | |
c906108c | 2934 | |
bec39cab AC |
2935 | CONFIG_OBS= |
2936 | CONFIG_DEPS= | |
2937 | CONFIG_SRCS= | |
2938 | ENABLE_CFLAGS= | |
c906108c | 2939 | |
bec39cab AC |
2940 | CONFIG_ALL= |
2941 | CONFIG_CLEAN= | |
2942 | CONFIG_INSTALL= | |
2943 | CONFIG_UNINSTALL= | |
2944 | ||
20e95c23 DJ |
2945 | # If we haven't got the data from the intl directory, |
2946 | # assume NLS is disabled. | |
2947 | USE_NLS=no | |
2948 | LIBINTL= | |
2949 | LIBINTL_DEP= | |
2950 | INCINTL= | |
2951 | XGETTEXT= | |
2952 | GMSGFMT= | |
2953 | POSUB= | |
3841debe DJ |
2954 | |
2955 | if test -f ../intl/config.intl; then | |
2956 | . ../intl/config.intl | |
20e95c23 DJ |
2957 | fi |
2958 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
2959 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
2960 | if test x"$USE_NLS" != xyes; then | |
b4e70030 JB |
2961 | echo "$as_me:$LINENO: result: no" >&5 |
2962 | echo "${ECHO_T}no" >&6 | |
c906108c | 2963 | else |
20e95c23 DJ |
2964 | echo "$as_me:$LINENO: result: yes" >&5 |
2965 | echo "${ECHO_T}yes" >&6 | |
c906108c | 2966 | |
20e95c23 DJ |
2967 | cat >>confdefs.h <<\_ACEOF |
2968 | #define ENABLE_NLS 1 | |
bec39cab | 2969 | _ACEOF |
c906108c | 2970 | |
c906108c | 2971 | |
20e95c23 DJ |
2972 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
2973 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
2974 | # Look for .po and .gmo files in the source directory. | |
2975 | CATALOGS= | |
2976 | XLINGUAS= | |
2977 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
2978 | # If there aren't any .gmo files the shell will give us the | |
2979 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
2980 | # weeded out. | |
2981 | case "$cat" in *\**) | |
2982 | continue;; | |
2983 | esac | |
2984 | # The quadruple backslash is collapsed to a double backslash | |
2985 | # by the backticks, then collapsed again by the double quotes, | |
2986 | # leaving us with one backslash in the sed expression (right | |
2987 | # before the dot that mustn't act as a wildcard). | |
2988 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
2989 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
2990 | # The user is allowed to set LINGUAS to a list of languages to | |
2991 | # install catalogs for. If it's empty that means "all of them." | |
2992 | if test "x$LINGUAS" = x; then | |
2993 | CATALOGS="$CATALOGS $cat" | |
2994 | XLINGUAS="$XLINGUAS $lang" | |
2995 | else | |
2996 | case "$LINGUAS" in *$lang*) | |
2997 | CATALOGS="$CATALOGS $cat" | |
2998 | XLINGUAS="$XLINGUAS $lang" | |
2999 | ;; | |
3000 | esac | |
3001 | fi | |
3002 | done | |
3003 | LINGUAS="$XLINGUAS" | |
3004 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
3005 | echo "${ECHO_T}$LINGUAS" >&6 | |
c906108c | 3006 | |
c906108c | 3007 | |
20e95c23 | 3008 | DATADIRNAME=share |
c906108c | 3009 | |
20e95c23 | 3010 | INSTOBJEXT=.mo |
c906108c | 3011 | |
20e95c23 DJ |
3012 | GENCAT=gencat |
3013 | ||
3014 | CATOBJEXT=.gmo | |
3015 | ||
3016 | fi | |
3017 | ||
3018 | localedir='${datadir}/locale' | |
c906108c | 3019 | |
bec39cab | 3020 | |
20e95c23 | 3021 | if test x"$USE_NLS" = xyes; then |
bec39cab AC |
3022 | CONFIG_ALL="$CONFIG_ALL all-po" |
3023 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" | |
3024 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" | |
3025 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" | |
3026 | fi | |
3027 | ||
3028 | PACKAGE=gdb | |
3029 | ||
3030 | cat >>confdefs.h <<_ACEOF | |
3031 | #define PACKAGE "$PACKAGE" | |
3032 | _ACEOF | |
3033 | ||
3034 | ||
3035 | ||
3036 | debugdir=${libdir}/debug | |
3037 | ||
3038 | ||
b4e70030 | 3039 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. |
bec39cab | 3040 | if test "${with_separate_debug_dir+set}" = set; then |
b4e70030 JB |
3041 | withval="$with_separate_debug_dir" |
3042 | debugdir="${withval}" | |
3043 | fi; | |
bec39cab AC |
3044 | |
3045 | ||
3046 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
3047 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3048 | ac_define_dir=`eval echo $debugdir` | |
3049 | ac_define_dir=`eval echo $ac_define_dir` | |
3050 | ||
3051 | cat >>confdefs.h <<_ACEOF | |
3052 | #define DEBUGDIR "$ac_define_dir" | |
3053 | _ACEOF | |
3054 | ||
3055 | ||
3056 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), | |
3057 | ||
aa28a74e DJ |
3058 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
3059 | if test "x$prefix" = xNONE; then | |
3060 | test_prefix=/usr/local | |
3061 | else | |
3062 | test_prefix=$prefix | |
3063 | fi | |
3064 | else | |
3065 | test_prefix=$exec_prefix | |
3066 | fi | |
3067 | case ${debugdir} in | |
3068 | "${test_prefix}"|"${test_prefix}/"*|\ | |
3069 | '${exec_prefix}'|'${exec_prefix}/'*) | |
3070 | ||
3071 | cat >>confdefs.h <<\_ACEOF | |
3072 | #define DEBUGDIR_RELOCATABLE 1 | |
3073 | _ACEOF | |
3074 | ||
3075 | ;; | |
3076 | esac | |
3077 | ||
b4e70030 JB |
3078 | |
3079 | ||
bec39cab AC |
3080 | subdirs="$subdirs doc testsuite" |
3081 | ||
3082 | ||
121ce6e5 DJ |
3083 | # Provide defaults for some variables set by the per-host and per-target |
3084 | # configuration. | |
3085 | gdb_host_obs=posix-hdep.o | |
3086 | ||
771b4502 UW |
3087 | if test "${target}" = "${host}"; then |
3088 | gdb_native=yes | |
3089 | else | |
3090 | gdb_native=no | |
3091 | fi | |
3092 | ||
bec39cab AC |
3093 | . $srcdir/configure.host |
3094 | ||
3095 | . $srcdir/configure.tgt | |
3096 | ||
3097 | # Fetch the default architecture and default target vector from BFD. | |
3098 | targ=$target; . $srcdir/../bfd/config.bfd | |
3099 | ||
3100 | # We only want the first architecture, so strip off the others if | |
3101 | # there is more than one. | |
3102 | targ_archs=`echo $targ_archs | sed 's/ .*//'` | |
3103 | ||
3104 | if test "x$targ_archs" != x; then | |
3105 | ||
3106 | cat >>confdefs.h <<_ACEOF | |
3107 | #define DEFAULT_BFD_ARCH $targ_archs | |
3108 | _ACEOF | |
3109 | ||
3110 | fi | |
3111 | if test "x$targ_defvec" != x; then | |
3112 | ||
3113 | cat >>confdefs.h <<_ACEOF | |
3114 | #define DEFAULT_BFD_VEC $targ_defvec | |
3115 | _ACEOF | |
3116 | ||
3117 | fi | |
3118 | ||
3119 | test "$program_prefix" != NONE && | |
b4e70030 | 3120 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
bec39cab AC |
3121 | # Use a double $ so make ignores it. |
3122 | test "$program_suffix" != NONE && | |
b4e70030 | 3123 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
bec39cab AC |
3124 | # Double any \ or $. echo might interpret backslashes. |
3125 | # By default was `s,x,x', remove it if useless. | |
3126 | cat <<\_ACEOF >conftest.sed | |
3127 | s/[\\$]/&&/g;s/;s,x,x,$// | |
3128 | _ACEOF | |
3129 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
b4e70030 | 3130 | rm conftest.sed |
bec39cab AC |
3131 | |
3132 | ||
3133 | # The CLI cannot be disabled yet, but may be in the future. | |
3134 | ||
3135 | # Enable CLI. | |
b4e70030 | 3136 | # Check whether --enable-gdbcli or --disable-gdbcli was given. |
bec39cab | 3137 | if test "${enable_gdbcli+set}" = set; then |
b4e70030 JB |
3138 | enableval="$enable_gdbcli" |
3139 | case $enableval in | |
bec39cab AC |
3140 | yes) |
3141 | ;; | |
3142 | no) | |
3143 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 | |
3144 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} | |
3145 | { (exit 1); exit 1; }; } ;; | |
3146 | *) | |
3147 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 | |
3148 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} | |
3149 | { (exit 1); exit 1; }; } ;; | |
3150 | esac | |
3151 | else | |
3152 | enable_gdbcli=yes | |
b4e70030 | 3153 | fi; |
bec39cab AC |
3154 | if test x"$enable_gdbcli" = xyes; then |
3155 | if test -d $srcdir/cli; then | |
3156 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" | |
3157 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" | |
3158 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" | |
3159 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" | |
3160 | fi | |
3161 | fi | |
3162 | ||
3163 | # Enable MI. | |
b4e70030 | 3164 | # Check whether --enable-gdbmi or --disable-gdbmi was given. |
bec39cab | 3165 | if test "${enable_gdbmi+set}" = set; then |
b4e70030 JB |
3166 | enableval="$enable_gdbmi" |
3167 | case $enableval in | |
bec39cab AC |
3168 | yes | no) |
3169 | ;; | |
3170 | *) | |
3171 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 | |
3172 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} | |
3173 | { (exit 1); exit 1; }; } ;; | |
3174 | esac | |
3175 | else | |
3176 | enable_gdbmi=yes | |
b4e70030 | 3177 | fi; |
bec39cab AC |
3178 | if test x"$enable_gdbmi" = xyes; then |
3179 | if test -d $srcdir/mi; then | |
3180 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" | |
3181 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" | |
3182 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" | |
3183 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" | |
3184 | fi | |
3185 | fi | |
3186 | ||
3187 | # Enable TUI. | |
b4e70030 | 3188 | # Check whether --enable-tui or --disable-tui was given. |
bec39cab | 3189 | if test "${enable_tui+set}" = set; then |
b4e70030 JB |
3190 | enableval="$enable_tui" |
3191 | case $enableval in | |
bec39cab AC |
3192 | yes | no) |
3193 | ;; | |
3194 | *) | |
3195 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 | |
3196 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} | |
3197 | { (exit 1); exit 1; }; } ;; | |
3198 | esac | |
3199 | else | |
3200 | enable_tui=yes | |
b4e70030 | 3201 | fi; |
bec39cab AC |
3202 | |
3203 | # Enable gdbtk. | |
b4e70030 | 3204 | # Check whether --enable-gdbtk or --disable-gdbtk was given. |
bec39cab | 3205 | if test "${enable_gdbtk+set}" = set; then |
b4e70030 JB |
3206 | enableval="$enable_gdbtk" |
3207 | case $enableval in | |
bec39cab AC |
3208 | yes | no) |
3209 | ;; | |
3210 | *) | |
3211 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 | |
3212 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} | |
3213 | { (exit 1); exit 1; }; } ;; | |
3214 | esac | |
3215 | else | |
04ac69aa | 3216 | if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then |
bec39cab AC |
3217 | enable_gdbtk=yes |
3218 | else | |
3219 | enable_gdbtk=no | |
3220 | fi | |
b4e70030 | 3221 | fi; |
bec39cab AC |
3222 | # We unconditionally disable gdbtk tests on selected platforms. |
3223 | case $host_os in | |
3224 | go32* | windows*) | |
3225 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 | |
3226 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} | |
3227 | enable_gdbtk=no ;; | |
3228 | esac | |
3229 | ||
3230 | # Libunwind support. | |
20e95c23 DJ |
3231 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3232 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3233 | if test "${ac_cv_header_stdc+set}" = set; then | |
3234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3235 | else | |
3236 | cat >conftest.$ac_ext <<_ACEOF | |
3237 | /* confdefs.h. */ | |
3238 | _ACEOF | |
3239 | cat confdefs.h >>conftest.$ac_ext | |
3240 | cat >>conftest.$ac_ext <<_ACEOF | |
3241 | /* end confdefs.h. */ | |
3242 | #include <stdlib.h> | |
3243 | #include <stdarg.h> | |
3244 | #include <string.h> | |
3245 | #include <float.h> | |
3246 | ||
3247 | int | |
3248 | main () | |
3249 | { | |
3250 | ||
3251 | ; | |
3252 | return 0; | |
3253 | } | |
3254 | _ACEOF | |
3255 | rm -f conftest.$ac_objext | |
3256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3257 | (eval $ac_compile) 2>conftest.er1 | |
3258 | ac_status=$? | |
3259 | grep -v '^ *+' conftest.er1 >conftest.err | |
3260 | rm -f conftest.er1 | |
3261 | cat conftest.err >&5 | |
3262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3263 | (exit $ac_status); } && | |
3264 | { ac_try='test -z "$ac_c_werror_flag" | |
3265 | || test ! -s conftest.err' | |
3266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3267 | (eval $ac_try) 2>&5 | |
3268 | ac_status=$? | |
3269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3270 | (exit $ac_status); }; } && | |
3271 | { ac_try='test -s conftest.$ac_objext' | |
3272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3273 | (eval $ac_try) 2>&5 | |
3274 | ac_status=$? | |
3275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3276 | (exit $ac_status); }; }; then | |
3277 | ac_cv_header_stdc=yes | |
3278 | else | |
3279 | echo "$as_me: failed program was:" >&5 | |
3280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3281 | ||
3282 | ac_cv_header_stdc=no | |
3283 | fi | |
3284 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3285 | ||
3286 | if test $ac_cv_header_stdc = yes; then | |
3287 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3288 | cat >conftest.$ac_ext <<_ACEOF | |
3289 | /* confdefs.h. */ | |
3290 | _ACEOF | |
3291 | cat confdefs.h >>conftest.$ac_ext | |
3292 | cat >>conftest.$ac_ext <<_ACEOF | |
3293 | /* end confdefs.h. */ | |
3294 | #include <string.h> | |
3295 | ||
3296 | _ACEOF | |
3297 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3298 | $EGREP "memchr" >/dev/null 2>&1; then | |
3299 | : | |
3300 | else | |
3301 | ac_cv_header_stdc=no | |
3302 | fi | |
3303 | rm -f conftest* | |
3304 | ||
3305 | fi | |
3306 | ||
3307 | if test $ac_cv_header_stdc = yes; then | |
3308 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3309 | cat >conftest.$ac_ext <<_ACEOF | |
3310 | /* confdefs.h. */ | |
3311 | _ACEOF | |
3312 | cat confdefs.h >>conftest.$ac_ext | |
3313 | cat >>conftest.$ac_ext <<_ACEOF | |
3314 | /* end confdefs.h. */ | |
3315 | #include <stdlib.h> | |
3316 | ||
3317 | _ACEOF | |
3318 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3319 | $EGREP "free" >/dev/null 2>&1; then | |
3320 | : | |
3321 | else | |
3322 | ac_cv_header_stdc=no | |
3323 | fi | |
3324 | rm -f conftest* | |
3325 | ||
3326 | fi | |
3327 | ||
3328 | if test $ac_cv_header_stdc = yes; then | |
3329 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3330 | if test "$cross_compiling" = yes; then | |
3331 | : | |
3332 | else | |
3333 | cat >conftest.$ac_ext <<_ACEOF | |
3334 | /* confdefs.h. */ | |
3335 | _ACEOF | |
3336 | cat confdefs.h >>conftest.$ac_ext | |
3337 | cat >>conftest.$ac_ext <<_ACEOF | |
3338 | /* end confdefs.h. */ | |
3339 | #include <ctype.h> | |
3340 | #if ((' ' & 0x0FF) == 0x020) | |
3341 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3342 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3343 | #else | |
3344 | # define ISLOWER(c) \ | |
3345 | (('a' <= (c) && (c) <= 'i') \ | |
3346 | || ('j' <= (c) && (c) <= 'r') \ | |
3347 | || ('s' <= (c) && (c) <= 'z')) | |
3348 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3349 | #endif | |
3350 | ||
3351 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3352 | int | |
3353 | main () | |
3354 | { | |
3355 | int i; | |
3356 | for (i = 0; i < 256; i++) | |
3357 | if (XOR (islower (i), ISLOWER (i)) | |
3358 | || toupper (i) != TOUPPER (i)) | |
3359 | exit(2); | |
3360 | exit (0); | |
3361 | } | |
3362 | _ACEOF | |
3363 | rm -f conftest$ac_exeext | |
3364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3365 | (eval $ac_link) 2>&5 | |
3366 | ac_status=$? | |
3367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3368 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3370 | (eval $ac_try) 2>&5 | |
3371 | ac_status=$? | |
3372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3373 | (exit $ac_status); }; }; then | |
3374 | : | |
3375 | else | |
3376 | echo "$as_me: program exited with status $ac_status" >&5 | |
3377 | echo "$as_me: failed program was:" >&5 | |
3378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3379 | ||
3380 | ( exit $ac_status ) | |
3381 | ac_cv_header_stdc=no | |
3382 | fi | |
3383 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3384 | fi | |
3385 | fi | |
3386 | fi | |
3387 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3388 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3389 | if test $ac_cv_header_stdc = yes; then | |
3390 | ||
3391 | cat >>confdefs.h <<\_ACEOF | |
3392 | #define STDC_HEADERS 1 | |
3393 | _ACEOF | |
3394 | ||
3395 | fi | |
3396 | ||
3397 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3398 | ||
3399 | ||
3400 | ||
3401 | ||
3402 | ||
3403 | ||
3404 | ||
3405 | ||
3406 | ||
3407 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3408 | inttypes.h stdint.h unistd.h | |
3409 | do | |
3410 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3411 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3412 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3413 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3415 | else | |
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 | $ac_includes_default | |
3423 | ||
3424 | #include <$ac_header> | |
3425 | _ACEOF | |
3426 | rm -f conftest.$ac_objext | |
3427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3428 | (eval $ac_compile) 2>conftest.er1 | |
3429 | ac_status=$? | |
3430 | grep -v '^ *+' conftest.er1 >conftest.err | |
3431 | rm -f conftest.er1 | |
3432 | cat conftest.err >&5 | |
3433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3434 | (exit $ac_status); } && | |
3435 | { ac_try='test -z "$ac_c_werror_flag" | |
3436 | || test ! -s conftest.err' | |
3437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3438 | (eval $ac_try) 2>&5 | |
3439 | ac_status=$? | |
3440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3441 | (exit $ac_status); }; } && | |
3442 | { ac_try='test -s conftest.$ac_objext' | |
3443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3444 | (eval $ac_try) 2>&5 | |
3445 | ac_status=$? | |
3446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3447 | (exit $ac_status); }; }; then | |
3448 | eval "$as_ac_Header=yes" | |
3449 | else | |
3450 | echo "$as_me: failed program was:" >&5 | |
3451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3452 | ||
3453 | eval "$as_ac_Header=no" | |
3454 | fi | |
3455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3456 | fi | |
3457 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3458 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3459 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3460 | cat >>confdefs.h <<_ACEOF | |
3461 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3462 | _ACEOF | |
3463 | ||
3464 | fi | |
3465 | ||
3466 | done | |
3467 | ||
3468 | ||
bec39cab | 3469 | |
b4e70030 | 3470 | # Check whether --with-libunwind or --without-libunwind was given. |
bec39cab | 3471 | if test "${with_libunwind+set}" = set; then |
b4e70030 JB |
3472 | withval="$with_libunwind" |
3473 | case "${withval}" in | |
bec39cab AC |
3474 | yes) enable_libunwind=yes ;; |
3475 | no) enable_libunwind=no ;; | |
3476 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 | |
3477 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} | |
3478 | { (exit 1); exit 1; }; } ;; | |
3479 | esac | |
3480 | else | |
3481 | ||
3482 | ||
3483 | for ac_header in libunwind.h | |
3484 | do | |
3485 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3486 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3487 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3488 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3489 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3491 | fi | |
b4e70030 JB |
3492 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3493 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3494 | else |
3495 | # Is the header compilable? | |
b4e70030 JB |
3496 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3497 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3498 | cat >conftest.$ac_ext <<_ACEOF |
3499 | /* confdefs.h. */ | |
3500 | _ACEOF | |
3501 | cat confdefs.h >>conftest.$ac_ext | |
3502 | cat >>conftest.$ac_ext <<_ACEOF | |
3503 | /* end confdefs.h. */ | |
3504 | $ac_includes_default | |
3505 | #include <$ac_header> | |
3506 | _ACEOF | |
3507 | rm -f conftest.$ac_objext | |
3508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3509 | (eval $ac_compile) 2>conftest.er1 | |
3510 | ac_status=$? | |
3511 | grep -v '^ *+' conftest.er1 >conftest.err | |
3512 | rm -f conftest.er1 | |
3513 | cat conftest.err >&5 | |
3514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3515 | (exit $ac_status); } && | |
b4e70030 JB |
3516 | { ac_try='test -z "$ac_c_werror_flag" |
3517 | || test ! -s conftest.err' | |
bec39cab AC |
3518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3519 | (eval $ac_try) 2>&5 | |
3520 | ac_status=$? | |
3521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3522 | (exit $ac_status); }; } && | |
3523 | { ac_try='test -s conftest.$ac_objext' | |
3524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3525 | (eval $ac_try) 2>&5 | |
3526 | ac_status=$? | |
3527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3528 | (exit $ac_status); }; }; then | |
3529 | ac_header_compiler=yes | |
3530 | else | |
3531 | echo "$as_me: failed program was:" >&5 | |
3532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3533 | ||
b4e70030 | 3534 | ac_header_compiler=no |
bec39cab AC |
3535 | fi |
3536 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3537 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3538 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3539 | |
3540 | # Is the header present? | |
b4e70030 JB |
3541 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3542 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3543 | cat >conftest.$ac_ext <<_ACEOF |
3544 | /* confdefs.h. */ | |
3545 | _ACEOF | |
3546 | cat confdefs.h >>conftest.$ac_ext | |
3547 | cat >>conftest.$ac_ext <<_ACEOF | |
3548 | /* end confdefs.h. */ | |
3549 | #include <$ac_header> | |
3550 | _ACEOF | |
3551 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3552 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3553 | ac_status=$? | |
3554 | grep -v '^ *+' conftest.er1 >conftest.err | |
3555 | rm -f conftest.er1 | |
3556 | cat conftest.err >&5 | |
3557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3558 | (exit $ac_status); } >/dev/null; then | |
3559 | if test -s conftest.err; then | |
3560 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3561 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3562 | else | |
3563 | ac_cpp_err= | |
3564 | fi | |
3565 | else | |
3566 | ac_cpp_err=yes | |
3567 | fi | |
3568 | if test -z "$ac_cpp_err"; then | |
3569 | ac_header_preproc=yes | |
3570 | else | |
3571 | echo "$as_me: failed program was:" >&5 | |
3572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3573 | ||
3574 | ac_header_preproc=no | |
3575 | fi | |
3576 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
3577 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3578 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3579 | |
3580 | # So? What about this header? | |
3581 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3582 | yes:no: ) | |
3583 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3584 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3585 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3586 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3587 | ac_header_preproc=yes | |
3588 | ;; | |
3589 | no:yes:* ) | |
3590 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3591 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3592 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3593 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3594 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3595 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3596 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3597 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3598 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3599 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3600 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3601 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
3602 | ( |
3603 | cat <<\_ASBOX | |
3604 | ## ------------------------------------------ ## | |
3605 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3606 | ## ------------------------------------------ ## | |
3607 | _ASBOX | |
3608 | ) | | |
3609 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3610 | ;; |
3611 | esac | |
b4e70030 JB |
3612 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3613 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3614 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3616 | else | |
3617 | eval "$as_ac_Header=\$ac_header_preproc" | |
3618 | fi | |
b4e70030 JB |
3619 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3620 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3621 | |
3622 | fi | |
3623 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3624 | cat >>confdefs.h <<_ACEOF | |
3625 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3626 | _ACEOF | |
3627 | ||
3628 | fi | |
3629 | ||
3630 | done | |
3631 | ||
3632 | ||
3633 | for ac_header in libunwind-ia64.h | |
3634 | do | |
3635 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3636 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3637 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3638 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3639 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3641 | fi | |
b4e70030 JB |
3642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3643 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3644 | else |
3645 | # Is the header compilable? | |
b4e70030 JB |
3646 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3647 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3648 | cat >conftest.$ac_ext <<_ACEOF |
3649 | /* confdefs.h. */ | |
3650 | _ACEOF | |
3651 | cat confdefs.h >>conftest.$ac_ext | |
3652 | cat >>conftest.$ac_ext <<_ACEOF | |
3653 | /* end confdefs.h. */ | |
3654 | $ac_includes_default | |
3655 | #include <$ac_header> | |
3656 | _ACEOF | |
3657 | rm -f conftest.$ac_objext | |
3658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3659 | (eval $ac_compile) 2>conftest.er1 | |
3660 | ac_status=$? | |
3661 | grep -v '^ *+' conftest.er1 >conftest.err | |
3662 | rm -f conftest.er1 | |
3663 | cat conftest.err >&5 | |
3664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3665 | (exit $ac_status); } && | |
b4e70030 JB |
3666 | { ac_try='test -z "$ac_c_werror_flag" |
3667 | || test ! -s conftest.err' | |
bec39cab AC |
3668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3669 | (eval $ac_try) 2>&5 | |
3670 | ac_status=$? | |
3671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3672 | (exit $ac_status); }; } && | |
3673 | { ac_try='test -s conftest.$ac_objext' | |
3674 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3675 | (eval $ac_try) 2>&5 | |
3676 | ac_status=$? | |
3677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3678 | (exit $ac_status); }; }; then | |
3679 | ac_header_compiler=yes | |
3680 | else | |
3681 | echo "$as_me: failed program was:" >&5 | |
3682 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3683 | ||
b4e70030 | 3684 | ac_header_compiler=no |
bec39cab AC |
3685 | fi |
3686 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3687 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3688 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3689 | |
3690 | # Is the header present? | |
b4e70030 JB |
3691 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3692 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3693 | cat >conftest.$ac_ext <<_ACEOF |
3694 | /* confdefs.h. */ | |
3695 | _ACEOF | |
3696 | cat confdefs.h >>conftest.$ac_ext | |
3697 | cat >>conftest.$ac_ext <<_ACEOF | |
3698 | /* end confdefs.h. */ | |
3699 | #include <$ac_header> | |
3700 | _ACEOF | |
3701 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3702 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3703 | ac_status=$? | |
3704 | grep -v '^ *+' conftest.er1 >conftest.err | |
3705 | rm -f conftest.er1 | |
3706 | cat conftest.err >&5 | |
3707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3708 | (exit $ac_status); } >/dev/null; then | |
3709 | if test -s conftest.err; then | |
3710 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3711 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3712 | else | |
3713 | ac_cpp_err= | |
3714 | fi | |
3715 | else | |
3716 | ac_cpp_err=yes | |
3717 | fi | |
3718 | if test -z "$ac_cpp_err"; then | |
3719 | ac_header_preproc=yes | |
3720 | else | |
3721 | echo "$as_me: failed program was:" >&5 | |
3722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3723 | ||
3724 | ac_header_preproc=no | |
3725 | fi | |
3726 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
3727 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3728 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3729 | |
3730 | # So? What about this header? | |
3731 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3732 | yes:no: ) | |
3733 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3734 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3735 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3736 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3737 | ac_header_preproc=yes | |
3738 | ;; | |
3739 | no:yes:* ) | |
3740 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3741 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3742 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3743 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3744 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3745 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3746 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3747 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3748 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3749 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3750 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3751 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
3752 | ( |
3753 | cat <<\_ASBOX | |
3754 | ## ------------------------------------------ ## | |
3755 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3756 | ## ------------------------------------------ ## | |
3757 | _ASBOX | |
3758 | ) | | |
3759 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3760 | ;; |
3761 | esac | |
b4e70030 JB |
3762 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3763 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3764 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3766 | else | |
3767 | eval "$as_ac_Header=\$ac_header_preproc" | |
3768 | fi | |
b4e70030 JB |
3769 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3770 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3771 | |
3772 | fi | |
3773 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3774 | cat >>confdefs.h <<_ACEOF | |
3775 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3776 | _ACEOF | |
3777 | ||
3778 | fi | |
3779 | ||
3780 | done | |
3781 | ||
3782 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then | |
3783 | enable_libunwind=yes; | |
3784 | fi | |
3785 | ||
b4e70030 | 3786 | fi; |
bec39cab AC |
3787 | |
3788 | if test x"$enable_libunwind" = xyes; then | |
3789 | ||
3790 | for ac_header in libunwind.h | |
3791 | do | |
3792 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3794 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3795 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3797 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3798 | fi | |
b4e70030 JB |
3799 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3800 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3801 | else |
3802 | # Is the header compilable? | |
b4e70030 JB |
3803 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3804 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3805 | cat >conftest.$ac_ext <<_ACEOF |
3806 | /* confdefs.h. */ | |
3807 | _ACEOF | |
3808 | cat confdefs.h >>conftest.$ac_ext | |
3809 | cat >>conftest.$ac_ext <<_ACEOF | |
3810 | /* end confdefs.h. */ | |
3811 | $ac_includes_default | |
3812 | #include <$ac_header> | |
3813 | _ACEOF | |
3814 | rm -f conftest.$ac_objext | |
3815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3816 | (eval $ac_compile) 2>conftest.er1 | |
3817 | ac_status=$? | |
3818 | grep -v '^ *+' conftest.er1 >conftest.err | |
3819 | rm -f conftest.er1 | |
3820 | cat conftest.err >&5 | |
3821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3822 | (exit $ac_status); } && | |
b4e70030 JB |
3823 | { ac_try='test -z "$ac_c_werror_flag" |
3824 | || test ! -s conftest.err' | |
bec39cab AC |
3825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3826 | (eval $ac_try) 2>&5 | |
3827 | ac_status=$? | |
3828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3829 | (exit $ac_status); }; } && | |
3830 | { ac_try='test -s conftest.$ac_objext' | |
3831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3832 | (eval $ac_try) 2>&5 | |
3833 | ac_status=$? | |
3834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3835 | (exit $ac_status); }; }; then | |
3836 | ac_header_compiler=yes | |
3837 | else | |
3838 | echo "$as_me: failed program was:" >&5 | |
3839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3840 | ||
b4e70030 | 3841 | ac_header_compiler=no |
bec39cab AC |
3842 | fi |
3843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3844 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3845 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3846 | |
3847 | # Is the header present? | |
b4e70030 JB |
3848 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3849 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3850 | cat >conftest.$ac_ext <<_ACEOF |
3851 | /* confdefs.h. */ | |
3852 | _ACEOF | |
3853 | cat confdefs.h >>conftest.$ac_ext | |
3854 | cat >>conftest.$ac_ext <<_ACEOF | |
3855 | /* end confdefs.h. */ | |
3856 | #include <$ac_header> | |
3857 | _ACEOF | |
3858 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3859 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3860 | ac_status=$? | |
3861 | grep -v '^ *+' conftest.er1 >conftest.err | |
3862 | rm -f conftest.er1 | |
3863 | cat conftest.err >&5 | |
3864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3865 | (exit $ac_status); } >/dev/null; then | |
3866 | if test -s conftest.err; then | |
3867 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3868 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3869 | else | |
3870 | ac_cpp_err= | |
3871 | fi | |
3872 | else | |
3873 | ac_cpp_err=yes | |
3874 | fi | |
3875 | if test -z "$ac_cpp_err"; then | |
3876 | ac_header_preproc=yes | |
3877 | else | |
3878 | echo "$as_me: failed program was:" >&5 | |
3879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3880 | ||
3881 | ac_header_preproc=no | |
3882 | fi | |
3883 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
3884 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3885 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3886 | |
3887 | # So? What about this header? | |
3888 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3889 | yes:no: ) | |
3890 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3891 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3892 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3893 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3894 | ac_header_preproc=yes | |
3895 | ;; | |
3896 | no:yes:* ) | |
3897 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3898 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3899 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3900 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3901 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3902 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3903 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3904 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3905 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3906 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3907 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3908 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
3909 | ( |
3910 | cat <<\_ASBOX | |
3911 | ## ------------------------------------------ ## | |
3912 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3913 | ## ------------------------------------------ ## | |
3914 | _ASBOX | |
3915 | ) | | |
3916 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3917 | ;; |
3918 | esac | |
b4e70030 JB |
3919 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3921 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3922 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3923 | else | |
3924 | eval "$as_ac_Header=\$ac_header_preproc" | |
3925 | fi | |
b4e70030 JB |
3926 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3927 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3928 | |
3929 | fi | |
3930 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3931 | cat >>confdefs.h <<_ACEOF | |
3932 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3933 | _ACEOF | |
3934 | ||
3935 | fi | |
3936 | ||
3937 | done | |
3938 | ||
3939 | ||
3940 | for ac_header in libunwind-ia64.h | |
3941 | do | |
3942 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3943 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3944 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3945 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3946 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3948 | fi | |
b4e70030 JB |
3949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3950 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3951 | else |
3952 | # Is the header compilable? | |
b4e70030 JB |
3953 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3954 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3955 | cat >conftest.$ac_ext <<_ACEOF |
3956 | /* confdefs.h. */ | |
3957 | _ACEOF | |
3958 | cat confdefs.h >>conftest.$ac_ext | |
3959 | cat >>conftest.$ac_ext <<_ACEOF | |
3960 | /* end confdefs.h. */ | |
3961 | $ac_includes_default | |
3962 | #include <$ac_header> | |
3963 | _ACEOF | |
3964 | rm -f conftest.$ac_objext | |
3965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3966 | (eval $ac_compile) 2>conftest.er1 | |
3967 | ac_status=$? | |
3968 | grep -v '^ *+' conftest.er1 >conftest.err | |
3969 | rm -f conftest.er1 | |
3970 | cat conftest.err >&5 | |
3971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3972 | (exit $ac_status); } && | |
b4e70030 JB |
3973 | { ac_try='test -z "$ac_c_werror_flag" |
3974 | || test ! -s conftest.err' | |
bec39cab AC |
3975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3976 | (eval $ac_try) 2>&5 | |
3977 | ac_status=$? | |
3978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3979 | (exit $ac_status); }; } && | |
3980 | { ac_try='test -s conftest.$ac_objext' | |
3981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3982 | (eval $ac_try) 2>&5 | |
3983 | ac_status=$? | |
3984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3985 | (exit $ac_status); }; }; then | |
3986 | ac_header_compiler=yes | |
3987 | else | |
3988 | echo "$as_me: failed program was:" >&5 | |
3989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3990 | ||
b4e70030 | 3991 | ac_header_compiler=no |
bec39cab AC |
3992 | fi |
3993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3994 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3995 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3996 | |
3997 | # Is the header present? | |
b4e70030 JB |
3998 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3999 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
4000 | cat >conftest.$ac_ext <<_ACEOF |
4001 | /* confdefs.h. */ | |
4002 | _ACEOF | |
4003 | cat confdefs.h >>conftest.$ac_ext | |
4004 | cat >>conftest.$ac_ext <<_ACEOF | |
4005 | /* end confdefs.h. */ | |
4006 | #include <$ac_header> | |
4007 | _ACEOF | |
4008 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4009 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4010 | ac_status=$? | |
4011 | grep -v '^ *+' conftest.er1 >conftest.err | |
4012 | rm -f conftest.er1 | |
4013 | cat conftest.err >&5 | |
4014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4015 | (exit $ac_status); } >/dev/null; then | |
4016 | if test -s conftest.err; then | |
4017 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4018 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4019 | else | |
4020 | ac_cpp_err= | |
4021 | fi | |
4022 | else | |
4023 | ac_cpp_err=yes | |
4024 | fi | |
4025 | if test -z "$ac_cpp_err"; then | |
4026 | ac_header_preproc=yes | |
4027 | else | |
4028 | echo "$as_me: failed program was:" >&5 | |
4029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4030 | ||
4031 | ac_header_preproc=no | |
4032 | fi | |
4033 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
4034 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4035 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
4036 | |
4037 | # So? What about this header? | |
4038 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4039 | yes:no: ) | |
4040 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4041 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4043 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4044 | ac_header_preproc=yes | |
4045 | ;; | |
4046 | no:yes:* ) | |
4047 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4048 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4049 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4050 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4051 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4052 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4053 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4054 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4055 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4056 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4057 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4058 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
4059 | ( |
4060 | cat <<\_ASBOX | |
4061 | ## ------------------------------------------ ## | |
4062 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4063 | ## ------------------------------------------ ## | |
4064 | _ASBOX | |
4065 | ) | | |
4066 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
4067 | ;; |
4068 | esac | |
b4e70030 JB |
4069 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4070 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4071 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
4072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4073 | else | |
4074 | eval "$as_ac_Header=\$ac_header_preproc" | |
4075 | fi | |
b4e70030 JB |
4076 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4077 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
4078 | |
4079 | fi | |
4080 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4081 | cat >>confdefs.h <<_ACEOF | |
4082 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4083 | _ACEOF | |
4084 | ||
4085 | fi | |
4086 | ||
4087 | done | |
4088 | ||
60ca704f SE |
4089 | |
4090 | cat >>confdefs.h <<\_ACEOF | |
bec39cab AC |
4091 | #define HAVE_LIBUNWIND 1 |
4092 | _ACEOF | |
4093 | ||
4094 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" | |
4095 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" | |
4096 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" | |
4097 | fi | |
4098 | ||
4099 | # Profiling support. | |
b4e70030 | 4100 | # Check whether --enable-profiling or --disable-profiling was given. |
bec39cab | 4101 | if test "${enable_profiling+set}" = set; then |
b4e70030 JB |
4102 | enableval="$enable_profiling" |
4103 | case $enableval in | |
bec39cab AC |
4104 | yes | no) |
4105 | ;; | |
4106 | *) | |
4107 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 | |
4108 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} | |
4109 | { (exit 1); exit 1; }; } ;; | |
4110 | esac | |
4111 | else | |
4112 | enable_profiling=no | |
b4e70030 | 4113 | fi; |
bec39cab AC |
4114 | |
4115 | ||
4116 | ||
4117 | for ac_func in monstartup _mcleanup | |
4118 | do | |
4119 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
4120 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4121 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4122 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
4123 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4124 | else | |
4125 | cat >conftest.$ac_ext <<_ACEOF | |
4126 | /* confdefs.h. */ | |
4127 | _ACEOF | |
4128 | cat confdefs.h >>conftest.$ac_ext | |
4129 | cat >>conftest.$ac_ext <<_ACEOF | |
4130 | /* end confdefs.h. */ | |
4131 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4132 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4133 | #define $ac_func innocuous_$ac_func | |
4134 | ||
4135 | /* System header to define __stub macros and hopefully few prototypes, | |
4136 | which can conflict with char $ac_func (); below. | |
4137 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4138 | <limits.h> exists even on freestanding compilers. */ | |
4139 | ||
4140 | #ifdef __STDC__ | |
4141 | # include <limits.h> | |
4142 | #else | |
4143 | # include <assert.h> | |
4144 | #endif | |
4145 | ||
4146 | #undef $ac_func | |
4147 | ||
b4e70030 | 4148 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
4149 | #ifdef __cplusplus |
4150 | extern "C" | |
b4e70030 | 4151 | { |
bec39cab | 4152 | #endif |
b4e70030 JB |
4153 | /* We use char because int might match the return type of a gcc2 |
4154 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
4155 | char $ac_func (); |
4156 | /* The GNU C library defines this for functions which it implements | |
4157 | to always fail with ENOSYS. Some functions are actually named | |
4158 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 4159 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bec39cab | 4160 | choke me |
b4e70030 JB |
4161 | #else |
4162 | char (*f) () = $ac_func; | |
4163 | #endif | |
4164 | #ifdef __cplusplus | |
4165 | } | |
bec39cab AC |
4166 | #endif |
4167 | ||
4168 | int | |
4169 | main () | |
4170 | { | |
b4e70030 | 4171 | return f != $ac_func; |
bec39cab AC |
4172 | ; |
4173 | return 0; | |
4174 | } | |
4175 | _ACEOF | |
4176 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4177 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4178 | (eval $ac_link) 2>conftest.er1 | |
4179 | ac_status=$? | |
4180 | grep -v '^ *+' conftest.er1 >conftest.err | |
4181 | rm -f conftest.er1 | |
4182 | cat conftest.err >&5 | |
4183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4184 | (exit $ac_status); } && | |
b4e70030 JB |
4185 | { ac_try='test -z "$ac_c_werror_flag" |
4186 | || test ! -s conftest.err' | |
bec39cab AC |
4187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4188 | (eval $ac_try) 2>&5 | |
4189 | ac_status=$? | |
4190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4191 | (exit $ac_status); }; } && | |
4192 | { ac_try='test -s conftest$ac_exeext' | |
4193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4194 | (eval $ac_try) 2>&5 | |
4195 | ac_status=$? | |
4196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4197 | (exit $ac_status); }; }; then | |
4198 | eval "$as_ac_var=yes" | |
4199 | else | |
4200 | echo "$as_me: failed program was:" >&5 | |
4201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4202 | ||
b4e70030 | 4203 | eval "$as_ac_var=no" |
bec39cab AC |
4204 | fi |
4205 | rm -f conftest.err conftest.$ac_objext \ | |
4206 | conftest$ac_exeext conftest.$ac_ext | |
4207 | fi | |
b4e70030 JB |
4208 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4209 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
4210 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
4211 | cat >>confdefs.h <<_ACEOF | |
4212 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4213 | _ACEOF | |
4214 | ||
4215 | fi | |
4216 | done | |
4217 | ||
b4e70030 JB |
4218 | echo "$as_me:$LINENO: checking for _etext" >&5 |
4219 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 | |
bec39cab AC |
4220 | if test "${ac_cv_var__etext+set}" = set; then |
4221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4222 | else | |
4223 | cat >conftest.$ac_ext <<_ACEOF | |
4224 | /* confdefs.h. */ | |
4225 | _ACEOF | |
4226 | cat confdefs.h >>conftest.$ac_ext | |
4227 | cat >>conftest.$ac_ext <<_ACEOF | |
4228 | /* end confdefs.h. */ | |
4229 | #include <stdlib.h> | |
4230 | extern char _etext; | |
4231 | ||
4232 | int | |
4233 | main () | |
4234 | { | |
4235 | free (&_etext); | |
4236 | ; | |
4237 | return 0; | |
4238 | } | |
4239 | _ACEOF | |
4240 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4242 | (eval $ac_link) 2>conftest.er1 | |
4243 | ac_status=$? | |
4244 | grep -v '^ *+' conftest.er1 >conftest.err | |
4245 | rm -f conftest.er1 | |
4246 | cat conftest.err >&5 | |
4247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4248 | (exit $ac_status); } && | |
b4e70030 JB |
4249 | { ac_try='test -z "$ac_c_werror_flag" |
4250 | || test ! -s conftest.err' | |
bec39cab AC |
4251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4252 | (eval $ac_try) 2>&5 | |
4253 | ac_status=$? | |
4254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4255 | (exit $ac_status); }; } && | |
4256 | { ac_try='test -s conftest$ac_exeext' | |
4257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4258 | (eval $ac_try) 2>&5 | |
4259 | ac_status=$? | |
4260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4261 | (exit $ac_status); }; }; then | |
4262 | ac_cv_var__etext=yes | |
4263 | else | |
4264 | echo "$as_me: failed program was:" >&5 | |
4265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4266 | ||
b4e70030 | 4267 | ac_cv_var__etext=no |
bec39cab AC |
4268 | fi |
4269 | rm -f conftest.err conftest.$ac_objext \ | |
4270 | conftest$ac_exeext conftest.$ac_ext | |
4271 | fi | |
b4e70030 JB |
4272 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 |
4273 | echo "${ECHO_T}$ac_cv_var__etext" >&6 | |
bec39cab AC |
4274 | if test $ac_cv_var__etext = yes; then |
4275 | ||
4276 | cat >>confdefs.h <<\_ACEOF | |
4277 | #define HAVE__ETEXT 1 | |
4278 | _ACEOF | |
4279 | ||
01fe12f6 JB |
4280 | fi |
4281 | echo "$as_me:$LINENO: checking for etext" >&5 | |
4282 | echo $ECHO_N "checking for etext... $ECHO_C" >&6 | |
4283 | if test "${ac_cv_var_etext+set}" = set; then | |
4284 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4285 | else | |
4286 | cat >conftest.$ac_ext <<_ACEOF | |
4287 | /* confdefs.h. */ | |
4288 | _ACEOF | |
4289 | cat confdefs.h >>conftest.$ac_ext | |
4290 | cat >>conftest.$ac_ext <<_ACEOF | |
4291 | /* end confdefs.h. */ | |
4292 | #include <stdlib.h> | |
4293 | extern char etext; | |
4294 | ||
4295 | int | |
4296 | main () | |
4297 | { | |
4298 | free (&etext); | |
4299 | ; | |
4300 | return 0; | |
4301 | } | |
4302 | _ACEOF | |
4303 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4305 | (eval $ac_link) 2>conftest.er1 | |
4306 | ac_status=$? | |
4307 | grep -v '^ *+' conftest.er1 >conftest.err | |
4308 | rm -f conftest.er1 | |
4309 | cat conftest.err >&5 | |
4310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4311 | (exit $ac_status); } && | |
4312 | { ac_try='test -z "$ac_c_werror_flag" | |
4313 | || test ! -s conftest.err' | |
4314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4315 | (eval $ac_try) 2>&5 | |
4316 | ac_status=$? | |
4317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4318 | (exit $ac_status); }; } && | |
4319 | { ac_try='test -s conftest$ac_exeext' | |
4320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4321 | (eval $ac_try) 2>&5 | |
4322 | ac_status=$? | |
4323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4324 | (exit $ac_status); }; }; then | |
4325 | ac_cv_var_etext=yes | |
4326 | else | |
4327 | echo "$as_me: failed program was:" >&5 | |
4328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4329 | ||
4330 | ac_cv_var_etext=no | |
4331 | fi | |
4332 | rm -f conftest.err conftest.$ac_objext \ | |
4333 | conftest$ac_exeext conftest.$ac_ext | |
4334 | fi | |
4335 | echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5 | |
4336 | echo "${ECHO_T}$ac_cv_var_etext" >&6 | |
4337 | if test $ac_cv_var_etext = yes; then | |
4338 | ||
4339 | cat >>confdefs.h <<\_ACEOF | |
4340 | #define HAVE_ETEXT 1 | |
4341 | _ACEOF | |
4342 | ||
bec39cab AC |
4343 | fi |
4344 | if test "$enable_profiling" = yes ; then | |
4345 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then | |
4346 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 | |
4347 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} | |
4348 | { (exit 1); exit 1; }; } | |
4349 | fi | |
4350 | PROFILE_CFLAGS=-pg | |
4351 | OLD_CFLAGS="$CFLAGS" | |
4352 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" | |
4353 | ||
b4e70030 JB |
4354 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 |
4355 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 | |
bec39cab AC |
4356 | if test "${ac_cv_cc_supports_pg+set}" = set; then |
4357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4358 | else |
bec39cab AC |
4359 | cat >conftest.$ac_ext <<_ACEOF |
4360 | /* confdefs.h. */ | |
4361 | _ACEOF | |
4362 | cat confdefs.h >>conftest.$ac_ext | |
4363 | cat >>conftest.$ac_ext <<_ACEOF | |
4364 | /* end confdefs.h. */ | |
4365 | ||
4366 | int | |
4367 | main () | |
4368 | { | |
4369 | int x; | |
4370 | ; | |
4371 | return 0; | |
4372 | } | |
4373 | _ACEOF | |
4374 | rm -f conftest.$ac_objext | |
4375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4376 | (eval $ac_compile) 2>conftest.er1 | |
4377 | ac_status=$? | |
4378 | grep -v '^ *+' conftest.er1 >conftest.err | |
4379 | rm -f conftest.er1 | |
4380 | cat conftest.err >&5 | |
4381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4382 | (exit $ac_status); } && | |
b4e70030 JB |
4383 | { ac_try='test -z "$ac_c_werror_flag" |
4384 | || test ! -s conftest.err' | |
bec39cab AC |
4385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4386 | (eval $ac_try) 2>&5 | |
4387 | ac_status=$? | |
4388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4389 | (exit $ac_status); }; } && | |
4390 | { ac_try='test -s conftest.$ac_objext' | |
4391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4392 | (eval $ac_try) 2>&5 | |
4393 | ac_status=$? | |
4394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4395 | (exit $ac_status); }; }; then | |
4396 | ac_cv_cc_supports_pg=yes | |
4397 | else | |
4398 | echo "$as_me: failed program was:" >&5 | |
4399 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4400 | ||
b4e70030 | 4401 | ac_cv_cc_supports_pg=no |
bec39cab AC |
4402 | fi |
4403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4404 | fi | |
b4e70030 JB |
4405 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 |
4406 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 | |
bec39cab AC |
4407 | |
4408 | if test $ac_cv_cc_supports_pg = no; then | |
4409 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 | |
4410 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} | |
4411 | { (exit 1); exit 1; }; } | |
4412 | fi | |
4413 | ||
4414 | CFLAGS="$OLD_CFLAGS" | |
4415 | fi | |
4416 | ||
4417 | # --------------------- # | |
4418 | # Checks for programs. # | |
4419 | # --------------------- # | |
4420 | ||
4421 | for ac_prog in gawk mawk nawk awk | |
4422 | do | |
4423 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4424 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
4425 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4426 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4427 | if test "${ac_cv_prog_AWK+set}" = set; then |
4428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4429 | else | |
4430 | if test -n "$AWK"; then | |
4431 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4432 | else | |
4433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4434 | for as_dir in $PATH | |
4435 | do | |
4436 | IFS=$as_save_IFS | |
4437 | test -z "$as_dir" && as_dir=. | |
4438 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4439 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4440 | ac_cv_prog_AWK="$ac_prog" |
4441 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4442 | break 2 | |
4443 | fi | |
4444 | done | |
4445 | done | |
4446 | ||
4447 | fi | |
4448 | fi | |
4449 | AWK=$ac_cv_prog_AWK | |
4450 | if test -n "$AWK"; then | |
b4e70030 JB |
4451 | echo "$as_me:$LINENO: result: $AWK" >&5 |
4452 | echo "${ECHO_T}$AWK" >&6 | |
bec39cab | 4453 | else |
b4e70030 JB |
4454 | echo "$as_me:$LINENO: result: no" >&5 |
4455 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4456 | fi |
4457 | ||
4458 | test -n "$AWK" && break | |
4459 | done | |
4460 | ||
4461 | # Find a good install program. We prefer a C program (faster), | |
4462 | # so one script is as good as another. But avoid the broken or | |
4463 | # incompatible versions: | |
4464 | # SysV /etc/install, /usr/sbin/install | |
4465 | # SunOS /usr/etc/install | |
4466 | # IRIX /sbin/install | |
4467 | # AIX /bin/install | |
4468 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4469 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4470 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4471 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4472 | # OS/2's system install, which has a completely different semantic | |
4473 | # ./install, which can be erroneously created by make from ./install.sh. | |
b4e70030 JB |
4474 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4475 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
bec39cab AC |
4476 | if test -z "$INSTALL"; then |
4477 | if test "${ac_cv_path_install+set}" = set; then | |
4478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4479 | else | |
4480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4481 | for as_dir in $PATH | |
4482 | do | |
4483 | IFS=$as_save_IFS | |
4484 | test -z "$as_dir" && as_dir=. | |
4485 | # Account for people who put trailing slashes in PATH elements. | |
4486 | case $as_dir/ in | |
4487 | ./ | .// | /cC/* | \ | |
4488 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4489 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4490 | /usr/ucb/* ) ;; | |
c906108c | 4491 | *) |
bec39cab AC |
4492 | # OSF1 and SCO ODT 3.0 have their own names for install. |
4493 | # Don't use installbsd from OSF since it installs stuff as root | |
4494 | # by default. | |
4495 | for ac_prog in ginstall scoinst install; do | |
4496 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4497 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
bec39cab AC |
4498 | if test $ac_prog = install && |
4499 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4500 | # AIX install. It has an incompatible calling convention. | |
4501 | : | |
4502 | elif test $ac_prog = install && | |
4503 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4504 | # program-specific install script used by HP pwplus--don't use. | |
4505 | : | |
4506 | else | |
4507 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4508 | break 3 | |
4509 | fi | |
4510 | fi | |
4511 | done | |
4512 | done | |
4513 | ;; | |
c906108c | 4514 | esac |
bec39cab AC |
4515 | done |
4516 | ||
4517 | ||
4518 | fi | |
4519 | if test "${ac_cv_path_install+set}" = set; then | |
4520 | INSTALL=$ac_cv_path_install | |
4521 | else | |
b4e70030 JB |
4522 | # As a last resort, use the slow shell script. We don't cache a |
4523 | # path for INSTALL within a source directory, because that will | |
bec39cab | 4524 | # break other packages using the cache if that directory is |
b4e70030 | 4525 | # removed, or if the path is relative. |
bec39cab AC |
4526 | INSTALL=$ac_install_sh |
4527 | fi | |
4528 | fi | |
b4e70030 JB |
4529 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4530 | echo "${ECHO_T}$INSTALL" >&6 | |
bec39cab AC |
4531 | |
4532 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4533 | # It thinks the first close brace ends the variable substitution. | |
4534 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4535 | ||
4536 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4537 | ||
4538 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4539 | ||
b4e70030 JB |
4540 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4541 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
bec39cab AC |
4542 | LN_S=$as_ln_s |
4543 | if test "$LN_S" = "ln -s"; then | |
b4e70030 JB |
4544 | echo "$as_me:$LINENO: result: yes" >&5 |
4545 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 4546 | else |
b4e70030 JB |
4547 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4548 | echo "${ECHO_T}no, using $LN_S" >&6 | |
bec39cab AC |
4549 | fi |
4550 | ||
4551 | if test -n "$ac_tool_prefix"; then | |
4552 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4553 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b4e70030 JB |
4554 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4555 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4556 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
4557 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4558 | else | |
4559 | if test -n "$RANLIB"; then | |
4560 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4561 | else | |
4562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4563 | for as_dir in $PATH | |
4564 | do | |
4565 | IFS=$as_save_IFS | |
4566 | test -z "$as_dir" && as_dir=. | |
4567 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4568 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4569 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
4570 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4571 | break 2 | |
4572 | fi | |
4573 | done | |
4574 | done | |
4575 | ||
4576 | fi | |
4577 | fi | |
4578 | RANLIB=$ac_cv_prog_RANLIB | |
4579 | if test -n "$RANLIB"; then | |
b4e70030 JB |
4580 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4581 | echo "${ECHO_T}$RANLIB" >&6 | |
bec39cab | 4582 | else |
b4e70030 JB |
4583 | echo "$as_me:$LINENO: result: no" >&5 |
4584 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4585 | fi |
4586 | ||
4587 | fi | |
4588 | if test -z "$ac_cv_prog_RANLIB"; then | |
4589 | ac_ct_RANLIB=$RANLIB | |
4590 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4591 | set dummy ranlib; ac_word=$2 | |
b4e70030 JB |
4592 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4594 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
4595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4596 | else | |
4597 | if test -n "$ac_ct_RANLIB"; then | |
4598 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4599 | else | |
4600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4601 | for as_dir in $PATH | |
4602 | do | |
4603 | IFS=$as_save_IFS | |
4604 | test -z "$as_dir" && as_dir=. | |
4605 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4606 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4607 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
4608 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4609 | break 2 | |
4610 | fi | |
4611 | done | |
4612 | done | |
4613 | ||
b4e70030 | 4614 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
bec39cab AC |
4615 | fi |
4616 | fi | |
4617 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4618 | if test -n "$ac_ct_RANLIB"; then | |
b4e70030 JB |
4619 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4620 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
bec39cab | 4621 | else |
b4e70030 JB |
4622 | echo "$as_me:$LINENO: result: no" >&5 |
4623 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4624 | fi |
4625 | ||
b4e70030 | 4626 | RANLIB=$ac_ct_RANLIB |
bec39cab AC |
4627 | else |
4628 | RANLIB="$ac_cv_prog_RANLIB" | |
4629 | fi | |
4630 | ||
4631 | for ac_prog in 'bison -y' byacc | |
4632 | do | |
4633 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4634 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
4635 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4637 | if test "${ac_cv_prog_YACC+set}" = set; then |
4638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4639 | else | |
4640 | if test -n "$YACC"; then | |
4641 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4642 | else | |
4643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4644 | for as_dir in $PATH | |
4645 | do | |
4646 | IFS=$as_save_IFS | |
4647 | test -z "$as_dir" && as_dir=. | |
4648 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4649 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4650 | ac_cv_prog_YACC="$ac_prog" |
4651 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4652 | break 2 | |
4653 | fi | |
4654 | done | |
4655 | done | |
4656 | ||
4657 | fi | |
4658 | fi | |
4659 | YACC=$ac_cv_prog_YACC | |
4660 | if test -n "$YACC"; then | |
b4e70030 JB |
4661 | echo "$as_me:$LINENO: result: $YACC" >&5 |
4662 | echo "${ECHO_T}$YACC" >&6 | |
bec39cab | 4663 | else |
b4e70030 JB |
4664 | echo "$as_me:$LINENO: result: no" >&5 |
4665 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4666 | fi |
4667 | ||
4668 | test -n "$YACC" && break | |
4669 | done | |
4670 | test -n "$YACC" || YACC="yacc" | |
4671 | ||
4672 | ||
4673 | if test -n "$ac_tool_prefix"; then | |
4674 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4675 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
b4e70030 JB |
4676 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4678 | if test "${ac_cv_prog_AR+set}" = set; then |
4679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4680 | else | |
4681 | if test -n "$AR"; then | |
4682 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4683 | else | |
4684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4685 | for as_dir in $PATH | |
4686 | do | |
4687 | IFS=$as_save_IFS | |
4688 | test -z "$as_dir" && as_dir=. | |
4689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4690 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4691 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
4692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4693 | break 2 | |
4694 | fi | |
4695 | done | |
4696 | done | |
4697 | ||
4698 | fi | |
4699 | fi | |
4700 | AR=$ac_cv_prog_AR | |
4701 | if test -n "$AR"; then | |
b4e70030 JB |
4702 | echo "$as_me:$LINENO: result: $AR" >&5 |
4703 | echo "${ECHO_T}$AR" >&6 | |
bec39cab | 4704 | else |
b4e70030 JB |
4705 | echo "$as_me:$LINENO: result: no" >&5 |
4706 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4707 | fi |
4708 | ||
4709 | fi | |
4710 | if test -z "$ac_cv_prog_AR"; then | |
4711 | ac_ct_AR=$AR | |
4712 | # Extract the first word of "ar", so it can be a program name with args. | |
4713 | set dummy ar; ac_word=$2 | |
b4e70030 JB |
4714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4716 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
4717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4718 | else | |
4719 | if test -n "$ac_ct_AR"; then | |
4720 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4721 | else | |
4722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4723 | for as_dir in $PATH | |
4724 | do | |
4725 | IFS=$as_save_IFS | |
4726 | test -z "$as_dir" && as_dir=. | |
4727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4729 | ac_cv_prog_ac_ct_AR="ar" |
4730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4731 | break 2 | |
4732 | fi | |
4733 | done | |
4734 | done | |
4735 | ||
4736 | fi | |
4737 | fi | |
4738 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4739 | if test -n "$ac_ct_AR"; then | |
b4e70030 JB |
4740 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
4741 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
bec39cab | 4742 | else |
b4e70030 JB |
4743 | echo "$as_me:$LINENO: result: no" >&5 |
4744 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4745 | fi |
4746 | ||
b4e70030 | 4747 | AR=$ac_ct_AR |
bec39cab AC |
4748 | else |
4749 | AR="$ac_cv_prog_AR" | |
4750 | fi | |
4751 | ||
4752 | if test -n "$ac_tool_prefix"; then | |
4753 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
4754 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
b4e70030 JB |
4755 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4756 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4757 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
4758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4759 | else | |
4760 | if test -n "$DLLTOOL"; then | |
4761 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
4762 | else | |
4763 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4764 | for as_dir in $PATH | |
4765 | do | |
4766 | IFS=$as_save_IFS | |
4767 | test -z "$as_dir" && as_dir=. | |
4768 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4769 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4770 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
4771 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4772 | break 2 | |
4773 | fi | |
4774 | done | |
4775 | done | |
4776 | ||
4777 | fi | |
4778 | fi | |
4779 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
4780 | if test -n "$DLLTOOL"; then | |
b4e70030 JB |
4781 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
4782 | echo "${ECHO_T}$DLLTOOL" >&6 | |
bec39cab | 4783 | else |
b4e70030 JB |
4784 | echo "$as_me:$LINENO: result: no" >&5 |
4785 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4786 | fi |
4787 | ||
4788 | fi | |
4789 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
4790 | ac_ct_DLLTOOL=$DLLTOOL | |
4791 | # Extract the first word of "dlltool", so it can be a program name with args. | |
4792 | set dummy dlltool; ac_word=$2 | |
b4e70030 JB |
4793 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4794 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4795 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
4796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4797 | else | |
4798 | if test -n "$ac_ct_DLLTOOL"; then | |
4799 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
4800 | else | |
4801 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4802 | for as_dir in $PATH | |
4803 | do | |
4804 | IFS=$as_save_IFS | |
4805 | test -z "$as_dir" && as_dir=. | |
4806 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4807 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4808 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
4809 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4810 | break 2 | |
4811 | fi | |
4812 | done | |
4813 | done | |
4814 | ||
4815 | fi | |
4816 | fi | |
4817 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
4818 | if test -n "$ac_ct_DLLTOOL"; then | |
b4e70030 JB |
4819 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
4820 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
bec39cab | 4821 | else |
b4e70030 JB |
4822 | echo "$as_me:$LINENO: result: no" >&5 |
4823 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4824 | fi |
4825 | ||
b4e70030 | 4826 | DLLTOOL=$ac_ct_DLLTOOL |
bec39cab AC |
4827 | else |
4828 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
4829 | fi | |
4830 | ||
4831 | if test -n "$ac_tool_prefix"; then | |
4832 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
4833 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
b4e70030 JB |
4834 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4835 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4836 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
4837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4838 | else | |
4839 | if test -n "$WINDRES"; then | |
4840 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
4841 | else | |
4842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4843 | for as_dir in $PATH | |
4844 | do | |
4845 | IFS=$as_save_IFS | |
4846 | test -z "$as_dir" && as_dir=. | |
4847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4848 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4849 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
4850 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4851 | break 2 | |
4852 | fi | |
4853 | done | |
4854 | done | |
4855 | ||
4856 | fi | |
4857 | fi | |
4858 | WINDRES=$ac_cv_prog_WINDRES | |
4859 | if test -n "$WINDRES"; then | |
b4e70030 JB |
4860 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
4861 | echo "${ECHO_T}$WINDRES" >&6 | |
bec39cab | 4862 | else |
b4e70030 JB |
4863 | echo "$as_me:$LINENO: result: no" >&5 |
4864 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4865 | fi |
4866 | ||
4867 | fi | |
4868 | if test -z "$ac_cv_prog_WINDRES"; then | |
4869 | ac_ct_WINDRES=$WINDRES | |
4870 | # Extract the first word of "windres", so it can be a program name with args. | |
4871 | set dummy windres; ac_word=$2 | |
b4e70030 JB |
4872 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4874 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
4875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4876 | else | |
4877 | if test -n "$ac_ct_WINDRES"; then | |
4878 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
4879 | else | |
4880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4881 | for as_dir in $PATH | |
4882 | do | |
4883 | IFS=$as_save_IFS | |
4884 | test -z "$as_dir" && as_dir=. | |
4885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4886 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4887 | ac_cv_prog_ac_ct_WINDRES="windres" |
4888 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4889 | break 2 | |
4890 | fi | |
4891 | done | |
4892 | done | |
4893 | ||
4894 | fi | |
4895 | fi | |
4896 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
4897 | if test -n "$ac_ct_WINDRES"; then | |
b4e70030 JB |
4898 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
4899 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
bec39cab | 4900 | else |
b4e70030 JB |
4901 | echo "$as_me:$LINENO: result: no" >&5 |
4902 | echo "${ECHO_T}no" >&6 | |
c906108c | 4903 | fi |
bec39cab | 4904 | |
b4e70030 | 4905 | WINDRES=$ac_ct_WINDRES |
c906108c | 4906 | else |
bec39cab | 4907 | WINDRES="$ac_cv_prog_WINDRES" |
c906108c SS |
4908 | fi |
4909 | ||
bec39cab AC |
4910 | |
4911 | # Needed for GNU/Hurd. | |
4912 | if test -n "$ac_tool_prefix"; then | |
4913 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. | |
4914 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
b4e70030 JB |
4915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4917 | if test "${ac_cv_prog_MIG+set}" = set; then |
4918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4919 | else |
bec39cab AC |
4920 | if test -n "$MIG"; then |
4921 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
4922 | else | |
4923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4924 | for as_dir in $PATH | |
4925 | do | |
4926 | IFS=$as_save_IFS | |
4927 | test -z "$as_dir" && as_dir=. | |
4928 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4929 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4930 | ac_cv_prog_MIG="${ac_tool_prefix}mig" |
4931 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4932 | break 2 | |
4933 | fi | |
4934 | done | |
4935 | done | |
4936 | ||
c906108c | 4937 | fi |
bec39cab AC |
4938 | fi |
4939 | MIG=$ac_cv_prog_MIG | |
4940 | if test -n "$MIG"; then | |
b4e70030 JB |
4941 | echo "$as_me:$LINENO: result: $MIG" >&5 |
4942 | echo "${ECHO_T}$MIG" >&6 | |
c906108c | 4943 | else |
b4e70030 JB |
4944 | echo "$as_me:$LINENO: result: no" >&5 |
4945 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
4946 | fi |
4947 | ||
bec39cab AC |
4948 | fi |
4949 | if test -z "$ac_cv_prog_MIG"; then | |
4950 | ac_ct_MIG=$MIG | |
4951 | # Extract the first word of "mig", so it can be a program name with args. | |
4952 | set dummy mig; ac_word=$2 | |
b4e70030 JB |
4953 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4954 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4955 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then |
4956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4957 | else | |
4958 | if test -n "$ac_ct_MIG"; then | |
4959 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. | |
4960 | else | |
4961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4962 | for as_dir in $PATH | |
4963 | do | |
4964 | IFS=$as_save_IFS | |
4965 | test -z "$as_dir" && as_dir=. | |
4966 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4967 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4968 | ac_cv_prog_ac_ct_MIG="mig" |
4969 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4970 | break 2 | |
4971 | fi | |
4972 | done | |
4973 | done | |
c906108c | 4974 | |
bec39cab AC |
4975 | fi |
4976 | fi | |
4977 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG | |
4978 | if test -n "$ac_ct_MIG"; then | |
b4e70030 JB |
4979 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 |
4980 | echo "${ECHO_T}$ac_ct_MIG" >&6 | |
bec39cab | 4981 | else |
b4e70030 JB |
4982 | echo "$as_me:$LINENO: result: no" >&5 |
4983 | echo "${ECHO_T}no" >&6 | |
bec39cab | 4984 | fi |
c906108c | 4985 | |
b4e70030 | 4986 | MIG=$ac_ct_MIG |
bec39cab AC |
4987 | else |
4988 | MIG="$ac_cv_prog_MIG" | |
4989 | fi | |
c906108c | 4990 | |
c906108c | 4991 | |
bec39cab AC |
4992 | # ---------------------- # |
4993 | # Checks for libraries. # | |
4994 | # ---------------------- # | |
c906108c | 4995 | |
bec39cab | 4996 | # We might need to link with -lm; most simulators need it. |
c906108c | 4997 | |
b4e70030 JB |
4998 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
4999 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
bec39cab AC |
5000 | if test "${ac_cv_lib_m_main+set}" = set; then |
5001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5002 | else | |
5003 | ac_check_lib_save_LIBS=$LIBS | |
5004 | LIBS="-lm $LIBS" | |
5005 | cat >conftest.$ac_ext <<_ACEOF | |
5006 | /* confdefs.h. */ | |
5007 | _ACEOF | |
5008 | cat confdefs.h >>conftest.$ac_ext | |
5009 | cat >>conftest.$ac_ext <<_ACEOF | |
5010 | /* end confdefs.h. */ | |
c906108c | 5011 | |
c906108c | 5012 | |
bec39cab AC |
5013 | int |
5014 | main () | |
5015 | { | |
b4e70030 | 5016 | main (); |
bec39cab AC |
5017 | ; |
5018 | return 0; | |
5019 | } | |
5020 | _ACEOF | |
5021 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5023 | (eval $ac_link) 2>conftest.er1 | |
5024 | ac_status=$? | |
5025 | grep -v '^ *+' conftest.er1 >conftest.err | |
5026 | rm -f conftest.er1 | |
5027 | cat conftest.err >&5 | |
5028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5029 | (exit $ac_status); } && | |
b4e70030 JB |
5030 | { ac_try='test -z "$ac_c_werror_flag" |
5031 | || test ! -s conftest.err' | |
bec39cab AC |
5032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5033 | (eval $ac_try) 2>&5 | |
5034 | ac_status=$? | |
5035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5036 | (exit $ac_status); }; } && | |
5037 | { ac_try='test -s conftest$ac_exeext' | |
5038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5039 | (eval $ac_try) 2>&5 | |
5040 | ac_status=$? | |
5041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5042 | (exit $ac_status); }; }; then | |
5043 | ac_cv_lib_m_main=yes | |
5044 | else | |
5045 | echo "$as_me: failed program was:" >&5 | |
5046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5047 | ||
b4e70030 | 5048 | ac_cv_lib_m_main=no |
bec39cab AC |
5049 | fi |
5050 | rm -f conftest.err conftest.$ac_objext \ | |
5051 | conftest$ac_exeext conftest.$ac_ext | |
5052 | LIBS=$ac_check_lib_save_LIBS | |
5053 | fi | |
b4e70030 JB |
5054 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
5055 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
bec39cab AC |
5056 | if test $ac_cv_lib_m_main = yes; then |
5057 | cat >>confdefs.h <<_ACEOF | |
5058 | #define HAVE_LIBM 1 | |
5059 | _ACEOF | |
5060 | ||
5061 | LIBS="-lm $LIBS" | |
c906108c | 5062 | |
c906108c | 5063 | fi |
bec39cab AC |
5064 | |
5065 | ||
5066 | # We need to link with -lw to get `wctype' on Solaris before Solaris | |
5067 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a | |
5068 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 | |
5069 | # is known to have this problem). Therefore we avoid libw if we can. | |
b4e70030 JB |
5070 | echo "$as_me:$LINENO: checking for wctype" >&5 |
5071 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 | |
bec39cab AC |
5072 | if test "${ac_cv_func_wctype+set}" = set; then |
5073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5074 | else | |
5075 | cat >conftest.$ac_ext <<_ACEOF | |
5076 | /* confdefs.h. */ | |
5077 | _ACEOF | |
5078 | cat confdefs.h >>conftest.$ac_ext | |
5079 | cat >>conftest.$ac_ext <<_ACEOF | |
5080 | /* end confdefs.h. */ | |
5081 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
5082 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5083 | #define wctype innocuous_wctype | |
5084 | ||
5085 | /* System header to define __stub macros and hopefully few prototypes, | |
5086 | which can conflict with char wctype (); below. | |
5087 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5088 | <limits.h> exists even on freestanding compilers. */ | |
5089 | ||
5090 | #ifdef __STDC__ | |
5091 | # include <limits.h> | |
5092 | #else | |
5093 | # include <assert.h> | |
5094 | #endif | |
5095 | ||
5096 | #undef wctype | |
5097 | ||
b4e70030 | 5098 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5099 | #ifdef __cplusplus |
5100 | extern "C" | |
b4e70030 | 5101 | { |
bec39cab | 5102 | #endif |
b4e70030 JB |
5103 | /* We use char because int might match the return type of a gcc2 |
5104 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5105 | char wctype (); |
5106 | /* The GNU C library defines this for functions which it implements | |
5107 | to always fail with ENOSYS. Some functions are actually named | |
5108 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 5109 | #if defined (__stub_wctype) || defined (__stub___wctype) |
bec39cab | 5110 | choke me |
b4e70030 JB |
5111 | #else |
5112 | char (*f) () = wctype; | |
5113 | #endif | |
5114 | #ifdef __cplusplus | |
5115 | } | |
bec39cab AC |
5116 | #endif |
5117 | ||
5118 | int | |
5119 | main () | |
5120 | { | |
b4e70030 | 5121 | return f != wctype; |
bec39cab AC |
5122 | ; |
5123 | return 0; | |
5124 | } | |
5125 | _ACEOF | |
5126 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5128 | (eval $ac_link) 2>conftest.er1 | |
5129 | ac_status=$? | |
5130 | grep -v '^ *+' conftest.er1 >conftest.err | |
5131 | rm -f conftest.er1 | |
5132 | cat conftest.err >&5 | |
5133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5134 | (exit $ac_status); } && | |
b4e70030 JB |
5135 | { ac_try='test -z "$ac_c_werror_flag" |
5136 | || test ! -s conftest.err' | |
bec39cab AC |
5137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5138 | (eval $ac_try) 2>&5 | |
5139 | ac_status=$? | |
5140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5141 | (exit $ac_status); }; } && | |
5142 | { ac_try='test -s conftest$ac_exeext' | |
5143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5144 | (eval $ac_try) 2>&5 | |
5145 | ac_status=$? | |
5146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5147 | (exit $ac_status); }; }; then | |
5148 | ac_cv_func_wctype=yes | |
5149 | else | |
5150 | echo "$as_me: failed program was:" >&5 | |
5151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5152 | ||
b4e70030 | 5153 | ac_cv_func_wctype=no |
bec39cab AC |
5154 | fi |
5155 | rm -f conftest.err conftest.$ac_objext \ | |
5156 | conftest$ac_exeext conftest.$ac_ext | |
5157 | fi | |
b4e70030 JB |
5158 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
5159 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 | |
bec39cab AC |
5160 | if test $ac_cv_func_wctype = yes; then |
5161 | : | |
c906108c | 5162 | else |
c906108c | 5163 | |
b4e70030 JB |
5164 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
5165 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 | |
bec39cab AC |
5166 | if test "${ac_cv_lib_w_wctype+set}" = set; then |
5167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5168 | else | |
5169 | ac_check_lib_save_LIBS=$LIBS | |
5170 | LIBS="-lw $LIBS" | |
5171 | cat >conftest.$ac_ext <<_ACEOF | |
5172 | /* confdefs.h. */ | |
5173 | _ACEOF | |
5174 | cat confdefs.h >>conftest.$ac_ext | |
5175 | cat >>conftest.$ac_ext <<_ACEOF | |
5176 | /* end confdefs.h. */ | |
c906108c | 5177 | |
b4e70030 | 5178 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5179 | #ifdef __cplusplus |
5180 | extern "C" | |
5181 | #endif | |
b4e70030 JB |
5182 | /* We use char because int might match the return type of a gcc2 |
5183 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5184 | char wctype (); |
5185 | int | |
5186 | main () | |
5187 | { | |
b4e70030 | 5188 | wctype (); |
bec39cab AC |
5189 | ; |
5190 | return 0; | |
5191 | } | |
5192 | _ACEOF | |
5193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5195 | (eval $ac_link) 2>conftest.er1 | |
5196 | ac_status=$? | |
5197 | grep -v '^ *+' conftest.er1 >conftest.err | |
5198 | rm -f conftest.er1 | |
5199 | cat conftest.err >&5 | |
5200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5201 | (exit $ac_status); } && | |
b4e70030 JB |
5202 | { ac_try='test -z "$ac_c_werror_flag" |
5203 | || test ! -s conftest.err' | |
bec39cab AC |
5204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5205 | (eval $ac_try) 2>&5 | |
5206 | ac_status=$? | |
5207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5208 | (exit $ac_status); }; } && | |
5209 | { ac_try='test -s conftest$ac_exeext' | |
5210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5211 | (eval $ac_try) 2>&5 | |
5212 | ac_status=$? | |
5213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5214 | (exit $ac_status); }; }; then | |
5215 | ac_cv_lib_w_wctype=yes | |
5216 | else | |
5217 | echo "$as_me: failed program was:" >&5 | |
5218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5219 | ||
b4e70030 | 5220 | ac_cv_lib_w_wctype=no |
bec39cab AC |
5221 | fi |
5222 | rm -f conftest.err conftest.$ac_objext \ | |
5223 | conftest$ac_exeext conftest.$ac_ext | |
5224 | LIBS=$ac_check_lib_save_LIBS | |
5225 | fi | |
b4e70030 JB |
5226 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 |
5227 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 | |
bec39cab AC |
5228 | if test $ac_cv_lib_w_wctype = yes; then |
5229 | cat >>confdefs.h <<_ACEOF | |
5230 | #define HAVE_LIBW 1 | |
5231 | _ACEOF | |
c906108c | 5232 | |
bec39cab | 5233 | LIBS="-lw $LIBS" |
c906108c | 5234 | |
bec39cab | 5235 | fi |
c906108c | 5236 | |
bec39cab | 5237 | fi |
c906108c | 5238 | |
ddc9cd0f | 5239 | |
bec39cab | 5240 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
b4e70030 JB |
5241 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
5242 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 | |
bec39cab AC |
5243 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
5244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5245 | else | |
5246 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 5247 | ac_cv_search_gethostbyname=no |
bec39cab AC |
5248 | cat >conftest.$ac_ext <<_ACEOF |
5249 | /* confdefs.h. */ | |
5250 | _ACEOF | |
5251 | cat confdefs.h >>conftest.$ac_ext | |
5252 | cat >>conftest.$ac_ext <<_ACEOF | |
5253 | /* end confdefs.h. */ | |
ddc9cd0f | 5254 | |
b4e70030 | 5255 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5256 | #ifdef __cplusplus |
5257 | extern "C" | |
5258 | #endif | |
b4e70030 JB |
5259 | /* We use char because int might match the return type of a gcc2 |
5260 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5261 | char gethostbyname (); |
5262 | int | |
5263 | main () | |
5264 | { | |
b4e70030 | 5265 | gethostbyname (); |
bec39cab AC |
5266 | ; |
5267 | return 0; | |
5268 | } | |
5269 | _ACEOF | |
b4e70030 | 5270 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5272 | (eval $ac_link) 2>conftest.er1 | |
5273 | ac_status=$? | |
5274 | grep -v '^ *+' conftest.er1 >conftest.err | |
5275 | rm -f conftest.er1 | |
5276 | cat conftest.err >&5 | |
5277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5278 | (exit $ac_status); } && | |
b4e70030 JB |
5279 | { ac_try='test -z "$ac_c_werror_flag" |
5280 | || test ! -s conftest.err' | |
bec39cab AC |
5281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5282 | (eval $ac_try) 2>&5 | |
5283 | ac_status=$? | |
5284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5285 | (exit $ac_status); }; } && | |
5286 | { ac_try='test -s conftest$ac_exeext' | |
5287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5288 | (eval $ac_try) 2>&5 | |
5289 | ac_status=$? | |
5290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5291 | (exit $ac_status); }; }; then | |
b4e70030 | 5292 | ac_cv_search_gethostbyname="none required" |
bec39cab AC |
5293 | else |
5294 | echo "$as_me: failed program was:" >&5 | |
5295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 5296 | |
bec39cab AC |
5297 | fi |
5298 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
5299 | conftest$ac_exeext conftest.$ac_ext |
5300 | if test "$ac_cv_search_gethostbyname" = no; then | |
5301 | for ac_lib in nsl; do | |
5302 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5303 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
5304 | /* confdefs.h. */ |
5305 | _ACEOF | |
5306 | cat confdefs.h >>conftest.$ac_ext | |
5307 | cat >>conftest.$ac_ext <<_ACEOF | |
5308 | /* end confdefs.h. */ | |
ddc9cd0f | 5309 | |
b4e70030 | 5310 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5311 | #ifdef __cplusplus |
5312 | extern "C" | |
5313 | #endif | |
b4e70030 JB |
5314 | /* We use char because int might match the return type of a gcc2 |
5315 | builtin and then its argument prototype would still apply. */ | |
5316 | char gethostbyname (); | |
bec39cab AC |
5317 | int |
5318 | main () | |
5319 | { | |
b4e70030 | 5320 | gethostbyname (); |
bec39cab AC |
5321 | ; |
5322 | return 0; | |
5323 | } | |
5324 | _ACEOF | |
b4e70030 | 5325 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5327 | (eval $ac_link) 2>conftest.er1 | |
5328 | ac_status=$? | |
5329 | grep -v '^ *+' conftest.er1 >conftest.err | |
5330 | rm -f conftest.er1 | |
5331 | cat conftest.err >&5 | |
5332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5333 | (exit $ac_status); } && | |
b4e70030 JB |
5334 | { ac_try='test -z "$ac_c_werror_flag" |
5335 | || test ! -s conftest.err' | |
bec39cab AC |
5336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5337 | (eval $ac_try) 2>&5 | |
5338 | ac_status=$? | |
5339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5340 | (exit $ac_status); }; } && | |
5341 | { ac_try='test -s conftest$ac_exeext' | |
5342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5343 | (eval $ac_try) 2>&5 | |
5344 | ac_status=$? | |
5345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5346 | (exit $ac_status); }; }; then | |
b4e70030 JB |
5347 | ac_cv_search_gethostbyname="-l$ac_lib" |
5348 | break | |
bec39cab AC |
5349 | else |
5350 | echo "$as_me: failed program was:" >&5 | |
5351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5352 | ||
5353 | fi | |
5354 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
5355 | conftest$ac_exeext conftest.$ac_ext |
5356 | done | |
bec39cab AC |
5357 | fi |
5358 | LIBS=$ac_func_search_save_LIBS | |
5359 | fi | |
b4e70030 JB |
5360 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 |
5361 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 | |
5362 | if test "$ac_cv_search_gethostbyname" != no; then | |
5363 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" | |
96baa820 | 5364 | |
bec39cab | 5365 | fi |
96baa820 | 5366 | |
c906108c | 5367 | |
b4e70030 JB |
5368 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
5369 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 | |
5370 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 | |
5371 | if test "${ac_cv_search_socketpair+set}" = set; then | |
5372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5373 | else | |
5374 | ac_func_search_save_LIBS=$LIBS | |
5375 | ac_cv_search_socketpair=no | |
5376 | cat >conftest.$ac_ext <<_ACEOF | |
5377 | /* confdefs.h. */ | |
5378 | _ACEOF | |
5379 | cat confdefs.h >>conftest.$ac_ext | |
5380 | cat >>conftest.$ac_ext <<_ACEOF | |
5381 | /* end confdefs.h. */ | |
5382 | ||
5383 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5384 | #ifdef __cplusplus | |
5385 | extern "C" | |
5386 | #endif | |
5387 | /* We use char because int might match the return type of a gcc2 | |
5388 | builtin and then its argument prototype would still apply. */ | |
5389 | char socketpair (); | |
5390 | int | |
5391 | main () | |
5392 | { | |
5393 | socketpair (); | |
5394 | ; | |
5395 | return 0; | |
5396 | } | |
5397 | _ACEOF | |
5398 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5400 | (eval $ac_link) 2>conftest.er1 | |
5401 | ac_status=$? | |
5402 | grep -v '^ *+' conftest.er1 >conftest.err | |
5403 | rm -f conftest.er1 | |
5404 | cat conftest.err >&5 | |
5405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5406 | (exit $ac_status); } && | |
5407 | { ac_try='test -z "$ac_c_werror_flag" | |
5408 | || test ! -s conftest.err' | |
5409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5410 | (eval $ac_try) 2>&5 | |
5411 | ac_status=$? | |
5412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5413 | (exit $ac_status); }; } && | |
5414 | { ac_try='test -s conftest$ac_exeext' | |
5415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5416 | (eval $ac_try) 2>&5 | |
5417 | ac_status=$? | |
5418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5419 | (exit $ac_status); }; }; then | |
5420 | ac_cv_search_socketpair="none required" | |
5421 | else | |
5422 | echo "$as_me: failed program was:" >&5 | |
5423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5424 | ||
5425 | fi | |
5426 | rm -f conftest.err conftest.$ac_objext \ | |
5427 | conftest$ac_exeext conftest.$ac_ext | |
5428 | if test "$ac_cv_search_socketpair" = no; then | |
5429 | for ac_lib in socket; do | |
5430 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5431 | cat >conftest.$ac_ext <<_ACEOF | |
5432 | /* confdefs.h. */ | |
5433 | _ACEOF | |
5434 | cat confdefs.h >>conftest.$ac_ext | |
5435 | cat >>conftest.$ac_ext <<_ACEOF | |
5436 | /* end confdefs.h. */ | |
5437 | ||
5438 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5439 | #ifdef __cplusplus | |
5440 | extern "C" | |
5441 | #endif | |
5442 | /* We use char because int might match the return type of a gcc2 | |
5443 | builtin and then its argument prototype would still apply. */ | |
5444 | char socketpair (); | |
5445 | int | |
5446 | main () | |
5447 | { | |
5448 | socketpair (); | |
5449 | ; | |
5450 | return 0; | |
5451 | } | |
5452 | _ACEOF | |
5453 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5455 | (eval $ac_link) 2>conftest.er1 | |
5456 | ac_status=$? | |
5457 | grep -v '^ *+' conftest.er1 >conftest.err | |
5458 | rm -f conftest.er1 | |
5459 | cat conftest.err >&5 | |
5460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5461 | (exit $ac_status); } && | |
5462 | { ac_try='test -z "$ac_c_werror_flag" | |
5463 | || test ! -s conftest.err' | |
5464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5465 | (eval $ac_try) 2>&5 | |
5466 | ac_status=$? | |
5467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5468 | (exit $ac_status); }; } && | |
5469 | { ac_try='test -s conftest$ac_exeext' | |
5470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5471 | (eval $ac_try) 2>&5 | |
5472 | ac_status=$? | |
5473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5474 | (exit $ac_status); }; }; then | |
5475 | ac_cv_search_socketpair="-l$ac_lib" | |
5476 | break | |
5477 | else | |
5478 | echo "$as_me: failed program was:" >&5 | |
5479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5480 | ||
5481 | fi | |
5482 | rm -f conftest.err conftest.$ac_objext \ | |
5483 | conftest$ac_exeext conftest.$ac_ext | |
5484 | done | |
5485 | fi | |
5486 | LIBS=$ac_func_search_save_LIBS | |
5487 | fi | |
5488 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 | |
5489 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 | |
5490 | if test "$ac_cv_search_socketpair" != no; then | |
5491 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" | |
5492 | ||
5493 | fi | |
5494 | ||
5495 | ||
5496 | # For the TUI, we need enhanced curses functionality. | |
bec39cab AC |
5497 | # |
5498 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied | |
5499 | # curses library because the latter might not provide all the | |
5500 | # functionality we need. However, this leads to problems on systems | |
5501 | # where the linker searches /usr/local/lib, but the compiler doesn't | |
5502 | # search /usr/local/include, if ncurses is installed in /usr/local. A | |
5503 | # default installation of ncurses on alpha*-dec-osf* will lead to such | |
5504 | # a situation. | |
b4e70030 JB |
5505 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 |
5506 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 | |
bec39cab AC |
5507 | if test "${ac_cv_search_waddstr+set}" = set; then |
5508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5509 | else | |
5510 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 5511 | ac_cv_search_waddstr=no |
bec39cab AC |
5512 | cat >conftest.$ac_ext <<_ACEOF |
5513 | /* confdefs.h. */ | |
5514 | _ACEOF | |
5515 | cat confdefs.h >>conftest.$ac_ext | |
5516 | cat >>conftest.$ac_ext <<_ACEOF | |
5517 | /* end confdefs.h. */ | |
c906108c | 5518 | |
b4e70030 | 5519 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5520 | #ifdef __cplusplus |
5521 | extern "C" | |
5522 | #endif | |
b4e70030 JB |
5523 | /* We use char because int might match the return type of a gcc2 |
5524 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5525 | char waddstr (); |
5526 | int | |
5527 | main () | |
5528 | { | |
b4e70030 | 5529 | waddstr (); |
bec39cab AC |
5530 | ; |
5531 | return 0; | |
5532 | } | |
5533 | _ACEOF | |
b4e70030 | 5534 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5535 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5536 | (eval $ac_link) 2>conftest.er1 | |
5537 | ac_status=$? | |
5538 | grep -v '^ *+' conftest.er1 >conftest.err | |
5539 | rm -f conftest.er1 | |
5540 | cat conftest.err >&5 | |
5541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5542 | (exit $ac_status); } && | |
b4e70030 JB |
5543 | { ac_try='test -z "$ac_c_werror_flag" |
5544 | || test ! -s conftest.err' | |
bec39cab AC |
5545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5546 | (eval $ac_try) 2>&5 | |
5547 | ac_status=$? | |
5548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5549 | (exit $ac_status); }; } && | |
5550 | { ac_try='test -s conftest$ac_exeext' | |
5551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5552 | (eval $ac_try) 2>&5 | |
5553 | ac_status=$? | |
5554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5555 | (exit $ac_status); }; }; then | |
b4e70030 | 5556 | ac_cv_search_waddstr="none required" |
bec39cab AC |
5557 | else |
5558 | echo "$as_me: failed program was:" >&5 | |
5559 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1ba607ad AC |
5560 | |
5561 | fi | |
bec39cab | 5562 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
5563 | conftest$ac_exeext conftest.$ac_ext |
5564 | if test "$ac_cv_search_waddstr" = no; then | |
5565 | for ac_lib in ncurses cursesX curses; do | |
5566 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5567 | cat >conftest.$ac_ext <<_ACEOF | |
5568 | /* confdefs.h. */ | |
5569 | _ACEOF | |
5570 | cat confdefs.h >>conftest.$ac_ext | |
5571 | cat >>conftest.$ac_ext <<_ACEOF | |
5572 | /* end confdefs.h. */ | |
5573 | ||
5574 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5575 | #ifdef __cplusplus | |
5576 | extern "C" | |
5577 | #endif | |
5578 | /* We use char because int might match the return type of a gcc2 | |
5579 | builtin and then its argument prototype would still apply. */ | |
5580 | char waddstr (); | |
5581 | int | |
5582 | main () | |
5583 | { | |
5584 | waddstr (); | |
5585 | ; | |
5586 | return 0; | |
5587 | } | |
5588 | _ACEOF | |
5589 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5591 | (eval $ac_link) 2>conftest.er1 | |
5592 | ac_status=$? | |
5593 | grep -v '^ *+' conftest.er1 >conftest.err | |
5594 | rm -f conftest.er1 | |
5595 | cat conftest.err >&5 | |
5596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5597 | (exit $ac_status); } && | |
5598 | { ac_try='test -z "$ac_c_werror_flag" | |
5599 | || test ! -s conftest.err' | |
5600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5601 | (eval $ac_try) 2>&5 | |
5602 | ac_status=$? | |
5603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5604 | (exit $ac_status); }; } && | |
5605 | { ac_try='test -s conftest$ac_exeext' | |
5606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5607 | (eval $ac_try) 2>&5 | |
5608 | ac_status=$? | |
5609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5610 | (exit $ac_status); }; }; then | |
5611 | ac_cv_search_waddstr="-l$ac_lib" | |
5612 | break | |
4e8d927d | 5613 | else |
b4e70030 JB |
5614 | echo "$as_me: failed program was:" >&5 |
5615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5616 | ||
5617 | fi | |
5618 | rm -f conftest.err conftest.$ac_objext \ | |
5619 | conftest$ac_exeext conftest.$ac_ext | |
5620 | done | |
1ba607ad | 5621 | fi |
bec39cab AC |
5622 | LIBS=$ac_func_search_save_LIBS |
5623 | fi | |
b4e70030 JB |
5624 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 |
5625 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 | |
5626 | if test "$ac_cv_search_waddstr" != no; then | |
5627 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" | |
c906108c | 5628 | |
8bb2c122 | 5629 | fi |
8bb2c122 | 5630 | |
8bb2c122 | 5631 | |
bec39cab AC |
5632 | # Since GDB uses Readline, we need termcap functionality. In many |
5633 | # cases this will be provided by the curses library, but some systems | |
5634 | # have a seperate termcap library, or no curses library at all. | |
8bb2c122 | 5635 | |
bec39cab AC |
5636 | case $host_os in |
5637 | cygwin*) | |
5638 | if test -d $srcdir/libtermcap; then | |
5639 | LIBS="../libtermcap/libtermcap.a $LIBS" | |
5640 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" | |
5641 | fi ;; | |
5642 | go32* | *djgpp*) | |
5643 | ac_cv_search_tgetent="none required" | |
5644 | ;; | |
7ef34f2c MM |
5645 | *mingw32*) |
5646 | ac_cv_search_tgetent="none required" | |
5647 | CONFIG_OBS="$CONFIG_OBS win32-termcap.o" | |
5648 | ;; | |
bec39cab | 5649 | esac |
627af7ea | 5650 | |
bec39cab | 5651 | # These are the libraries checked by Readline. |
b4e70030 JB |
5652 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
5653 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
bec39cab AC |
5654 | if test "${ac_cv_search_tgetent+set}" = set; then |
5655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5656 | else | |
5657 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 5658 | ac_cv_search_tgetent=no |
bec39cab AC |
5659 | cat >conftest.$ac_ext <<_ACEOF |
5660 | /* confdefs.h. */ | |
5661 | _ACEOF | |
5662 | cat confdefs.h >>conftest.$ac_ext | |
5663 | cat >>conftest.$ac_ext <<_ACEOF | |
5664 | /* end confdefs.h. */ | |
5665 | ||
b4e70030 | 5666 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5667 | #ifdef __cplusplus |
5668 | extern "C" | |
5669 | #endif | |
b4e70030 JB |
5670 | /* We use char because int might match the return type of a gcc2 |
5671 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5672 | char tgetent (); |
5673 | int | |
5674 | main () | |
5675 | { | |
b4e70030 | 5676 | tgetent (); |
bec39cab AC |
5677 | ; |
5678 | return 0; | |
5679 | } | |
5680 | _ACEOF | |
b4e70030 | 5681 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5682 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5683 | (eval $ac_link) 2>conftest.er1 | |
5684 | ac_status=$? | |
5685 | grep -v '^ *+' conftest.er1 >conftest.err | |
5686 | rm -f conftest.er1 | |
5687 | cat conftest.err >&5 | |
5688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5689 | (exit $ac_status); } && | |
b4e70030 JB |
5690 | { ac_try='test -z "$ac_c_werror_flag" |
5691 | || test ! -s conftest.err' | |
bec39cab AC |
5692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5693 | (eval $ac_try) 2>&5 | |
5694 | ac_status=$? | |
5695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5696 | (exit $ac_status); }; } && | |
5697 | { ac_try='test -s conftest$ac_exeext' | |
5698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5699 | (eval $ac_try) 2>&5 | |
5700 | ac_status=$? | |
5701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5702 | (exit $ac_status); }; }; then | |
b4e70030 | 5703 | ac_cv_search_tgetent="none required" |
627af7ea | 5704 | else |
bec39cab AC |
5705 | echo "$as_me: failed program was:" >&5 |
5706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 5707 | |
627af7ea | 5708 | fi |
bec39cab | 5709 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
5710 | conftest$ac_exeext conftest.$ac_ext |
5711 | if test "$ac_cv_search_tgetent" = no; then | |
5712 | for ac_lib in termcap tinfo curses ncurses; do | |
5713 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5714 | cat >conftest.$ac_ext <<_ACEOF | |
5715 | /* confdefs.h. */ | |
5716 | _ACEOF | |
5717 | cat confdefs.h >>conftest.$ac_ext | |
5718 | cat >>conftest.$ac_ext <<_ACEOF | |
5719 | /* end confdefs.h. */ | |
5720 | ||
5721 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5722 | #ifdef __cplusplus | |
5723 | extern "C" | |
5724 | #endif | |
5725 | /* We use char because int might match the return type of a gcc2 | |
5726 | builtin and then its argument prototype would still apply. */ | |
5727 | char tgetent (); | |
5728 | int | |
5729 | main () | |
5730 | { | |
5731 | tgetent (); | |
5732 | ; | |
5733 | return 0; | |
5734 | } | |
5735 | _ACEOF | |
5736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5738 | (eval $ac_link) 2>conftest.er1 | |
5739 | ac_status=$? | |
5740 | grep -v '^ *+' conftest.er1 >conftest.err | |
5741 | rm -f conftest.er1 | |
5742 | cat conftest.err >&5 | |
5743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5744 | (exit $ac_status); } && | |
5745 | { ac_try='test -z "$ac_c_werror_flag" | |
5746 | || test ! -s conftest.err' | |
5747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5748 | (eval $ac_try) 2>&5 | |
5749 | ac_status=$? | |
5750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5751 | (exit $ac_status); }; } && | |
5752 | { ac_try='test -s conftest$ac_exeext' | |
5753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5754 | (eval $ac_try) 2>&5 | |
5755 | ac_status=$? | |
5756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5757 | (exit $ac_status); }; }; then | |
5758 | ac_cv_search_tgetent="-l$ac_lib" | |
5759 | break | |
4e8d927d | 5760 | else |
b4e70030 JB |
5761 | echo "$as_me: failed program was:" >&5 |
5762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5763 | ||
5764 | fi | |
5765 | rm -f conftest.err conftest.$ac_objext \ | |
5766 | conftest$ac_exeext conftest.$ac_ext | |
5767 | done | |
bec39cab AC |
5768 | fi |
5769 | LIBS=$ac_func_search_save_LIBS | |
5770 | fi | |
b4e70030 JB |
5771 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
5772 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
5773 | if test "$ac_cv_search_tgetent" != no; then | |
5774 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
627af7ea | 5775 | |
06825bd1 MK |
5776 | fi |
5777 | ||
06825bd1 | 5778 | |
bec39cab AC |
5779 | if test "$ac_cv_search_tgetent" = no; then |
5780 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 | |
5781 | echo "$as_me: error: no termcap library found" >&2;} | |
5782 | { (exit 1); exit 1; }; } | |
8ee53726 MK |
5783 | fi |
5784 | ||
3841debe | 5785 | |
6a30b0a5 AS |
5786 | # Check whether --with-system-readline or --without-system-readline was given. |
5787 | if test "${with_system_readline+set}" = set; then | |
5788 | withval="$with_system_readline" | |
5789 | ||
5790 | fi; | |
5791 | ||
5792 | if test "$with_system_readline" = yes; then | |
5793 | READLINE=-lreadline | |
5794 | READLINE_DEPS= | |
5795 | READLINE_CFLAGS= | |
5796 | else | |
5797 | READLINE='$(READLINE_DIR)/libreadline.a' | |
5798 | READLINE_DEPS='$(READLINE)' | |
5799 | READLINE_CFLAGS='-I$(READLINE_SRC)/..' | |
5800 | fi | |
5801 | ||
5802 | ||
5803 | ||
5804 | ||
5805 | ||
5c39566f DJ |
5806 | # Check whether --with-expat or --without-expat was given. |
5807 | if test "${with_expat+set}" = set; then | |
5808 | withval="$with_expat" | |
5809 | ||
5810 | else | |
5811 | with_expat=auto | |
5812 | fi; | |
5813 | echo "$as_me:$LINENO: checking whether to use expat" >&5 | |
5814 | echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6 | |
5815 | echo "$as_me:$LINENO: result: $with_expat" >&5 | |
5816 | echo "${ECHO_T}$with_expat" >&6 | |
5817 | ||
5818 | if test "${with_expat}" = no; then | |
5819 | { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5 | |
5820 | echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;} | |
5821 | HAVE_LIBEXPAT=no | |
5822 | else | |
5823 | ||
3841debe DJ |
5824 | if test "X$prefix" = "XNONE"; then |
5825 | acl_final_prefix="$ac_default_prefix" | |
5826 | else | |
5827 | acl_final_prefix="$prefix" | |
5828 | fi | |
5829 | if test "X$exec_prefix" = "XNONE"; then | |
5830 | acl_final_exec_prefix='${prefix}' | |
5831 | else | |
5832 | acl_final_exec_prefix="$exec_prefix" | |
5833 | fi | |
5834 | acl_save_prefix="$prefix" | |
5835 | prefix="$acl_final_prefix" | |
5836 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
5837 | prefix="$acl_save_prefix" | |
5838 | ||
5839 | ||
5840 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
5841 | if test "${with_gnu_ld+set}" = set; then | |
5842 | withval="$with_gnu_ld" | |
5843 | test "$withval" = no || with_gnu_ld=yes | |
5844 | else | |
5845 | with_gnu_ld=no | |
5846 | fi; | |
5847 | # Prepare PATH_SEPARATOR. | |
5848 | # The user is always right. | |
5849 | if test "${PATH_SEPARATOR+set}" != set; then | |
5850 | echo "#! /bin/sh" >conf$$.sh | |
5851 | echo "exit 0" >>conf$$.sh | |
5852 | chmod +x conf$$.sh | |
5853 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5854 | PATH_SEPARATOR=';' | |
5855 | else | |
5856 | PATH_SEPARATOR=: | |
5857 | fi | |
5858 | rm -f conf$$.sh | |
5859 | fi | |
5860 | ac_prog=ld | |
5861 | if test "$GCC" = yes; then | |
5862 | # Check if gcc -print-prog-name=ld gives a path. | |
5863 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
5864 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
5865 | case $host in | |
5866 | *-*-mingw*) | |
5867 | # gcc leaves a trailing carriage return which upsets mingw | |
5868 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5869 | *) | |
5870 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5871 | esac | |
5872 | case $ac_prog in | |
5873 | # Accept absolute paths. | |
5874 | [\\/]* | [A-Za-z]:[\\/]*) | |
5875 | re_direlt='/[^/][^/]*/\.\./' | |
5876 | # Canonicalize the path of ld | |
5877 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
5878 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
5879 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
5880 | done | |
5881 | test -z "$LD" && LD="$ac_prog" | |
5882 | ;; | |
5883 | "") | |
5884 | # If it fails, then pretend we aren't using GCC. | |
5885 | ac_prog=ld | |
5886 | ;; | |
5887 | *) | |
5888 | # If it is relative, then search for the first ld in PATH. | |
5889 | with_gnu_ld=unknown | |
5890 | ;; | |
5891 | esac | |
5892 | elif test "$with_gnu_ld" = yes; then | |
5893 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
5894 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
5895 | else | |
5896 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
5897 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
5898 | fi | |
5899 | if test "${acl_cv_path_LD+set}" = set; then | |
5900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5901 | else | |
5902 | if test -z "$LD"; then | |
5903 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
5904 | for ac_dir in $PATH; do | |
5905 | test -z "$ac_dir" && ac_dir=. | |
5906 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5907 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
5908 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5909 | # but apparently some GNU ld's only accept -v. | |
5910 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5911 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
5912 | test "$with_gnu_ld" != no && break | |
5913 | else | |
5914 | test "$with_gnu_ld" != yes && break | |
5915 | fi | |
5916 | fi | |
5917 | done | |
5918 | IFS="$ac_save_ifs" | |
5919 | else | |
5920 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
5921 | fi | |
5922 | fi | |
5923 | ||
5924 | LD="$acl_cv_path_LD" | |
5925 | if test -n "$LD"; then | |
5926 | echo "$as_me:$LINENO: result: $LD" >&5 | |
5927 | echo "${ECHO_T}$LD" >&6 | |
5928 | else | |
5929 | echo "$as_me:$LINENO: result: no" >&5 | |
5930 | echo "${ECHO_T}no" >&6 | |
5931 | fi | |
5932 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
5933 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
5934 | { (exit 1); exit 1; }; } | |
5935 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
5936 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
5937 | if test "${acl_cv_prog_gnu_ld+set}" = set; then | |
5938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5939 | else | |
5940 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
5941 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
5942 | acl_cv_prog_gnu_ld=yes | |
5943 | else | |
5944 | acl_cv_prog_gnu_ld=no | |
5945 | fi | |
5946 | fi | |
5947 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 | |
5948 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 | |
5949 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
5950 | ||
5951 | ||
5952 | ||
5953 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | |
5954 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 | |
5955 | if test "${acl_cv_rpath+set}" = set; then | |
5956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5957 | else | |
5958 | ||
5959 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
5960 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
5961 | . ./conftest.sh | |
5962 | rm -f ./conftest.sh | |
5963 | acl_cv_rpath=done | |
5964 | ||
5965 | fi | |
5966 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 | |
5967 | echo "${ECHO_T}$acl_cv_rpath" >&6 | |
5968 | wl="$acl_cv_wl" | |
5969 | libext="$acl_cv_libext" | |
5970 | shlibext="$acl_cv_shlibext" | |
5971 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
5972 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
5973 | hardcode_direct="$acl_cv_hardcode_direct" | |
5974 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
5975 | # Check whether --enable-rpath or --disable-rpath was given. | |
5976 | if test "${enable_rpath+set}" = set; then | |
5977 | enableval="$enable_rpath" | |
5978 | : | |
5979 | else | |
5980 | enable_rpath=yes | |
5981 | fi; | |
5982 | ||
5983 | ||
5984 | ||
5985 | ||
5986 | ||
5987 | ||
5988 | ||
5989 | ||
5990 | ||
5991 | use_additional=yes | |
5992 | ||
5993 | acl_save_prefix="$prefix" | |
5994 | prefix="$acl_final_prefix" | |
5995 | acl_save_exec_prefix="$exec_prefix" | |
5996 | exec_prefix="$acl_final_exec_prefix" | |
5997 | ||
5998 | eval additional_includedir=\"$includedir\" | |
5999 | eval additional_libdir=\"$libdir\" | |
6000 | ||
6001 | exec_prefix="$acl_save_exec_prefix" | |
6002 | prefix="$acl_save_prefix" | |
6003 | ||
6004 | ||
6005 | # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given. | |
6006 | if test "${with_libexpat_prefix+set}" = set; then | |
6007 | withval="$with_libexpat_prefix" | |
6008 | ||
6009 | if test "X$withval" = "Xno"; then | |
6010 | use_additional=no | |
6011 | else | |
6012 | if test "X$withval" = "X"; then | |
6013 | ||
6014 | acl_save_prefix="$prefix" | |
6015 | prefix="$acl_final_prefix" | |
6016 | acl_save_exec_prefix="$exec_prefix" | |
6017 | exec_prefix="$acl_final_exec_prefix" | |
6018 | ||
6019 | eval additional_includedir=\"$includedir\" | |
6020 | eval additional_libdir=\"$libdir\" | |
6021 | ||
6022 | exec_prefix="$acl_save_exec_prefix" | |
6023 | prefix="$acl_save_prefix" | |
6024 | ||
6025 | else | |
6026 | additional_includedir="$withval/include" | |
6027 | additional_libdir="$withval/lib" | |
6028 | fi | |
6029 | fi | |
6030 | ||
6031 | fi; | |
6032 | LIBEXPAT= | |
6033 | LTLIBEXPAT= | |
6034 | INCEXPAT= | |
6035 | rpathdirs= | |
6036 | ltrpathdirs= | |
6037 | names_already_handled= | |
6038 | names_next_round='expat ' | |
6039 | while test -n "$names_next_round"; do | |
6040 | names_this_round="$names_next_round" | |
6041 | names_next_round= | |
6042 | for name in $names_this_round; do | |
6043 | already_handled= | |
6044 | for n in $names_already_handled; do | |
6045 | if test "$n" = "$name"; then | |
6046 | already_handled=yes | |
6047 | break | |
6048 | fi | |
6049 | done | |
6050 | if test -z "$already_handled"; then | |
6051 | names_already_handled="$names_already_handled $name" | |
6052 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
6053 | eval value=\"\$HAVE_LIB$uppername\" | |
6054 | if test -n "$value"; then | |
6055 | if test "$value" = yes; then | |
6056 | eval value=\"\$LIB$uppername\" | |
6057 | test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" | |
6058 | eval value=\"\$LTLIB$uppername\" | |
6059 | test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" | |
6060 | else | |
6061 | : | |
6062 | fi | |
6063 | else | |
6064 | found_dir= | |
6065 | found_la= | |
6066 | found_so= | |
6067 | found_a= | |
6068 | if test $use_additional = yes; then | |
6069 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
6070 | found_dir="$additional_libdir" | |
6071 | found_so="$additional_libdir/lib$name.$shlibext" | |
6072 | if test -f "$additional_libdir/lib$name.la"; then | |
6073 | found_la="$additional_libdir/lib$name.la" | |
6074 | fi | |
6075 | else | |
6076 | if test -f "$additional_libdir/lib$name.$libext"; then | |
6077 | found_dir="$additional_libdir" | |
6078 | found_a="$additional_libdir/lib$name.$libext" | |
6079 | if test -f "$additional_libdir/lib$name.la"; then | |
6080 | found_la="$additional_libdir/lib$name.la" | |
6081 | fi | |
6082 | fi | |
6083 | fi | |
6084 | fi | |
6085 | if test "X$found_dir" = "X"; then | |
6086 | for x in $LDFLAGS $LTLIBEXPAT; do | |
6087 | ||
6088 | acl_save_prefix="$prefix" | |
6089 | prefix="$acl_final_prefix" | |
6090 | acl_save_exec_prefix="$exec_prefix" | |
6091 | exec_prefix="$acl_final_exec_prefix" | |
6092 | eval x=\"$x\" | |
6093 | exec_prefix="$acl_save_exec_prefix" | |
6094 | prefix="$acl_save_prefix" | |
6095 | ||
6096 | case "$x" in | |
6097 | -L*) | |
6098 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
6099 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
6100 | found_dir="$dir" | |
6101 | found_so="$dir/lib$name.$shlibext" | |
6102 | if test -f "$dir/lib$name.la"; then | |
6103 | found_la="$dir/lib$name.la" | |
6104 | fi | |
6105 | else | |
6106 | if test -f "$dir/lib$name.$libext"; then | |
6107 | found_dir="$dir" | |
6108 | found_a="$dir/lib$name.$libext" | |
6109 | if test -f "$dir/lib$name.la"; then | |
6110 | found_la="$dir/lib$name.la" | |
6111 | fi | |
6112 | fi | |
6113 | fi | |
6114 | ;; | |
6115 | esac | |
6116 | if test "X$found_dir" != "X"; then | |
6117 | break | |
6118 | fi | |
6119 | done | |
6120 | fi | |
6121 | if test "X$found_dir" != "X"; then | |
6122 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name" | |
6123 | if test "X$found_so" != "X"; then | |
6124 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
6125 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6126 | else | |
6127 | haveit= | |
6128 | for x in $ltrpathdirs; do | |
6129 | if test "X$x" = "X$found_dir"; then | |
6130 | haveit=yes | |
6131 | break | |
6132 | fi | |
6133 | done | |
6134 | if test -z "$haveit"; then | |
6135 | ltrpathdirs="$ltrpathdirs $found_dir" | |
6136 | fi | |
6137 | if test "$hardcode_direct" = yes; then | |
6138 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6139 | else | |
6140 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
6141 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6142 | haveit= | |
6143 | for x in $rpathdirs; do | |
6144 | if test "X$x" = "X$found_dir"; then | |
6145 | haveit=yes | |
6146 | break | |
6147 | fi | |
6148 | done | |
6149 | if test -z "$haveit"; then | |
6150 | rpathdirs="$rpathdirs $found_dir" | |
6151 | fi | |
6152 | else | |
6153 | haveit= | |
6154 | for x in $LDFLAGS $LIBEXPAT; do | |
6155 | ||
6156 | acl_save_prefix="$prefix" | |
6157 | prefix="$acl_final_prefix" | |
6158 | acl_save_exec_prefix="$exec_prefix" | |
6159 | exec_prefix="$acl_final_exec_prefix" | |
6160 | eval x=\"$x\" | |
6161 | exec_prefix="$acl_save_exec_prefix" | |
6162 | prefix="$acl_save_prefix" | |
6163 | ||
6164 | if test "X$x" = "X-L$found_dir"; then | |
6165 | haveit=yes | |
6166 | break | |
6167 | fi | |
6168 | done | |
6169 | if test -z "$haveit"; then | |
6170 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" | |
6171 | fi | |
6172 | if test "$hardcode_minus_L" != no; then | |
6173 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6174 | else | |
6175 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
6176 | fi | |
6177 | fi | |
6178 | fi | |
6179 | fi | |
6180 | else | |
6181 | if test "X$found_a" != "X"; then | |
6182 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" | |
6183 | else | |
6184 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name" | |
6185 | fi | |
6186 | fi | |
6187 | additional_includedir= | |
6188 | case "$found_dir" in | |
6189 | */lib | */lib/) | |
6190 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
6191 | additional_includedir="$basedir/include" | |
6192 | ;; | |
6193 | esac | |
6194 | if test "X$additional_includedir" != "X"; then | |
6195 | if test "X$additional_includedir" != "X/usr/include"; then | |
6196 | haveit= | |
6197 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
6198 | if test -n "$GCC"; then | |
6199 | case $host_os in | |
6200 | linux*) haveit=yes;; | |
6201 | esac | |
6202 | fi | |
6203 | fi | |
6204 | if test -z "$haveit"; then | |
6205 | for x in $CPPFLAGS $INCEXPAT; do | |
6206 | ||
6207 | acl_save_prefix="$prefix" | |
6208 | prefix="$acl_final_prefix" | |
6209 | acl_save_exec_prefix="$exec_prefix" | |
6210 | exec_prefix="$acl_final_exec_prefix" | |
6211 | eval x=\"$x\" | |
6212 | exec_prefix="$acl_save_exec_prefix" | |
6213 | prefix="$acl_save_prefix" | |
6214 | ||
6215 | if test "X$x" = "X-I$additional_includedir"; then | |
6216 | haveit=yes | |
6217 | break | |
6218 | fi | |
6219 | done | |
6220 | if test -z "$haveit"; then | |
6221 | if test -d "$additional_includedir"; then | |
6222 | INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir" | |
6223 | fi | |
6224 | fi | |
6225 | fi | |
6226 | fi | |
6227 | fi | |
6228 | if test -n "$found_la"; then | |
6229 | save_libdir="$libdir" | |
6230 | case "$found_la" in | |
6231 | */* | *\\*) . "$found_la" ;; | |
6232 | *) . "./$found_la" ;; | |
6233 | esac | |
6234 | libdir="$save_libdir" | |
6235 | for dep in $dependency_libs; do | |
6236 | case "$dep" in | |
6237 | -L*) | |
6238 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
6239 | if test "X$additional_libdir" != "X/usr/lib"; then | |
6240 | haveit= | |
6241 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
6242 | if test -n "$GCC"; then | |
6243 | case $host_os in | |
6244 | linux*) haveit=yes;; | |
6245 | esac | |
6246 | fi | |
6247 | fi | |
6248 | if test -z "$haveit"; then | |
6249 | haveit= | |
6250 | for x in $LDFLAGS $LIBEXPAT; do | |
6251 | ||
6252 | acl_save_prefix="$prefix" | |
6253 | prefix="$acl_final_prefix" | |
6254 | acl_save_exec_prefix="$exec_prefix" | |
6255 | exec_prefix="$acl_final_exec_prefix" | |
6256 | eval x=\"$x\" | |
6257 | exec_prefix="$acl_save_exec_prefix" | |
6258 | prefix="$acl_save_prefix" | |
6259 | ||
6260 | if test "X$x" = "X-L$additional_libdir"; then | |
6261 | haveit=yes | |
6262 | break | |
6263 | fi | |
6264 | done | |
6265 | if test -z "$haveit"; then | |
6266 | if test -d "$additional_libdir"; then | |
6267 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir" | |
6268 | fi | |
6269 | fi | |
6270 | haveit= | |
6271 | for x in $LDFLAGS $LTLIBEXPAT; do | |
6272 | ||
6273 | acl_save_prefix="$prefix" | |
6274 | prefix="$acl_final_prefix" | |
6275 | acl_save_exec_prefix="$exec_prefix" | |
6276 | exec_prefix="$acl_final_exec_prefix" | |
6277 | eval x=\"$x\" | |
6278 | exec_prefix="$acl_save_exec_prefix" | |
6279 | prefix="$acl_save_prefix" | |
6280 | ||
6281 | if test "X$x" = "X-L$additional_libdir"; then | |
6282 | haveit=yes | |
6283 | break | |
6284 | fi | |
6285 | done | |
6286 | if test -z "$haveit"; then | |
6287 | if test -d "$additional_libdir"; then | |
6288 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir" | |
6289 | fi | |
6290 | fi | |
6291 | fi | |
6292 | fi | |
6293 | ;; | |
6294 | -R*) | |
6295 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
6296 | if test "$enable_rpath" != no; then | |
6297 | haveit= | |
6298 | for x in $rpathdirs; do | |
6299 | if test "X$x" = "X$dir"; then | |
6300 | haveit=yes | |
6301 | break | |
6302 | fi | |
6303 | done | |
6304 | if test -z "$haveit"; then | |
6305 | rpathdirs="$rpathdirs $dir" | |
6306 | fi | |
6307 | haveit= | |
6308 | for x in $ltrpathdirs; do | |
6309 | if test "X$x" = "X$dir"; then | |
6310 | haveit=yes | |
6311 | break | |
6312 | fi | |
6313 | done | |
6314 | if test -z "$haveit"; then | |
6315 | ltrpathdirs="$ltrpathdirs $dir" | |
6316 | fi | |
6317 | fi | |
6318 | ;; | |
6319 | -l*) | |
6320 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
6321 | ;; | |
6322 | *.la) | |
6323 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
6324 | ;; | |
6325 | *) | |
6326 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" | |
6327 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" | |
6328 | ;; | |
6329 | esac | |
6330 | done | |
6331 | fi | |
6332 | else | |
6333 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
6334 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" | |
6335 | fi | |
6336 | fi | |
6337 | fi | |
6338 | done | |
6339 | done | |
6340 | if test "X$rpathdirs" != "X"; then | |
6341 | if test -n "$hardcode_libdir_separator"; then | |
6342 | alldirs= | |
6343 | for found_dir in $rpathdirs; do | |
6344 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
6345 | done | |
6346 | acl_save_libdir="$libdir" | |
6347 | libdir="$alldirs" | |
6348 | eval flag=\"$hardcode_libdir_flag_spec\" | |
6349 | libdir="$acl_save_libdir" | |
6350 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
6351 | else | |
6352 | for found_dir in $rpathdirs; do | |
6353 | acl_save_libdir="$libdir" | |
6354 | libdir="$found_dir" | |
6355 | eval flag=\"$hardcode_libdir_flag_spec\" | |
6356 | libdir="$acl_save_libdir" | |
6357 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
6358 | done | |
6359 | fi | |
6360 | fi | |
6361 | if test "X$ltrpathdirs" != "X"; then | |
6362 | for found_dir in $ltrpathdirs; do | |
6363 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" | |
6364 | done | |
6365 | fi | |
6366 | ||
6367 | ||
6368 | ac_save_CPPFLAGS="$CPPFLAGS" | |
6369 | ||
6370 | for element in $INCEXPAT; do | |
6371 | haveit= | |
6372 | for x in $CPPFLAGS; do | |
6373 | ||
6374 | acl_save_prefix="$prefix" | |
6375 | prefix="$acl_final_prefix" | |
6376 | acl_save_exec_prefix="$exec_prefix" | |
6377 | exec_prefix="$acl_final_exec_prefix" | |
6378 | eval x=\"$x\" | |
6379 | exec_prefix="$acl_save_exec_prefix" | |
6380 | prefix="$acl_save_prefix" | |
6381 | ||
6382 | if test "X$x" = "X$element"; then | |
6383 | haveit=yes | |
6384 | break | |
6385 | fi | |
6386 | done | |
6387 | if test -z "$haveit"; then | |
6388 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
6389 | fi | |
6390 | done | |
6391 | ||
6392 | ||
6393 | echo "$as_me:$LINENO: checking for libexpat" >&5 | |
6394 | echo $ECHO_N "checking for libexpat... $ECHO_C" >&6 | |
6395 | if test "${ac_cv_libexpat+set}" = set; then | |
6396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6397 | else | |
6398 | ||
6399 | ac_save_LIBS="$LIBS" | |
6400 | LIBS="$LIBS $LIBEXPAT" | |
6401 | cat >conftest.$ac_ext <<_ACEOF | |
6402 | /* confdefs.h. */ | |
6403 | _ACEOF | |
6404 | cat confdefs.h >>conftest.$ac_ext | |
6405 | cat >>conftest.$ac_ext <<_ACEOF | |
6406 | /* end confdefs.h. */ | |
6407 | #include "expat.h" | |
6408 | int | |
6409 | main () | |
6410 | { | |
6411 | XML_Parser p = XML_ParserCreate (0); | |
6412 | ; | |
6413 | return 0; | |
6414 | } | |
6415 | _ACEOF | |
6416 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6417 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6418 | (eval $ac_link) 2>conftest.er1 | |
6419 | ac_status=$? | |
6420 | grep -v '^ *+' conftest.er1 >conftest.err | |
6421 | rm -f conftest.er1 | |
6422 | cat conftest.err >&5 | |
6423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6424 | (exit $ac_status); } && | |
6425 | { ac_try='test -z "$ac_c_werror_flag" | |
6426 | || test ! -s conftest.err' | |
6427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6428 | (eval $ac_try) 2>&5 | |
6429 | ac_status=$? | |
6430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6431 | (exit $ac_status); }; } && | |
6432 | { ac_try='test -s conftest$ac_exeext' | |
6433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6434 | (eval $ac_try) 2>&5 | |
6435 | ac_status=$? | |
6436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6437 | (exit $ac_status); }; }; then | |
6438 | ac_cv_libexpat=yes | |
6439 | else | |
6440 | echo "$as_me: failed program was:" >&5 | |
6441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6442 | ||
6443 | ac_cv_libexpat=no | |
6444 | fi | |
6445 | rm -f conftest.err conftest.$ac_objext \ | |
6446 | conftest$ac_exeext conftest.$ac_ext | |
6447 | LIBS="$ac_save_LIBS" | |
6448 | ||
6449 | fi | |
6450 | echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5 | |
6451 | echo "${ECHO_T}$ac_cv_libexpat" >&6 | |
6452 | if test "$ac_cv_libexpat" = yes; then | |
6453 | HAVE_LIBEXPAT=yes | |
6454 | ||
6455 | cat >>confdefs.h <<\_ACEOF | |
6456 | #define HAVE_LIBEXPAT 1 | |
6457 | _ACEOF | |
6458 | ||
6459 | echo "$as_me:$LINENO: checking how to link with libexpat" >&5 | |
6460 | echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6 | |
6461 | echo "$as_me:$LINENO: result: $LIBEXPAT" >&5 | |
6462 | echo "${ECHO_T}$LIBEXPAT" >&6 | |
6463 | else | |
6464 | HAVE_LIBEXPAT=no | |
6465 | CPPFLAGS="$ac_save_CPPFLAGS" | |
6466 | LIBEXPAT= | |
6467 | LTLIBEXPAT= | |
6468 | fi | |
6469 | ||
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | ||
5c39566f DJ |
6475 | if test "$HAVE_LIBEXPAT" != yes; then |
6476 | if test "$with_expat" = yes; then | |
6477 | { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5 | |
6478 | echo "$as_me: error: expat is missing or unusable" >&2;} | |
6479 | { (exit 1); exit 1; }; } | |
6480 | else | |
6481 | { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5 | |
6482 | echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;} | |
6483 | fi | |
6484 | else | |
6485 | save_LIBS=$LIBS | |
6486 | LIBS="$LIBS $LIBEXPAT" | |
ca4ca11e DJ |
6487 | |
6488 | for ac_func in XML_StopParser | |
6489 | do | |
6490 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6491 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6492 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6493 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6495 | else | |
6496 | cat >conftest.$ac_ext <<_ACEOF | |
6497 | /* confdefs.h. */ | |
6498 | _ACEOF | |
6499 | cat confdefs.h >>conftest.$ac_ext | |
6500 | cat >>conftest.$ac_ext <<_ACEOF | |
6501 | /* end confdefs.h. */ | |
6502 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6503 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6504 | #define $ac_func innocuous_$ac_func | |
6505 | ||
6506 | /* System header to define __stub macros and hopefully few prototypes, | |
6507 | which can conflict with char $ac_func (); below. | |
6508 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6509 | <limits.h> exists even on freestanding compilers. */ | |
6510 | ||
6511 | #ifdef __STDC__ | |
6512 | # include <limits.h> | |
6513 | #else | |
6514 | # include <assert.h> | |
6515 | #endif | |
6516 | ||
6517 | #undef $ac_func | |
6518 | ||
6519 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6520 | #ifdef __cplusplus | |
6521 | extern "C" | |
6522 | { | |
6523 | #endif | |
6524 | /* We use char because int might match the return type of a gcc2 | |
6525 | builtin and then its argument prototype would still apply. */ | |
6526 | char $ac_func (); | |
6527 | /* The GNU C library defines this for functions which it implements | |
6528 | to always fail with ENOSYS. Some functions are actually named | |
6529 | something starting with __ and the normal name is an alias. */ | |
6530 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6531 | choke me | |
6532 | #else | |
6533 | char (*f) () = $ac_func; | |
6534 | #endif | |
6535 | #ifdef __cplusplus | |
6536 | } | |
6537 | #endif | |
6538 | ||
6539 | int | |
6540 | main () | |
6541 | { | |
6542 | return f != $ac_func; | |
6543 | ; | |
6544 | return 0; | |
6545 | } | |
6546 | _ACEOF | |
6547 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6549 | (eval $ac_link) 2>conftest.er1 | |
6550 | ac_status=$? | |
6551 | grep -v '^ *+' conftest.er1 >conftest.err | |
6552 | rm -f conftest.er1 | |
6553 | cat conftest.err >&5 | |
6554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6555 | (exit $ac_status); } && | |
6556 | { ac_try='test -z "$ac_c_werror_flag" | |
6557 | || test ! -s conftest.err' | |
6558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6559 | (eval $ac_try) 2>&5 | |
6560 | ac_status=$? | |
6561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6562 | (exit $ac_status); }; } && | |
6563 | { ac_try='test -s conftest$ac_exeext' | |
6564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6565 | (eval $ac_try) 2>&5 | |
6566 | ac_status=$? | |
6567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6568 | (exit $ac_status); }; }; then | |
6569 | eval "$as_ac_var=yes" | |
6570 | else | |
6571 | echo "$as_me: failed program was:" >&5 | |
6572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6573 | ||
6574 | eval "$as_ac_var=no" | |
6575 | fi | |
6576 | rm -f conftest.err conftest.$ac_objext \ | |
6577 | conftest$ac_exeext conftest.$ac_ext | |
6578 | fi | |
6579 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6580 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6581 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6582 | cat >>confdefs.h <<_ACEOF | |
6583 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6584 | _ACEOF | |
6585 | ||
6586 | fi | |
6587 | done | |
6588 | ||
5c39566f DJ |
6589 | LIBS=$save_LIBS |
6590 | fi | |
3841debe DJ |
6591 | fi |
6592 | ||
bec39cab AC |
6593 | # ------------------------- # |
6594 | # Checks for header files. # | |
6595 | # ------------------------- # | |
8ee53726 | 6596 | |
0e5d83e3 | 6597 | |
bec39cab AC |
6598 | |
6599 | ||
6600 | ||
6601 | ||
6602 | ac_header_dirent=no | |
6603 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
6604 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
b4e70030 JB |
6605 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
6606 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
6607 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
6608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6609 | else | |
6610 | cat >conftest.$ac_ext <<_ACEOF | |
6611 | /* confdefs.h. */ | |
6612 | _ACEOF | |
6613 | cat confdefs.h >>conftest.$ac_ext | |
6614 | cat >>conftest.$ac_ext <<_ACEOF | |
6615 | /* end confdefs.h. */ | |
6616 | #include <sys/types.h> | |
0e5d83e3 | 6617 | #include <$ac_hdr> |
bec39cab AC |
6618 | |
6619 | int | |
6620 | main () | |
6621 | { | |
6622 | if ((DIR *) 0) | |
6623 | return 0; | |
6624 | ; | |
6625 | return 0; | |
6626 | } | |
6627 | _ACEOF | |
6628 | rm -f conftest.$ac_objext | |
6629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6630 | (eval $ac_compile) 2>conftest.er1 | |
6631 | ac_status=$? | |
6632 | grep -v '^ *+' conftest.er1 >conftest.err | |
6633 | rm -f conftest.er1 | |
6634 | cat conftest.err >&5 | |
6635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6636 | (exit $ac_status); } && | |
b4e70030 JB |
6637 | { ac_try='test -z "$ac_c_werror_flag" |
6638 | || test ! -s conftest.err' | |
bec39cab AC |
6639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6640 | (eval $ac_try) 2>&5 | |
6641 | ac_status=$? | |
6642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6643 | (exit $ac_status); }; } && | |
6644 | { ac_try='test -s conftest.$ac_objext' | |
6645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6646 | (eval $ac_try) 2>&5 | |
6647 | ac_status=$? | |
6648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6649 | (exit $ac_status); }; }; then | |
6650 | eval "$as_ac_Header=yes" | |
6651 | else | |
6652 | echo "$as_me: failed program was:" >&5 | |
6653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6654 | ||
b4e70030 | 6655 | eval "$as_ac_Header=no" |
bec39cab AC |
6656 | fi |
6657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6658 | fi | |
b4e70030 JB |
6659 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6660 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
6661 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6662 | cat >>confdefs.h <<_ACEOF | |
6663 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
6664 | _ACEOF | |
6665 | ||
6666 | ac_header_dirent=$ac_hdr; break | |
0e5d83e3 | 6667 | fi |
0e5d83e3 | 6668 | |
bec39cab AC |
6669 | done |
6670 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
6671 | if test $ac_header_dirent = dirent.h; then | |
b4e70030 JB |
6672 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
6673 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
6674 | if test "${ac_cv_search_opendir+set}" = set; then |
6675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6676 | else | |
6677 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 6678 | ac_cv_search_opendir=no |
bec39cab AC |
6679 | cat >conftest.$ac_ext <<_ACEOF |
6680 | /* confdefs.h. */ | |
6681 | _ACEOF | |
6682 | cat confdefs.h >>conftest.$ac_ext | |
6683 | cat >>conftest.$ac_ext <<_ACEOF | |
6684 | /* end confdefs.h. */ | |
0e5d83e3 | 6685 | |
b4e70030 | 6686 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
6687 | #ifdef __cplusplus |
6688 | extern "C" | |
6689 | #endif | |
b4e70030 JB |
6690 | /* We use char because int might match the return type of a gcc2 |
6691 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
6692 | char opendir (); |
6693 | int | |
6694 | main () | |
6695 | { | |
b4e70030 | 6696 | opendir (); |
bec39cab AC |
6697 | ; |
6698 | return 0; | |
6699 | } | |
6700 | _ACEOF | |
b4e70030 | 6701 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
6702 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6703 | (eval $ac_link) 2>conftest.er1 | |
6704 | ac_status=$? | |
6705 | grep -v '^ *+' conftest.er1 >conftest.err | |
6706 | rm -f conftest.er1 | |
6707 | cat conftest.err >&5 | |
6708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6709 | (exit $ac_status); } && | |
b4e70030 JB |
6710 | { ac_try='test -z "$ac_c_werror_flag" |
6711 | || test ! -s conftest.err' | |
bec39cab AC |
6712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6713 | (eval $ac_try) 2>&5 | |
6714 | ac_status=$? | |
6715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6716 | (exit $ac_status); }; } && | |
6717 | { ac_try='test -s conftest$ac_exeext' | |
6718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6719 | (eval $ac_try) 2>&5 | |
6720 | ac_status=$? | |
6721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6722 | (exit $ac_status); }; }; then | |
b4e70030 | 6723 | ac_cv_search_opendir="none required" |
bec39cab AC |
6724 | else |
6725 | echo "$as_me: failed program was:" >&5 | |
6726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6727 | ||
6728 | fi | |
bec39cab | 6729 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
6730 | conftest$ac_exeext conftest.$ac_ext |
6731 | if test "$ac_cv_search_opendir" = no; then | |
6732 | for ac_lib in dir; do | |
6733 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6734 | cat >conftest.$ac_ext <<_ACEOF | |
6735 | /* confdefs.h. */ | |
6736 | _ACEOF | |
6737 | cat confdefs.h >>conftest.$ac_ext | |
6738 | cat >>conftest.$ac_ext <<_ACEOF | |
6739 | /* end confdefs.h. */ | |
6740 | ||
6741 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6742 | #ifdef __cplusplus | |
6743 | extern "C" | |
6744 | #endif | |
6745 | /* We use char because int might match the return type of a gcc2 | |
6746 | builtin and then its argument prototype would still apply. */ | |
6747 | char opendir (); | |
6748 | int | |
6749 | main () | |
6750 | { | |
6751 | opendir (); | |
6752 | ; | |
6753 | return 0; | |
6754 | } | |
6755 | _ACEOF | |
6756 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6757 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6758 | (eval $ac_link) 2>conftest.er1 | |
6759 | ac_status=$? | |
6760 | grep -v '^ *+' conftest.er1 >conftest.err | |
6761 | rm -f conftest.er1 | |
6762 | cat conftest.err >&5 | |
6763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6764 | (exit $ac_status); } && | |
6765 | { ac_try='test -z "$ac_c_werror_flag" | |
6766 | || test ! -s conftest.err' | |
6767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6768 | (eval $ac_try) 2>&5 | |
6769 | ac_status=$? | |
6770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6771 | (exit $ac_status); }; } && | |
6772 | { ac_try='test -s conftest$ac_exeext' | |
6773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6774 | (eval $ac_try) 2>&5 | |
6775 | ac_status=$? | |
6776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6777 | (exit $ac_status); }; }; then | |
6778 | ac_cv_search_opendir="-l$ac_lib" | |
6779 | break | |
4e8d927d | 6780 | else |
b4e70030 JB |
6781 | echo "$as_me: failed program was:" >&5 |
6782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6783 | ||
6784 | fi | |
6785 | rm -f conftest.err conftest.$ac_objext \ | |
6786 | conftest$ac_exeext conftest.$ac_ext | |
6787 | done | |
0e5d83e3 | 6788 | fi |
bec39cab | 6789 | LIBS=$ac_func_search_save_LIBS |
0e5d83e3 | 6790 | fi |
b4e70030 JB |
6791 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
6792 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
6793 | if test "$ac_cv_search_opendir" != no; then | |
6794 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
0e5d83e3 | 6795 | |
0e5d83e3 JJ |
6796 | fi |
6797 | ||
d28f9cdf | 6798 | else |
b4e70030 JB |
6799 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
6800 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
6801 | if test "${ac_cv_search_opendir+set}" = set; then |
6802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6803 | else | |
6804 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 6805 | ac_cv_search_opendir=no |
bec39cab AC |
6806 | cat >conftest.$ac_ext <<_ACEOF |
6807 | /* confdefs.h. */ | |
6808 | _ACEOF | |
6809 | cat confdefs.h >>conftest.$ac_ext | |
6810 | cat >>conftest.$ac_ext <<_ACEOF | |
6811 | /* end confdefs.h. */ | |
d28f9cdf | 6812 | |
b4e70030 | 6813 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
6814 | #ifdef __cplusplus |
6815 | extern "C" | |
d28f9cdf | 6816 | #endif |
b4e70030 JB |
6817 | /* We use char because int might match the return type of a gcc2 |
6818 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
6819 | char opendir (); |
6820 | int | |
6821 | main () | |
6822 | { | |
b4e70030 | 6823 | opendir (); |
bec39cab AC |
6824 | ; |
6825 | return 0; | |
6826 | } | |
6827 | _ACEOF | |
b4e70030 | 6828 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
6829 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6830 | (eval $ac_link) 2>conftest.er1 | |
6831 | ac_status=$? | |
6832 | grep -v '^ *+' conftest.er1 >conftest.err | |
6833 | rm -f conftest.er1 | |
6834 | cat conftest.err >&5 | |
6835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6836 | (exit $ac_status); } && | |
b4e70030 JB |
6837 | { ac_try='test -z "$ac_c_werror_flag" |
6838 | || test ! -s conftest.err' | |
bec39cab AC |
6839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6840 | (eval $ac_try) 2>&5 | |
6841 | ac_status=$? | |
6842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6843 | (exit $ac_status); }; } && | |
6844 | { ac_try='test -s conftest$ac_exeext' | |
6845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6846 | (eval $ac_try) 2>&5 | |
6847 | ac_status=$? | |
6848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6849 | (exit $ac_status); }; }; then | |
b4e70030 | 6850 | ac_cv_search_opendir="none required" |
d28f9cdf | 6851 | else |
bec39cab AC |
6852 | echo "$as_me: failed program was:" >&5 |
6853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6854 | ||
d28f9cdf | 6855 | fi |
bec39cab | 6856 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
6857 | conftest$ac_exeext conftest.$ac_ext |
6858 | if test "$ac_cv_search_opendir" = no; then | |
6859 | for ac_lib in x; do | |
6860 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6861 | cat >conftest.$ac_ext <<_ACEOF | |
6862 | /* confdefs.h. */ | |
6863 | _ACEOF | |
6864 | cat confdefs.h >>conftest.$ac_ext | |
6865 | cat >>conftest.$ac_ext <<_ACEOF | |
6866 | /* end confdefs.h. */ | |
6867 | ||
6868 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6869 | #ifdef __cplusplus | |
6870 | extern "C" | |
6871 | #endif | |
6872 | /* We use char because int might match the return type of a gcc2 | |
6873 | builtin and then its argument prototype would still apply. */ | |
6874 | char opendir (); | |
6875 | int | |
6876 | main () | |
6877 | { | |
6878 | opendir (); | |
6879 | ; | |
6880 | return 0; | |
6881 | } | |
6882 | _ACEOF | |
6883 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6884 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6885 | (eval $ac_link) 2>conftest.er1 | |
6886 | ac_status=$? | |
6887 | grep -v '^ *+' conftest.er1 >conftest.err | |
6888 | rm -f conftest.er1 | |
6889 | cat conftest.err >&5 | |
6890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6891 | (exit $ac_status); } && | |
6892 | { ac_try='test -z "$ac_c_werror_flag" | |
6893 | || test ! -s conftest.err' | |
6894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6895 | (eval $ac_try) 2>&5 | |
6896 | ac_status=$? | |
6897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6898 | (exit $ac_status); }; } && | |
6899 | { ac_try='test -s conftest$ac_exeext' | |
6900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6901 | (eval $ac_try) 2>&5 | |
6902 | ac_status=$? | |
6903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6904 | (exit $ac_status); }; }; then | |
6905 | ac_cv_search_opendir="-l$ac_lib" | |
6906 | break | |
4e8d927d | 6907 | else |
b4e70030 JB |
6908 | echo "$as_me: failed program was:" >&5 |
6909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6910 | ||
6911 | fi | |
6912 | rm -f conftest.err conftest.$ac_objext \ | |
6913 | conftest$ac_exeext conftest.$ac_ext | |
6914 | done | |
bec39cab AC |
6915 | fi |
6916 | LIBS=$ac_func_search_save_LIBS | |
d28f9cdf | 6917 | fi |
b4e70030 JB |
6918 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
6919 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
6920 | if test "$ac_cv_search_opendir" != no; then | |
6921 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
d28f9cdf | 6922 | |
d28f9cdf DJ |
6923 | fi |
6924 | ||
bec39cab | 6925 | fi |
b0b1c2c0 | 6926 | |
b4e70030 JB |
6927 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
6928 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 | |
bec39cab AC |
6929 | if test "${ac_cv_header_stat_broken+set}" = set; then |
6930 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b0b1c2c0 | 6931 | else |
bec39cab AC |
6932 | cat >conftest.$ac_ext <<_ACEOF |
6933 | /* confdefs.h. */ | |
6934 | _ACEOF | |
6935 | cat confdefs.h >>conftest.$ac_ext | |
6936 | cat >>conftest.$ac_ext <<_ACEOF | |
6937 | /* end confdefs.h. */ | |
6938 | #include <sys/types.h> | |
6939 | #include <sys/stat.h> | |
b0b1c2c0 | 6940 | |
b4e70030 | 6941 | #if defined(S_ISBLK) && defined(S_IFDIR) |
bec39cab AC |
6942 | # if S_ISBLK (S_IFDIR) |
6943 | You lose. | |
6944 | # endif | |
6945 | #endif | |
b0b1c2c0 | 6946 | |
b4e70030 | 6947 | #if defined(S_ISBLK) && defined(S_IFCHR) |
bec39cab AC |
6948 | # if S_ISBLK (S_IFCHR) |
6949 | You lose. | |
6950 | # endif | |
6951 | #endif | |
d28f9cdf | 6952 | |
b4e70030 | 6953 | #if defined(S_ISLNK) && defined(S_IFREG) |
bec39cab AC |
6954 | # if S_ISLNK (S_IFREG) |
6955 | You lose. | |
6956 | # endif | |
6957 | #endif | |
d28f9cdf | 6958 | |
b4e70030 | 6959 | #if defined(S_ISSOCK) && defined(S_IFREG) |
bec39cab AC |
6960 | # if S_ISSOCK (S_IFREG) |
6961 | You lose. | |
6962 | # endif | |
6963 | #endif | |
6964 | ||
6965 | _ACEOF | |
6966 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6967 | $EGREP "You lose" >/dev/null 2>&1; then | |
6968 | ac_cv_header_stat_broken=yes | |
d28f9cdf | 6969 | else |
bec39cab | 6970 | ac_cv_header_stat_broken=no |
d28f9cdf DJ |
6971 | fi |
6972 | rm -f conftest* | |
d28f9cdf | 6973 | |
d28f9cdf | 6974 | fi |
b4e70030 JB |
6975 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
6976 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 | |
bec39cab | 6977 | if test $ac_cv_header_stat_broken = yes; then |
d28f9cdf | 6978 | |
bec39cab AC |
6979 | cat >>confdefs.h <<\_ACEOF |
6980 | #define STAT_MACROS_BROKEN 1 | |
6981 | _ACEOF | |
8bb2c122 | 6982 | |
7a292a7a | 6983 | fi |
bec39cab | 6984 | |
b4e70030 JB |
6985 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6986 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
bec39cab AC |
6987 | if test "${ac_cv_header_stdc+set}" = set; then |
6988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7a292a7a | 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 | #include <stdlib.h> | |
6997 | #include <stdarg.h> | |
6998 | #include <string.h> | |
6999 | #include <float.h> | |
7a292a7a | 7000 | |
bec39cab AC |
7001 | int |
7002 | main () | |
7003 | { | |
7a292a7a | 7004 | |
bec39cab AC |
7005 | ; |
7006 | return 0; | |
7007 | } | |
7008 | _ACEOF | |
7009 | rm -f conftest.$ac_objext | |
7010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7011 | (eval $ac_compile) 2>conftest.er1 | |
7012 | ac_status=$? | |
7013 | grep -v '^ *+' conftest.er1 >conftest.err | |
7014 | rm -f conftest.er1 | |
7015 | cat conftest.err >&5 | |
7016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7017 | (exit $ac_status); } && | |
b4e70030 JB |
7018 | { ac_try='test -z "$ac_c_werror_flag" |
7019 | || test ! -s conftest.err' | |
bec39cab AC |
7020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7021 | (eval $ac_try) 2>&5 | |
7022 | ac_status=$? | |
7023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7024 | (exit $ac_status); }; } && | |
7025 | { ac_try='test -s conftest.$ac_objext' | |
7026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7027 | (eval $ac_try) 2>&5 | |
7028 | ac_status=$? | |
7029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7030 | (exit $ac_status); }; }; then | |
7031 | ac_cv_header_stdc=yes | |
c906108c | 7032 | else |
bec39cab AC |
7033 | echo "$as_me: failed program was:" >&5 |
7034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 7035 | |
b4e70030 | 7036 | ac_cv_header_stdc=no |
c906108c | 7037 | fi |
bec39cab | 7038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 7039 | |
bec39cab AC |
7040 | if test $ac_cv_header_stdc = yes; then |
7041 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7042 | cat >conftest.$ac_ext <<_ACEOF | |
7043 | /* confdefs.h. */ | |
7044 | _ACEOF | |
7045 | cat confdefs.h >>conftest.$ac_ext | |
7046 | cat >>conftest.$ac_ext <<_ACEOF | |
7047 | /* end confdefs.h. */ | |
7048 | #include <string.h> | |
c906108c | 7049 | |
bec39cab AC |
7050 | _ACEOF |
7051 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7052 | $EGREP "memchr" >/dev/null 2>&1; then | |
7053 | : | |
8bb2c122 | 7054 | else |
bec39cab | 7055 | ac_cv_header_stdc=no |
8bb2c122 | 7056 | fi |
bec39cab AC |
7057 | rm -f conftest* |
7058 | ||
c906108c SS |
7059 | fi |
7060 | ||
bec39cab AC |
7061 | if test $ac_cv_header_stdc = yes; then |
7062 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7063 | cat >conftest.$ac_ext <<_ACEOF | |
7064 | /* confdefs.h. */ | |
7065 | _ACEOF | |
7066 | cat confdefs.h >>conftest.$ac_ext | |
7067 | cat >>conftest.$ac_ext <<_ACEOF | |
7068 | /* end confdefs.h. */ | |
7069 | #include <stdlib.h> | |
7070 | ||
7071 | _ACEOF | |
7072 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7073 | $EGREP "free" >/dev/null 2>&1; then | |
7074 | : | |
c906108c | 7075 | else |
bec39cab | 7076 | ac_cv_header_stdc=no |
c906108c | 7077 | fi |
bec39cab AC |
7078 | rm -f conftest* |
7079 | ||
c906108c SS |
7080 | fi |
7081 | ||
bec39cab AC |
7082 | if test $ac_cv_header_stdc = yes; then |
7083 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7084 | if test "$cross_compiling" = yes; then | |
7085 | : | |
c906108c | 7086 | else |
bec39cab AC |
7087 | cat >conftest.$ac_ext <<_ACEOF |
7088 | /* confdefs.h. */ | |
7089 | _ACEOF | |
7090 | cat confdefs.h >>conftest.$ac_ext | |
7091 | cat >>conftest.$ac_ext <<_ACEOF | |
7092 | /* end confdefs.h. */ | |
7093 | #include <ctype.h> | |
7094 | #if ((' ' & 0x0FF) == 0x020) | |
7095 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7096 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7097 | #else | |
7098 | # define ISLOWER(c) \ | |
7099 | (('a' <= (c) && (c) <= 'i') \ | |
7100 | || ('j' <= (c) && (c) <= 'r') \ | |
7101 | || ('s' <= (c) && (c) <= 'z')) | |
7102 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7103 | #endif | |
7104 | ||
7105 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7106 | int | |
7107 | main () | |
7108 | { | |
7109 | int i; | |
7110 | for (i = 0; i < 256; i++) | |
7111 | if (XOR (islower (i), ISLOWER (i)) | |
7112 | || toupper (i) != TOUPPER (i)) | |
b4e70030 JB |
7113 | exit(2); |
7114 | exit (0); | |
bec39cab AC |
7115 | } |
7116 | _ACEOF | |
7117 | rm -f conftest$ac_exeext | |
7118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7119 | (eval $ac_link) 2>&5 | |
7120 | ac_status=$? | |
7121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7122 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7124 | (eval $ac_try) 2>&5 | |
7125 | ac_status=$? | |
7126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7127 | (exit $ac_status); }; }; then | |
7128 | : | |
7129 | else | |
7130 | echo "$as_me: program exited with status $ac_status" >&5 | |
7131 | echo "$as_me: failed program was:" >&5 | |
7132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7133 | ||
7134 | ( exit $ac_status ) | |
7135 | ac_cv_header_stdc=no | |
c906108c | 7136 | fi |
b4e70030 | 7137 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 7138 | fi |
c906108c | 7139 | fi |
bec39cab | 7140 | fi |
b4e70030 JB |
7141 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
7142 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
bec39cab | 7143 | if test $ac_cv_header_stdc = yes; then |
c906108c | 7144 | |
bec39cab AC |
7145 | cat >>confdefs.h <<\_ACEOF |
7146 | #define STDC_HEADERS 1 | |
7147 | _ACEOF | |
c906108c | 7148 | |
bec39cab | 7149 | fi |
8bb2c122 | 7150 | |
bec39cab | 7151 | |
7cb9022a | 7152 | for ac_header in nlist.h |
bec39cab AC |
7153 | do |
7154 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7155 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7156 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7157 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7158 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7159 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7160 | fi | |
b4e70030 JB |
7161 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7162 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7163 | else |
7164 | # Is the header compilable? | |
b4e70030 JB |
7165 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7166 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7167 | cat >conftest.$ac_ext <<_ACEOF |
7168 | /* confdefs.h. */ | |
7169 | _ACEOF | |
7170 | cat confdefs.h >>conftest.$ac_ext | |
7171 | cat >>conftest.$ac_ext <<_ACEOF | |
7172 | /* end confdefs.h. */ | |
7173 | $ac_includes_default | |
7174 | #include <$ac_header> | |
7175 | _ACEOF | |
7176 | rm -f conftest.$ac_objext | |
7177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7178 | (eval $ac_compile) 2>conftest.er1 | |
7179 | ac_status=$? | |
7180 | grep -v '^ *+' conftest.er1 >conftest.err | |
7181 | rm -f conftest.er1 | |
7182 | cat conftest.err >&5 | |
7183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7184 | (exit $ac_status); } && | |
b4e70030 JB |
7185 | { ac_try='test -z "$ac_c_werror_flag" |
7186 | || test ! -s conftest.err' | |
bec39cab AC |
7187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7188 | (eval $ac_try) 2>&5 | |
7189 | ac_status=$? | |
7190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7191 | (exit $ac_status); }; } && | |
7192 | { ac_try='test -s conftest.$ac_objext' | |
7193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7194 | (eval $ac_try) 2>&5 | |
7195 | ac_status=$? | |
7196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7197 | (exit $ac_status); }; }; then | |
7198 | ac_header_compiler=yes | |
7199 | else | |
7200 | echo "$as_me: failed program was:" >&5 | |
7201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7202 | ||
b4e70030 | 7203 | ac_header_compiler=no |
bec39cab AC |
7204 | fi |
7205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7206 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7207 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7208 | |
7209 | # Is the header present? | |
b4e70030 JB |
7210 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7211 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7212 | cat >conftest.$ac_ext <<_ACEOF |
7213 | /* confdefs.h. */ | |
7214 | _ACEOF | |
7215 | cat confdefs.h >>conftest.$ac_ext | |
7216 | cat >>conftest.$ac_ext <<_ACEOF | |
7217 | /* end confdefs.h. */ | |
7218 | #include <$ac_header> | |
7219 | _ACEOF | |
7220 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7221 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7222 | ac_status=$? | |
7223 | grep -v '^ *+' conftest.er1 >conftest.err | |
7224 | rm -f conftest.er1 | |
7225 | cat conftest.err >&5 | |
7226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7227 | (exit $ac_status); } >/dev/null; then | |
7228 | if test -s conftest.err; then | |
7229 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7230 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7231 | else | |
7232 | ac_cpp_err= | |
7233 | fi | |
c906108c | 7234 | else |
bec39cab | 7235 | ac_cpp_err=yes |
c906108c | 7236 | fi |
bec39cab AC |
7237 | if test -z "$ac_cpp_err"; then |
7238 | ac_header_preproc=yes | |
c906108c | 7239 | else |
bec39cab AC |
7240 | echo "$as_me: failed program was:" >&5 |
7241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 7242 | |
bec39cab AC |
7243 | ac_header_preproc=no |
7244 | fi | |
7245 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
7246 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7247 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 7248 | |
bec39cab AC |
7249 | # So? What about this header? |
7250 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7251 | yes:no: ) | |
7252 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7253 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7254 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7255 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7256 | ac_header_preproc=yes | |
7257 | ;; | |
7258 | no:yes:* ) | |
7259 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7260 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7261 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7262 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7263 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7264 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7265 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7266 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7267 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7268 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7269 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7270 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7271 | ( |
7272 | cat <<\_ASBOX | |
7273 | ## ------------------------------------------ ## | |
7274 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7275 | ## ------------------------------------------ ## | |
7276 | _ASBOX | |
7277 | ) | | |
7278 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7279 | ;; |
7280 | esac | |
b4e70030 JB |
7281 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7282 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7283 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
95ca63c4 | 7285 | else |
bec39cab | 7286 | eval "$as_ac_Header=\$ac_header_preproc" |
95ca63c4 | 7287 | fi |
b4e70030 JB |
7288 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7289 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7290 | |
95ca63c4 | 7291 | fi |
bec39cab AC |
7292 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7293 | cat >>confdefs.h <<_ACEOF | |
7294 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7295 | _ACEOF | |
7296 | ||
95ca63c4 CF |
7297 | fi |
7298 | ||
bec39cab | 7299 | done |
95ca63c4 CF |
7300 | |
7301 | ||
7cb9022a | 7302 | for ac_header in link.h |
bec39cab AC |
7303 | do |
7304 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7305 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7306 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7307 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 7309 | else |
7cb9022a | 7310 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
7311 | /* confdefs.h. */ |
7312 | _ACEOF | |
7313 | cat confdefs.h >>conftest.$ac_ext | |
7314 | cat >>conftest.$ac_ext <<_ACEOF | |
7315 | /* end confdefs.h. */ | |
7cb9022a MK |
7316 | #if HAVE_SYS_TYPES_H |
7317 | # include <sys/types.h> | |
7318 | #endif | |
7319 | #if HAVE_NLIST_H | |
7320 | # include <nlist.h> | |
7321 | #endif | |
7322 | ||
7323 | ||
bec39cab AC |
7324 | #include <$ac_header> |
7325 | _ACEOF | |
7326 | rm -f conftest.$ac_objext | |
7327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7328 | (eval $ac_compile) 2>conftest.er1 | |
7329 | ac_status=$? | |
7330 | grep -v '^ *+' conftest.er1 >conftest.err | |
7331 | rm -f conftest.er1 | |
7332 | cat conftest.err >&5 | |
7333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7334 | (exit $ac_status); } && | |
b4e70030 JB |
7335 | { ac_try='test -z "$ac_c_werror_flag" |
7336 | || test ! -s conftest.err' | |
bec39cab AC |
7337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7338 | (eval $ac_try) 2>&5 | |
7339 | ac_status=$? | |
7340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7341 | (exit $ac_status); }; } && | |
7342 | { ac_try='test -s conftest.$ac_objext' | |
7343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7344 | (eval $ac_try) 2>&5 | |
7345 | ac_status=$? | |
7346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7347 | (exit $ac_status); }; }; then | |
7cb9022a | 7348 | eval "$as_ac_Header=yes" |
bec39cab AC |
7349 | else |
7350 | echo "$as_me: failed program was:" >&5 | |
7351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7352 | ||
b4e70030 | 7353 | eval "$as_ac_Header=no" |
bec39cab AC |
7354 | fi |
7355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab | 7356 | fi |
b4e70030 JB |
7357 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7358 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7359 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7360 | cat >>confdefs.h <<_ACEOF | |
7361 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7362 | _ACEOF | |
95ca63c4 | 7363 | |
bec39cab | 7364 | fi |
95ca63c4 | 7365 | |
bec39cab | 7366 | done |
95ca63c4 | 7367 | |
c906108c | 7368 | |
7cb9022a | 7369 | for ac_header in machine/reg.h |
bec39cab AC |
7370 | do |
7371 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7372 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7373 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7374 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7375 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7377 | fi | |
b4e70030 JB |
7378 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7379 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7380 | else |
7381 | # Is the header compilable? | |
b4e70030 JB |
7382 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7383 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7384 | cat >conftest.$ac_ext <<_ACEOF |
7385 | /* confdefs.h. */ | |
7386 | _ACEOF | |
7387 | cat confdefs.h >>conftest.$ac_ext | |
7388 | cat >>conftest.$ac_ext <<_ACEOF | |
7389 | /* end confdefs.h. */ | |
7390 | $ac_includes_default | |
7391 | #include <$ac_header> | |
7392 | _ACEOF | |
7393 | rm -f conftest.$ac_objext | |
7394 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7395 | (eval $ac_compile) 2>conftest.er1 | |
7396 | ac_status=$? | |
7397 | grep -v '^ *+' conftest.er1 >conftest.err | |
7398 | rm -f conftest.er1 | |
7399 | cat conftest.err >&5 | |
7400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7401 | (exit $ac_status); } && | |
b4e70030 JB |
7402 | { ac_try='test -z "$ac_c_werror_flag" |
7403 | || test ! -s conftest.err' | |
bec39cab AC |
7404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7405 | (eval $ac_try) 2>&5 | |
7406 | ac_status=$? | |
7407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7408 | (exit $ac_status); }; } && | |
7409 | { ac_try='test -s conftest.$ac_objext' | |
7410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7411 | (eval $ac_try) 2>&5 | |
7412 | ac_status=$? | |
7413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7414 | (exit $ac_status); }; }; then | |
7415 | ac_header_compiler=yes | |
7416 | else | |
7417 | echo "$as_me: failed program was:" >&5 | |
7418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7419 | ||
b4e70030 | 7420 | ac_header_compiler=no |
bec39cab AC |
7421 | fi |
7422 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7423 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7424 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7425 | |
7426 | # Is the header present? | |
b4e70030 JB |
7427 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7428 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7429 | cat >conftest.$ac_ext <<_ACEOF |
7430 | /* confdefs.h. */ | |
7431 | _ACEOF | |
7432 | cat confdefs.h >>conftest.$ac_ext | |
7433 | cat >>conftest.$ac_ext <<_ACEOF | |
7434 | /* end confdefs.h. */ | |
7435 | #include <$ac_header> | |
7436 | _ACEOF | |
7437 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7438 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7439 | ac_status=$? | |
7440 | grep -v '^ *+' conftest.er1 >conftest.err | |
7441 | rm -f conftest.er1 | |
7442 | cat conftest.err >&5 | |
7443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7444 | (exit $ac_status); } >/dev/null; then | |
7445 | if test -s conftest.err; then | |
7446 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7447 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7448 | else | |
7449 | ac_cpp_err= | |
7450 | fi | |
75c6e08a | 7451 | else |
bec39cab | 7452 | ac_cpp_err=yes |
75c6e08a | 7453 | fi |
bec39cab AC |
7454 | if test -z "$ac_cpp_err"; then |
7455 | ac_header_preproc=yes | |
7456 | else | |
7457 | echo "$as_me: failed program was:" >&5 | |
7458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7459 | ||
7460 | ac_header_preproc=no | |
75c6e08a | 7461 | fi |
bec39cab | 7462 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7463 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7464 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7465 | |
7466 | # So? What about this header? | |
7467 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7468 | yes:no: ) | |
7469 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7470 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7471 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7472 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7473 | ac_header_preproc=yes | |
7474 | ;; | |
7475 | no:yes:* ) | |
7476 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7477 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7478 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7479 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7480 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7481 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7482 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7483 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7485 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7486 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7487 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7488 | ( |
7489 | cat <<\_ASBOX | |
7490 | ## ------------------------------------------ ## | |
7491 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7492 | ## ------------------------------------------ ## | |
7493 | _ASBOX | |
7494 | ) | | |
7495 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7496 | ;; |
7497 | esac | |
b4e70030 JB |
7498 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7499 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7500 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
75c6e08a | 7502 | else |
bec39cab AC |
7503 | eval "$as_ac_Header=\$ac_header_preproc" |
7504 | fi | |
b4e70030 JB |
7505 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7506 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7507 | |
75c6e08a | 7508 | fi |
bec39cab AC |
7509 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7510 | cat >>confdefs.h <<_ACEOF | |
7511 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7512 | _ACEOF | |
75c6e08a | 7513 | |
bec39cab | 7514 | fi |
75c6e08a | 7515 | |
bec39cab | 7516 | done |
75c6e08a MK |
7517 | |
7518 | ||
9a156167 | 7519 | |
bec39cab AC |
7520 | for ac_header in poll.h sys/poll.h |
7521 | do | |
7522 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7523 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7524 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7525 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7526 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7528 | fi | |
b4e70030 JB |
7529 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7530 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7531 | else |
7532 | # Is the header compilable? | |
b4e70030 JB |
7533 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7534 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7535 | cat >conftest.$ac_ext <<_ACEOF |
7536 | /* confdefs.h. */ | |
7537 | _ACEOF | |
7538 | cat confdefs.h >>conftest.$ac_ext | |
7539 | cat >>conftest.$ac_ext <<_ACEOF | |
7540 | /* end confdefs.h. */ | |
7541 | $ac_includes_default | |
7542 | #include <$ac_header> | |
7543 | _ACEOF | |
7544 | rm -f conftest.$ac_objext | |
7545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7546 | (eval $ac_compile) 2>conftest.er1 | |
7547 | ac_status=$? | |
7548 | grep -v '^ *+' conftest.er1 >conftest.err | |
7549 | rm -f conftest.er1 | |
7550 | cat conftest.err >&5 | |
7551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7552 | (exit $ac_status); } && | |
b4e70030 JB |
7553 | { ac_try='test -z "$ac_c_werror_flag" |
7554 | || test ! -s conftest.err' | |
bec39cab AC |
7555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7556 | (eval $ac_try) 2>&5 | |
7557 | ac_status=$? | |
7558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7559 | (exit $ac_status); }; } && | |
7560 | { ac_try='test -s conftest.$ac_objext' | |
7561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7562 | (eval $ac_try) 2>&5 | |
7563 | ac_status=$? | |
7564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7565 | (exit $ac_status); }; }; then | |
7566 | ac_header_compiler=yes | |
7567 | else | |
7568 | echo "$as_me: failed program was:" >&5 | |
7569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7570 | ||
b4e70030 | 7571 | ac_header_compiler=no |
bec39cab AC |
7572 | fi |
7573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7574 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7575 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7576 | |
7577 | # Is the header present? | |
b4e70030 JB |
7578 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7579 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7580 | cat >conftest.$ac_ext <<_ACEOF |
7581 | /* confdefs.h. */ | |
7582 | _ACEOF | |
7583 | cat confdefs.h >>conftest.$ac_ext | |
7584 | cat >>conftest.$ac_ext <<_ACEOF | |
7585 | /* end confdefs.h. */ | |
7586 | #include <$ac_header> | |
7587 | _ACEOF | |
7588 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7589 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7590 | ac_status=$? | |
7591 | grep -v '^ *+' conftest.er1 >conftest.err | |
7592 | rm -f conftest.er1 | |
7593 | cat conftest.err >&5 | |
7594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7595 | (exit $ac_status); } >/dev/null; then | |
7596 | if test -s conftest.err; then | |
7597 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7598 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7599 | else | |
7600 | ac_cpp_err= | |
7601 | fi | |
9a156167 | 7602 | else |
bec39cab | 7603 | ac_cpp_err=yes |
9a156167 | 7604 | fi |
bec39cab AC |
7605 | if test -z "$ac_cpp_err"; then |
7606 | ac_header_preproc=yes | |
7607 | else | |
7608 | echo "$as_me: failed program was:" >&5 | |
7609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 7610 | |
bec39cab | 7611 | ac_header_preproc=no |
9a156167 | 7612 | fi |
bec39cab | 7613 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7614 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7615 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 7616 | |
bec39cab AC |
7617 | # So? What about this header? |
7618 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7619 | yes:no: ) | |
7620 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7621 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7622 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7623 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7624 | ac_header_preproc=yes | |
7625 | ;; | |
7626 | no:yes:* ) | |
7627 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7628 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7629 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7630 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7631 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7632 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7633 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7634 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7635 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7636 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7637 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7638 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7639 | ( |
7640 | cat <<\_ASBOX | |
7641 | ## ------------------------------------------ ## | |
7642 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7643 | ## ------------------------------------------ ## | |
7644 | _ASBOX | |
7645 | ) | | |
7646 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7647 | ;; |
7648 | esac | |
b4e70030 JB |
7649 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7650 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7651 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7652 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 7653 | else |
bec39cab | 7654 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 7655 | fi |
b4e70030 JB |
7656 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7657 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 | 7658 | |
bec39cab AC |
7659 | fi |
7660 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7661 | cat >>confdefs.h <<_ACEOF | |
7662 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7663 | _ACEOF | |
9a156167 | 7664 | |
bec39cab | 7665 | fi |
9a156167 | 7666 | |
bec39cab | 7667 | done |
9a156167 | 7668 | |
9a156167 | 7669 | |
9a156167 | 7670 | |
bec39cab AC |
7671 | |
7672 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h | |
7673 | do | |
7674 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7675 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7676 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7677 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7678 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7680 | fi | |
b4e70030 JB |
7681 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7682 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7683 | else |
7684 | # Is the header compilable? | |
b4e70030 JB |
7685 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7686 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7687 | cat >conftest.$ac_ext <<_ACEOF |
7688 | /* confdefs.h. */ | |
7689 | _ACEOF | |
7690 | cat confdefs.h >>conftest.$ac_ext | |
7691 | cat >>conftest.$ac_ext <<_ACEOF | |
436868fb DP |
7692 | /* end confdefs.h. */ |
7693 | $ac_includes_default | |
7694 | #include <$ac_header> | |
7695 | _ACEOF | |
7696 | rm -f conftest.$ac_objext | |
7697 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7698 | (eval $ac_compile) 2>conftest.er1 | |
7699 | ac_status=$? | |
7700 | grep -v '^ *+' conftest.er1 >conftest.err | |
7701 | rm -f conftest.er1 | |
7702 | cat conftest.err >&5 | |
7703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7704 | (exit $ac_status); } && | |
7705 | { ac_try='test -z "$ac_c_werror_flag" | |
7706 | || test ! -s conftest.err' | |
7707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7708 | (eval $ac_try) 2>&5 | |
7709 | ac_status=$? | |
7710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7711 | (exit $ac_status); }; } && | |
7712 | { ac_try='test -s conftest.$ac_objext' | |
7713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7714 | (eval $ac_try) 2>&5 | |
7715 | ac_status=$? | |
7716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7717 | (exit $ac_status); }; }; then | |
7718 | ac_header_compiler=yes | |
7719 | else | |
7720 | echo "$as_me: failed program was:" >&5 | |
7721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7722 | ||
7723 | ac_header_compiler=no | |
7724 | fi | |
7725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7726 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7727 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7728 | ||
7729 | # Is the header present? | |
7730 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7731 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7732 | cat >conftest.$ac_ext <<_ACEOF | |
7733 | /* confdefs.h. */ | |
7734 | _ACEOF | |
7735 | cat confdefs.h >>conftest.$ac_ext | |
7736 | cat >>conftest.$ac_ext <<_ACEOF | |
7737 | /* end confdefs.h. */ | |
7738 | #include <$ac_header> | |
7739 | _ACEOF | |
7740 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7741 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7742 | ac_status=$? | |
7743 | grep -v '^ *+' conftest.er1 >conftest.err | |
7744 | rm -f conftest.er1 | |
7745 | cat conftest.err >&5 | |
7746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7747 | (exit $ac_status); } >/dev/null; then | |
7748 | if test -s conftest.err; then | |
7749 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7750 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7751 | else | |
7752 | ac_cpp_err= | |
7753 | fi | |
7754 | else | |
7755 | ac_cpp_err=yes | |
7756 | fi | |
7757 | if test -z "$ac_cpp_err"; then | |
7758 | ac_header_preproc=yes | |
7759 | else | |
7760 | echo "$as_me: failed program was:" >&5 | |
7761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7762 | ||
7763 | ac_header_preproc=no | |
7764 | fi | |
7765 | rm -f conftest.err conftest.$ac_ext | |
7766 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7767 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7768 | ||
7769 | # So? What about this header? | |
7770 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7771 | yes:no: ) | |
7772 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7773 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7774 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7775 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7776 | ac_header_preproc=yes | |
7777 | ;; | |
7778 | no:yes:* ) | |
7779 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7780 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7781 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7782 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7783 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7784 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7785 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7786 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7787 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7788 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7789 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7790 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7791 | ( | |
7792 | cat <<\_ASBOX | |
7793 | ## ------------------------------------------ ## | |
7794 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7795 | ## ------------------------------------------ ## | |
7796 | _ASBOX | |
7797 | ) | | |
7798 | sed "s/^/$as_me: WARNING: /" >&2 | |
7799 | ;; | |
7800 | esac | |
7801 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7802 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7803 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7805 | else | |
7806 | eval "$as_ac_Header=\$ac_header_preproc" | |
7807 | fi | |
7808 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7809 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7810 | ||
7811 | fi | |
7812 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7813 | cat >>confdefs.h <<_ACEOF | |
7814 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7815 | _ACEOF | |
7816 | ||
7817 | fi | |
7818 | ||
7819 | done | |
7820 | ||
7821 | ||
7822 | for ac_header in signal.h | |
7823 | do | |
7824 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7825 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7826 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7827 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7828 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7830 | fi | |
7831 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7832 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7833 | else | |
7834 | # Is the header compilable? | |
7835 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7836 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7837 | cat >conftest.$ac_ext <<_ACEOF | |
7838 | /* confdefs.h. */ | |
7839 | _ACEOF | |
7840 | cat confdefs.h >>conftest.$ac_ext | |
7841 | cat >>conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
7842 | /* end confdefs.h. */ |
7843 | $ac_includes_default | |
7844 | #include <$ac_header> | |
7845 | _ACEOF | |
7846 | rm -f conftest.$ac_objext | |
7847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7848 | (eval $ac_compile) 2>conftest.er1 | |
7849 | ac_status=$? | |
7850 | grep -v '^ *+' conftest.er1 >conftest.err | |
7851 | rm -f conftest.er1 | |
7852 | cat conftest.err >&5 | |
7853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7854 | (exit $ac_status); } && | |
b4e70030 JB |
7855 | { ac_try='test -z "$ac_c_werror_flag" |
7856 | || test ! -s conftest.err' | |
bec39cab AC |
7857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7858 | (eval $ac_try) 2>&5 | |
7859 | ac_status=$? | |
7860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7861 | (exit $ac_status); }; } && | |
7862 | { ac_try='test -s conftest.$ac_objext' | |
7863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7864 | (eval $ac_try) 2>&5 | |
7865 | ac_status=$? | |
7866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7867 | (exit $ac_status); }; }; then | |
7868 | ac_header_compiler=yes | |
7869 | else | |
7870 | echo "$as_me: failed program was:" >&5 | |
7871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7872 | ||
b4e70030 | 7873 | ac_header_compiler=no |
bec39cab AC |
7874 | fi |
7875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7876 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7877 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7878 | |
7879 | # Is the header present? | |
b4e70030 JB |
7880 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7881 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7882 | cat >conftest.$ac_ext <<_ACEOF |
7883 | /* confdefs.h. */ | |
7884 | _ACEOF | |
7885 | cat confdefs.h >>conftest.$ac_ext | |
7886 | cat >>conftest.$ac_ext <<_ACEOF | |
7887 | /* end confdefs.h. */ | |
7888 | #include <$ac_header> | |
7889 | _ACEOF | |
7890 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7891 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7892 | ac_status=$? | |
7893 | grep -v '^ *+' conftest.er1 >conftest.err | |
7894 | rm -f conftest.er1 | |
7895 | cat conftest.err >&5 | |
7896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7897 | (exit $ac_status); } >/dev/null; then | |
7898 | if test -s conftest.err; then | |
7899 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7900 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7901 | else | |
7902 | ac_cpp_err= | |
7903 | fi | |
9a156167 | 7904 | else |
bec39cab | 7905 | ac_cpp_err=yes |
9a156167 | 7906 | fi |
bec39cab AC |
7907 | if test -z "$ac_cpp_err"; then |
7908 | ac_header_preproc=yes | |
7909 | else | |
7910 | echo "$as_me: failed program was:" >&5 | |
7911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 7912 | |
bec39cab | 7913 | ac_header_preproc=no |
9a156167 | 7914 | fi |
bec39cab | 7915 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7916 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7917 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 7918 | |
bec39cab AC |
7919 | # So? What about this header? |
7920 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7921 | yes:no: ) | |
7922 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7923 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7924 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7925 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7926 | ac_header_preproc=yes | |
7927 | ;; | |
7928 | no:yes:* ) | |
7929 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7930 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7931 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7932 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7933 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7934 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7935 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7936 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7937 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7938 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7939 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7940 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7941 | ( |
7942 | cat <<\_ASBOX | |
7943 | ## ------------------------------------------ ## | |
7944 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7945 | ## ------------------------------------------ ## | |
7946 | _ASBOX | |
7947 | ) | | |
7948 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7949 | ;; |
7950 | esac | |
b4e70030 JB |
7951 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7952 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7953 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 7955 | else |
bec39cab | 7956 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 7957 | fi |
b4e70030 JB |
7958 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7959 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 MK |
7960 | |
7961 | fi | |
bec39cab AC |
7962 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7963 | cat >>confdefs.h <<_ACEOF | |
7964 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7965 | _ACEOF | |
9a156167 | 7966 | |
bec39cab AC |
7967 | fi |
7968 | ||
7969 | done | |
9a156167 | 7970 | |
c890192f | 7971 | |
bec39cab AC |
7972 | for ac_header in stddef.h |
7973 | do | |
7974 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7975 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7976 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7977 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7978 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7980 | fi | |
b4e70030 JB |
7981 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7982 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7983 | else |
7984 | # Is the header compilable? | |
b4e70030 JB |
7985 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7986 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7987 | cat >conftest.$ac_ext <<_ACEOF |
7988 | /* confdefs.h. */ | |
7989 | _ACEOF | |
7990 | cat confdefs.h >>conftest.$ac_ext | |
7991 | cat >>conftest.$ac_ext <<_ACEOF | |
7992 | /* end confdefs.h. */ | |
7993 | $ac_includes_default | |
7994 | #include <$ac_header> | |
7995 | _ACEOF | |
7996 | rm -f conftest.$ac_objext | |
7997 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7998 | (eval $ac_compile) 2>conftest.er1 | |
7999 | ac_status=$? | |
8000 | grep -v '^ *+' conftest.er1 >conftest.err | |
8001 | rm -f conftest.er1 | |
8002 | cat conftest.err >&5 | |
8003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8004 | (exit $ac_status); } && | |
b4e70030 JB |
8005 | { ac_try='test -z "$ac_c_werror_flag" |
8006 | || test ! -s conftest.err' | |
bec39cab AC |
8007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8008 | (eval $ac_try) 2>&5 | |
8009 | ac_status=$? | |
8010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8011 | (exit $ac_status); }; } && | |
8012 | { ac_try='test -s conftest.$ac_objext' | |
8013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8014 | (eval $ac_try) 2>&5 | |
8015 | ac_status=$? | |
8016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8017 | (exit $ac_status); }; }; then | |
8018 | ac_header_compiler=yes | |
8019 | else | |
8020 | echo "$as_me: failed program was:" >&5 | |
8021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8022 | ||
b4e70030 | 8023 | ac_header_compiler=no |
bec39cab AC |
8024 | fi |
8025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8026 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8027 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8028 | |
8029 | # Is the header present? | |
b4e70030 JB |
8030 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8031 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8032 | cat >conftest.$ac_ext <<_ACEOF |
8033 | /* confdefs.h. */ | |
8034 | _ACEOF | |
8035 | cat confdefs.h >>conftest.$ac_ext | |
8036 | cat >>conftest.$ac_ext <<_ACEOF | |
8037 | /* end confdefs.h. */ | |
8038 | #include <$ac_header> | |
8039 | _ACEOF | |
8040 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8041 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8042 | ac_status=$? | |
8043 | grep -v '^ *+' conftest.er1 >conftest.err | |
8044 | rm -f conftest.er1 | |
8045 | cat conftest.err >&5 | |
8046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8047 | (exit $ac_status); } >/dev/null; then | |
8048 | if test -s conftest.err; then | |
8049 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8050 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8051 | else | |
8052 | ac_cpp_err= | |
8053 | fi | |
c890192f | 8054 | else |
bec39cab AC |
8055 | ac_cpp_err=yes |
8056 | fi | |
8057 | if test -z "$ac_cpp_err"; then | |
8058 | ac_header_preproc=yes | |
c890192f | 8059 | else |
bec39cab AC |
8060 | echo "$as_me: failed program was:" >&5 |
8061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8062 | ||
8063 | ac_header_preproc=no | |
c890192f | 8064 | fi |
bec39cab | 8065 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8066 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8067 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8068 | |
8069 | # So? What about this header? | |
8070 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8071 | yes:no: ) | |
8072 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8073 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8074 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8075 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8076 | ac_header_preproc=yes | |
8077 | ;; | |
8078 | no:yes:* ) | |
8079 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8080 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8081 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8082 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8083 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8084 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8085 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8086 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8087 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8088 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8089 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8090 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8091 | ( |
8092 | cat <<\_ASBOX | |
8093 | ## ------------------------------------------ ## | |
8094 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8095 | ## ------------------------------------------ ## | |
8096 | _ASBOX | |
8097 | ) | | |
8098 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8099 | ;; |
8100 | esac | |
b4e70030 JB |
8101 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8102 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8103 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c890192f | 8105 | else |
bec39cab | 8106 | eval "$as_ac_Header=\$ac_header_preproc" |
c890192f | 8107 | fi |
b4e70030 JB |
8108 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8109 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 8110 | |
c890192f | 8111 | fi |
bec39cab AC |
8112 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8113 | cat >>confdefs.h <<_ACEOF | |
8114 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8115 | _ACEOF | |
c890192f | 8116 | |
c890192f MK |
8117 | fi |
8118 | ||
bec39cab | 8119 | done |
9a156167 | 8120 | |
bec39cab AC |
8121 | |
8122 | for ac_header in stdlib.h | |
8123 | do | |
8124 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8125 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8126 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8127 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8128 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8130 | fi | |
b4e70030 JB |
8131 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8132 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8133 | else |
8134 | # Is the header compilable? | |
b4e70030 JB |
8135 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8136 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8137 | cat >conftest.$ac_ext <<_ACEOF |
8138 | /* confdefs.h. */ | |
8139 | _ACEOF | |
8140 | cat confdefs.h >>conftest.$ac_ext | |
8141 | cat >>conftest.$ac_ext <<_ACEOF | |
8142 | /* end confdefs.h. */ | |
8143 | $ac_includes_default | |
8144 | #include <$ac_header> | |
8145 | _ACEOF | |
8146 | rm -f conftest.$ac_objext | |
8147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8148 | (eval $ac_compile) 2>conftest.er1 | |
8149 | ac_status=$? | |
8150 | grep -v '^ *+' conftest.er1 >conftest.err | |
8151 | rm -f conftest.er1 | |
8152 | cat conftest.err >&5 | |
8153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8154 | (exit $ac_status); } && | |
b4e70030 JB |
8155 | { ac_try='test -z "$ac_c_werror_flag" |
8156 | || test ! -s conftest.err' | |
bec39cab AC |
8157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8158 | (eval $ac_try) 2>&5 | |
8159 | ac_status=$? | |
8160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8161 | (exit $ac_status); }; } && | |
8162 | { ac_try='test -s conftest.$ac_objext' | |
8163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8164 | (eval $ac_try) 2>&5 | |
8165 | ac_status=$? | |
8166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8167 | (exit $ac_status); }; }; then | |
8168 | ac_header_compiler=yes | |
8169 | else | |
8170 | echo "$as_me: failed program was:" >&5 | |
8171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8172 | ||
b4e70030 | 8173 | ac_header_compiler=no |
bec39cab AC |
8174 | fi |
8175 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8176 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8177 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8178 | |
8179 | # Is the header present? | |
b4e70030 JB |
8180 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8181 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8182 | cat >conftest.$ac_ext <<_ACEOF |
8183 | /* confdefs.h. */ | |
8184 | _ACEOF | |
8185 | cat confdefs.h >>conftest.$ac_ext | |
8186 | cat >>conftest.$ac_ext <<_ACEOF | |
8187 | /* end confdefs.h. */ | |
8188 | #include <$ac_header> | |
8189 | _ACEOF | |
8190 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8191 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8192 | ac_status=$? | |
8193 | grep -v '^ *+' conftest.er1 >conftest.err | |
8194 | rm -f conftest.er1 | |
8195 | cat conftest.err >&5 | |
8196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8197 | (exit $ac_status); } >/dev/null; then | |
8198 | if test -s conftest.err; then | |
8199 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8200 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8201 | else | |
8202 | ac_cpp_err= | |
8203 | fi | |
9a156167 | 8204 | else |
bec39cab AC |
8205 | ac_cpp_err=yes |
8206 | fi | |
8207 | if test -z "$ac_cpp_err"; then | |
8208 | ac_header_preproc=yes | |
9a156167 | 8209 | else |
bec39cab AC |
8210 | echo "$as_me: failed program was:" >&5 |
8211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8212 | ||
8213 | ac_header_preproc=no | |
9a156167 | 8214 | fi |
bec39cab | 8215 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8216 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8217 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8218 | |
8219 | # So? What about this header? | |
8220 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8221 | yes:no: ) | |
8222 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8223 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8224 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8225 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8226 | ac_header_preproc=yes | |
8227 | ;; | |
8228 | no:yes:* ) | |
8229 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8230 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8231 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8232 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8233 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8234 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8235 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8236 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8237 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8238 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8239 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8240 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8241 | ( |
8242 | cat <<\_ASBOX | |
8243 | ## ------------------------------------------ ## | |
8244 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8245 | ## ------------------------------------------ ## | |
8246 | _ASBOX | |
8247 | ) | | |
8248 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8249 | ;; |
8250 | esac | |
b4e70030 JB |
8251 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8252 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8253 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8254 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 8255 | else |
bec39cab | 8256 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 8257 | fi |
b4e70030 JB |
8258 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8259 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 8260 | |
9a156167 | 8261 | fi |
bec39cab AC |
8262 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8263 | cat >>confdefs.h <<_ACEOF | |
8264 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8265 | _ACEOF | |
9a156167 | 8266 | |
9a156167 MK |
8267 | fi |
8268 | ||
bec39cab AC |
8269 | done |
8270 | ||
06825bd1 | 8271 | |
bec39cab AC |
8272 | for ac_header in stdint.h |
8273 | do | |
8274 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8275 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8276 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8277 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8278 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8280 | fi | |
b4e70030 JB |
8281 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8282 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8283 | else |
8284 | # Is the header compilable? | |
b4e70030 JB |
8285 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8286 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8287 | cat >conftest.$ac_ext <<_ACEOF |
8288 | /* confdefs.h. */ | |
8289 | _ACEOF | |
8290 | cat confdefs.h >>conftest.$ac_ext | |
8291 | cat >>conftest.$ac_ext <<_ACEOF | |
8292 | /* end confdefs.h. */ | |
8293 | $ac_includes_default | |
8294 | #include <$ac_header> | |
8295 | _ACEOF | |
8296 | rm -f conftest.$ac_objext | |
8297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8298 | (eval $ac_compile) 2>conftest.er1 | |
8299 | ac_status=$? | |
8300 | grep -v '^ *+' conftest.er1 >conftest.err | |
8301 | rm -f conftest.er1 | |
8302 | cat conftest.err >&5 | |
8303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8304 | (exit $ac_status); } && | |
b4e70030 JB |
8305 | { ac_try='test -z "$ac_c_werror_flag" |
8306 | || test ! -s conftest.err' | |
bec39cab AC |
8307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8308 | (eval $ac_try) 2>&5 | |
8309 | ac_status=$? | |
8310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8311 | (exit $ac_status); }; } && | |
8312 | { ac_try='test -s conftest.$ac_objext' | |
8313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8314 | (eval $ac_try) 2>&5 | |
8315 | ac_status=$? | |
8316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8317 | (exit $ac_status); }; }; then | |
8318 | ac_header_compiler=yes | |
8319 | else | |
8320 | echo "$as_me: failed program was:" >&5 | |
8321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8322 | ||
b4e70030 | 8323 | ac_header_compiler=no |
bec39cab AC |
8324 | fi |
8325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8326 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8327 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8328 | |
8329 | # Is the header present? | |
b4e70030 JB |
8330 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8331 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8332 | cat >conftest.$ac_ext <<_ACEOF |
8333 | /* confdefs.h. */ | |
8334 | _ACEOF | |
8335 | cat confdefs.h >>conftest.$ac_ext | |
8336 | cat >>conftest.$ac_ext <<_ACEOF | |
8337 | /* end confdefs.h. */ | |
8338 | #include <$ac_header> | |
8339 | _ACEOF | |
8340 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8341 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8342 | ac_status=$? | |
8343 | grep -v '^ *+' conftest.er1 >conftest.err | |
8344 | rm -f conftest.er1 | |
8345 | cat conftest.err >&5 | |
8346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8347 | (exit $ac_status); } >/dev/null; then | |
8348 | if test -s conftest.err; then | |
8349 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8350 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8351 | else | |
8352 | ac_cpp_err= | |
8353 | fi | |
06825bd1 | 8354 | else |
bec39cab AC |
8355 | ac_cpp_err=yes |
8356 | fi | |
8357 | if test -z "$ac_cpp_err"; then | |
8358 | ac_header_preproc=yes | |
06825bd1 | 8359 | else |
bec39cab AC |
8360 | echo "$as_me: failed program was:" >&5 |
8361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8362 | ||
8363 | ac_header_preproc=no | |
06825bd1 | 8364 | fi |
bec39cab | 8365 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8366 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8367 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8368 | |
8369 | # So? What about this header? | |
8370 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8371 | yes:no: ) | |
8372 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8373 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8374 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8375 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8376 | ac_header_preproc=yes | |
8377 | ;; | |
8378 | no:yes:* ) | |
8379 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8380 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8381 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8382 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8383 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8384 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8385 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8386 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8387 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8388 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8389 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8390 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8391 | ( |
8392 | cat <<\_ASBOX | |
8393 | ## ------------------------------------------ ## | |
8394 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8395 | ## ------------------------------------------ ## | |
8396 | _ASBOX | |
8397 | ) | | |
8398 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8399 | ;; |
8400 | esac | |
b4e70030 JB |
8401 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8402 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8403 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
06825bd1 | 8405 | else |
bec39cab | 8406 | eval "$as_ac_Header=\$ac_header_preproc" |
06825bd1 | 8407 | fi |
b4e70030 JB |
8408 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8409 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 8410 | |
06825bd1 | 8411 | fi |
bec39cab AC |
8412 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8413 | cat >>confdefs.h <<_ACEOF | |
8414 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8415 | _ACEOF | |
06825bd1 | 8416 | |
06825bd1 | 8417 | fi |
4f0be353 | 8418 | |
bec39cab | 8419 | done |
4f0be353 | 8420 | |
06825bd1 | 8421 | |
06825bd1 | 8422 | |
bec39cab AC |
8423 | |
8424 | for ac_header in string.h memory.h strings.h | |
8425 | do | |
8426 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8427 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8428 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8429 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8430 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8431 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8432 | fi | |
b4e70030 JB |
8433 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8434 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8435 | else |
8436 | # Is the header compilable? | |
b4e70030 JB |
8437 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8438 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8439 | cat >conftest.$ac_ext <<_ACEOF |
8440 | /* confdefs.h. */ | |
8441 | _ACEOF | |
8442 | cat confdefs.h >>conftest.$ac_ext | |
8443 | cat >>conftest.$ac_ext <<_ACEOF | |
8444 | /* end confdefs.h. */ | |
8445 | $ac_includes_default | |
8446 | #include <$ac_header> | |
8447 | _ACEOF | |
8448 | rm -f conftest.$ac_objext | |
8449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8450 | (eval $ac_compile) 2>conftest.er1 | |
8451 | ac_status=$? | |
8452 | grep -v '^ *+' conftest.er1 >conftest.err | |
8453 | rm -f conftest.er1 | |
8454 | cat conftest.err >&5 | |
8455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8456 | (exit $ac_status); } && | |
b4e70030 JB |
8457 | { ac_try='test -z "$ac_c_werror_flag" |
8458 | || test ! -s conftest.err' | |
bec39cab AC |
8459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8460 | (eval $ac_try) 2>&5 | |
8461 | ac_status=$? | |
8462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8463 | (exit $ac_status); }; } && | |
8464 | { ac_try='test -s conftest.$ac_objext' | |
8465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8466 | (eval $ac_try) 2>&5 | |
8467 | ac_status=$? | |
8468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8469 | (exit $ac_status); }; }; then | |
8470 | ac_header_compiler=yes | |
8471 | else | |
8472 | echo "$as_me: failed program was:" >&5 | |
8473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8474 | ||
b4e70030 | 8475 | ac_header_compiler=no |
bec39cab AC |
8476 | fi |
8477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8478 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8479 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8480 | |
8481 | # Is the header present? | |
b4e70030 JB |
8482 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8483 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8484 | cat >conftest.$ac_ext <<_ACEOF |
8485 | /* confdefs.h. */ | |
8486 | _ACEOF | |
8487 | cat confdefs.h >>conftest.$ac_ext | |
8488 | cat >>conftest.$ac_ext <<_ACEOF | |
8489 | /* end confdefs.h. */ | |
8490 | #include <$ac_header> | |
8491 | _ACEOF | |
8492 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8493 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8494 | ac_status=$? | |
8495 | grep -v '^ *+' conftest.er1 >conftest.err | |
8496 | rm -f conftest.er1 | |
8497 | cat conftest.err >&5 | |
8498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8499 | (exit $ac_status); } >/dev/null; then | |
8500 | if test -s conftest.err; then | |
8501 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8502 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8503 | else | |
8504 | ac_cpp_err= | |
8505 | fi | |
06825bd1 | 8506 | else |
bec39cab AC |
8507 | ac_cpp_err=yes |
8508 | fi | |
8509 | if test -z "$ac_cpp_err"; then | |
8510 | ac_header_preproc=yes | |
06825bd1 | 8511 | else |
bec39cab AC |
8512 | echo "$as_me: failed program was:" >&5 |
8513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8514 | ||
8515 | ac_header_preproc=no | |
06825bd1 | 8516 | fi |
bec39cab | 8517 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8518 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8519 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8520 | |
8521 | # So? What about this header? | |
8522 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8523 | yes:no: ) | |
8524 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8525 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8526 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8527 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8528 | ac_header_preproc=yes | |
8529 | ;; | |
8530 | no:yes:* ) | |
8531 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8532 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8533 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8534 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8535 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8536 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8537 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8538 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8539 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8540 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8541 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8542 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8543 | ( |
8544 | cat <<\_ASBOX | |
8545 | ## ------------------------------------------ ## | |
8546 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8547 | ## ------------------------------------------ ## | |
8548 | _ASBOX | |
8549 | ) | | |
8550 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8551 | ;; |
8552 | esac | |
b4e70030 JB |
8553 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8554 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8555 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8557 | else | |
8558 | eval "$as_ac_Header=\$ac_header_preproc" | |
06825bd1 | 8559 | fi |
b4e70030 JB |
8560 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8561 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
06825bd1 | 8562 | |
06825bd1 | 8563 | fi |
bec39cab AC |
8564 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8565 | cat >>confdefs.h <<_ACEOF | |
8566 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8567 | _ACEOF | |
06825bd1 | 8568 | |
06825bd1 MK |
8569 | fi |
8570 | ||
bec39cab | 8571 | done |
5ee754fc | 8572 | |
bec39cab AC |
8573 | |
8574 | for ac_header in sys/fault.h | |
5ee754fc | 8575 | do |
bec39cab | 8576 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
8577 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8578 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8579 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8580 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8582 | fi | |
b4e70030 JB |
8583 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8584 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8585 | else |
8586 | # Is the header compilable? | |
b4e70030 JB |
8587 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8588 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8589 | cat >conftest.$ac_ext <<_ACEOF |
8590 | /* confdefs.h. */ | |
8591 | _ACEOF | |
8592 | cat confdefs.h >>conftest.$ac_ext | |
8593 | cat >>conftest.$ac_ext <<_ACEOF | |
8594 | /* end confdefs.h. */ | |
8595 | $ac_includes_default | |
8596 | #include <$ac_header> | |
8597 | _ACEOF | |
8598 | rm -f conftest.$ac_objext | |
8599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8600 | (eval $ac_compile) 2>conftest.er1 | |
8601 | ac_status=$? | |
8602 | grep -v '^ *+' conftest.er1 >conftest.err | |
8603 | rm -f conftest.er1 | |
8604 | cat conftest.err >&5 | |
8605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8606 | (exit $ac_status); } && | |
b4e70030 JB |
8607 | { ac_try='test -z "$ac_c_werror_flag" |
8608 | || test ! -s conftest.err' | |
bec39cab AC |
8609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8610 | (eval $ac_try) 2>&5 | |
8611 | ac_status=$? | |
8612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8613 | (exit $ac_status); }; } && | |
8614 | { ac_try='test -s conftest.$ac_objext' | |
8615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8616 | (eval $ac_try) 2>&5 | |
8617 | ac_status=$? | |
8618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8619 | (exit $ac_status); }; }; then | |
8620 | ac_header_compiler=yes | |
8621 | else | |
8622 | echo "$as_me: failed program was:" >&5 | |
8623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8624 | ||
b4e70030 | 8625 | ac_header_compiler=no |
bec39cab AC |
8626 | fi |
8627 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8628 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8629 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8630 | |
8631 | # Is the header present? | |
b4e70030 JB |
8632 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8633 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8634 | cat >conftest.$ac_ext <<_ACEOF |
8635 | /* confdefs.h. */ | |
8636 | _ACEOF | |
8637 | cat confdefs.h >>conftest.$ac_ext | |
8638 | cat >>conftest.$ac_ext <<_ACEOF | |
8639 | /* end confdefs.h. */ | |
8640 | #include <$ac_header> | |
8641 | _ACEOF | |
8642 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8643 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8644 | ac_status=$? | |
8645 | grep -v '^ *+' conftest.er1 >conftest.err | |
8646 | rm -f conftest.er1 | |
8647 | cat conftest.err >&5 | |
8648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8649 | (exit $ac_status); } >/dev/null; then | |
8650 | if test -s conftest.err; then | |
8651 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8652 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8653 | else | |
8654 | ac_cpp_err= | |
8655 | fi | |
5ee754fc | 8656 | else |
bec39cab | 8657 | ac_cpp_err=yes |
5ee754fc | 8658 | fi |
bec39cab AC |
8659 | if test -z "$ac_cpp_err"; then |
8660 | ac_header_preproc=yes | |
8661 | else | |
8662 | echo "$as_me: failed program was:" >&5 | |
8663 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 8664 | |
bec39cab | 8665 | ac_header_preproc=no |
5ee754fc | 8666 | fi |
bec39cab | 8667 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8668 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8669 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8670 | |
8671 | # So? What about this header? | |
8672 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8673 | yes:no: ) | |
8674 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8675 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8676 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8677 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8678 | ac_header_preproc=yes | |
8679 | ;; | |
8680 | no:yes:* ) | |
8681 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8682 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8683 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8684 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8685 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8686 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8687 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8688 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8689 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8690 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8691 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8692 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8693 | ( |
8694 | cat <<\_ASBOX | |
8695 | ## ------------------------------------------ ## | |
8696 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8697 | ## ------------------------------------------ ## | |
8698 | _ASBOX | |
8699 | ) | | |
8700 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8701 | ;; |
8702 | esac | |
b4e70030 JB |
8703 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8704 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8705 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 8707 | else |
bec39cab | 8708 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 8709 | fi |
b4e70030 JB |
8710 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8711 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
c906108c | 8712 | |
5ee754fc | 8713 | fi |
bec39cab AC |
8714 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8715 | cat >>confdefs.h <<_ACEOF | |
8716 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8717 | _ACEOF | |
c906108c | 8718 | |
5ee754fc | 8719 | fi |
bec39cab AC |
8720 | |
8721 | done | |
8722 | ||
8723 | ||
8724 | for ac_header in sys/file.h | |
8725 | do | |
8726 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8727 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8728 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8729 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8730 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8732 | fi | |
b4e70030 JB |
8733 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8734 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8735 | else |
8736 | # Is the header compilable? | |
b4e70030 JB |
8737 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8738 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8739 | cat >conftest.$ac_ext <<_ACEOF |
8740 | /* confdefs.h. */ | |
8741 | _ACEOF | |
8742 | cat confdefs.h >>conftest.$ac_ext | |
8743 | cat >>conftest.$ac_ext <<_ACEOF | |
8744 | /* end confdefs.h. */ | |
8745 | $ac_includes_default | |
8746 | #include <$ac_header> | |
8747 | _ACEOF | |
8748 | rm -f conftest.$ac_objext | |
8749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8750 | (eval $ac_compile) 2>conftest.er1 | |
8751 | ac_status=$? | |
8752 | grep -v '^ *+' conftest.er1 >conftest.err | |
8753 | rm -f conftest.er1 | |
8754 | cat conftest.err >&5 | |
8755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8756 | (exit $ac_status); } && | |
b4e70030 JB |
8757 | { ac_try='test -z "$ac_c_werror_flag" |
8758 | || test ! -s conftest.err' | |
bec39cab AC |
8759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8760 | (eval $ac_try) 2>&5 | |
8761 | ac_status=$? | |
8762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8763 | (exit $ac_status); }; } && | |
8764 | { ac_try='test -s conftest.$ac_objext' | |
8765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8766 | (eval $ac_try) 2>&5 | |
8767 | ac_status=$? | |
8768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8769 | (exit $ac_status); }; }; then | |
8770 | ac_header_compiler=yes | |
8771 | else | |
8772 | echo "$as_me: failed program was:" >&5 | |
8773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8774 | ||
b4e70030 | 8775 | ac_header_compiler=no |
bec39cab AC |
8776 | fi |
8777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8778 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8779 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8780 | |
8781 | # Is the header present? | |
b4e70030 JB |
8782 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8783 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8784 | cat >conftest.$ac_ext <<_ACEOF |
8785 | /* confdefs.h. */ | |
8786 | _ACEOF | |
8787 | cat confdefs.h >>conftest.$ac_ext | |
8788 | cat >>conftest.$ac_ext <<_ACEOF | |
8789 | /* end confdefs.h. */ | |
8790 | #include <$ac_header> | |
8791 | _ACEOF | |
8792 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8793 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8794 | ac_status=$? | |
8795 | grep -v '^ *+' conftest.er1 >conftest.err | |
8796 | rm -f conftest.er1 | |
8797 | cat conftest.err >&5 | |
8798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8799 | (exit $ac_status); } >/dev/null; then | |
8800 | if test -s conftest.err; then | |
8801 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8802 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8803 | else | |
8804 | ac_cpp_err= | |
8805 | fi | |
5ee754fc | 8806 | else |
bec39cab | 8807 | ac_cpp_err=yes |
5ee754fc | 8808 | fi |
bec39cab AC |
8809 | if test -z "$ac_cpp_err"; then |
8810 | ac_header_preproc=yes | |
8811 | else | |
8812 | echo "$as_me: failed program was:" >&5 | |
8813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8814 | |
bec39cab | 8815 | ac_header_preproc=no |
5ee754fc | 8816 | fi |
bec39cab | 8817 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8818 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8819 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 8820 | |
bec39cab AC |
8821 | # So? What about this header? |
8822 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8823 | yes:no: ) | |
8824 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8825 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8826 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8827 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8828 | ac_header_preproc=yes | |
8829 | ;; | |
8830 | no:yes:* ) | |
8831 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8832 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8833 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8834 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8835 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8836 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8837 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8838 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8839 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8840 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8841 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8842 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8843 | ( |
8844 | cat <<\_ASBOX | |
8845 | ## ------------------------------------------ ## | |
8846 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8847 | ## ------------------------------------------ ## | |
8848 | _ASBOX | |
8849 | ) | | |
8850 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8851 | ;; |
8852 | esac | |
b4e70030 JB |
8853 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8854 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8855 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 8857 | else |
bec39cab AC |
8858 | eval "$as_ac_Header=\$ac_header_preproc" |
8859 | fi | |
b4e70030 JB |
8860 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8861 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 8862 | |
bec39cab AC |
8863 | fi |
8864 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8865 | cat >>confdefs.h <<_ACEOF | |
8866 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8867 | _ACEOF | |
5ee754fc | 8868 | |
bec39cab | 8869 | fi |
5ee754fc | 8870 | |
bec39cab | 8871 | done |
5ee754fc | 8872 | |
5ee754fc | 8873 | |
bec39cab AC |
8874 | for ac_header in sys/filio.h |
8875 | do | |
8876 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8877 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8878 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8879 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8880 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8882 | fi | |
b4e70030 JB |
8883 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8884 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8885 | else |
8886 | # Is the header compilable? | |
b4e70030 JB |
8887 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8888 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8889 | cat >conftest.$ac_ext <<_ACEOF |
8890 | /* confdefs.h. */ | |
8891 | _ACEOF | |
8892 | cat confdefs.h >>conftest.$ac_ext | |
8893 | cat >>conftest.$ac_ext <<_ACEOF | |
8894 | /* end confdefs.h. */ | |
8895 | $ac_includes_default | |
8896 | #include <$ac_header> | |
8897 | _ACEOF | |
8898 | rm -f conftest.$ac_objext | |
8899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8900 | (eval $ac_compile) 2>conftest.er1 | |
8901 | ac_status=$? | |
8902 | grep -v '^ *+' conftest.er1 >conftest.err | |
8903 | rm -f conftest.er1 | |
8904 | cat conftest.err >&5 | |
8905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8906 | (exit $ac_status); } && | |
b4e70030 JB |
8907 | { ac_try='test -z "$ac_c_werror_flag" |
8908 | || test ! -s conftest.err' | |
bec39cab AC |
8909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8910 | (eval $ac_try) 2>&5 | |
8911 | ac_status=$? | |
8912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8913 | (exit $ac_status); }; } && | |
8914 | { ac_try='test -s conftest.$ac_objext' | |
8915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8916 | (eval $ac_try) 2>&5 | |
8917 | ac_status=$? | |
8918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8919 | (exit $ac_status); }; }; then | |
8920 | ac_header_compiler=yes | |
8921 | else | |
8922 | echo "$as_me: failed program was:" >&5 | |
8923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8924 | ||
b4e70030 | 8925 | ac_header_compiler=no |
bec39cab AC |
8926 | fi |
8927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8928 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8929 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8930 | |
8931 | # Is the header present? | |
b4e70030 JB |
8932 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8933 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8934 | cat >conftest.$ac_ext <<_ACEOF |
8935 | /* confdefs.h. */ | |
8936 | _ACEOF | |
8937 | cat confdefs.h >>conftest.$ac_ext | |
8938 | cat >>conftest.$ac_ext <<_ACEOF | |
8939 | /* end confdefs.h. */ | |
8940 | #include <$ac_header> | |
8941 | _ACEOF | |
8942 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8943 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8944 | ac_status=$? | |
8945 | grep -v '^ *+' conftest.er1 >conftest.err | |
8946 | rm -f conftest.er1 | |
8947 | cat conftest.err >&5 | |
8948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8949 | (exit $ac_status); } >/dev/null; then | |
8950 | if test -s conftest.err; then | |
8951 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8952 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8953 | else | |
8954 | ac_cpp_err= | |
8955 | fi | |
5ee754fc | 8956 | else |
bec39cab | 8957 | ac_cpp_err=yes |
5ee754fc | 8958 | fi |
bec39cab AC |
8959 | if test -z "$ac_cpp_err"; then |
8960 | ac_header_preproc=yes | |
8961 | else | |
8962 | echo "$as_me: failed program was:" >&5 | |
8963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 8964 | |
bec39cab | 8965 | ac_header_preproc=no |
5ee754fc | 8966 | fi |
bec39cab | 8967 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8968 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8969 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 8970 | |
bec39cab AC |
8971 | # So? What about this header? |
8972 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8973 | yes:no: ) | |
8974 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8975 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8976 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8977 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8978 | ac_header_preproc=yes | |
8979 | ;; | |
8980 | no:yes:* ) | |
8981 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8982 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8983 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8984 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8985 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8986 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8987 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8988 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8989 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8990 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8991 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8992 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8993 | ( |
8994 | cat <<\_ASBOX | |
8995 | ## ------------------------------------------ ## | |
8996 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8997 | ## ------------------------------------------ ## | |
8998 | _ASBOX | |
8999 | ) | | |
9000 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9001 | ;; |
9002 | esac | |
b4e70030 JB |
9003 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9004 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9005 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 9007 | else |
bec39cab | 9008 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 9009 | fi |
b4e70030 JB |
9010 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9011 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 9012 | |
5ee754fc | 9013 | fi |
bec39cab AC |
9014 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9015 | cat >>confdefs.h <<_ACEOF | |
9016 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9017 | _ACEOF | |
5ee754fc MK |
9018 | |
9019 | fi | |
9020 | ||
bec39cab AC |
9021 | done |
9022 | ||
9023 | ||
9024 | for ac_header in sys/ioctl.h | |
9025 | do | |
9026 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
9027 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9028 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9029 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9030 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9031 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9032 | fi | |
b4e70030 JB |
9033 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9034 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9035 | else |
9036 | # Is the header compilable? | |
b4e70030 JB |
9037 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9038 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9039 | cat >conftest.$ac_ext <<_ACEOF |
9040 | /* confdefs.h. */ | |
9041 | _ACEOF | |
9042 | cat confdefs.h >>conftest.$ac_ext | |
9043 | cat >>conftest.$ac_ext <<_ACEOF | |
9044 | /* end confdefs.h. */ | |
9045 | $ac_includes_default | |
9046 | #include <$ac_header> | |
9047 | _ACEOF | |
9048 | rm -f conftest.$ac_objext | |
9049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9050 | (eval $ac_compile) 2>conftest.er1 | |
9051 | ac_status=$? | |
9052 | grep -v '^ *+' conftest.er1 >conftest.err | |
9053 | rm -f conftest.er1 | |
9054 | cat conftest.err >&5 | |
9055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9056 | (exit $ac_status); } && | |
b4e70030 JB |
9057 | { ac_try='test -z "$ac_c_werror_flag" |
9058 | || test ! -s conftest.err' | |
bec39cab AC |
9059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9060 | (eval $ac_try) 2>&5 | |
9061 | ac_status=$? | |
9062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9063 | (exit $ac_status); }; } && | |
9064 | { ac_try='test -s conftest.$ac_objext' | |
9065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9066 | (eval $ac_try) 2>&5 | |
9067 | ac_status=$? | |
9068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9069 | (exit $ac_status); }; }; then | |
9070 | ac_header_compiler=yes | |
9071 | else | |
9072 | echo "$as_me: failed program was:" >&5 | |
9073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9074 | ||
b4e70030 | 9075 | ac_header_compiler=no |
bec39cab AC |
9076 | fi |
9077 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9078 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9079 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9080 | |
9081 | # Is the header present? | |
b4e70030 JB |
9082 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9083 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9084 | cat >conftest.$ac_ext <<_ACEOF |
9085 | /* confdefs.h. */ | |
9086 | _ACEOF | |
9087 | cat confdefs.h >>conftest.$ac_ext | |
9088 | cat >>conftest.$ac_ext <<_ACEOF | |
9089 | /* end confdefs.h. */ | |
9090 | #include <$ac_header> | |
9091 | _ACEOF | |
9092 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9093 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9094 | ac_status=$? | |
9095 | grep -v '^ *+' conftest.er1 >conftest.err | |
9096 | rm -f conftest.er1 | |
9097 | cat conftest.err >&5 | |
9098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9099 | (exit $ac_status); } >/dev/null; then | |
9100 | if test -s conftest.err; then | |
9101 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9102 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9103 | else | |
9104 | ac_cpp_err= | |
9105 | fi | |
5ee754fc | 9106 | else |
bec39cab | 9107 | ac_cpp_err=yes |
5ee754fc | 9108 | fi |
bec39cab AC |
9109 | if test -z "$ac_cpp_err"; then |
9110 | ac_header_preproc=yes | |
9111 | else | |
9112 | echo "$as_me: failed program was:" >&5 | |
9113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 9114 | |
bec39cab | 9115 | ac_header_preproc=no |
5ee754fc | 9116 | fi |
bec39cab | 9117 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9118 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9119 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9120 | |
bec39cab AC |
9121 | # So? What about this header? |
9122 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9123 | yes:no: ) | |
9124 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9125 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9126 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9127 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9128 | ac_header_preproc=yes | |
9129 | ;; | |
9130 | no:yes:* ) | |
9131 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9132 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9133 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9134 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9135 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9136 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9137 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9138 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9139 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9140 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9141 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9142 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9143 | ( |
9144 | cat <<\_ASBOX | |
9145 | ## ------------------------------------------ ## | |
9146 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9147 | ## ------------------------------------------ ## | |
9148 | _ASBOX | |
9149 | ) | | |
9150 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9151 | ;; |
9152 | esac | |
b4e70030 JB |
9153 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9154 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9155 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 9157 | else |
bec39cab | 9158 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 9159 | fi |
b4e70030 JB |
9160 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9161 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc MK |
9162 | |
9163 | fi | |
bec39cab AC |
9164 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9165 | cat >>confdefs.h <<_ACEOF | |
9166 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9167 | _ACEOF | |
9168 | ||
5ee754fc MK |
9169 | fi |
9170 | ||
bec39cab | 9171 | done |
5ee754fc | 9172 | |
5ee754fc | 9173 | |
bec39cab | 9174 | for ac_header in sys/param.h |
5ee754fc | 9175 | do |
bec39cab | 9176 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9177 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9178 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9179 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9180 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9181 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9182 | fi | |
b4e70030 JB |
9183 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9184 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9185 | else |
9186 | # Is the header compilable? | |
b4e70030 JB |
9187 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9188 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9189 | cat >conftest.$ac_ext <<_ACEOF |
9190 | /* confdefs.h. */ | |
9191 | _ACEOF | |
9192 | cat confdefs.h >>conftest.$ac_ext | |
9193 | cat >>conftest.$ac_ext <<_ACEOF | |
9194 | /* end confdefs.h. */ | |
9195 | $ac_includes_default | |
9196 | #include <$ac_header> | |
9197 | _ACEOF | |
9198 | rm -f conftest.$ac_objext | |
9199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9200 | (eval $ac_compile) 2>conftest.er1 | |
9201 | ac_status=$? | |
9202 | grep -v '^ *+' conftest.er1 >conftest.err | |
9203 | rm -f conftest.er1 | |
9204 | cat conftest.err >&5 | |
9205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9206 | (exit $ac_status); } && | |
b4e70030 JB |
9207 | { ac_try='test -z "$ac_c_werror_flag" |
9208 | || test ! -s conftest.err' | |
bec39cab AC |
9209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9210 | (eval $ac_try) 2>&5 | |
9211 | ac_status=$? | |
9212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9213 | (exit $ac_status); }; } && | |
9214 | { ac_try='test -s conftest.$ac_objext' | |
9215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9216 | (eval $ac_try) 2>&5 | |
9217 | ac_status=$? | |
9218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9219 | (exit $ac_status); }; }; then | |
9220 | ac_header_compiler=yes | |
9221 | else | |
9222 | echo "$as_me: failed program was:" >&5 | |
9223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9224 | ||
b4e70030 | 9225 | ac_header_compiler=no |
bec39cab AC |
9226 | fi |
9227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9228 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9229 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9230 | |
9231 | # Is the header present? | |
b4e70030 JB |
9232 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9233 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9234 | cat >conftest.$ac_ext <<_ACEOF |
9235 | /* confdefs.h. */ | |
9236 | _ACEOF | |
9237 | cat confdefs.h >>conftest.$ac_ext | |
9238 | cat >>conftest.$ac_ext <<_ACEOF | |
9239 | /* end confdefs.h. */ | |
9240 | #include <$ac_header> | |
9241 | _ACEOF | |
9242 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9243 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9244 | ac_status=$? | |
9245 | grep -v '^ *+' conftest.er1 >conftest.err | |
9246 | rm -f conftest.er1 | |
9247 | cat conftest.err >&5 | |
9248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9249 | (exit $ac_status); } >/dev/null; then | |
9250 | if test -s conftest.err; then | |
9251 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9252 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9253 | else | |
9254 | ac_cpp_err= | |
9255 | fi | |
5ee754fc | 9256 | else |
bec39cab | 9257 | ac_cpp_err=yes |
5ee754fc | 9258 | fi |
bec39cab AC |
9259 | if test -z "$ac_cpp_err"; then |
9260 | ac_header_preproc=yes | |
9261 | else | |
9262 | echo "$as_me: failed program was:" >&5 | |
9263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 9264 | |
bec39cab | 9265 | ac_header_preproc=no |
5ee754fc | 9266 | fi |
bec39cab | 9267 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9268 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9269 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
9270 | |
9271 | # So? What about this header? | |
9272 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9273 | yes:no: ) | |
9274 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9275 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9276 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9277 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9278 | ac_header_preproc=yes | |
9279 | ;; | |
9280 | no:yes:* ) | |
9281 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9282 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9283 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9284 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9285 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9286 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9287 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9288 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9289 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9290 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9291 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9292 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9293 | ( |
9294 | cat <<\_ASBOX | |
9295 | ## ------------------------------------------ ## | |
9296 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9297 | ## ------------------------------------------ ## | |
9298 | _ASBOX | |
9299 | ) | | |
9300 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9301 | ;; |
9302 | esac | |
b4e70030 JB |
9303 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9304 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9305 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 9307 | else |
bec39cab | 9308 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 9309 | fi |
b4e70030 JB |
9310 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9311 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 9312 | |
5ee754fc | 9313 | fi |
bec39cab AC |
9314 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9315 | cat >>confdefs.h <<_ACEOF | |
9316 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9317 | _ACEOF | |
9318 | ||
5ee754fc | 9319 | fi |
bec39cab | 9320 | |
5ee754fc MK |
9321 | done |
9322 | ||
bec39cab | 9323 | |
7eb368b3 NR |
9324 | for ac_header in sys/resource.h |
9325 | do | |
9326 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9327 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9328 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9329 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9330 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9331 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9332 | fi | |
9333 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9334 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9335 | else | |
9336 | # Is the header compilable? | |
9337 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9338 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9339 | cat >conftest.$ac_ext <<_ACEOF | |
9340 | /* confdefs.h. */ | |
9341 | _ACEOF | |
9342 | cat confdefs.h >>conftest.$ac_ext | |
9343 | cat >>conftest.$ac_ext <<_ACEOF | |
9344 | /* end confdefs.h. */ | |
9345 | $ac_includes_default | |
9346 | #include <$ac_header> | |
9347 | _ACEOF | |
9348 | rm -f conftest.$ac_objext | |
9349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9350 | (eval $ac_compile) 2>conftest.er1 | |
9351 | ac_status=$? | |
9352 | grep -v '^ *+' conftest.er1 >conftest.err | |
9353 | rm -f conftest.er1 | |
9354 | cat conftest.err >&5 | |
9355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9356 | (exit $ac_status); } && | |
9357 | { ac_try='test -z "$ac_c_werror_flag" | |
9358 | || test ! -s conftest.err' | |
9359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9360 | (eval $ac_try) 2>&5 | |
9361 | ac_status=$? | |
9362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9363 | (exit $ac_status); }; } && | |
9364 | { ac_try='test -s conftest.$ac_objext' | |
9365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9366 | (eval $ac_try) 2>&5 | |
9367 | ac_status=$? | |
9368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9369 | (exit $ac_status); }; }; then | |
9370 | ac_header_compiler=yes | |
9371 | else | |
9372 | echo "$as_me: failed program was:" >&5 | |
9373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9374 | ||
9375 | ac_header_compiler=no | |
9376 | fi | |
9377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9378 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9379 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9380 | ||
9381 | # Is the header present? | |
9382 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9383 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9384 | cat >conftest.$ac_ext <<_ACEOF | |
9385 | /* confdefs.h. */ | |
9386 | _ACEOF | |
9387 | cat confdefs.h >>conftest.$ac_ext | |
9388 | cat >>conftest.$ac_ext <<_ACEOF | |
9389 | /* end confdefs.h. */ | |
9390 | #include <$ac_header> | |
9391 | _ACEOF | |
9392 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9393 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9394 | ac_status=$? | |
9395 | grep -v '^ *+' conftest.er1 >conftest.err | |
9396 | rm -f conftest.er1 | |
9397 | cat conftest.err >&5 | |
9398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9399 | (exit $ac_status); } >/dev/null; then | |
9400 | if test -s conftest.err; then | |
9401 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9402 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9403 | else | |
9404 | ac_cpp_err= | |
9405 | fi | |
9406 | else | |
9407 | ac_cpp_err=yes | |
9408 | fi | |
9409 | if test -z "$ac_cpp_err"; then | |
9410 | ac_header_preproc=yes | |
9411 | else | |
9412 | echo "$as_me: failed program was:" >&5 | |
9413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9414 | ||
9415 | ac_header_preproc=no | |
9416 | fi | |
9417 | rm -f conftest.err conftest.$ac_ext | |
9418 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9419 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9420 | ||
9421 | # So? What about this header? | |
9422 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9423 | yes:no: ) | |
9424 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9425 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9426 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9427 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9428 | ac_header_preproc=yes | |
9429 | ;; | |
9430 | no:yes:* ) | |
9431 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9432 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9433 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9434 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9435 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9436 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9437 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9438 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9439 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9440 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9441 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9442 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9443 | ( | |
9444 | cat <<\_ASBOX | |
9445 | ## ------------------------------------------ ## | |
9446 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9447 | ## ------------------------------------------ ## | |
9448 | _ASBOX | |
9449 | ) | | |
9450 | sed "s/^/$as_me: WARNING: /" >&2 | |
9451 | ;; | |
9452 | esac | |
9453 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9454 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9455 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9457 | else | |
9458 | eval "$as_ac_Header=\$ac_header_preproc" | |
9459 | fi | |
9460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9461 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9462 | ||
9463 | fi | |
9464 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9465 | cat >>confdefs.h <<_ACEOF | |
9466 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9467 | _ACEOF | |
9468 | ||
9469 | fi | |
9470 | ||
9471 | done | |
9472 | ||
9473 | ||
bec39cab | 9474 | for ac_header in sys/proc.h |
5ee754fc | 9475 | do |
bec39cab | 9476 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9477 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9478 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9479 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 9481 | else |
7cb9022a | 9482 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
9483 | /* confdefs.h. */ |
9484 | _ACEOF | |
9485 | cat confdefs.h >>conftest.$ac_ext | |
9486 | cat >>conftest.$ac_ext <<_ACEOF | |
9487 | /* end confdefs.h. */ | |
7cb9022a MK |
9488 | #if HAVE_SYS_PARAM_H |
9489 | # include <sys/param.h> | |
9490 | #endif | |
9491 | ||
9492 | ||
bec39cab AC |
9493 | #include <$ac_header> |
9494 | _ACEOF | |
9495 | rm -f conftest.$ac_objext | |
9496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9497 | (eval $ac_compile) 2>conftest.er1 | |
9498 | ac_status=$? | |
9499 | grep -v '^ *+' conftest.er1 >conftest.err | |
9500 | rm -f conftest.er1 | |
9501 | cat conftest.err >&5 | |
9502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9503 | (exit $ac_status); } && | |
b4e70030 JB |
9504 | { ac_try='test -z "$ac_c_werror_flag" |
9505 | || test ! -s conftest.err' | |
bec39cab AC |
9506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9507 | (eval $ac_try) 2>&5 | |
9508 | ac_status=$? | |
9509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9510 | (exit $ac_status); }; } && | |
9511 | { ac_try='test -s conftest.$ac_objext' | |
9512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9513 | (eval $ac_try) 2>&5 | |
9514 | ac_status=$? | |
9515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9516 | (exit $ac_status); }; }; then | |
7cb9022a | 9517 | eval "$as_ac_Header=yes" |
bec39cab AC |
9518 | else |
9519 | echo "$as_me: failed program was:" >&5 | |
9520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9521 | ||
b4e70030 | 9522 | eval "$as_ac_Header=no" |
bec39cab AC |
9523 | fi |
9524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 9525 | fi |
b4e70030 JB |
9526 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9527 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9528 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9529 | cat >>confdefs.h <<_ACEOF | |
9530 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9531 | _ACEOF | |
9532 | ||
5ee754fc | 9533 | fi |
bec39cab | 9534 | |
5ee754fc MK |
9535 | done |
9536 | ||
bec39cab AC |
9537 | |
9538 | for ac_header in sys/procfs.h | |
5ee754fc | 9539 | do |
bec39cab | 9540 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9541 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9542 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9544 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9546 | fi | |
b4e70030 JB |
9547 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9548 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9549 | else |
9550 | # Is the header compilable? | |
b4e70030 JB |
9551 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9552 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9553 | cat >conftest.$ac_ext <<_ACEOF |
9554 | /* confdefs.h. */ | |
9555 | _ACEOF | |
9556 | cat confdefs.h >>conftest.$ac_ext | |
9557 | cat >>conftest.$ac_ext <<_ACEOF | |
9558 | /* end confdefs.h. */ | |
9559 | $ac_includes_default | |
9560 | #include <$ac_header> | |
9561 | _ACEOF | |
9562 | rm -f conftest.$ac_objext | |
9563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9564 | (eval $ac_compile) 2>conftest.er1 | |
9565 | ac_status=$? | |
9566 | grep -v '^ *+' conftest.er1 >conftest.err | |
9567 | rm -f conftest.er1 | |
9568 | cat conftest.err >&5 | |
9569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9570 | (exit $ac_status); } && | |
b4e70030 JB |
9571 | { ac_try='test -z "$ac_c_werror_flag" |
9572 | || test ! -s conftest.err' | |
bec39cab AC |
9573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9574 | (eval $ac_try) 2>&5 | |
9575 | ac_status=$? | |
9576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9577 | (exit $ac_status); }; } && | |
9578 | { ac_try='test -s conftest.$ac_objext' | |
9579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9580 | (eval $ac_try) 2>&5 | |
9581 | ac_status=$? | |
9582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9583 | (exit $ac_status); }; }; then | |
9584 | ac_header_compiler=yes | |
9585 | else | |
9586 | echo "$as_me: failed program was:" >&5 | |
9587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9588 | ||
b4e70030 | 9589 | ac_header_compiler=no |
bec39cab AC |
9590 | fi |
9591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9592 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9593 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9594 | |
9595 | # Is the header present? | |
b4e70030 JB |
9596 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9597 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9598 | cat >conftest.$ac_ext <<_ACEOF |
9599 | /* confdefs.h. */ | |
9600 | _ACEOF | |
9601 | cat confdefs.h >>conftest.$ac_ext | |
9602 | cat >>conftest.$ac_ext <<_ACEOF | |
9603 | /* end confdefs.h. */ | |
9604 | #include <$ac_header> | |
9605 | _ACEOF | |
9606 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9607 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9608 | ac_status=$? | |
9609 | grep -v '^ *+' conftest.er1 >conftest.err | |
9610 | rm -f conftest.er1 | |
9611 | cat conftest.err >&5 | |
9612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9613 | (exit $ac_status); } >/dev/null; then | |
9614 | if test -s conftest.err; then | |
9615 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9616 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9617 | else | |
9618 | ac_cpp_err= | |
9619 | fi | |
9620 | else | |
9621 | ac_cpp_err=yes | |
5ee754fc | 9622 | fi |
bec39cab AC |
9623 | if test -z "$ac_cpp_err"; then |
9624 | ac_header_preproc=yes | |
5ee754fc | 9625 | else |
bec39cab AC |
9626 | echo "$as_me: failed program was:" >&5 |
9627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9628 | ||
9629 | ac_header_preproc=no | |
5ee754fc | 9630 | fi |
bec39cab | 9631 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9632 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9633 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9634 | |
bec39cab AC |
9635 | # So? What about this header? |
9636 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9637 | yes:no: ) | |
9638 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9639 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9640 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9641 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9642 | ac_header_preproc=yes | |
9643 | ;; | |
9644 | no:yes:* ) | |
9645 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9646 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9647 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9648 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9649 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9650 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9651 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9652 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9653 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9654 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9655 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9656 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9657 | ( |
9658 | cat <<\_ASBOX | |
9659 | ## ------------------------------------------ ## | |
9660 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9661 | ## ------------------------------------------ ## | |
9662 | _ASBOX | |
9663 | ) | | |
9664 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9665 | ;; |
9666 | esac | |
b4e70030 JB |
9667 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9668 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9669 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9671 | else | |
9672 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9673 | fi |
b4e70030 JB |
9674 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9675 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9676 | |
5ee754fc | 9677 | fi |
bec39cab AC |
9678 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9679 | cat >>confdefs.h <<_ACEOF | |
9680 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9681 | _ACEOF | |
9682 | ||
5ee754fc | 9683 | fi |
bec39cab | 9684 | |
5ee754fc MK |
9685 | done |
9686 | ||
bec39cab AC |
9687 | |
9688 | ||
9689 | for ac_header in sys/ptrace.h ptrace.h | |
5ee754fc | 9690 | do |
bec39cab | 9691 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9692 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9693 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9694 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9695 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9697 | fi | |
b4e70030 JB |
9698 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9699 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9700 | else |
9701 | # Is the header compilable? | |
b4e70030 JB |
9702 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9703 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9704 | cat >conftest.$ac_ext <<_ACEOF |
9705 | /* confdefs.h. */ | |
9706 | _ACEOF | |
9707 | cat confdefs.h >>conftest.$ac_ext | |
9708 | cat >>conftest.$ac_ext <<_ACEOF | |
9709 | /* end confdefs.h. */ | |
9710 | $ac_includes_default | |
9711 | #include <$ac_header> | |
9712 | _ACEOF | |
9713 | rm -f conftest.$ac_objext | |
9714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9715 | (eval $ac_compile) 2>conftest.er1 | |
9716 | ac_status=$? | |
9717 | grep -v '^ *+' conftest.er1 >conftest.err | |
9718 | rm -f conftest.er1 | |
9719 | cat conftest.err >&5 | |
9720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9721 | (exit $ac_status); } && | |
b4e70030 JB |
9722 | { ac_try='test -z "$ac_c_werror_flag" |
9723 | || test ! -s conftest.err' | |
bec39cab AC |
9724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9725 | (eval $ac_try) 2>&5 | |
9726 | ac_status=$? | |
9727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9728 | (exit $ac_status); }; } && | |
9729 | { ac_try='test -s conftest.$ac_objext' | |
9730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9731 | (eval $ac_try) 2>&5 | |
9732 | ac_status=$? | |
9733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9734 | (exit $ac_status); }; }; then | |
9735 | ac_header_compiler=yes | |
9736 | else | |
9737 | echo "$as_me: failed program was:" >&5 | |
9738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9739 | ||
b4e70030 | 9740 | ac_header_compiler=no |
bec39cab AC |
9741 | fi |
9742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9743 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9744 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9745 | |
9746 | # Is the header present? | |
b4e70030 JB |
9747 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9748 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9749 | cat >conftest.$ac_ext <<_ACEOF |
9750 | /* confdefs.h. */ | |
9751 | _ACEOF | |
9752 | cat confdefs.h >>conftest.$ac_ext | |
9753 | cat >>conftest.$ac_ext <<_ACEOF | |
9754 | /* end confdefs.h. */ | |
9755 | #include <$ac_header> | |
9756 | _ACEOF | |
9757 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9758 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9759 | ac_status=$? | |
9760 | grep -v '^ *+' conftest.er1 >conftest.err | |
9761 | rm -f conftest.er1 | |
9762 | cat conftest.err >&5 | |
9763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9764 | (exit $ac_status); } >/dev/null; then | |
9765 | if test -s conftest.err; then | |
9766 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9767 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9768 | else | |
9769 | ac_cpp_err= | |
9770 | fi | |
9771 | else | |
9772 | ac_cpp_err=yes | |
5ee754fc | 9773 | fi |
bec39cab AC |
9774 | if test -z "$ac_cpp_err"; then |
9775 | ac_header_preproc=yes | |
5ee754fc | 9776 | else |
bec39cab AC |
9777 | echo "$as_me: failed program was:" >&5 |
9778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9779 | ||
9780 | ac_header_preproc=no | |
5ee754fc | 9781 | fi |
bec39cab | 9782 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9783 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9784 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9785 | |
bec39cab AC |
9786 | # So? What about this header? |
9787 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9788 | yes:no: ) | |
9789 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9790 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9791 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9792 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9793 | ac_header_preproc=yes | |
9794 | ;; | |
9795 | no:yes:* ) | |
9796 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9797 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9798 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9799 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9800 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9801 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9802 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9803 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9804 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9805 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9806 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9807 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9808 | ( |
9809 | cat <<\_ASBOX | |
9810 | ## ------------------------------------------ ## | |
9811 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9812 | ## ------------------------------------------ ## | |
9813 | _ASBOX | |
9814 | ) | | |
9815 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9816 | ;; |
9817 | esac | |
b4e70030 JB |
9818 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9819 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9820 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9822 | else | |
9823 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9824 | fi |
b4e70030 JB |
9825 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9826 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9827 | |
5ee754fc | 9828 | fi |
bec39cab AC |
9829 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9830 | cat >>confdefs.h <<_ACEOF | |
9831 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9832 | _ACEOF | |
9833 | ||
5ee754fc | 9834 | fi |
bec39cab | 9835 | |
5ee754fc MK |
9836 | done |
9837 | ||
bec39cab AC |
9838 | |
9839 | ||
9840 | for ac_header in sys/reg.h sys/debugreg.h | |
5ee754fc | 9841 | do |
bec39cab | 9842 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9843 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9844 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9846 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9848 | fi | |
b4e70030 JB |
9849 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9850 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9851 | else |
9852 | # Is the header compilable? | |
b4e70030 JB |
9853 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9854 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9855 | cat >conftest.$ac_ext <<_ACEOF |
9856 | /* confdefs.h. */ | |
9857 | _ACEOF | |
9858 | cat confdefs.h >>conftest.$ac_ext | |
9859 | cat >>conftest.$ac_ext <<_ACEOF | |
9860 | /* end confdefs.h. */ | |
9861 | $ac_includes_default | |
9862 | #include <$ac_header> | |
9863 | _ACEOF | |
9864 | rm -f conftest.$ac_objext | |
9865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9866 | (eval $ac_compile) 2>conftest.er1 | |
9867 | ac_status=$? | |
9868 | grep -v '^ *+' conftest.er1 >conftest.err | |
9869 | rm -f conftest.er1 | |
9870 | cat conftest.err >&5 | |
9871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9872 | (exit $ac_status); } && | |
b4e70030 JB |
9873 | { ac_try='test -z "$ac_c_werror_flag" |
9874 | || test ! -s conftest.err' | |
bec39cab AC |
9875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9876 | (eval $ac_try) 2>&5 | |
9877 | ac_status=$? | |
9878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9879 | (exit $ac_status); }; } && | |
9880 | { ac_try='test -s conftest.$ac_objext' | |
9881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9882 | (eval $ac_try) 2>&5 | |
9883 | ac_status=$? | |
9884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9885 | (exit $ac_status); }; }; then | |
9886 | ac_header_compiler=yes | |
9887 | else | |
9888 | echo "$as_me: failed program was:" >&5 | |
9889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9890 | ||
b4e70030 | 9891 | ac_header_compiler=no |
bec39cab AC |
9892 | fi |
9893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9894 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9895 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9896 | |
9897 | # Is the header present? | |
b4e70030 JB |
9898 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9899 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9900 | cat >conftest.$ac_ext <<_ACEOF |
9901 | /* confdefs.h. */ | |
9902 | _ACEOF | |
9903 | cat confdefs.h >>conftest.$ac_ext | |
9904 | cat >>conftest.$ac_ext <<_ACEOF | |
9905 | /* end confdefs.h. */ | |
9906 | #include <$ac_header> | |
9907 | _ACEOF | |
9908 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9909 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9910 | ac_status=$? | |
9911 | grep -v '^ *+' conftest.er1 >conftest.err | |
9912 | rm -f conftest.er1 | |
9913 | cat conftest.err >&5 | |
9914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9915 | (exit $ac_status); } >/dev/null; then | |
9916 | if test -s conftest.err; then | |
9917 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9918 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9919 | else | |
9920 | ac_cpp_err= | |
9921 | fi | |
9922 | else | |
9923 | ac_cpp_err=yes | |
5ee754fc | 9924 | fi |
bec39cab AC |
9925 | if test -z "$ac_cpp_err"; then |
9926 | ac_header_preproc=yes | |
5ee754fc | 9927 | else |
bec39cab AC |
9928 | echo "$as_me: failed program was:" >&5 |
9929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9930 | ||
9931 | ac_header_preproc=no | |
5ee754fc | 9932 | fi |
bec39cab | 9933 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9934 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9935 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9936 | |
bec39cab AC |
9937 | # So? What about this header? |
9938 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9939 | yes:no: ) | |
9940 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9941 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9942 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9943 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9944 | ac_header_preproc=yes | |
9945 | ;; | |
9946 | no:yes:* ) | |
9947 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9948 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9949 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9950 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9951 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9952 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9953 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9954 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9955 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9956 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9957 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9958 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9959 | ( |
9960 | cat <<\_ASBOX | |
9961 | ## ------------------------------------------ ## | |
9962 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9963 | ## ------------------------------------------ ## | |
9964 | _ASBOX | |
9965 | ) | | |
9966 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9967 | ;; |
9968 | esac | |
b4e70030 JB |
9969 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9970 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9971 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9972 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9973 | else | |
9974 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9975 | fi |
b4e70030 JB |
9976 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9977 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9978 | |
5ee754fc | 9979 | fi |
bec39cab AC |
9980 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9981 | cat >>confdefs.h <<_ACEOF | |
9982 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9983 | _ACEOF | |
9984 | ||
5ee754fc | 9985 | fi |
bec39cab | 9986 | |
5ee754fc MK |
9987 | done |
9988 | ||
bec39cab AC |
9989 | |
9990 | for ac_header in sys/select.h | |
5ee754fc | 9991 | do |
bec39cab | 9992 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9993 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9994 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9995 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9996 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9998 | fi | |
b4e70030 JB |
9999 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10000 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10001 | else |
10002 | # Is the header compilable? | |
b4e70030 JB |
10003 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10004 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10005 | cat >conftest.$ac_ext <<_ACEOF |
10006 | /* confdefs.h. */ | |
10007 | _ACEOF | |
10008 | cat confdefs.h >>conftest.$ac_ext | |
10009 | cat >>conftest.$ac_ext <<_ACEOF | |
10010 | /* end confdefs.h. */ | |
10011 | $ac_includes_default | |
10012 | #include <$ac_header> | |
10013 | _ACEOF | |
10014 | rm -f conftest.$ac_objext | |
10015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10016 | (eval $ac_compile) 2>conftest.er1 | |
10017 | ac_status=$? | |
10018 | grep -v '^ *+' conftest.er1 >conftest.err | |
10019 | rm -f conftest.er1 | |
10020 | cat conftest.err >&5 | |
10021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10022 | (exit $ac_status); } && | |
b4e70030 JB |
10023 | { ac_try='test -z "$ac_c_werror_flag" |
10024 | || test ! -s conftest.err' | |
bec39cab AC |
10025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10026 | (eval $ac_try) 2>&5 | |
10027 | ac_status=$? | |
10028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10029 | (exit $ac_status); }; } && | |
10030 | { ac_try='test -s conftest.$ac_objext' | |
10031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10032 | (eval $ac_try) 2>&5 | |
10033 | ac_status=$? | |
10034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10035 | (exit $ac_status); }; }; then | |
10036 | ac_header_compiler=yes | |
10037 | else | |
10038 | echo "$as_me: failed program was:" >&5 | |
10039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10040 | ||
b4e70030 | 10041 | ac_header_compiler=no |
bec39cab AC |
10042 | fi |
10043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10044 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10045 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10046 | |
10047 | # Is the header present? | |
b4e70030 JB |
10048 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10049 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10050 | cat >conftest.$ac_ext <<_ACEOF |
10051 | /* confdefs.h. */ | |
10052 | _ACEOF | |
10053 | cat confdefs.h >>conftest.$ac_ext | |
10054 | cat >>conftest.$ac_ext <<_ACEOF | |
10055 | /* end confdefs.h. */ | |
10056 | #include <$ac_header> | |
10057 | _ACEOF | |
10058 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10059 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10060 | ac_status=$? | |
10061 | grep -v '^ *+' conftest.er1 >conftest.err | |
10062 | rm -f conftest.er1 | |
10063 | cat conftest.err >&5 | |
10064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10065 | (exit $ac_status); } >/dev/null; then | |
10066 | if test -s conftest.err; then | |
10067 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10068 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10069 | else | |
10070 | ac_cpp_err= | |
10071 | fi | |
10072 | else | |
10073 | ac_cpp_err=yes | |
5ee754fc | 10074 | fi |
bec39cab AC |
10075 | if test -z "$ac_cpp_err"; then |
10076 | ac_header_preproc=yes | |
5ee754fc | 10077 | else |
bec39cab AC |
10078 | echo "$as_me: failed program was:" >&5 |
10079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10080 | ||
10081 | ac_header_preproc=no | |
5ee754fc | 10082 | fi |
bec39cab | 10083 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10084 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10085 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10086 | |
bec39cab AC |
10087 | # So? What about this header? |
10088 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10089 | yes:no: ) | |
10090 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10091 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10092 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10093 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10094 | ac_header_preproc=yes | |
10095 | ;; | |
10096 | no:yes:* ) | |
10097 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10098 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10099 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10100 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10101 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10102 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10103 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10104 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10105 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10106 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10107 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10108 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10109 | ( |
10110 | cat <<\_ASBOX | |
10111 | ## ------------------------------------------ ## | |
10112 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10113 | ## ------------------------------------------ ## | |
10114 | _ASBOX | |
10115 | ) | | |
10116 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10117 | ;; |
10118 | esac | |
b4e70030 JB |
10119 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10120 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10121 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10123 | else | |
10124 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 10125 | fi |
b4e70030 JB |
10126 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10127 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10128 | |
5ee754fc | 10129 | fi |
bec39cab AC |
10130 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10131 | cat >>confdefs.h <<_ACEOF | |
10132 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10133 | _ACEOF | |
10134 | ||
5ee754fc | 10135 | fi |
bec39cab | 10136 | |
5ee754fc MK |
10137 | done |
10138 | ||
bec39cab AC |
10139 | |
10140 | for ac_header in sys/syscall.h | |
5ee754fc | 10141 | do |
bec39cab | 10142 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10143 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10144 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10145 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10146 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10148 | fi | |
b4e70030 JB |
10149 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10150 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10151 | else |
10152 | # Is the header compilable? | |
b4e70030 JB |
10153 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10154 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10155 | cat >conftest.$ac_ext <<_ACEOF |
10156 | /* confdefs.h. */ | |
10157 | _ACEOF | |
10158 | cat confdefs.h >>conftest.$ac_ext | |
10159 | cat >>conftest.$ac_ext <<_ACEOF | |
10160 | /* end confdefs.h. */ | |
10161 | $ac_includes_default | |
10162 | #include <$ac_header> | |
10163 | _ACEOF | |
10164 | rm -f conftest.$ac_objext | |
10165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10166 | (eval $ac_compile) 2>conftest.er1 | |
10167 | ac_status=$? | |
10168 | grep -v '^ *+' conftest.er1 >conftest.err | |
10169 | rm -f conftest.er1 | |
10170 | cat conftest.err >&5 | |
10171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10172 | (exit $ac_status); } && | |
b4e70030 JB |
10173 | { ac_try='test -z "$ac_c_werror_flag" |
10174 | || test ! -s conftest.err' | |
bec39cab AC |
10175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10176 | (eval $ac_try) 2>&5 | |
10177 | ac_status=$? | |
10178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10179 | (exit $ac_status); }; } && | |
10180 | { ac_try='test -s conftest.$ac_objext' | |
10181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10182 | (eval $ac_try) 2>&5 | |
10183 | ac_status=$? | |
10184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10185 | (exit $ac_status); }; }; then | |
10186 | ac_header_compiler=yes | |
10187 | else | |
10188 | echo "$as_me: failed program was:" >&5 | |
10189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10190 | ||
b4e70030 | 10191 | ac_header_compiler=no |
bec39cab AC |
10192 | fi |
10193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10194 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10195 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10196 | |
10197 | # Is the header present? | |
b4e70030 JB |
10198 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10199 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10200 | cat >conftest.$ac_ext <<_ACEOF |
10201 | /* confdefs.h. */ | |
10202 | _ACEOF | |
10203 | cat confdefs.h >>conftest.$ac_ext | |
10204 | cat >>conftest.$ac_ext <<_ACEOF | |
10205 | /* end confdefs.h. */ | |
10206 | #include <$ac_header> | |
10207 | _ACEOF | |
10208 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10209 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10210 | ac_status=$? | |
10211 | grep -v '^ *+' conftest.er1 >conftest.err | |
10212 | rm -f conftest.er1 | |
10213 | cat conftest.err >&5 | |
10214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10215 | (exit $ac_status); } >/dev/null; then | |
10216 | if test -s conftest.err; then | |
10217 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10218 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10219 | else | |
10220 | ac_cpp_err= | |
10221 | fi | |
10222 | else | |
10223 | ac_cpp_err=yes | |
5ee754fc | 10224 | fi |
bec39cab AC |
10225 | if test -z "$ac_cpp_err"; then |
10226 | ac_header_preproc=yes | |
5ee754fc | 10227 | else |
bec39cab AC |
10228 | echo "$as_me: failed program was:" >&5 |
10229 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10230 | ||
10231 | ac_header_preproc=no | |
5ee754fc | 10232 | fi |
bec39cab | 10233 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10234 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10235 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10236 | |
bec39cab AC |
10237 | # So? What about this header? |
10238 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10239 | yes:no: ) | |
10240 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10241 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10242 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10243 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10244 | ac_header_preproc=yes | |
10245 | ;; | |
10246 | no:yes:* ) | |
10247 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10248 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10249 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10250 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10251 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10252 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10253 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10254 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10255 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10256 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10257 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10258 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10259 | ( |
10260 | cat <<\_ASBOX | |
10261 | ## ------------------------------------------ ## | |
10262 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10263 | ## ------------------------------------------ ## | |
10264 | _ASBOX | |
10265 | ) | | |
10266 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10267 | ;; |
10268 | esac | |
b4e70030 JB |
10269 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10270 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10271 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10272 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10273 | else | |
10274 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 10275 | fi |
b4e70030 JB |
10276 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10277 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10278 | |
5ee754fc | 10279 | fi |
bec39cab AC |
10280 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10281 | cat >>confdefs.h <<_ACEOF | |
10282 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10283 | _ACEOF | |
10284 | ||
5ee754fc | 10285 | fi |
bec39cab | 10286 | |
5ee754fc MK |
10287 | done |
10288 | ||
bec39cab AC |
10289 | |
10290 | for ac_header in sys/types.h | |
5ee754fc | 10291 | do |
bec39cab | 10292 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10293 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10294 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10295 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10296 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10298 | fi | |
b4e70030 JB |
10299 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10300 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10301 | else |
10302 | # Is the header compilable? | |
b4e70030 JB |
10303 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10304 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10305 | cat >conftest.$ac_ext <<_ACEOF |
10306 | /* confdefs.h. */ | |
10307 | _ACEOF | |
10308 | cat confdefs.h >>conftest.$ac_ext | |
10309 | cat >>conftest.$ac_ext <<_ACEOF | |
10310 | /* end confdefs.h. */ | |
10311 | $ac_includes_default | |
10312 | #include <$ac_header> | |
10313 | _ACEOF | |
10314 | rm -f conftest.$ac_objext | |
10315 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10316 | (eval $ac_compile) 2>conftest.er1 | |
10317 | ac_status=$? | |
10318 | grep -v '^ *+' conftest.er1 >conftest.err | |
10319 | rm -f conftest.er1 | |
10320 | cat conftest.err >&5 | |
10321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10322 | (exit $ac_status); } && | |
b4e70030 JB |
10323 | { ac_try='test -z "$ac_c_werror_flag" |
10324 | || test ! -s conftest.err' | |
bec39cab AC |
10325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10326 | (eval $ac_try) 2>&5 | |
10327 | ac_status=$? | |
10328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10329 | (exit $ac_status); }; } && | |
10330 | { ac_try='test -s conftest.$ac_objext' | |
10331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10332 | (eval $ac_try) 2>&5 | |
10333 | ac_status=$? | |
10334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10335 | (exit $ac_status); }; }; then | |
10336 | ac_header_compiler=yes | |
10337 | else | |
10338 | echo "$as_me: failed program was:" >&5 | |
10339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10340 | ||
b4e70030 | 10341 | ac_header_compiler=no |
bec39cab AC |
10342 | fi |
10343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10344 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10345 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10346 | |
10347 | # Is the header present? | |
b4e70030 JB |
10348 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10349 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10350 | cat >conftest.$ac_ext <<_ACEOF |
10351 | /* confdefs.h. */ | |
10352 | _ACEOF | |
10353 | cat confdefs.h >>conftest.$ac_ext | |
10354 | cat >>conftest.$ac_ext <<_ACEOF | |
10355 | /* end confdefs.h. */ | |
10356 | #include <$ac_header> | |
10357 | _ACEOF | |
10358 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10359 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10360 | ac_status=$? | |
10361 | grep -v '^ *+' conftest.er1 >conftest.err | |
10362 | rm -f conftest.er1 | |
10363 | cat conftest.err >&5 | |
10364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10365 | (exit $ac_status); } >/dev/null; then | |
10366 | if test -s conftest.err; then | |
10367 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10368 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10369 | else | |
10370 | ac_cpp_err= | |
10371 | fi | |
10372 | else | |
10373 | ac_cpp_err=yes | |
5ee754fc | 10374 | fi |
bec39cab AC |
10375 | if test -z "$ac_cpp_err"; then |
10376 | ac_header_preproc=yes | |
5ee754fc | 10377 | else |
bec39cab AC |
10378 | echo "$as_me: failed program was:" >&5 |
10379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10380 | ||
10381 | ac_header_preproc=no | |
5ee754fc | 10382 | fi |
bec39cab | 10383 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10384 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10385 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10386 | |
bec39cab AC |
10387 | # So? What about this header? |
10388 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10389 | yes:no: ) | |
10390 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10391 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10392 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10393 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10394 | ac_header_preproc=yes | |
10395 | ;; | |
10396 | no:yes:* ) | |
10397 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10398 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10399 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10400 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10401 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10402 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10403 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10404 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10405 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10406 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10407 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10408 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10409 | ( |
10410 | cat <<\_ASBOX | |
10411 | ## ------------------------------------------ ## | |
10412 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10413 | ## ------------------------------------------ ## | |
10414 | _ASBOX | |
10415 | ) | | |
10416 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10417 | ;; |
10418 | esac | |
b4e70030 JB |
10419 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10420 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10421 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10422 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10423 | else | |
10424 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 10425 | fi |
b4e70030 JB |
10426 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10427 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10428 | |
5ee754fc | 10429 | fi |
bec39cab AC |
10430 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10431 | cat >>confdefs.h <<_ACEOF | |
10432 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10433 | _ACEOF | |
10434 | ||
5ee754fc | 10435 | fi |
bec39cab | 10436 | |
5ee754fc MK |
10437 | done |
10438 | ||
bec39cab AC |
10439 | |
10440 | for ac_header in sys/user.h | |
5ee754fc | 10441 | do |
bec39cab | 10442 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10443 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10444 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10445 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 10446 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 10447 | else |
7cb9022a | 10448 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
10449 | /* confdefs.h. */ |
10450 | _ACEOF | |
10451 | cat confdefs.h >>conftest.$ac_ext | |
10452 | cat >>conftest.$ac_ext <<_ACEOF | |
10453 | /* end confdefs.h. */ | |
7cb9022a MK |
10454 | #if HAVE_SYS_PARAM_H |
10455 | # include <sys/param.h> | |
10456 | #endif | |
10457 | ||
10458 | ||
bec39cab AC |
10459 | #include <$ac_header> |
10460 | _ACEOF | |
10461 | rm -f conftest.$ac_objext | |
10462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10463 | (eval $ac_compile) 2>conftest.er1 | |
10464 | ac_status=$? | |
10465 | grep -v '^ *+' conftest.er1 >conftest.err | |
10466 | rm -f conftest.er1 | |
10467 | cat conftest.err >&5 | |
10468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10469 | (exit $ac_status); } && | |
b4e70030 JB |
10470 | { ac_try='test -z "$ac_c_werror_flag" |
10471 | || test ! -s conftest.err' | |
bec39cab AC |
10472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10473 | (eval $ac_try) 2>&5 | |
10474 | ac_status=$? | |
10475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10476 | (exit $ac_status); }; } && | |
10477 | { ac_try='test -s conftest.$ac_objext' | |
10478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10479 | (eval $ac_try) 2>&5 | |
10480 | ac_status=$? | |
10481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10482 | (exit $ac_status); }; }; then | |
7cb9022a | 10483 | eval "$as_ac_Header=yes" |
bec39cab AC |
10484 | else |
10485 | echo "$as_me: failed program was:" >&5 | |
10486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10487 | ||
b4e70030 | 10488 | eval "$as_ac_Header=no" |
bec39cab AC |
10489 | fi |
10490 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 10491 | fi |
b4e70030 JB |
10492 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10493 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10494 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10495 | cat >>confdefs.h <<_ACEOF | |
10496 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10497 | _ACEOF | |
10498 | ||
5ee754fc | 10499 | fi |
bec39cab | 10500 | |
5ee754fc MK |
10501 | done |
10502 | ||
bec39cab AC |
10503 | |
10504 | ||
10505 | for ac_header in sys/wait.h wait.h | |
5ee754fc | 10506 | do |
bec39cab | 10507 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10508 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10509 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10510 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10511 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10512 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10513 | fi | |
b4e70030 JB |
10514 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10515 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10516 | else |
10517 | # Is the header compilable? | |
b4e70030 JB |
10518 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10519 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10520 | cat >conftest.$ac_ext <<_ACEOF |
10521 | /* confdefs.h. */ | |
10522 | _ACEOF | |
10523 | cat confdefs.h >>conftest.$ac_ext | |
10524 | cat >>conftest.$ac_ext <<_ACEOF | |
10525 | /* end confdefs.h. */ | |
10526 | $ac_includes_default | |
10527 | #include <$ac_header> | |
10528 | _ACEOF | |
10529 | rm -f conftest.$ac_objext | |
10530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10531 | (eval $ac_compile) 2>conftest.er1 | |
10532 | ac_status=$? | |
10533 | grep -v '^ *+' conftest.er1 >conftest.err | |
10534 | rm -f conftest.er1 | |
10535 | cat conftest.err >&5 | |
10536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10537 | (exit $ac_status); } && | |
b4e70030 JB |
10538 | { ac_try='test -z "$ac_c_werror_flag" |
10539 | || test ! -s conftest.err' | |
bec39cab AC |
10540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10541 | (eval $ac_try) 2>&5 | |
10542 | ac_status=$? | |
10543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10544 | (exit $ac_status); }; } && | |
10545 | { ac_try='test -s conftest.$ac_objext' | |
10546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10547 | (eval $ac_try) 2>&5 | |
10548 | ac_status=$? | |
10549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10550 | (exit $ac_status); }; }; then | |
10551 | ac_header_compiler=yes | |
10552 | else | |
10553 | echo "$as_me: failed program was:" >&5 | |
10554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10555 | ||
b4e70030 | 10556 | ac_header_compiler=no |
bec39cab AC |
10557 | fi |
10558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10559 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10560 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10561 | |
10562 | # Is the header present? | |
b4e70030 JB |
10563 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10564 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10565 | cat >conftest.$ac_ext <<_ACEOF |
10566 | /* confdefs.h. */ | |
10567 | _ACEOF | |
10568 | cat confdefs.h >>conftest.$ac_ext | |
10569 | cat >>conftest.$ac_ext <<_ACEOF | |
10570 | /* end confdefs.h. */ | |
10571 | #include <$ac_header> | |
10572 | _ACEOF | |
10573 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10574 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10575 | ac_status=$? | |
10576 | grep -v '^ *+' conftest.er1 >conftest.err | |
10577 | rm -f conftest.er1 | |
10578 | cat conftest.err >&5 | |
10579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10580 | (exit $ac_status); } >/dev/null; then | |
10581 | if test -s conftest.err; then | |
10582 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10583 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10584 | else | |
10585 | ac_cpp_err= | |
10586 | fi | |
10587 | else | |
10588 | ac_cpp_err=yes | |
5ee754fc | 10589 | fi |
bec39cab AC |
10590 | if test -z "$ac_cpp_err"; then |
10591 | ac_header_preproc=yes | |
5ee754fc | 10592 | else |
bec39cab AC |
10593 | echo "$as_me: failed program was:" >&5 |
10594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10595 | ||
10596 | ac_header_preproc=no | |
5ee754fc | 10597 | fi |
bec39cab | 10598 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10599 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10600 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10601 | |
bec39cab AC |
10602 | # So? What about this header? |
10603 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10604 | yes:no: ) | |
10605 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10606 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10607 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10608 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10609 | ac_header_preproc=yes | |
10610 | ;; | |
10611 | no:yes:* ) | |
10612 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10613 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10614 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10615 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10616 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10617 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10618 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10619 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10620 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10621 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10622 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10623 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10624 | ( |
10625 | cat <<\_ASBOX | |
10626 | ## ------------------------------------------ ## | |
10627 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10628 | ## ------------------------------------------ ## | |
10629 | _ASBOX | |
10630 | ) | | |
10631 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10632 | ;; |
10633 | esac | |
b4e70030 JB |
10634 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10636 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10638 | else | |
10639 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 10640 | fi |
b4e70030 JB |
10641 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10642 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10643 | |
9608ab8b | 10644 | fi |
bec39cab AC |
10645 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10646 | cat >>confdefs.h <<_ACEOF | |
10647 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10648 | _ACEOF | |
10649 | ||
9608ab8b | 10650 | fi |
bec39cab | 10651 | |
9608ab8b | 10652 | done |
5ee754fc | 10653 | |
bec39cab AC |
10654 | |
10655 | ||
10656 | ||
10657 | for ac_header in termios.h termio.h sgtty.h | |
5ee754fc | 10658 | do |
bec39cab | 10659 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10660 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10661 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10662 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10663 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10665 | fi | |
b4e70030 JB |
10666 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10667 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10668 | else |
10669 | # Is the header compilable? | |
b4e70030 JB |
10670 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10671 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10672 | cat >conftest.$ac_ext <<_ACEOF |
10673 | /* confdefs.h. */ | |
10674 | _ACEOF | |
10675 | cat confdefs.h >>conftest.$ac_ext | |
10676 | cat >>conftest.$ac_ext <<_ACEOF | |
10677 | /* end confdefs.h. */ | |
10678 | $ac_includes_default | |
10679 | #include <$ac_header> | |
10680 | _ACEOF | |
10681 | rm -f conftest.$ac_objext | |
10682 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10683 | (eval $ac_compile) 2>conftest.er1 | |
10684 | ac_status=$? | |
10685 | grep -v '^ *+' conftest.er1 >conftest.err | |
10686 | rm -f conftest.er1 | |
10687 | cat conftest.err >&5 | |
10688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10689 | (exit $ac_status); } && | |
b4e70030 JB |
10690 | { ac_try='test -z "$ac_c_werror_flag" |
10691 | || test ! -s conftest.err' | |
bec39cab AC |
10692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10693 | (eval $ac_try) 2>&5 | |
10694 | ac_status=$? | |
10695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10696 | (exit $ac_status); }; } && | |
10697 | { ac_try='test -s conftest.$ac_objext' | |
10698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10699 | (eval $ac_try) 2>&5 | |
10700 | ac_status=$? | |
10701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10702 | (exit $ac_status); }; }; then | |
10703 | ac_header_compiler=yes | |
10704 | else | |
10705 | echo "$as_me: failed program was:" >&5 | |
10706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10707 | ||
b4e70030 | 10708 | ac_header_compiler=no |
bec39cab AC |
10709 | fi |
10710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10711 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10712 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10713 | |
10714 | # Is the header present? | |
b4e70030 JB |
10715 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10716 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10717 | cat >conftest.$ac_ext <<_ACEOF |
10718 | /* confdefs.h. */ | |
10719 | _ACEOF | |
10720 | cat confdefs.h >>conftest.$ac_ext | |
10721 | cat >>conftest.$ac_ext <<_ACEOF | |
10722 | /* end confdefs.h. */ | |
10723 | #include <$ac_header> | |
10724 | _ACEOF | |
10725 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10726 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10727 | ac_status=$? | |
10728 | grep -v '^ *+' conftest.er1 >conftest.err | |
10729 | rm -f conftest.er1 | |
10730 | cat conftest.err >&5 | |
10731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10732 | (exit $ac_status); } >/dev/null; then | |
10733 | if test -s conftest.err; then | |
10734 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10735 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10736 | else | |
10737 | ac_cpp_err= | |
10738 | fi | |
10739 | else | |
10740 | ac_cpp_err=yes | |
9608ab8b | 10741 | fi |
bec39cab AC |
10742 | if test -z "$ac_cpp_err"; then |
10743 | ac_header_preproc=yes | |
9608ab8b | 10744 | else |
bec39cab AC |
10745 | echo "$as_me: failed program was:" >&5 |
10746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10747 | ||
10748 | ac_header_preproc=no | |
9608ab8b | 10749 | fi |
bec39cab | 10750 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10751 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10752 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9608ab8b | 10753 | |
bec39cab AC |
10754 | # So? What about this header? |
10755 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10756 | yes:no: ) | |
10757 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10758 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10759 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10760 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10761 | ac_header_preproc=yes | |
10762 | ;; | |
10763 | no:yes:* ) | |
10764 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10765 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10766 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10767 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10768 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10769 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10770 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10771 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10772 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10773 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10774 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10775 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10776 | ( |
10777 | cat <<\_ASBOX | |
10778 | ## ------------------------------------------ ## | |
10779 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10780 | ## ------------------------------------------ ## | |
10781 | _ASBOX | |
10782 | ) | | |
10783 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10784 | ;; |
10785 | esac | |
b4e70030 JB |
10786 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10787 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10788 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10790 | else | |
10791 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 10792 | fi |
b4e70030 JB |
10793 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10794 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10795 | |
9608ab8b | 10796 | fi |
bec39cab AC |
10797 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10798 | cat >>confdefs.h <<_ACEOF | |
10799 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10800 | _ACEOF | |
10801 | ||
9608ab8b | 10802 | fi |
bec39cab | 10803 | |
5ee754fc | 10804 | done |
9608ab8b | 10805 | |
bec39cab AC |
10806 | |
10807 | for ac_header in unistd.h | |
78434e59 | 10808 | do |
bec39cab | 10809 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10810 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10811 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10812 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10813 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10814 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10815 | fi | |
b4e70030 JB |
10816 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10817 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10818 | else |
10819 | # Is the header compilable? | |
b4e70030 JB |
10820 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10821 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10822 | cat >conftest.$ac_ext <<_ACEOF |
10823 | /* confdefs.h. */ | |
10824 | _ACEOF | |
10825 | cat confdefs.h >>conftest.$ac_ext | |
10826 | cat >>conftest.$ac_ext <<_ACEOF | |
10827 | /* end confdefs.h. */ | |
10828 | $ac_includes_default | |
10829 | #include <$ac_header> | |
10830 | _ACEOF | |
10831 | rm -f conftest.$ac_objext | |
10832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10833 | (eval $ac_compile) 2>conftest.er1 | |
10834 | ac_status=$? | |
10835 | grep -v '^ *+' conftest.er1 >conftest.err | |
10836 | rm -f conftest.er1 | |
10837 | cat conftest.err >&5 | |
10838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10839 | (exit $ac_status); } && | |
b4e70030 JB |
10840 | { ac_try='test -z "$ac_c_werror_flag" |
10841 | || test ! -s conftest.err' | |
bec39cab AC |
10842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10843 | (eval $ac_try) 2>&5 | |
10844 | ac_status=$? | |
10845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10846 | (exit $ac_status); }; } && | |
10847 | { ac_try='test -s conftest.$ac_objext' | |
10848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10849 | (eval $ac_try) 2>&5 | |
10850 | ac_status=$? | |
10851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10852 | (exit $ac_status); }; }; then | |
10853 | ac_header_compiler=yes | |
10854 | else | |
10855 | echo "$as_me: failed program was:" >&5 | |
10856 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10857 | ||
b4e70030 | 10858 | ac_header_compiler=no |
bec39cab AC |
10859 | fi |
10860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10861 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10862 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10863 | |
10864 | # Is the header present? | |
b4e70030 JB |
10865 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10866 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10867 | cat >conftest.$ac_ext <<_ACEOF |
10868 | /* confdefs.h. */ | |
10869 | _ACEOF | |
10870 | cat confdefs.h >>conftest.$ac_ext | |
10871 | cat >>conftest.$ac_ext <<_ACEOF | |
10872 | /* end confdefs.h. */ | |
10873 | #include <$ac_header> | |
10874 | _ACEOF | |
10875 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10876 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10877 | ac_status=$? | |
10878 | grep -v '^ *+' conftest.er1 >conftest.err | |
10879 | rm -f conftest.er1 | |
10880 | cat conftest.err >&5 | |
10881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10882 | (exit $ac_status); } >/dev/null; then | |
10883 | if test -s conftest.err; then | |
10884 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10885 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10886 | else | |
10887 | ac_cpp_err= | |
10888 | fi | |
10889 | else | |
10890 | ac_cpp_err=yes | |
78434e59 | 10891 | fi |
bec39cab AC |
10892 | if test -z "$ac_cpp_err"; then |
10893 | ac_header_preproc=yes | |
78434e59 | 10894 | else |
bec39cab AC |
10895 | echo "$as_me: failed program was:" >&5 |
10896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10897 | ||
10898 | ac_header_preproc=no | |
78434e59 | 10899 | fi |
bec39cab | 10900 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10901 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10902 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
78434e59 | 10903 | |
bec39cab AC |
10904 | # So? What about this header? |
10905 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10906 | yes:no: ) | |
10907 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10908 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10909 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10910 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10911 | ac_header_preproc=yes | |
10912 | ;; | |
10913 | no:yes:* ) | |
10914 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10915 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10916 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10917 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10918 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10919 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10920 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10921 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10922 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10923 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10924 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10925 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10926 | ( |
10927 | cat <<\_ASBOX | |
10928 | ## ------------------------------------------ ## | |
10929 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10930 | ## ------------------------------------------ ## | |
10931 | _ASBOX | |
10932 | ) | | |
10933 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10934 | ;; |
10935 | esac | |
b4e70030 JB |
10936 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10937 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10938 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10940 | else | |
10941 | eval "$as_ac_Header=\$ac_header_preproc" | |
086ec9eb | 10942 | fi |
b4e70030 JB |
10943 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10944 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10945 | |
086ec9eb | 10946 | fi |
bec39cab AC |
10947 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10948 | cat >>confdefs.h <<_ACEOF | |
10949 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10950 | _ACEOF | |
10951 | ||
086ec9eb | 10952 | fi |
bec39cab | 10953 | |
086ec9eb MK |
10954 | done |
10955 | ||
9608ab8b | 10956 | |
b1d19a62 | 10957 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
5ee754fc MK |
10958 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
10959 | # think that we don't have <curses.h> if we're using GCC. | |
10960 | case $host_os in | |
b1d19a62 | 10961 | solaris2.[789]) |
5ee754fc | 10962 | if test "$GCC" = yes; then |
bec39cab AC |
10963 | |
10964 | cat >>confdefs.h <<\_ACEOF | |
5ee754fc | 10965 | #define _MSE_INT_H 1 |
bec39cab | 10966 | _ACEOF |
5ee754fc MK |
10967 | |
10968 | fi ;; | |
10969 | esac | |
bec39cab AC |
10970 | |
10971 | ||
10972 | ||
10973 | ||
10974 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h | |
5ee754fc | 10975 | do |
bec39cab | 10976 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10977 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10978 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10979 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10980 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10982 | fi | |
b4e70030 JB |
10983 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10984 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10985 | else |
10986 | # Is the header compilable? | |
b4e70030 JB |
10987 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10988 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10989 | cat >conftest.$ac_ext <<_ACEOF |
10990 | /* confdefs.h. */ | |
10991 | _ACEOF | |
10992 | cat confdefs.h >>conftest.$ac_ext | |
10993 | cat >>conftest.$ac_ext <<_ACEOF | |
10994 | /* end confdefs.h. */ | |
10995 | $ac_includes_default | |
10996 | #include <$ac_header> | |
10997 | _ACEOF | |
10998 | rm -f conftest.$ac_objext | |
10999 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11000 | (eval $ac_compile) 2>conftest.er1 | |
11001 | ac_status=$? | |
11002 | grep -v '^ *+' conftest.er1 >conftest.err | |
11003 | rm -f conftest.er1 | |
11004 | cat conftest.err >&5 | |
11005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11006 | (exit $ac_status); } && | |
b4e70030 JB |
11007 | { ac_try='test -z "$ac_c_werror_flag" |
11008 | || test ! -s conftest.err' | |
bec39cab AC |
11009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11010 | (eval $ac_try) 2>&5 | |
11011 | ac_status=$? | |
11012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11013 | (exit $ac_status); }; } && | |
11014 | { ac_try='test -s conftest.$ac_objext' | |
11015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11016 | (eval $ac_try) 2>&5 | |
11017 | ac_status=$? | |
11018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11019 | (exit $ac_status); }; }; then | |
11020 | ac_header_compiler=yes | |
11021 | else | |
11022 | echo "$as_me: failed program was:" >&5 | |
11023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11024 | ||
b4e70030 | 11025 | ac_header_compiler=no |
bec39cab AC |
11026 | fi |
11027 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
11028 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11029 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
11030 | |
11031 | # Is the header present? | |
b4e70030 JB |
11032 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11033 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
11034 | cat >conftest.$ac_ext <<_ACEOF |
11035 | /* confdefs.h. */ | |
11036 | _ACEOF | |
11037 | cat confdefs.h >>conftest.$ac_ext | |
11038 | cat >>conftest.$ac_ext <<_ACEOF | |
11039 | /* end confdefs.h. */ | |
11040 | #include <$ac_header> | |
11041 | _ACEOF | |
11042 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11043 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11044 | ac_status=$? | |
11045 | grep -v '^ *+' conftest.er1 >conftest.err | |
11046 | rm -f conftest.er1 | |
11047 | cat conftest.err >&5 | |
11048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11049 | (exit $ac_status); } >/dev/null; then | |
11050 | if test -s conftest.err; then | |
11051 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11052 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11053 | else | |
11054 | ac_cpp_err= | |
11055 | fi | |
11056 | else | |
11057 | ac_cpp_err=yes | |
c906108c | 11058 | fi |
bec39cab AC |
11059 | if test -z "$ac_cpp_err"; then |
11060 | ac_header_preproc=yes | |
11061 | else | |
11062 | echo "$as_me: failed program was:" >&5 | |
11063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11064 | ||
11065 | ac_header_preproc=no | |
c906108c | 11066 | fi |
bec39cab | 11067 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
11068 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11069 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
11070 | |
11071 | # So? What about this header? | |
11072 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11073 | yes:no: ) | |
11074 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11075 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11076 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11077 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11078 | ac_header_preproc=yes | |
11079 | ;; | |
11080 | no:yes:* ) | |
11081 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11082 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11083 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11084 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11085 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11086 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11087 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11088 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11089 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11090 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11091 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11092 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11093 | ( |
11094 | cat <<\_ASBOX | |
11095 | ## ------------------------------------------ ## | |
11096 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11097 | ## ------------------------------------------ ## | |
11098 | _ASBOX | |
11099 | ) | | |
11100 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11101 | ;; |
11102 | esac | |
b4e70030 JB |
11103 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11104 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11105 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 11107 | else |
bec39cab | 11108 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 11109 | fi |
b4e70030 JB |
11110 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11111 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11112 | |
11113 | fi | |
11114 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11115 | cat >>confdefs.h <<_ACEOF | |
11116 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11117 | _ACEOF | |
11118 | ||
11119 | fi | |
11120 | ||
5ee754fc | 11121 | done |
c906108c | 11122 | |
bec39cab | 11123 | |
065a1afc | 11124 | for ac_header in ncurses/term.h |
3b78cdbb | 11125 | do |
bec39cab | 11126 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
11127 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11128 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11129 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11130 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11131 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11132 | fi | |
b4e70030 JB |
11133 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11134 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11135 | else |
11136 | # Is the header compilable? | |
b4e70030 JB |
11137 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11138 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
11139 | cat >conftest.$ac_ext <<_ACEOF |
11140 | /* confdefs.h. */ | |
11141 | _ACEOF | |
11142 | cat confdefs.h >>conftest.$ac_ext | |
11143 | cat >>conftest.$ac_ext <<_ACEOF | |
11144 | /* end confdefs.h. */ | |
11145 | $ac_includes_default | |
11146 | #include <$ac_header> | |
11147 | _ACEOF | |
11148 | rm -f conftest.$ac_objext | |
11149 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11150 | (eval $ac_compile) 2>conftest.er1 | |
11151 | ac_status=$? | |
11152 | grep -v '^ *+' conftest.er1 >conftest.err | |
11153 | rm -f conftest.er1 | |
11154 | cat conftest.err >&5 | |
11155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11156 | (exit $ac_status); } && | |
b4e70030 JB |
11157 | { ac_try='test -z "$ac_c_werror_flag" |
11158 | || test ! -s conftest.err' | |
bec39cab AC |
11159 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11160 | (eval $ac_try) 2>&5 | |
11161 | ac_status=$? | |
11162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11163 | (exit $ac_status); }; } && | |
11164 | { ac_try='test -s conftest.$ac_objext' | |
11165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11166 | (eval $ac_try) 2>&5 | |
11167 | ac_status=$? | |
11168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11169 | (exit $ac_status); }; }; then | |
11170 | ac_header_compiler=yes | |
11171 | else | |
11172 | echo "$as_me: failed program was:" >&5 | |
11173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11174 | ||
b4e70030 | 11175 | ac_header_compiler=no |
bec39cab AC |
11176 | fi |
11177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
11178 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11179 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
11180 | |
11181 | # Is the header present? | |
b4e70030 JB |
11182 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11183 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
11184 | cat >conftest.$ac_ext <<_ACEOF |
11185 | /* confdefs.h. */ | |
11186 | _ACEOF | |
11187 | cat confdefs.h >>conftest.$ac_ext | |
11188 | cat >>conftest.$ac_ext <<_ACEOF | |
11189 | /* end confdefs.h. */ | |
11190 | #include <$ac_header> | |
11191 | _ACEOF | |
11192 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11193 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11194 | ac_status=$? | |
11195 | grep -v '^ *+' conftest.er1 >conftest.err | |
11196 | rm -f conftest.er1 | |
11197 | cat conftest.err >&5 | |
11198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11199 | (exit $ac_status); } >/dev/null; then | |
11200 | if test -s conftest.err; then | |
11201 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11202 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11203 | else | |
11204 | ac_cpp_err= | |
11205 | fi | |
11206 | else | |
11207 | ac_cpp_err=yes | |
3b78cdbb | 11208 | fi |
bec39cab AC |
11209 | if test -z "$ac_cpp_err"; then |
11210 | ac_header_preproc=yes | |
11211 | else | |
11212 | echo "$as_me: failed program was:" >&5 | |
11213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11214 | ||
11215 | ac_header_preproc=no | |
3b78cdbb | 11216 | fi |
bec39cab | 11217 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
11218 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11219 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
11220 | |
11221 | # So? What about this header? | |
11222 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11223 | yes:no: ) | |
11224 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11225 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11226 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11227 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11228 | ac_header_preproc=yes | |
11229 | ;; | |
11230 | no:yes:* ) | |
11231 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11232 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11233 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11234 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11235 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11236 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11237 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11238 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11239 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11240 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11241 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11242 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11243 | ( |
11244 | cat <<\_ASBOX | |
11245 | ## ------------------------------------------ ## | |
11246 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11247 | ## ------------------------------------------ ## | |
11248 | _ASBOX | |
11249 | ) | | |
11250 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11251 | ;; |
11252 | esac | |
b4e70030 JB |
11253 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11254 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11255 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3b78cdbb | 11257 | else |
bec39cab AC |
11258 | eval "$as_ac_Header=\$ac_header_preproc" |
11259 | fi | |
b4e70030 JB |
11260 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11261 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 11262 | |
3b78cdbb | 11263 | fi |
bec39cab AC |
11264 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11265 | cat >>confdefs.h <<_ACEOF | |
11266 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11267 | _ACEOF | |
11268 | ||
11269 | fi | |
11270 | ||
3b78cdbb DA |
11271 | done |
11272 | ||
c906108c | 11273 | |
065a1afc JB |
11274 | for ac_header in term.h |
11275 | do | |
11276 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
11277 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11278 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11279 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
065a1afc JB |
11280 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11281 | else | |
11282 | cat >conftest.$ac_ext <<_ACEOF | |
11283 | /* confdefs.h. */ | |
11284 | _ACEOF | |
11285 | cat confdefs.h >>conftest.$ac_ext | |
11286 | cat >>conftest.$ac_ext <<_ACEOF | |
11287 | /* end confdefs.h. */ | |
11288 | #if HAVE_CURSES_H | |
11289 | # include <curses.h> | |
11290 | #endif | |
11291 | ||
11292 | ||
11293 | #include <$ac_header> | |
11294 | _ACEOF | |
11295 | rm -f conftest.$ac_objext | |
11296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11297 | (eval $ac_compile) 2>conftest.er1 | |
11298 | ac_status=$? | |
11299 | grep -v '^ *+' conftest.er1 >conftest.err | |
11300 | rm -f conftest.er1 | |
11301 | cat conftest.err >&5 | |
11302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11303 | (exit $ac_status); } && | |
b4e70030 JB |
11304 | { ac_try='test -z "$ac_c_werror_flag" |
11305 | || test ! -s conftest.err' | |
065a1afc JB |
11306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11307 | (eval $ac_try) 2>&5 | |
11308 | ac_status=$? | |
11309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11310 | (exit $ac_status); }; } && | |
11311 | { ac_try='test -s conftest.$ac_objext' | |
11312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11313 | (eval $ac_try) 2>&5 | |
11314 | ac_status=$? | |
11315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11316 | (exit $ac_status); }; }; then | |
11317 | eval "$as_ac_Header=yes" | |
11318 | else | |
11319 | echo "$as_me: failed program was:" >&5 | |
11320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11321 | ||
b4e70030 | 11322 | eval "$as_ac_Header=no" |
065a1afc JB |
11323 | fi |
11324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11325 | fi | |
b4e70030 JB |
11326 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11327 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
065a1afc JB |
11328 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11329 | cat >>confdefs.h <<_ACEOF | |
11330 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11331 | _ACEOF | |
11332 | ||
11333 | fi | |
11334 | ||
11335 | done | |
11336 | ||
11337 | ||
5ee754fc MK |
11338 | # FIXME: kettenis/20030102: In most cases we include these |
11339 | # unconditionally, so what's the point in checking these? | |
bec39cab AC |
11340 | |
11341 | ||
11342 | for ac_header in ctype.h time.h | |
c906108c | 11343 | do |
bec39cab | 11344 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
11345 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11346 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11348 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11350 | fi | |
b4e70030 JB |
11351 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11352 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11353 | else |
11354 | # Is the header compilable? | |
b4e70030 JB |
11355 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11356 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
11357 | cat >conftest.$ac_ext <<_ACEOF |
11358 | /* confdefs.h. */ | |
11359 | _ACEOF | |
11360 | cat confdefs.h >>conftest.$ac_ext | |
11361 | cat >>conftest.$ac_ext <<_ACEOF | |
11362 | /* end confdefs.h. */ | |
11363 | $ac_includes_default | |
11364 | #include <$ac_header> | |
11365 | _ACEOF | |
11366 | rm -f conftest.$ac_objext | |
11367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11368 | (eval $ac_compile) 2>conftest.er1 | |
11369 | ac_status=$? | |
11370 | grep -v '^ *+' conftest.er1 >conftest.err | |
11371 | rm -f conftest.er1 | |
11372 | cat conftest.err >&5 | |
11373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11374 | (exit $ac_status); } && | |
b4e70030 JB |
11375 | { ac_try='test -z "$ac_c_werror_flag" |
11376 | || test ! -s conftest.err' | |
bec39cab AC |
11377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11378 | (eval $ac_try) 2>&5 | |
11379 | ac_status=$? | |
11380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11381 | (exit $ac_status); }; } && | |
11382 | { ac_try='test -s conftest.$ac_objext' | |
11383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11384 | (eval $ac_try) 2>&5 | |
11385 | ac_status=$? | |
11386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11387 | (exit $ac_status); }; }; then | |
11388 | ac_header_compiler=yes | |
11389 | else | |
11390 | echo "$as_me: failed program was:" >&5 | |
11391 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11392 | ||
b4e70030 | 11393 | ac_header_compiler=no |
bec39cab AC |
11394 | fi |
11395 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
11396 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11397 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
11398 | |
11399 | # Is the header present? | |
b4e70030 JB |
11400 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11401 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
11402 | cat >conftest.$ac_ext <<_ACEOF |
11403 | /* confdefs.h. */ | |
11404 | _ACEOF | |
11405 | cat confdefs.h >>conftest.$ac_ext | |
11406 | cat >>conftest.$ac_ext <<_ACEOF | |
11407 | /* end confdefs.h. */ | |
11408 | #include <$ac_header> | |
11409 | _ACEOF | |
11410 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11411 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11412 | ac_status=$? | |
11413 | grep -v '^ *+' conftest.er1 >conftest.err | |
11414 | rm -f conftest.er1 | |
11415 | cat conftest.err >&5 | |
11416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11417 | (exit $ac_status); } >/dev/null; then | |
11418 | if test -s conftest.err; then | |
11419 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11420 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11421 | else | |
11422 | ac_cpp_err= | |
11423 | fi | |
11424 | else | |
11425 | ac_cpp_err=yes | |
c906108c | 11426 | fi |
bec39cab AC |
11427 | if test -z "$ac_cpp_err"; then |
11428 | ac_header_preproc=yes | |
11429 | else | |
11430 | echo "$as_me: failed program was:" >&5 | |
11431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11432 | ||
11433 | ac_header_preproc=no | |
c906108c | 11434 | fi |
bec39cab | 11435 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
11436 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11437 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
11438 | |
11439 | # So? What about this header? | |
11440 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11441 | yes:no: ) | |
11442 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11443 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11444 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11445 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11446 | ac_header_preproc=yes | |
11447 | ;; | |
11448 | no:yes:* ) | |
11449 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11450 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11451 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11452 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11453 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11454 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11455 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11456 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11457 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11458 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11459 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11460 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11461 | ( |
11462 | cat <<\_ASBOX | |
11463 | ## ------------------------------------------ ## | |
11464 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11465 | ## ------------------------------------------ ## | |
11466 | _ASBOX | |
11467 | ) | | |
11468 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11469 | ;; |
11470 | esac | |
b4e70030 JB |
11471 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11472 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11473 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 11475 | else |
bec39cab AC |
11476 | eval "$as_ac_Header=\$ac_header_preproc" |
11477 | fi | |
b4e70030 JB |
11478 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11479 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11480 | |
11481 | fi | |
11482 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11483 | cat >>confdefs.h <<_ACEOF | |
11484 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11485 | _ACEOF | |
11486 | ||
c906108c | 11487 | fi |
bec39cab | 11488 | |
c906108c SS |
11489 | done |
11490 | ||
5ee754fc | 11491 | |
4e8d927d | 11492 | # Create a header we can use portably to get the standard integer types. |
666ec76f | 11493 | |
4e8d927d DJ |
11494 | |
11495 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
11496 | ||
11497 | acx_cv_header_stdint=stddef.h | |
11498 | acx_cv_header_stdint_kind="(already complete)" | |
11499 | for i in stdint.h $inttype_headers; do | |
11500 | unset ac_cv_type_uintptr_t | |
11501 | unset ac_cv_type_uintmax_t | |
11502 | unset ac_cv_type_int_least32_t | |
11503 | unset ac_cv_type_int_fast32_t | |
11504 | unset ac_cv_type_uint64_t | |
11505 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
b4e70030 JB |
11506 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 |
11507 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
4e8d927d | 11508 | if test "${ac_cv_type_uintmax_t+set}" = set; then |
bec39cab | 11509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
40a7debc | 11510 | else |
bec39cab AC |
11511 | cat >conftest.$ac_ext <<_ACEOF |
11512 | /* confdefs.h. */ | |
11513 | _ACEOF | |
11514 | cat confdefs.h >>conftest.$ac_ext | |
11515 | cat >>conftest.$ac_ext <<_ACEOF | |
11516 | /* end confdefs.h. */ | |
4e8d927d DJ |
11517 | #include <sys/types.h> |
11518 | #include <$i> | |
11519 | ||
bec39cab AC |
11520 | int |
11521 | main () | |
11522 | { | |
b4e70030 | 11523 | if ((uintmax_t *) 0) |
4e8d927d | 11524 | return 0; |
b4e70030 | 11525 | if (sizeof (uintmax_t)) |
4e8d927d DJ |
11526 | return 0; |
11527 | ; | |
bec39cab AC |
11528 | return 0; |
11529 | } | |
11530 | _ACEOF | |
11531 | rm -f conftest.$ac_objext | |
11532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11533 | (eval $ac_compile) 2>conftest.er1 | |
11534 | ac_status=$? | |
11535 | grep -v '^ *+' conftest.er1 >conftest.err | |
11536 | rm -f conftest.er1 | |
11537 | cat conftest.err >&5 | |
11538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11539 | (exit $ac_status); } && | |
b4e70030 JB |
11540 | { ac_try='test -z "$ac_c_werror_flag" |
11541 | || test ! -s conftest.err' | |
bec39cab AC |
11542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11543 | (eval $ac_try) 2>&5 | |
11544 | ac_status=$? | |
11545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11546 | (exit $ac_status); }; } && | |
11547 | { ac_try='test -s conftest.$ac_objext' | |
11548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11549 | (eval $ac_try) 2>&5 | |
11550 | ac_status=$? | |
11551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11552 | (exit $ac_status); }; }; then | |
4e8d927d | 11553 | ac_cv_type_uintmax_t=yes |
40a7debc | 11554 | else |
bec39cab AC |
11555 | echo "$as_me: failed program was:" >&5 |
11556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11557 | ||
b4e70030 | 11558 | ac_cv_type_uintmax_t=no |
40a7debc | 11559 | fi |
bec39cab | 11560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
40a7debc | 11561 | fi |
b4e70030 JB |
11562 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 |
11563 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
4e8d927d DJ |
11564 | if test $ac_cv_type_uintmax_t = yes; then |
11565 | acx_cv_header_stdint=$i | |
666ec76f | 11566 | else |
4e8d927d | 11567 | continue |
666ec76f | 11568 | fi |
4e8d927d | 11569 | |
b4e70030 JB |
11570 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
11571 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
4e8d927d | 11572 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
bec39cab AC |
11573 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11574 | else | |
11575 | cat >conftest.$ac_ext <<_ACEOF | |
11576 | /* confdefs.h. */ | |
11577 | _ACEOF | |
11578 | cat confdefs.h >>conftest.$ac_ext | |
11579 | cat >>conftest.$ac_ext <<_ACEOF | |
11580 | /* end confdefs.h. */ | |
4e8d927d DJ |
11581 | #include <sys/types.h> |
11582 | #include <$i> | |
11583 | ||
666ec76f MK |
11584 | int |
11585 | main () | |
11586 | { | |
b4e70030 | 11587 | if ((uintptr_t *) 0) |
4e8d927d | 11588 | return 0; |
b4e70030 | 11589 | if (sizeof (uintptr_t)) |
4e8d927d | 11590 | return 0; |
666ec76f MK |
11591 | ; |
11592 | return 0; | |
11593 | } | |
11594 | _ACEOF | |
11595 | rm -f conftest.$ac_objext | |
11596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11597 | (eval $ac_compile) 2>conftest.er1 | |
11598 | ac_status=$? | |
11599 | grep -v '^ *+' conftest.er1 >conftest.err | |
11600 | rm -f conftest.er1 | |
11601 | cat conftest.err >&5 | |
11602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11603 | (exit $ac_status); } && | |
b4e70030 JB |
11604 | { ac_try='test -z "$ac_c_werror_flag" |
11605 | || test ! -s conftest.err' | |
666ec76f MK |
11606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11607 | (eval $ac_try) 2>&5 | |
11608 | ac_status=$? | |
11609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11610 | (exit $ac_status); }; } && | |
11611 | { ac_try='test -s conftest.$ac_objext' | |
11612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11613 | (eval $ac_try) 2>&5 | |
11614 | ac_status=$? | |
11615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11616 | (exit $ac_status); }; }; then | |
4e8d927d | 11617 | ac_cv_type_uintptr_t=yes |
666ec76f MK |
11618 | else |
11619 | echo "$as_me: failed program was:" >&5 | |
11620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 11621 | |
b4e70030 | 11622 | ac_cv_type_uintptr_t=no |
a3828db0 MK |
11623 | fi |
11624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11625 | fi | |
b4e70030 JB |
11626 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
11627 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
4e8d927d DJ |
11628 | if test $ac_cv_type_uintptr_t = yes; then |
11629 | : | |
a3828db0 | 11630 | else |
4e8d927d | 11631 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11632 | fi |
4e8d927d | 11633 | |
b4e70030 JB |
11634 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 |
11635 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
4e8d927d | 11636 | if test "${ac_cv_type_int_least32_t+set}" = set; then |
a3828db0 MK |
11637 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11638 | else | |
11639 | cat >conftest.$ac_ext <<_ACEOF | |
666ec76f MK |
11640 | /* confdefs.h. */ |
11641 | _ACEOF | |
11642 | cat confdefs.h >>conftest.$ac_ext | |
11643 | cat >>conftest.$ac_ext <<_ACEOF | |
11644 | /* end confdefs.h. */ | |
4e8d927d DJ |
11645 | #include <sys/types.h> |
11646 | #include <$i> | |
11647 | ||
bec39cab AC |
11648 | int |
11649 | main () | |
11650 | { | |
b4e70030 | 11651 | if ((int_least32_t *) 0) |
4e8d927d | 11652 | return 0; |
b4e70030 | 11653 | if (sizeof (int_least32_t)) |
4e8d927d | 11654 | return 0; |
bec39cab AC |
11655 | ; |
11656 | return 0; | |
11657 | } | |
11658 | _ACEOF | |
11659 | rm -f conftest.$ac_objext | |
11660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11661 | (eval $ac_compile) 2>conftest.er1 | |
11662 | ac_status=$? | |
11663 | grep -v '^ *+' conftest.er1 >conftest.err | |
11664 | rm -f conftest.er1 | |
11665 | cat conftest.err >&5 | |
11666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11667 | (exit $ac_status); } && | |
b4e70030 JB |
11668 | { ac_try='test -z "$ac_c_werror_flag" |
11669 | || test ! -s conftest.err' | |
bec39cab AC |
11670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11671 | (eval $ac_try) 2>&5 | |
11672 | ac_status=$? | |
11673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11674 | (exit $ac_status); }; } && | |
11675 | { ac_try='test -s conftest.$ac_objext' | |
11676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11677 | (eval $ac_try) 2>&5 | |
11678 | ac_status=$? | |
11679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11680 | (exit $ac_status); }; }; then | |
4e8d927d | 11681 | ac_cv_type_int_least32_t=yes |
b9362cc7 | 11682 | else |
bec39cab AC |
11683 | echo "$as_me: failed program was:" >&5 |
11684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11685 | ||
b4e70030 | 11686 | ac_cv_type_int_least32_t=no |
b9362cc7 | 11687 | fi |
bec39cab | 11688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b9362cc7 | 11689 | fi |
b4e70030 JB |
11690 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 |
11691 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
4e8d927d DJ |
11692 | if test $ac_cv_type_int_least32_t = yes; then |
11693 | : | |
a3828db0 | 11694 | else |
4e8d927d | 11695 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11696 | fi |
5ee754fc | 11697 | |
b4e70030 JB |
11698 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 |
11699 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
4e8d927d | 11700 | if test "${ac_cv_type_int_fast32_t+set}" = set; then |
bec39cab AC |
11701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11702 | else | |
11703 | cat >conftest.$ac_ext <<_ACEOF | |
11704 | /* confdefs.h. */ | |
11705 | _ACEOF | |
11706 | cat confdefs.h >>conftest.$ac_ext | |
11707 | cat >>conftest.$ac_ext <<_ACEOF | |
11708 | /* end confdefs.h. */ | |
4e8d927d DJ |
11709 | #include <sys/types.h> |
11710 | #include <$i> | |
11711 | ||
bec39cab AC |
11712 | int |
11713 | main () | |
11714 | { | |
b4e70030 | 11715 | if ((int_fast32_t *) 0) |
4e8d927d | 11716 | return 0; |
b4e70030 | 11717 | if (sizeof (int_fast32_t)) |
4e8d927d | 11718 | return 0; |
bec39cab AC |
11719 | ; |
11720 | return 0; | |
11721 | } | |
11722 | _ACEOF | |
11723 | rm -f conftest.$ac_objext | |
11724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11725 | (eval $ac_compile) 2>conftest.er1 | |
11726 | ac_status=$? | |
11727 | grep -v '^ *+' conftest.er1 >conftest.err | |
11728 | rm -f conftest.er1 | |
11729 | cat conftest.err >&5 | |
11730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11731 | (exit $ac_status); } && | |
b4e70030 JB |
11732 | { ac_try='test -z "$ac_c_werror_flag" |
11733 | || test ! -s conftest.err' | |
bec39cab AC |
11734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11735 | (eval $ac_try) 2>&5 | |
11736 | ac_status=$? | |
11737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11738 | (exit $ac_status); }; } && | |
11739 | { ac_try='test -s conftest.$ac_objext' | |
11740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11741 | (eval $ac_try) 2>&5 | |
11742 | ac_status=$? | |
11743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11744 | (exit $ac_status); }; }; then | |
4e8d927d | 11745 | ac_cv_type_int_fast32_t=yes |
c906108c | 11746 | else |
bec39cab AC |
11747 | echo "$as_me: failed program was:" >&5 |
11748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11749 | ||
b4e70030 | 11750 | ac_cv_type_int_fast32_t=no |
c906108c | 11751 | fi |
bec39cab | 11752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 11753 | fi |
b4e70030 JB |
11754 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 |
11755 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
4e8d927d DJ |
11756 | if test $ac_cv_type_int_fast32_t = yes; then |
11757 | : | |
a3828db0 | 11758 | else |
4e8d927d | 11759 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11760 | fi |
4e8d927d | 11761 | |
b4e70030 JB |
11762 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
11763 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
4e8d927d | 11764 | if test "${ac_cv_type_uint64_t+set}" = set; then |
bec39cab AC |
11765 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11766 | else | |
11767 | cat >conftest.$ac_ext <<_ACEOF | |
11768 | /* confdefs.h. */ | |
11769 | _ACEOF | |
11770 | cat confdefs.h >>conftest.$ac_ext | |
11771 | cat >>conftest.$ac_ext <<_ACEOF | |
11772 | /* end confdefs.h. */ | |
4e8d927d DJ |
11773 | #include <sys/types.h> |
11774 | #include <$i> | |
11775 | ||
bec39cab AC |
11776 | int |
11777 | main () | |
11778 | { | |
b4e70030 | 11779 | if ((uint64_t *) 0) |
4e8d927d | 11780 | return 0; |
b4e70030 | 11781 | if (sizeof (uint64_t)) |
4e8d927d | 11782 | return 0; |
bec39cab AC |
11783 | ; |
11784 | return 0; | |
11785 | } | |
11786 | _ACEOF | |
11787 | rm -f conftest.$ac_objext | |
11788 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11789 | (eval $ac_compile) 2>conftest.er1 | |
11790 | ac_status=$? | |
11791 | grep -v '^ *+' conftest.er1 >conftest.err | |
11792 | rm -f conftest.er1 | |
11793 | cat conftest.err >&5 | |
11794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11795 | (exit $ac_status); } && | |
b4e70030 JB |
11796 | { ac_try='test -z "$ac_c_werror_flag" |
11797 | || test ! -s conftest.err' | |
bec39cab AC |
11798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11799 | (eval $ac_try) 2>&5 | |
11800 | ac_status=$? | |
11801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11802 | (exit $ac_status); }; } && | |
11803 | { ac_try='test -s conftest.$ac_objext' | |
11804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11805 | (eval $ac_try) 2>&5 | |
11806 | ac_status=$? | |
11807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11808 | (exit $ac_status); }; }; then | |
4e8d927d | 11809 | ac_cv_type_uint64_t=yes |
c906108c | 11810 | else |
bec39cab AC |
11811 | echo "$as_me: failed program was:" >&5 |
11812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11813 | ||
b4e70030 | 11814 | ac_cv_type_uint64_t=no |
c906108c | 11815 | fi |
bec39cab | 11816 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 11817 | fi |
b4e70030 JB |
11818 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
11819 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
4e8d927d DJ |
11820 | if test $ac_cv_type_uint64_t = yes; then |
11821 | : | |
a3828db0 | 11822 | else |
4e8d927d | 11823 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
c906108c SS |
11824 | fi |
11825 | ||
4e8d927d DJ |
11826 | break |
11827 | done | |
11828 | if test "$acx_cv_header_stdint" = stddef.h; then | |
3841debe | 11829 | acx_cv_header_stdint_kind="(lacks uintmax_t)" |
4e8d927d | 11830 | for i in stdint.h $inttype_headers; do |
3841debe | 11831 | unset ac_cv_type_uintptr_t |
4e8d927d DJ |
11832 | unset ac_cv_type_uint32_t |
11833 | unset ac_cv_type_uint64_t | |
11834 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
b4e70030 JB |
11835 | echo "$as_me:$LINENO: checking for uint32_t" >&5 |
11836 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
4e8d927d | 11837 | if test "${ac_cv_type_uint32_t+set}" = set; then |
bec39cab | 11838 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bce58c09 | 11839 | else |
bec39cab AC |
11840 | cat >conftest.$ac_ext <<_ACEOF |
11841 | /* confdefs.h. */ | |
11842 | _ACEOF | |
11843 | cat confdefs.h >>conftest.$ac_ext | |
11844 | cat >>conftest.$ac_ext <<_ACEOF | |
11845 | /* end confdefs.h. */ | |
4e8d927d DJ |
11846 | #include <sys/types.h> |
11847 | #include <$i> | |
11848 | ||
a3828db0 MK |
11849 | int |
11850 | main () | |
11851 | { | |
b4e70030 | 11852 | if ((uint32_t *) 0) |
4e8d927d | 11853 | return 0; |
b4e70030 | 11854 | if (sizeof (uint32_t)) |
4e8d927d | 11855 | return 0; |
a3828db0 MK |
11856 | ; |
11857 | return 0; | |
11858 | } | |
bec39cab AC |
11859 | _ACEOF |
11860 | rm -f conftest.$ac_objext | |
11861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11862 | (eval $ac_compile) 2>conftest.er1 | |
11863 | ac_status=$? | |
11864 | grep -v '^ *+' conftest.er1 >conftest.err | |
11865 | rm -f conftest.er1 | |
11866 | cat conftest.err >&5 | |
11867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11868 | (exit $ac_status); } && | |
b4e70030 JB |
11869 | { ac_try='test -z "$ac_c_werror_flag" |
11870 | || test ! -s conftest.err' | |
bec39cab AC |
11871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11872 | (eval $ac_try) 2>&5 | |
11873 | ac_status=$? | |
11874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11875 | (exit $ac_status); }; } && | |
11876 | { ac_try='test -s conftest.$ac_objext' | |
11877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11878 | (eval $ac_try) 2>&5 | |
11879 | ac_status=$? | |
11880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11881 | (exit $ac_status); }; }; then | |
4e8d927d | 11882 | ac_cv_type_uint32_t=yes |
bce58c09 | 11883 | else |
bec39cab AC |
11884 | echo "$as_me: failed program was:" >&5 |
11885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11886 | ||
b4e70030 | 11887 | ac_cv_type_uint32_t=no |
bce58c09 | 11888 | fi |
bec39cab | 11889 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bce58c09 | 11890 | fi |
b4e70030 JB |
11891 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
11892 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
4e8d927d DJ |
11893 | if test $ac_cv_type_uint32_t = yes; then |
11894 | acx_cv_header_stdint=$i | |
a3828db0 | 11895 | else |
4e8d927d | 11896 | continue |
e5a7de23 | 11897 | fi |
4e8d927d | 11898 | |
b4e70030 JB |
11899 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
11900 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
4e8d927d | 11901 | if test "${ac_cv_type_uint64_t+set}" = set; then |
e5a7de23 EZ |
11902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11903 | else | |
11904 | cat >conftest.$ac_ext <<_ACEOF | |
11905 | /* confdefs.h. */ | |
11906 | _ACEOF | |
11907 | cat confdefs.h >>conftest.$ac_ext | |
11908 | cat >>conftest.$ac_ext <<_ACEOF | |
11909 | /* end confdefs.h. */ | |
4e8d927d DJ |
11910 | #include <sys/types.h> |
11911 | #include <$i> | |
11912 | ||
e5a7de23 EZ |
11913 | int |
11914 | main () | |
11915 | { | |
b4e70030 | 11916 | if ((uint64_t *) 0) |
4e8d927d | 11917 | return 0; |
b4e70030 | 11918 | if (sizeof (uint64_t)) |
4e8d927d | 11919 | return 0; |
e5a7de23 EZ |
11920 | ; |
11921 | return 0; | |
11922 | } | |
11923 | _ACEOF | |
11924 | rm -f conftest.$ac_objext | |
11925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11926 | (eval $ac_compile) 2>conftest.er1 | |
11927 | ac_status=$? | |
11928 | grep -v '^ *+' conftest.er1 >conftest.err | |
11929 | rm -f conftest.er1 | |
11930 | cat conftest.err >&5 | |
11931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11932 | (exit $ac_status); } && | |
b4e70030 JB |
11933 | { ac_try='test -z "$ac_c_werror_flag" |
11934 | || test ! -s conftest.err' | |
e5a7de23 EZ |
11935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11936 | (eval $ac_try) 2>&5 | |
11937 | ac_status=$? | |
11938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11939 | (exit $ac_status); }; } && | |
11940 | { ac_try='test -s conftest.$ac_objext' | |
11941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11942 | (eval $ac_try) 2>&5 | |
11943 | ac_status=$? | |
11944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11945 | (exit $ac_status); }; }; then | |
4e8d927d | 11946 | ac_cv_type_uint64_t=yes |
e5a7de23 EZ |
11947 | else |
11948 | echo "$as_me: failed program was:" >&5 | |
11949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11950 | ||
b4e70030 | 11951 | ac_cv_type_uint64_t=no |
e5a7de23 EZ |
11952 | fi |
11953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11954 | fi | |
b4e70030 JB |
11955 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
11956 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
3841debe DJ |
11957 | |
11958 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
11959 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
11960 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
11961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11962 | else | |
11963 | cat >conftest.$ac_ext <<_ACEOF | |
11964 | /* confdefs.h. */ | |
11965 | _ACEOF | |
11966 | cat confdefs.h >>conftest.$ac_ext | |
11967 | cat >>conftest.$ac_ext <<_ACEOF | |
11968 | /* end confdefs.h. */ | |
11969 | #include <sys/types.h> | |
11970 | #include <$i> | |
11971 | ||
11972 | int | |
11973 | main () | |
11974 | { | |
11975 | if ((uintptr_t *) 0) | |
11976 | return 0; | |
11977 | if (sizeof (uintptr_t)) | |
11978 | return 0; | |
11979 | ; | |
11980 | return 0; | |
11981 | } | |
11982 | _ACEOF | |
11983 | rm -f conftest.$ac_objext | |
11984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11985 | (eval $ac_compile) 2>conftest.er1 | |
11986 | ac_status=$? | |
11987 | grep -v '^ *+' conftest.er1 >conftest.err | |
11988 | rm -f conftest.er1 | |
11989 | cat conftest.err >&5 | |
11990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11991 | (exit $ac_status); } && | |
11992 | { ac_try='test -z "$ac_c_werror_flag" | |
11993 | || test ! -s conftest.err' | |
11994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11995 | (eval $ac_try) 2>&5 | |
11996 | ac_status=$? | |
11997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11998 | (exit $ac_status); }; } && | |
11999 | { ac_try='test -s conftest.$ac_objext' | |
12000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12001 | (eval $ac_try) 2>&5 | |
12002 | ac_status=$? | |
12003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12004 | (exit $ac_status); }; }; then | |
12005 | ac_cv_type_uintptr_t=yes | |
e5a7de23 | 12006 | else |
3841debe DJ |
12007 | echo "$as_me: failed program was:" >&5 |
12008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12009 | ||
12010 | ac_cv_type_uintptr_t=no | |
4e8d927d | 12011 | fi |
3841debe DJ |
12012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12013 | fi | |
12014 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
12015 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
e5a7de23 | 12016 | |
4e8d927d DJ |
12017 | break |
12018 | done | |
e5a7de23 | 12019 | fi |
4e8d927d DJ |
12020 | if test "$acx_cv_header_stdint" = stddef.h; then |
12021 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
12022 | for i in sys/types.h $inttype_headers; do | |
12023 | unset ac_cv_type_u_int32_t | |
12024 | unset ac_cv_type_u_int64_t | |
12025 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
b4e70030 JB |
12026 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
12027 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
4e8d927d | 12028 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
e5a7de23 EZ |
12029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12030 | else | |
12031 | cat >conftest.$ac_ext <<_ACEOF | |
12032 | /* confdefs.h. */ | |
12033 | _ACEOF | |
12034 | cat confdefs.h >>conftest.$ac_ext | |
12035 | cat >>conftest.$ac_ext <<_ACEOF | |
12036 | /* end confdefs.h. */ | |
4e8d927d DJ |
12037 | #include <sys/types.h> |
12038 | #include <$i> | |
12039 | ||
e5a7de23 EZ |
12040 | int |
12041 | main () | |
12042 | { | |
b4e70030 | 12043 | if ((u_int32_t *) 0) |
4e8d927d | 12044 | return 0; |
b4e70030 | 12045 | if (sizeof (u_int32_t)) |
4e8d927d | 12046 | return 0; |
e5a7de23 EZ |
12047 | ; |
12048 | return 0; | |
12049 | } | |
12050 | _ACEOF | |
12051 | rm -f conftest.$ac_objext | |
12052 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12053 | (eval $ac_compile) 2>conftest.er1 | |
12054 | ac_status=$? | |
12055 | grep -v '^ *+' conftest.er1 >conftest.err | |
12056 | rm -f conftest.er1 | |
12057 | cat conftest.err >&5 | |
12058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12059 | (exit $ac_status); } && | |
b4e70030 JB |
12060 | { ac_try='test -z "$ac_c_werror_flag" |
12061 | || test ! -s conftest.err' | |
e5a7de23 EZ |
12062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12063 | (eval $ac_try) 2>&5 | |
12064 | ac_status=$? | |
12065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12066 | (exit $ac_status); }; } && | |
12067 | { ac_try='test -s conftest.$ac_objext' | |
12068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12069 | (eval $ac_try) 2>&5 | |
12070 | ac_status=$? | |
12071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12072 | (exit $ac_status); }; }; then | |
4e8d927d | 12073 | ac_cv_type_u_int32_t=yes |
e5a7de23 EZ |
12074 | else |
12075 | echo "$as_me: failed program was:" >&5 | |
12076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12077 | ||
b4e70030 | 12078 | ac_cv_type_u_int32_t=no |
e5a7de23 EZ |
12079 | fi |
12080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12081 | fi | |
b4e70030 JB |
12082 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
12083 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
4e8d927d DJ |
12084 | if test $ac_cv_type_u_int32_t = yes; then |
12085 | acx_cv_header_stdint=$i | |
e5a7de23 | 12086 | else |
4e8d927d | 12087 | continue |
a3828db0 | 12088 | fi |
5ee754fc | 12089 | |
b4e70030 JB |
12090 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
12091 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
4e8d927d | 12092 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
bec39cab AC |
12093 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12094 | else | |
12095 | cat >conftest.$ac_ext <<_ACEOF | |
12096 | /* confdefs.h. */ | |
12097 | _ACEOF | |
12098 | cat confdefs.h >>conftest.$ac_ext | |
12099 | cat >>conftest.$ac_ext <<_ACEOF | |
12100 | /* end confdefs.h. */ | |
4e8d927d DJ |
12101 | #include <sys/types.h> |
12102 | #include <$i> | |
12103 | ||
bec39cab AC |
12104 | int |
12105 | main () | |
12106 | { | |
b4e70030 | 12107 | if ((u_int64_t *) 0) |
4e8d927d | 12108 | return 0; |
b4e70030 | 12109 | if (sizeof (u_int64_t)) |
4e8d927d | 12110 | return 0; |
bec39cab AC |
12111 | ; |
12112 | return 0; | |
12113 | } | |
12114 | _ACEOF | |
a3828db0 MK |
12115 | rm -f conftest.$ac_objext |
12116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12117 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
12118 | ac_status=$? |
12119 | grep -v '^ *+' conftest.er1 >conftest.err | |
12120 | rm -f conftest.er1 | |
12121 | cat conftest.err >&5 | |
12122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12123 | (exit $ac_status); } && | |
b4e70030 JB |
12124 | { ac_try='test -z "$ac_c_werror_flag" |
12125 | || test ! -s conftest.err' | |
bec39cab AC |
12126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12127 | (eval $ac_try) 2>&5 | |
12128 | ac_status=$? | |
12129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12130 | (exit $ac_status); }; } && | |
a3828db0 | 12131 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
12132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12133 | (eval $ac_try) 2>&5 | |
12134 | ac_status=$? | |
12135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12136 | (exit $ac_status); }; }; then | |
4e8d927d | 12137 | ac_cv_type_u_int64_t=yes |
bec39cab AC |
12138 | else |
12139 | echo "$as_me: failed program was:" >&5 | |
12140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12141 | ||
b4e70030 | 12142 | ac_cv_type_u_int64_t=no |
4e8d927d | 12143 | fi |
4e8d927d DJ |
12144 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12145 | fi | |
b4e70030 JB |
12146 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
12147 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
4e8d927d DJ |
12148 | |
12149 | break | |
12150 | done | |
12151 | fi | |
12152 | if test "$acx_cv_header_stdint" = stddef.h; then | |
12153 | acx_cv_header_stdint_kind="(using manual detection)" | |
12154 | fi | |
12155 | ||
12156 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
12157 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
12158 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
12159 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
12160 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
12161 | ||
12162 | # ----------------- Summarize what we found so far | |
12163 | ||
b4e70030 JB |
12164 | echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5 |
12165 | echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6 | |
4e8d927d | 12166 | |
b4e70030 | 12167 | case `$as_basename gdb_stdint.h || |
4e8d927d DJ |
12168 | $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ |
12169 | Xgdb_stdint.h : 'X\(//\)$' \| \ | |
b4e70030 JB |
12170 | Xgdb_stdint.h : 'X\(/\)$' \| \ |
12171 | . : '\(.\)' 2>/dev/null || | |
4e8d927d | 12172 | echo X/gdb_stdint.h | |
b4e70030 JB |
12173 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
12174 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
12175 | /^X\/\(\/\).*/{ s//\1/; q; } | |
12176 | s/.*/./; q'` in | |
4e8d927d DJ |
12177 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 |
12178 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
12179 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
12180 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
12181 | *) ;; | |
12182 | esac | |
12183 | ||
b4e70030 JB |
12184 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
12185 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 | |
4e8d927d DJ |
12186 | |
12187 | # ----------------- done included file, check C basic types -------- | |
12188 | ||
12189 | # Lacking an uintptr_t? Test size of void * | |
12190 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
b4e70030 JB |
12191 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 |
12192 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
4e8d927d DJ |
12193 | if test "${ac_cv_type_void_p+set}" = set; then |
12194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12195 | else | |
12196 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 12197 | /* confdefs.h. */ |
bec39cab AC |
12198 | _ACEOF |
12199 | cat confdefs.h >>conftest.$ac_ext | |
12200 | cat >>conftest.$ac_ext <<_ACEOF | |
12201 | /* end confdefs.h. */ | |
a3828db0 | 12202 | $ac_includes_default |
bec39cab AC |
12203 | int |
12204 | main () | |
12205 | { | |
b4e70030 | 12206 | if ((void * *) 0) |
4e8d927d | 12207 | return 0; |
b4e70030 | 12208 | if (sizeof (void *)) |
4e8d927d | 12209 | return 0; |
bec39cab AC |
12210 | ; |
12211 | return 0; | |
12212 | } | |
12213 | _ACEOF | |
a3828db0 MK |
12214 | rm -f conftest.$ac_objext |
12215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12216 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
12217 | ac_status=$? |
12218 | grep -v '^ *+' conftest.er1 >conftest.err | |
12219 | rm -f conftest.er1 | |
12220 | cat conftest.err >&5 | |
12221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12222 | (exit $ac_status); } && | |
b4e70030 JB |
12223 | { ac_try='test -z "$ac_c_werror_flag" |
12224 | || test ! -s conftest.err' | |
bec39cab AC |
12225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12226 | (eval $ac_try) 2>&5 | |
12227 | ac_status=$? | |
12228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12229 | (exit $ac_status); }; } && | |
a3828db0 | 12230 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
12231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12232 | (eval $ac_try) 2>&5 | |
12233 | ac_status=$? | |
12234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12235 | (exit $ac_status); }; }; then | |
4e8d927d | 12236 | ac_cv_type_void_p=yes |
46711df8 | 12237 | else |
bec39cab AC |
12238 | echo "$as_me: failed program was:" >&5 |
12239 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12240 | ||
b4e70030 | 12241 | ac_cv_type_void_p=no |
a3828db0 | 12242 | fi |
4e8d927d | 12243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d3ea6809 | 12244 | fi |
b4e70030 JB |
12245 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
12246 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
d3ea6809 | 12247 | |
b4e70030 JB |
12248 | echo "$as_me:$LINENO: checking size of void *" >&5 |
12249 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
4e8d927d | 12250 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
d3ea6809 MM |
12251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12252 | else | |
4e8d927d | 12253 | if test "$ac_cv_type_void_p" = yes; then |
b4e70030 | 12254 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
12255 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
12256 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12257 | # This bug is HP SR number 8606223364. | |
12258 | if test "$cross_compiling" = yes; then | |
12259 | # Depending upon the size, compute the lo and hi bounds. | |
12260 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
12261 | /* confdefs.h. */ |
12262 | _ACEOF | |
12263 | cat confdefs.h >>conftest.$ac_ext | |
12264 | cat >>conftest.$ac_ext <<_ACEOF | |
12265 | /* end confdefs.h. */ | |
12266 | $ac_includes_default | |
12267 | int | |
12268 | main () | |
12269 | { | |
b4e70030 | 12270 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
4e8d927d DJ |
12271 | test_array [0] = 0 |
12272 | ||
d3ea6809 MM |
12273 | ; |
12274 | return 0; | |
12275 | } | |
12276 | _ACEOF | |
12277 | rm -f conftest.$ac_objext | |
12278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12279 | (eval $ac_compile) 2>conftest.er1 | |
12280 | ac_status=$? | |
12281 | grep -v '^ *+' conftest.er1 >conftest.err | |
12282 | rm -f conftest.er1 | |
12283 | cat conftest.err >&5 | |
12284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12285 | (exit $ac_status); } && | |
b4e70030 JB |
12286 | { ac_try='test -z "$ac_c_werror_flag" |
12287 | || test ! -s conftest.err' | |
d3ea6809 MM |
12288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12289 | (eval $ac_try) 2>&5 | |
12290 | ac_status=$? | |
12291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12292 | (exit $ac_status); }; } && | |
12293 | { ac_try='test -s conftest.$ac_objext' | |
12294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12295 | (eval $ac_try) 2>&5 | |
12296 | ac_status=$? | |
12297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12298 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
12299 | ac_lo=0 ac_mid=0 |
12300 | while :; do | |
12301 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
12302 | /* confdefs.h. */ |
12303 | _ACEOF | |
12304 | cat confdefs.h >>conftest.$ac_ext | |
12305 | cat >>conftest.$ac_ext <<_ACEOF | |
12306 | /* end confdefs.h. */ | |
12307 | $ac_includes_default | |
12308 | int | |
12309 | main () | |
12310 | { | |
b4e70030 | 12311 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
4e8d927d DJ |
12312 | test_array [0] = 0 |
12313 | ||
d3ea6809 MM |
12314 | ; |
12315 | return 0; | |
12316 | } | |
12317 | _ACEOF | |
12318 | rm -f conftest.$ac_objext | |
12319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12320 | (eval $ac_compile) 2>conftest.er1 | |
12321 | ac_status=$? | |
12322 | grep -v '^ *+' conftest.er1 >conftest.err | |
12323 | rm -f conftest.er1 | |
12324 | cat conftest.err >&5 | |
12325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12326 | (exit $ac_status); } && | |
b4e70030 JB |
12327 | { ac_try='test -z "$ac_c_werror_flag" |
12328 | || test ! -s conftest.err' | |
d3ea6809 MM |
12329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12330 | (eval $ac_try) 2>&5 | |
12331 | ac_status=$? | |
12332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12333 | (exit $ac_status); }; } && | |
12334 | { ac_try='test -s conftest.$ac_objext' | |
12335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12336 | (eval $ac_try) 2>&5 | |
12337 | ac_status=$? | |
12338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12339 | (exit $ac_status); }; }; then | |
4e8d927d | 12340 | ac_hi=$ac_mid; break |
d3ea6809 MM |
12341 | else |
12342 | echo "$as_me: failed program was:" >&5 | |
12343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12344 | ||
b4e70030 JB |
12345 | ac_lo=`expr $ac_mid + 1` |
12346 | if test $ac_lo -le $ac_mid; then | |
12347 | ac_lo= ac_hi= | |
12348 | break | |
12349 | fi | |
12350 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a3828db0 | 12351 | fi |
4e8d927d DJ |
12352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12353 | done | |
bec39cab | 12354 | else |
4e8d927d DJ |
12355 | echo "$as_me: failed program was:" >&5 |
12356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12357 | ||
b4e70030 | 12358 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
12359 | /* confdefs.h. */ |
12360 | _ACEOF | |
12361 | cat confdefs.h >>conftest.$ac_ext | |
12362 | cat >>conftest.$ac_ext <<_ACEOF | |
12363 | /* end confdefs.h. */ | |
4e8d927d | 12364 | $ac_includes_default |
bec39cab AC |
12365 | int |
12366 | main () | |
12367 | { | |
b4e70030 | 12368 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
4e8d927d DJ |
12369 | test_array [0] = 0 |
12370 | ||
bec39cab AC |
12371 | ; |
12372 | return 0; | |
12373 | } | |
12374 | _ACEOF | |
a3828db0 MK |
12375 | rm -f conftest.$ac_objext |
12376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12377 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
12378 | ac_status=$? |
12379 | grep -v '^ *+' conftest.er1 >conftest.err | |
12380 | rm -f conftest.er1 | |
12381 | cat conftest.err >&5 | |
12382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12383 | (exit $ac_status); } && | |
b4e70030 JB |
12384 | { ac_try='test -z "$ac_c_werror_flag" |
12385 | || test ! -s conftest.err' | |
bec39cab AC |
12386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12387 | (eval $ac_try) 2>&5 | |
12388 | ac_status=$? | |
12389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12390 | (exit $ac_status); }; } && | |
a3828db0 | 12391 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
12392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12393 | (eval $ac_try) 2>&5 | |
12394 | ac_status=$? | |
12395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12396 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
12397 | ac_hi=-1 ac_mid=-1 |
12398 | while :; do | |
12399 | cat >conftest.$ac_ext <<_ACEOF | |
f9f87d2c MK |
12400 | /* confdefs.h. */ |
12401 | _ACEOF | |
12402 | cat confdefs.h >>conftest.$ac_ext | |
12403 | cat >>conftest.$ac_ext <<_ACEOF | |
12404 | /* end confdefs.h. */ | |
4e8d927d | 12405 | $ac_includes_default |
f9f87d2c MK |
12406 | int |
12407 | main () | |
12408 | { | |
b4e70030 | 12409 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
4e8d927d DJ |
12410 | test_array [0] = 0 |
12411 | ||
f9f87d2c MK |
12412 | ; |
12413 | return 0; | |
12414 | } | |
12415 | _ACEOF | |
12416 | rm -f conftest.$ac_objext | |
12417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12418 | (eval $ac_compile) 2>conftest.er1 | |
12419 | ac_status=$? | |
12420 | grep -v '^ *+' conftest.er1 >conftest.err | |
12421 | rm -f conftest.er1 | |
12422 | cat conftest.err >&5 | |
12423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12424 | (exit $ac_status); } && | |
b4e70030 JB |
12425 | { ac_try='test -z "$ac_c_werror_flag" |
12426 | || test ! -s conftest.err' | |
f9f87d2c MK |
12427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12428 | (eval $ac_try) 2>&5 | |
12429 | ac_status=$? | |
12430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12431 | (exit $ac_status); }; } && | |
12432 | { ac_try='test -s conftest.$ac_objext' | |
12433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12434 | (eval $ac_try) 2>&5 | |
12435 | ac_status=$? | |
12436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12437 | (exit $ac_status); }; }; then | |
4e8d927d | 12438 | ac_lo=$ac_mid; break |
f9f87d2c MK |
12439 | else |
12440 | echo "$as_me: failed program was:" >&5 | |
12441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12442 | ||
b4e70030 JB |
12443 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12444 | if test $ac_mid -le $ac_hi; then | |
12445 | ac_lo= ac_hi= | |
12446 | break | |
12447 | fi | |
12448 | ac_mid=`expr 2 '*' $ac_mid` | |
f9f87d2c | 12449 | fi |
4e8d927d DJ |
12450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12451 | done | |
12452 | else | |
12453 | echo "$as_me: failed program was:" >&5 | |
12454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
f9f87d2c | 12455 | |
b4e70030 | 12456 | ac_lo= ac_hi= |
4e8d927d | 12457 | fi |
4e8d927d | 12458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3be60c3d | 12459 | fi |
4e8d927d DJ |
12460 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12461 | # Binary search between lo and hi bounds. | |
12462 | while test "x$ac_lo" != "x$ac_hi"; do | |
12463 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
3be60c3d MK |
12464 | cat >conftest.$ac_ext <<_ACEOF |
12465 | /* confdefs.h. */ | |
12466 | _ACEOF | |
12467 | cat confdefs.h >>conftest.$ac_ext | |
12468 | cat >>conftest.$ac_ext <<_ACEOF | |
12469 | /* end confdefs.h. */ | |
4e8d927d | 12470 | $ac_includes_default |
3be60c3d MK |
12471 | int |
12472 | main () | |
12473 | { | |
b4e70030 | 12474 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
4e8d927d DJ |
12475 | test_array [0] = 0 |
12476 | ||
3be60c3d MK |
12477 | ; |
12478 | return 0; | |
12479 | } | |
12480 | _ACEOF | |
12481 | rm -f conftest.$ac_objext | |
12482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12483 | (eval $ac_compile) 2>conftest.er1 | |
12484 | ac_status=$? | |
12485 | grep -v '^ *+' conftest.er1 >conftest.err | |
12486 | rm -f conftest.er1 | |
12487 | cat conftest.err >&5 | |
12488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12489 | (exit $ac_status); } && | |
b4e70030 JB |
12490 | { ac_try='test -z "$ac_c_werror_flag" |
12491 | || test ! -s conftest.err' | |
3be60c3d MK |
12492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12493 | (eval $ac_try) 2>&5 | |
12494 | ac_status=$? | |
12495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12496 | (exit $ac_status); }; } && | |
12497 | { ac_try='test -s conftest.$ac_objext' | |
12498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12499 | (eval $ac_try) 2>&5 | |
12500 | ac_status=$? | |
12501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12502 | (exit $ac_status); }; }; then | |
4e8d927d | 12503 | ac_hi=$ac_mid |
3be60c3d MK |
12504 | else |
12505 | echo "$as_me: failed program was:" >&5 | |
12506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12507 | ||
b4e70030 | 12508 | ac_lo=`expr '(' $ac_mid ')' + 1` |
3be60c3d | 12509 | fi |
4e8d927d DJ |
12510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12511 | done | |
12512 | case $ac_lo in | |
12513 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
b4e70030 | 12514 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12515 | See \`config.log' for more details." >&5 |
b4e70030 | 12516 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12517 | See \`config.log' for more details." >&2;} |
b4e70030 | 12518 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 12519 | esac |
b4e70030 JB |
12520 | else |
12521 | if test "$cross_compiling" = yes; then | |
12522 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
12523 | See \`config.log' for more details." >&5 | |
12524 | echo "$as_me: error: cannot run test program while cross compiling | |
12525 | See \`config.log' for more details." >&2;} | |
12526 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
12527 | else |
12528 | cat >conftest.$ac_ext <<_ACEOF | |
12529 | /* confdefs.h. */ | |
3be60c3d | 12530 | _ACEOF |
4e8d927d DJ |
12531 | cat confdefs.h >>conftest.$ac_ext |
12532 | cat >>conftest.$ac_ext <<_ACEOF | |
12533 | /* end confdefs.h. */ | |
12534 | $ac_includes_default | |
b4e70030 JB |
12535 | long longval () { return (long) (sizeof (void *)); } |
12536 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
4e8d927d DJ |
12537 | #include <stdio.h> |
12538 | #include <stdlib.h> | |
12539 | int | |
12540 | main () | |
12541 | { | |
12542 | ||
12543 | FILE *f = fopen ("conftest.val", "w"); | |
12544 | if (! f) | |
b4e70030 JB |
12545 | exit (1); |
12546 | if (((long) (sizeof (void *))) < 0) | |
4e8d927d | 12547 | { |
b4e70030 JB |
12548 | long i = longval (); |
12549 | if (i != ((long) (sizeof (void *)))) | |
12550 | exit (1); | |
4e8d927d DJ |
12551 | fprintf (f, "%ld\n", i); |
12552 | } | |
12553 | else | |
12554 | { | |
b4e70030 JB |
12555 | unsigned long i = ulongval (); |
12556 | if (i != ((long) (sizeof (void *)))) | |
12557 | exit (1); | |
4e8d927d DJ |
12558 | fprintf (f, "%lu\n", i); |
12559 | } | |
b4e70030 | 12560 | exit (ferror (f) || fclose (f) != 0); |
3be60c3d | 12561 | |
4e8d927d DJ |
12562 | ; |
12563 | return 0; | |
12564 | } | |
12565 | _ACEOF | |
12566 | rm -f conftest$ac_exeext | |
12567 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12568 | (eval $ac_link) 2>&5 | |
12569 | ac_status=$? | |
12570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12571 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12573 | (eval $ac_try) 2>&5 | |
12574 | ac_status=$? | |
12575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12576 | (exit $ac_status); }; }; then | |
12577 | ac_cv_sizeof_void_p=`cat conftest.val` | |
12578 | else | |
12579 | echo "$as_me: program exited with status $ac_status" >&5 | |
12580 | echo "$as_me: failed program was:" >&5 | |
12581 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3be60c3d | 12582 | |
4e8d927d | 12583 | ( exit $ac_status ) |
b4e70030 | 12584 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12585 | See \`config.log' for more details." >&5 |
b4e70030 | 12586 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12587 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
12588 | { (exit 1); exit 1; }; } |
12589 | fi | |
12590 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f9f87d2c | 12591 | fi |
4e8d927d DJ |
12592 | fi |
12593 | rm -f conftest.val | |
12594 | else | |
12595 | ac_cv_sizeof_void_p=0 | |
12596 | fi | |
12597 | fi | |
b4e70030 JB |
12598 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
12599 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
4e8d927d DJ |
12600 | cat >>confdefs.h <<_ACEOF |
12601 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
12602 | _ACEOF | |
f9f87d2c | 12603 | |
4e8d927d DJ |
12604 | ;; |
12605 | esac | |
46711df8 | 12606 | |
4e8d927d DJ |
12607 | # Lacking an uint64_t? Test size of long |
12608 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
b4e70030 JB |
12609 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 |
12610 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
4e8d927d | 12611 | if test "${ac_cv_type_long+set}" = set; then |
bec39cab | 12612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46711df8 | 12613 | else |
bec39cab AC |
12614 | cat >conftest.$ac_ext <<_ACEOF |
12615 | /* confdefs.h. */ | |
12616 | _ACEOF | |
12617 | cat confdefs.h >>conftest.$ac_ext | |
12618 | cat >>conftest.$ac_ext <<_ACEOF | |
12619 | /* end confdefs.h. */ | |
4e8d927d | 12620 | $ac_includes_default |
bec39cab | 12621 | int |
46711df8 MK |
12622 | main () |
12623 | { | |
b4e70030 | 12624 | if ((long *) 0) |
4e8d927d | 12625 | return 0; |
b4e70030 | 12626 | if (sizeof (long)) |
4e8d927d | 12627 | return 0; |
a3828db0 MK |
12628 | ; |
12629 | return 0; | |
46711df8 | 12630 | } |
bec39cab | 12631 | _ACEOF |
a3828db0 MK |
12632 | rm -f conftest.$ac_objext |
12633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12634 | (eval $ac_compile) 2>conftest.er1 | |
12635 | ac_status=$? | |
12636 | grep -v '^ *+' conftest.er1 >conftest.err | |
12637 | rm -f conftest.er1 | |
12638 | cat conftest.err >&5 | |
12639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12640 | (exit $ac_status); } && | |
b4e70030 JB |
12641 | { ac_try='test -z "$ac_c_werror_flag" |
12642 | || test ! -s conftest.err' | |
a3828db0 MK |
12643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12644 | (eval $ac_try) 2>&5 | |
bec39cab AC |
12645 | ac_status=$? |
12646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 MK |
12647 | (exit $ac_status); }; } && |
12648 | { ac_try='test -s conftest.$ac_objext' | |
bec39cab AC |
12649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12650 | (eval $ac_try) 2>&5 | |
12651 | ac_status=$? | |
12652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12653 | (exit $ac_status); }; }; then | |
4e8d927d | 12654 | ac_cv_type_long=yes |
46711df8 | 12655 | else |
a3828db0 | 12656 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
12657 | sed 's/^/| /' conftest.$ac_ext >&5 |
12658 | ||
b4e70030 | 12659 | ac_cv_type_long=no |
46711df8 | 12660 | fi |
4e8d927d | 12661 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
46711df8 | 12662 | fi |
b4e70030 JB |
12663 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
12664 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
46711df8 | 12665 | |
b4e70030 JB |
12666 | echo "$as_me:$LINENO: checking size of long" >&5 |
12667 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
4e8d927d | 12668 | if test "${ac_cv_sizeof_long+set}" = set; then |
bec39cab | 12669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 12670 | else |
4e8d927d | 12671 | if test "$ac_cv_type_long" = yes; then |
b4e70030 | 12672 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
12673 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
12674 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12675 | # This bug is HP SR number 8606223364. | |
12676 | if test "$cross_compiling" = yes; then | |
12677 | # Depending upon the size, compute the lo and hi bounds. | |
12678 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
12679 | /* confdefs.h. */ |
12680 | _ACEOF | |
12681 | cat confdefs.h >>conftest.$ac_ext | |
12682 | cat >>conftest.$ac_ext <<_ACEOF | |
12683 | /* end confdefs.h. */ | |
4e8d927d | 12684 | $ac_includes_default |
4e8d927d DJ |
12685 | int |
12686 | main () | |
12687 | { | |
b4e70030 | 12688 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
4e8d927d | 12689 | test_array [0] = 0 |
a3828db0 | 12690 | |
4e8d927d DJ |
12691 | ; |
12692 | return 0; | |
12693 | } | |
bec39cab AC |
12694 | _ACEOF |
12695 | rm -f conftest.$ac_objext | |
12696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12697 | (eval $ac_compile) 2>conftest.er1 | |
12698 | ac_status=$? | |
12699 | grep -v '^ *+' conftest.er1 >conftest.err | |
12700 | rm -f conftest.er1 | |
12701 | cat conftest.err >&5 | |
12702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12703 | (exit $ac_status); } && | |
b4e70030 JB |
12704 | { ac_try='test -z "$ac_c_werror_flag" |
12705 | || test ! -s conftest.err' | |
bec39cab AC |
12706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12707 | (eval $ac_try) 2>&5 | |
12708 | ac_status=$? | |
12709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12710 | (exit $ac_status); }; } && | |
12711 | { ac_try='test -s conftest.$ac_objext' | |
12712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12713 | (eval $ac_try) 2>&5 | |
12714 | ac_status=$? | |
12715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12716 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
12717 | ac_lo=0 ac_mid=0 |
12718 | while :; do | |
12719 | cat >conftest.$ac_ext <<_ACEOF | |
12720 | /* confdefs.h. */ | |
12721 | _ACEOF | |
12722 | cat confdefs.h >>conftest.$ac_ext | |
12723 | cat >>conftest.$ac_ext <<_ACEOF | |
12724 | /* end confdefs.h. */ | |
12725 | $ac_includes_default | |
4e8d927d DJ |
12726 | int |
12727 | main () | |
12728 | { | |
b4e70030 | 12729 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
4e8d927d DJ |
12730 | test_array [0] = 0 |
12731 | ||
12732 | ; | |
12733 | return 0; | |
12734 | } | |
12735 | _ACEOF | |
12736 | rm -f conftest.$ac_objext | |
12737 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12738 | (eval $ac_compile) 2>conftest.er1 | |
12739 | ac_status=$? | |
12740 | grep -v '^ *+' conftest.er1 >conftest.err | |
12741 | rm -f conftest.er1 | |
12742 | cat conftest.err >&5 | |
12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12744 | (exit $ac_status); } && | |
b4e70030 JB |
12745 | { ac_try='test -z "$ac_c_werror_flag" |
12746 | || test ! -s conftest.err' | |
4e8d927d DJ |
12747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12748 | (eval $ac_try) 2>&5 | |
12749 | ac_status=$? | |
12750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12751 | (exit $ac_status); }; } && | |
12752 | { ac_try='test -s conftest.$ac_objext' | |
12753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12754 | (eval $ac_try) 2>&5 | |
12755 | ac_status=$? | |
12756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12757 | (exit $ac_status); }; }; then | |
12758 | ac_hi=$ac_mid; break | |
12759 | else | |
12760 | echo "$as_me: failed program was:" >&5 | |
12761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12762 | ||
b4e70030 JB |
12763 | ac_lo=`expr $ac_mid + 1` |
12764 | if test $ac_lo -le $ac_mid; then | |
12765 | ac_lo= ac_hi= | |
12766 | break | |
12767 | fi | |
12768 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 12769 | fi |
4e8d927d DJ |
12770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12771 | done | |
12772 | else | |
12773 | echo "$as_me: failed program was:" >&5 | |
12774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12775 | ||
b4e70030 | 12776 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
12777 | /* confdefs.h. */ |
12778 | _ACEOF | |
12779 | cat confdefs.h >>conftest.$ac_ext | |
12780 | cat >>conftest.$ac_ext <<_ACEOF | |
12781 | /* end confdefs.h. */ | |
12782 | $ac_includes_default | |
4e8d927d DJ |
12783 | int |
12784 | main () | |
12785 | { | |
b4e70030 | 12786 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
4e8d927d DJ |
12787 | test_array [0] = 0 |
12788 | ||
12789 | ; | |
12790 | return 0; | |
12791 | } | |
12792 | _ACEOF | |
12793 | rm -f conftest.$ac_objext | |
12794 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12795 | (eval $ac_compile) 2>conftest.er1 | |
12796 | ac_status=$? | |
12797 | grep -v '^ *+' conftest.er1 >conftest.err | |
12798 | rm -f conftest.er1 | |
12799 | cat conftest.err >&5 | |
12800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12801 | (exit $ac_status); } && | |
b4e70030 JB |
12802 | { ac_try='test -z "$ac_c_werror_flag" |
12803 | || test ! -s conftest.err' | |
4e8d927d DJ |
12804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12805 | (eval $ac_try) 2>&5 | |
12806 | ac_status=$? | |
12807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12808 | (exit $ac_status); }; } && | |
12809 | { ac_try='test -s conftest.$ac_objext' | |
12810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12811 | (eval $ac_try) 2>&5 | |
12812 | ac_status=$? | |
12813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12814 | (exit $ac_status); }; }; then | |
12815 | ac_hi=-1 ac_mid=-1 | |
12816 | while :; do | |
12817 | cat >conftest.$ac_ext <<_ACEOF | |
12818 | /* confdefs.h. */ | |
12819 | _ACEOF | |
12820 | cat confdefs.h >>conftest.$ac_ext | |
12821 | cat >>conftest.$ac_ext <<_ACEOF | |
12822 | /* end confdefs.h. */ | |
12823 | $ac_includes_default | |
4e8d927d DJ |
12824 | int |
12825 | main () | |
12826 | { | |
b4e70030 | 12827 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
4e8d927d DJ |
12828 | test_array [0] = 0 |
12829 | ||
12830 | ; | |
12831 | return 0; | |
12832 | } | |
12833 | _ACEOF | |
12834 | rm -f conftest.$ac_objext | |
12835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12836 | (eval $ac_compile) 2>conftest.er1 | |
12837 | ac_status=$? | |
12838 | grep -v '^ *+' conftest.er1 >conftest.err | |
12839 | rm -f conftest.er1 | |
12840 | cat conftest.err >&5 | |
12841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12842 | (exit $ac_status); } && | |
b4e70030 JB |
12843 | { ac_try='test -z "$ac_c_werror_flag" |
12844 | || test ! -s conftest.err' | |
4e8d927d DJ |
12845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12846 | (eval $ac_try) 2>&5 | |
12847 | ac_status=$? | |
12848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12849 | (exit $ac_status); }; } && | |
12850 | { ac_try='test -s conftest.$ac_objext' | |
12851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12852 | (eval $ac_try) 2>&5 | |
12853 | ac_status=$? | |
12854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12855 | (exit $ac_status); }; }; then | |
12856 | ac_lo=$ac_mid; break | |
12857 | else | |
12858 | echo "$as_me: failed program was:" >&5 | |
12859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12860 | ||
b4e70030 JB |
12861 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12862 | if test $ac_mid -le $ac_hi; then | |
12863 | ac_lo= ac_hi= | |
12864 | break | |
12865 | fi | |
12866 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 12867 | fi |
4e8d927d DJ |
12868 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12869 | done | |
12870 | else | |
12871 | echo "$as_me: failed program was:" >&5 | |
12872 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12873 | ||
b4e70030 | 12874 | ac_lo= ac_hi= |
4e8d927d | 12875 | fi |
4e8d927d DJ |
12876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12877 | fi | |
4e8d927d DJ |
12878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12879 | # Binary search between lo and hi bounds. | |
12880 | while test "x$ac_lo" != "x$ac_hi"; do | |
12881 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12882 | cat >conftest.$ac_ext <<_ACEOF | |
12883 | /* confdefs.h. */ | |
12884 | _ACEOF | |
12885 | cat confdefs.h >>conftest.$ac_ext | |
12886 | cat >>conftest.$ac_ext <<_ACEOF | |
12887 | /* end confdefs.h. */ | |
12888 | $ac_includes_default | |
4e8d927d DJ |
12889 | int |
12890 | main () | |
12891 | { | |
b4e70030 | 12892 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
4e8d927d DJ |
12893 | test_array [0] = 0 |
12894 | ||
12895 | ; | |
12896 | return 0; | |
12897 | } | |
12898 | _ACEOF | |
12899 | rm -f conftest.$ac_objext | |
12900 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12901 | (eval $ac_compile) 2>conftest.er1 | |
12902 | ac_status=$? | |
12903 | grep -v '^ *+' conftest.er1 >conftest.err | |
12904 | rm -f conftest.er1 | |
12905 | cat conftest.err >&5 | |
12906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12907 | (exit $ac_status); } && | |
b4e70030 JB |
12908 | { ac_try='test -z "$ac_c_werror_flag" |
12909 | || test ! -s conftest.err' | |
4e8d927d DJ |
12910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12911 | (eval $ac_try) 2>&5 | |
12912 | ac_status=$? | |
12913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12914 | (exit $ac_status); }; } && | |
12915 | { ac_try='test -s conftest.$ac_objext' | |
12916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12917 | (eval $ac_try) 2>&5 | |
12918 | ac_status=$? | |
12919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12920 | (exit $ac_status); }; }; then | |
12921 | ac_hi=$ac_mid | |
12922 | else | |
12923 | echo "$as_me: failed program was:" >&5 | |
12924 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12925 | ||
b4e70030 | 12926 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 12927 | fi |
4e8d927d DJ |
12928 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12929 | done | |
12930 | case $ac_lo in | |
12931 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
b4e70030 | 12932 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
4e8d927d | 12933 | See \`config.log' for more details." >&5 |
b4e70030 | 12934 | echo "$as_me: error: cannot compute sizeof (long), 77 |
4e8d927d | 12935 | See \`config.log' for more details." >&2;} |
b4e70030 | 12936 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 12937 | esac |
b4e70030 JB |
12938 | else |
12939 | if test "$cross_compiling" = yes; then | |
12940 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
12941 | See \`config.log' for more details." >&5 | |
12942 | echo "$as_me: error: cannot run test program while cross compiling | |
12943 | See \`config.log' for more details." >&2;} | |
12944 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
12945 | else |
12946 | cat >conftest.$ac_ext <<_ACEOF | |
12947 | /* confdefs.h. */ | |
12948 | _ACEOF | |
12949 | cat confdefs.h >>conftest.$ac_ext | |
12950 | cat >>conftest.$ac_ext <<_ACEOF | |
12951 | /* end confdefs.h. */ | |
12952 | $ac_includes_default | |
b4e70030 JB |
12953 | long longval () { return (long) (sizeof (long)); } |
12954 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
4e8d927d DJ |
12955 | #include <stdio.h> |
12956 | #include <stdlib.h> | |
12957 | int | |
12958 | main () | |
12959 | { | |
12960 | ||
12961 | FILE *f = fopen ("conftest.val", "w"); | |
12962 | if (! f) | |
b4e70030 JB |
12963 | exit (1); |
12964 | if (((long) (sizeof (long))) < 0) | |
4e8d927d | 12965 | { |
b4e70030 JB |
12966 | long i = longval (); |
12967 | if (i != ((long) (sizeof (long)))) | |
12968 | exit (1); | |
4e8d927d DJ |
12969 | fprintf (f, "%ld\n", i); |
12970 | } | |
12971 | else | |
12972 | { | |
b4e70030 JB |
12973 | unsigned long i = ulongval (); |
12974 | if (i != ((long) (sizeof (long)))) | |
12975 | exit (1); | |
4e8d927d DJ |
12976 | fprintf (f, "%lu\n", i); |
12977 | } | |
b4e70030 | 12978 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
12979 | |
12980 | ; | |
12981 | return 0; | |
12982 | } | |
12983 | _ACEOF | |
12984 | rm -f conftest$ac_exeext | |
12985 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12986 | (eval $ac_link) 2>&5 | |
12987 | ac_status=$? | |
12988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12989 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12991 | (eval $ac_try) 2>&5 | |
12992 | ac_status=$? | |
12993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12994 | (exit $ac_status); }; }; then | |
12995 | ac_cv_sizeof_long=`cat conftest.val` | |
12996 | else | |
12997 | echo "$as_me: program exited with status $ac_status" >&5 | |
12998 | echo "$as_me: failed program was:" >&5 | |
12999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13000 | ||
13001 | ( exit $ac_status ) | |
b4e70030 | 13002 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
4e8d927d | 13003 | See \`config.log' for more details." >&5 |
b4e70030 | 13004 | echo "$as_me: error: cannot compute sizeof (long), 77 |
4e8d927d | 13005 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
13006 | { (exit 1); exit 1; }; } |
13007 | fi | |
13008 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 13009 | fi |
4e8d927d DJ |
13010 | fi |
13011 | rm -f conftest.val | |
13012 | else | |
13013 | ac_cv_sizeof_long=0 | |
13014 | fi | |
13015 | fi | |
b4e70030 JB |
13016 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
13017 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
4e8d927d DJ |
13018 | cat >>confdefs.h <<_ACEOF |
13019 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
13020 | _ACEOF | |
13021 | ||
13022 | ;; | |
13023 | esac | |
13024 | ||
13025 | if test $acx_cv_header_stdint = stddef.h; then | |
13026 | # Lacking a good header? Test size of everything and deduce all types. | |
b4e70030 JB |
13027 | echo "$as_me:$LINENO: checking for int" >&5 |
13028 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
4e8d927d DJ |
13029 | if test "${ac_cv_type_int+set}" = set; then |
13030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13031 | else | |
13032 | cat >conftest.$ac_ext <<_ACEOF | |
13033 | /* confdefs.h. */ | |
13034 | _ACEOF | |
13035 | cat confdefs.h >>conftest.$ac_ext | |
13036 | cat >>conftest.$ac_ext <<_ACEOF | |
13037 | /* end confdefs.h. */ | |
13038 | $ac_includes_default | |
4e8d927d DJ |
13039 | int |
13040 | main () | |
13041 | { | |
b4e70030 | 13042 | if ((int *) 0) |
4e8d927d | 13043 | return 0; |
b4e70030 | 13044 | if (sizeof (int)) |
4e8d927d DJ |
13045 | return 0; |
13046 | ; | |
13047 | return 0; | |
13048 | } | |
13049 | _ACEOF | |
13050 | rm -f conftest.$ac_objext | |
13051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13052 | (eval $ac_compile) 2>conftest.er1 | |
13053 | ac_status=$? | |
13054 | grep -v '^ *+' conftest.er1 >conftest.err | |
13055 | rm -f conftest.er1 | |
13056 | cat conftest.err >&5 | |
13057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13058 | (exit $ac_status); } && | |
b4e70030 JB |
13059 | { ac_try='test -z "$ac_c_werror_flag" |
13060 | || test ! -s conftest.err' | |
4e8d927d DJ |
13061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13062 | (eval $ac_try) 2>&5 | |
13063 | ac_status=$? | |
13064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13065 | (exit $ac_status); }; } && | |
13066 | { ac_try='test -s conftest.$ac_objext' | |
13067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13068 | (eval $ac_try) 2>&5 | |
13069 | ac_status=$? | |
13070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13071 | (exit $ac_status); }; }; then | |
13072 | ac_cv_type_int=yes | |
13073 | else | |
13074 | echo "$as_me: failed program was:" >&5 | |
13075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13076 | ||
b4e70030 | 13077 | ac_cv_type_int=no |
4e8d927d | 13078 | fi |
4e8d927d DJ |
13079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13080 | fi | |
b4e70030 JB |
13081 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
13082 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
4e8d927d | 13083 | |
b4e70030 JB |
13084 | echo "$as_me:$LINENO: checking size of int" >&5 |
13085 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
4e8d927d DJ |
13086 | if test "${ac_cv_sizeof_int+set}" = set; then |
13087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13088 | else | |
13089 | if test "$ac_cv_type_int" = yes; then | |
b4e70030 | 13090 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
13091 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13092 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13093 | # This bug is HP SR number 8606223364. | |
13094 | if test "$cross_compiling" = yes; then | |
13095 | # Depending upon the size, compute the lo and hi bounds. | |
13096 | cat >conftest.$ac_ext <<_ACEOF | |
13097 | /* confdefs.h. */ | |
13098 | _ACEOF | |
13099 | cat confdefs.h >>conftest.$ac_ext | |
13100 | cat >>conftest.$ac_ext <<_ACEOF | |
13101 | /* end confdefs.h. */ | |
13102 | $ac_includes_default | |
4e8d927d DJ |
13103 | int |
13104 | main () | |
13105 | { | |
b4e70030 | 13106 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
4e8d927d DJ |
13107 | test_array [0] = 0 |
13108 | ||
13109 | ; | |
13110 | return 0; | |
13111 | } | |
13112 | _ACEOF | |
13113 | rm -f conftest.$ac_objext | |
13114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13115 | (eval $ac_compile) 2>conftest.er1 | |
13116 | ac_status=$? | |
13117 | grep -v '^ *+' conftest.er1 >conftest.err | |
13118 | rm -f conftest.er1 | |
13119 | cat conftest.err >&5 | |
13120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13121 | (exit $ac_status); } && | |
b4e70030 JB |
13122 | { ac_try='test -z "$ac_c_werror_flag" |
13123 | || test ! -s conftest.err' | |
4e8d927d DJ |
13124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13125 | (eval $ac_try) 2>&5 | |
13126 | ac_status=$? | |
13127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13128 | (exit $ac_status); }; } && | |
13129 | { ac_try='test -s conftest.$ac_objext' | |
13130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13131 | (eval $ac_try) 2>&5 | |
13132 | ac_status=$? | |
13133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13134 | (exit $ac_status); }; }; then | |
13135 | ac_lo=0 ac_mid=0 | |
13136 | while :; do | |
13137 | cat >conftest.$ac_ext <<_ACEOF | |
13138 | /* confdefs.h. */ | |
13139 | _ACEOF | |
13140 | cat confdefs.h >>conftest.$ac_ext | |
13141 | cat >>conftest.$ac_ext <<_ACEOF | |
13142 | /* end confdefs.h. */ | |
13143 | $ac_includes_default | |
4e8d927d DJ |
13144 | int |
13145 | main () | |
13146 | { | |
b4e70030 | 13147 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
4e8d927d DJ |
13148 | test_array [0] = 0 |
13149 | ||
13150 | ; | |
13151 | return 0; | |
13152 | } | |
13153 | _ACEOF | |
13154 | rm -f conftest.$ac_objext | |
13155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13156 | (eval $ac_compile) 2>conftest.er1 | |
13157 | ac_status=$? | |
13158 | grep -v '^ *+' conftest.er1 >conftest.err | |
13159 | rm -f conftest.er1 | |
13160 | cat conftest.err >&5 | |
13161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13162 | (exit $ac_status); } && | |
b4e70030 JB |
13163 | { ac_try='test -z "$ac_c_werror_flag" |
13164 | || test ! -s conftest.err' | |
4e8d927d DJ |
13165 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13166 | (eval $ac_try) 2>&5 | |
13167 | ac_status=$? | |
13168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13169 | (exit $ac_status); }; } && | |
13170 | { ac_try='test -s conftest.$ac_objext' | |
13171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13172 | (eval $ac_try) 2>&5 | |
13173 | ac_status=$? | |
13174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13175 | (exit $ac_status); }; }; then | |
13176 | ac_hi=$ac_mid; break | |
13177 | else | |
13178 | echo "$as_me: failed program was:" >&5 | |
13179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13180 | ||
b4e70030 JB |
13181 | ac_lo=`expr $ac_mid + 1` |
13182 | if test $ac_lo -le $ac_mid; then | |
13183 | ac_lo= ac_hi= | |
13184 | break | |
13185 | fi | |
13186 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 13187 | fi |
4e8d927d DJ |
13188 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13189 | done | |
13190 | else | |
13191 | echo "$as_me: failed program was:" >&5 | |
13192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13193 | ||
b4e70030 | 13194 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
13195 | /* confdefs.h. */ |
13196 | _ACEOF | |
13197 | cat confdefs.h >>conftest.$ac_ext | |
13198 | cat >>conftest.$ac_ext <<_ACEOF | |
13199 | /* end confdefs.h. */ | |
13200 | $ac_includes_default | |
4e8d927d DJ |
13201 | int |
13202 | main () | |
13203 | { | |
b4e70030 | 13204 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
4e8d927d DJ |
13205 | test_array [0] = 0 |
13206 | ||
13207 | ; | |
13208 | return 0; | |
13209 | } | |
13210 | _ACEOF | |
13211 | rm -f conftest.$ac_objext | |
13212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13213 | (eval $ac_compile) 2>conftest.er1 | |
13214 | ac_status=$? | |
13215 | grep -v '^ *+' conftest.er1 >conftest.err | |
13216 | rm -f conftest.er1 | |
13217 | cat conftest.err >&5 | |
13218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13219 | (exit $ac_status); } && | |
b4e70030 JB |
13220 | { ac_try='test -z "$ac_c_werror_flag" |
13221 | || test ! -s conftest.err' | |
4e8d927d DJ |
13222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13223 | (eval $ac_try) 2>&5 | |
13224 | ac_status=$? | |
13225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13226 | (exit $ac_status); }; } && | |
13227 | { ac_try='test -s conftest.$ac_objext' | |
13228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13229 | (eval $ac_try) 2>&5 | |
13230 | ac_status=$? | |
13231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13232 | (exit $ac_status); }; }; then | |
13233 | ac_hi=-1 ac_mid=-1 | |
13234 | while :; do | |
13235 | cat >conftest.$ac_ext <<_ACEOF | |
13236 | /* confdefs.h. */ | |
13237 | _ACEOF | |
13238 | cat confdefs.h >>conftest.$ac_ext | |
13239 | cat >>conftest.$ac_ext <<_ACEOF | |
13240 | /* end confdefs.h. */ | |
13241 | $ac_includes_default | |
4e8d927d DJ |
13242 | int |
13243 | main () | |
13244 | { | |
b4e70030 | 13245 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
4e8d927d DJ |
13246 | test_array [0] = 0 |
13247 | ||
13248 | ; | |
13249 | return 0; | |
13250 | } | |
13251 | _ACEOF | |
13252 | rm -f conftest.$ac_objext | |
13253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13254 | (eval $ac_compile) 2>conftest.er1 | |
13255 | ac_status=$? | |
13256 | grep -v '^ *+' conftest.er1 >conftest.err | |
13257 | rm -f conftest.er1 | |
13258 | cat conftest.err >&5 | |
13259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13260 | (exit $ac_status); } && | |
b4e70030 JB |
13261 | { ac_try='test -z "$ac_c_werror_flag" |
13262 | || test ! -s conftest.err' | |
4e8d927d DJ |
13263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13264 | (eval $ac_try) 2>&5 | |
13265 | ac_status=$? | |
13266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13267 | (exit $ac_status); }; } && | |
13268 | { ac_try='test -s conftest.$ac_objext' | |
13269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13270 | (eval $ac_try) 2>&5 | |
13271 | ac_status=$? | |
13272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13273 | (exit $ac_status); }; }; then | |
13274 | ac_lo=$ac_mid; break | |
13275 | else | |
13276 | echo "$as_me: failed program was:" >&5 | |
13277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13278 | ||
b4e70030 JB |
13279 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13280 | if test $ac_mid -le $ac_hi; then | |
13281 | ac_lo= ac_hi= | |
13282 | break | |
13283 | fi | |
13284 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 13285 | fi |
4e8d927d DJ |
13286 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13287 | done | |
13288 | else | |
13289 | echo "$as_me: failed program was:" >&5 | |
13290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13291 | ||
b4e70030 | 13292 | ac_lo= ac_hi= |
4e8d927d | 13293 | fi |
4e8d927d DJ |
13294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13295 | fi | |
4e8d927d DJ |
13296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13297 | # Binary search between lo and hi bounds. | |
13298 | while test "x$ac_lo" != "x$ac_hi"; do | |
13299 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13300 | cat >conftest.$ac_ext <<_ACEOF | |
13301 | /* confdefs.h. */ | |
13302 | _ACEOF | |
13303 | cat confdefs.h >>conftest.$ac_ext | |
13304 | cat >>conftest.$ac_ext <<_ACEOF | |
13305 | /* end confdefs.h. */ | |
13306 | $ac_includes_default | |
4e8d927d DJ |
13307 | int |
13308 | main () | |
13309 | { | |
b4e70030 | 13310 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
4e8d927d DJ |
13311 | test_array [0] = 0 |
13312 | ||
13313 | ; | |
13314 | return 0; | |
13315 | } | |
13316 | _ACEOF | |
13317 | rm -f conftest.$ac_objext | |
13318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13319 | (eval $ac_compile) 2>conftest.er1 | |
13320 | ac_status=$? | |
13321 | grep -v '^ *+' conftest.er1 >conftest.err | |
13322 | rm -f conftest.er1 | |
13323 | cat conftest.err >&5 | |
13324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13325 | (exit $ac_status); } && | |
b4e70030 JB |
13326 | { ac_try='test -z "$ac_c_werror_flag" |
13327 | || test ! -s conftest.err' | |
4e8d927d DJ |
13328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13329 | (eval $ac_try) 2>&5 | |
13330 | ac_status=$? | |
13331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13332 | (exit $ac_status); }; } && | |
13333 | { ac_try='test -s conftest.$ac_objext' | |
13334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13335 | (eval $ac_try) 2>&5 | |
13336 | ac_status=$? | |
13337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13338 | (exit $ac_status); }; }; then | |
13339 | ac_hi=$ac_mid | |
13340 | else | |
13341 | echo "$as_me: failed program was:" >&5 | |
13342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13343 | ||
b4e70030 | 13344 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 13345 | fi |
4e8d927d DJ |
13346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13347 | done | |
13348 | case $ac_lo in | |
13349 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
b4e70030 | 13350 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
4e8d927d | 13351 | See \`config.log' for more details." >&5 |
b4e70030 | 13352 | echo "$as_me: error: cannot compute sizeof (int), 77 |
4e8d927d | 13353 | See \`config.log' for more details." >&2;} |
b4e70030 | 13354 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 13355 | esac |
b4e70030 JB |
13356 | else |
13357 | if test "$cross_compiling" = yes; then | |
13358 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13359 | See \`config.log' for more details." >&5 | |
13360 | echo "$as_me: error: cannot run test program while cross compiling | |
13361 | See \`config.log' for more details." >&2;} | |
13362 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
13363 | else |
13364 | cat >conftest.$ac_ext <<_ACEOF | |
13365 | /* confdefs.h. */ | |
13366 | _ACEOF | |
13367 | cat confdefs.h >>conftest.$ac_ext | |
13368 | cat >>conftest.$ac_ext <<_ACEOF | |
13369 | /* end confdefs.h. */ | |
13370 | $ac_includes_default | |
b4e70030 JB |
13371 | long longval () { return (long) (sizeof (int)); } |
13372 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
4e8d927d DJ |
13373 | #include <stdio.h> |
13374 | #include <stdlib.h> | |
13375 | int | |
13376 | main () | |
13377 | { | |
13378 | ||
13379 | FILE *f = fopen ("conftest.val", "w"); | |
13380 | if (! f) | |
b4e70030 JB |
13381 | exit (1); |
13382 | if (((long) (sizeof (int))) < 0) | |
4e8d927d | 13383 | { |
b4e70030 JB |
13384 | long i = longval (); |
13385 | if (i != ((long) (sizeof (int)))) | |
13386 | exit (1); | |
4e8d927d DJ |
13387 | fprintf (f, "%ld\n", i); |
13388 | } | |
13389 | else | |
13390 | { | |
b4e70030 JB |
13391 | unsigned long i = ulongval (); |
13392 | if (i != ((long) (sizeof (int)))) | |
13393 | exit (1); | |
4e8d927d DJ |
13394 | fprintf (f, "%lu\n", i); |
13395 | } | |
b4e70030 | 13396 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
13397 | |
13398 | ; | |
13399 | return 0; | |
13400 | } | |
13401 | _ACEOF | |
13402 | rm -f conftest$ac_exeext | |
13403 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13404 | (eval $ac_link) 2>&5 | |
13405 | ac_status=$? | |
13406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13407 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13409 | (eval $ac_try) 2>&5 | |
13410 | ac_status=$? | |
13411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13412 | (exit $ac_status); }; }; then | |
13413 | ac_cv_sizeof_int=`cat conftest.val` | |
13414 | else | |
13415 | echo "$as_me: program exited with status $ac_status" >&5 | |
13416 | echo "$as_me: failed program was:" >&5 | |
13417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13418 | ||
13419 | ( exit $ac_status ) | |
b4e70030 | 13420 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
4e8d927d | 13421 | See \`config.log' for more details." >&5 |
b4e70030 | 13422 | echo "$as_me: error: cannot compute sizeof (int), 77 |
4e8d927d | 13423 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
13424 | { (exit 1); exit 1; }; } |
13425 | fi | |
13426 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 13427 | fi |
4e8d927d DJ |
13428 | fi |
13429 | rm -f conftest.val | |
13430 | else | |
13431 | ac_cv_sizeof_int=0 | |
13432 | fi | |
13433 | fi | |
b4e70030 JB |
13434 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
13435 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
4e8d927d DJ |
13436 | cat >>confdefs.h <<_ACEOF |
13437 | #define SIZEOF_INT $ac_cv_sizeof_int | |
13438 | _ACEOF | |
13439 | ||
13440 | ||
b4e70030 JB |
13441 | echo "$as_me:$LINENO: checking for short" >&5 |
13442 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
4e8d927d DJ |
13443 | if test "${ac_cv_type_short+set}" = set; then |
13444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13445 | else | |
13446 | cat >conftest.$ac_ext <<_ACEOF | |
13447 | /* confdefs.h. */ | |
13448 | _ACEOF | |
13449 | cat confdefs.h >>conftest.$ac_ext | |
13450 | cat >>conftest.$ac_ext <<_ACEOF | |
13451 | /* end confdefs.h. */ | |
13452 | $ac_includes_default | |
4e8d927d DJ |
13453 | int |
13454 | main () | |
13455 | { | |
b4e70030 | 13456 | if ((short *) 0) |
4e8d927d | 13457 | return 0; |
b4e70030 | 13458 | if (sizeof (short)) |
4e8d927d DJ |
13459 | return 0; |
13460 | ; | |
13461 | return 0; | |
13462 | } | |
13463 | _ACEOF | |
13464 | rm -f conftest.$ac_objext | |
13465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13466 | (eval $ac_compile) 2>conftest.er1 | |
13467 | ac_status=$? | |
13468 | grep -v '^ *+' conftest.er1 >conftest.err | |
13469 | rm -f conftest.er1 | |
13470 | cat conftest.err >&5 | |
13471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13472 | (exit $ac_status); } && | |
b4e70030 JB |
13473 | { ac_try='test -z "$ac_c_werror_flag" |
13474 | || test ! -s conftest.err' | |
4e8d927d DJ |
13475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13476 | (eval $ac_try) 2>&5 | |
13477 | ac_status=$? | |
13478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13479 | (exit $ac_status); }; } && | |
13480 | { ac_try='test -s conftest.$ac_objext' | |
13481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13482 | (eval $ac_try) 2>&5 | |
13483 | ac_status=$? | |
13484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13485 | (exit $ac_status); }; }; then | |
13486 | ac_cv_type_short=yes | |
13487 | else | |
13488 | echo "$as_me: failed program was:" >&5 | |
13489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13490 | ||
b4e70030 | 13491 | ac_cv_type_short=no |
4e8d927d | 13492 | fi |
4e8d927d DJ |
13493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13494 | fi | |
b4e70030 JB |
13495 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
13496 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
4e8d927d | 13497 | |
b4e70030 JB |
13498 | echo "$as_me:$LINENO: checking size of short" >&5 |
13499 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
4e8d927d DJ |
13500 | if test "${ac_cv_sizeof_short+set}" = set; then |
13501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13502 | else | |
13503 | if test "$ac_cv_type_short" = yes; then | |
b4e70030 | 13504 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
13505 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13506 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13507 | # This bug is HP SR number 8606223364. | |
13508 | if test "$cross_compiling" = yes; then | |
13509 | # Depending upon the size, compute the lo and hi bounds. | |
13510 | cat >conftest.$ac_ext <<_ACEOF | |
13511 | /* confdefs.h. */ | |
13512 | _ACEOF | |
13513 | cat confdefs.h >>conftest.$ac_ext | |
13514 | cat >>conftest.$ac_ext <<_ACEOF | |
13515 | /* end confdefs.h. */ | |
13516 | $ac_includes_default | |
4e8d927d DJ |
13517 | int |
13518 | main () | |
13519 | { | |
b4e70030 | 13520 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
4e8d927d DJ |
13521 | test_array [0] = 0 |
13522 | ||
13523 | ; | |
13524 | return 0; | |
13525 | } | |
13526 | _ACEOF | |
13527 | rm -f conftest.$ac_objext | |
13528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13529 | (eval $ac_compile) 2>conftest.er1 | |
13530 | ac_status=$? | |
13531 | grep -v '^ *+' conftest.er1 >conftest.err | |
13532 | rm -f conftest.er1 | |
13533 | cat conftest.err >&5 | |
13534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13535 | (exit $ac_status); } && | |
b4e70030 JB |
13536 | { ac_try='test -z "$ac_c_werror_flag" |
13537 | || test ! -s conftest.err' | |
4e8d927d DJ |
13538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13539 | (eval $ac_try) 2>&5 | |
13540 | ac_status=$? | |
13541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13542 | (exit $ac_status); }; } && | |
13543 | { ac_try='test -s conftest.$ac_objext' | |
13544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13545 | (eval $ac_try) 2>&5 | |
13546 | ac_status=$? | |
13547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13548 | (exit $ac_status); }; }; then | |
13549 | ac_lo=0 ac_mid=0 | |
13550 | while :; do | |
13551 | cat >conftest.$ac_ext <<_ACEOF | |
13552 | /* confdefs.h. */ | |
13553 | _ACEOF | |
13554 | cat confdefs.h >>conftest.$ac_ext | |
13555 | cat >>conftest.$ac_ext <<_ACEOF | |
13556 | /* end confdefs.h. */ | |
13557 | $ac_includes_default | |
4e8d927d DJ |
13558 | int |
13559 | main () | |
13560 | { | |
b4e70030 | 13561 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
4e8d927d DJ |
13562 | test_array [0] = 0 |
13563 | ||
13564 | ; | |
13565 | return 0; | |
13566 | } | |
13567 | _ACEOF | |
13568 | rm -f conftest.$ac_objext | |
13569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13570 | (eval $ac_compile) 2>conftest.er1 | |
13571 | ac_status=$? | |
13572 | grep -v '^ *+' conftest.er1 >conftest.err | |
13573 | rm -f conftest.er1 | |
13574 | cat conftest.err >&5 | |
13575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13576 | (exit $ac_status); } && | |
b4e70030 JB |
13577 | { ac_try='test -z "$ac_c_werror_flag" |
13578 | || test ! -s conftest.err' | |
4e8d927d DJ |
13579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13580 | (eval $ac_try) 2>&5 | |
13581 | ac_status=$? | |
13582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13583 | (exit $ac_status); }; } && | |
13584 | { ac_try='test -s conftest.$ac_objext' | |
13585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13586 | (eval $ac_try) 2>&5 | |
13587 | ac_status=$? | |
13588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13589 | (exit $ac_status); }; }; then | |
13590 | ac_hi=$ac_mid; break | |
13591 | else | |
13592 | echo "$as_me: failed program was:" >&5 | |
13593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13594 | ||
b4e70030 JB |
13595 | ac_lo=`expr $ac_mid + 1` |
13596 | if test $ac_lo -le $ac_mid; then | |
13597 | ac_lo= ac_hi= | |
13598 | break | |
13599 | fi | |
13600 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 13601 | fi |
4e8d927d DJ |
13602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13603 | done | |
13604 | else | |
13605 | echo "$as_me: failed program was:" >&5 | |
13606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13607 | ||
b4e70030 | 13608 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
13609 | /* confdefs.h. */ |
13610 | _ACEOF | |
13611 | cat confdefs.h >>conftest.$ac_ext | |
13612 | cat >>conftest.$ac_ext <<_ACEOF | |
13613 | /* end confdefs.h. */ | |
13614 | $ac_includes_default | |
4e8d927d DJ |
13615 | int |
13616 | main () | |
13617 | { | |
b4e70030 | 13618 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
4e8d927d DJ |
13619 | test_array [0] = 0 |
13620 | ||
13621 | ; | |
13622 | return 0; | |
13623 | } | |
13624 | _ACEOF | |
13625 | rm -f conftest.$ac_objext | |
13626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13627 | (eval $ac_compile) 2>conftest.er1 | |
13628 | ac_status=$? | |
13629 | grep -v '^ *+' conftest.er1 >conftest.err | |
13630 | rm -f conftest.er1 | |
13631 | cat conftest.err >&5 | |
13632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13633 | (exit $ac_status); } && | |
b4e70030 JB |
13634 | { ac_try='test -z "$ac_c_werror_flag" |
13635 | || test ! -s conftest.err' | |
4e8d927d DJ |
13636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13637 | (eval $ac_try) 2>&5 | |
13638 | ac_status=$? | |
13639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13640 | (exit $ac_status); }; } && | |
13641 | { ac_try='test -s conftest.$ac_objext' | |
13642 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13643 | (eval $ac_try) 2>&5 | |
13644 | ac_status=$? | |
13645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13646 | (exit $ac_status); }; }; then | |
13647 | ac_hi=-1 ac_mid=-1 | |
13648 | while :; do | |
13649 | cat >conftest.$ac_ext <<_ACEOF | |
13650 | /* confdefs.h. */ | |
13651 | _ACEOF | |
13652 | cat confdefs.h >>conftest.$ac_ext | |
13653 | cat >>conftest.$ac_ext <<_ACEOF | |
13654 | /* end confdefs.h. */ | |
13655 | $ac_includes_default | |
4e8d927d DJ |
13656 | int |
13657 | main () | |
13658 | { | |
b4e70030 | 13659 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
4e8d927d DJ |
13660 | test_array [0] = 0 |
13661 | ||
13662 | ; | |
13663 | return 0; | |
13664 | } | |
13665 | _ACEOF | |
13666 | rm -f conftest.$ac_objext | |
13667 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13668 | (eval $ac_compile) 2>conftest.er1 | |
13669 | ac_status=$? | |
13670 | grep -v '^ *+' conftest.er1 >conftest.err | |
13671 | rm -f conftest.er1 | |
13672 | cat conftest.err >&5 | |
13673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13674 | (exit $ac_status); } && | |
b4e70030 JB |
13675 | { ac_try='test -z "$ac_c_werror_flag" |
13676 | || test ! -s conftest.err' | |
4e8d927d DJ |
13677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13678 | (eval $ac_try) 2>&5 | |
13679 | ac_status=$? | |
13680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13681 | (exit $ac_status); }; } && | |
13682 | { ac_try='test -s conftest.$ac_objext' | |
13683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13684 | (eval $ac_try) 2>&5 | |
13685 | ac_status=$? | |
13686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13687 | (exit $ac_status); }; }; then | |
13688 | ac_lo=$ac_mid; break | |
13689 | else | |
13690 | echo "$as_me: failed program was:" >&5 | |
13691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13692 | ||
b4e70030 JB |
13693 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13694 | if test $ac_mid -le $ac_hi; then | |
13695 | ac_lo= ac_hi= | |
13696 | break | |
13697 | fi | |
13698 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 13699 | fi |
4e8d927d DJ |
13700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13701 | done | |
13702 | else | |
13703 | echo "$as_me: failed program was:" >&5 | |
13704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13705 | ||
b4e70030 | 13706 | ac_lo= ac_hi= |
4e8d927d | 13707 | fi |
4e8d927d DJ |
13708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13709 | fi | |
4e8d927d DJ |
13710 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13711 | # Binary search between lo and hi bounds. | |
13712 | while test "x$ac_lo" != "x$ac_hi"; do | |
13713 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13714 | cat >conftest.$ac_ext <<_ACEOF | |
13715 | /* confdefs.h. */ | |
13716 | _ACEOF | |
13717 | cat confdefs.h >>conftest.$ac_ext | |
13718 | cat >>conftest.$ac_ext <<_ACEOF | |
13719 | /* end confdefs.h. */ | |
13720 | $ac_includes_default | |
4e8d927d DJ |
13721 | int |
13722 | main () | |
13723 | { | |
b4e70030 | 13724 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
4e8d927d DJ |
13725 | test_array [0] = 0 |
13726 | ||
13727 | ; | |
13728 | return 0; | |
13729 | } | |
13730 | _ACEOF | |
13731 | rm -f conftest.$ac_objext | |
13732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13733 | (eval $ac_compile) 2>conftest.er1 | |
13734 | ac_status=$? | |
13735 | grep -v '^ *+' conftest.er1 >conftest.err | |
13736 | rm -f conftest.er1 | |
13737 | cat conftest.err >&5 | |
13738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13739 | (exit $ac_status); } && | |
b4e70030 JB |
13740 | { ac_try='test -z "$ac_c_werror_flag" |
13741 | || test ! -s conftest.err' | |
4e8d927d DJ |
13742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13743 | (eval $ac_try) 2>&5 | |
13744 | ac_status=$? | |
13745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13746 | (exit $ac_status); }; } && | |
13747 | { ac_try='test -s conftest.$ac_objext' | |
13748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13749 | (eval $ac_try) 2>&5 | |
13750 | ac_status=$? | |
13751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13752 | (exit $ac_status); }; }; then | |
13753 | ac_hi=$ac_mid | |
13754 | else | |
13755 | echo "$as_me: failed program was:" >&5 | |
13756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13757 | ||
b4e70030 | 13758 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 13759 | fi |
4e8d927d DJ |
13760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13761 | done | |
13762 | case $ac_lo in | |
13763 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
b4e70030 | 13764 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
4e8d927d | 13765 | See \`config.log' for more details." >&5 |
b4e70030 | 13766 | echo "$as_me: error: cannot compute sizeof (short), 77 |
4e8d927d | 13767 | See \`config.log' for more details." >&2;} |
b4e70030 | 13768 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 13769 | esac |
b4e70030 JB |
13770 | else |
13771 | if test "$cross_compiling" = yes; then | |
13772 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13773 | See \`config.log' for more details." >&5 | |
13774 | echo "$as_me: error: cannot run test program while cross compiling | |
13775 | See \`config.log' for more details." >&2;} | |
13776 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
13777 | else |
13778 | cat >conftest.$ac_ext <<_ACEOF | |
13779 | /* confdefs.h. */ | |
13780 | _ACEOF | |
13781 | cat confdefs.h >>conftest.$ac_ext | |
13782 | cat >>conftest.$ac_ext <<_ACEOF | |
13783 | /* end confdefs.h. */ | |
13784 | $ac_includes_default | |
b4e70030 JB |
13785 | long longval () { return (long) (sizeof (short)); } |
13786 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
4e8d927d DJ |
13787 | #include <stdio.h> |
13788 | #include <stdlib.h> | |
13789 | int | |
13790 | main () | |
13791 | { | |
13792 | ||
13793 | FILE *f = fopen ("conftest.val", "w"); | |
13794 | if (! f) | |
b4e70030 JB |
13795 | exit (1); |
13796 | if (((long) (sizeof (short))) < 0) | |
4e8d927d | 13797 | { |
b4e70030 JB |
13798 | long i = longval (); |
13799 | if (i != ((long) (sizeof (short)))) | |
13800 | exit (1); | |
4e8d927d DJ |
13801 | fprintf (f, "%ld\n", i); |
13802 | } | |
13803 | else | |
13804 | { | |
b4e70030 JB |
13805 | unsigned long i = ulongval (); |
13806 | if (i != ((long) (sizeof (short)))) | |
13807 | exit (1); | |
4e8d927d DJ |
13808 | fprintf (f, "%lu\n", i); |
13809 | } | |
b4e70030 | 13810 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
13811 | |
13812 | ; | |
13813 | return 0; | |
13814 | } | |
13815 | _ACEOF | |
13816 | rm -f conftest$ac_exeext | |
13817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13818 | (eval $ac_link) 2>&5 | |
13819 | ac_status=$? | |
13820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13821 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13823 | (eval $ac_try) 2>&5 | |
13824 | ac_status=$? | |
13825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13826 | (exit $ac_status); }; }; then | |
13827 | ac_cv_sizeof_short=`cat conftest.val` | |
13828 | else | |
13829 | echo "$as_me: program exited with status $ac_status" >&5 | |
13830 | echo "$as_me: failed program was:" >&5 | |
13831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13832 | ||
13833 | ( exit $ac_status ) | |
b4e70030 | 13834 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
4e8d927d | 13835 | See \`config.log' for more details." >&5 |
b4e70030 | 13836 | echo "$as_me: error: cannot compute sizeof (short), 77 |
4e8d927d | 13837 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
13838 | { (exit 1); exit 1; }; } |
13839 | fi | |
13840 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 13841 | fi |
4e8d927d DJ |
13842 | fi |
13843 | rm -f conftest.val | |
13844 | else | |
13845 | ac_cv_sizeof_short=0 | |
13846 | fi | |
13847 | fi | |
b4e70030 JB |
13848 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
13849 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
4e8d927d DJ |
13850 | cat >>confdefs.h <<_ACEOF |
13851 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
13852 | _ACEOF | |
13853 | ||
13854 | ||
b4e70030 JB |
13855 | echo "$as_me:$LINENO: checking for char" >&5 |
13856 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
4e8d927d DJ |
13857 | if test "${ac_cv_type_char+set}" = set; then |
13858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13859 | else | |
13860 | cat >conftest.$ac_ext <<_ACEOF | |
13861 | /* confdefs.h. */ | |
13862 | _ACEOF | |
13863 | cat confdefs.h >>conftest.$ac_ext | |
13864 | cat >>conftest.$ac_ext <<_ACEOF | |
13865 | /* end confdefs.h. */ | |
13866 | $ac_includes_default | |
4e8d927d DJ |
13867 | int |
13868 | main () | |
13869 | { | |
b4e70030 | 13870 | if ((char *) 0) |
4e8d927d | 13871 | return 0; |
b4e70030 | 13872 | if (sizeof (char)) |
4e8d927d DJ |
13873 | return 0; |
13874 | ; | |
13875 | return 0; | |
13876 | } | |
13877 | _ACEOF | |
13878 | rm -f conftest.$ac_objext | |
13879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13880 | (eval $ac_compile) 2>conftest.er1 | |
13881 | ac_status=$? | |
13882 | grep -v '^ *+' conftest.er1 >conftest.err | |
13883 | rm -f conftest.er1 | |
13884 | cat conftest.err >&5 | |
13885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13886 | (exit $ac_status); } && | |
b4e70030 JB |
13887 | { ac_try='test -z "$ac_c_werror_flag" |
13888 | || test ! -s conftest.err' | |
4e8d927d DJ |
13889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13890 | (eval $ac_try) 2>&5 | |
13891 | ac_status=$? | |
13892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13893 | (exit $ac_status); }; } && | |
13894 | { ac_try='test -s conftest.$ac_objext' | |
13895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13896 | (eval $ac_try) 2>&5 | |
13897 | ac_status=$? | |
13898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13899 | (exit $ac_status); }; }; then | |
13900 | ac_cv_type_char=yes | |
13901 | else | |
13902 | echo "$as_me: failed program was:" >&5 | |
13903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13904 | ||
b4e70030 | 13905 | ac_cv_type_char=no |
4e8d927d | 13906 | fi |
4e8d927d DJ |
13907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13908 | fi | |
b4e70030 JB |
13909 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
13910 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
4e8d927d | 13911 | |
b4e70030 JB |
13912 | echo "$as_me:$LINENO: checking size of char" >&5 |
13913 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
4e8d927d DJ |
13914 | if test "${ac_cv_sizeof_char+set}" = set; then |
13915 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13916 | else | |
13917 | if test "$ac_cv_type_char" = yes; then | |
b4e70030 | 13918 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
13919 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13920 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13921 | # This bug is HP SR number 8606223364. | |
13922 | if test "$cross_compiling" = yes; then | |
13923 | # Depending upon the size, compute the lo and hi bounds. | |
13924 | cat >conftest.$ac_ext <<_ACEOF | |
13925 | /* confdefs.h. */ | |
13926 | _ACEOF | |
13927 | cat confdefs.h >>conftest.$ac_ext | |
13928 | cat >>conftest.$ac_ext <<_ACEOF | |
13929 | /* end confdefs.h. */ | |
13930 | $ac_includes_default | |
4e8d927d DJ |
13931 | int |
13932 | main () | |
13933 | { | |
b4e70030 | 13934 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
4e8d927d DJ |
13935 | test_array [0] = 0 |
13936 | ||
13937 | ; | |
13938 | return 0; | |
13939 | } | |
13940 | _ACEOF | |
13941 | rm -f conftest.$ac_objext | |
13942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13943 | (eval $ac_compile) 2>conftest.er1 | |
13944 | ac_status=$? | |
13945 | grep -v '^ *+' conftest.er1 >conftest.err | |
13946 | rm -f conftest.er1 | |
13947 | cat conftest.err >&5 | |
13948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13949 | (exit $ac_status); } && | |
b4e70030 JB |
13950 | { ac_try='test -z "$ac_c_werror_flag" |
13951 | || test ! -s conftest.err' | |
4e8d927d DJ |
13952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13953 | (eval $ac_try) 2>&5 | |
13954 | ac_status=$? | |
13955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13956 | (exit $ac_status); }; } && | |
13957 | { ac_try='test -s conftest.$ac_objext' | |
13958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13959 | (eval $ac_try) 2>&5 | |
13960 | ac_status=$? | |
13961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13962 | (exit $ac_status); }; }; then | |
13963 | ac_lo=0 ac_mid=0 | |
13964 | while :; do | |
13965 | cat >conftest.$ac_ext <<_ACEOF | |
13966 | /* confdefs.h. */ | |
13967 | _ACEOF | |
13968 | cat confdefs.h >>conftest.$ac_ext | |
13969 | cat >>conftest.$ac_ext <<_ACEOF | |
13970 | /* end confdefs.h. */ | |
13971 | $ac_includes_default | |
4e8d927d DJ |
13972 | int |
13973 | main () | |
13974 | { | |
b4e70030 | 13975 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
4e8d927d DJ |
13976 | test_array [0] = 0 |
13977 | ||
13978 | ; | |
13979 | return 0; | |
13980 | } | |
13981 | _ACEOF | |
13982 | rm -f conftest.$ac_objext | |
13983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13984 | (eval $ac_compile) 2>conftest.er1 | |
13985 | ac_status=$? | |
13986 | grep -v '^ *+' conftest.er1 >conftest.err | |
13987 | rm -f conftest.er1 | |
13988 | cat conftest.err >&5 | |
13989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13990 | (exit $ac_status); } && | |
b4e70030 JB |
13991 | { ac_try='test -z "$ac_c_werror_flag" |
13992 | || test ! -s conftest.err' | |
4e8d927d DJ |
13993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13994 | (eval $ac_try) 2>&5 | |
13995 | ac_status=$? | |
13996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13997 | (exit $ac_status); }; } && | |
13998 | { ac_try='test -s conftest.$ac_objext' | |
13999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14000 | (eval $ac_try) 2>&5 | |
14001 | ac_status=$? | |
14002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14003 | (exit $ac_status); }; }; then | |
14004 | ac_hi=$ac_mid; break | |
14005 | else | |
14006 | echo "$as_me: failed program was:" >&5 | |
14007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14008 | ||
b4e70030 JB |
14009 | ac_lo=`expr $ac_mid + 1` |
14010 | if test $ac_lo -le $ac_mid; then | |
14011 | ac_lo= ac_hi= | |
14012 | break | |
14013 | fi | |
14014 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 14015 | fi |
4e8d927d DJ |
14016 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14017 | done | |
14018 | else | |
14019 | echo "$as_me: failed program was:" >&5 | |
14020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14021 | ||
b4e70030 | 14022 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
14023 | /* confdefs.h. */ |
14024 | _ACEOF | |
14025 | cat confdefs.h >>conftest.$ac_ext | |
14026 | cat >>conftest.$ac_ext <<_ACEOF | |
14027 | /* end confdefs.h. */ | |
14028 | $ac_includes_default | |
4e8d927d DJ |
14029 | int |
14030 | main () | |
14031 | { | |
b4e70030 | 14032 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
4e8d927d DJ |
14033 | test_array [0] = 0 |
14034 | ||
14035 | ; | |
14036 | return 0; | |
14037 | } | |
14038 | _ACEOF | |
14039 | rm -f conftest.$ac_objext | |
14040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14041 | (eval $ac_compile) 2>conftest.er1 | |
14042 | ac_status=$? | |
14043 | grep -v '^ *+' conftest.er1 >conftest.err | |
14044 | rm -f conftest.er1 | |
14045 | cat conftest.err >&5 | |
14046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14047 | (exit $ac_status); } && | |
b4e70030 JB |
14048 | { ac_try='test -z "$ac_c_werror_flag" |
14049 | || test ! -s conftest.err' | |
4e8d927d DJ |
14050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14051 | (eval $ac_try) 2>&5 | |
14052 | ac_status=$? | |
14053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14054 | (exit $ac_status); }; } && | |
14055 | { ac_try='test -s conftest.$ac_objext' | |
14056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14057 | (eval $ac_try) 2>&5 | |
14058 | ac_status=$? | |
14059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14060 | (exit $ac_status); }; }; then | |
14061 | ac_hi=-1 ac_mid=-1 | |
14062 | while :; do | |
14063 | cat >conftest.$ac_ext <<_ACEOF | |
14064 | /* confdefs.h. */ | |
14065 | _ACEOF | |
14066 | cat confdefs.h >>conftest.$ac_ext | |
14067 | cat >>conftest.$ac_ext <<_ACEOF | |
14068 | /* end confdefs.h. */ | |
14069 | $ac_includes_default | |
4e8d927d DJ |
14070 | int |
14071 | main () | |
14072 | { | |
b4e70030 | 14073 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
4e8d927d DJ |
14074 | test_array [0] = 0 |
14075 | ||
14076 | ; | |
14077 | return 0; | |
14078 | } | |
14079 | _ACEOF | |
14080 | rm -f conftest.$ac_objext | |
14081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14082 | (eval $ac_compile) 2>conftest.er1 | |
14083 | ac_status=$? | |
14084 | grep -v '^ *+' conftest.er1 >conftest.err | |
14085 | rm -f conftest.er1 | |
14086 | cat conftest.err >&5 | |
14087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14088 | (exit $ac_status); } && | |
b4e70030 JB |
14089 | { ac_try='test -z "$ac_c_werror_flag" |
14090 | || test ! -s conftest.err' | |
4e8d927d DJ |
14091 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14092 | (eval $ac_try) 2>&5 | |
14093 | ac_status=$? | |
14094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14095 | (exit $ac_status); }; } && | |
14096 | { ac_try='test -s conftest.$ac_objext' | |
14097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14098 | (eval $ac_try) 2>&5 | |
14099 | ac_status=$? | |
14100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14101 | (exit $ac_status); }; }; then | |
14102 | ac_lo=$ac_mid; break | |
14103 | else | |
14104 | echo "$as_me: failed program was:" >&5 | |
14105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14106 | ||
b4e70030 JB |
14107 | ac_hi=`expr '(' $ac_mid ')' - 1` |
14108 | if test $ac_mid -le $ac_hi; then | |
14109 | ac_lo= ac_hi= | |
14110 | break | |
14111 | fi | |
14112 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 14113 | fi |
4e8d927d DJ |
14114 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14115 | done | |
14116 | else | |
14117 | echo "$as_me: failed program was:" >&5 | |
14118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14119 | ||
b4e70030 | 14120 | ac_lo= ac_hi= |
4e8d927d | 14121 | fi |
4e8d927d DJ |
14122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14123 | fi | |
4e8d927d DJ |
14124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14125 | # Binary search between lo and hi bounds. | |
14126 | while test "x$ac_lo" != "x$ac_hi"; do | |
14127 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14128 | cat >conftest.$ac_ext <<_ACEOF | |
14129 | /* confdefs.h. */ | |
14130 | _ACEOF | |
14131 | cat confdefs.h >>conftest.$ac_ext | |
14132 | cat >>conftest.$ac_ext <<_ACEOF | |
14133 | /* end confdefs.h. */ | |
14134 | $ac_includes_default | |
4e8d927d DJ |
14135 | int |
14136 | main () | |
14137 | { | |
b4e70030 | 14138 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
4e8d927d DJ |
14139 | test_array [0] = 0 |
14140 | ||
14141 | ; | |
14142 | return 0; | |
14143 | } | |
14144 | _ACEOF | |
14145 | rm -f conftest.$ac_objext | |
14146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14147 | (eval $ac_compile) 2>conftest.er1 | |
14148 | ac_status=$? | |
14149 | grep -v '^ *+' conftest.er1 >conftest.err | |
14150 | rm -f conftest.er1 | |
14151 | cat conftest.err >&5 | |
14152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14153 | (exit $ac_status); } && | |
b4e70030 JB |
14154 | { ac_try='test -z "$ac_c_werror_flag" |
14155 | || test ! -s conftest.err' | |
4e8d927d DJ |
14156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14157 | (eval $ac_try) 2>&5 | |
14158 | ac_status=$? | |
14159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14160 | (exit $ac_status); }; } && | |
14161 | { ac_try='test -s conftest.$ac_objext' | |
14162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14163 | (eval $ac_try) 2>&5 | |
14164 | ac_status=$? | |
14165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14166 | (exit $ac_status); }; }; then | |
14167 | ac_hi=$ac_mid | |
14168 | else | |
14169 | echo "$as_me: failed program was:" >&5 | |
14170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14171 | ||
b4e70030 | 14172 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 14173 | fi |
4e8d927d DJ |
14174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14175 | done | |
14176 | case $ac_lo in | |
14177 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
b4e70030 | 14178 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
4e8d927d | 14179 | See \`config.log' for more details." >&5 |
b4e70030 | 14180 | echo "$as_me: error: cannot compute sizeof (char), 77 |
4e8d927d | 14181 | See \`config.log' for more details." >&2;} |
b4e70030 | 14182 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 14183 | esac |
b4e70030 JB |
14184 | else |
14185 | if test "$cross_compiling" = yes; then | |
14186 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14187 | See \`config.log' for more details." >&5 | |
14188 | echo "$as_me: error: cannot run test program while cross compiling | |
14189 | See \`config.log' for more details." >&2;} | |
14190 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
14191 | else |
14192 | cat >conftest.$ac_ext <<_ACEOF | |
14193 | /* confdefs.h. */ | |
14194 | _ACEOF | |
14195 | cat confdefs.h >>conftest.$ac_ext | |
14196 | cat >>conftest.$ac_ext <<_ACEOF | |
14197 | /* end confdefs.h. */ | |
14198 | $ac_includes_default | |
b4e70030 JB |
14199 | long longval () { return (long) (sizeof (char)); } |
14200 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
4e8d927d DJ |
14201 | #include <stdio.h> |
14202 | #include <stdlib.h> | |
14203 | int | |
14204 | main () | |
14205 | { | |
14206 | ||
14207 | FILE *f = fopen ("conftest.val", "w"); | |
14208 | if (! f) | |
b4e70030 JB |
14209 | exit (1); |
14210 | if (((long) (sizeof (char))) < 0) | |
4e8d927d | 14211 | { |
b4e70030 JB |
14212 | long i = longval (); |
14213 | if (i != ((long) (sizeof (char)))) | |
14214 | exit (1); | |
4e8d927d DJ |
14215 | fprintf (f, "%ld\n", i); |
14216 | } | |
14217 | else | |
14218 | { | |
b4e70030 JB |
14219 | unsigned long i = ulongval (); |
14220 | if (i != ((long) (sizeof (char)))) | |
14221 | exit (1); | |
4e8d927d DJ |
14222 | fprintf (f, "%lu\n", i); |
14223 | } | |
b4e70030 | 14224 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
14225 | |
14226 | ; | |
14227 | return 0; | |
14228 | } | |
14229 | _ACEOF | |
14230 | rm -f conftest$ac_exeext | |
14231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14232 | (eval $ac_link) 2>&5 | |
14233 | ac_status=$? | |
14234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14235 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14237 | (eval $ac_try) 2>&5 | |
14238 | ac_status=$? | |
14239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14240 | (exit $ac_status); }; }; then | |
14241 | ac_cv_sizeof_char=`cat conftest.val` | |
14242 | else | |
14243 | echo "$as_me: program exited with status $ac_status" >&5 | |
14244 | echo "$as_me: failed program was:" >&5 | |
14245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14246 | ||
14247 | ( exit $ac_status ) | |
b4e70030 | 14248 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
4e8d927d | 14249 | See \`config.log' for more details." >&5 |
b4e70030 | 14250 | echo "$as_me: error: cannot compute sizeof (char), 77 |
4e8d927d | 14251 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
14252 | { (exit 1); exit 1; }; } |
14253 | fi | |
14254 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 14255 | fi |
4e8d927d DJ |
14256 | fi |
14257 | rm -f conftest.val | |
14258 | else | |
14259 | ac_cv_sizeof_char=0 | |
14260 | fi | |
14261 | fi | |
b4e70030 JB |
14262 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
14263 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
4e8d927d DJ |
14264 | cat >>confdefs.h <<_ACEOF |
14265 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14266 | _ACEOF | |
14267 | ||
14268 | ||
14269 | ||
b4e70030 JB |
14270 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 |
14271 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14272 | case "$ac_cv_sizeof_char" in |
14273 | 1) acx_cv_type_int8_t=char ;; | |
14274 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
14275 | echo "$as_me: error: no 8-bit type" >&2;} | |
14276 | { (exit please report a bug); exit please report a bug; }; } | |
14277 | esac | |
b4e70030 JB |
14278 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 |
14279 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
4e8d927d | 14280 | |
b4e70030 JB |
14281 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 |
14282 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14283 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in |
14284 | 2:*) acx_cv_type_int16_t=int ;; | |
14285 | *:2) acx_cv_type_int16_t=short ;; | |
14286 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
14287 | echo "$as_me: error: no 16-bit type" >&2;} | |
14288 | { (exit please report a bug); exit please report a bug; }; } | |
14289 | esac | |
b4e70030 JB |
14290 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 |
14291 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
4e8d927d | 14292 | |
b4e70030 JB |
14293 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 |
14294 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14295 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in |
14296 | 4:*) acx_cv_type_int32_t=int ;; | |
14297 | *:4) acx_cv_type_int32_t=long ;; | |
14298 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
14299 | echo "$as_me: error: no 32-bit type" >&2;} | |
14300 | { (exit please report a bug); exit please report a bug; }; } | |
14301 | esac | |
b4e70030 JB |
14302 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 |
14303 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
4e8d927d DJ |
14304 | fi |
14305 | ||
14306 | # These tests are here to make the output prettier | |
14307 | ||
14308 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
14309 | case "$ac_cv_sizeof_long" in | |
14310 | 8) acx_cv_type_int64_t=long ;; | |
14311 | esac | |
b4e70030 JB |
14312 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 |
14313 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 | |
14314 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
14315 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
4e8d927d DJ |
14316 | fi |
14317 | ||
14318 | # Now we can use the above types | |
14319 | ||
14320 | if test "$ac_cv_type_uintptr_t" != yes; then | |
b4e70030 JB |
14321 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 |
14322 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14323 | case $ac_cv_sizeof_void_p in |
14324 | 2) acx_cv_type_intptr_t=int16_t ;; | |
14325 | 4) acx_cv_type_intptr_t=int32_t ;; | |
14326 | 8) acx_cv_type_intptr_t=int64_t ;; | |
14327 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
14328 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
14329 | { (exit please report a bug); exit please report a bug; }; } | |
14330 | esac | |
b4e70030 JB |
14331 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 |
14332 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
4e8d927d DJ |
14333 | fi |
14334 | ||
14335 | # ----------------- done all checks, emit header ------------- | |
b4e70030 | 14336 | ac_config_commands="$ac_config_commands gdb_stdint.h" |
4e8d927d DJ |
14337 | |
14338 | ||
14339 | ||
14340 | ||
14341 | # ------------------------- # | |
14342 | # Checks for declarations. # | |
14343 | # ------------------------- # | |
14344 | ||
b4e70030 JB |
14345 | echo "$as_me:$LINENO: checking whether free is declared" >&5 |
14346 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14347 | if test "${ac_cv_have_decl_free+set}" = set; then |
14348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14349 | else | |
14350 | cat >conftest.$ac_ext <<_ACEOF | |
14351 | /* confdefs.h. */ | |
14352 | _ACEOF | |
14353 | cat confdefs.h >>conftest.$ac_ext | |
14354 | cat >>conftest.$ac_ext <<_ACEOF | |
14355 | /* end confdefs.h. */ | |
14356 | $ac_includes_default | |
14357 | int | |
14358 | main () | |
14359 | { | |
14360 | #ifndef free | |
14361 | char *p = (char *) free; | |
4e8d927d DJ |
14362 | #endif |
14363 | ||
14364 | ; | |
14365 | return 0; | |
14366 | } | |
14367 | _ACEOF | |
14368 | rm -f conftest.$ac_objext | |
14369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14370 | (eval $ac_compile) 2>conftest.er1 | |
14371 | ac_status=$? | |
14372 | grep -v '^ *+' conftest.er1 >conftest.err | |
14373 | rm -f conftest.er1 | |
14374 | cat conftest.err >&5 | |
14375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14376 | (exit $ac_status); } && | |
b4e70030 JB |
14377 | { ac_try='test -z "$ac_c_werror_flag" |
14378 | || test ! -s conftest.err' | |
4e8d927d DJ |
14379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14380 | (eval $ac_try) 2>&5 | |
14381 | ac_status=$? | |
14382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14383 | (exit $ac_status); }; } && | |
14384 | { ac_try='test -s conftest.$ac_objext' | |
14385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14386 | (eval $ac_try) 2>&5 | |
14387 | ac_status=$? | |
14388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14389 | (exit $ac_status); }; }; then | |
14390 | ac_cv_have_decl_free=yes | |
14391 | else | |
14392 | echo "$as_me: failed program was:" >&5 | |
14393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14394 | ||
b4e70030 | 14395 | ac_cv_have_decl_free=no |
4e8d927d | 14396 | fi |
4e8d927d DJ |
14397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14398 | fi | |
b4e70030 JB |
14399 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
14400 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
4e8d927d DJ |
14401 | if test $ac_cv_have_decl_free = yes; then |
14402 | ||
14403 | cat >>confdefs.h <<_ACEOF | |
14404 | #define HAVE_DECL_FREE 1 | |
14405 | _ACEOF | |
14406 | ||
14407 | ||
14408 | else | |
14409 | cat >>confdefs.h <<_ACEOF | |
14410 | #define HAVE_DECL_FREE 0 | |
14411 | _ACEOF | |
14412 | ||
14413 | ||
14414 | fi | |
b4e70030 JB |
14415 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 |
14416 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14417 | if test "${ac_cv_have_decl_malloc+set}" = set; then |
14418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14419 | else | |
14420 | cat >conftest.$ac_ext <<_ACEOF | |
14421 | /* confdefs.h. */ | |
14422 | _ACEOF | |
14423 | cat confdefs.h >>conftest.$ac_ext | |
14424 | cat >>conftest.$ac_ext <<_ACEOF | |
14425 | /* end confdefs.h. */ | |
14426 | $ac_includes_default | |
14427 | int | |
14428 | main () | |
14429 | { | |
14430 | #ifndef malloc | |
14431 | char *p = (char *) malloc; | |
4e8d927d DJ |
14432 | #endif |
14433 | ||
14434 | ; | |
14435 | return 0; | |
14436 | } | |
14437 | _ACEOF | |
14438 | rm -f conftest.$ac_objext | |
14439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14440 | (eval $ac_compile) 2>conftest.er1 | |
14441 | ac_status=$? | |
14442 | grep -v '^ *+' conftest.er1 >conftest.err | |
14443 | rm -f conftest.er1 | |
14444 | cat conftest.err >&5 | |
14445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14446 | (exit $ac_status); } && | |
b4e70030 JB |
14447 | { ac_try='test -z "$ac_c_werror_flag" |
14448 | || test ! -s conftest.err' | |
4e8d927d DJ |
14449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14450 | (eval $ac_try) 2>&5 | |
14451 | ac_status=$? | |
14452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14453 | (exit $ac_status); }; } && | |
14454 | { ac_try='test -s conftest.$ac_objext' | |
14455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14456 | (eval $ac_try) 2>&5 | |
14457 | ac_status=$? | |
14458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14459 | (exit $ac_status); }; }; then | |
14460 | ac_cv_have_decl_malloc=yes | |
14461 | else | |
14462 | echo "$as_me: failed program was:" >&5 | |
14463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14464 | ||
b4e70030 | 14465 | ac_cv_have_decl_malloc=no |
4e8d927d | 14466 | fi |
4e8d927d DJ |
14467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14468 | fi | |
b4e70030 JB |
14469 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
14470 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
4e8d927d DJ |
14471 | if test $ac_cv_have_decl_malloc = yes; then |
14472 | ||
14473 | cat >>confdefs.h <<_ACEOF | |
14474 | #define HAVE_DECL_MALLOC 1 | |
14475 | _ACEOF | |
14476 | ||
14477 | ||
14478 | else | |
14479 | cat >>confdefs.h <<_ACEOF | |
14480 | #define HAVE_DECL_MALLOC 0 | |
14481 | _ACEOF | |
14482 | ||
14483 | ||
14484 | fi | |
b4e70030 JB |
14485 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 |
14486 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14487 | if test "${ac_cv_have_decl_realloc+set}" = set; then |
14488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14489 | else | |
14490 | cat >conftest.$ac_ext <<_ACEOF | |
14491 | /* confdefs.h. */ | |
14492 | _ACEOF | |
14493 | cat confdefs.h >>conftest.$ac_ext | |
14494 | cat >>conftest.$ac_ext <<_ACEOF | |
14495 | /* end confdefs.h. */ | |
14496 | $ac_includes_default | |
14497 | int | |
14498 | main () | |
14499 | { | |
14500 | #ifndef realloc | |
14501 | char *p = (char *) realloc; | |
4e8d927d DJ |
14502 | #endif |
14503 | ||
14504 | ; | |
14505 | return 0; | |
14506 | } | |
14507 | _ACEOF | |
14508 | rm -f conftest.$ac_objext | |
14509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14510 | (eval $ac_compile) 2>conftest.er1 | |
14511 | ac_status=$? | |
14512 | grep -v '^ *+' conftest.er1 >conftest.err | |
14513 | rm -f conftest.er1 | |
14514 | cat conftest.err >&5 | |
14515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14516 | (exit $ac_status); } && | |
b4e70030 JB |
14517 | { ac_try='test -z "$ac_c_werror_flag" |
14518 | || test ! -s conftest.err' | |
4e8d927d DJ |
14519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14520 | (eval $ac_try) 2>&5 | |
14521 | ac_status=$? | |
14522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14523 | (exit $ac_status); }; } && | |
14524 | { ac_try='test -s conftest.$ac_objext' | |
14525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14526 | (eval $ac_try) 2>&5 | |
14527 | ac_status=$? | |
14528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14529 | (exit $ac_status); }; }; then | |
14530 | ac_cv_have_decl_realloc=yes | |
14531 | else | |
14532 | echo "$as_me: failed program was:" >&5 | |
14533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14534 | ||
b4e70030 | 14535 | ac_cv_have_decl_realloc=no |
4e8d927d | 14536 | fi |
4e8d927d DJ |
14537 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14538 | fi | |
b4e70030 JB |
14539 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
14540 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
4e8d927d DJ |
14541 | if test $ac_cv_have_decl_realloc = yes; then |
14542 | ||
14543 | cat >>confdefs.h <<_ACEOF | |
14544 | #define HAVE_DECL_REALLOC 1 | |
14545 | _ACEOF | |
14546 | ||
14547 | ||
14548 | else | |
14549 | cat >>confdefs.h <<_ACEOF | |
14550 | #define HAVE_DECL_REALLOC 0 | |
14551 | _ACEOF | |
14552 | ||
14553 | ||
14554 | fi | |
14555 | ||
14556 | ||
b4e70030 JB |
14557 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 |
14558 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14559 | if test "${ac_cv_have_decl_strerror+set}" = set; then |
14560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14561 | else | |
14562 | cat >conftest.$ac_ext <<_ACEOF | |
14563 | /* confdefs.h. */ | |
14564 | _ACEOF | |
14565 | cat confdefs.h >>conftest.$ac_ext | |
14566 | cat >>conftest.$ac_ext <<_ACEOF | |
14567 | /* end confdefs.h. */ | |
14568 | $ac_includes_default | |
14569 | int | |
14570 | main () | |
14571 | { | |
14572 | #ifndef strerror | |
14573 | char *p = (char *) strerror; | |
4e8d927d DJ |
14574 | #endif |
14575 | ||
14576 | ; | |
14577 | return 0; | |
14578 | } | |
14579 | _ACEOF | |
14580 | rm -f conftest.$ac_objext | |
14581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14582 | (eval $ac_compile) 2>conftest.er1 | |
14583 | ac_status=$? | |
14584 | grep -v '^ *+' conftest.er1 >conftest.err | |
14585 | rm -f conftest.er1 | |
14586 | cat conftest.err >&5 | |
14587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14588 | (exit $ac_status); } && | |
b4e70030 JB |
14589 | { ac_try='test -z "$ac_c_werror_flag" |
14590 | || test ! -s conftest.err' | |
4e8d927d DJ |
14591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14592 | (eval $ac_try) 2>&5 | |
14593 | ac_status=$? | |
14594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14595 | (exit $ac_status); }; } && | |
14596 | { ac_try='test -s conftest.$ac_objext' | |
14597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14598 | (eval $ac_try) 2>&5 | |
14599 | ac_status=$? | |
14600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14601 | (exit $ac_status); }; }; then | |
14602 | ac_cv_have_decl_strerror=yes | |
14603 | else | |
14604 | echo "$as_me: failed program was:" >&5 | |
14605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14606 | ||
b4e70030 | 14607 | ac_cv_have_decl_strerror=no |
4e8d927d | 14608 | fi |
4e8d927d DJ |
14609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14610 | fi | |
b4e70030 JB |
14611 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 |
14612 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 | |
4e8d927d DJ |
14613 | if test $ac_cv_have_decl_strerror = yes; then |
14614 | ||
14615 | cat >>confdefs.h <<_ACEOF | |
14616 | #define HAVE_DECL_STRERROR 1 | |
14617 | _ACEOF | |
14618 | ||
14619 | ||
14620 | else | |
14621 | cat >>confdefs.h <<_ACEOF | |
14622 | #define HAVE_DECL_STRERROR 0 | |
14623 | _ACEOF | |
14624 | ||
14625 | ||
14626 | fi | |
b4e70030 JB |
14627 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
14628 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14629 | if test "${ac_cv_have_decl_strstr+set}" = set; then |
14630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14631 | else | |
14632 | cat >conftest.$ac_ext <<_ACEOF | |
14633 | /* confdefs.h. */ | |
14634 | _ACEOF | |
14635 | cat confdefs.h >>conftest.$ac_ext | |
14636 | cat >>conftest.$ac_ext <<_ACEOF | |
14637 | /* end confdefs.h. */ | |
14638 | $ac_includes_default | |
14639 | int | |
14640 | main () | |
14641 | { | |
14642 | #ifndef strstr | |
14643 | char *p = (char *) strstr; | |
4e8d927d DJ |
14644 | #endif |
14645 | ||
14646 | ; | |
14647 | return 0; | |
14648 | } | |
14649 | _ACEOF | |
14650 | rm -f conftest.$ac_objext | |
14651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14652 | (eval $ac_compile) 2>conftest.er1 | |
14653 | ac_status=$? | |
14654 | grep -v '^ *+' conftest.er1 >conftest.err | |
14655 | rm -f conftest.er1 | |
14656 | cat conftest.err >&5 | |
14657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14658 | (exit $ac_status); } && | |
b4e70030 JB |
14659 | { ac_try='test -z "$ac_c_werror_flag" |
14660 | || test ! -s conftest.err' | |
4e8d927d DJ |
14661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14662 | (eval $ac_try) 2>&5 | |
14663 | ac_status=$? | |
14664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14665 | (exit $ac_status); }; } && | |
14666 | { ac_try='test -s conftest.$ac_objext' | |
14667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14668 | (eval $ac_try) 2>&5 | |
14669 | ac_status=$? | |
14670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14671 | (exit $ac_status); }; }; then | |
14672 | ac_cv_have_decl_strstr=yes | |
14673 | else | |
14674 | echo "$as_me: failed program was:" >&5 | |
14675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14676 | ||
b4e70030 | 14677 | ac_cv_have_decl_strstr=no |
4e8d927d | 14678 | fi |
4e8d927d DJ |
14679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14680 | fi | |
b4e70030 JB |
14681 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
14682 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
4e8d927d DJ |
14683 | if test $ac_cv_have_decl_strstr = yes; then |
14684 | ||
14685 | cat >>confdefs.h <<_ACEOF | |
14686 | #define HAVE_DECL_STRSTR 1 | |
14687 | _ACEOF | |
14688 | ||
14689 | ||
14690 | else | |
14691 | cat >>confdefs.h <<_ACEOF | |
14692 | #define HAVE_DECL_STRSTR 0 | |
14693 | _ACEOF | |
14694 | ||
14695 | ||
14696 | fi | |
14697 | ||
14698 | ||
b4e70030 JB |
14699 | echo "$as_me:$LINENO: checking whether getopt is declared" >&5 |
14700 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14701 | if test "${ac_cv_have_decl_getopt+set}" = set; then |
14702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14703 | else | |
14704 | cat >conftest.$ac_ext <<_ACEOF | |
14705 | /* confdefs.h. */ | |
14706 | _ACEOF | |
14707 | cat confdefs.h >>conftest.$ac_ext | |
14708 | cat >>conftest.$ac_ext <<_ACEOF | |
14709 | /* end confdefs.h. */ | |
14710 | $ac_includes_default | |
14711 | int | |
14712 | main () | |
14713 | { | |
14714 | #ifndef getopt | |
14715 | char *p = (char *) getopt; | |
4e8d927d DJ |
14716 | #endif |
14717 | ||
14718 | ; | |
14719 | return 0; | |
14720 | } | |
14721 | _ACEOF | |
14722 | rm -f conftest.$ac_objext | |
14723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14724 | (eval $ac_compile) 2>conftest.er1 | |
14725 | ac_status=$? | |
14726 | grep -v '^ *+' conftest.er1 >conftest.err | |
14727 | rm -f conftest.er1 | |
14728 | cat conftest.err >&5 | |
14729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14730 | (exit $ac_status); } && | |
b4e70030 JB |
14731 | { ac_try='test -z "$ac_c_werror_flag" |
14732 | || test ! -s conftest.err' | |
4e8d927d DJ |
14733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14734 | (eval $ac_try) 2>&5 | |
14735 | ac_status=$? | |
14736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14737 | (exit $ac_status); }; } && | |
14738 | { ac_try='test -s conftest.$ac_objext' | |
14739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14740 | (eval $ac_try) 2>&5 | |
14741 | ac_status=$? | |
14742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14743 | (exit $ac_status); }; }; then | |
14744 | ac_cv_have_decl_getopt=yes | |
14745 | else | |
14746 | echo "$as_me: failed program was:" >&5 | |
14747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14748 | ||
b4e70030 | 14749 | ac_cv_have_decl_getopt=no |
4e8d927d | 14750 | fi |
4e8d927d DJ |
14751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14752 | fi | |
b4e70030 JB |
14753 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 |
14754 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6 | |
4e8d927d DJ |
14755 | if test $ac_cv_have_decl_getopt = yes; then |
14756 | ||
14757 | cat >>confdefs.h <<_ACEOF | |
14758 | #define HAVE_DECL_GETOPT 1 | |
14759 | _ACEOF | |
14760 | ||
14761 | ||
14762 | else | |
14763 | cat >>confdefs.h <<_ACEOF | |
14764 | #define HAVE_DECL_GETOPT 0 | |
14765 | _ACEOF | |
14766 | ||
14767 | ||
14768 | fi | |
b4e70030 JB |
14769 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
14770 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14771 | if test "${ac_cv_have_decl_snprintf+set}" = set; then |
14772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14773 | else | |
14774 | cat >conftest.$ac_ext <<_ACEOF | |
14775 | /* confdefs.h. */ | |
14776 | _ACEOF | |
14777 | cat confdefs.h >>conftest.$ac_ext | |
14778 | cat >>conftest.$ac_ext <<_ACEOF | |
14779 | /* end confdefs.h. */ | |
14780 | $ac_includes_default | |
14781 | int | |
14782 | main () | |
14783 | { | |
14784 | #ifndef snprintf | |
14785 | char *p = (char *) snprintf; | |
4e8d927d DJ |
14786 | #endif |
14787 | ||
14788 | ; | |
14789 | return 0; | |
14790 | } | |
14791 | _ACEOF | |
14792 | rm -f conftest.$ac_objext | |
14793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14794 | (eval $ac_compile) 2>conftest.er1 | |
14795 | ac_status=$? | |
14796 | grep -v '^ *+' conftest.er1 >conftest.err | |
14797 | rm -f conftest.er1 | |
14798 | cat conftest.err >&5 | |
14799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14800 | (exit $ac_status); } && | |
b4e70030 JB |
14801 | { ac_try='test -z "$ac_c_werror_flag" |
14802 | || test ! -s conftest.err' | |
4e8d927d DJ |
14803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14804 | (eval $ac_try) 2>&5 | |
14805 | ac_status=$? | |
14806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14807 | (exit $ac_status); }; } && | |
14808 | { ac_try='test -s conftest.$ac_objext' | |
14809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14810 | (eval $ac_try) 2>&5 | |
14811 | ac_status=$? | |
14812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14813 | (exit $ac_status); }; }; then | |
14814 | ac_cv_have_decl_snprintf=yes | |
14815 | else | |
14816 | echo "$as_me: failed program was:" >&5 | |
14817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14818 | ||
b4e70030 | 14819 | ac_cv_have_decl_snprintf=no |
4e8d927d | 14820 | fi |
4e8d927d DJ |
14821 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14822 | fi | |
b4e70030 JB |
14823 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 |
14824 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
4e8d927d DJ |
14825 | if test $ac_cv_have_decl_snprintf = yes; then |
14826 | ||
14827 | cat >>confdefs.h <<_ACEOF | |
14828 | #define HAVE_DECL_SNPRINTF 1 | |
14829 | _ACEOF | |
14830 | ||
14831 | ||
14832 | else | |
14833 | cat >>confdefs.h <<_ACEOF | |
14834 | #define HAVE_DECL_SNPRINTF 0 | |
14835 | _ACEOF | |
14836 | ||
14837 | ||
14838 | fi | |
b4e70030 JB |
14839 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
14840 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14841 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then |
14842 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14843 | else | |
14844 | cat >conftest.$ac_ext <<_ACEOF | |
14845 | /* confdefs.h. */ | |
14846 | _ACEOF | |
14847 | cat confdefs.h >>conftest.$ac_ext | |
14848 | cat >>conftest.$ac_ext <<_ACEOF | |
14849 | /* end confdefs.h. */ | |
14850 | $ac_includes_default | |
14851 | int | |
14852 | main () | |
14853 | { | |
14854 | #ifndef vsnprintf | |
14855 | char *p = (char *) vsnprintf; | |
4e8d927d DJ |
14856 | #endif |
14857 | ||
14858 | ; | |
14859 | return 0; | |
14860 | } | |
14861 | _ACEOF | |
14862 | rm -f conftest.$ac_objext | |
14863 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14864 | (eval $ac_compile) 2>conftest.er1 | |
14865 | ac_status=$? | |
14866 | grep -v '^ *+' conftest.er1 >conftest.err | |
14867 | rm -f conftest.er1 | |
14868 | cat conftest.err >&5 | |
14869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14870 | (exit $ac_status); } && | |
b4e70030 JB |
14871 | { ac_try='test -z "$ac_c_werror_flag" |
14872 | || test ! -s conftest.err' | |
4e8d927d DJ |
14873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14874 | (eval $ac_try) 2>&5 | |
14875 | ac_status=$? | |
14876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14877 | (exit $ac_status); }; } && | |
14878 | { ac_try='test -s conftest.$ac_objext' | |
14879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14880 | (eval $ac_try) 2>&5 | |
14881 | ac_status=$? | |
14882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14883 | (exit $ac_status); }; }; then | |
14884 | ac_cv_have_decl_vsnprintf=yes | |
14885 | else | |
14886 | echo "$as_me: failed program was:" >&5 | |
14887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14888 | ||
b4e70030 | 14889 | ac_cv_have_decl_vsnprintf=no |
4e8d927d | 14890 | fi |
4e8d927d DJ |
14891 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14892 | fi | |
b4e70030 JB |
14893 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 |
14894 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
4e8d927d DJ |
14895 | if test $ac_cv_have_decl_vsnprintf = yes; then |
14896 | ||
14897 | cat >>confdefs.h <<_ACEOF | |
14898 | #define HAVE_DECL_VSNPRINTF 1 | |
14899 | _ACEOF | |
14900 | ||
14901 | ||
14902 | else | |
14903 | cat >>confdefs.h <<_ACEOF | |
14904 | #define HAVE_DECL_VSNPRINTF 0 | |
14905 | _ACEOF | |
14906 | ||
14907 | ||
14908 | fi | |
14909 | ||
14910 | ||
14911 | ||
14912 | # ----------------------- # | |
14913 | # Checks for structures. # | |
14914 | # ----------------------- # | |
14915 | ||
b4e70030 JB |
14916 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
14917 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
4e8d927d DJ |
14918 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
14919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14920 | else | |
14921 | cat >conftest.$ac_ext <<_ACEOF | |
14922 | /* confdefs.h. */ | |
14923 | _ACEOF | |
14924 | cat confdefs.h >>conftest.$ac_ext | |
14925 | cat >>conftest.$ac_ext <<_ACEOF | |
14926 | /* end confdefs.h. */ | |
14927 | $ac_includes_default | |
14928 | int | |
14929 | main () | |
14930 | { | |
14931 | static struct stat ac_aggr; | |
14932 | if (ac_aggr.st_blocks) | |
14933 | return 0; | |
14934 | ; | |
14935 | return 0; | |
14936 | } | |
14937 | _ACEOF | |
14938 | rm -f conftest.$ac_objext | |
14939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14940 | (eval $ac_compile) 2>conftest.er1 | |
14941 | ac_status=$? | |
14942 | grep -v '^ *+' conftest.er1 >conftest.err | |
14943 | rm -f conftest.er1 | |
14944 | cat conftest.err >&5 | |
14945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14946 | (exit $ac_status); } && | |
b4e70030 JB |
14947 | { ac_try='test -z "$ac_c_werror_flag" |
14948 | || test ! -s conftest.err' | |
4e8d927d DJ |
14949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14950 | (eval $ac_try) 2>&5 | |
14951 | ac_status=$? | |
14952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14953 | (exit $ac_status); }; } && | |
14954 | { ac_try='test -s conftest.$ac_objext' | |
14955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14956 | (eval $ac_try) 2>&5 | |
14957 | ac_status=$? | |
14958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14959 | (exit $ac_status); }; }; then | |
14960 | ac_cv_member_struct_stat_st_blocks=yes | |
14961 | else | |
14962 | echo "$as_me: failed program was:" >&5 | |
14963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14964 | ||
b4e70030 | 14965 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
14966 | /* confdefs.h. */ |
14967 | _ACEOF | |
14968 | cat confdefs.h >>conftest.$ac_ext | |
14969 | cat >>conftest.$ac_ext <<_ACEOF | |
14970 | /* end confdefs.h. */ | |
14971 | $ac_includes_default | |
14972 | int | |
14973 | main () | |
14974 | { | |
14975 | static struct stat ac_aggr; | |
14976 | if (sizeof ac_aggr.st_blocks) | |
14977 | return 0; | |
14978 | ; | |
14979 | return 0; | |
14980 | } | |
14981 | _ACEOF | |
14982 | rm -f conftest.$ac_objext | |
14983 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14984 | (eval $ac_compile) 2>conftest.er1 | |
14985 | ac_status=$? | |
14986 | grep -v '^ *+' conftest.er1 >conftest.err | |
14987 | rm -f conftest.er1 | |
14988 | cat conftest.err >&5 | |
14989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14990 | (exit $ac_status); } && | |
b4e70030 JB |
14991 | { ac_try='test -z "$ac_c_werror_flag" |
14992 | || test ! -s conftest.err' | |
4e8d927d DJ |
14993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14994 | (eval $ac_try) 2>&5 | |
14995 | ac_status=$? | |
14996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14997 | (exit $ac_status); }; } && | |
14998 | { ac_try='test -s conftest.$ac_objext' | |
14999 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15000 | (eval $ac_try) 2>&5 | |
15001 | ac_status=$? | |
15002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15003 | (exit $ac_status); }; }; then | |
15004 | ac_cv_member_struct_stat_st_blocks=yes | |
15005 | else | |
15006 | echo "$as_me: failed program was:" >&5 | |
15007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15008 | ||
b4e70030 | 15009 | ac_cv_member_struct_stat_st_blocks=no |
4e8d927d | 15010 | fi |
4e8d927d DJ |
15011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15012 | fi | |
4e8d927d DJ |
15013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15014 | fi | |
b4e70030 JB |
15015 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
15016 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
4e8d927d DJ |
15017 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
15018 | ||
15019 | cat >>confdefs.h <<_ACEOF | |
15020 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
15021 | _ACEOF | |
15022 | ||
15023 | ||
15024 | fi | |
15025 | ||
b4e70030 JB |
15026 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
15027 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
4e8d927d DJ |
15028 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
15029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15030 | else | |
15031 | cat >conftest.$ac_ext <<_ACEOF | |
15032 | /* confdefs.h. */ | |
15033 | _ACEOF | |
15034 | cat confdefs.h >>conftest.$ac_ext | |
15035 | cat >>conftest.$ac_ext <<_ACEOF | |
15036 | /* end confdefs.h. */ | |
15037 | $ac_includes_default | |
15038 | int | |
15039 | main () | |
15040 | { | |
15041 | static struct stat ac_aggr; | |
15042 | if (ac_aggr.st_blksize) | |
15043 | return 0; | |
15044 | ; | |
15045 | return 0; | |
15046 | } | |
15047 | _ACEOF | |
15048 | rm -f conftest.$ac_objext | |
15049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15050 | (eval $ac_compile) 2>conftest.er1 | |
15051 | ac_status=$? | |
15052 | grep -v '^ *+' conftest.er1 >conftest.err | |
15053 | rm -f conftest.er1 | |
15054 | cat conftest.err >&5 | |
15055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15056 | (exit $ac_status); } && | |
b4e70030 JB |
15057 | { ac_try='test -z "$ac_c_werror_flag" |
15058 | || test ! -s conftest.err' | |
4e8d927d DJ |
15059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15060 | (eval $ac_try) 2>&5 | |
15061 | ac_status=$? | |
15062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15063 | (exit $ac_status); }; } && | |
15064 | { ac_try='test -s conftest.$ac_objext' | |
15065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15066 | (eval $ac_try) 2>&5 | |
15067 | ac_status=$? | |
15068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15069 | (exit $ac_status); }; }; then | |
15070 | ac_cv_member_struct_stat_st_blksize=yes | |
15071 | else | |
15072 | echo "$as_me: failed program was:" >&5 | |
15073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15074 | ||
b4e70030 | 15075 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
15076 | /* confdefs.h. */ |
15077 | _ACEOF | |
15078 | cat confdefs.h >>conftest.$ac_ext | |
15079 | cat >>conftest.$ac_ext <<_ACEOF | |
15080 | /* end confdefs.h. */ | |
15081 | $ac_includes_default | |
15082 | int | |
15083 | main () | |
15084 | { | |
15085 | static struct stat ac_aggr; | |
15086 | if (sizeof ac_aggr.st_blksize) | |
15087 | return 0; | |
15088 | ; | |
15089 | return 0; | |
15090 | } | |
15091 | _ACEOF | |
15092 | rm -f conftest.$ac_objext | |
15093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15094 | (eval $ac_compile) 2>conftest.er1 | |
15095 | ac_status=$? | |
15096 | grep -v '^ *+' conftest.er1 >conftest.err | |
15097 | rm -f conftest.er1 | |
15098 | cat conftest.err >&5 | |
15099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15100 | (exit $ac_status); } && | |
b4e70030 JB |
15101 | { ac_try='test -z "$ac_c_werror_flag" |
15102 | || test ! -s conftest.err' | |
4e8d927d DJ |
15103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15104 | (eval $ac_try) 2>&5 | |
15105 | ac_status=$? | |
15106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15107 | (exit $ac_status); }; } && | |
15108 | { ac_try='test -s conftest.$ac_objext' | |
15109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15110 | (eval $ac_try) 2>&5 | |
15111 | ac_status=$? | |
15112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15113 | (exit $ac_status); }; }; then | |
15114 | ac_cv_member_struct_stat_st_blksize=yes | |
15115 | else | |
15116 | echo "$as_me: failed program was:" >&5 | |
15117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15118 | ||
b4e70030 | 15119 | ac_cv_member_struct_stat_st_blksize=no |
4e8d927d | 15120 | fi |
4e8d927d DJ |
15121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15122 | fi | |
4e8d927d DJ |
15123 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15124 | fi | |
b4e70030 JB |
15125 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
15126 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
4e8d927d DJ |
15127 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
15128 | ||
15129 | cat >>confdefs.h <<_ACEOF | |
15130 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
15131 | _ACEOF | |
15132 | ||
15133 | ||
15134 | fi | |
15135 | ||
15136 | ||
15137 | # ------------------ # | |
15138 | # Checks for types. # | |
15139 | # ------------------ # | |
15140 | ||
b4e70030 JB |
15141 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
15142 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
4e8d927d DJ |
15143 | if test "${ac_cv_type_signal+set}" = set; then |
15144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15145 | else | |
15146 | cat >conftest.$ac_ext <<_ACEOF | |
15147 | /* confdefs.h. */ | |
15148 | _ACEOF | |
15149 | cat confdefs.h >>conftest.$ac_ext | |
15150 | cat >>conftest.$ac_ext <<_ACEOF | |
15151 | /* end confdefs.h. */ | |
15152 | #include <sys/types.h> | |
15153 | #include <signal.h> | |
b4e70030 JB |
15154 | #ifdef signal |
15155 | # undef signal | |
15156 | #endif | |
15157 | #ifdef __cplusplus | |
15158 | extern "C" void (*signal (int, void (*)(int)))(int); | |
15159 | #else | |
15160 | void (*signal ()) (); | |
15161 | #endif | |
4e8d927d DJ |
15162 | |
15163 | int | |
15164 | main () | |
15165 | { | |
b4e70030 | 15166 | int i; |
4e8d927d DJ |
15167 | ; |
15168 | return 0; | |
15169 | } | |
15170 | _ACEOF | |
15171 | rm -f conftest.$ac_objext | |
15172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15173 | (eval $ac_compile) 2>conftest.er1 | |
15174 | ac_status=$? | |
15175 | grep -v '^ *+' conftest.er1 >conftest.err | |
15176 | rm -f conftest.er1 | |
15177 | cat conftest.err >&5 | |
15178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15179 | (exit $ac_status); } && | |
b4e70030 JB |
15180 | { ac_try='test -z "$ac_c_werror_flag" |
15181 | || test ! -s conftest.err' | |
4e8d927d DJ |
15182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15183 | (eval $ac_try) 2>&5 | |
15184 | ac_status=$? | |
15185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15186 | (exit $ac_status); }; } && | |
15187 | { ac_try='test -s conftest.$ac_objext' | |
15188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15189 | (eval $ac_try) 2>&5 | |
15190 | ac_status=$? | |
15191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15192 | (exit $ac_status); }; }; then | |
b4e70030 | 15193 | ac_cv_type_signal=void |
4e8d927d DJ |
15194 | else |
15195 | echo "$as_me: failed program was:" >&5 | |
15196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15197 | ||
b4e70030 | 15198 | ac_cv_type_signal=int |
4e8d927d | 15199 | fi |
4e8d927d DJ |
15200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15201 | fi | |
b4e70030 JB |
15202 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
15203 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
4e8d927d DJ |
15204 | |
15205 | cat >>confdefs.h <<_ACEOF | |
15206 | #define RETSIGTYPE $ac_cv_type_signal | |
15207 | _ACEOF | |
15208 | ||
15209 | ||
b4e70030 JB |
15210 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
15211 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | |
4e8d927d DJ |
15212 | if test "${ac_cv_type_socklen_t+set}" = set; then |
15213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15214 | else | |
15215 | cat >conftest.$ac_ext <<_ACEOF | |
15216 | /* confdefs.h. */ | |
15217 | _ACEOF | |
15218 | cat confdefs.h >>conftest.$ac_ext | |
15219 | cat >>conftest.$ac_ext <<_ACEOF | |
15220 | /* end confdefs.h. */ | |
15221 | #include <sys/types.h> | |
15222 | #include <sys/socket.h> | |
15223 | ||
15224 | ||
4e8d927d DJ |
15225 | int |
15226 | main () | |
15227 | { | |
b4e70030 | 15228 | if ((socklen_t *) 0) |
4e8d927d | 15229 | return 0; |
b4e70030 | 15230 | if (sizeof (socklen_t)) |
4e8d927d DJ |
15231 | return 0; |
15232 | ; | |
15233 | return 0; | |
15234 | } | |
15235 | _ACEOF | |
15236 | rm -f conftest.$ac_objext | |
15237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15238 | (eval $ac_compile) 2>conftest.er1 | |
15239 | ac_status=$? | |
15240 | grep -v '^ *+' conftest.er1 >conftest.err | |
15241 | rm -f conftest.er1 | |
15242 | cat conftest.err >&5 | |
15243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15244 | (exit $ac_status); } && | |
b4e70030 JB |
15245 | { ac_try='test -z "$ac_c_werror_flag" |
15246 | || test ! -s conftest.err' | |
4e8d927d DJ |
15247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15248 | (eval $ac_try) 2>&5 | |
15249 | ac_status=$? | |
15250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15251 | (exit $ac_status); }; } && | |
15252 | { ac_try='test -s conftest.$ac_objext' | |
15253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15254 | (eval $ac_try) 2>&5 | |
15255 | ac_status=$? | |
15256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15257 | (exit $ac_status); }; }; then | |
15258 | ac_cv_type_socklen_t=yes | |
15259 | else | |
15260 | echo "$as_me: failed program was:" >&5 | |
15261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15262 | ||
b4e70030 | 15263 | ac_cv_type_socklen_t=no |
4e8d927d | 15264 | fi |
4e8d927d DJ |
15265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15266 | fi | |
b4e70030 JB |
15267 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
15268 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | |
4e8d927d DJ |
15269 | if test $ac_cv_type_socklen_t = yes; then |
15270 | ||
15271 | cat >>confdefs.h <<_ACEOF | |
15272 | #define HAVE_SOCKLEN_T 1 | |
15273 | _ACEOF | |
15274 | ||
15275 | ||
15276 | fi | |
15277 | ||
b4e70030 JB |
15278 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
15279 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
4e8d927d DJ |
15280 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
15281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15282 | else | |
15283 | cat >conftest.$ac_ext <<_ACEOF | |
15284 | /* confdefs.h. */ | |
15285 | _ACEOF | |
15286 | cat confdefs.h >>conftest.$ac_ext | |
15287 | cat >>conftest.$ac_ext <<_ACEOF | |
15288 | /* end confdefs.h. */ | |
15289 | #include <stdint.h> | |
15290 | ||
4e8d927d DJ |
15291 | int |
15292 | main () | |
15293 | { | |
b4e70030 | 15294 | if ((uintptr_t *) 0) |
4e8d927d | 15295 | return 0; |
b4e70030 | 15296 | if (sizeof (uintptr_t)) |
4e8d927d DJ |
15297 | return 0; |
15298 | ; | |
15299 | return 0; | |
15300 | } | |
15301 | _ACEOF | |
15302 | rm -f conftest.$ac_objext | |
15303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15304 | (eval $ac_compile) 2>conftest.er1 | |
15305 | ac_status=$? | |
15306 | grep -v '^ *+' conftest.er1 >conftest.err | |
15307 | rm -f conftest.er1 | |
15308 | cat conftest.err >&5 | |
15309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15310 | (exit $ac_status); } && | |
b4e70030 JB |
15311 | { ac_try='test -z "$ac_c_werror_flag" |
15312 | || test ! -s conftest.err' | |
4e8d927d DJ |
15313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15314 | (eval $ac_try) 2>&5 | |
15315 | ac_status=$? | |
15316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15317 | (exit $ac_status); }; } && | |
15318 | { ac_try='test -s conftest.$ac_objext' | |
15319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15320 | (eval $ac_try) 2>&5 | |
15321 | ac_status=$? | |
15322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15323 | (exit $ac_status); }; }; then | |
15324 | ac_cv_type_uintptr_t=yes | |
15325 | else | |
15326 | echo "$as_me: failed program was:" >&5 | |
15327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15328 | ||
b4e70030 | 15329 | ac_cv_type_uintptr_t=no |
4e8d927d | 15330 | fi |
4e8d927d DJ |
15331 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15332 | fi | |
b4e70030 JB |
15333 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
15334 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
4e8d927d DJ |
15335 | if test $ac_cv_type_uintptr_t = yes; then |
15336 | ||
15337 | cat >>confdefs.h <<_ACEOF | |
15338 | #define HAVE_UINTPTR_T 1 | |
15339 | _ACEOF | |
15340 | ||
15341 | ||
15342 | fi | |
15343 | ||
15344 | ||
15345 | # ------------------------------------- # | |
15346 | # Checks for compiler characteristics. # | |
15347 | # ------------------------------------- # | |
15348 | ||
b4e70030 JB |
15349 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
15350 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4e8d927d DJ |
15351 | if test "${ac_cv_c_const+set}" = set; then |
15352 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15353 | else | |
15354 | cat >conftest.$ac_ext <<_ACEOF | |
15355 | /* confdefs.h. */ | |
15356 | _ACEOF | |
15357 | cat confdefs.h >>conftest.$ac_ext | |
15358 | cat >>conftest.$ac_ext <<_ACEOF | |
15359 | /* end confdefs.h. */ | |
15360 | ||
15361 | int | |
15362 | main () | |
15363 | { | |
15364 | /* FIXME: Include the comments suggested by Paul. */ | |
15365 | #ifndef __cplusplus | |
15366 | /* Ultrix mips cc rejects this. */ | |
15367 | typedef int charset[2]; | |
15368 | const charset x; | |
15369 | /* SunOS 4.1.1 cc rejects this. */ | |
15370 | char const *const *ccp; | |
15371 | char **p; | |
15372 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15373 | struct point {int x, y;}; | |
15374 | static struct point const zero = {0,0}; | |
15375 | /* AIX XL C 1.02.0.0 rejects this. | |
15376 | It does not let you subtract one const X* pointer from another in | |
15377 | an arm of an if-expression whose if-part is not a constant | |
15378 | expression */ | |
15379 | const char *g = "string"; | |
15380 | ccp = &g + (g ? g-g : 0); | |
15381 | /* HPUX 7.0 cc rejects these. */ | |
15382 | ++ccp; | |
15383 | p = (char**) ccp; | |
15384 | ccp = (char const *const *) p; | |
15385 | { /* SCO 3.2v4 cc rejects this. */ | |
15386 | char *t; | |
15387 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15388 | ||
15389 | *t++ = 0; | |
4e8d927d DJ |
15390 | } |
15391 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15392 | int x[] = {25, 17}; | |
15393 | const int *foo = &x[0]; | |
15394 | ++foo; | |
15395 | } | |
15396 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15397 | typedef const int *iptr; | |
15398 | iptr p = 0; | |
15399 | ++p; | |
15400 | } | |
15401 | { /* AIX XL C 1.02.0.0 rejects this saying | |
15402 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15403 | struct s { int j; const int *ap[3]; }; | |
15404 | struct s *b; b->j = 5; | |
15405 | } | |
15406 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15407 | const int foo = 10; | |
4e8d927d | 15408 | } |
4e8d927d DJ |
15409 | #endif |
15410 | ||
15411 | ; | |
15412 | return 0; | |
15413 | } | |
15414 | _ACEOF | |
15415 | rm -f conftest.$ac_objext | |
15416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15417 | (eval $ac_compile) 2>conftest.er1 | |
15418 | ac_status=$? | |
15419 | grep -v '^ *+' conftest.er1 >conftest.err | |
15420 | rm -f conftest.er1 | |
15421 | cat conftest.err >&5 | |
15422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15423 | (exit $ac_status); } && | |
b4e70030 JB |
15424 | { ac_try='test -z "$ac_c_werror_flag" |
15425 | || test ! -s conftest.err' | |
4e8d927d DJ |
15426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15427 | (eval $ac_try) 2>&5 | |
15428 | ac_status=$? | |
15429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15430 | (exit $ac_status); }; } && | |
15431 | { ac_try='test -s conftest.$ac_objext' | |
15432 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15433 | (eval $ac_try) 2>&5 | |
15434 | ac_status=$? | |
15435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15436 | (exit $ac_status); }; }; then | |
15437 | ac_cv_c_const=yes | |
15438 | else | |
15439 | echo "$as_me: failed program was:" >&5 | |
15440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15441 | ||
b4e70030 | 15442 | ac_cv_c_const=no |
4e8d927d | 15443 | fi |
4e8d927d DJ |
15444 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15445 | fi | |
b4e70030 JB |
15446 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
15447 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4e8d927d DJ |
15448 | if test $ac_cv_c_const = no; then |
15449 | ||
15450 | cat >>confdefs.h <<\_ACEOF | |
15451 | #define const | |
15452 | _ACEOF | |
15453 | ||
15454 | fi | |
15455 | ||
b4e70030 JB |
15456 | echo "$as_me:$LINENO: checking for inline" >&5 |
15457 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4e8d927d DJ |
15458 | if test "${ac_cv_c_inline+set}" = set; then |
15459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15460 | else | |
15461 | ac_cv_c_inline=no | |
15462 | for ac_kw in inline __inline__ __inline; do | |
15463 | cat >conftest.$ac_ext <<_ACEOF | |
15464 | /* confdefs.h. */ | |
15465 | _ACEOF | |
15466 | cat confdefs.h >>conftest.$ac_ext | |
15467 | cat >>conftest.$ac_ext <<_ACEOF | |
15468 | /* end confdefs.h. */ | |
15469 | #ifndef __cplusplus | |
15470 | typedef int foo_t; | |
15471 | static $ac_kw foo_t static_foo () {return 0; } | |
15472 | $ac_kw foo_t foo () {return 0; } | |
15473 | #endif | |
15474 | ||
15475 | _ACEOF | |
15476 | rm -f conftest.$ac_objext | |
15477 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15478 | (eval $ac_compile) 2>conftest.er1 | |
15479 | ac_status=$? | |
15480 | grep -v '^ *+' conftest.er1 >conftest.err | |
15481 | rm -f conftest.er1 | |
15482 | cat conftest.err >&5 | |
15483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15484 | (exit $ac_status); } && | |
b4e70030 JB |
15485 | { ac_try='test -z "$ac_c_werror_flag" |
15486 | || test ! -s conftest.err' | |
4e8d927d DJ |
15487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15488 | (eval $ac_try) 2>&5 | |
15489 | ac_status=$? | |
15490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15491 | (exit $ac_status); }; } && | |
15492 | { ac_try='test -s conftest.$ac_objext' | |
15493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15494 | (eval $ac_try) 2>&5 | |
15495 | ac_status=$? | |
15496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15497 | (exit $ac_status); }; }; then | |
b4e70030 | 15498 | ac_cv_c_inline=$ac_kw; break |
4e8d927d DJ |
15499 | else |
15500 | echo "$as_me: failed program was:" >&5 | |
15501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15502 | ||
4e8d927d | 15503 | fi |
4e8d927d | 15504 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
15505 | done |
15506 | ||
15507 | fi | |
b4e70030 JB |
15508 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
15509 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
bec39cab | 15510 | |
bec39cab | 15511 | |
a3828db0 MK |
15512 | case $ac_cv_c_inline in |
15513 | inline | yes) ;; | |
15514 | *) | |
15515 | case $ac_cv_c_inline in | |
15516 | no) ac_val=;; | |
15517 | *) ac_val=$ac_cv_c_inline;; | |
15518 | esac | |
15519 | cat >>confdefs.h <<_ACEOF | |
15520 | #ifndef __cplusplus | |
15521 | #define inline $ac_val | |
15522 | #endif | |
15523 | _ACEOF | |
bec39cab AC |
15524 | ;; |
15525 | esac | |
bec39cab | 15526 | |
74c1b268 | 15527 | |
a3828db0 MK |
15528 | # ------------------------------ # |
15529 | # Checks for library functions. # | |
15530 | # ------------------------------ # | |
bec39cab | 15531 | |
a3828db0 MK |
15532 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
15533 | # for constant arguments. Useless! | |
b4e70030 JB |
15534 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
15535 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
a3828db0 | 15536 | if test "${ac_cv_working_alloca_h+set}" = set; then |
bec39cab AC |
15537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15538 | else | |
15539 | cat >conftest.$ac_ext <<_ACEOF | |
15540 | /* confdefs.h. */ | |
15541 | _ACEOF | |
15542 | cat confdefs.h >>conftest.$ac_ext | |
15543 | cat >>conftest.$ac_ext <<_ACEOF | |
15544 | /* end confdefs.h. */ | |
a3828db0 | 15545 | #include <alloca.h> |
bec39cab AC |
15546 | int |
15547 | main () | |
15548 | { | |
a3828db0 | 15549 | char *p = (char *) alloca (2 * sizeof (int)); |
bec39cab AC |
15550 | ; |
15551 | return 0; | |
15552 | } | |
15553 | _ACEOF | |
15554 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15556 | (eval $ac_link) 2>conftest.er1 | |
15557 | ac_status=$? | |
15558 | grep -v '^ *+' conftest.er1 >conftest.err | |
15559 | rm -f conftest.er1 | |
15560 | cat conftest.err >&5 | |
15561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15562 | (exit $ac_status); } && | |
b4e70030 JB |
15563 | { ac_try='test -z "$ac_c_werror_flag" |
15564 | || test ! -s conftest.err' | |
bec39cab AC |
15565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15566 | (eval $ac_try) 2>&5 | |
15567 | ac_status=$? | |
15568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15569 | (exit $ac_status); }; } && | |
15570 | { ac_try='test -s conftest$ac_exeext' | |
15571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15572 | (eval $ac_try) 2>&5 | |
15573 | ac_status=$? | |
15574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15575 | (exit $ac_status); }; }; then | |
a3828db0 | 15576 | ac_cv_working_alloca_h=yes |
bec39cab AC |
15577 | else |
15578 | echo "$as_me: failed program was:" >&5 | |
15579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15580 | ||
b4e70030 | 15581 | ac_cv_working_alloca_h=no |
bec39cab AC |
15582 | fi |
15583 | rm -f conftest.err conftest.$ac_objext \ | |
15584 | conftest$ac_exeext conftest.$ac_ext | |
15585 | fi | |
b4e70030 JB |
15586 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
15587 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
a3828db0 MK |
15588 | if test $ac_cv_working_alloca_h = yes; then |
15589 | ||
15590 | cat >>confdefs.h <<\_ACEOF | |
15591 | #define HAVE_ALLOCA_H 1 | |
bec39cab | 15592 | _ACEOF |
74c1b268 | 15593 | |
74c1b268 AC |
15594 | fi |
15595 | ||
b4e70030 JB |
15596 | echo "$as_me:$LINENO: checking for alloca" >&5 |
15597 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
a3828db0 | 15598 | if test "${ac_cv_func_alloca_works+set}" = set; then |
bec39cab | 15599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
74c1b268 | 15600 | else |
bec39cab AC |
15601 | cat >conftest.$ac_ext <<_ACEOF |
15602 | /* confdefs.h. */ | |
15603 | _ACEOF | |
15604 | cat confdefs.h >>conftest.$ac_ext | |
15605 | cat >>conftest.$ac_ext <<_ACEOF | |
15606 | /* end confdefs.h. */ | |
a3828db0 MK |
15607 | #ifdef __GNUC__ |
15608 | # define alloca __builtin_alloca | |
15609 | #else | |
15610 | # ifdef _MSC_VER | |
15611 | # include <malloc.h> | |
15612 | # define alloca _alloca | |
15613 | # else | |
15614 | # if HAVE_ALLOCA_H | |
15615 | # include <alloca.h> | |
15616 | # else | |
15617 | # ifdef _AIX | |
15618 | #pragma alloca | |
15619 | # else | |
15620 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
15621 | char *alloca (); | |
15622 | # endif | |
15623 | # endif | |
15624 | # endif | |
97bf5e38 | 15625 | # endif |
a3828db0 | 15626 | #endif |
97bf5e38 | 15627 | |
bec39cab AC |
15628 | int |
15629 | main () | |
15630 | { | |
a3828db0 | 15631 | char *p = (char *) alloca (1); |
bec39cab AC |
15632 | ; |
15633 | return 0; | |
15634 | } | |
15635 | _ACEOF | |
a3828db0 MK |
15636 | rm -f conftest.$ac_objext conftest$ac_exeext |
15637 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15638 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
15639 | ac_status=$? |
15640 | grep -v '^ *+' conftest.er1 >conftest.err | |
15641 | rm -f conftest.er1 | |
15642 | cat conftest.err >&5 | |
15643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15644 | (exit $ac_status); } && | |
b4e70030 JB |
15645 | { ac_try='test -z "$ac_c_werror_flag" |
15646 | || test ! -s conftest.err' | |
bec39cab AC |
15647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15648 | (eval $ac_try) 2>&5 | |
15649 | ac_status=$? | |
15650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15651 | (exit $ac_status); }; } && | |
a3828db0 | 15652 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
15653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15654 | (eval $ac_try) 2>&5 | |
15655 | ac_status=$? | |
15656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15657 | (exit $ac_status); }; }; then | |
a3828db0 | 15658 | ac_cv_func_alloca_works=yes |
0200359f | 15659 | else |
bec39cab AC |
15660 | echo "$as_me: failed program was:" >&5 |
15661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0200359f | 15662 | |
b4e70030 | 15663 | ac_cv_func_alloca_works=no |
0200359f | 15664 | fi |
a3828db0 MK |
15665 | rm -f conftest.err conftest.$ac_objext \ |
15666 | conftest$ac_exeext conftest.$ac_ext | |
72473524 | 15667 | fi |
b4e70030 JB |
15668 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
15669 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
bec39cab | 15670 | |
a3828db0 MK |
15671 | if test $ac_cv_func_alloca_works = yes; then |
15672 | ||
15673 | cat >>confdefs.h <<\_ACEOF | |
15674 | #define HAVE_ALLOCA 1 | |
bec39cab AC |
15675 | _ACEOF |
15676 | ||
a3828db0 MK |
15677 | else |
15678 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
15679 | # that cause trouble. Some versions do not even contain alloca or | |
15680 | # contain a buggy version. If you still want to use their alloca, | |
15681 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
72473524 | 15682 | |
b4e70030 | 15683 | ALLOCA=alloca.$ac_objext |
bec39cab | 15684 | |
a3828db0 MK |
15685 | cat >>confdefs.h <<\_ACEOF |
15686 | #define C_ALLOCA 1 | |
15687 | _ACEOF | |
bec39cab | 15688 | |
a3828db0 | 15689 | |
b4e70030 JB |
15690 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
15691 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
a3828db0 | 15692 | if test "${ac_cv_os_cray+set}" = set; then |
bec39cab | 15693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 15694 | else |
a3828db0 | 15695 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
15696 | /* confdefs.h. */ |
15697 | _ACEOF | |
15698 | cat confdefs.h >>conftest.$ac_ext | |
15699 | cat >>conftest.$ac_ext <<_ACEOF | |
15700 | /* end confdefs.h. */ | |
b4e70030 | 15701 | #if defined(CRAY) && ! defined(CRAY2) |
a3828db0 MK |
15702 | webecray |
15703 | #else | |
15704 | wenotbecray | |
15705 | #endif | |
15706 | ||
15707 | _ACEOF | |
15708 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15709 | $EGREP "webecray" >/dev/null 2>&1; then | |
15710 | ac_cv_os_cray=yes | |
15711 | else | |
15712 | ac_cv_os_cray=no | |
15713 | fi | |
15714 | rm -f conftest* | |
15715 | ||
15716 | fi | |
b4e70030 JB |
15717 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
15718 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
a3828db0 MK |
15719 | if test $ac_cv_os_cray = yes; then |
15720 | for ac_func in _getb67 GETB67 getb67; do | |
15721 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
15722 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15723 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15724 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
15725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15726 | else | |
15727 | cat >conftest.$ac_ext <<_ACEOF | |
15728 | /* confdefs.h. */ | |
15729 | _ACEOF | |
15730 | cat confdefs.h >>conftest.$ac_ext | |
15731 | cat >>conftest.$ac_ext <<_ACEOF | |
15732 | /* end confdefs.h. */ | |
15733 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15734 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15735 | #define $ac_func innocuous_$ac_func | |
15736 | ||
15737 | /* System header to define __stub macros and hopefully few prototypes, | |
15738 | which can conflict with char $ac_func (); below. | |
15739 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15740 | <limits.h> exists even on freestanding compilers. */ | |
15741 | ||
15742 | #ifdef __STDC__ | |
15743 | # include <limits.h> | |
15744 | #else | |
15745 | # include <assert.h> | |
15746 | #endif | |
15747 | ||
15748 | #undef $ac_func | |
15749 | ||
b4e70030 | 15750 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
15751 | #ifdef __cplusplus |
15752 | extern "C" | |
b4e70030 | 15753 | { |
a3828db0 | 15754 | #endif |
b4e70030 JB |
15755 | /* We use char because int might match the return type of a gcc2 |
15756 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
15757 | char $ac_func (); |
15758 | /* The GNU C library defines this for functions which it implements | |
15759 | to always fail with ENOSYS. Some functions are actually named | |
15760 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 15761 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 15762 | choke me |
b4e70030 JB |
15763 | #else |
15764 | char (*f) () = $ac_func; | |
15765 | #endif | |
15766 | #ifdef __cplusplus | |
15767 | } | |
a3828db0 MK |
15768 | #endif |
15769 | ||
15770 | int | |
15771 | main () | |
15772 | { | |
b4e70030 | 15773 | return f != $ac_func; |
a3828db0 MK |
15774 | ; |
15775 | return 0; | |
15776 | } | |
15777 | _ACEOF | |
15778 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15780 | (eval $ac_link) 2>conftest.er1 | |
15781 | ac_status=$? | |
15782 | grep -v '^ *+' conftest.er1 >conftest.err | |
15783 | rm -f conftest.er1 | |
15784 | cat conftest.err >&5 | |
15785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15786 | (exit $ac_status); } && | |
b4e70030 JB |
15787 | { ac_try='test -z "$ac_c_werror_flag" |
15788 | || test ! -s conftest.err' | |
a3828db0 MK |
15789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15790 | (eval $ac_try) 2>&5 | |
15791 | ac_status=$? | |
15792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15793 | (exit $ac_status); }; } && | |
15794 | { ac_try='test -s conftest$ac_exeext' | |
15795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15796 | (eval $ac_try) 2>&5 | |
15797 | ac_status=$? | |
15798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15799 | (exit $ac_status); }; }; then | |
15800 | eval "$as_ac_var=yes" | |
15801 | else | |
15802 | echo "$as_me: failed program was:" >&5 | |
15803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15804 | ||
b4e70030 | 15805 | eval "$as_ac_var=no" |
a3828db0 MK |
15806 | fi |
15807 | rm -f conftest.err conftest.$ac_objext \ | |
15808 | conftest$ac_exeext conftest.$ac_ext | |
15809 | fi | |
b4e70030 JB |
15810 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
15811 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
15812 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
15813 | ||
15814 | cat >>confdefs.h <<_ACEOF | |
15815 | #define CRAY_STACKSEG_END $ac_func | |
15816 | _ACEOF | |
15817 | ||
15818 | break | |
15819 | fi | |
15820 | ||
15821 | done | |
15822 | fi | |
15823 | ||
b4e70030 JB |
15824 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
15825 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
a3828db0 MK |
15826 | if test "${ac_cv_c_stack_direction+set}" = set; then |
15827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15828 | else | |
15829 | if test "$cross_compiling" = yes; then | |
15830 | ac_cv_c_stack_direction=0 | |
15831 | else | |
15832 | cat >conftest.$ac_ext <<_ACEOF | |
15833 | /* confdefs.h. */ | |
15834 | _ACEOF | |
15835 | cat confdefs.h >>conftest.$ac_ext | |
15836 | cat >>conftest.$ac_ext <<_ACEOF | |
15837 | /* end confdefs.h. */ | |
15838 | int | |
15839 | find_stack_direction () | |
15840 | { | |
15841 | static char *addr = 0; | |
15842 | auto char dummy; | |
15843 | if (addr == 0) | |
15844 | { | |
15845 | addr = &dummy; | |
15846 | return find_stack_direction (); | |
15847 | } | |
15848 | else | |
15849 | return (&dummy > addr) ? 1 : -1; | |
15850 | } | |
15851 | ||
15852 | int | |
15853 | main () | |
15854 | { | |
b4e70030 | 15855 | exit (find_stack_direction () < 0); |
a3828db0 MK |
15856 | } |
15857 | _ACEOF | |
15858 | rm -f conftest$ac_exeext | |
15859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15860 | (eval $ac_link) 2>&5 | |
15861 | ac_status=$? | |
15862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15863 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15865 | (eval $ac_try) 2>&5 | |
15866 | ac_status=$? | |
15867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15868 | (exit $ac_status); }; }; then | |
15869 | ac_cv_c_stack_direction=1 | |
15870 | else | |
15871 | echo "$as_me: program exited with status $ac_status" >&5 | |
15872 | echo "$as_me: failed program was:" >&5 | |
15873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15874 | ||
15875 | ( exit $ac_status ) | |
15876 | ac_cv_c_stack_direction=-1 | |
15877 | fi | |
b4e70030 | 15878 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
15879 | fi |
15880 | fi | |
b4e70030 JB |
15881 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
15882 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
a3828db0 MK |
15883 | |
15884 | cat >>confdefs.h <<_ACEOF | |
15885 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
15886 | _ACEOF | |
15887 | ||
15888 | ||
15889 | fi | |
15890 | ||
15891 | ||
15892 | ||
15893 | for ac_header in stdlib.h unistd.h | |
15894 | do | |
15895 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
15896 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15897 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15898 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15899 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
15900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15901 | fi | |
b4e70030 JB |
15902 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15903 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 MK |
15904 | else |
15905 | # Is the header compilable? | |
b4e70030 JB |
15906 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15907 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 MK |
15908 | cat >conftest.$ac_ext <<_ACEOF |
15909 | /* confdefs.h. */ | |
15910 | _ACEOF | |
15911 | cat confdefs.h >>conftest.$ac_ext | |
15912 | cat >>conftest.$ac_ext <<_ACEOF | |
15913 | /* end confdefs.h. */ | |
15914 | $ac_includes_default | |
15915 | #include <$ac_header> | |
15916 | _ACEOF | |
15917 | rm -f conftest.$ac_objext | |
15918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15919 | (eval $ac_compile) 2>conftest.er1 | |
15920 | ac_status=$? | |
bec39cab AC |
15921 | grep -v '^ *+' conftest.er1 >conftest.err |
15922 | rm -f conftest.er1 | |
15923 | cat conftest.err >&5 | |
15924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15925 | (exit $ac_status); } && | |
b4e70030 JB |
15926 | { ac_try='test -z "$ac_c_werror_flag" |
15927 | || test ! -s conftest.err' | |
bec39cab AC |
15928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15929 | (eval $ac_try) 2>&5 | |
15930 | ac_status=$? | |
15931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15932 | (exit $ac_status); }; } && | |
15933 | { ac_try='test -s conftest.$ac_objext' | |
15934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15935 | (eval $ac_try) 2>&5 | |
15936 | ac_status=$? | |
15937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15938 | (exit $ac_status); }; }; then | |
15939 | ac_header_compiler=yes | |
15940 | else | |
15941 | echo "$as_me: failed program was:" >&5 | |
15942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15943 | ||
b4e70030 | 15944 | ac_header_compiler=no |
bec39cab AC |
15945 | fi |
15946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
15947 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15948 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
15949 | |
15950 | # Is the header present? | |
b4e70030 JB |
15951 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15952 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
15953 | cat >conftest.$ac_ext <<_ACEOF |
15954 | /* confdefs.h. */ | |
15955 | _ACEOF | |
15956 | cat confdefs.h >>conftest.$ac_ext | |
15957 | cat >>conftest.$ac_ext <<_ACEOF | |
15958 | /* end confdefs.h. */ | |
15959 | #include <$ac_header> | |
15960 | _ACEOF | |
15961 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15962 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15963 | ac_status=$? | |
15964 | grep -v '^ *+' conftest.er1 >conftest.err | |
15965 | rm -f conftest.er1 | |
15966 | cat conftest.err >&5 | |
15967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15968 | (exit $ac_status); } >/dev/null; then | |
15969 | if test -s conftest.err; then | |
15970 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15971 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15972 | else | |
15973 | ac_cpp_err= | |
15974 | fi | |
15975 | else | |
15976 | ac_cpp_err=yes | |
15977 | fi | |
15978 | if test -z "$ac_cpp_err"; then | |
15979 | ac_header_preproc=yes | |
97bf5e38 | 15980 | else |
bec39cab AC |
15981 | echo "$as_me: failed program was:" >&5 |
15982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15983 | ||
15984 | ac_header_preproc=no | |
72473524 | 15985 | fi |
bec39cab | 15986 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
15987 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15988 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 15989 | |
bec39cab AC |
15990 | # So? What about this header? |
15991 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15992 | yes:no: ) | |
15993 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15994 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15995 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15996 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15997 | ac_header_preproc=yes | |
15998 | ;; | |
15999 | no:yes:* ) | |
16000 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16001 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16002 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16003 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16004 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16005 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16006 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16007 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16008 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16009 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16010 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16011 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
16012 | ( |
16013 | cat <<\_ASBOX | |
16014 | ## ------------------------------------------ ## | |
16015 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
16016 | ## ------------------------------------------ ## | |
16017 | _ASBOX | |
16018 | ) | | |
16019 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
16020 | ;; |
16021 | esac | |
b4e70030 JB |
16022 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16023 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16024 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 16025 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 16026 | else |
bec39cab AC |
16027 | eval "$as_ac_Header=\$ac_header_preproc" |
16028 | fi | |
b4e70030 JB |
16029 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
16030 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
16031 | |
16032 | fi | |
16033 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16034 | cat >>confdefs.h <<_ACEOF | |
16035 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16036 | _ACEOF | |
16037 | ||
16038 | fi | |
16039 | ||
16040 | done | |
16041 | ||
16042 | ||
a3828db0 | 16043 | for ac_func in getpagesize |
bec39cab AC |
16044 | do |
16045 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
16046 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16047 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16048 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16050 | else | |
16051 | cat >conftest.$ac_ext <<_ACEOF | |
16052 | /* confdefs.h. */ | |
16053 | _ACEOF | |
16054 | cat confdefs.h >>conftest.$ac_ext | |
16055 | cat >>conftest.$ac_ext <<_ACEOF | |
16056 | /* end confdefs.h. */ | |
16057 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16058 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16059 | #define $ac_func innocuous_$ac_func | |
16060 | ||
97bf5e38 | 16061 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16062 | which can conflict with char $ac_func (); below. |
16063 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16064 | <limits.h> exists even on freestanding compilers. */ | |
2b2d558c | 16065 | |
bec39cab AC |
16066 | #ifdef __STDC__ |
16067 | # include <limits.h> | |
16068 | #else | |
16069 | # include <assert.h> | |
16070 | #endif | |
97bf5e38 | 16071 | |
bec39cab AC |
16072 | #undef $ac_func |
16073 | ||
b4e70030 | 16074 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16075 | #ifdef __cplusplus |
16076 | extern "C" | |
b4e70030 | 16077 | { |
bec39cab | 16078 | #endif |
b4e70030 JB |
16079 | /* We use char because int might match the return type of a gcc2 |
16080 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16081 | char $ac_func (); |
97bf5e38 MK |
16082 | /* The GNU C library defines this for functions which it implements |
16083 | to always fail with ENOSYS. Some functions are actually named | |
16084 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16085 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 16086 | choke me |
b4e70030 JB |
16087 | #else |
16088 | char (*f) () = $ac_func; | |
16089 | #endif | |
16090 | #ifdef __cplusplus | |
16091 | } | |
97bf5e38 MK |
16092 | #endif |
16093 | ||
bec39cab AC |
16094 | int |
16095 | main () | |
16096 | { | |
b4e70030 | 16097 | return f != $ac_func; |
bec39cab AC |
16098 | ; |
16099 | return 0; | |
16100 | } | |
16101 | _ACEOF | |
16102 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16103 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16104 | (eval $ac_link) 2>conftest.er1 | |
16105 | ac_status=$? | |
16106 | grep -v '^ *+' conftest.er1 >conftest.err | |
16107 | rm -f conftest.er1 | |
16108 | cat conftest.err >&5 | |
16109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16110 | (exit $ac_status); } && | |
b4e70030 JB |
16111 | { ac_try='test -z "$ac_c_werror_flag" |
16112 | || test ! -s conftest.err' | |
bec39cab AC |
16113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16114 | (eval $ac_try) 2>&5 | |
16115 | ac_status=$? | |
16116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16117 | (exit $ac_status); }; } && | |
16118 | { ac_try='test -s conftest$ac_exeext' | |
16119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16120 | (eval $ac_try) 2>&5 | |
16121 | ac_status=$? | |
16122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16123 | (exit $ac_status); }; }; then | |
16124 | eval "$as_ac_var=yes" | |
16125 | else | |
16126 | echo "$as_me: failed program was:" >&5 | |
16127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16128 | ||
b4e70030 | 16129 | eval "$as_ac_var=no" |
bec39cab AC |
16130 | fi |
16131 | rm -f conftest.err conftest.$ac_objext \ | |
16132 | conftest$ac_exeext conftest.$ac_ext | |
16133 | fi | |
b4e70030 JB |
16134 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16135 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16136 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16137 | cat >>confdefs.h <<_ACEOF | |
16138 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16139 | _ACEOF | |
16140 | ||
2b2d558c | 16141 | fi |
bec39cab | 16142 | done |
2b2d558c | 16143 | |
b4e70030 JB |
16144 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
16145 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
a3828db0 | 16146 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
bec39cab | 16147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 16148 | else |
bec39cab | 16149 | if test "$cross_compiling" = yes; then |
a3828db0 | 16150 | ac_cv_func_mmap_fixed_mapped=no |
bec39cab AC |
16151 | else |
16152 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 16153 | /* confdefs.h. */ |
bec39cab AC |
16154 | _ACEOF |
16155 | cat confdefs.h >>conftest.$ac_ext | |
16156 | cat >>conftest.$ac_ext <<_ACEOF | |
16157 | /* end confdefs.h. */ | |
a3828db0 MK |
16158 | $ac_includes_default |
16159 | /* malloc might have been renamed as rpl_malloc. */ | |
16160 | #undef malloc | |
bec39cab | 16161 | |
a3828db0 MK |
16162 | /* Thanks to Mike Haertel and Jim Avera for this test. |
16163 | Here is a matrix of mmap possibilities: | |
16164 | mmap private not fixed | |
16165 | mmap private fixed at somewhere currently unmapped | |
16166 | mmap private fixed at somewhere already mapped | |
16167 | mmap shared not fixed | |
16168 | mmap shared fixed at somewhere currently unmapped | |
16169 | mmap shared fixed at somewhere already mapped | |
16170 | For private mappings, we should verify that changes cannot be read() | |
16171 | back from the file, nor mmap's back from the file at a different | |
16172 | address. (There have been systems where private was not correctly | |
16173 | implemented like the infamous i386 svr4.0, and systems where the | |
16174 | VM page cache was not coherent with the file system buffer cache | |
16175 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
16176 | For shared mappings, we should conversely verify that changes get | |
16177 | propagated back to all the places they're supposed to be. | |
7dfa765c | 16178 | |
a3828db0 MK |
16179 | Grep wants private fixed already mapped. |
16180 | The main things grep needs to know about mmap are: | |
16181 | * does it exist and is it safe to write into the mmap'd area | |
16182 | * how to use it (BSD variants) */ | |
7dfa765c | 16183 | |
a3828db0 MK |
16184 | #include <fcntl.h> |
16185 | #include <sys/mman.h> | |
7dfa765c | 16186 | |
a3828db0 MK |
16187 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
16188 | char *malloc (); | |
16189 | #endif | |
7dfa765c | 16190 | |
a3828db0 MK |
16191 | /* This mess was copied from the GNU getpagesize.h. */ |
16192 | #if !HAVE_GETPAGESIZE | |
16193 | /* Assume that all systems that can run configure have sys/param.h. */ | |
16194 | # if !HAVE_SYS_PARAM_H | |
16195 | # define HAVE_SYS_PARAM_H 1 | |
16196 | # endif | |
64bb1671 | 16197 | |
a3828db0 MK |
16198 | # ifdef _SC_PAGESIZE |
16199 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
16200 | # else /* no _SC_PAGESIZE */ | |
16201 | # if HAVE_SYS_PARAM_H | |
16202 | # include <sys/param.h> | |
16203 | # ifdef EXEC_PAGESIZE | |
16204 | # define getpagesize() EXEC_PAGESIZE | |
16205 | # else /* no EXEC_PAGESIZE */ | |
16206 | # ifdef NBPG | |
16207 | # define getpagesize() NBPG * CLSIZE | |
16208 | # ifndef CLSIZE | |
16209 | # define CLSIZE 1 | |
16210 | # endif /* no CLSIZE */ | |
16211 | # else /* no NBPG */ | |
16212 | # ifdef NBPC | |
16213 | # define getpagesize() NBPC | |
16214 | # else /* no NBPC */ | |
16215 | # ifdef PAGESIZE | |
16216 | # define getpagesize() PAGESIZE | |
16217 | # endif /* PAGESIZE */ | |
16218 | # endif /* no NBPC */ | |
16219 | # endif /* no NBPG */ | |
16220 | # endif /* no EXEC_PAGESIZE */ | |
16221 | # else /* no HAVE_SYS_PARAM_H */ | |
16222 | # define getpagesize() 8192 /* punt totally */ | |
16223 | # endif /* no HAVE_SYS_PARAM_H */ | |
16224 | # endif /* no _SC_PAGESIZE */ | |
64bb1671 | 16225 | |
a3828db0 | 16226 | #endif /* no HAVE_GETPAGESIZE */ |
64bb1671 | 16227 | |
a3828db0 MK |
16228 | int |
16229 | main () | |
16230 | { | |
16231 | char *data, *data2, *data3; | |
16232 | int i, pagesize; | |
16233 | int fd; | |
97bf5e38 | 16234 | |
a3828db0 MK |
16235 | pagesize = getpagesize (); |
16236 | ||
16237 | /* First, make a file with some known garbage in it. */ | |
16238 | data = (char *) malloc (pagesize); | |
16239 | if (!data) | |
b4e70030 | 16240 | exit (1); |
a3828db0 MK |
16241 | for (i = 0; i < pagesize; ++i) |
16242 | *(data + i) = rand (); | |
16243 | umask (0); | |
16244 | fd = creat ("conftest.mmap", 0600); | |
16245 | if (fd < 0) | |
b4e70030 | 16246 | exit (1); |
a3828db0 | 16247 | if (write (fd, data, pagesize) != pagesize) |
b4e70030 | 16248 | exit (1); |
a3828db0 MK |
16249 | close (fd); |
16250 | ||
16251 | /* Next, try to mmap the file at a fixed address which already has | |
16252 | something else allocated at it. If we can, also make sure that | |
16253 | we see the same garbage. */ | |
16254 | fd = open ("conftest.mmap", O_RDWR); | |
16255 | if (fd < 0) | |
b4e70030 | 16256 | exit (1); |
a3828db0 MK |
16257 | data2 = (char *) malloc (2 * pagesize); |
16258 | if (!data2) | |
b4e70030 JB |
16259 | exit (1); |
16260 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
a3828db0 MK |
16261 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
16262 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
b4e70030 | 16263 | exit (1); |
a3828db0 MK |
16264 | for (i = 0; i < pagesize; ++i) |
16265 | if (*(data + i) != *(data2 + i)) | |
b4e70030 | 16266 | exit (1); |
a3828db0 MK |
16267 | |
16268 | /* Finally, make sure that changes to the mapped area do not | |
16269 | percolate back to the file as seen by read(). (This is a bug on | |
16270 | some variants of i386 svr4.0.) */ | |
16271 | for (i = 0; i < pagesize; ++i) | |
16272 | *(data2 + i) = *(data2 + i) + 1; | |
16273 | data3 = (char *) malloc (pagesize); | |
16274 | if (!data3) | |
b4e70030 | 16275 | exit (1); |
a3828db0 | 16276 | if (read (fd, data3, pagesize) != pagesize) |
b4e70030 | 16277 | exit (1); |
a3828db0 MK |
16278 | for (i = 0; i < pagesize; ++i) |
16279 | if (*(data + i) != *(data3 + i)) | |
b4e70030 | 16280 | exit (1); |
a3828db0 | 16281 | close (fd); |
b4e70030 | 16282 | exit (0); |
97bf5e38 | 16283 | } |
bec39cab AC |
16284 | _ACEOF |
16285 | rm -f conftest$ac_exeext | |
16286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16287 | (eval $ac_link) 2>&5 | |
16288 | ac_status=$? | |
16289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16290 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16292 | (eval $ac_try) 2>&5 | |
16293 | ac_status=$? | |
16294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16295 | (exit $ac_status); }; }; then | |
a3828db0 | 16296 | ac_cv_func_mmap_fixed_mapped=yes |
5c44784c | 16297 | else |
bec39cab AC |
16298 | echo "$as_me: program exited with status $ac_status" >&5 |
16299 | echo "$as_me: failed program was:" >&5 | |
16300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16301 | ||
16302 | ( exit $ac_status ) | |
a3828db0 | 16303 | ac_cv_func_mmap_fixed_mapped=no |
0afdd437 | 16304 | fi |
b4e70030 | 16305 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bec39cab | 16306 | fi |
a3828db0 | 16307 | fi |
b4e70030 JB |
16308 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
16309 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
a3828db0 | 16310 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
bec39cab AC |
16311 | |
16312 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 16313 | #define HAVE_MMAP 1 |
bec39cab | 16314 | _ACEOF |
0afdd437 MK |
16315 | |
16316 | fi | |
a3828db0 | 16317 | rm -f conftest.mmap |
0afdd437 | 16318 | |
b4e70030 JB |
16319 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
16320 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
a3828db0 | 16321 | if test "${ac_cv_type_pid_t+set}" = set; then |
bec39cab AC |
16322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16323 | else | |
16324 | cat >conftest.$ac_ext <<_ACEOF | |
16325 | /* confdefs.h. */ | |
16326 | _ACEOF | |
16327 | cat confdefs.h >>conftest.$ac_ext | |
16328 | cat >>conftest.$ac_ext <<_ACEOF | |
16329 | /* end confdefs.h. */ | |
a3828db0 | 16330 | $ac_includes_default |
bec39cab AC |
16331 | int |
16332 | main () | |
16333 | { | |
b4e70030 | 16334 | if ((pid_t *) 0) |
a3828db0 | 16335 | return 0; |
b4e70030 | 16336 | if (sizeof (pid_t)) |
a3828db0 | 16337 | return 0; |
bec39cab AC |
16338 | ; |
16339 | return 0; | |
16340 | } | |
16341 | _ACEOF | |
a3828db0 MK |
16342 | rm -f conftest.$ac_objext |
16343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16344 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
16345 | ac_status=$? |
16346 | grep -v '^ *+' conftest.er1 >conftest.err | |
16347 | rm -f conftest.er1 | |
16348 | cat conftest.err >&5 | |
16349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16350 | (exit $ac_status); } && | |
b4e70030 JB |
16351 | { ac_try='test -z "$ac_c_werror_flag" |
16352 | || test ! -s conftest.err' | |
bec39cab AC |
16353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16354 | (eval $ac_try) 2>&5 | |
16355 | ac_status=$? | |
16356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16357 | (exit $ac_status); }; } && | |
a3828db0 | 16358 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
16359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16360 | (eval $ac_try) 2>&5 | |
16361 | ac_status=$? | |
16362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16363 | (exit $ac_status); }; }; then | |
a3828db0 | 16364 | ac_cv_type_pid_t=yes |
bec39cab AC |
16365 | else |
16366 | echo "$as_me: failed program was:" >&5 | |
16367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16368 | ||
b4e70030 | 16369 | ac_cv_type_pid_t=no |
bec39cab | 16370 | fi |
a3828db0 | 16371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 16372 | fi |
b4e70030 JB |
16373 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
16374 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
a3828db0 MK |
16375 | if test $ac_cv_type_pid_t = yes; then |
16376 | : | |
16377 | else | |
16378 | ||
16379 | cat >>confdefs.h <<_ACEOF | |
16380 | #define pid_t int | |
bec39cab | 16381 | _ACEOF |
7e89e357 | 16382 | |
7e89e357 JT |
16383 | fi |
16384 | ||
bec39cab | 16385 | |
b4e70030 JB |
16386 | |
16387 | for ac_header in unistd.h vfork.h | |
7be570e7 | 16388 | do |
a3828db0 | 16389 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
16390 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16391 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16392 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16393 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 16394 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 | 16395 | fi |
b4e70030 JB |
16396 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
16397 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 16398 | else |
a3828db0 | 16399 | # Is the header compilable? |
b4e70030 JB |
16400 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16401 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 | 16402 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
16403 | /* confdefs.h. */ |
16404 | _ACEOF | |
16405 | cat confdefs.h >>conftest.$ac_ext | |
16406 | cat >>conftest.$ac_ext <<_ACEOF | |
16407 | /* end confdefs.h. */ | |
a3828db0 MK |
16408 | $ac_includes_default |
16409 | #include <$ac_header> | |
bec39cab | 16410 | _ACEOF |
a3828db0 MK |
16411 | rm -f conftest.$ac_objext |
16412 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16413 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
16414 | ac_status=$? |
16415 | grep -v '^ *+' conftest.er1 >conftest.err | |
16416 | rm -f conftest.er1 | |
16417 | cat conftest.err >&5 | |
16418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16419 | (exit $ac_status); } && | |
b4e70030 JB |
16420 | { ac_try='test -z "$ac_c_werror_flag" |
16421 | || test ! -s conftest.err' | |
bec39cab AC |
16422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16423 | (eval $ac_try) 2>&5 | |
16424 | ac_status=$? | |
16425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16426 | (exit $ac_status); }; } && | |
a3828db0 | 16427 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
16428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16429 | (eval $ac_try) 2>&5 | |
16430 | ac_status=$? | |
16431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16432 | (exit $ac_status); }; }; then | |
a3828db0 | 16433 | ac_header_compiler=yes |
bec39cab AC |
16434 | else |
16435 | echo "$as_me: failed program was:" >&5 | |
16436 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16437 | ||
b4e70030 | 16438 | ac_header_compiler=no |
bec39cab | 16439 | fi |
a3828db0 | 16440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b4e70030 JB |
16441 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16442 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
a3828db0 MK |
16443 | |
16444 | # Is the header present? | |
b4e70030 JB |
16445 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16446 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
a3828db0 MK |
16447 | cat >conftest.$ac_ext <<_ACEOF |
16448 | /* confdefs.h. */ | |
16449 | _ACEOF | |
16450 | cat confdefs.h >>conftest.$ac_ext | |
16451 | cat >>conftest.$ac_ext <<_ACEOF | |
16452 | /* end confdefs.h. */ | |
16453 | #include <$ac_header> | |
16454 | _ACEOF | |
16455 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16456 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16457 | ac_status=$? | |
16458 | grep -v '^ *+' conftest.er1 >conftest.err | |
16459 | rm -f conftest.er1 | |
16460 | cat conftest.err >&5 | |
16461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16462 | (exit $ac_status); } >/dev/null; then | |
16463 | if test -s conftest.err; then | |
16464 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16465 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
16466 | else | |
16467 | ac_cpp_err= | |
16468 | fi | |
16469 | else | |
16470 | ac_cpp_err=yes | |
16471 | fi | |
16472 | if test -z "$ac_cpp_err"; then | |
16473 | ac_header_preproc=yes | |
16474 | else | |
16475 | echo "$as_me: failed program was:" >&5 | |
16476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16477 | ||
16478 | ac_header_preproc=no | |
16479 | fi | |
16480 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
16481 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16482 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
a3828db0 MK |
16483 | |
16484 | # So? What about this header? | |
16485 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16486 | yes:no: ) | |
16487 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16488 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16489 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16490 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16491 | ac_header_preproc=yes | |
16492 | ;; | |
16493 | no:yes:* ) | |
16494 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16495 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16496 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16497 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16498 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16499 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16500 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16501 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16502 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16503 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16504 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16505 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
16506 | ( |
16507 | cat <<\_ASBOX | |
16508 | ## ------------------------------------------ ## | |
16509 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
16510 | ## ------------------------------------------ ## | |
16511 | _ASBOX | |
16512 | ) | | |
16513 | sed "s/^/$as_me: WARNING: /" >&2 | |
a3828db0 MK |
16514 | ;; |
16515 | esac | |
b4e70030 JB |
16516 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16517 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16518 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
16519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16520 | else | |
16521 | eval "$as_ac_Header=\$ac_header_preproc" | |
16522 | fi | |
b4e70030 JB |
16523 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
16524 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 | 16525 | |
bec39cab | 16526 | fi |
a3828db0 | 16527 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
bec39cab | 16528 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 16529 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
bec39cab | 16530 | _ACEOF |
14abd0fb | 16531 | |
14abd0fb | 16532 | fi |
a3828db0 | 16533 | |
14abd0fb MK |
16534 | done |
16535 | ||
bec39cab | 16536 | |
a3828db0 MK |
16537 | |
16538 | for ac_func in fork vfork | |
14abd0fb | 16539 | do |
bec39cab | 16540 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16541 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16542 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16543 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16545 | else | |
16546 | cat >conftest.$ac_ext <<_ACEOF | |
16547 | /* confdefs.h. */ | |
16548 | _ACEOF | |
16549 | cat confdefs.h >>conftest.$ac_ext | |
16550 | cat >>conftest.$ac_ext <<_ACEOF | |
16551 | /* end confdefs.h. */ | |
16552 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16553 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16554 | #define $ac_func innocuous_$ac_func | |
16555 | ||
14abd0fb | 16556 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16557 | which can conflict with char $ac_func (); below. |
16558 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16559 | <limits.h> exists even on freestanding compilers. */ | |
16560 | ||
16561 | #ifdef __STDC__ | |
16562 | # include <limits.h> | |
16563 | #else | |
16564 | # include <assert.h> | |
16565 | #endif | |
14abd0fb | 16566 | |
bec39cab | 16567 | #undef $ac_func |
14abd0fb | 16568 | |
b4e70030 | 16569 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16570 | #ifdef __cplusplus |
16571 | extern "C" | |
b4e70030 | 16572 | { |
bec39cab | 16573 | #endif |
b4e70030 JB |
16574 | /* We use char because int might match the return type of a gcc2 |
16575 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16576 | char $ac_func (); |
14abd0fb MK |
16577 | /* The GNU C library defines this for functions which it implements |
16578 | to always fail with ENOSYS. Some functions are actually named | |
16579 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16580 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
14abd0fb | 16581 | choke me |
b4e70030 JB |
16582 | #else |
16583 | char (*f) () = $ac_func; | |
16584 | #endif | |
16585 | #ifdef __cplusplus | |
16586 | } | |
14abd0fb MK |
16587 | #endif |
16588 | ||
bec39cab AC |
16589 | int |
16590 | main () | |
16591 | { | |
b4e70030 | 16592 | return f != $ac_func; |
bec39cab AC |
16593 | ; |
16594 | return 0; | |
16595 | } | |
16596 | _ACEOF | |
16597 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16599 | (eval $ac_link) 2>conftest.er1 | |
16600 | ac_status=$? | |
16601 | grep -v '^ *+' conftest.er1 >conftest.err | |
16602 | rm -f conftest.er1 | |
16603 | cat conftest.err >&5 | |
16604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16605 | (exit $ac_status); } && | |
b4e70030 JB |
16606 | { ac_try='test -z "$ac_c_werror_flag" |
16607 | || test ! -s conftest.err' | |
bec39cab AC |
16608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16609 | (eval $ac_try) 2>&5 | |
16610 | ac_status=$? | |
16611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16612 | (exit $ac_status); }; } && | |
16613 | { ac_try='test -s conftest$ac_exeext' | |
16614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16615 | (eval $ac_try) 2>&5 | |
16616 | ac_status=$? | |
16617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16618 | (exit $ac_status); }; }; then | |
16619 | eval "$as_ac_var=yes" | |
16620 | else | |
16621 | echo "$as_me: failed program was:" >&5 | |
16622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16623 | ||
b4e70030 | 16624 | eval "$as_ac_var=no" |
bec39cab AC |
16625 | fi |
16626 | rm -f conftest.err conftest.$ac_objext \ | |
16627 | conftest$ac_exeext conftest.$ac_ext | |
16628 | fi | |
b4e70030 JB |
16629 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16630 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16631 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16632 | cat >>confdefs.h <<_ACEOF | |
16633 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16634 | _ACEOF | |
7be570e7 | 16635 | |
7be570e7 JM |
16636 | fi |
16637 | done | |
16638 | ||
a3828db0 | 16639 | if test "x$ac_cv_func_fork" = xyes; then |
b4e70030 JB |
16640 | echo "$as_me:$LINENO: checking for working fork" >&5 |
16641 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
a3828db0 MK |
16642 | if test "${ac_cv_func_fork_works+set}" = set; then |
16643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16644 | else | |
16645 | if test "$cross_compiling" = yes; then | |
16646 | ac_cv_func_fork_works=cross | |
16647 | else | |
16648 | cat >conftest.$ac_ext <<_ACEOF | |
b4e70030 JB |
16649 | /* By Ruediger Kuhlmann. */ |
16650 | #include <sys/types.h> | |
16651 | #if HAVE_UNISTD_H | |
16652 | # include <unistd.h> | |
16653 | #endif | |
16654 | /* Some systems only have a dummy stub for fork() */ | |
16655 | int main () | |
16656 | { | |
16657 | if (fork() < 0) | |
16658 | exit (1); | |
16659 | exit (0); | |
16660 | } | |
a3828db0 MK |
16661 | _ACEOF |
16662 | rm -f conftest$ac_exeext | |
16663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16664 | (eval $ac_link) 2>&5 | |
16665 | ac_status=$? | |
16666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16667 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16669 | (eval $ac_try) 2>&5 | |
16670 | ac_status=$? | |
16671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16672 | (exit $ac_status); }; }; then | |
16673 | ac_cv_func_fork_works=yes | |
16674 | else | |
16675 | echo "$as_me: program exited with status $ac_status" >&5 | |
16676 | echo "$as_me: failed program was:" >&5 | |
16677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 16678 | |
a3828db0 MK |
16679 | ( exit $ac_status ) |
16680 | ac_cv_func_fork_works=no | |
16681 | fi | |
b4e70030 | 16682 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16683 | fi |
16684 | fi | |
b4e70030 JB |
16685 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
16686 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
a3828db0 MK |
16687 | |
16688 | else | |
16689 | ac_cv_func_fork_works=$ac_cv_func_fork | |
16690 | fi | |
16691 | if test "x$ac_cv_func_fork_works" = xcross; then | |
16692 | case $host in | |
16693 | *-*-amigaos* | *-*-msdosdjgpp*) | |
16694 | # Override, as these systems have only a dummy fork() stub | |
16695 | ac_cv_func_fork_works=no | |
16696 | ;; | |
16697 | *) | |
16698 | ac_cv_func_fork_works=yes | |
16699 | ;; | |
16700 | esac | |
16701 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
16702 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
16703 | fi | |
16704 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
16705 | if test "x$ac_cv_func_vfork" = xyes; then | |
b4e70030 JB |
16706 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
16707 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
a3828db0 | 16708 | if test "${ac_cv_func_vfork_works+set}" = set; then |
bec39cab | 16709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
16710 | else |
16711 | if test "$cross_compiling" = yes; then | |
16712 | ac_cv_func_vfork_works=cross | |
bec39cab AC |
16713 | else |
16714 | cat >conftest.$ac_ext <<_ACEOF | |
16715 | /* confdefs.h. */ | |
16716 | _ACEOF | |
16717 | cat confdefs.h >>conftest.$ac_ext | |
16718 | cat >>conftest.$ac_ext <<_ACEOF | |
16719 | /* end confdefs.h. */ | |
a3828db0 | 16720 | /* Thanks to Paul Eggert for this test. */ |
b4e70030 JB |
16721 | #include <stdio.h> |
16722 | #include <stdlib.h> | |
16723 | #include <sys/types.h> | |
16724 | #include <sys/stat.h> | |
a3828db0 | 16725 | #include <sys/wait.h> |
b4e70030 JB |
16726 | #if HAVE_UNISTD_H |
16727 | # include <unistd.h> | |
16728 | #endif | |
a3828db0 MK |
16729 | #if HAVE_VFORK_H |
16730 | # include <vfork.h> | |
bec39cab | 16731 | #endif |
a3828db0 MK |
16732 | /* On some sparc systems, changes by the child to local and incoming |
16733 | argument registers are propagated back to the parent. The compiler | |
16734 | is told about this with #include <vfork.h>, but some compilers | |
16735 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
16736 | static variable whose address is put into a register that is | |
16737 | clobbered by the vfork. */ | |
16738 | static void | |
bec39cab | 16739 | #ifdef __cplusplus |
a3828db0 MK |
16740 | sparc_address_test (int arg) |
16741 | # else | |
16742 | sparc_address_test (arg) int arg; | |
c906108c | 16743 | #endif |
a3828db0 MK |
16744 | { |
16745 | static pid_t child; | |
16746 | if (!child) { | |
16747 | child = vfork (); | |
16748 | if (child < 0) { | |
16749 | perror ("vfork"); | |
16750 | _exit(2); | |
16751 | } | |
16752 | if (!child) { | |
16753 | arg = getpid(); | |
16754 | write(-1, "", 0); | |
16755 | _exit (arg); | |
16756 | } | |
16757 | } | |
16758 | } | |
97bf5e38 | 16759 | |
bec39cab AC |
16760 | int |
16761 | main () | |
16762 | { | |
a3828db0 MK |
16763 | pid_t parent = getpid (); |
16764 | pid_t child; | |
16765 | ||
16766 | sparc_address_test (0); | |
16767 | ||
16768 | child = vfork (); | |
16769 | ||
16770 | if (child == 0) { | |
16771 | /* Here is another test for sparc vfork register problems. This | |
16772 | test uses lots of local variables, at least as many local | |
16773 | variables as main has allocated so far including compiler | |
16774 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
16775 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
16776 | reuse the register of parent for one of the local variables, | |
16777 | since it will think that parent can't possibly be used any more | |
16778 | in this routine. Assigning to the local variable will thus | |
16779 | munge parent in the parent process. */ | |
16780 | pid_t | |
16781 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
16782 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
16783 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
16784 | use the same hardware register for all 8 local variables. */ | |
16785 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
16786 | || p != p5 || p != p6 || p != p7) | |
16787 | _exit(1); | |
16788 | ||
16789 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
16790 | from child file descriptors. If the child closes a descriptor | |
16791 | before it execs or exits, this munges the parent's descriptor | |
16792 | as well. Test for this by closing stdout in the child. */ | |
16793 | _exit(close(fileno(stdout)) != 0); | |
16794 | } else { | |
16795 | int status; | |
16796 | struct stat st; | |
16797 | ||
16798 | while (wait(&status) != child) | |
16799 | ; | |
b4e70030 | 16800 | exit( |
a3828db0 MK |
16801 | /* Was there some problem with vforking? */ |
16802 | child < 0 | |
16803 | ||
16804 | /* Did the child fail? (This shouldn't happen.) */ | |
16805 | || status | |
16806 | ||
16807 | /* Did the vfork/compiler bug occur? */ | |
16808 | || parent != getpid() | |
16809 | ||
16810 | /* Did the file descriptor bug occur? */ | |
16811 | || fstat(fileno(stdout), &st) != 0 | |
16812 | ); | |
16813 | } | |
bec39cab AC |
16814 | } |
16815 | _ACEOF | |
a3828db0 | 16816 | rm -f conftest$ac_exeext |
bec39cab | 16817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 16818 | (eval $ac_link) 2>&5 |
bec39cab AC |
16819 | ac_status=$? |
16820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 16821 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
16822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16823 | (eval $ac_try) 2>&5 | |
16824 | ac_status=$? | |
16825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16826 | (exit $ac_status); }; }; then | |
a3828db0 MK |
16827 | ac_cv_func_vfork_works=yes |
16828 | else | |
16829 | echo "$as_me: program exited with status $ac_status" >&5 | |
16830 | echo "$as_me: failed program was:" >&5 | |
16831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16832 | ||
16833 | ( exit $ac_status ) | |
16834 | ac_cv_func_vfork_works=no | |
16835 | fi | |
b4e70030 | 16836 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16837 | fi |
16838 | fi | |
b4e70030 JB |
16839 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
16840 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
a3828db0 MK |
16841 | |
16842 | fi; | |
16843 | if test "x$ac_cv_func_fork_works" = xcross; then | |
16844 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
16845 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
16846 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
16847 | fi | |
16848 | ||
16849 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
16850 | ||
16851 | cat >>confdefs.h <<\_ACEOF | |
16852 | #define HAVE_WORKING_VFORK 1 | |
16853 | _ACEOF | |
16854 | ||
bec39cab | 16855 | else |
bec39cab | 16856 | |
a3828db0 MK |
16857 | cat >>confdefs.h <<\_ACEOF |
16858 | #define vfork fork | |
16859 | _ACEOF | |
16860 | ||
bec39cab | 16861 | fi |
a3828db0 MK |
16862 | if test "x$ac_cv_func_fork_works" = xyes; then |
16863 | ||
16864 | cat >>confdefs.h <<\_ACEOF | |
16865 | #define HAVE_WORKING_FORK 1 | |
bec39cab | 16866 | _ACEOF |
c906108c | 16867 | |
c906108c SS |
16868 | fi |
16869 | ||
bec39cab AC |
16870 | |
16871 | ||
a3828db0 | 16872 | for ac_func in canonicalize_file_name realpath |
97bf5e38 | 16873 | do |
bec39cab | 16874 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 | 16875 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7eb368b3 NR |
16876 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16877 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16879 | else | |
16880 | cat >conftest.$ac_ext <<_ACEOF | |
16881 | /* confdefs.h. */ | |
16882 | _ACEOF | |
16883 | cat confdefs.h >>conftest.$ac_ext | |
16884 | cat >>conftest.$ac_ext <<_ACEOF | |
16885 | /* end confdefs.h. */ | |
16886 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16887 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16888 | #define $ac_func innocuous_$ac_func | |
16889 | ||
16890 | /* System header to define __stub macros and hopefully few prototypes, | |
16891 | which can conflict with char $ac_func (); below. | |
16892 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16893 | <limits.h> exists even on freestanding compilers. */ | |
16894 | ||
16895 | #ifdef __STDC__ | |
16896 | # include <limits.h> | |
16897 | #else | |
16898 | # include <assert.h> | |
16899 | #endif | |
16900 | ||
16901 | #undef $ac_func | |
16902 | ||
16903 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16904 | #ifdef __cplusplus | |
16905 | extern "C" | |
16906 | { | |
16907 | #endif | |
16908 | /* We use char because int might match the return type of a gcc2 | |
16909 | builtin and then its argument prototype would still apply. */ | |
16910 | char $ac_func (); | |
16911 | /* The GNU C library defines this for functions which it implements | |
16912 | to always fail with ENOSYS. Some functions are actually named | |
16913 | something starting with __ and the normal name is an alias. */ | |
16914 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16915 | choke me | |
16916 | #else | |
16917 | char (*f) () = $ac_func; | |
16918 | #endif | |
16919 | #ifdef __cplusplus | |
16920 | } | |
16921 | #endif | |
16922 | ||
16923 | int | |
16924 | main () | |
16925 | { | |
16926 | return f != $ac_func; | |
16927 | ; | |
16928 | return 0; | |
16929 | } | |
16930 | _ACEOF | |
16931 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16933 | (eval $ac_link) 2>conftest.er1 | |
16934 | ac_status=$? | |
16935 | grep -v '^ *+' conftest.er1 >conftest.err | |
16936 | rm -f conftest.er1 | |
16937 | cat conftest.err >&5 | |
16938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16939 | (exit $ac_status); } && | |
16940 | { ac_try='test -z "$ac_c_werror_flag" | |
16941 | || test ! -s conftest.err' | |
16942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16943 | (eval $ac_try) 2>&5 | |
16944 | ac_status=$? | |
16945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16946 | (exit $ac_status); }; } && | |
16947 | { ac_try='test -s conftest$ac_exeext' | |
16948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16949 | (eval $ac_try) 2>&5 | |
16950 | ac_status=$? | |
16951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16952 | (exit $ac_status); }; }; then | |
16953 | eval "$as_ac_var=yes" | |
16954 | else | |
16955 | echo "$as_me: failed program was:" >&5 | |
16956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16957 | ||
16958 | eval "$as_ac_var=no" | |
16959 | fi | |
16960 | rm -f conftest.err conftest.$ac_objext \ | |
16961 | conftest$ac_exeext conftest.$ac_ext | |
16962 | fi | |
16963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16964 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16965 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16966 | cat >>confdefs.h <<_ACEOF | |
16967 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16968 | _ACEOF | |
16969 | ||
16970 | fi | |
16971 | done | |
16972 | ||
16973 | ||
16974 | for ac_func in getrusage | |
16975 | do | |
16976 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16977 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
b4e70030 JB |
16978 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16979 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16981 | else | |
16982 | cat >conftest.$ac_ext <<_ACEOF | |
16983 | /* confdefs.h. */ | |
16984 | _ACEOF | |
16985 | cat confdefs.h >>conftest.$ac_ext | |
16986 | cat >>conftest.$ac_ext <<_ACEOF | |
16987 | /* end confdefs.h. */ | |
16988 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16989 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16990 | #define $ac_func innocuous_$ac_func | |
16991 | ||
d3ea6809 MM |
16992 | /* System header to define __stub macros and hopefully few prototypes, |
16993 | which can conflict with char $ac_func (); below. | |
16994 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16995 | <limits.h> exists even on freestanding compilers. */ | |
16996 | ||
16997 | #ifdef __STDC__ | |
16998 | # include <limits.h> | |
16999 | #else | |
17000 | # include <assert.h> | |
17001 | #endif | |
17002 | ||
17003 | #undef $ac_func | |
17004 | ||
b4e70030 | 17005 | /* Override any gcc2 internal prototype to avoid an error. */ |
d3ea6809 MM |
17006 | #ifdef __cplusplus |
17007 | extern "C" | |
b4e70030 | 17008 | { |
d3ea6809 | 17009 | #endif |
b4e70030 JB |
17010 | /* We use char because int might match the return type of a gcc2 |
17011 | builtin and then its argument prototype would still apply. */ | |
d3ea6809 MM |
17012 | char $ac_func (); |
17013 | /* The GNU C library defines this for functions which it implements | |
17014 | to always fail with ENOSYS. Some functions are actually named | |
17015 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17016 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
d3ea6809 | 17017 | choke me |
b4e70030 JB |
17018 | #else |
17019 | char (*f) () = $ac_func; | |
17020 | #endif | |
17021 | #ifdef __cplusplus | |
17022 | } | |
d3ea6809 MM |
17023 | #endif |
17024 | ||
17025 | int | |
17026 | main () | |
17027 | { | |
b4e70030 | 17028 | return f != $ac_func; |
d3ea6809 MM |
17029 | ; |
17030 | return 0; | |
17031 | } | |
17032 | _ACEOF | |
17033 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17034 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17035 | (eval $ac_link) 2>conftest.er1 | |
17036 | ac_status=$? | |
17037 | grep -v '^ *+' conftest.er1 >conftest.err | |
17038 | rm -f conftest.er1 | |
17039 | cat conftest.err >&5 | |
17040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17041 | (exit $ac_status); } && | |
b4e70030 JB |
17042 | { ac_try='test -z "$ac_c_werror_flag" |
17043 | || test ! -s conftest.err' | |
d3ea6809 MM |
17044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17045 | (eval $ac_try) 2>&5 | |
17046 | ac_status=$? | |
17047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17048 | (exit $ac_status); }; } && | |
17049 | { ac_try='test -s conftest$ac_exeext' | |
17050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17051 | (eval $ac_try) 2>&5 | |
17052 | ac_status=$? | |
17053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17054 | (exit $ac_status); }; }; then | |
17055 | eval "$as_ac_var=yes" | |
17056 | else | |
17057 | echo "$as_me: failed program was:" >&5 | |
17058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17059 | ||
b4e70030 | 17060 | eval "$as_ac_var=no" |
d3ea6809 MM |
17061 | fi |
17062 | rm -f conftest.err conftest.$ac_objext \ | |
17063 | conftest$ac_exeext conftest.$ac_ext | |
17064 | fi | |
b4e70030 JB |
17065 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17066 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
d3ea6809 MM |
17067 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17068 | cat >>confdefs.h <<_ACEOF | |
17069 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17070 | _ACEOF | |
17071 | ||
17072 | fi | |
17073 | done | |
17074 | ||
17075 | ||
17076 | ||
17077 | for ac_func in getuid getgid | |
17078 | do | |
17079 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17080 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17081 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17082 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
d3ea6809 MM |
17083 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17084 | else | |
17085 | cat >conftest.$ac_ext <<_ACEOF | |
17086 | /* confdefs.h. */ | |
17087 | _ACEOF | |
17088 | cat confdefs.h >>conftest.$ac_ext | |
17089 | cat >>conftest.$ac_ext <<_ACEOF | |
17090 | /* end confdefs.h. */ | |
17091 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17092 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17093 | #define $ac_func innocuous_$ac_func | |
17094 | ||
97bf5e38 | 17095 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17096 | which can conflict with char $ac_func (); below. |
17097 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17098 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 17099 | |
bec39cab AC |
17100 | #ifdef __STDC__ |
17101 | # include <limits.h> | |
17102 | #else | |
17103 | # include <assert.h> | |
17104 | #endif | |
97bf5e38 | 17105 | |
bec39cab AC |
17106 | #undef $ac_func |
17107 | ||
b4e70030 | 17108 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17109 | #ifdef __cplusplus |
17110 | extern "C" | |
b4e70030 | 17111 | { |
bec39cab | 17112 | #endif |
b4e70030 JB |
17113 | /* We use char because int might match the return type of a gcc2 |
17114 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17115 | char $ac_func (); |
97bf5e38 MK |
17116 | /* The GNU C library defines this for functions which it implements |
17117 | to always fail with ENOSYS. Some functions are actually named | |
17118 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17119 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 17120 | choke me |
b4e70030 JB |
17121 | #else |
17122 | char (*f) () = $ac_func; | |
17123 | #endif | |
17124 | #ifdef __cplusplus | |
17125 | } | |
c906108c | 17126 | #endif |
97bf5e38 | 17127 | |
bec39cab AC |
17128 | int |
17129 | main () | |
17130 | { | |
b4e70030 | 17131 | return f != $ac_func; |
bec39cab AC |
17132 | ; |
17133 | return 0; | |
17134 | } | |
17135 | _ACEOF | |
17136 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17137 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17138 | (eval $ac_link) 2>conftest.er1 | |
17139 | ac_status=$? | |
17140 | grep -v '^ *+' conftest.er1 >conftest.err | |
17141 | rm -f conftest.er1 | |
17142 | cat conftest.err >&5 | |
17143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17144 | (exit $ac_status); } && | |
b4e70030 JB |
17145 | { ac_try='test -z "$ac_c_werror_flag" |
17146 | || test ! -s conftest.err' | |
bec39cab AC |
17147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17148 | (eval $ac_try) 2>&5 | |
17149 | ac_status=$? | |
17150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17151 | (exit $ac_status); }; } && | |
17152 | { ac_try='test -s conftest$ac_exeext' | |
17153 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17154 | (eval $ac_try) 2>&5 | |
17155 | ac_status=$? | |
17156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17157 | (exit $ac_status); }; }; then | |
17158 | eval "$as_ac_var=yes" | |
17159 | else | |
17160 | echo "$as_me: failed program was:" >&5 | |
17161 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17162 | ||
b4e70030 | 17163 | eval "$as_ac_var=no" |
bec39cab AC |
17164 | fi |
17165 | rm -f conftest.err conftest.$ac_objext \ | |
17166 | conftest$ac_exeext conftest.$ac_ext | |
17167 | fi | |
b4e70030 JB |
17168 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17169 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17170 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17171 | cat >>confdefs.h <<_ACEOF | |
17172 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17173 | _ACEOF | |
c906108c | 17174 | |
c906108c | 17175 | fi |
97bf5e38 | 17176 | done |
c906108c | 17177 | |
bec39cab | 17178 | |
a3828db0 | 17179 | for ac_func in poll |
97bf5e38 | 17180 | do |
bec39cab | 17181 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17182 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17183 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17184 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17186 | else | |
17187 | cat >conftest.$ac_ext <<_ACEOF | |
17188 | /* confdefs.h. */ | |
17189 | _ACEOF | |
17190 | cat confdefs.h >>conftest.$ac_ext | |
17191 | cat >>conftest.$ac_ext <<_ACEOF | |
17192 | /* end confdefs.h. */ | |
17193 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17194 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17195 | #define $ac_func innocuous_$ac_func | |
17196 | ||
97bf5e38 | 17197 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17198 | which can conflict with char $ac_func (); below. |
17199 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17200 | <limits.h> exists even on freestanding compilers. */ | |
17201 | ||
17202 | #ifdef __STDC__ | |
17203 | # include <limits.h> | |
17204 | #else | |
17205 | # include <assert.h> | |
17206 | #endif | |
c906108c | 17207 | |
bec39cab | 17208 | #undef $ac_func |
97bf5e38 | 17209 | |
b4e70030 | 17210 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17211 | #ifdef __cplusplus |
17212 | extern "C" | |
b4e70030 | 17213 | { |
bec39cab | 17214 | #endif |
b4e70030 JB |
17215 | /* We use char because int might match the return type of a gcc2 |
17216 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17217 | char $ac_func (); |
97bf5e38 MK |
17218 | /* The GNU C library defines this for functions which it implements |
17219 | to always fail with ENOSYS. Some functions are actually named | |
17220 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17221 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 17222 | choke me |
b4e70030 JB |
17223 | #else |
17224 | char (*f) () = $ac_func; | |
17225 | #endif | |
17226 | #ifdef __cplusplus | |
17227 | } | |
c906108c | 17228 | #endif |
97bf5e38 | 17229 | |
bec39cab AC |
17230 | int |
17231 | main () | |
17232 | { | |
b4e70030 | 17233 | return f != $ac_func; |
bec39cab AC |
17234 | ; |
17235 | return 0; | |
17236 | } | |
17237 | _ACEOF | |
17238 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17240 | (eval $ac_link) 2>conftest.er1 | |
17241 | ac_status=$? | |
17242 | grep -v '^ *+' conftest.er1 >conftest.err | |
17243 | rm -f conftest.er1 | |
17244 | cat conftest.err >&5 | |
17245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17246 | (exit $ac_status); } && | |
b4e70030 JB |
17247 | { ac_try='test -z "$ac_c_werror_flag" |
17248 | || test ! -s conftest.err' | |
bec39cab AC |
17249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17250 | (eval $ac_try) 2>&5 | |
17251 | ac_status=$? | |
17252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17253 | (exit $ac_status); }; } && | |
17254 | { ac_try='test -s conftest$ac_exeext' | |
17255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17256 | (eval $ac_try) 2>&5 | |
17257 | ac_status=$? | |
17258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17259 | (exit $ac_status); }; }; then | |
17260 | eval "$as_ac_var=yes" | |
17261 | else | |
17262 | echo "$as_me: failed program was:" >&5 | |
17263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17264 | ||
b4e70030 | 17265 | eval "$as_ac_var=no" |
bec39cab AC |
17266 | fi |
17267 | rm -f conftest.err conftest.$ac_objext \ | |
17268 | conftest$ac_exeext conftest.$ac_ext | |
17269 | fi | |
b4e70030 JB |
17270 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17271 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17272 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17273 | cat >>confdefs.h <<_ACEOF | |
17274 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17275 | _ACEOF | |
c906108c | 17276 | |
c906108c | 17277 | fi |
97bf5e38 | 17278 | done |
c906108c | 17279 | |
bec39cab | 17280 | |
a3828db0 | 17281 | for ac_func in pread64 |
97bf5e38 | 17282 | do |
bec39cab | 17283 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17284 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17285 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17286 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17288 | else | |
17289 | cat >conftest.$ac_ext <<_ACEOF | |
17290 | /* confdefs.h. */ | |
17291 | _ACEOF | |
17292 | cat confdefs.h >>conftest.$ac_ext | |
17293 | cat >>conftest.$ac_ext <<_ACEOF | |
17294 | /* end confdefs.h. */ | |
17295 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17296 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17297 | #define $ac_func innocuous_$ac_func | |
17298 | ||
97bf5e38 | 17299 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17300 | which can conflict with char $ac_func (); below. |
17301 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17302 | <limits.h> exists even on freestanding compilers. */ | |
17303 | ||
17304 | #ifdef __STDC__ | |
17305 | # include <limits.h> | |
17306 | #else | |
17307 | # include <assert.h> | |
17308 | #endif | |
c906108c | 17309 | |
bec39cab | 17310 | #undef $ac_func |
97bf5e38 | 17311 | |
b4e70030 | 17312 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17313 | #ifdef __cplusplus |
17314 | extern "C" | |
b4e70030 | 17315 | { |
bec39cab | 17316 | #endif |
b4e70030 JB |
17317 | /* We use char because int might match the return type of a gcc2 |
17318 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17319 | char $ac_func (); |
97bf5e38 MK |
17320 | /* The GNU C library defines this for functions which it implements |
17321 | to always fail with ENOSYS. Some functions are actually named | |
17322 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17323 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 17324 | choke me |
b4e70030 JB |
17325 | #else |
17326 | char (*f) () = $ac_func; | |
17327 | #endif | |
17328 | #ifdef __cplusplus | |
17329 | } | |
c906108c | 17330 | #endif |
97bf5e38 | 17331 | |
bec39cab AC |
17332 | int |
17333 | main () | |
17334 | { | |
b4e70030 | 17335 | return f != $ac_func; |
bec39cab AC |
17336 | ; |
17337 | return 0; | |
17338 | } | |
17339 | _ACEOF | |
17340 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17342 | (eval $ac_link) 2>conftest.er1 | |
17343 | ac_status=$? | |
17344 | grep -v '^ *+' conftest.er1 >conftest.err | |
17345 | rm -f conftest.er1 | |
17346 | cat conftest.err >&5 | |
17347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17348 | (exit $ac_status); } && | |
b4e70030 JB |
17349 | { ac_try='test -z "$ac_c_werror_flag" |
17350 | || test ! -s conftest.err' | |
bec39cab AC |
17351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17352 | (eval $ac_try) 2>&5 | |
17353 | ac_status=$? | |
17354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17355 | (exit $ac_status); }; } && | |
17356 | { ac_try='test -s conftest$ac_exeext' | |
17357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17358 | (eval $ac_try) 2>&5 | |
17359 | ac_status=$? | |
17360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17361 | (exit $ac_status); }; }; then | |
17362 | eval "$as_ac_var=yes" | |
17363 | else | |
17364 | echo "$as_me: failed program was:" >&5 | |
17365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17366 | ||
b4e70030 | 17367 | eval "$as_ac_var=no" |
bec39cab AC |
17368 | fi |
17369 | rm -f conftest.err conftest.$ac_objext \ | |
17370 | conftest$ac_exeext conftest.$ac_ext | |
17371 | fi | |
b4e70030 JB |
17372 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17373 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17374 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17375 | cat >>confdefs.h <<_ACEOF | |
17376 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17377 | _ACEOF | |
c906108c | 17378 | |
c906108c | 17379 | fi |
97bf5e38 | 17380 | done |
c906108c | 17381 | |
bec39cab | 17382 | |
a3828db0 | 17383 | for ac_func in sbrk |
b757528f | 17384 | do |
bec39cab | 17385 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17386 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17387 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17388 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17389 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17390 | else | |
17391 | cat >conftest.$ac_ext <<_ACEOF | |
17392 | /* confdefs.h. */ | |
17393 | _ACEOF | |
17394 | cat confdefs.h >>conftest.$ac_ext | |
17395 | cat >>conftest.$ac_ext <<_ACEOF | |
17396 | /* end confdefs.h. */ | |
17397 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17398 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17399 | #define $ac_func innocuous_$ac_func | |
17400 | ||
b757528f | 17401 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17402 | which can conflict with char $ac_func (); below. |
17403 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17404 | <limits.h> exists even on freestanding compilers. */ | |
17405 | ||
17406 | #ifdef __STDC__ | |
17407 | # include <limits.h> | |
17408 | #else | |
17409 | # include <assert.h> | |
17410 | #endif | |
b757528f | 17411 | |
bec39cab | 17412 | #undef $ac_func |
b757528f | 17413 | |
b4e70030 | 17414 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17415 | #ifdef __cplusplus |
17416 | extern "C" | |
b4e70030 | 17417 | { |
bec39cab | 17418 | #endif |
b4e70030 JB |
17419 | /* We use char because int might match the return type of a gcc2 |
17420 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17421 | char $ac_func (); |
b757528f JJ |
17422 | /* The GNU C library defines this for functions which it implements |
17423 | to always fail with ENOSYS. Some functions are actually named | |
17424 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17425 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
b757528f | 17426 | choke me |
b4e70030 JB |
17427 | #else |
17428 | char (*f) () = $ac_func; | |
17429 | #endif | |
17430 | #ifdef __cplusplus | |
17431 | } | |
b757528f JJ |
17432 | #endif |
17433 | ||
bec39cab AC |
17434 | int |
17435 | main () | |
17436 | { | |
b4e70030 | 17437 | return f != $ac_func; |
bec39cab AC |
17438 | ; |
17439 | return 0; | |
17440 | } | |
17441 | _ACEOF | |
17442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17444 | (eval $ac_link) 2>conftest.er1 | |
17445 | ac_status=$? | |
17446 | grep -v '^ *+' conftest.er1 >conftest.err | |
17447 | rm -f conftest.er1 | |
17448 | cat conftest.err >&5 | |
17449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17450 | (exit $ac_status); } && | |
b4e70030 JB |
17451 | { ac_try='test -z "$ac_c_werror_flag" |
17452 | || test ! -s conftest.err' | |
bec39cab AC |
17453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17454 | (eval $ac_try) 2>&5 | |
17455 | ac_status=$? | |
17456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17457 | (exit $ac_status); }; } && | |
17458 | { ac_try='test -s conftest$ac_exeext' | |
17459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17460 | (eval $ac_try) 2>&5 | |
17461 | ac_status=$? | |
17462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17463 | (exit $ac_status); }; }; then | |
17464 | eval "$as_ac_var=yes" | |
17465 | else | |
17466 | echo "$as_me: failed program was:" >&5 | |
17467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17468 | ||
b4e70030 | 17469 | eval "$as_ac_var=no" |
bec39cab AC |
17470 | fi |
17471 | rm -f conftest.err conftest.$ac_objext \ | |
17472 | conftest$ac_exeext conftest.$ac_ext | |
17473 | fi | |
b4e70030 JB |
17474 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17475 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17476 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17477 | cat >>confdefs.h <<_ACEOF | |
17478 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17479 | _ACEOF | |
b757528f | 17480 | |
b757528f JJ |
17481 | fi |
17482 | done | |
17483 | ||
bec39cab | 17484 | |
a3828db0 MK |
17485 | |
17486 | for ac_func in setpgid setpgrp | |
bcb3dc3d | 17487 | do |
bec39cab | 17488 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17489 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17490 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17491 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17493 | else | |
17494 | cat >conftest.$ac_ext <<_ACEOF | |
17495 | /* confdefs.h. */ | |
17496 | _ACEOF | |
17497 | cat confdefs.h >>conftest.$ac_ext | |
17498 | cat >>conftest.$ac_ext <<_ACEOF | |
17499 | /* end confdefs.h. */ | |
17500 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17501 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17502 | #define $ac_func innocuous_$ac_func | |
17503 | ||
bcb3dc3d | 17504 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17505 | which can conflict with char $ac_func (); below. |
17506 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17507 | <limits.h> exists even on freestanding compilers. */ | |
17508 | ||
17509 | #ifdef __STDC__ | |
17510 | # include <limits.h> | |
17511 | #else | |
17512 | # include <assert.h> | |
17513 | #endif | |
bcb3dc3d | 17514 | |
bec39cab | 17515 | #undef $ac_func |
bcb3dc3d | 17516 | |
b4e70030 | 17517 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17518 | #ifdef __cplusplus |
17519 | extern "C" | |
b4e70030 | 17520 | { |
bec39cab | 17521 | #endif |
b4e70030 JB |
17522 | /* We use char because int might match the return type of a gcc2 |
17523 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17524 | char $ac_func (); |
bcb3dc3d MK |
17525 | /* The GNU C library defines this for functions which it implements |
17526 | to always fail with ENOSYS. Some functions are actually named | |
17527 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17528 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bcb3dc3d | 17529 | choke me |
b4e70030 JB |
17530 | #else |
17531 | char (*f) () = $ac_func; | |
17532 | #endif | |
17533 | #ifdef __cplusplus | |
17534 | } | |
bcb3dc3d MK |
17535 | #endif |
17536 | ||
bec39cab AC |
17537 | int |
17538 | main () | |
17539 | { | |
b4e70030 | 17540 | return f != $ac_func; |
bec39cab AC |
17541 | ; |
17542 | return 0; | |
17543 | } | |
17544 | _ACEOF | |
17545 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17547 | (eval $ac_link) 2>conftest.er1 | |
17548 | ac_status=$? | |
17549 | grep -v '^ *+' conftest.er1 >conftest.err | |
17550 | rm -f conftest.er1 | |
17551 | cat conftest.err >&5 | |
17552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17553 | (exit $ac_status); } && | |
b4e70030 JB |
17554 | { ac_try='test -z "$ac_c_werror_flag" |
17555 | || test ! -s conftest.err' | |
bec39cab AC |
17556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17557 | (eval $ac_try) 2>&5 | |
17558 | ac_status=$? | |
17559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17560 | (exit $ac_status); }; } && | |
17561 | { ac_try='test -s conftest$ac_exeext' | |
17562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17563 | (eval $ac_try) 2>&5 | |
17564 | ac_status=$? | |
17565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17566 | (exit $ac_status); }; }; then | |
17567 | eval "$as_ac_var=yes" | |
17568 | else | |
17569 | echo "$as_me: failed program was:" >&5 | |
17570 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17571 | ||
b4e70030 | 17572 | eval "$as_ac_var=no" |
bec39cab AC |
17573 | fi |
17574 | rm -f conftest.err conftest.$ac_objext \ | |
17575 | conftest$ac_exeext conftest.$ac_ext | |
17576 | fi | |
b4e70030 JB |
17577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17578 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17579 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17580 | cat >>confdefs.h <<_ACEOF | |
17581 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17582 | _ACEOF | |
bcb3dc3d | 17583 | |
bcb3dc3d MK |
17584 | fi |
17585 | done | |
17586 | ||
bec39cab | 17587 | |
a3828db0 MK |
17588 | |
17589 | ||
17590 | for ac_func in sigaction sigprocmask sigsetmask | |
8b9cf735 | 17591 | do |
bec39cab | 17592 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17593 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17594 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17595 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17597 | else | |
17598 | cat >conftest.$ac_ext <<_ACEOF | |
17599 | /* confdefs.h. */ | |
17600 | _ACEOF | |
17601 | cat confdefs.h >>conftest.$ac_ext | |
17602 | cat >>conftest.$ac_ext <<_ACEOF | |
17603 | /* end confdefs.h. */ | |
17604 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17605 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17606 | #define $ac_func innocuous_$ac_func | |
17607 | ||
8b9cf735 | 17608 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17609 | which can conflict with char $ac_func (); below. |
17610 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17611 | <limits.h> exists even on freestanding compilers. */ | |
17612 | ||
17613 | #ifdef __STDC__ | |
17614 | # include <limits.h> | |
17615 | #else | |
17616 | # include <assert.h> | |
17617 | #endif | |
8b9cf735 | 17618 | |
bec39cab | 17619 | #undef $ac_func |
8b9cf735 | 17620 | |
b4e70030 | 17621 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17622 | #ifdef __cplusplus |
17623 | extern "C" | |
b4e70030 | 17624 | { |
a3828db0 | 17625 | #endif |
b4e70030 JB |
17626 | /* We use char because int might match the return type of a gcc2 |
17627 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17628 | char $ac_func (); |
17629 | /* The GNU C library defines this for functions which it implements | |
17630 | to always fail with ENOSYS. Some functions are actually named | |
17631 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17632 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17633 | choke me |
b4e70030 JB |
17634 | #else |
17635 | char (*f) () = $ac_func; | |
17636 | #endif | |
17637 | #ifdef __cplusplus | |
17638 | } | |
a3828db0 MK |
17639 | #endif |
17640 | ||
bec39cab AC |
17641 | int |
17642 | main () | |
17643 | { | |
b4e70030 | 17644 | return f != $ac_func; |
bec39cab AC |
17645 | ; |
17646 | return 0; | |
17647 | } | |
17648 | _ACEOF | |
a3828db0 MK |
17649 | rm -f conftest.$ac_objext conftest$ac_exeext |
17650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17651 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17652 | ac_status=$? |
17653 | grep -v '^ *+' conftest.er1 >conftest.err | |
17654 | rm -f conftest.er1 | |
17655 | cat conftest.err >&5 | |
17656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17657 | (exit $ac_status); } && | |
b4e70030 JB |
17658 | { ac_try='test -z "$ac_c_werror_flag" |
17659 | || test ! -s conftest.err' | |
bec39cab AC |
17660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17661 | (eval $ac_try) 2>&5 | |
17662 | ac_status=$? | |
17663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17664 | (exit $ac_status); }; } && | |
a3828db0 | 17665 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17667 | (eval $ac_try) 2>&5 | |
17668 | ac_status=$? | |
17669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17670 | (exit $ac_status); }; }; then | |
a3828db0 | 17671 | eval "$as_ac_var=yes" |
086ec9eb | 17672 | else |
bec39cab AC |
17673 | echo "$as_me: failed program was:" >&5 |
17674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17675 | ||
b4e70030 | 17676 | eval "$as_ac_var=no" |
a3828db0 MK |
17677 | fi |
17678 | rm -f conftest.err conftest.$ac_objext \ | |
17679 | conftest$ac_exeext conftest.$ac_ext | |
17680 | fi | |
b4e70030 JB |
17681 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17682 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17683 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17684 | cat >>confdefs.h <<_ACEOF | |
17685 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17686 | _ACEOF | |
17687 | ||
086ec9eb | 17688 | fi |
a3828db0 MK |
17689 | done |
17690 | ||
17691 | ||
17692 | for ac_func in socketpair | |
17693 | do | |
17694 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17695 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17696 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17697 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
17698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17699 | else | |
17700 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
17701 | /* confdefs.h. */ |
17702 | _ACEOF | |
17703 | cat confdefs.h >>conftest.$ac_ext | |
17704 | cat >>conftest.$ac_ext <<_ACEOF | |
17705 | /* end confdefs.h. */ | |
a3828db0 MK |
17706 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17707 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17708 | #define $ac_func innocuous_$ac_func | |
17709 | ||
17710 | /* System header to define __stub macros and hopefully few prototypes, | |
17711 | which can conflict with char $ac_func (); below. | |
17712 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17713 | <limits.h> exists even on freestanding compilers. */ | |
17714 | ||
17715 | #ifdef __STDC__ | |
17716 | # include <limits.h> | |
17717 | #else | |
17718 | # include <assert.h> | |
17719 | #endif | |
17720 | ||
17721 | #undef $ac_func | |
17722 | ||
b4e70030 | 17723 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17724 | #ifdef __cplusplus |
17725 | extern "C" | |
b4e70030 | 17726 | { |
a3828db0 | 17727 | #endif |
b4e70030 JB |
17728 | /* We use char because int might match the return type of a gcc2 |
17729 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17730 | char $ac_func (); |
17731 | /* The GNU C library defines this for functions which it implements | |
17732 | to always fail with ENOSYS. Some functions are actually named | |
17733 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17734 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17735 | choke me |
b4e70030 JB |
17736 | #else |
17737 | char (*f) () = $ac_func; | |
17738 | #endif | |
17739 | #ifdef __cplusplus | |
17740 | } | |
a3828db0 MK |
17741 | #endif |
17742 | ||
bec39cab AC |
17743 | int |
17744 | main () | |
17745 | { | |
b4e70030 | 17746 | return f != $ac_func; |
bec39cab AC |
17747 | ; |
17748 | return 0; | |
17749 | } | |
17750 | _ACEOF | |
a3828db0 MK |
17751 | rm -f conftest.$ac_objext conftest$ac_exeext |
17752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17753 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17754 | ac_status=$? |
17755 | grep -v '^ *+' conftest.er1 >conftest.err | |
17756 | rm -f conftest.er1 | |
17757 | cat conftest.err >&5 | |
17758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17759 | (exit $ac_status); } && | |
b4e70030 JB |
17760 | { ac_try='test -z "$ac_c_werror_flag" |
17761 | || test ! -s conftest.err' | |
bec39cab AC |
17762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17763 | (eval $ac_try) 2>&5 | |
17764 | ac_status=$? | |
17765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17766 | (exit $ac_status); }; } && | |
a3828db0 | 17767 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17769 | (eval $ac_try) 2>&5 | |
17770 | ac_status=$? | |
17771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17772 | (exit $ac_status); }; }; then | |
a3828db0 | 17773 | eval "$as_ac_var=yes" |
086ec9eb | 17774 | else |
bec39cab AC |
17775 | echo "$as_me: failed program was:" >&5 |
17776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17777 | ||
b4e70030 | 17778 | eval "$as_ac_var=no" |
086ec9eb | 17779 | fi |
a3828db0 MK |
17780 | rm -f conftest.err conftest.$ac_objext \ |
17781 | conftest$ac_exeext conftest.$ac_ext | |
086ec9eb | 17782 | fi |
b4e70030 JB |
17783 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17784 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17785 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17786 | cat >>confdefs.h <<_ACEOF | |
17787 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17788 | _ACEOF |
086ec9eb MK |
17789 | |
17790 | fi | |
a3828db0 | 17791 | done |
086ec9eb | 17792 | |
a3828db0 MK |
17793 | |
17794 | for ac_func in syscall | |
17795 | do | |
17796 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17797 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17798 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17799 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 17800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab AC |
17801 | else |
17802 | cat >conftest.$ac_ext <<_ACEOF | |
17803 | /* confdefs.h. */ | |
17804 | _ACEOF | |
17805 | cat confdefs.h >>conftest.$ac_ext | |
17806 | cat >>conftest.$ac_ext <<_ACEOF | |
17807 | /* end confdefs.h. */ | |
a3828db0 MK |
17808 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17809 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17810 | #define $ac_func innocuous_$ac_func | |
17811 | ||
17812 | /* System header to define __stub macros and hopefully few prototypes, | |
17813 | which can conflict with char $ac_func (); below. | |
17814 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17815 | <limits.h> exists even on freestanding compilers. */ | |
17816 | ||
17817 | #ifdef __STDC__ | |
17818 | # include <limits.h> | |
17819 | #else | |
17820 | # include <assert.h> | |
17821 | #endif | |
17822 | ||
17823 | #undef $ac_func | |
17824 | ||
b4e70030 | 17825 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17826 | #ifdef __cplusplus |
17827 | extern "C" | |
b4e70030 | 17828 | { |
a3828db0 | 17829 | #endif |
b4e70030 JB |
17830 | /* We use char because int might match the return type of a gcc2 |
17831 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17832 | char $ac_func (); |
17833 | /* The GNU C library defines this for functions which it implements | |
17834 | to always fail with ENOSYS. Some functions are actually named | |
17835 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17836 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17837 | choke me |
b4e70030 JB |
17838 | #else |
17839 | char (*f) () = $ac_func; | |
17840 | #endif | |
17841 | #ifdef __cplusplus | |
17842 | } | |
c906108c | 17843 | #endif |
97bf5e38 | 17844 | |
bec39cab AC |
17845 | int |
17846 | main () | |
97bf5e38 | 17847 | { |
b4e70030 | 17848 | return f != $ac_func; |
bec39cab AC |
17849 | ; |
17850 | return 0; | |
97bf5e38 | 17851 | } |
bec39cab | 17852 | _ACEOF |
a3828db0 | 17853 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab | 17854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 17855 | (eval $ac_link) 2>conftest.er1 |
bec39cab | 17856 | ac_status=$? |
a3828db0 MK |
17857 | grep -v '^ *+' conftest.er1 >conftest.err |
17858 | rm -f conftest.er1 | |
17859 | cat conftest.err >&5 | |
bec39cab | 17860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3828db0 | 17861 | (exit $ac_status); } && |
b4e70030 JB |
17862 | { ac_try='test -z "$ac_c_werror_flag" |
17863 | || test ! -s conftest.err' | |
a3828db0 MK |
17864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17865 | (eval $ac_try) 2>&5 | |
17866 | ac_status=$? | |
17867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17868 | (exit $ac_status); }; } && | |
17869 | { ac_try='test -s conftest$ac_exeext' | |
bec39cab AC |
17870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17871 | (eval $ac_try) 2>&5 | |
17872 | ac_status=$? | |
17873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17874 | (exit $ac_status); }; }; then | |
a3828db0 | 17875 | eval "$as_ac_var=yes" |
c906108c | 17876 | else |
a3828db0 | 17877 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
17878 | sed 's/^/| /' conftest.$ac_ext >&5 |
17879 | ||
b4e70030 | 17880 | eval "$as_ac_var=no" |
97bf5e38 | 17881 | fi |
a3828db0 MK |
17882 | rm -f conftest.err conftest.$ac_objext \ |
17883 | conftest$ac_exeext conftest.$ac_ext | |
17884 | fi | |
b4e70030 JB |
17885 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17886 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17887 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17888 | cat >>confdefs.h <<_ACEOF | |
17889 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17890 | _ACEOF |
c906108c SS |
17891 | |
17892 | fi | |
a3828db0 | 17893 | done |
c906108c | 17894 | |
a3828db0 MK |
17895 | |
17896 | for ac_func in ttrace | |
17897 | do | |
17898 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17899 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17900 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17901 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 17902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b83266a0 | 17903 | else |
bec39cab AC |
17904 | cat >conftest.$ac_ext <<_ACEOF |
17905 | /* confdefs.h. */ | |
17906 | _ACEOF | |
17907 | cat confdefs.h >>conftest.$ac_ext | |
17908 | cat >>conftest.$ac_ext <<_ACEOF | |
17909 | /* end confdefs.h. */ | |
a3828db0 MK |
17910 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17911 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17912 | #define $ac_func innocuous_$ac_func | |
b83266a0 | 17913 | |
a3828db0 MK |
17914 | /* System header to define __stub macros and hopefully few prototypes, |
17915 | which can conflict with char $ac_func (); below. | |
17916 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17917 | <limits.h> exists even on freestanding compilers. */ | |
17918 | ||
17919 | #ifdef __STDC__ | |
17920 | # include <limits.h> | |
17921 | #else | |
17922 | # include <assert.h> | |
17923 | #endif | |
17924 | ||
17925 | #undef $ac_func | |
17926 | ||
b4e70030 | 17927 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17928 | #ifdef __cplusplus |
17929 | extern "C" | |
b4e70030 | 17930 | { |
a3828db0 | 17931 | #endif |
b4e70030 JB |
17932 | /* We use char because int might match the return type of a gcc2 |
17933 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17934 | char $ac_func (); |
17935 | /* The GNU C library defines this for functions which it implements | |
17936 | to always fail with ENOSYS. Some functions are actually named | |
17937 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17938 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17939 | choke me |
b4e70030 JB |
17940 | #else |
17941 | char (*f) () = $ac_func; | |
17942 | #endif | |
17943 | #ifdef __cplusplus | |
17944 | } | |
a3828db0 | 17945 | #endif |
97bf5e38 | 17946 | |
bec39cab AC |
17947 | int |
17948 | main () | |
17949 | { | |
b4e70030 | 17950 | return f != $ac_func; |
bec39cab AC |
17951 | ; |
17952 | return 0; | |
17953 | } | |
17954 | _ACEOF | |
a3828db0 MK |
17955 | rm -f conftest.$ac_objext conftest$ac_exeext |
17956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17957 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17958 | ac_status=$? |
17959 | grep -v '^ *+' conftest.er1 >conftest.err | |
17960 | rm -f conftest.er1 | |
17961 | cat conftest.err >&5 | |
17962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17963 | (exit $ac_status); } && | |
b4e70030 JB |
17964 | { ac_try='test -z "$ac_c_werror_flag" |
17965 | || test ! -s conftest.err' | |
bec39cab AC |
17966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17967 | (eval $ac_try) 2>&5 | |
17968 | ac_status=$? | |
17969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17970 | (exit $ac_status); }; } && | |
a3828db0 | 17971 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17973 | (eval $ac_try) 2>&5 | |
17974 | ac_status=$? | |
17975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17976 | (exit $ac_status); }; }; then | |
a3828db0 | 17977 | eval "$as_ac_var=yes" |
b83266a0 | 17978 | else |
bec39cab AC |
17979 | echo "$as_me: failed program was:" >&5 |
17980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17981 | ||
b4e70030 | 17982 | eval "$as_ac_var=no" |
b83266a0 | 17983 | fi |
a3828db0 MK |
17984 | rm -f conftest.err conftest.$ac_objext \ |
17985 | conftest$ac_exeext conftest.$ac_ext | |
b83266a0 | 17986 | fi |
b4e70030 JB |
17987 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17988 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17989 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17990 | cat >>confdefs.h <<_ACEOF | |
17991 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17992 | _ACEOF |
b83266a0 | 17993 | |
97bf5e38 | 17994 | fi |
a3828db0 | 17995 | done |
b83266a0 | 17996 | |
a3828db0 MK |
17997 | |
17998 | for ac_func in wborder | |
17999 | do | |
18000 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
18001 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18002 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18003 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
18004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18005 | else | |
18006 | cat >conftest.$ac_ext <<_ACEOF | |
18007 | /* confdefs.h. */ | |
18008 | _ACEOF | |
18009 | cat confdefs.h >>conftest.$ac_ext | |
18010 | cat >>conftest.$ac_ext <<_ACEOF | |
18011 | /* end confdefs.h. */ | |
a3828db0 MK |
18012 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18013 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18014 | #define $ac_func innocuous_$ac_func | |
a4db0f07 | 18015 | |
a3828db0 MK |
18016 | /* System header to define __stub macros and hopefully few prototypes, |
18017 | which can conflict with char $ac_func (); below. | |
18018 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18019 | <limits.h> exists even on freestanding compilers. */ | |
18020 | ||
18021 | #ifdef __STDC__ | |
18022 | # include <limits.h> | |
18023 | #else | |
18024 | # include <assert.h> | |
18025 | #endif | |
18026 | ||
18027 | #undef $ac_func | |
18028 | ||
b4e70030 | 18029 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
18030 | #ifdef __cplusplus |
18031 | extern "C" | |
b4e70030 | 18032 | { |
a3828db0 | 18033 | #endif |
b4e70030 JB |
18034 | /* We use char because int might match the return type of a gcc2 |
18035 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
18036 | char $ac_func (); |
18037 | /* The GNU C library defines this for functions which it implements | |
18038 | to always fail with ENOSYS. Some functions are actually named | |
18039 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 18040 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 18041 | choke me |
b4e70030 JB |
18042 | #else |
18043 | char (*f) () = $ac_func; | |
18044 | #endif | |
18045 | #ifdef __cplusplus | |
18046 | } | |
a3828db0 | 18047 | #endif |
97bf5e38 | 18048 | |
bec39cab AC |
18049 | int |
18050 | main () | |
18051 | { | |
b4e70030 | 18052 | return f != $ac_func; |
bec39cab AC |
18053 | ; |
18054 | return 0; | |
18055 | } | |
18056 | _ACEOF | |
a3828db0 MK |
18057 | rm -f conftest.$ac_objext conftest$ac_exeext |
18058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18059 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
18060 | ac_status=$? |
18061 | grep -v '^ *+' conftest.er1 >conftest.err | |
18062 | rm -f conftest.er1 | |
18063 | cat conftest.err >&5 | |
18064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18065 | (exit $ac_status); } && | |
b4e70030 JB |
18066 | { ac_try='test -z "$ac_c_werror_flag" |
18067 | || test ! -s conftest.err' | |
bec39cab AC |
18068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18069 | (eval $ac_try) 2>&5 | |
18070 | ac_status=$? | |
18071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18072 | (exit $ac_status); }; } && | |
a3828db0 | 18073 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
18074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18075 | (eval $ac_try) 2>&5 | |
18076 | ac_status=$? | |
18077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18078 | (exit $ac_status); }; }; then | |
a3828db0 | 18079 | eval "$as_ac_var=yes" |
a4db0f07 | 18080 | else |
bec39cab AC |
18081 | echo "$as_me: failed program was:" >&5 |
18082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18083 | ||
b4e70030 | 18084 | eval "$as_ac_var=no" |
a4db0f07 | 18085 | fi |
a3828db0 MK |
18086 | rm -f conftest.err conftest.$ac_objext \ |
18087 | conftest$ac_exeext conftest.$ac_ext | |
a4db0f07 | 18088 | fi |
b4e70030 JB |
18089 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18090 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
18091 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18092 | cat >>confdefs.h <<_ACEOF | |
18093 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 18094 | _ACEOF |
a4db0f07 RH |
18095 | |
18096 | fi | |
a3828db0 | 18097 | done |
c906108c | 18098 | |
06825bd1 | 18099 | |
a3828db0 MK |
18100 | # Check the return and argument types of ptrace. No canned test for |
18101 | # this, so roll our own. | |
18102 | gdb_ptrace_headers=' | |
18103 | #if HAVE_SYS_TYPES_H | |
18104 | # include <sys/types.h> | |
18105 | #endif | |
18106 | #if HAVE_SYS_PTRACE_H | |
18107 | # include <sys/ptrace.h> | |
18108 | #endif | |
18109 | #if HAVE_UNISTD_H | |
18110 | # include <unistd.h> | |
18111 | #endif | |
18112 | ' | |
18113 | # There is no point in checking if we don't have a prototype. | |
b4e70030 JB |
18114 | echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 |
18115 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6 | |
a3828db0 | 18116 | if test "${ac_cv_have_decl_ptrace+set}" = set; then |
bec39cab AC |
18117 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18118 | else | |
18119 | cat >conftest.$ac_ext <<_ACEOF | |
18120 | /* confdefs.h. */ | |
18121 | _ACEOF | |
18122 | cat confdefs.h >>conftest.$ac_ext | |
18123 | cat >>conftest.$ac_ext <<_ACEOF | |
18124 | /* end confdefs.h. */ | |
a3828db0 MK |
18125 | $gdb_ptrace_headers |
18126 | ||
bec39cab AC |
18127 | int |
18128 | main () | |
18129 | { | |
a3828db0 MK |
18130 | #ifndef ptrace |
18131 | char *p = (char *) ptrace; | |
06825bd1 | 18132 | #endif |
a3828db0 | 18133 | |
bec39cab AC |
18134 | ; |
18135 | return 0; | |
18136 | } | |
18137 | _ACEOF | |
18138 | rm -f conftest.$ac_objext | |
18139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18140 | (eval $ac_compile) 2>conftest.er1 | |
18141 | ac_status=$? | |
18142 | grep -v '^ *+' conftest.er1 >conftest.err | |
18143 | rm -f conftest.er1 | |
18144 | cat conftest.err >&5 | |
18145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18146 | (exit $ac_status); } && | |
b4e70030 JB |
18147 | { ac_try='test -z "$ac_c_werror_flag" |
18148 | || test ! -s conftest.err' | |
bec39cab AC |
18149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18150 | (eval $ac_try) 2>&5 | |
18151 | ac_status=$? | |
18152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18153 | (exit $ac_status); }; } && | |
18154 | { ac_try='test -s conftest.$ac_objext' | |
18155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18156 | (eval $ac_try) 2>&5 | |
18157 | ac_status=$? | |
18158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18159 | (exit $ac_status); }; }; then | |
a3828db0 | 18160 | ac_cv_have_decl_ptrace=yes |
06825bd1 | 18161 | else |
bec39cab AC |
18162 | echo "$as_me: failed program was:" >&5 |
18163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18164 | ||
b4e70030 | 18165 | ac_cv_have_decl_ptrace=no |
06825bd1 | 18166 | fi |
bec39cab | 18167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
06825bd1 | 18168 | fi |
b4e70030 JB |
18169 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
18170 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6 | |
a3828db0 | 18171 | if test $ac_cv_have_decl_ptrace = yes; then |
06825bd1 | 18172 | |
a3828db0 MK |
18173 | cat >>confdefs.h <<_ACEOF |
18174 | #define HAVE_DECL_PTRACE 1 | |
18175 | _ACEOF | |
bec39cab | 18176 | |
bec39cab | 18177 | |
a3828db0 MK |
18178 | else |
18179 | cat >>confdefs.h <<_ACEOF | |
18180 | #define HAVE_DECL_PTRACE 0 | |
bec39cab | 18181 | _ACEOF |
06825bd1 | 18182 | |
a3828db0 MK |
18183 | |
18184 | : ${gdb_cv_func_ptrace_ret='int'} | |
18185 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
18186 | ||
06825bd1 MK |
18187 | fi |
18188 | ||
a3828db0 MK |
18189 | |
18190 | # Check return type. | |
b4e70030 JB |
18191 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
18192 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 | |
a3828db0 | 18193 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then |
bec39cab AC |
18194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18195 | else | |
18196 | cat >conftest.$ac_ext <<_ACEOF | |
18197 | /* confdefs.h. */ | |
18198 | _ACEOF | |
18199 | cat confdefs.h >>conftest.$ac_ext | |
18200 | cat >>conftest.$ac_ext <<_ACEOF | |
18201 | /* end confdefs.h. */ | |
a3828db0 | 18202 | $gdb_ptrace_headers |
bec39cab AC |
18203 | int |
18204 | main () | |
18205 | { | |
a3828db0 | 18206 | extern int ptrace (); |
bec39cab AC |
18207 | ; |
18208 | return 0; | |
18209 | } | |
18210 | _ACEOF | |
18211 | rm -f conftest.$ac_objext | |
18212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18213 | (eval $ac_compile) 2>conftest.er1 | |
18214 | ac_status=$? | |
18215 | grep -v '^ *+' conftest.er1 >conftest.err | |
18216 | rm -f conftest.er1 | |
18217 | cat conftest.err >&5 | |
18218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18219 | (exit $ac_status); } && | |
b4e70030 JB |
18220 | { ac_try='test -z "$ac_c_werror_flag" |
18221 | || test ! -s conftest.err' | |
bec39cab AC |
18222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18223 | (eval $ac_try) 2>&5 | |
18224 | ac_status=$? | |
18225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18226 | (exit $ac_status); }; } && | |
18227 | { ac_try='test -s conftest.$ac_objext' | |
18228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18229 | (eval $ac_try) 2>&5 | |
18230 | ac_status=$? | |
18231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18232 | (exit $ac_status); }; }; then | |
a3828db0 | 18233 | gdb_cv_func_ptrace_ret='int' |
70f9f479 | 18234 | else |
bec39cab AC |
18235 | echo "$as_me: failed program was:" >&5 |
18236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18237 | ||
b4e70030 | 18238 | gdb_cv_func_ptrace_ret='long' |
70f9f479 | 18239 | fi |
bec39cab | 18240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
70f9f479 | 18241 | fi |
b4e70030 JB |
18242 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
18243 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 | |
bec39cab | 18244 | |
a3828db0 MK |
18245 | cat >>confdefs.h <<_ACEOF |
18246 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret | |
bec39cab | 18247 | _ACEOF |
70f9f479 | 18248 | |
a3828db0 | 18249 | # Check argument types. |
b4e70030 JB |
18250 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
18251 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 | |
a3828db0 | 18252 | if test "${gdb_cv_func_ptrace_args+set}" = set; then |
bec39cab AC |
18253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18254 | else | |
a3828db0 MK |
18255 | |
18256 | for gdb_arg1 in 'int' 'long'; do | |
18257 | for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
18258 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do | |
18259 | for gdb_arg4 in 'int' 'long'; do | |
18260 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
18261 | /* confdefs.h. */ |
18262 | _ACEOF | |
18263 | cat confdefs.h >>conftest.$ac_ext | |
18264 | cat >>conftest.$ac_ext <<_ACEOF | |
18265 | /* end confdefs.h. */ | |
a3828db0 | 18266 | $gdb_ptrace_headers |
bec39cab AC |
18267 | int |
18268 | main () | |
18269 | { | |
a3828db0 MK |
18270 | |
18271 | extern $gdb_cv_func_ptrace_ret | |
18272 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
18273 | ||
bec39cab AC |
18274 | ; |
18275 | return 0; | |
18276 | } | |
18277 | _ACEOF | |
18278 | rm -f conftest.$ac_objext | |
18279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18280 | (eval $ac_compile) 2>conftest.er1 | |
18281 | ac_status=$? | |
18282 | grep -v '^ *+' conftest.er1 >conftest.err | |
18283 | rm -f conftest.er1 | |
18284 | cat conftest.err >&5 | |
18285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18286 | (exit $ac_status); } && | |
b4e70030 JB |
18287 | { ac_try='test -z "$ac_c_werror_flag" |
18288 | || test ! -s conftest.err' | |
bec39cab AC |
18289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18290 | (eval $ac_try) 2>&5 | |
18291 | ac_status=$? | |
18292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18293 | (exit $ac_status); }; } && | |
18294 | { ac_try='test -s conftest.$ac_objext' | |
18295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18296 | (eval $ac_try) 2>&5 | |
18297 | ac_status=$? | |
18298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18299 | (exit $ac_status); }; }; then | |
a3828db0 MK |
18300 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
18301 | break 4; | |
5c7f2947 | 18302 | else |
bec39cab AC |
18303 | echo "$as_me: failed program was:" >&5 |
18304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18305 | ||
5c7f2947 | 18306 | fi |
bec39cab | 18307 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
18308 | for gdb_arg5 in 'int *' 'int' 'long'; do |
18309 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
18310 | /* confdefs.h. */ |
18311 | _ACEOF | |
18312 | cat confdefs.h >>conftest.$ac_ext | |
18313 | cat >>conftest.$ac_ext <<_ACEOF | |
18314 | /* end confdefs.h. */ | |
a3828db0 | 18315 | $gdb_ptrace_headers |
bec39cab AC |
18316 | int |
18317 | main () | |
18318 | { | |
a3828db0 MK |
18319 | |
18320 | extern $gdb_cv_func_ptrace_ret | |
18321 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
18322 | ||
bec39cab AC |
18323 | ; |
18324 | return 0; | |
18325 | } | |
18326 | _ACEOF | |
18327 | rm -f conftest.$ac_objext | |
18328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18329 | (eval $ac_compile) 2>conftest.er1 | |
18330 | ac_status=$? | |
18331 | grep -v '^ *+' conftest.er1 >conftest.err | |
18332 | rm -f conftest.er1 | |
18333 | cat conftest.err >&5 | |
18334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18335 | (exit $ac_status); } && | |
b4e70030 JB |
18336 | { ac_try='test -z "$ac_c_werror_flag" |
18337 | || test ! -s conftest.err' | |
bec39cab AC |
18338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18339 | (eval $ac_try) 2>&5 | |
18340 | ac_status=$? | |
18341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18342 | (exit $ac_status); }; } && | |
18343 | { ac_try='test -s conftest.$ac_objext' | |
18344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18345 | (eval $ac_try) 2>&5 | |
18346 | ac_status=$? | |
18347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18348 | (exit $ac_status); }; }; then | |
a3828db0 MK |
18349 | |
18350 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; | |
18351 | break 5; | |
78434e59 | 18352 | else |
bec39cab AC |
18353 | echo "$as_me: failed program was:" >&5 |
18354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18355 | ||
78434e59 | 18356 | fi |
bec39cab | 18357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
18358 | done |
18359 | done | |
18360 | done | |
18361 | done | |
18362 | done | |
18363 | # Provide a safe default value. | |
18364 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
18365 | ||
78434e59 | 18366 | fi |
b4e70030 JB |
18367 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
18368 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 | |
a3828db0 MK |
18369 | ac_save_IFS=$IFS; IFS=',' |
18370 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
18371 | IFS=$ac_save_IFS | |
18372 | shift | |
bec39cab | 18373 | |
a3828db0 MK |
18374 | cat >>confdefs.h <<_ACEOF |
18375 | #define PTRACE_TYPE_ARG3 $3 | |
18376 | _ACEOF | |
18377 | ||
18378 | if test -n "$5"; then | |
18379 | ||
18380 | cat >>confdefs.h <<_ACEOF | |
18381 | #define PTRACE_TYPE_ARG5 $5 | |
bec39cab | 18382 | _ACEOF |
78434e59 MK |
18383 | |
18384 | fi | |
18385 | ||
a3828db0 | 18386 | if test "$cross_compiling" = no; then |
b4e70030 JB |
18387 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
18388 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 18389 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 18390 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
18391 | else |
18392 | if test "$cross_compiling" = yes; then | |
18393 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 | |
18394 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} | |
18395 | { (exit 1); exit 1; }; } | |
bec39cab AC |
18396 | else |
18397 | cat >conftest.$ac_ext <<_ACEOF | |
18398 | /* confdefs.h. */ | |
18399 | _ACEOF | |
18400 | cat confdefs.h >>conftest.$ac_ext | |
18401 | cat >>conftest.$ac_ext <<_ACEOF | |
18402 | /* end confdefs.h. */ | |
b4e70030 JB |
18403 | #if HAVE_UNISTD_H |
18404 | # include <unistd.h> | |
18405 | #endif | |
18406 | ||
bec39cab AC |
18407 | int |
18408 | main () | |
18409 | { | |
a3828db0 MK |
18410 | /* If this system has a BSD-style setpgrp which takes arguments, |
18411 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
18412 | exit successfully. */ | |
b4e70030 | 18413 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
bec39cab AC |
18414 | ; |
18415 | return 0; | |
18416 | } | |
18417 | _ACEOF | |
a3828db0 MK |
18418 | rm -f conftest$ac_exeext |
18419 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18420 | (eval $ac_link) 2>&5 | |
bec39cab AC |
18421 | ac_status=$? |
18422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 18423 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
18424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18425 | (eval $ac_try) 2>&5 | |
18426 | ac_status=$? | |
18427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18428 | (exit $ac_status); }; }; then | |
a3828db0 | 18429 | ac_cv_func_setpgrp_void=no |
c906108c | 18430 | else |
a3828db0 MK |
18431 | echo "$as_me: program exited with status $ac_status" >&5 |
18432 | echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
18433 | sed 's/^/| /' conftest.$ac_ext >&5 |
18434 | ||
a3828db0 MK |
18435 | ( exit $ac_status ) |
18436 | ac_cv_func_setpgrp_void=yes | |
c906108c | 18437 | fi |
b4e70030 | 18438 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 18439 | fi |
a3828db0 | 18440 | fi |
b4e70030 JB |
18441 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
18442 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 MK |
18443 | if test $ac_cv_func_setpgrp_void = yes; then |
18444 | ||
18445 | cat >>confdefs.h <<\_ACEOF | |
18446 | #define SETPGRP_VOID 1 | |
bec39cab | 18447 | _ACEOF |
97bf5e38 MK |
18448 | |
18449 | fi | |
a3828db0 MK |
18450 | |
18451 | else | |
b4e70030 JB |
18452 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
18453 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 18454 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 18455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 18456 | else |
bec39cab AC |
18457 | cat >conftest.$ac_ext <<_ACEOF |
18458 | /* confdefs.h. */ | |
18459 | _ACEOF | |
18460 | cat confdefs.h >>conftest.$ac_ext | |
18461 | cat >>conftest.$ac_ext <<_ACEOF | |
18462 | /* end confdefs.h. */ | |
a3828db0 MK |
18463 | |
18464 | #include <unistd.h> | |
18465 | ||
bec39cab AC |
18466 | int |
18467 | main () | |
18468 | { | |
a3828db0 MK |
18469 | |
18470 | if (setpgrp(1,1) == -1) | |
18471 | exit (0); | |
18472 | else | |
18473 | exit (1); | |
18474 | ||
bec39cab AC |
18475 | ; |
18476 | return 0; | |
18477 | } | |
18478 | _ACEOF | |
18479 | rm -f conftest.$ac_objext | |
18480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18481 | (eval $ac_compile) 2>conftest.er1 | |
18482 | ac_status=$? | |
18483 | grep -v '^ *+' conftest.er1 >conftest.err | |
18484 | rm -f conftest.er1 | |
18485 | cat conftest.err >&5 | |
18486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18487 | (exit $ac_status); } && | |
b4e70030 JB |
18488 | { ac_try='test -z "$ac_c_werror_flag" |
18489 | || test ! -s conftest.err' | |
bec39cab AC |
18490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18491 | (eval $ac_try) 2>&5 | |
18492 | ac_status=$? | |
18493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18494 | (exit $ac_status); }; } && | |
18495 | { ac_try='test -s conftest.$ac_objext' | |
18496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18497 | (eval $ac_try) 2>&5 | |
18498 | ac_status=$? | |
18499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18500 | (exit $ac_status); }; }; then | |
a3828db0 | 18501 | ac_cv_func_setpgrp_void=no |
c906108c | 18502 | else |
bec39cab AC |
18503 | echo "$as_me: failed program was:" >&5 |
18504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18505 | ||
b4e70030 | 18506 | ac_cv_func_setpgrp_void=yes |
c906108c | 18507 | fi |
bec39cab | 18508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18509 | fi |
b4e70030 JB |
18510 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
18511 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 | 18512 | if test $ac_cv_func_setpgrp_void = yes; then |
bec39cab | 18513 | cat >>confdefs.h <<\_ACEOF |
a3828db0 | 18514 | #define SETPGRP_VOID 1 |
bec39cab | 18515 | _ACEOF |
c3f6f71d | 18516 | |
a3828db0 | 18517 | fi |
c906108c SS |
18518 | fi |
18519 | ||
a3828db0 MK |
18520 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
18521 | # since sigsetjmp might only be defined as a macro. | |
b4e70030 JB |
18522 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
18523 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 | |
a3828db0 | 18524 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then |
bec39cab AC |
18525 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18526 | else | |
18527 | cat >conftest.$ac_ext <<_ACEOF | |
18528 | /* confdefs.h. */ | |
18529 | _ACEOF | |
18530 | cat confdefs.h >>conftest.$ac_ext | |
18531 | cat >>conftest.$ac_ext <<_ACEOF | |
18532 | /* end confdefs.h. */ | |
a3828db0 MK |
18533 | |
18534 | #include <setjmp.h> | |
18535 | ||
bec39cab AC |
18536 | int |
18537 | main () | |
18538 | { | |
a3828db0 | 18539 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
bec39cab AC |
18540 | ; |
18541 | return 0; | |
18542 | } | |
18543 | _ACEOF | |
18544 | rm -f conftest.$ac_objext | |
18545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18546 | (eval $ac_compile) 2>conftest.er1 | |
18547 | ac_status=$? | |
18548 | grep -v '^ *+' conftest.er1 >conftest.err | |
18549 | rm -f conftest.er1 | |
18550 | cat conftest.err >&5 | |
18551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18552 | (exit $ac_status); } && | |
b4e70030 JB |
18553 | { ac_try='test -z "$ac_c_werror_flag" |
18554 | || test ! -s conftest.err' | |
bec39cab AC |
18555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18556 | (eval $ac_try) 2>&5 | |
18557 | ac_status=$? | |
18558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18559 | (exit $ac_status); }; } && | |
18560 | { ac_try='test -s conftest.$ac_objext' | |
18561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18562 | (eval $ac_try) 2>&5 | |
18563 | ac_status=$? | |
18564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18565 | (exit $ac_status); }; }; then | |
a3828db0 | 18566 | gdb_cv_func_sigsetjmp=yes |
c906108c | 18567 | else |
bec39cab AC |
18568 | echo "$as_me: failed program was:" >&5 |
18569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18570 | ||
b4e70030 | 18571 | gdb_cv_func_sigsetjmp=no |
c906108c | 18572 | fi |
bec39cab | 18573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18574 | fi |
b4e70030 JB |
18575 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
18576 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 | |
a3828db0 | 18577 | if test $gdb_cv_func_sigsetjmp = yes; then |
c906108c | 18578 | |
a3828db0 MK |
18579 | cat >>confdefs.h <<\_ACEOF |
18580 | #define HAVE_SIGSETJMP 1 | |
bec39cab | 18581 | _ACEOF |
c906108c | 18582 | |
97bf5e38 | 18583 | fi |
c906108c | 18584 | |
a3828db0 MK |
18585 | # Assume we'll default to using the included libiberty regex. |
18586 | gdb_use_included_regex=yes | |
18587 | ||
18588 | # However, if the system regex is GNU regex, then default to *not* | |
18589 | # using the included regex. | |
b4e70030 JB |
18590 | echo "$as_me:$LINENO: checking for GNU regex" >&5 |
18591 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 | |
a3828db0 | 18592 | if test "${gdb_cv_have_gnu_regex+set}" = set; then |
bec39cab AC |
18593 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18594 | else | |
18595 | cat >conftest.$ac_ext <<_ACEOF | |
18596 | /* confdefs.h. */ | |
18597 | _ACEOF | |
18598 | cat confdefs.h >>conftest.$ac_ext | |
18599 | cat >>conftest.$ac_ext <<_ACEOF | |
18600 | /* end confdefs.h. */ | |
a3828db0 | 18601 | #include <gnu-versions.h> |
bec39cab AC |
18602 | int |
18603 | main () | |
18604 | { | |
a3828db0 MK |
18605 | #define REGEX_INTERFACE_VERSION 1 |
18606 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION | |
18607 | # error "Version mismatch" | |
18608 | #endif | |
bec39cab AC |
18609 | ; |
18610 | return 0; | |
18611 | } | |
18612 | _ACEOF | |
18613 | rm -f conftest.$ac_objext | |
18614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18615 | (eval $ac_compile) 2>conftest.er1 | |
18616 | ac_status=$? | |
18617 | grep -v '^ *+' conftest.er1 >conftest.err | |
18618 | rm -f conftest.er1 | |
18619 | cat conftest.err >&5 | |
18620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18621 | (exit $ac_status); } && | |
b4e70030 JB |
18622 | { ac_try='test -z "$ac_c_werror_flag" |
18623 | || test ! -s conftest.err' | |
bec39cab AC |
18624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18625 | (eval $ac_try) 2>&5 | |
18626 | ac_status=$? | |
18627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18628 | (exit $ac_status); }; } && | |
18629 | { ac_try='test -s conftest.$ac_objext' | |
18630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18631 | (eval $ac_try) 2>&5 | |
18632 | ac_status=$? | |
18633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18634 | (exit $ac_status); }; }; then | |
a3828db0 | 18635 | gdb_cv_have_gnu_regex=yes |
c906108c | 18636 | else |
bec39cab AC |
18637 | echo "$as_me: failed program was:" >&5 |
18638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18639 | ||
b4e70030 | 18640 | gdb_cv_have_gnu_regex=no |
c906108c | 18641 | fi |
bec39cab | 18642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18643 | fi |
b4e70030 JB |
18644 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
18645 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 | |
a3828db0 MK |
18646 | if test $gdb_cv_have_gnu_regex = yes; then |
18647 | gdb_use_included_regex=no | |
18648 | fi | |
c906108c | 18649 | |
a3828db0 | 18650 | |
b4e70030 | 18651 | # Check whether --with-included-regex or --without-included-regex was given. |
a3828db0 | 18652 | if test "${with_included_regex+set}" = set; then |
b4e70030 JB |
18653 | withval="$with_included_regex" |
18654 | gdb_with_regex=$withval | |
a3828db0 MK |
18655 | else |
18656 | gdb_with_regex=$gdb_use_included_regex | |
b4e70030 | 18657 | fi; |
a3828db0 MK |
18658 | if test "$gdb_with_regex" = yes; then |
18659 | ||
18660 | cat >>confdefs.h <<\_ACEOF | |
18661 | #define USE_INCLUDED_REGEX 1 | |
bec39cab | 18662 | _ACEOF |
c906108c | 18663 | |
97bf5e38 | 18664 | fi |
c906108c | 18665 | |
5c45e068 | 18666 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
b4e70030 JB |
18667 | echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 |
18668 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6 | |
5c45e068 | 18669 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then |
bec39cab AC |
18670 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18671 | else | |
18672 | cat >conftest.$ac_ext <<_ACEOF | |
18673 | /* confdefs.h. */ | |
18674 | _ACEOF | |
18675 | cat confdefs.h >>conftest.$ac_ext | |
18676 | cat >>conftest.$ac_ext <<_ACEOF | |
18677 | /* end confdefs.h. */ | |
a3828db0 MK |
18678 | #include <sys/param.h> |
18679 | #include <sys/proc.h> | |
5c45e068 MK |
18680 | |
18681 | ||
bec39cab AC |
18682 | int |
18683 | main () | |
18684 | { | |
5c45e068 MK |
18685 | static struct thread ac_aggr; |
18686 | if (ac_aggr.td_pcb) | |
18687 | return 0; | |
bec39cab AC |
18688 | ; |
18689 | return 0; | |
18690 | } | |
18691 | _ACEOF | |
18692 | rm -f conftest.$ac_objext | |
18693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18694 | (eval $ac_compile) 2>conftest.er1 | |
18695 | ac_status=$? | |
18696 | grep -v '^ *+' conftest.er1 >conftest.err | |
18697 | rm -f conftest.er1 | |
18698 | cat conftest.err >&5 | |
18699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18700 | (exit $ac_status); } && | |
b4e70030 JB |
18701 | { ac_try='test -z "$ac_c_werror_flag" |
18702 | || test ! -s conftest.err' | |
bec39cab AC |
18703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18704 | (eval $ac_try) 2>&5 | |
18705 | ac_status=$? | |
18706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18707 | (exit $ac_status); }; } && | |
18708 | { ac_try='test -s conftest.$ac_objext' | |
18709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18710 | (eval $ac_try) 2>&5 | |
18711 | ac_status=$? | |
18712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18713 | (exit $ac_status); }; }; then | |
5c45e068 | 18714 | ac_cv_member_struct_thread_td_pcb=yes |
c906108c | 18715 | else |
bec39cab AC |
18716 | echo "$as_me: failed program was:" >&5 |
18717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18718 | ||
b4e70030 | 18719 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
18720 | /* confdefs.h. */ |
18721 | _ACEOF | |
18722 | cat confdefs.h >>conftest.$ac_ext | |
18723 | cat >>conftest.$ac_ext <<_ACEOF | |
18724 | /* end confdefs.h. */ | |
18725 | #include <sys/param.h> | |
18726 | #include <sys/proc.h> | |
18727 | ||
18728 | ||
18729 | int | |
18730 | main () | |
18731 | { | |
18732 | static struct thread ac_aggr; | |
18733 | if (sizeof ac_aggr.td_pcb) | |
18734 | return 0; | |
18735 | ; | |
18736 | return 0; | |
18737 | } | |
18738 | _ACEOF | |
18739 | rm -f conftest.$ac_objext | |
18740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18741 | (eval $ac_compile) 2>conftest.er1 | |
18742 | ac_status=$? | |
18743 | grep -v '^ *+' conftest.er1 >conftest.err | |
18744 | rm -f conftest.er1 | |
18745 | cat conftest.err >&5 | |
18746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18747 | (exit $ac_status); } && | |
b4e70030 JB |
18748 | { ac_try='test -z "$ac_c_werror_flag" |
18749 | || test ! -s conftest.err' | |
5c45e068 MK |
18750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18751 | (eval $ac_try) 2>&5 | |
18752 | ac_status=$? | |
18753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18754 | (exit $ac_status); }; } && | |
18755 | { ac_try='test -s conftest.$ac_objext' | |
18756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18757 | (eval $ac_try) 2>&5 | |
18758 | ac_status=$? | |
18759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18760 | (exit $ac_status); }; }; then | |
18761 | ac_cv_member_struct_thread_td_pcb=yes | |
18762 | else | |
18763 | echo "$as_me: failed program was:" >&5 | |
18764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18765 | ||
b4e70030 | 18766 | ac_cv_member_struct_thread_td_pcb=no |
5c45e068 MK |
18767 | fi |
18768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 18769 | fi |
bec39cab | 18770 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18771 | fi |
b4e70030 JB |
18772 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
18773 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6 | |
5c45e068 | 18774 | if test $ac_cv_member_struct_thread_td_pcb = yes; then |
c906108c | 18775 | |
5c45e068 | 18776 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 18777 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
bec39cab | 18778 | _ACEOF |
c906108c | 18779 | |
5c45e068 | 18780 | |
97bf5e38 | 18781 | fi |
c906108c | 18782 | |
5c45e068 | 18783 | |
a3828db0 | 18784 | # See if <sys/lwp.h> defines `struct lwp`. |
b4e70030 JB |
18785 | echo "$as_me:$LINENO: checking for struct lwp" >&5 |
18786 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 | |
a3828db0 | 18787 | if test "${gdb_cv_struct_lwp+set}" = set; then |
bec39cab AC |
18788 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18789 | else | |
18790 | cat >conftest.$ac_ext <<_ACEOF | |
18791 | /* confdefs.h. */ | |
18792 | _ACEOF | |
18793 | cat confdefs.h >>conftest.$ac_ext | |
18794 | cat >>conftest.$ac_ext <<_ACEOF | |
18795 | /* end confdefs.h. */ | |
a3828db0 MK |
18796 | #include <sys/param.h> |
18797 | #include <sys/lwp.h> | |
bec39cab AC |
18798 | int |
18799 | main () | |
18800 | { | |
a3828db0 | 18801 | struct lwp l; |
bec39cab AC |
18802 | ; |
18803 | return 0; | |
18804 | } | |
18805 | _ACEOF | |
18806 | rm -f conftest.$ac_objext | |
18807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18808 | (eval $ac_compile) 2>conftest.er1 | |
18809 | ac_status=$? | |
18810 | grep -v '^ *+' conftest.er1 >conftest.err | |
18811 | rm -f conftest.er1 | |
18812 | cat conftest.err >&5 | |
18813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18814 | (exit $ac_status); } && | |
b4e70030 JB |
18815 | { ac_try='test -z "$ac_c_werror_flag" |
18816 | || test ! -s conftest.err' | |
bec39cab AC |
18817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18818 | (eval $ac_try) 2>&5 | |
18819 | ac_status=$? | |
18820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18821 | (exit $ac_status); }; } && | |
18822 | { ac_try='test -s conftest.$ac_objext' | |
18823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18824 | (eval $ac_try) 2>&5 | |
18825 | ac_status=$? | |
18826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18827 | (exit $ac_status); }; }; then | |
a3828db0 | 18828 | gdb_cv_struct_lwp=yes |
c906108c | 18829 | else |
bec39cab AC |
18830 | echo "$as_me: failed program was:" >&5 |
18831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18832 | ||
b4e70030 | 18833 | gdb_cv_struct_lwp=no |
c906108c | 18834 | fi |
bec39cab | 18835 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18836 | fi |
b4e70030 JB |
18837 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
18838 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 | |
a3828db0 | 18839 | if test $gdb_cv_struct_lwp = yes; then |
c906108c | 18840 | |
a3828db0 MK |
18841 | cat >>confdefs.h <<\_ACEOF |
18842 | #define HAVE_STRUCT_LWP 1 | |
bec39cab | 18843 | _ACEOF |
c906108c | 18844 | |
97bf5e38 | 18845 | fi |
c906108c | 18846 | |
a3828db0 | 18847 | # See if <machine/reg.h> degines `struct reg'. |
b4e70030 JB |
18848 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
18849 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 | |
a3828db0 | 18850 | if test "${gdb_cv_struct_reg+set}" = set; then |
bec39cab AC |
18851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18852 | else | |
18853 | cat >conftest.$ac_ext <<_ACEOF | |
18854 | /* confdefs.h. */ | |
18855 | _ACEOF | |
18856 | cat confdefs.h >>conftest.$ac_ext | |
18857 | cat >>conftest.$ac_ext <<_ACEOF | |
18858 | /* end confdefs.h. */ | |
a3828db0 MK |
18859 | #include <sys/types.h> |
18860 | #include <machine/reg.h> | |
bec39cab AC |
18861 | int |
18862 | main () | |
18863 | { | |
a3828db0 | 18864 | struct reg r; |
bec39cab AC |
18865 | ; |
18866 | return 0; | |
18867 | } | |
18868 | _ACEOF | |
18869 | rm -f conftest.$ac_objext | |
18870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18871 | (eval $ac_compile) 2>conftest.er1 | |
18872 | ac_status=$? | |
18873 | grep -v '^ *+' conftest.er1 >conftest.err | |
18874 | rm -f conftest.er1 | |
18875 | cat conftest.err >&5 | |
18876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18877 | (exit $ac_status); } && | |
b4e70030 JB |
18878 | { ac_try='test -z "$ac_c_werror_flag" |
18879 | || test ! -s conftest.err' | |
bec39cab AC |
18880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18881 | (eval $ac_try) 2>&5 | |
18882 | ac_status=$? | |
18883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18884 | (exit $ac_status); }; } && | |
18885 | { ac_try='test -s conftest.$ac_objext' | |
18886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18887 | (eval $ac_try) 2>&5 | |
18888 | ac_status=$? | |
18889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18890 | (exit $ac_status); }; }; then | |
a3828db0 | 18891 | gdb_cv_struct_reg=yes |
27ca5dad | 18892 | else |
bec39cab AC |
18893 | echo "$as_me: failed program was:" >&5 |
18894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18895 | ||
b4e70030 | 18896 | gdb_cv_struct_reg=no |
27ca5dad | 18897 | fi |
bec39cab | 18898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27ca5dad | 18899 | fi |
b4e70030 JB |
18900 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
18901 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 | |
a3828db0 | 18902 | if test $gdb_cv_struct_reg = yes; then |
bec39cab AC |
18903 | |
18904 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 18905 | #define HAVE_STRUCT_REG 1 |
bec39cab | 18906 | _ACEOF |
27ca5dad MC |
18907 | |
18908 | fi | |
97bf5e38 | 18909 | |
a3828db0 MK |
18910 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
18911 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | |
b4e70030 JB |
18912 | echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
18913 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6 | |
5c45e068 | 18914 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then |
bec39cab | 18915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 18916 | else |
bec39cab AC |
18917 | cat >conftest.$ac_ext <<_ACEOF |
18918 | /* confdefs.h. */ | |
18919 | _ACEOF | |
18920 | cat confdefs.h >>conftest.$ac_ext | |
18921 | cat >>conftest.$ac_ext <<_ACEOF | |
18922 | /* end confdefs.h. */ | |
a3828db0 | 18923 | #include <machine/reg.h> |
5c45e068 MK |
18924 | |
18925 | int | |
18926 | main () | |
18927 | { | |
18928 | static struct reg ac_aggr; | |
18929 | if (ac_aggr.r_fs) | |
18930 | return 0; | |
18931 | ; | |
18932 | return 0; | |
18933 | } | |
18934 | _ACEOF | |
18935 | rm -f conftest.$ac_objext | |
18936 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18937 | (eval $ac_compile) 2>conftest.er1 | |
18938 | ac_status=$? | |
18939 | grep -v '^ *+' conftest.er1 >conftest.err | |
18940 | rm -f conftest.er1 | |
18941 | cat conftest.err >&5 | |
18942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18943 | (exit $ac_status); } && | |
b4e70030 JB |
18944 | { ac_try='test -z "$ac_c_werror_flag" |
18945 | || test ! -s conftest.err' | |
5c45e068 MK |
18946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18947 | (eval $ac_try) 2>&5 | |
18948 | ac_status=$? | |
18949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18950 | (exit $ac_status); }; } && | |
18951 | { ac_try='test -s conftest.$ac_objext' | |
18952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18953 | (eval $ac_try) 2>&5 | |
18954 | ac_status=$? | |
18955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18956 | (exit $ac_status); }; }; then | |
18957 | ac_cv_member_struct_reg_r_fs=yes | |
18958 | else | |
18959 | echo "$as_me: failed program was:" >&5 | |
18960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18961 | ||
b4e70030 | 18962 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
18963 | /* confdefs.h. */ |
18964 | _ACEOF | |
18965 | cat confdefs.h >>conftest.$ac_ext | |
18966 | cat >>conftest.$ac_ext <<_ACEOF | |
18967 | /* end confdefs.h. */ | |
18968 | #include <machine/reg.h> | |
18969 | ||
bec39cab AC |
18970 | int |
18971 | main () | |
18972 | { | |
5c45e068 MK |
18973 | static struct reg ac_aggr; |
18974 | if (sizeof ac_aggr.r_fs) | |
18975 | return 0; | |
bec39cab AC |
18976 | ; |
18977 | return 0; | |
18978 | } | |
18979 | _ACEOF | |
18980 | rm -f conftest.$ac_objext | |
18981 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18982 | (eval $ac_compile) 2>conftest.er1 | |
18983 | ac_status=$? | |
18984 | grep -v '^ *+' conftest.er1 >conftest.err | |
18985 | rm -f conftest.er1 | |
18986 | cat conftest.err >&5 | |
18987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18988 | (exit $ac_status); } && | |
b4e70030 JB |
18989 | { ac_try='test -z "$ac_c_werror_flag" |
18990 | || test ! -s conftest.err' | |
bec39cab AC |
18991 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18992 | (eval $ac_try) 2>&5 | |
18993 | ac_status=$? | |
18994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18995 | (exit $ac_status); }; } && | |
18996 | { ac_try='test -s conftest.$ac_objext' | |
18997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18998 | (eval $ac_try) 2>&5 | |
18999 | ac_status=$? | |
19000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19001 | (exit $ac_status); }; }; then | |
5c45e068 | 19002 | ac_cv_member_struct_reg_r_fs=yes |
3862412b | 19003 | else |
bec39cab AC |
19004 | echo "$as_me: failed program was:" >&5 |
19005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19006 | ||
b4e70030 | 19007 | ac_cv_member_struct_reg_r_fs=no |
3862412b | 19008 | fi |
bec39cab | 19009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 19010 | fi |
5c45e068 MK |
19011 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19012 | fi | |
b4e70030 JB |
19013 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 |
19014 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6 | |
5c45e068 MK |
19015 | if test $ac_cv_member_struct_reg_r_fs = yes; then |
19016 | ||
19017 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 19018 | #define HAVE_STRUCT_REG_R_FS 1 |
bec39cab | 19019 | _ACEOF |
3862412b | 19020 | |
5c45e068 | 19021 | |
97bf5e38 | 19022 | fi |
b4e70030 JB |
19023 | echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
19024 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6 | |
5c45e068 | 19025 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then |
bec39cab | 19026 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 19027 | else |
bec39cab AC |
19028 | cat >conftest.$ac_ext <<_ACEOF |
19029 | /* confdefs.h. */ | |
19030 | _ACEOF | |
19031 | cat confdefs.h >>conftest.$ac_ext | |
19032 | cat >>conftest.$ac_ext <<_ACEOF | |
19033 | /* end confdefs.h. */ | |
a3828db0 | 19034 | #include <machine/reg.h> |
5c45e068 | 19035 | |
bec39cab AC |
19036 | int |
19037 | main () | |
19038 | { | |
5c45e068 MK |
19039 | static struct reg ac_aggr; |
19040 | if (ac_aggr.r_gs) | |
19041 | return 0; | |
bec39cab AC |
19042 | ; |
19043 | return 0; | |
19044 | } | |
19045 | _ACEOF | |
19046 | rm -f conftest.$ac_objext | |
19047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19048 | (eval $ac_compile) 2>conftest.er1 | |
19049 | ac_status=$? | |
19050 | grep -v '^ *+' conftest.er1 >conftest.err | |
19051 | rm -f conftest.er1 | |
19052 | cat conftest.err >&5 | |
19053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19054 | (exit $ac_status); } && | |
b4e70030 JB |
19055 | { ac_try='test -z "$ac_c_werror_flag" |
19056 | || test ! -s conftest.err' | |
bec39cab AC |
19057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19058 | (eval $ac_try) 2>&5 | |
19059 | ac_status=$? | |
19060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19061 | (exit $ac_status); }; } && | |
19062 | { ac_try='test -s conftest.$ac_objext' | |
19063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19064 | (eval $ac_try) 2>&5 | |
19065 | ac_status=$? | |
19066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19067 | (exit $ac_status); }; }; then | |
5c45e068 | 19068 | ac_cv_member_struct_reg_r_gs=yes |
3862412b | 19069 | else |
bec39cab AC |
19070 | echo "$as_me: failed program was:" >&5 |
19071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19072 | ||
b4e70030 | 19073 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
19074 | /* confdefs.h. */ |
19075 | _ACEOF | |
19076 | cat confdefs.h >>conftest.$ac_ext | |
19077 | cat >>conftest.$ac_ext <<_ACEOF | |
19078 | /* end confdefs.h. */ | |
19079 | #include <machine/reg.h> | |
19080 | ||
19081 | int | |
19082 | main () | |
19083 | { | |
19084 | static struct reg ac_aggr; | |
19085 | if (sizeof ac_aggr.r_gs) | |
19086 | return 0; | |
19087 | ; | |
19088 | return 0; | |
19089 | } | |
19090 | _ACEOF | |
19091 | rm -f conftest.$ac_objext | |
19092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19093 | (eval $ac_compile) 2>conftest.er1 | |
19094 | ac_status=$? | |
19095 | grep -v '^ *+' conftest.er1 >conftest.err | |
19096 | rm -f conftest.er1 | |
19097 | cat conftest.err >&5 | |
19098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19099 | (exit $ac_status); } && | |
b4e70030 JB |
19100 | { ac_try='test -z "$ac_c_werror_flag" |
19101 | || test ! -s conftest.err' | |
5c45e068 MK |
19102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19103 | (eval $ac_try) 2>&5 | |
19104 | ac_status=$? | |
19105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19106 | (exit $ac_status); }; } && | |
19107 | { ac_try='test -s conftest.$ac_objext' | |
19108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19109 | (eval $ac_try) 2>&5 | |
19110 | ac_status=$? | |
19111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19112 | (exit $ac_status); }; }; then | |
19113 | ac_cv_member_struct_reg_r_gs=yes | |
19114 | else | |
19115 | echo "$as_me: failed program was:" >&5 | |
19116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19117 | ||
b4e70030 | 19118 | ac_cv_member_struct_reg_r_gs=no |
3862412b | 19119 | fi |
bec39cab | 19120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 19121 | fi |
5c45e068 MK |
19122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19123 | fi | |
b4e70030 JB |
19124 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 |
19125 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6 | |
5c45e068 MK |
19126 | if test $ac_cv_member_struct_reg_r_gs = yes; then |
19127 | ||
19128 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 19129 | #define HAVE_STRUCT_REG_R_GS 1 |
bec39cab | 19130 | _ACEOF |
3862412b | 19131 | |
5c45e068 | 19132 | |
97bf5e38 | 19133 | fi |
3862412b | 19134 | |
5c45e068 | 19135 | |
a3828db0 | 19136 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
b4e70030 JB |
19137 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
19138 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 | |
a3828db0 | 19139 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then |
bec39cab | 19140 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 19141 | else |
bec39cab AC |
19142 | cat >conftest.$ac_ext <<_ACEOF |
19143 | /* confdefs.h. */ | |
19144 | _ACEOF | |
19145 | cat confdefs.h >>conftest.$ac_ext | |
19146 | cat >>conftest.$ac_ext <<_ACEOF | |
19147 | /* end confdefs.h. */ | |
a3828db0 | 19148 | #include <sys/ptrace.h> |
bec39cab AC |
19149 | int |
19150 | main () | |
19151 | { | |
a3828db0 | 19152 | PTRACE_GETREGS; |
bec39cab AC |
19153 | ; |
19154 | return 0; | |
19155 | } | |
19156 | _ACEOF | |
19157 | rm -f conftest.$ac_objext | |
19158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19159 | (eval $ac_compile) 2>conftest.er1 | |
19160 | ac_status=$? | |
19161 | grep -v '^ *+' conftest.er1 >conftest.err | |
19162 | rm -f conftest.er1 | |
19163 | cat conftest.err >&5 | |
19164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19165 | (exit $ac_status); } && | |
b4e70030 JB |
19166 | { ac_try='test -z "$ac_c_werror_flag" |
19167 | || test ! -s conftest.err' | |
bec39cab AC |
19168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19169 | (eval $ac_try) 2>&5 | |
19170 | ac_status=$? | |
19171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19172 | (exit $ac_status); }; } && | |
19173 | { ac_try='test -s conftest.$ac_objext' | |
19174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19175 | (eval $ac_try) 2>&5 | |
19176 | ac_status=$? | |
19177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19178 | (exit $ac_status); }; }; then | |
a3828db0 | 19179 | gdb_cv_have_ptrace_getregs=yes |
451928c5 | 19180 | else |
bec39cab AC |
19181 | echo "$as_me: failed program was:" >&5 |
19182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19183 | ||
b4e70030 | 19184 | gdb_cv_have_ptrace_getregs=no |
451928c5 | 19185 | fi |
bec39cab | 19186 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
19187 | fi |
19188 | ||
b4e70030 JB |
19189 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
19190 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 | |
a3828db0 | 19191 | if test $gdb_cv_have_ptrace_getregs = yes; then |
60ca704f SE |
19192 | |
19193 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19194 | #define HAVE_PTRACE_GETREGS 1 |
bec39cab | 19195 | _ACEOF |
451928c5 | 19196 | |
97bf5e38 | 19197 | fi |
451928c5 | 19198 | |
a3828db0 | 19199 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
b4e70030 JB |
19200 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
19201 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 | |
a3828db0 | 19202 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then |
bec39cab | 19203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 19204 | else |
bec39cab AC |
19205 | cat >conftest.$ac_ext <<_ACEOF |
19206 | /* confdefs.h. */ | |
19207 | _ACEOF | |
19208 | cat confdefs.h >>conftest.$ac_ext | |
19209 | cat >>conftest.$ac_ext <<_ACEOF | |
19210 | /* end confdefs.h. */ | |
a3828db0 | 19211 | #include <sys/ptrace.h> |
bec39cab AC |
19212 | int |
19213 | main () | |
19214 | { | |
a3828db0 | 19215 | PTRACE_GETFPXREGS; |
bec39cab AC |
19216 | ; |
19217 | return 0; | |
19218 | } | |
19219 | _ACEOF | |
19220 | rm -f conftest.$ac_objext | |
19221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19222 | (eval $ac_compile) 2>conftest.er1 | |
19223 | ac_status=$? | |
19224 | grep -v '^ *+' conftest.er1 >conftest.err | |
19225 | rm -f conftest.er1 | |
19226 | cat conftest.err >&5 | |
19227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19228 | (exit $ac_status); } && | |
b4e70030 JB |
19229 | { ac_try='test -z "$ac_c_werror_flag" |
19230 | || test ! -s conftest.err' | |
bec39cab AC |
19231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19232 | (eval $ac_try) 2>&5 | |
19233 | ac_status=$? | |
19234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19235 | (exit $ac_status); }; } && | |
19236 | { ac_try='test -s conftest.$ac_objext' | |
19237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19238 | (eval $ac_try) 2>&5 | |
19239 | ac_status=$? | |
19240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19241 | (exit $ac_status); }; }; then | |
a3828db0 | 19242 | gdb_cv_have_ptrace_getfpxregs=yes |
451928c5 | 19243 | else |
bec39cab AC |
19244 | echo "$as_me: failed program was:" >&5 |
19245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19246 | ||
b4e70030 | 19247 | gdb_cv_have_ptrace_getfpxregs=no |
451928c5 | 19248 | fi |
bec39cab | 19249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
19250 | fi |
19251 | ||
b4e70030 JB |
19252 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
19253 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 | |
a3828db0 | 19254 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
60ca704f SE |
19255 | |
19256 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19257 | #define HAVE_PTRACE_GETFPXREGS 1 |
bec39cab | 19258 | _ACEOF |
451928c5 | 19259 | |
97bf5e38 | 19260 | fi |
451928c5 | 19261 | |
a3828db0 | 19262 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
b4e70030 JB |
19263 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
19264 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 | |
a3828db0 | 19265 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then |
bec39cab | 19266 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 19267 | else |
bec39cab AC |
19268 | cat >conftest.$ac_ext <<_ACEOF |
19269 | /* confdefs.h. */ | |
19270 | _ACEOF | |
19271 | cat confdefs.h >>conftest.$ac_ext | |
19272 | cat >>conftest.$ac_ext <<_ACEOF | |
19273 | /* end confdefs.h. */ | |
a3828db0 MK |
19274 | #include <sys/types.h> |
19275 | #include <sys/ptrace.h> | |
bec39cab AC |
19276 | int |
19277 | main () | |
19278 | { | |
a3828db0 | 19279 | PT_GETDBREGS; |
bec39cab AC |
19280 | ; |
19281 | return 0; | |
19282 | } | |
19283 | _ACEOF | |
19284 | rm -f conftest.$ac_objext | |
19285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19286 | (eval $ac_compile) 2>conftest.er1 | |
19287 | ac_status=$? | |
19288 | grep -v '^ *+' conftest.er1 >conftest.err | |
19289 | rm -f conftest.er1 | |
19290 | cat conftest.err >&5 | |
19291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19292 | (exit $ac_status); } && | |
b4e70030 JB |
19293 | { ac_try='test -z "$ac_c_werror_flag" |
19294 | || test ! -s conftest.err' | |
bec39cab AC |
19295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19296 | (eval $ac_try) 2>&5 | |
19297 | ac_status=$? | |
19298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19299 | (exit $ac_status); }; } && | |
19300 | { ac_try='test -s conftest.$ac_objext' | |
19301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19302 | (eval $ac_try) 2>&5 | |
19303 | ac_status=$? | |
19304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19305 | (exit $ac_status); }; }; then | |
a3828db0 | 19306 | gdb_cv_have_pt_getdbregs=yes |
3862412b | 19307 | else |
bec39cab AC |
19308 | echo "$as_me: failed program was:" >&5 |
19309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19310 | ||
b4e70030 | 19311 | gdb_cv_have_pt_getdbregs=no |
3862412b | 19312 | fi |
bec39cab | 19313 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
19314 | fi |
19315 | ||
b4e70030 JB |
19316 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
19317 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 | |
a3828db0 | 19318 | if test $gdb_cv_have_pt_getdbregs = yes; then |
60ca704f SE |
19319 | |
19320 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19321 | #define HAVE_PT_GETDBREGS 1 |
bec39cab | 19322 | _ACEOF |
3862412b | 19323 | |
97bf5e38 | 19324 | fi |
3862412b | 19325 | |
a3828db0 | 19326 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
b4e70030 JB |
19327 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
19328 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 | |
a3828db0 | 19329 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then |
bec39cab | 19330 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 19331 | else |
bec39cab AC |
19332 | cat >conftest.$ac_ext <<_ACEOF |
19333 | /* confdefs.h. */ | |
19334 | _ACEOF | |
19335 | cat confdefs.h >>conftest.$ac_ext | |
19336 | cat >>conftest.$ac_ext <<_ACEOF | |
19337 | /* end confdefs.h. */ | |
a3828db0 MK |
19338 | #include <sys/types.h> |
19339 | #include <sys/ptrace.h> | |
bec39cab AC |
19340 | int |
19341 | main () | |
19342 | { | |
a3828db0 | 19343 | PT_GETXMMREGS; |
bec39cab AC |
19344 | ; |
19345 | return 0; | |
19346 | } | |
19347 | _ACEOF | |
19348 | rm -f conftest.$ac_objext | |
19349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19350 | (eval $ac_compile) 2>conftest.er1 | |
19351 | ac_status=$? | |
19352 | grep -v '^ *+' conftest.er1 >conftest.err | |
19353 | rm -f conftest.er1 | |
19354 | cat conftest.err >&5 | |
19355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19356 | (exit $ac_status); } && | |
b4e70030 JB |
19357 | { ac_try='test -z "$ac_c_werror_flag" |
19358 | || test ! -s conftest.err' | |
bec39cab AC |
19359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19360 | (eval $ac_try) 2>&5 | |
19361 | ac_status=$? | |
19362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19363 | (exit $ac_status); }; } && | |
19364 | { ac_try='test -s conftest.$ac_objext' | |
19365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19366 | (eval $ac_try) 2>&5 | |
19367 | ac_status=$? | |
19368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19369 | (exit $ac_status); }; }; then | |
a3828db0 | 19370 | gdb_cv_have_pt_getxmmregs=yes |
3862412b | 19371 | else |
bec39cab AC |
19372 | echo "$as_me: failed program was:" >&5 |
19373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19374 | ||
b4e70030 | 19375 | gdb_cv_have_pt_getxmmregs=no |
3862412b | 19376 | fi |
bec39cab | 19377 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
19378 | fi |
19379 | ||
b4e70030 JB |
19380 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
19381 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 | |
a3828db0 | 19382 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
60ca704f SE |
19383 | |
19384 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19385 | #define HAVE_PT_GETXMMREGS 1 |
bec39cab | 19386 | _ACEOF |
3862412b | 19387 | |
97bf5e38 | 19388 | fi |
3862412b | 19389 | |
eb368090 | 19390 | # Detect which type of /proc is in use, such as for Unixware or Solaris. |
97bf5e38 MK |
19391 | |
19392 | if test "${target}" = "${host}"; then | |
19393 | case "${host}" in | |
97bf5e38 | 19394 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
60ca704f SE |
19395 | |
19396 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19397 | #define NEW_PROC_API 1 |
bec39cab | 19398 | _ACEOF |
97bf5e38 MK |
19399 | |
19400 | ;; | |
0bbc026e | 19401 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]) |
60ca704f SE |
19402 | |
19403 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19404 | #define NEW_PROC_API 1 |
bec39cab | 19405 | _ACEOF |
c960c18f AC |
19406 | |
19407 | ;; | |
19408 | mips-sgi-irix5*) | |
19409 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. | |
60ca704f SE |
19410 | |
19411 | cat >>confdefs.h <<\_ACEOF | |
c960c18f | 19412 | #define _KMEMUSER 1 |
bec39cab | 19413 | _ACEOF |
97bf5e38 MK |
19414 | |
19415 | ;; | |
19416 | esac | |
19417 | fi | |
19418 | ||
19419 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
b4e70030 JB |
19420 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
19421 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19422 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then |
19423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19424 | else | |
19425 | cat >conftest.$ac_ext <<_ACEOF | |
19426 | /* confdefs.h. */ | |
19427 | _ACEOF | |
19428 | cat confdefs.h >>conftest.$ac_ext | |
19429 | cat >>conftest.$ac_ext <<_ACEOF | |
19430 | /* end confdefs.h. */ | |
596c9d4b KB |
19431 | |
19432 | #define _SYSCALL32 | |
19433 | #include <sys/procfs.h> | |
bec39cab AC |
19434 | int |
19435 | main () | |
19436 | { | |
97bf5e38 | 19437 | pstatus_t avar |
bec39cab AC |
19438 | ; |
19439 | return 0; | |
19440 | } | |
19441 | _ACEOF | |
19442 | rm -f conftest.$ac_objext | |
19443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19444 | (eval $ac_compile) 2>conftest.er1 | |
19445 | ac_status=$? | |
19446 | grep -v '^ *+' conftest.er1 >conftest.err | |
19447 | rm -f conftest.er1 | |
19448 | cat conftest.err >&5 | |
19449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19450 | (exit $ac_status); } && | |
b4e70030 JB |
19451 | { ac_try='test -z "$ac_c_werror_flag" |
19452 | || test ! -s conftest.err' | |
bec39cab AC |
19453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19454 | (eval $ac_try) 2>&5 | |
19455 | ac_status=$? | |
19456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19457 | (exit $ac_status); }; } && | |
19458 | { ac_try='test -s conftest.$ac_objext' | |
19459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19460 | (eval $ac_try) 2>&5 | |
19461 | ac_status=$? | |
19462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19463 | (exit $ac_status); }; }; then | |
97bf5e38 | 19464 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
596c9d4b | 19465 | else |
bec39cab AC |
19466 | echo "$as_me: failed program was:" >&5 |
19467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19468 | ||
b4e70030 | 19469 | bfd_cv_have_sys_procfs_type_pstatus_t=no |
bec39cab | 19470 | |
596c9d4b | 19471 | fi |
bec39cab | 19472 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
19473 | fi |
19474 | ||
97bf5e38 | 19475 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
bec39cab AC |
19476 | |
19477 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19478 | #define HAVE_PSTATUS_T 1 |
bec39cab | 19479 | _ACEOF |
596c9d4b KB |
19480 | |
19481 | fi | |
b4e70030 JB |
19482 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
19483 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
596c9d4b | 19484 | |
b4e70030 JB |
19485 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
19486 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19487 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then |
19488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 19489 | else |
bec39cab AC |
19490 | cat >conftest.$ac_ext <<_ACEOF |
19491 | /* confdefs.h. */ | |
19492 | _ACEOF | |
19493 | cat confdefs.h >>conftest.$ac_ext | |
19494 | cat >>conftest.$ac_ext <<_ACEOF | |
19495 | /* end confdefs.h. */ | |
596c9d4b KB |
19496 | |
19497 | #define _SYSCALL32 | |
19498 | #include <sys/procfs.h> | |
bec39cab AC |
19499 | int |
19500 | main () | |
19501 | { | |
97bf5e38 | 19502 | prrun_t avar |
bec39cab AC |
19503 | ; |
19504 | return 0; | |
19505 | } | |
19506 | _ACEOF | |
19507 | rm -f conftest.$ac_objext | |
19508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19509 | (eval $ac_compile) 2>conftest.er1 | |
19510 | ac_status=$? | |
19511 | grep -v '^ *+' conftest.er1 >conftest.err | |
19512 | rm -f conftest.er1 | |
19513 | cat conftest.err >&5 | |
19514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19515 | (exit $ac_status); } && | |
b4e70030 JB |
19516 | { ac_try='test -z "$ac_c_werror_flag" |
19517 | || test ! -s conftest.err' | |
bec39cab AC |
19518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19519 | (eval $ac_try) 2>&5 | |
19520 | ac_status=$? | |
19521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19522 | (exit $ac_status); }; } && | |
19523 | { ac_try='test -s conftest.$ac_objext' | |
19524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19525 | (eval $ac_try) 2>&5 | |
19526 | ac_status=$? | |
19527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19528 | (exit $ac_status); }; }; then | |
97bf5e38 | 19529 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
596c9d4b | 19530 | else |
bec39cab AC |
19531 | echo "$as_me: failed program was:" >&5 |
19532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19533 | ||
b4e70030 | 19534 | bfd_cv_have_sys_procfs_type_prrun_t=no |
bec39cab | 19535 | |
596c9d4b | 19536 | fi |
bec39cab | 19537 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
19538 | fi |
19539 | ||
97bf5e38 | 19540 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
bec39cab AC |
19541 | |
19542 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19543 | #define HAVE_PRRUN_T 1 |
bec39cab | 19544 | _ACEOF |
596c9d4b KB |
19545 | |
19546 | fi | |
b4e70030 JB |
19547 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
19548 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 | |
596c9d4b | 19549 | |
b4e70030 JB |
19550 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
19551 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19552 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then |
19553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 19554 | else |
bec39cab AC |
19555 | cat >conftest.$ac_ext <<_ACEOF |
19556 | /* confdefs.h. */ | |
19557 | _ACEOF | |
19558 | cat confdefs.h >>conftest.$ac_ext | |
19559 | cat >>conftest.$ac_ext <<_ACEOF | |
19560 | /* end confdefs.h. */ | |
596c9d4b KB |
19561 | |
19562 | #define _SYSCALL32 | |
19563 | #include <sys/procfs.h> | |
bec39cab AC |
19564 | int |
19565 | main () | |
19566 | { | |
97bf5e38 | 19567 | gregset_t avar |
bec39cab AC |
19568 | ; |
19569 | return 0; | |
19570 | } | |
19571 | _ACEOF | |
19572 | rm -f conftest.$ac_objext | |
19573 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19574 | (eval $ac_compile) 2>conftest.er1 | |
19575 | ac_status=$? | |
19576 | grep -v '^ *+' conftest.er1 >conftest.err | |
19577 | rm -f conftest.er1 | |
19578 | cat conftest.err >&5 | |
19579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19580 | (exit $ac_status); } && | |
b4e70030 JB |
19581 | { ac_try='test -z "$ac_c_werror_flag" |
19582 | || test ! -s conftest.err' | |
bec39cab AC |
19583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19584 | (eval $ac_try) 2>&5 | |
19585 | ac_status=$? | |
19586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19587 | (exit $ac_status); }; } && | |
19588 | { ac_try='test -s conftest.$ac_objext' | |
19589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19590 | (eval $ac_try) 2>&5 | |
19591 | ac_status=$? | |
19592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19593 | (exit $ac_status); }; }; then | |
97bf5e38 | 19594 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
596c9d4b | 19595 | else |
bec39cab AC |
19596 | echo "$as_me: failed program was:" >&5 |
19597 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19598 | ||
b4e70030 | 19599 | bfd_cv_have_sys_procfs_type_gregset_t=no |
bec39cab | 19600 | |
596c9d4b | 19601 | fi |
bec39cab | 19602 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
19603 | fi |
19604 | ||
97bf5e38 | 19605 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
bec39cab AC |
19606 | |
19607 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19608 | #define HAVE_GREGSET_T 1 |
bec39cab | 19609 | _ACEOF |
596c9d4b KB |
19610 | |
19611 | fi | |
b4e70030 JB |
19612 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
19613 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 | |
451928c5 | 19614 | |
b4e70030 JB |
19615 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
19616 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19617 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then |
19618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d84dd0c5 | 19619 | else |
bec39cab AC |
19620 | cat >conftest.$ac_ext <<_ACEOF |
19621 | /* confdefs.h. */ | |
19622 | _ACEOF | |
19623 | cat confdefs.h >>conftest.$ac_ext | |
19624 | cat >>conftest.$ac_ext <<_ACEOF | |
19625 | /* end confdefs.h. */ | |
97bf5e38 MK |
19626 | |
19627 | #define _SYSCALL32 | |
d84dd0c5 | 19628 | #include <sys/procfs.h> |
bec39cab AC |
19629 | int |
19630 | main () | |
19631 | { | |
97bf5e38 | 19632 | fpregset_t avar |
bec39cab AC |
19633 | ; |
19634 | return 0; | |
19635 | } | |
19636 | _ACEOF | |
19637 | rm -f conftest.$ac_objext | |
19638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19639 | (eval $ac_compile) 2>conftest.er1 | |
19640 | ac_status=$? | |
19641 | grep -v '^ *+' conftest.er1 >conftest.err | |
19642 | rm -f conftest.er1 | |
19643 | cat conftest.err >&5 | |
19644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19645 | (exit $ac_status); } && | |
b4e70030 JB |
19646 | { ac_try='test -z "$ac_c_werror_flag" |
19647 | || test ! -s conftest.err' | |
bec39cab AC |
19648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19649 | (eval $ac_try) 2>&5 | |
19650 | ac_status=$? | |
19651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19652 | (exit $ac_status); }; } && | |
19653 | { ac_try='test -s conftest.$ac_objext' | |
19654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19655 | (eval $ac_try) 2>&5 | |
19656 | ac_status=$? | |
19657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19658 | (exit $ac_status); }; }; then | |
97bf5e38 | 19659 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
d84dd0c5 | 19660 | else |
bec39cab AC |
19661 | echo "$as_me: failed program was:" >&5 |
19662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19663 | ||
b4e70030 | 19664 | bfd_cv_have_sys_procfs_type_fpregset_t=no |
bec39cab | 19665 | |
d84dd0c5 | 19666 | fi |
bec39cab | 19667 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d84dd0c5 MK |
19668 | fi |
19669 | ||
97bf5e38 | 19670 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
bec39cab AC |
19671 | |
19672 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19673 | #define HAVE_FPREGSET_T 1 |
bec39cab | 19674 | _ACEOF |
d84dd0c5 | 19675 | |
97bf5e38 | 19676 | fi |
b4e70030 JB |
19677 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
19678 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 | |
d84dd0c5 | 19679 | |
b4e70030 JB |
19680 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
19681 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19682 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then |
19683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19684 | else |
bec39cab AC |
19685 | cat >conftest.$ac_ext <<_ACEOF |
19686 | /* confdefs.h. */ | |
19687 | _ACEOF | |
19688 | cat confdefs.h >>conftest.$ac_ext | |
19689 | cat >>conftest.$ac_ext <<_ACEOF | |
19690 | /* end confdefs.h. */ | |
c906108c | 19691 | |
97bf5e38 MK |
19692 | #define _SYSCALL32 |
19693 | #include <sys/procfs.h> | |
bec39cab AC |
19694 | int |
19695 | main () | |
19696 | { | |
97bf5e38 | 19697 | prgregset_t avar |
bec39cab AC |
19698 | ; |
19699 | return 0; | |
19700 | } | |
19701 | _ACEOF | |
19702 | rm -f conftest.$ac_objext | |
19703 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19704 | (eval $ac_compile) 2>conftest.er1 | |
19705 | ac_status=$? | |
19706 | grep -v '^ *+' conftest.er1 >conftest.err | |
19707 | rm -f conftest.er1 | |
19708 | cat conftest.err >&5 | |
19709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19710 | (exit $ac_status); } && | |
b4e70030 JB |
19711 | { ac_try='test -z "$ac_c_werror_flag" |
19712 | || test ! -s conftest.err' | |
bec39cab AC |
19713 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19714 | (eval $ac_try) 2>&5 | |
19715 | ac_status=$? | |
19716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19717 | (exit $ac_status); }; } && | |
19718 | { ac_try='test -s conftest.$ac_objext' | |
19719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19720 | (eval $ac_try) 2>&5 | |
19721 | ac_status=$? | |
19722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19723 | (exit $ac_status); }; }; then | |
97bf5e38 | 19724 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
c906108c | 19725 | else |
bec39cab AC |
19726 | echo "$as_me: failed program was:" >&5 |
19727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19728 | ||
b4e70030 | 19729 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
bec39cab | 19730 | |
c906108c | 19731 | fi |
bec39cab | 19732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19733 | fi |
19734 | ||
97bf5e38 | 19735 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
bec39cab AC |
19736 | |
19737 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19738 | #define HAVE_PRGREGSET_T 1 |
bec39cab | 19739 | _ACEOF |
c906108c | 19740 | |
97bf5e38 | 19741 | fi |
b4e70030 JB |
19742 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
19743 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 | |
c906108c | 19744 | |
b4e70030 JB |
19745 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
19746 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19747 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then |
19748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19749 | else |
bec39cab AC |
19750 | cat >conftest.$ac_ext <<_ACEOF |
19751 | /* confdefs.h. */ | |
19752 | _ACEOF | |
19753 | cat confdefs.h >>conftest.$ac_ext | |
19754 | cat >>conftest.$ac_ext <<_ACEOF | |
19755 | /* end confdefs.h. */ | |
97bf5e38 MK |
19756 | |
19757 | #define _SYSCALL32 | |
19758 | #include <sys/procfs.h> | |
bec39cab AC |
19759 | int |
19760 | main () | |
19761 | { | |
97bf5e38 | 19762 | prfpregset_t avar |
bec39cab AC |
19763 | ; |
19764 | return 0; | |
19765 | } | |
19766 | _ACEOF | |
19767 | rm -f conftest.$ac_objext | |
19768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19769 | (eval $ac_compile) 2>conftest.er1 | |
19770 | ac_status=$? | |
19771 | grep -v '^ *+' conftest.er1 >conftest.err | |
19772 | rm -f conftest.er1 | |
19773 | cat conftest.err >&5 | |
19774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19775 | (exit $ac_status); } && | |
b4e70030 JB |
19776 | { ac_try='test -z "$ac_c_werror_flag" |
19777 | || test ! -s conftest.err' | |
bec39cab AC |
19778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19779 | (eval $ac_try) 2>&5 | |
19780 | ac_status=$? | |
19781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19782 | (exit $ac_status); }; } && | |
19783 | { ac_try='test -s conftest.$ac_objext' | |
19784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19785 | (eval $ac_try) 2>&5 | |
19786 | ac_status=$? | |
19787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19788 | (exit $ac_status); }; }; then | |
97bf5e38 | 19789 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
d45fe813 | 19790 | else |
bec39cab AC |
19791 | echo "$as_me: failed program was:" >&5 |
19792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19793 | ||
b4e70030 | 19794 | bfd_cv_have_sys_procfs_type_prfpregset_t=no |
bec39cab | 19795 | |
d45fe813 | 19796 | fi |
bec39cab | 19797 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19798 | fi |
19799 | ||
97bf5e38 | 19800 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
19801 | |
19802 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19803 | #define HAVE_PRFPREGSET_T 1 |
bec39cab | 19804 | _ACEOF |
d45fe813 | 19805 | |
97bf5e38 | 19806 | fi |
b4e70030 JB |
19807 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
19808 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 | |
d45fe813 | 19809 | |
b4e70030 JB |
19810 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
19811 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19812 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then |
19813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19814 | else |
bec39cab AC |
19815 | cat >conftest.$ac_ext <<_ACEOF |
19816 | /* confdefs.h. */ | |
19817 | _ACEOF | |
19818 | cat confdefs.h >>conftest.$ac_ext | |
19819 | cat >>conftest.$ac_ext <<_ACEOF | |
19820 | /* end confdefs.h. */ | |
97bf5e38 MK |
19821 | |
19822 | #define _SYSCALL32 | |
19823 | #include <sys/procfs.h> | |
bec39cab AC |
19824 | int |
19825 | main () | |
19826 | { | |
97bf5e38 | 19827 | prgregset32_t avar |
bec39cab AC |
19828 | ; |
19829 | return 0; | |
19830 | } | |
19831 | _ACEOF | |
19832 | rm -f conftest.$ac_objext | |
19833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19834 | (eval $ac_compile) 2>conftest.er1 | |
19835 | ac_status=$? | |
19836 | grep -v '^ *+' conftest.er1 >conftest.err | |
19837 | rm -f conftest.er1 | |
19838 | cat conftest.err >&5 | |
19839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19840 | (exit $ac_status); } && | |
b4e70030 JB |
19841 | { ac_try='test -z "$ac_c_werror_flag" |
19842 | || test ! -s conftest.err' | |
bec39cab AC |
19843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19844 | (eval $ac_try) 2>&5 | |
19845 | ac_status=$? | |
19846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19847 | (exit $ac_status); }; } && | |
19848 | { ac_try='test -s conftest.$ac_objext' | |
19849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19850 | (eval $ac_try) 2>&5 | |
19851 | ac_status=$? | |
19852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19853 | (exit $ac_status); }; }; then | |
97bf5e38 | 19854 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
d45fe813 | 19855 | else |
bec39cab AC |
19856 | echo "$as_me: failed program was:" >&5 |
19857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19858 | ||
b4e70030 | 19859 | bfd_cv_have_sys_procfs_type_prgregset32_t=no |
bec39cab | 19860 | |
d45fe813 | 19861 | fi |
bec39cab | 19862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19863 | fi |
19864 | ||
97bf5e38 | 19865 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
bec39cab AC |
19866 | |
19867 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19868 | #define HAVE_PRGREGSET32_T 1 |
bec39cab | 19869 | _ACEOF |
d45fe813 | 19870 | |
97bf5e38 | 19871 | fi |
b4e70030 JB |
19872 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
19873 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 | |
d45fe813 | 19874 | |
b4e70030 JB |
19875 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
19876 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19877 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then |
19878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19879 | else |
bec39cab AC |
19880 | cat >conftest.$ac_ext <<_ACEOF |
19881 | /* confdefs.h. */ | |
19882 | _ACEOF | |
19883 | cat confdefs.h >>conftest.$ac_ext | |
19884 | cat >>conftest.$ac_ext <<_ACEOF | |
19885 | /* end confdefs.h. */ | |
97bf5e38 MK |
19886 | |
19887 | #define _SYSCALL32 | |
19888 | #include <sys/procfs.h> | |
bec39cab AC |
19889 | int |
19890 | main () | |
19891 | { | |
97bf5e38 | 19892 | prfpregset32_t avar |
bec39cab AC |
19893 | ; |
19894 | return 0; | |
19895 | } | |
19896 | _ACEOF | |
19897 | rm -f conftest.$ac_objext | |
19898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19899 | (eval $ac_compile) 2>conftest.er1 | |
19900 | ac_status=$? | |
19901 | grep -v '^ *+' conftest.er1 >conftest.err | |
19902 | rm -f conftest.er1 | |
19903 | cat conftest.err >&5 | |
19904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19905 | (exit $ac_status); } && | |
b4e70030 JB |
19906 | { ac_try='test -z "$ac_c_werror_flag" |
19907 | || test ! -s conftest.err' | |
bec39cab AC |
19908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19909 | (eval $ac_try) 2>&5 | |
19910 | ac_status=$? | |
19911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19912 | (exit $ac_status); }; } && | |
19913 | { ac_try='test -s conftest.$ac_objext' | |
19914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19915 | (eval $ac_try) 2>&5 | |
19916 | ac_status=$? | |
19917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19918 | (exit $ac_status); }; }; then | |
97bf5e38 | 19919 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
d45fe813 | 19920 | else |
bec39cab AC |
19921 | echo "$as_me: failed program was:" >&5 |
19922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19923 | ||
b4e70030 | 19924 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no |
bec39cab | 19925 | |
d45fe813 | 19926 | fi |
bec39cab | 19927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19928 | fi |
19929 | ||
97bf5e38 | 19930 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
bec39cab AC |
19931 | |
19932 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19933 | #define HAVE_PRFPREGSET32_T 1 |
bec39cab | 19934 | _ACEOF |
d45fe813 | 19935 | |
97bf5e38 | 19936 | fi |
b4e70030 JB |
19937 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
19938 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 | |
d45fe813 | 19939 | |
b4e70030 JB |
19940 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
19941 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19942 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then |
19943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19944 | else |
bec39cab AC |
19945 | cat >conftest.$ac_ext <<_ACEOF |
19946 | /* confdefs.h. */ | |
19947 | _ACEOF | |
19948 | cat confdefs.h >>conftest.$ac_ext | |
19949 | cat >>conftest.$ac_ext <<_ACEOF | |
19950 | /* end confdefs.h. */ | |
97bf5e38 | 19951 | |
d45fe813 | 19952 | #define _SYSCALL32 |
97bf5e38 | 19953 | #include <sys/procfs.h> |
bec39cab AC |
19954 | int |
19955 | main () | |
19956 | { | |
97bf5e38 | 19957 | lwpid_t avar |
bec39cab AC |
19958 | ; |
19959 | return 0; | |
19960 | } | |
19961 | _ACEOF | |
19962 | rm -f conftest.$ac_objext | |
19963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19964 | (eval $ac_compile) 2>conftest.er1 | |
19965 | ac_status=$? | |
19966 | grep -v '^ *+' conftest.er1 >conftest.err | |
19967 | rm -f conftest.er1 | |
19968 | cat conftest.err >&5 | |
19969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19970 | (exit $ac_status); } && | |
b4e70030 JB |
19971 | { ac_try='test -z "$ac_c_werror_flag" |
19972 | || test ! -s conftest.err' | |
bec39cab AC |
19973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19974 | (eval $ac_try) 2>&5 | |
19975 | ac_status=$? | |
19976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19977 | (exit $ac_status); }; } && | |
19978 | { ac_try='test -s conftest.$ac_objext' | |
19979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19980 | (eval $ac_try) 2>&5 | |
19981 | ac_status=$? | |
19982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19983 | (exit $ac_status); }; }; then | |
97bf5e38 | 19984 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
d45fe813 | 19985 | else |
bec39cab AC |
19986 | echo "$as_me: failed program was:" >&5 |
19987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19988 | ||
b4e70030 | 19989 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
bec39cab | 19990 | |
d45fe813 | 19991 | fi |
bec39cab | 19992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19993 | fi |
19994 | ||
97bf5e38 | 19995 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
bec39cab AC |
19996 | |
19997 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19998 | #define HAVE_LWPID_T 1 |
bec39cab | 19999 | _ACEOF |
d45fe813 | 20000 | |
97bf5e38 | 20001 | fi |
b4e70030 JB |
20002 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
20003 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 | |
c906108c | 20004 | |
b4e70030 JB |
20005 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
20006 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20007 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then |
20008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20009 | else |
bec39cab AC |
20010 | cat >conftest.$ac_ext <<_ACEOF |
20011 | /* confdefs.h. */ | |
20012 | _ACEOF | |
20013 | cat confdefs.h >>conftest.$ac_ext | |
20014 | cat >>conftest.$ac_ext <<_ACEOF | |
20015 | /* end confdefs.h. */ | |
c906108c | 20016 | |
97bf5e38 MK |
20017 | #define _SYSCALL32 |
20018 | #include <sys/procfs.h> | |
bec39cab AC |
20019 | int |
20020 | main () | |
20021 | { | |
97bf5e38 | 20022 | psaddr_t avar |
bec39cab AC |
20023 | ; |
20024 | return 0; | |
20025 | } | |
20026 | _ACEOF | |
20027 | rm -f conftest.$ac_objext | |
20028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20029 | (eval $ac_compile) 2>conftest.er1 | |
20030 | ac_status=$? | |
20031 | grep -v '^ *+' conftest.er1 >conftest.err | |
20032 | rm -f conftest.er1 | |
20033 | cat conftest.err >&5 | |
20034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20035 | (exit $ac_status); } && | |
b4e70030 JB |
20036 | { ac_try='test -z "$ac_c_werror_flag" |
20037 | || test ! -s conftest.err' | |
bec39cab AC |
20038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20039 | (eval $ac_try) 2>&5 | |
20040 | ac_status=$? | |
20041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20042 | (exit $ac_status); }; } && | |
20043 | { ac_try='test -s conftest.$ac_objext' | |
20044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20045 | (eval $ac_try) 2>&5 | |
20046 | ac_status=$? | |
20047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20048 | (exit $ac_status); }; }; then | |
97bf5e38 | 20049 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
c906108c | 20050 | else |
bec39cab AC |
20051 | echo "$as_me: failed program was:" >&5 |
20052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20053 | ||
b4e70030 | 20054 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
bec39cab | 20055 | |
c906108c | 20056 | fi |
bec39cab | 20057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20058 | fi |
20059 | ||
97bf5e38 | 20060 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
bec39cab AC |
20061 | |
20062 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20063 | #define HAVE_PSADDR_T 1 |
bec39cab | 20064 | _ACEOF |
c906108c | 20065 | |
97bf5e38 | 20066 | fi |
b4e70030 JB |
20067 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
20068 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 | |
c906108c | 20069 | |
b4e70030 JB |
20070 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
20071 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20072 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then |
20073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20074 | else |
bec39cab AC |
20075 | cat >conftest.$ac_ext <<_ACEOF |
20076 | /* confdefs.h. */ | |
20077 | _ACEOF | |
20078 | cat confdefs.h >>conftest.$ac_ext | |
20079 | cat >>conftest.$ac_ext <<_ACEOF | |
20080 | /* end confdefs.h. */ | |
c906108c | 20081 | |
97bf5e38 MK |
20082 | #define _SYSCALL32 |
20083 | #include <sys/procfs.h> | |
bec39cab AC |
20084 | int |
20085 | main () | |
20086 | { | |
97bf5e38 | 20087 | prsysent_t avar |
bec39cab AC |
20088 | ; |
20089 | return 0; | |
20090 | } | |
20091 | _ACEOF | |
20092 | rm -f conftest.$ac_objext | |
20093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20094 | (eval $ac_compile) 2>conftest.er1 | |
20095 | ac_status=$? | |
20096 | grep -v '^ *+' conftest.er1 >conftest.err | |
20097 | rm -f conftest.er1 | |
20098 | cat conftest.err >&5 | |
20099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20100 | (exit $ac_status); } && | |
b4e70030 JB |
20101 | { ac_try='test -z "$ac_c_werror_flag" |
20102 | || test ! -s conftest.err' | |
bec39cab AC |
20103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20104 | (eval $ac_try) 2>&5 | |
20105 | ac_status=$? | |
20106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20107 | (exit $ac_status); }; } && | |
20108 | { ac_try='test -s conftest.$ac_objext' | |
20109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20110 | (eval $ac_try) 2>&5 | |
20111 | ac_status=$? | |
20112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20113 | (exit $ac_status); }; }; then | |
97bf5e38 | 20114 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
c906108c | 20115 | else |
bec39cab AC |
20116 | echo "$as_me: failed program was:" >&5 |
20117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20118 | ||
b4e70030 | 20119 | bfd_cv_have_sys_procfs_type_prsysent_t=no |
bec39cab | 20120 | |
c906108c | 20121 | fi |
bec39cab | 20122 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20123 | fi |
20124 | ||
97bf5e38 | 20125 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
bec39cab AC |
20126 | |
20127 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20128 | #define HAVE_PRSYSENT_T 1 |
bec39cab | 20129 | _ACEOF |
c906108c | 20130 | |
97bf5e38 | 20131 | fi |
b4e70030 JB |
20132 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
20133 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 | |
c906108c | 20134 | |
b4e70030 JB |
20135 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
20136 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20137 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then |
20138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20139 | else |
bec39cab AC |
20140 | cat >conftest.$ac_ext <<_ACEOF |
20141 | /* confdefs.h. */ | |
20142 | _ACEOF | |
20143 | cat confdefs.h >>conftest.$ac_ext | |
20144 | cat >>conftest.$ac_ext <<_ACEOF | |
20145 | /* end confdefs.h. */ | |
c906108c | 20146 | |
97bf5e38 MK |
20147 | #define _SYSCALL32 |
20148 | #include <sys/procfs.h> | |
bec39cab AC |
20149 | int |
20150 | main () | |
20151 | { | |
97bf5e38 | 20152 | pr_sigset_t avar |
bec39cab AC |
20153 | ; |
20154 | return 0; | |
20155 | } | |
20156 | _ACEOF | |
20157 | rm -f conftest.$ac_objext | |
20158 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20159 | (eval $ac_compile) 2>conftest.er1 | |
20160 | ac_status=$? | |
20161 | grep -v '^ *+' conftest.er1 >conftest.err | |
20162 | rm -f conftest.er1 | |
20163 | cat conftest.err >&5 | |
20164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20165 | (exit $ac_status); } && | |
b4e70030 JB |
20166 | { ac_try='test -z "$ac_c_werror_flag" |
20167 | || test ! -s conftest.err' | |
bec39cab AC |
20168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20169 | (eval $ac_try) 2>&5 | |
20170 | ac_status=$? | |
20171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20172 | (exit $ac_status); }; } && | |
20173 | { ac_try='test -s conftest.$ac_objext' | |
20174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20175 | (eval $ac_try) 2>&5 | |
20176 | ac_status=$? | |
20177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20178 | (exit $ac_status); }; }; then | |
97bf5e38 | 20179 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
c906108c | 20180 | else |
bec39cab AC |
20181 | echo "$as_me: failed program was:" >&5 |
20182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20183 | ||
b4e70030 | 20184 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no |
bec39cab | 20185 | |
c906108c | 20186 | fi |
bec39cab | 20187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20188 | fi |
20189 | ||
97bf5e38 | 20190 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
bec39cab AC |
20191 | |
20192 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20193 | #define HAVE_PR_SIGSET_T 1 |
bec39cab | 20194 | _ACEOF |
c906108c | 20195 | |
97bf5e38 | 20196 | fi |
b4e70030 JB |
20197 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
20198 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 | |
c906108c | 20199 | |
b4e70030 JB |
20200 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
20201 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20202 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then |
20203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20204 | else |
bec39cab AC |
20205 | cat >conftest.$ac_ext <<_ACEOF |
20206 | /* confdefs.h. */ | |
20207 | _ACEOF | |
20208 | cat confdefs.h >>conftest.$ac_ext | |
20209 | cat >>conftest.$ac_ext <<_ACEOF | |
20210 | /* end confdefs.h. */ | |
c906108c | 20211 | |
97bf5e38 MK |
20212 | #define _SYSCALL32 |
20213 | #include <sys/procfs.h> | |
bec39cab AC |
20214 | int |
20215 | main () | |
20216 | { | |
97bf5e38 | 20217 | pr_sigaction64_t avar |
bec39cab AC |
20218 | ; |
20219 | return 0; | |
20220 | } | |
20221 | _ACEOF | |
20222 | rm -f conftest.$ac_objext | |
20223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20224 | (eval $ac_compile) 2>conftest.er1 | |
20225 | ac_status=$? | |
20226 | grep -v '^ *+' conftest.er1 >conftest.err | |
20227 | rm -f conftest.er1 | |
20228 | cat conftest.err >&5 | |
20229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20230 | (exit $ac_status); } && | |
b4e70030 JB |
20231 | { ac_try='test -z "$ac_c_werror_flag" |
20232 | || test ! -s conftest.err' | |
bec39cab AC |
20233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20234 | (eval $ac_try) 2>&5 | |
20235 | ac_status=$? | |
20236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20237 | (exit $ac_status); }; } && | |
20238 | { ac_try='test -s conftest.$ac_objext' | |
20239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20240 | (eval $ac_try) 2>&5 | |
20241 | ac_status=$? | |
20242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20243 | (exit $ac_status); }; }; then | |
97bf5e38 | 20244 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
c906108c | 20245 | else |
bec39cab AC |
20246 | echo "$as_me: failed program was:" >&5 |
20247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20248 | ||
b4e70030 | 20249 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no |
bec39cab | 20250 | |
c906108c | 20251 | fi |
bec39cab | 20252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20253 | fi |
20254 | ||
97bf5e38 | 20255 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
bec39cab AC |
20256 | |
20257 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20258 | #define HAVE_PR_SIGACTION64_T 1 |
bec39cab | 20259 | _ACEOF |
c906108c | 20260 | |
97bf5e38 | 20261 | fi |
b4e70030 JB |
20262 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
20263 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 | |
97bf5e38 | 20264 | |
b4e70030 JB |
20265 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
20266 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20267 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then |
20268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 20269 | else |
bec39cab AC |
20270 | cat >conftest.$ac_ext <<_ACEOF |
20271 | /* confdefs.h. */ | |
20272 | _ACEOF | |
20273 | cat confdefs.h >>conftest.$ac_ext | |
20274 | cat >>conftest.$ac_ext <<_ACEOF | |
20275 | /* end confdefs.h. */ | |
97bf5e38 MK |
20276 | |
20277 | #define _SYSCALL32 | |
20278 | #include <sys/procfs.h> | |
bec39cab AC |
20279 | int |
20280 | main () | |
20281 | { | |
97bf5e38 | 20282 | pr_siginfo64_t avar |
bec39cab AC |
20283 | ; |
20284 | return 0; | |
20285 | } | |
20286 | _ACEOF | |
20287 | rm -f conftest.$ac_objext | |
20288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20289 | (eval $ac_compile) 2>conftest.er1 | |
20290 | ac_status=$? | |
20291 | grep -v '^ *+' conftest.er1 >conftest.err | |
20292 | rm -f conftest.er1 | |
20293 | cat conftest.err >&5 | |
20294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20295 | (exit $ac_status); } && | |
b4e70030 JB |
20296 | { ac_try='test -z "$ac_c_werror_flag" |
20297 | || test ! -s conftest.err' | |
bec39cab AC |
20298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20299 | (eval $ac_try) 2>&5 | |
20300 | ac_status=$? | |
20301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20302 | (exit $ac_status); }; } && | |
20303 | { ac_try='test -s conftest.$ac_objext' | |
20304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20305 | (eval $ac_try) 2>&5 | |
20306 | ac_status=$? | |
20307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20308 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20309 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
20310 | else | |
bec39cab AC |
20311 | echo "$as_me: failed program was:" >&5 |
20312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20313 | ||
b4e70030 | 20314 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no |
bec39cab | 20315 | |
97bf5e38 | 20316 | fi |
bec39cab | 20317 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20318 | fi |
c906108c | 20319 | |
97bf5e38 | 20320 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
bec39cab AC |
20321 | |
20322 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20323 | #define HAVE_PR_SIGINFO64_T 1 |
bec39cab | 20324 | _ACEOF |
c906108c | 20325 | |
97bf5e38 | 20326 | fi |
b4e70030 JB |
20327 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
20328 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 | |
bec39cab AC |
20329 | |
20330 | ||
97bf5e38 MK |
20331 | |
20332 | ||
20333 | ||
97bf5e38 | 20334 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
b4e70030 JB |
20335 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
20336 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 | |
bec39cab AC |
20337 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then |
20338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
20339 | else |
20340 | if test "$cross_compiling" = yes; then | |
97bf5e38 | 20341 | gdb_cv_prfpregset_t_broken=yes |
c906108c | 20342 | else |
bec39cab AC |
20343 | cat >conftest.$ac_ext <<_ACEOF |
20344 | /* confdefs.h. */ | |
20345 | _ACEOF | |
20346 | cat confdefs.h >>conftest.$ac_ext | |
20347 | cat >>conftest.$ac_ext <<_ACEOF | |
20348 | /* end confdefs.h. */ | |
97bf5e38 MK |
20349 | #include <sys/procfs.h> |
20350 | int main () | |
20351 | { | |
20352 | if (sizeof (prfpregset_t) == sizeof (void *)) | |
20353 | return 1; | |
20354 | return 0; | |
20355 | } | |
bec39cab AC |
20356 | _ACEOF |
20357 | rm -f conftest$ac_exeext | |
20358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20359 | (eval $ac_link) 2>&5 | |
20360 | ac_status=$? | |
20361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20362 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20364 | (eval $ac_try) 2>&5 | |
20365 | ac_status=$? | |
20366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20367 | (exit $ac_status); }; }; then | |
97bf5e38 | 20368 | gdb_cv_prfpregset_t_broken=no |
c906108c | 20369 | else |
bec39cab AC |
20370 | echo "$as_me: program exited with status $ac_status" >&5 |
20371 | echo "$as_me: failed program was:" >&5 | |
20372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20373 | ||
20374 | ( exit $ac_status ) | |
20375 | gdb_cv_prfpregset_t_broken=yes | |
c906108c | 20376 | fi |
b4e70030 | 20377 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 20378 | fi |
c906108c SS |
20379 | fi |
20380 | ||
b4e70030 JB |
20381 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
20382 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 | |
97bf5e38 | 20383 | if test $gdb_cv_prfpregset_t_broken = yes; then |
60ca704f SE |
20384 | |
20385 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20386 | #define PRFPREGSET_T_BROKEN 1 |
bec39cab | 20387 | _ACEOF |
c906108c | 20388 | |
97bf5e38 MK |
20389 | fi |
20390 | fi | |
c906108c | 20391 | |
bec39cab | 20392 | |
b4e70030 JB |
20393 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 |
20394 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20395 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then |
20396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20397 | else |
bec39cab AC |
20398 | cat >conftest.$ac_ext <<_ACEOF |
20399 | /* confdefs.h. */ | |
20400 | _ACEOF | |
20401 | cat confdefs.h >>conftest.$ac_ext | |
20402 | cat >>conftest.$ac_ext <<_ACEOF | |
20403 | /* end confdefs.h. */ | |
97bf5e38 MK |
20404 | #include <unistd.h> |
20405 | #include <sys/types.h> | |
20406 | #include <sys/procfs.h> | |
20407 | ||
bec39cab AC |
20408 | int |
20409 | main () | |
20410 | { | |
97bf5e38 MK |
20411 | |
20412 | int dummy;; | |
20413 | dummy = ioctl(0, PIOCSET, &dummy); | |
bec39cab AC |
20414 | |
20415 | ; | |
20416 | return 0; | |
20417 | } | |
20418 | _ACEOF | |
20419 | rm -f conftest.$ac_objext | |
20420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20421 | (eval $ac_compile) 2>conftest.er1 | |
20422 | ac_status=$? | |
20423 | grep -v '^ *+' conftest.er1 >conftest.err | |
20424 | rm -f conftest.er1 | |
20425 | cat conftest.err >&5 | |
20426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20427 | (exit $ac_status); } && | |
b4e70030 JB |
20428 | { ac_try='test -z "$ac_c_werror_flag" |
20429 | || test ! -s conftest.err' | |
bec39cab AC |
20430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20431 | (eval $ac_try) 2>&5 | |
20432 | ac_status=$? | |
20433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20434 | (exit $ac_status); }; } && | |
20435 | { ac_try='test -s conftest.$ac_objext' | |
20436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20437 | (eval $ac_try) 2>&5 | |
20438 | ac_status=$? | |
20439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20440 | (exit $ac_status); }; }; then | |
97bf5e38 | 20441 | gdb_cv_have_procfs_piocset=yes |
c906108c | 20442 | else |
bec39cab AC |
20443 | echo "$as_me: failed program was:" >&5 |
20444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20445 | ||
b4e70030 | 20446 | gdb_cv_have_procfs_piocset=no |
c906108c | 20447 | fi |
bec39cab | 20448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20449 | fi |
97bf5e38 | 20450 | |
b4e70030 JB |
20451 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
20452 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 | |
97bf5e38 | 20453 | if test $gdb_cv_have_procfs_piocset = yes; then |
60ca704f SE |
20454 | |
20455 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20456 | #define HAVE_PROCFS_PIOCSET 1 |
bec39cab | 20457 | _ACEOF |
97bf5e38 MK |
20458 | |
20459 | fi | |
c906108c | 20460 | fi |
c906108c | 20461 | |
97bf5e38 | 20462 | if test ${host} = ${target} ; then |
bec39cab | 20463 | |
b4e70030 JB |
20464 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 |
20465 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
20466 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then |
20467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20468 | else | |
20469 | cat >conftest.$ac_ext <<_ACEOF | |
20470 | /* confdefs.h. */ | |
20471 | _ACEOF | |
20472 | cat confdefs.h >>conftest.$ac_ext | |
20473 | cat >>conftest.$ac_ext <<_ACEOF | |
20474 | /* end confdefs.h. */ | |
97bf5e38 | 20475 | #include <link.h> |
bec39cab AC |
20476 | int |
20477 | main () | |
20478 | { | |
97bf5e38 | 20479 | struct link_map lm; (void) lm.l_addr; |
bec39cab AC |
20480 | ; |
20481 | return 0; | |
20482 | } | |
20483 | _ACEOF | |
20484 | rm -f conftest.$ac_objext | |
20485 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20486 | (eval $ac_compile) 2>conftest.er1 | |
20487 | ac_status=$? | |
20488 | grep -v '^ *+' conftest.er1 >conftest.err | |
20489 | rm -f conftest.er1 | |
20490 | cat conftest.err >&5 | |
20491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20492 | (exit $ac_status); } && | |
b4e70030 JB |
20493 | { ac_try='test -z "$ac_c_werror_flag" |
20494 | || test ! -s conftest.err' | |
bec39cab AC |
20495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20496 | (eval $ac_try) 2>&5 | |
20497 | ac_status=$? | |
20498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20499 | (exit $ac_status); }; } && | |
20500 | { ac_try='test -s conftest.$ac_objext' | |
20501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20502 | (eval $ac_try) 2>&5 | |
20503 | ac_status=$? | |
20504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20505 | (exit $ac_status); }; }; then | |
97bf5e38 | 20506 | gdb_cv_have_struct_link_map_with_l_members=yes |
c906108c | 20507 | else |
bec39cab AC |
20508 | echo "$as_me: failed program was:" >&5 |
20509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20510 | ||
b4e70030 | 20511 | gdb_cv_have_struct_link_map_with_l_members=no |
c906108c | 20512 | fi |
bec39cab | 20513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20514 | fi |
20515 | ||
b4e70030 JB |
20516 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
20517 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 | |
97bf5e38 | 20518 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
60ca704f SE |
20519 | |
20520 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20521 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
bec39cab | 20522 | _ACEOF |
97bf5e38 MK |
20523 | |
20524 | fi | |
20525 | ||
bec39cab | 20526 | |
b4e70030 JB |
20527 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 |
20528 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
20529 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then |
20530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20531 | else |
bec39cab AC |
20532 | cat >conftest.$ac_ext <<_ACEOF |
20533 | /* confdefs.h. */ | |
20534 | _ACEOF | |
20535 | cat confdefs.h >>conftest.$ac_ext | |
20536 | cat >>conftest.$ac_ext <<_ACEOF | |
20537 | /* end confdefs.h. */ | |
97bf5e38 MK |
20538 | #include <sys/types.h> |
20539 | #include <link.h> | |
bec39cab AC |
20540 | int |
20541 | main () | |
20542 | { | |
97bf5e38 | 20543 | struct link_map lm; (void) lm.lm_addr; |
bec39cab AC |
20544 | ; |
20545 | return 0; | |
20546 | } | |
20547 | _ACEOF | |
20548 | rm -f conftest.$ac_objext | |
20549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20550 | (eval $ac_compile) 2>conftest.er1 | |
20551 | ac_status=$? | |
20552 | grep -v '^ *+' conftest.er1 >conftest.err | |
20553 | rm -f conftest.er1 | |
20554 | cat conftest.err >&5 | |
20555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20556 | (exit $ac_status); } && | |
b4e70030 JB |
20557 | { ac_try='test -z "$ac_c_werror_flag" |
20558 | || test ! -s conftest.err' | |
bec39cab AC |
20559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20560 | (eval $ac_try) 2>&5 | |
20561 | ac_status=$? | |
20562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20563 | (exit $ac_status); }; } && | |
20564 | { ac_try='test -s conftest.$ac_objext' | |
20565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20566 | (eval $ac_try) 2>&5 | |
20567 | ac_status=$? | |
20568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20569 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20570 | gdb_cv_have_struct_link_map_with_lm_members=yes |
20571 | else | |
bec39cab AC |
20572 | echo "$as_me: failed program was:" >&5 |
20573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20574 | ||
b4e70030 | 20575 | gdb_cv_have_struct_link_map_with_lm_members=no |
97bf5e38 | 20576 | fi |
bec39cab | 20577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20578 | fi |
c906108c | 20579 | |
b4e70030 JB |
20580 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
20581 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 | |
97bf5e38 | 20582 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
60ca704f SE |
20583 | |
20584 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20585 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
bec39cab | 20586 | _ACEOF |
97bf5e38 MK |
20587 | |
20588 | fi | |
20589 | ||
bec39cab | 20590 | |
b4e70030 JB |
20591 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 |
20592 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 | |
bec39cab AC |
20593 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then |
20594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20595 | else |
bec39cab AC |
20596 | cat >conftest.$ac_ext <<_ACEOF |
20597 | /* confdefs.h. */ | |
20598 | _ACEOF | |
20599 | cat confdefs.h >>conftest.$ac_ext | |
20600 | cat >>conftest.$ac_ext <<_ACEOF | |
20601 | /* end confdefs.h. */ | |
97bf5e38 MK |
20602 | #include <sys/types.h> |
20603 | #ifdef HAVE_NLIST_H | |
20604 | #include <nlist.h> | |
20605 | #endif | |
20606 | #include <link.h> | |
bec39cab AC |
20607 | int |
20608 | main () | |
20609 | { | |
97bf5e38 | 20610 | struct so_map lm; (void) lm.som_addr; |
bec39cab AC |
20611 | ; |
20612 | return 0; | |
20613 | } | |
20614 | _ACEOF | |
20615 | rm -f conftest.$ac_objext | |
20616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20617 | (eval $ac_compile) 2>conftest.er1 | |
20618 | ac_status=$? | |
20619 | grep -v '^ *+' conftest.er1 >conftest.err | |
20620 | rm -f conftest.er1 | |
20621 | cat conftest.err >&5 | |
20622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20623 | (exit $ac_status); } && | |
b4e70030 JB |
20624 | { ac_try='test -z "$ac_c_werror_flag" |
20625 | || test ! -s conftest.err' | |
bec39cab AC |
20626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20627 | (eval $ac_try) 2>&5 | |
20628 | ac_status=$? | |
20629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20630 | (exit $ac_status); }; } && | |
20631 | { ac_try='test -s conftest.$ac_objext' | |
20632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20633 | (eval $ac_try) 2>&5 | |
20634 | ac_status=$? | |
20635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20636 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20637 | gdb_cv_have_struct_so_map_with_som_members=yes |
20638 | else | |
bec39cab AC |
20639 | echo "$as_me: failed program was:" >&5 |
20640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20641 | ||
b4e70030 | 20642 | gdb_cv_have_struct_so_map_with_som_members=no |
97bf5e38 | 20643 | fi |
bec39cab | 20644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20645 | fi |
c906108c | 20646 | |
b4e70030 JB |
20647 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
20648 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 | |
97bf5e38 | 20649 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
60ca704f SE |
20650 | |
20651 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20652 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
bec39cab | 20653 | _ACEOF |
c906108c | 20654 | |
97bf5e38 | 20655 | fi |
c906108c | 20656 | |
bec39cab | 20657 | |
b4e70030 JB |
20658 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 |
20659 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 | |
bec39cab AC |
20660 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then |
20661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 20662 | else |
bec39cab AC |
20663 | cat >conftest.$ac_ext <<_ACEOF |
20664 | /* confdefs.h. */ | |
20665 | _ACEOF | |
20666 | cat confdefs.h >>conftest.$ac_ext | |
20667 | cat >>conftest.$ac_ext <<_ACEOF | |
20668 | /* end confdefs.h. */ | |
97bf5e38 MK |
20669 | #define _SYSCALL32 |
20670 | #include <sys/link.h> | |
bec39cab AC |
20671 | int |
20672 | main () | |
20673 | { | |
97bf5e38 | 20674 | struct link_map32 l; |
bec39cab AC |
20675 | ; |
20676 | return 0; | |
20677 | } | |
20678 | _ACEOF | |
20679 | rm -f conftest.$ac_objext | |
20680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20681 | (eval $ac_compile) 2>conftest.er1 | |
20682 | ac_status=$? | |
20683 | grep -v '^ *+' conftest.er1 >conftest.err | |
20684 | rm -f conftest.er1 | |
20685 | cat conftest.err >&5 | |
20686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20687 | (exit $ac_status); } && | |
b4e70030 JB |
20688 | { ac_try='test -z "$ac_c_werror_flag" |
20689 | || test ! -s conftest.err' | |
bec39cab AC |
20690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20691 | (eval $ac_try) 2>&5 | |
20692 | ac_status=$? | |
20693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20694 | (exit $ac_status); }; } && | |
20695 | { ac_try='test -s conftest.$ac_objext' | |
20696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20697 | (eval $ac_try) 2>&5 | |
20698 | ac_status=$? | |
20699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20700 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20701 | gdb_cv_have_struct_link_map32=yes |
20702 | else | |
bec39cab AC |
20703 | echo "$as_me: failed program was:" >&5 |
20704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20705 | ||
b4e70030 | 20706 | gdb_cv_have_struct_link_map32=no |
97bf5e38 | 20707 | fi |
bec39cab | 20708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20709 | fi |
c906108c | 20710 | |
b4e70030 JB |
20711 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
20712 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 | |
97bf5e38 | 20713 | if test $gdb_cv_have_struct_link_map32 = yes; then |
60ca704f SE |
20714 | |
20715 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20716 | #define HAVE_STRUCT_LINK_MAP32 1 |
bec39cab | 20717 | _ACEOF |
c906108c | 20718 | |
60ca704f SE |
20719 | |
20720 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20721 | #define _SYSCALL32 1 |
bec39cab | 20722 | _ACEOF |
c906108c | 20723 | |
97bf5e38 MK |
20724 | fi |
20725 | fi | |
c906108c | 20726 | |
bc8bcb4b | 20727 | # Check if the compiler supports the `long long' type. |
c906108c | 20728 | |
b4e70030 JB |
20729 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
20730 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 | |
bec39cab AC |
20731 | if test "${gdb_cv_c_long_long+set}" = set; then |
20732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 20733 | else |
bec39cab AC |
20734 | cat >conftest.$ac_ext <<_ACEOF |
20735 | /* confdefs.h. */ | |
20736 | _ACEOF | |
20737 | cat confdefs.h >>conftest.$ac_ext | |
20738 | cat >>conftest.$ac_ext <<_ACEOF | |
20739 | /* end confdefs.h. */ | |
bc8bcb4b | 20740 | extern long long foo; |
bec39cab AC |
20741 | int |
20742 | main () | |
20743 | { | |
bc8bcb4b | 20744 | switch (foo & 2) { case 0: return 1; } |
bec39cab AC |
20745 | ; |
20746 | return 0; | |
20747 | } | |
20748 | _ACEOF | |
20749 | rm -f conftest.$ac_objext | |
20750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20751 | (eval $ac_compile) 2>conftest.er1 | |
20752 | ac_status=$? | |
20753 | grep -v '^ *+' conftest.er1 >conftest.err | |
20754 | rm -f conftest.er1 | |
20755 | cat conftest.err >&5 | |
20756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20757 | (exit $ac_status); } && | |
b4e70030 JB |
20758 | { ac_try='test -z "$ac_c_werror_flag" |
20759 | || test ! -s conftest.err' | |
bec39cab AC |
20760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20761 | (eval $ac_try) 2>&5 | |
20762 | ac_status=$? | |
20763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20764 | (exit $ac_status); }; } && | |
20765 | { ac_try='test -s conftest.$ac_objext' | |
20766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20767 | (eval $ac_try) 2>&5 | |
20768 | ac_status=$? | |
20769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20770 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20771 | gdb_cv_c_long_long=yes |
20772 | else | |
bec39cab AC |
20773 | echo "$as_me: failed program was:" >&5 |
20774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20775 | ||
b4e70030 | 20776 | gdb_cv_c_long_long=no |
97bf5e38 | 20777 | fi |
bec39cab | 20778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20779 | fi |
b4e70030 JB |
20780 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
20781 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 | |
97bf5e38 | 20782 | if test $gdb_cv_c_long_long = yes; then |
bc8bcb4b MK |
20783 | |
20784 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20785 | #define CC_HAS_LONG_LONG 1 |
bec39cab | 20786 | _ACEOF |
97bf5e38 MK |
20787 | |
20788 | fi | |
20789 | ||
bc8bcb4b | 20790 | # Check if the compiler and runtime support printing long longs. |
97bf5e38 | 20791 | |
b4e70030 JB |
20792 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
20793 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 | |
bec39cab AC |
20794 | if test "${gdb_cv_printf_has_long_long+set}" = set; then |
20795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
20796 | else |
20797 | if test "$cross_compiling" = yes; then | |
20798 | gdb_cv_printf_has_long_long=no | |
20799 | else | |
bec39cab AC |
20800 | cat >conftest.$ac_ext <<_ACEOF |
20801 | /* confdefs.h. */ | |
20802 | _ACEOF | |
20803 | cat confdefs.h >>conftest.$ac_ext | |
20804 | cat >>conftest.$ac_ext <<_ACEOF | |
20805 | /* end confdefs.h. */ | |
bc8bcb4b MK |
20806 | $ac_includes_default |
20807 | int | |
20808 | main () | |
20809 | { | |
20810 | char buf[32]; | |
97bf5e38 MK |
20811 | long long l = 0; |
20812 | l = (l << 16) + 0x0123; | |
20813 | l = (l << 16) + 0x4567; | |
20814 | l = (l << 16) + 0x89ab; | |
20815 | l = (l << 16) + 0xcdef; | |
20816 | sprintf (buf, "0x%016llx", l); | |
20817 | return (strcmp ("0x0123456789abcdef", buf)); | |
bc8bcb4b MK |
20818 | ; |
20819 | return 0; | |
c906108c | 20820 | } |
bec39cab AC |
20821 | _ACEOF |
20822 | rm -f conftest$ac_exeext | |
20823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20824 | (eval $ac_link) 2>&5 | |
20825 | ac_status=$? | |
20826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20827 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20829 | (eval $ac_try) 2>&5 | |
20830 | ac_status=$? | |
20831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20832 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20833 | gdb_cv_printf_has_long_long=yes |
20834 | else | |
bec39cab AC |
20835 | echo "$as_me: program exited with status $ac_status" >&5 |
20836 | echo "$as_me: failed program was:" >&5 | |
20837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20838 | ||
20839 | ( exit $ac_status ) | |
20840 | gdb_cv_printf_has_long_long=no | |
97bf5e38 | 20841 | fi |
b4e70030 | 20842 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20843 | fi |
97bf5e38 | 20844 | fi |
b4e70030 JB |
20845 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
20846 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 | |
97bf5e38 | 20847 | if test $gdb_cv_printf_has_long_long = yes; then |
bc8bcb4b MK |
20848 | |
20849 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20850 | #define PRINTF_HAS_LONG_LONG 1 |
bec39cab | 20851 | _ACEOF |
97bf5e38 MK |
20852 | |
20853 | fi | |
97bf5e38 | 20854 | |
bc8bcb4b MK |
20855 | # Check if the compiler supports the `long double' type. We can't use |
20856 | # AC_C_LONG_DOUBLE because that one does additional checks on the | |
20857 | # constants defined in <float.h> that fail on some systems, | |
20858 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. | |
97bf5e38 | 20859 | |
b4e70030 JB |
20860 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
20861 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 | |
bc8bcb4b | 20862 | if test "${gdb_cv_c_long_double+set}" = set; then |
bec39cab | 20863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 20864 | else |
bec39cab AC |
20865 | cat >conftest.$ac_ext <<_ACEOF |
20866 | /* confdefs.h. */ | |
20867 | _ACEOF | |
20868 | cat confdefs.h >>conftest.$ac_ext | |
20869 | cat >>conftest.$ac_ext <<_ACEOF | |
20870 | /* end confdefs.h. */ | |
97bf5e38 | 20871 | long double foo; |
bec39cab AC |
20872 | _ACEOF |
20873 | rm -f conftest.$ac_objext | |
20874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20875 | (eval $ac_compile) 2>conftest.er1 | |
20876 | ac_status=$? | |
20877 | grep -v '^ *+' conftest.er1 >conftest.err | |
20878 | rm -f conftest.er1 | |
20879 | cat conftest.err >&5 | |
20880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20881 | (exit $ac_status); } && | |
b4e70030 JB |
20882 | { ac_try='test -z "$ac_c_werror_flag" |
20883 | || test ! -s conftest.err' | |
bec39cab AC |
20884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20885 | (eval $ac_try) 2>&5 | |
20886 | ac_status=$? | |
20887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20888 | (exit $ac_status); }; } && | |
20889 | { ac_try='test -s conftest.$ac_objext' | |
20890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20891 | (eval $ac_try) 2>&5 | |
20892 | ac_status=$? | |
20893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20894 | (exit $ac_status); }; }; then | |
bc8bcb4b | 20895 | gdb_cv_c_long_double=yes |
97bf5e38 | 20896 | else |
bec39cab AC |
20897 | echo "$as_me: failed program was:" >&5 |
20898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20899 | ||
b4e70030 | 20900 | gdb_cv_c_long_double=no |
97bf5e38 | 20901 | fi |
bec39cab | 20902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20903 | fi |
b4e70030 JB |
20904 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
20905 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6 | |
bc8bcb4b | 20906 | if test $gdb_cv_c_long_double = yes; then |
c906108c | 20907 | |
bc8bcb4b | 20908 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 20909 | #define HAVE_LONG_DOUBLE 1 |
bec39cab | 20910 | _ACEOF |
97bf5e38 MK |
20911 | |
20912 | fi | |
20913 | ||
bc8bcb4b | 20914 | # Check if the compiler and runtime support printing long doubles. |
97bf5e38 | 20915 | |
b4e70030 JB |
20916 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
20917 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 | |
bec39cab AC |
20918 | if test "${gdb_cv_printf_has_long_double+set}" = set; then |
20919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
20920 | else |
20921 | if test "$cross_compiling" = yes; then | |
20922 | gdb_cv_printf_has_long_double=no | |
20923 | else | |
bec39cab AC |
20924 | cat >conftest.$ac_ext <<_ACEOF |
20925 | /* confdefs.h. */ | |
20926 | _ACEOF | |
20927 | cat confdefs.h >>conftest.$ac_ext | |
20928 | cat >>conftest.$ac_ext <<_ACEOF | |
20929 | /* end confdefs.h. */ | |
bc8bcb4b MK |
20930 | $ac_includes_default |
20931 | int | |
20932 | main () | |
20933 | { | |
20934 | char buf[16]; | |
97bf5e38 MK |
20935 | long double f = 3.141592653; |
20936 | sprintf (buf, "%Lg", f); | |
20937 | return (strncmp ("3.14159", buf, 7)); | |
bc8bcb4b MK |
20938 | ; |
20939 | return 0; | |
97bf5e38 | 20940 | } |
bec39cab AC |
20941 | _ACEOF |
20942 | rm -f conftest$ac_exeext | |
20943 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20944 | (eval $ac_link) 2>&5 | |
20945 | ac_status=$? | |
20946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20947 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20949 | (eval $ac_try) 2>&5 | |
20950 | ac_status=$? | |
20951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20952 | (exit $ac_status); }; }; then | |
97bf5e38 | 20953 | gdb_cv_printf_has_long_double=yes |
c906108c | 20954 | else |
bec39cab AC |
20955 | echo "$as_me: program exited with status $ac_status" >&5 |
20956 | echo "$as_me: failed program was:" >&5 | |
20957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20958 | ||
20959 | ( exit $ac_status ) | |
20960 | gdb_cv_printf_has_long_double=no | |
c906108c | 20961 | fi |
b4e70030 | 20962 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 20963 | fi |
c906108c | 20964 | fi |
b4e70030 JB |
20965 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
20966 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 | |
97bf5e38 | 20967 | if test $gdb_cv_printf_has_long_double = yes; then |
bc8bcb4b MK |
20968 | |
20969 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20970 | #define PRINTF_HAS_LONG_DOUBLE 1 |
bec39cab | 20971 | _ACEOF |
97bf5e38 MK |
20972 | |
20973 | fi | |
97bf5e38 | 20974 | |
bc8bcb4b | 20975 | # Check if the compiler and runtime support scanning long doubles. |
97bf5e38 | 20976 | |
b4e70030 JB |
20977 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
20978 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 | |
bec39cab AC |
20979 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then |
20980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
20981 | else |
20982 | if test "$cross_compiling" = yes; then | |
20983 | gdb_cv_scanf_has_long_double=no | |
20984 | else | |
bec39cab AC |
20985 | cat >conftest.$ac_ext <<_ACEOF |
20986 | /* confdefs.h. */ | |
20987 | _ACEOF | |
20988 | cat confdefs.h >>conftest.$ac_ext | |
20989 | cat >>conftest.$ac_ext <<_ACEOF | |
20990 | /* end confdefs.h. */ | |
bc8bcb4b MK |
20991 | #include <stdio.h> |
20992 | int | |
20993 | main () | |
20994 | { | |
20995 | char *buf = "3.141592653"; | |
97bf5e38 MK |
20996 | long double f = 0; |
20997 | sscanf (buf, "%Lg", &f); | |
20998 | return !(f > 3.14159 && f < 3.14160); | |
bc8bcb4b MK |
20999 | ; |
21000 | return 0; | |
97bf5e38 | 21001 | } |
bec39cab AC |
21002 | _ACEOF |
21003 | rm -f conftest$ac_exeext | |
21004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21005 | (eval $ac_link) 2>&5 | |
21006 | ac_status=$? | |
21007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21008 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21010 | (eval $ac_try) 2>&5 | |
21011 | ac_status=$? | |
21012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21013 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
21014 | gdb_cv_scanf_has_long_double=yes |
21015 | else | |
bec39cab AC |
21016 | echo "$as_me: program exited with status $ac_status" >&5 |
21017 | echo "$as_me: failed program was:" >&5 | |
21018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21019 | ||
21020 | ( exit $ac_status ) | |
21021 | gdb_cv_scanf_has_long_double=no | |
97bf5e38 | 21022 | fi |
b4e70030 | 21023 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 21024 | fi |
c906108c | 21025 | fi |
b4e70030 JB |
21026 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
21027 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 | |
97bf5e38 | 21028 | if test $gdb_cv_scanf_has_long_double = yes; then |
bc8bcb4b MK |
21029 | |
21030 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21031 | #define SCANF_HAS_LONG_DOUBLE 1 |
bec39cab | 21032 | _ACEOF |
97bf5e38 MK |
21033 | |
21034 | fi | |
c906108c | 21035 | |
438013df AO |
21036 | case ${host_os} in |
21037 | aix*) | |
b4e70030 JB |
21038 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
21039 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
bec39cab AC |
21040 | if test "${gdb_cv_bigtoc+set}" = set; then |
21041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
438013df | 21042 | else |
bec39cab | 21043 | |
438013df AO |
21044 | SAVE_LDFLAGS=$LDFLAGS |
21045 | ||
21046 | case $GCC in | |
21047 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
21048 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
21049 | esac | |
21050 | ||
21051 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
bec39cab AC |
21052 | cat >conftest.$ac_ext <<_ACEOF |
21053 | /* confdefs.h. */ | |
21054 | _ACEOF | |
21055 | cat confdefs.h >>conftest.$ac_ext | |
21056 | cat >>conftest.$ac_ext <<_ACEOF | |
21057 | /* end confdefs.h. */ | |
438013df | 21058 | |
bec39cab AC |
21059 | int |
21060 | main () | |
21061 | { | |
438013df | 21062 | int i; |
bec39cab AC |
21063 | ; |
21064 | return 0; | |
21065 | } | |
21066 | _ACEOF | |
21067 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21069 | (eval $ac_link) 2>conftest.er1 | |
21070 | ac_status=$? | |
21071 | grep -v '^ *+' conftest.er1 >conftest.err | |
21072 | rm -f conftest.er1 | |
21073 | cat conftest.err >&5 | |
21074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21075 | (exit $ac_status); } && | |
b4e70030 JB |
21076 | { ac_try='test -z "$ac_c_werror_flag" |
21077 | || test ! -s conftest.err' | |
bec39cab AC |
21078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21079 | (eval $ac_try) 2>&5 | |
21080 | ac_status=$? | |
21081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21082 | (exit $ac_status); }; } && | |
21083 | { ac_try='test -s conftest$ac_exeext' | |
21084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21085 | (eval $ac_try) 2>&5 | |
21086 | ac_status=$? | |
21087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21088 | (exit $ac_status); }; }; then | |
438013df AO |
21089 | : |
21090 | else | |
bec39cab AC |
21091 | echo "$as_me: failed program was:" >&5 |
21092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21093 | ||
b4e70030 | 21094 | gdb_cv_bigtoc= |
438013df | 21095 | fi |
bec39cab AC |
21096 | rm -f conftest.err conftest.$ac_objext \ |
21097 | conftest$ac_exeext conftest.$ac_ext | |
ec76baa5 | 21098 | LDFLAGS="${SAVE_LDFLAGS}" |
438013df | 21099 | |
bec39cab | 21100 | fi |
b4e70030 JB |
21101 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
21102 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
438013df AO |
21103 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
21104 | ;; | |
21105 | esac | |
21106 | ||
c906108c SS |
21107 | |
21108 | ||
21109 | if test ${build} = ${host} -a ${host} = ${target} ; then | |
21110 | case ${host_os} in | |
21111 | hpux*) | |
b4e70030 JB |
21112 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
21113 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 | |
c906108c SS |
21114 | if test -f /usr/include/dce/cma_config.h ; then |
21115 | if test "$GCC" = "yes" ; then | |
b4e70030 JB |
21116 | echo "$as_me:$LINENO: result: yes" >&5 |
21117 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
21118 | |
21119 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 21120 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
bec39cab | 21121 | _ACEOF |
c906108c | 21122 | |
3483b318 | 21123 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
c906108c SS |
21124 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
21125 | else | |
b4e70030 JB |
21126 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
21127 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 | |
c906108c SS |
21128 | fi |
21129 | else | |
b4e70030 JB |
21130 | echo "$as_me:$LINENO: result: no" >&5 |
21131 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
21132 | fi |
21133 | ;; | |
21134 | solaris*) | |
d92419e5 JB |
21135 | # See if thread_db library is around for Solaris thread debugging. |
21136 | # Note that we must explicitly test for version 1 of the library | |
21137 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have | |
21138 | # the same API. | |
b4e70030 JB |
21139 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
21140 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 | |
c906108c | 21141 | if test -f /usr/lib/libthread_db.so.1 ; then |
b4e70030 JB |
21142 | echo "$as_me:$LINENO: result: yes" >&5 |
21143 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
21144 | |
21145 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 21146 | #define HAVE_THREAD_DB_LIB 1 |
bec39cab | 21147 | _ACEOF |
c906108c | 21148 | |
3483b318 | 21149 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
c906108c | 21150 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
bec39cab | 21151 | |
b4e70030 JB |
21152 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
21153 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
bec39cab AC |
21154 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
21155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21156 | else |
bec39cab | 21157 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 21158 | LIBS="-ldl $LIBS" |
bec39cab AC |
21159 | cat >conftest.$ac_ext <<_ACEOF |
21160 | /* confdefs.h. */ | |
21161 | _ACEOF | |
21162 | cat confdefs.h >>conftest.$ac_ext | |
21163 | cat >>conftest.$ac_ext <<_ACEOF | |
21164 | /* end confdefs.h. */ | |
21165 | ||
b4e70030 | 21166 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
21167 | #ifdef __cplusplus |
21168 | extern "C" | |
21169 | #endif | |
b4e70030 JB |
21170 | /* We use char because int might match the return type of a gcc2 |
21171 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
21172 | char dlopen (); |
21173 | int | |
21174 | main () | |
21175 | { | |
b4e70030 | 21176 | dlopen (); |
bec39cab AC |
21177 | ; |
21178 | return 0; | |
21179 | } | |
21180 | _ACEOF | |
21181 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21183 | (eval $ac_link) 2>conftest.er1 | |
21184 | ac_status=$? | |
21185 | grep -v '^ *+' conftest.er1 >conftest.err | |
21186 | rm -f conftest.er1 | |
21187 | cat conftest.err >&5 | |
21188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21189 | (exit $ac_status); } && | |
b4e70030 JB |
21190 | { ac_try='test -z "$ac_c_werror_flag" |
21191 | || test ! -s conftest.err' | |
bec39cab AC |
21192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21193 | (eval $ac_try) 2>&5 | |
21194 | ac_status=$? | |
21195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21196 | (exit $ac_status); }; } && | |
21197 | { ac_try='test -s conftest$ac_exeext' | |
21198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21199 | (eval $ac_try) 2>&5 | |
21200 | ac_status=$? | |
21201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21202 | (exit $ac_status); }; }; then | |
21203 | ac_cv_lib_dl_dlopen=yes | |
21204 | else | |
21205 | echo "$as_me: failed program was:" >&5 | |
21206 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21207 | ||
b4e70030 | 21208 | ac_cv_lib_dl_dlopen=no |
bec39cab AC |
21209 | fi |
21210 | rm -f conftest.err conftest.$ac_objext \ | |
21211 | conftest$ac_exeext conftest.$ac_ext | |
21212 | LIBS=$ac_check_lib_save_LIBS | |
21213 | fi | |
b4e70030 JB |
21214 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
21215 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
bec39cab AC |
21216 | if test $ac_cv_lib_dl_dlopen = yes; then |
21217 | cat >>confdefs.h <<_ACEOF | |
21218 | #define HAVE_LIBDL 1 | |
21219 | _ACEOF | |
c906108c SS |
21220 | |
21221 | LIBS="-ldl $LIBS" | |
21222 | ||
c906108c SS |
21223 | fi |
21224 | ||
21225 | if test "$GCC" = "yes" ; then | |
21226 | # The GNU linker requires the -export-dynamic option to make | |
21227 | # all symbols visible in the dynamic symbol table. | |
21228 | hold_ldflags=$LDFLAGS | |
b4e70030 JB |
21229 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
21230 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 | |
c906108c | 21231 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
bec39cab AC |
21232 | cat >conftest.$ac_ext <<_ACEOF |
21233 | /* confdefs.h. */ | |
21234 | _ACEOF | |
21235 | cat confdefs.h >>conftest.$ac_ext | |
21236 | cat >>conftest.$ac_ext <<_ACEOF | |
21237 | /* end confdefs.h. */ | |
c906108c | 21238 | |
bec39cab AC |
21239 | int |
21240 | main () | |
21241 | { | |
c906108c | 21242 | int i; |
bec39cab AC |
21243 | ; |
21244 | return 0; | |
21245 | } | |
21246 | _ACEOF | |
21247 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21248 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21249 | (eval $ac_link) 2>conftest.er1 | |
21250 | ac_status=$? | |
21251 | grep -v '^ *+' conftest.er1 >conftest.err | |
21252 | rm -f conftest.er1 | |
21253 | cat conftest.err >&5 | |
21254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21255 | (exit $ac_status); } && | |
b4e70030 JB |
21256 | { ac_try='test -z "$ac_c_werror_flag" |
21257 | || test ! -s conftest.err' | |
bec39cab AC |
21258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21259 | (eval $ac_try) 2>&5 | |
21260 | ac_status=$? | |
21261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21262 | (exit $ac_status); }; } && | |
21263 | { ac_try='test -s conftest$ac_exeext' | |
21264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21265 | (eval $ac_try) 2>&5 | |
21266 | ac_status=$? | |
21267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21268 | (exit $ac_status); }; }; then | |
c906108c SS |
21269 | found=yes |
21270 | else | |
bec39cab AC |
21271 | echo "$as_me: failed program was:" >&5 |
21272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21273 | ||
b4e70030 | 21274 | found=no |
c906108c | 21275 | fi |
bec39cab AC |
21276 | rm -f conftest.err conftest.$ac_objext \ |
21277 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 21278 | LDFLAGS=$hold_ldflags |
b4e70030 JB |
21279 | echo "$as_me:$LINENO: result: $found" >&5 |
21280 | echo "${ECHO_T}$found" >&6 | |
c906108c SS |
21281 | if test $found = yes; then |
21282 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" | |
21283 | fi | |
21284 | fi | |
21285 | # Sun randomly tweaked the prototypes in <proc_service.h> | |
21286 | # at one point. | |
b4e70030 JB |
21287 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
21288 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 | |
bec39cab AC |
21289 | if test "${gdb_cv_proc_service_is_old+set}" = set; then |
21290 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21291 | else |
bec39cab AC |
21292 | |
21293 | cat >conftest.$ac_ext <<_ACEOF | |
21294 | /* confdefs.h. */ | |
21295 | _ACEOF | |
21296 | cat confdefs.h >>conftest.$ac_ext | |
21297 | cat >>conftest.$ac_ext <<_ACEOF | |
21298 | /* end confdefs.h. */ | |
c906108c SS |
21299 | |
21300 | #include <proc_service.h> | |
21301 | ps_err_e ps_pdwrite | |
21302 | (struct ps_prochandle*, psaddr_t, const void*, size_t); | |
c906108c | 21303 | |
bec39cab AC |
21304 | int |
21305 | main () | |
21306 | { | |
21307 | ||
21308 | ; | |
21309 | return 0; | |
21310 | } | |
21311 | _ACEOF | |
21312 | rm -f conftest.$ac_objext | |
21313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21314 | (eval $ac_compile) 2>conftest.er1 | |
21315 | ac_status=$? | |
21316 | grep -v '^ *+' conftest.er1 >conftest.err | |
21317 | rm -f conftest.er1 | |
21318 | cat conftest.err >&5 | |
21319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21320 | (exit $ac_status); } && | |
b4e70030 JB |
21321 | { ac_try='test -z "$ac_c_werror_flag" |
21322 | || test ! -s conftest.err' | |
bec39cab AC |
21323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21324 | (eval $ac_try) 2>&5 | |
21325 | ac_status=$? | |
21326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21327 | (exit $ac_status); }; } && | |
21328 | { ac_try='test -s conftest.$ac_objext' | |
21329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21330 | (eval $ac_try) 2>&5 | |
21331 | ac_status=$? | |
21332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21333 | (exit $ac_status); }; }; then | |
c906108c SS |
21334 | gdb_cv_proc_service_is_old=no |
21335 | else | |
bec39cab AC |
21336 | echo "$as_me: failed program was:" >&5 |
21337 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21338 | ||
b4e70030 | 21339 | gdb_cv_proc_service_is_old=yes |
c906108c | 21340 | fi |
bec39cab AC |
21341 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21342 | ||
c906108c SS |
21343 | fi |
21344 | ||
b4e70030 JB |
21345 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
21346 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 | |
c906108c | 21347 | if test $gdb_cv_proc_service_is_old = yes; then |
60ca704f SE |
21348 | |
21349 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 21350 | #define PROC_SERVICE_IS_OLD 1 |
bec39cab | 21351 | _ACEOF |
c906108c SS |
21352 | |
21353 | fi | |
21354 | else | |
b4e70030 JB |
21355 | echo "$as_me:$LINENO: result: no" >&5 |
21356 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
21357 | fi |
21358 | ;; | |
d92419e5 | 21359 | aix*) |
b4e70030 JB |
21360 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
21361 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 | |
bec39cab AC |
21362 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then |
21363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21364 | else | |
21365 | cat >conftest.$ac_ext <<_ACEOF | |
21366 | /* confdefs.h. */ | |
21367 | _ACEOF | |
21368 | cat confdefs.h >>conftest.$ac_ext | |
21369 | cat >>conftest.$ac_ext <<_ACEOF | |
21370 | /* end confdefs.h. */ | |
d92419e5 | 21371 | #include <sys/pthdebug.h> |
bec39cab AC |
21372 | int |
21373 | main () | |
21374 | { | |
d92419e5 JB |
21375 | #ifndef PTHDB_VERSION_3 |
21376 | #error | |
21377 | #endif | |
bec39cab AC |
21378 | ; |
21379 | return 0; | |
21380 | } | |
21381 | _ACEOF | |
21382 | rm -f conftest.$ac_objext | |
21383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21384 | (eval $ac_compile) 2>conftest.er1 | |
21385 | ac_status=$? | |
21386 | grep -v '^ *+' conftest.er1 >conftest.err | |
21387 | rm -f conftest.er1 | |
21388 | cat conftest.err >&5 | |
21389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21390 | (exit $ac_status); } && | |
b4e70030 JB |
21391 | { ac_try='test -z "$ac_c_werror_flag" |
21392 | || test ! -s conftest.err' | |
bec39cab AC |
21393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21394 | (eval $ac_try) 2>&5 | |
21395 | ac_status=$? | |
21396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21397 | (exit $ac_status); }; } && | |
21398 | { ac_try='test -s conftest.$ac_objext' | |
21399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21400 | (eval $ac_try) 2>&5 | |
21401 | ac_status=$? | |
21402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21403 | (exit $ac_status); }; }; then | |
d92419e5 JB |
21404 | gdb_cv_have_aix_thread_debug=yes |
21405 | else | |
bec39cab AC |
21406 | echo "$as_me: failed program was:" >&5 |
21407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21408 | ||
b4e70030 | 21409 | gdb_cv_have_aix_thread_debug=no |
d92419e5 | 21410 | fi |
bec39cab | 21411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d92419e5 JB |
21412 | fi |
21413 | ||
b4e70030 JB |
21414 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
21415 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 | |
d92419e5 JB |
21416 | if test $gdb_cv_have_aix_thread_debug = yes; then |
21417 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | |
3483b318 | 21418 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
d92419e5 JB |
21419 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
21420 | fi | |
21421 | ;; | |
c906108c | 21422 | esac |
bec39cab | 21423 | |
c906108c SS |
21424 | fi |
21425 | ||
3f47be5c | 21426 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
b4e70030 JB |
21427 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
21428 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 | |
bec39cab AC |
21429 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then |
21430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21431 | else | |
21432 | cat >conftest.$ac_ext <<_ACEOF | |
21433 | /* confdefs.h. */ | |
21434 | _ACEOF | |
21435 | cat confdefs.h >>conftest.$ac_ext | |
21436 | cat >>conftest.$ac_ext <<_ACEOF | |
21437 | /* end confdefs.h. */ | |
3f47be5c | 21438 | #include <thread_db.h> |
bec39cab AC |
21439 | int |
21440 | main () | |
21441 | { | |
3f47be5c | 21442 | int i = TD_NOTALLOC; |
bec39cab AC |
21443 | ; |
21444 | return 0; | |
21445 | } | |
21446 | _ACEOF | |
21447 | rm -f conftest.$ac_objext | |
21448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21449 | (eval $ac_compile) 2>conftest.er1 | |
21450 | ac_status=$? | |
21451 | grep -v '^ *+' conftest.er1 >conftest.err | |
21452 | rm -f conftest.er1 | |
21453 | cat conftest.err >&5 | |
21454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21455 | (exit $ac_status); } && | |
b4e70030 JB |
21456 | { ac_try='test -z "$ac_c_werror_flag" |
21457 | || test ! -s conftest.err' | |
bec39cab AC |
21458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21459 | (eval $ac_try) 2>&5 | |
21460 | ac_status=$? | |
21461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21462 | (exit $ac_status); }; } && | |
21463 | { ac_try='test -s conftest.$ac_objext' | |
21464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21465 | (eval $ac_try) 2>&5 | |
21466 | ac_status=$? | |
21467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21468 | (exit $ac_status); }; }; then | |
3f47be5c EZ |
21469 | gdb_cv_thread_db_h_has_td_notalloc=yes |
21470 | else | |
bec39cab AC |
21471 | echo "$as_me: failed program was:" >&5 |
21472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21473 | ||
b4e70030 | 21474 | gdb_cv_thread_db_h_has_td_notalloc=no |
bec39cab | 21475 | |
3f47be5c | 21476 | fi |
bec39cab | 21477 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f47be5c | 21478 | |
bec39cab | 21479 | fi |
b4e70030 JB |
21480 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 |
21481 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 | |
59f80f10 DJ |
21482 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5 |
21483 | echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6 | |
21484 | if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then | |
21485 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21486 | else | |
21487 | cat >conftest.$ac_ext <<_ACEOF | |
21488 | /* confdefs.h. */ | |
21489 | _ACEOF | |
21490 | cat confdefs.h >>conftest.$ac_ext | |
21491 | cat >>conftest.$ac_ext <<_ACEOF | |
21492 | /* end confdefs.h. */ | |
21493 | #include <thread_db.h> | |
21494 | int | |
21495 | main () | |
21496 | { | |
21497 | int i = TD_VERSION; | |
21498 | ; | |
21499 | return 0; | |
21500 | } | |
21501 | _ACEOF | |
21502 | rm -f conftest.$ac_objext | |
21503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21504 | (eval $ac_compile) 2>conftest.er1 | |
21505 | ac_status=$? | |
21506 | grep -v '^ *+' conftest.er1 >conftest.err | |
21507 | rm -f conftest.er1 | |
21508 | cat conftest.err >&5 | |
21509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21510 | (exit $ac_status); } && | |
21511 | { ac_try='test -z "$ac_c_werror_flag" | |
21512 | || test ! -s conftest.err' | |
21513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21514 | (eval $ac_try) 2>&5 | |
21515 | ac_status=$? | |
21516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21517 | (exit $ac_status); }; } && | |
21518 | { ac_try='test -s conftest.$ac_objext' | |
21519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21520 | (eval $ac_try) 2>&5 | |
21521 | ac_status=$? | |
21522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21523 | (exit $ac_status); }; }; then | |
21524 | gdb_cv_thread_db_h_has_td_version=yes | |
21525 | else | |
21526 | echo "$as_me: failed program was:" >&5 | |
21527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21528 | ||
21529 | gdb_cv_thread_db_h_has_td_version=no | |
21530 | ||
21531 | fi | |
21532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21533 | ||
21534 | fi | |
21535 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5 | |
21536 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6 | |
21537 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5 | |
21538 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6 | |
21539 | if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then | |
21540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21541 | else | |
21542 | cat >conftest.$ac_ext <<_ACEOF | |
21543 | /* confdefs.h. */ | |
21544 | _ACEOF | |
21545 | cat confdefs.h >>conftest.$ac_ext | |
21546 | cat >>conftest.$ac_ext <<_ACEOF | |
21547 | /* end confdefs.h. */ | |
21548 | #include <thread_db.h> | |
21549 | int | |
21550 | main () | |
21551 | { | |
21552 | int i = TD_NOTLS; | |
21553 | ; | |
21554 | return 0; | |
21555 | } | |
21556 | _ACEOF | |
21557 | rm -f conftest.$ac_objext | |
21558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21559 | (eval $ac_compile) 2>conftest.er1 | |
21560 | ac_status=$? | |
21561 | grep -v '^ *+' conftest.er1 >conftest.err | |
21562 | rm -f conftest.er1 | |
21563 | cat conftest.err >&5 | |
21564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21565 | (exit $ac_status); } && | |
21566 | { ac_try='test -z "$ac_c_werror_flag" | |
21567 | || test ! -s conftest.err' | |
21568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21569 | (eval $ac_try) 2>&5 | |
21570 | ac_status=$? | |
21571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21572 | (exit $ac_status); }; } && | |
21573 | { ac_try='test -s conftest.$ac_objext' | |
21574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21575 | (eval $ac_try) 2>&5 | |
21576 | ac_status=$? | |
21577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21578 | (exit $ac_status); }; }; then | |
21579 | gdb_cv_thread_db_h_has_td_notls=yes | |
21580 | else | |
21581 | echo "$as_me: failed program was:" >&5 | |
21582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21583 | ||
21584 | gdb_cv_thread_db_h_has_td_notls=no | |
21585 | ||
21586 | fi | |
21587 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21588 | ||
21589 | fi | |
21590 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5 | |
21591 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6 | |
3f47be5c EZ |
21592 | fi |
21593 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then | |
bec39cab AC |
21594 | |
21595 | cat >>confdefs.h <<\_ACEOF | |
3f47be5c | 21596 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
bec39cab | 21597 | _ACEOF |
3f47be5c | 21598 | |
59f80f10 DJ |
21599 | fi |
21600 | if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then | |
21601 | ||
21602 | cat >>confdefs.h <<\_ACEOF | |
21603 | #define THREAD_DB_HAS_TD_VERSION 1 | |
21604 | _ACEOF | |
21605 | ||
21606 | fi | |
21607 | if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then | |
21608 | ||
21609 | cat >>confdefs.h <<\_ACEOF | |
21610 | #define THREAD_DB_HAS_TD_NOTLS 1 | |
21611 | _ACEOF | |
21612 | ||
3f47be5c EZ |
21613 | fi |
21614 | ||
b757528f | 21615 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
b4e70030 JB |
21616 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
21617 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 | |
bec39cab AC |
21618 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then |
21619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21620 | else | |
21621 | cat >conftest.$ac_ext <<_ACEOF | |
21622 | /* confdefs.h. */ | |
21623 | _ACEOF | |
21624 | cat confdefs.h >>conftest.$ac_ext | |
21625 | cat >>conftest.$ac_ext <<_ACEOF | |
21626 | /* end confdefs.h. */ | |
b757528f | 21627 | #include <sys/syscall.h> |
bec39cab AC |
21628 | int |
21629 | main () | |
21630 | { | |
b757528f | 21631 | int i = __NR_tkill; |
bec39cab AC |
21632 | ; |
21633 | return 0; | |
21634 | } | |
21635 | _ACEOF | |
21636 | rm -f conftest.$ac_objext | |
21637 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21638 | (eval $ac_compile) 2>conftest.er1 | |
21639 | ac_status=$? | |
21640 | grep -v '^ *+' conftest.er1 >conftest.err | |
21641 | rm -f conftest.er1 | |
21642 | cat conftest.err >&5 | |
21643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21644 | (exit $ac_status); } && | |
b4e70030 JB |
21645 | { ac_try='test -z "$ac_c_werror_flag" |
21646 | || test ! -s conftest.err' | |
bec39cab AC |
21647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21648 | (eval $ac_try) 2>&5 | |
21649 | ac_status=$? | |
21650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21651 | (exit $ac_status); }; } && | |
21652 | { ac_try='test -s conftest.$ac_objext' | |
21653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21654 | (eval $ac_try) 2>&5 | |
21655 | ac_status=$? | |
21656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21657 | (exit $ac_status); }; }; then | |
b757528f JJ |
21658 | gdb_cv_sys_syscall_h_has_tkill=yes |
21659 | else | |
bec39cab AC |
21660 | echo "$as_me: failed program was:" >&5 |
21661 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21662 | ||
b4e70030 | 21663 | gdb_cv_sys_syscall_h_has_tkill=no |
bec39cab | 21664 | |
b757528f | 21665 | fi |
bec39cab | 21666 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b757528f | 21667 | |
bec39cab | 21668 | fi |
b4e70030 JB |
21669 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 |
21670 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 | |
b757528f JJ |
21671 | fi |
21672 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then | |
bec39cab AC |
21673 | |
21674 | cat >>confdefs.h <<\_ACEOF | |
b757528f | 21675 | #define HAVE_TKILL_SYSCALL 1 |
bec39cab | 21676 | _ACEOF |
b757528f JJ |
21677 | |
21678 | fi | |
21679 | ||
fb40c209 | 21680 | |
bec39cab | 21681 | |
b4e70030 | 21682 | # Check whether --with-sysroot or --without-sysroot was given. |
030292b7 | 21683 | if test "${with_sysroot+set}" = set; then |
b4e70030 JB |
21684 | withval="$with_sysroot" |
21685 | ||
030292b7 | 21686 | case ${with_sysroot} in |
715d1656 | 21687 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
030292b7 DJ |
21688 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
21689 | esac | |
21690 | ||
21691 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
21692 | ||
07abfebf RS |
21693 | if test "x$prefix" = xNONE; then |
21694 | test_prefix=/usr/local | |
21695 | else | |
21696 | test_prefix=$prefix | |
21697 | fi | |
aa28a74e | 21698 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
07abfebf | 21699 | test_exec_prefix=$test_prefix |
030292b7 | 21700 | else |
07abfebf | 21701 | test_exec_prefix=$exec_prefix |
030292b7 DJ |
21702 | fi |
21703 | case ${TARGET_SYSTEM_ROOT} in | |
715d1656 | 21704 | "${test_prefix}"|"${test_prefix}/"*|\ |
07abfebf RS |
21705 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ |
21706 | '${prefix}'|'${prefix}/'*|\ | |
715d1656 | 21707 | '${exec_prefix}'|'${exec_prefix}/'*) |
030292b7 DJ |
21708 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
21709 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
21710 | ;; | |
21711 | esac | |
21712 | ||
21713 | else | |
bec39cab | 21714 | |
030292b7 DJ |
21715 | TARGET_SYSTEM_ROOT= |
21716 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
21717 | ||
b4e70030 | 21718 | fi; |
030292b7 DJ |
21719 | |
21720 | ||
21721 | ||
b4e70030 | 21722 | # Check whether --enable-werror or --disable-werror was given. |
094a342e | 21723 | if test "${enable_werror+set}" = set; then |
b4e70030 JB |
21724 | enableval="$enable_werror" |
21725 | case "${enableval}" in | |
094a342e MK |
21726 | yes | y) ERROR_ON_WARNING="yes" ;; |
21727 | no | n) ERROR_ON_WARNING="no" ;; | |
21728 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
21729 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
21730 | { (exit 1); exit 1; }; } ;; | |
21731 | esac | |
b4e70030 | 21732 | fi; |
094a342e MK |
21733 | |
21734 | # Enable -Werror by default when using gcc | |
21735 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
21736 | ERROR_ON_WARNING=yes | |
21737 | fi | |
21738 | ||
21739 | WERROR_CFLAGS="" | |
21740 | if test "${ERROR_ON_WARNING}" = yes ; then | |
21741 | WERROR_CFLAGS="-Werror" | |
21742 | fi | |
21743 | ||
aa79a185 DJ |
21744 | # The entries after -Wno-pointer-sign are disabled warnings which may |
21745 | # be enabled in the future, which can not currently be used to build | |
21746 | # GDB. | |
21747 | # NOTE: If you change this list, remember to update | |
3b851bce | 21748 | # gdb/doc/gdbint.texinfo. |
aa79a185 DJ |
21749 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
21750 | -Wformat-nonliteral -Wno-pointer-sign \ | |
58b38ee2 | 21751 | -Wno-unused -Wno-switch -Wno-char-subscripts" |
a3b362c4 | 21752 | |
b4e70030 | 21753 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
c906108c | 21754 | if test "${enable_build_warnings+set}" = set; then |
b4e70030 JB |
21755 | enableval="$enable_build_warnings" |
21756 | case "${enableval}" in | |
c906108c SS |
21757 | yes) ;; |
21758 | no) build_warnings="-w";; | |
21759 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21760 | build_warnings="${build_warnings} ${t}";; | |
21761 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21762 | build_warnings="${t} ${build_warnings}";; | |
21763 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
21764 | esac | |
d4f3574e | 21765 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
746a987d | 21766 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
c906108c | 21767 | fi |
b4e70030 | 21768 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
3b851bce | 21769 | if test "${enable_gdb_build_warnings+set}" = set; then |
b4e70030 JB |
21770 | enableval="$enable_gdb_build_warnings" |
21771 | case "${enableval}" in | |
3b851bce AC |
21772 | yes) ;; |
21773 | no) build_warnings="-w";; | |
21774 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21775 | build_warnings="${build_warnings} ${t}";; | |
21776 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21777 | build_warnings="${t} ${build_warnings}";; | |
21778 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
21779 | esac | |
21780 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
21781 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
21782 | fi | |
b4e70030 | 21783 | fi; WARN_CFLAGS="" |
c906108c SS |
21784 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
21785 | then | |
b4e70030 JB |
21786 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
21787 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
746a987d AC |
21788 | # Separate out the -Werror flag as some files just cannot be |
21789 | # compiled with it enabled. | |
21790 | for w in ${build_warnings}; do | |
21791 | case $w in | |
21792 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
21793 | *) # Check that GCC accepts it | |
4536bbc6 AC |
21794 | saved_CFLAGS="$CFLAGS" |
21795 | CFLAGS="$CFLAGS $w" | |
bec39cab AC |
21796 | cat >conftest.$ac_ext <<_ACEOF |
21797 | /* confdefs.h. */ | |
21798 | _ACEOF | |
21799 | cat confdefs.h >>conftest.$ac_ext | |
21800 | cat >>conftest.$ac_ext <<_ACEOF | |
21801 | /* end confdefs.h. */ | |
4536bbc6 | 21802 | |
bec39cab AC |
21803 | int |
21804 | main () | |
21805 | { | |
4536bbc6 | 21806 | |
bec39cab AC |
21807 | ; |
21808 | return 0; | |
21809 | } | |
21810 | _ACEOF | |
21811 | rm -f conftest.$ac_objext | |
21812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21813 | (eval $ac_compile) 2>conftest.er1 | |
21814 | ac_status=$? | |
21815 | grep -v '^ *+' conftest.er1 >conftest.err | |
21816 | rm -f conftest.er1 | |
21817 | cat conftest.err >&5 | |
21818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21819 | (exit $ac_status); } && | |
b4e70030 JB |
21820 | { ac_try='test -z "$ac_c_werror_flag" |
21821 | || test ! -s conftest.err' | |
bec39cab AC |
21822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21823 | (eval $ac_try) 2>&5 | |
21824 | ac_status=$? | |
21825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21826 | (exit $ac_status); }; } && | |
21827 | { ac_try='test -s conftest.$ac_objext' | |
21828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21829 | (eval $ac_try) 2>&5 | |
21830 | ac_status=$? | |
21831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21832 | (exit $ac_status); }; }; then | |
4536bbc6 AC |
21833 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
21834 | else | |
bec39cab AC |
21835 | echo "$as_me: failed program was:" >&5 |
21836 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21837 | ||
4536bbc6 | 21838 | fi |
bec39cab | 21839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4536bbc6 | 21840 | CFLAGS="$saved_CFLAGS" |
746a987d AC |
21841 | esac |
21842 | done | |
aa79a185 DJ |
21843 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
21844 | echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6 | |
c906108c SS |
21845 | fi |
21846 | ||
21847 | ||
104c1213 | 21848 | |
7a292a7a | 21849 | # In the Cygwin environment, we need some additional flags. |
b4e70030 JB |
21850 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
21851 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 | |
bec39cab AC |
21852 | if test "${gdb_cv_os_cygwin+set}" = set; then |
21853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21854 | else | |
21855 | cat >conftest.$ac_ext <<_ACEOF | |
21856 | /* confdefs.h. */ | |
21857 | _ACEOF | |
21858 | cat confdefs.h >>conftest.$ac_ext | |
21859 | cat >>conftest.$ac_ext <<_ACEOF | |
21860 | /* end confdefs.h. */ | |
7a292a7a SS |
21861 | |
21862 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) | |
21863 | lose | |
21864 | #endif | |
bec39cab | 21865 | _ACEOF |
7a292a7a | 21866 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 21867 | $EGREP "lose" >/dev/null 2>&1; then |
7a292a7a SS |
21868 | gdb_cv_os_cygwin=yes |
21869 | else | |
7a292a7a SS |
21870 | gdb_cv_os_cygwin=no |
21871 | fi | |
21872 | rm -f conftest* | |
21873 | ||
21874 | fi | |
b4e70030 JB |
21875 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
21876 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 | |
7a292a7a | 21877 | |
aff38e61 | 21878 | |
3eb25fda | 21879 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
aff38e61 | 21880 | case ${host} in |
95cbc983 AC |
21881 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
21882 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; | |
0ea3f30e | 21883 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; |
aff38e61 AC |
21884 | esac |
21885 | ||
21886 | ||
cd0fc7c3 SS |
21887 | # libreadline needs libuser32.a in a cygwin environment |
21888 | WIN32LIBS= | |
21889 | if test x$gdb_cv_os_cygwin = xyes; then | |
c5394b80 JM |
21890 | WIN32LIBS="-luser32" |
21891 | case "${target}" in | |
21892 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" | |
21893 | ;; | |
21894 | esac | |
cd0fc7c3 | 21895 | fi |
c906108c | 21896 | |
b4505029 MM |
21897 | # The ser-tcp.c module requires sockets. |
21898 | case ${host} in | |
21899 | *mingw32*) | |
21900 | ||
21901 | cat >>confdefs.h <<\_ACEOF | |
21902 | #define USE_WIN32API 1 | |
21903 | _ACEOF | |
21904 | ||
21905 | WIN32LIBS="$WIN32LIBS -lws2_32" | |
21906 | ;; | |
21907 | esac | |
21908 | ||
7a292a7a | 21909 | |
31d99776 DJ |
21910 | # Add ELF support to GDB, but only if BFD includes ELF support. |
21911 | OLD_CFLAGS=$CFLAGS | |
21912 | OLD_LDFLAGS=$LDFLAGS | |
21913 | OLD_LIBS=$LIBS | |
cab58a69 | 21914 | CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" |
31d99776 | 21915 | LDFLAGS="$LDFLAGS -L../bfd -L../libiberty" |
7921a279 | 21916 | LIBS="$LIBS -lbfd -liberty $LIBINTL" |
31d99776 DJ |
21917 | echo "$as_me:$LINENO: checking for ELF support in BFD" >&5 |
21918 | echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6 | |
21919 | if test "${gdb_cv_var_elf+set}" = set; then | |
21920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21921 | else | |
21922 | cat >conftest.$ac_ext <<_ACEOF | |
21923 | /* confdefs.h. */ | |
21924 | _ACEOF | |
21925 | cat confdefs.h >>conftest.$ac_ext | |
21926 | cat >>conftest.$ac_ext <<_ACEOF | |
21927 | /* end confdefs.h. */ | |
21928 | #include <stdlib.h> | |
21929 | #include "bfd.h" | |
21930 | #include "elf-bfd.h" | |
21931 | ||
21932 | int | |
21933 | main () | |
21934 | { | |
21935 | bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd); | |
21936 | ; | |
21937 | return 0; | |
21938 | } | |
21939 | _ACEOF | |
21940 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21941 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21942 | (eval $ac_link) 2>conftest.er1 | |
21943 | ac_status=$? | |
21944 | grep -v '^ *+' conftest.er1 >conftest.err | |
21945 | rm -f conftest.er1 | |
21946 | cat conftest.err >&5 | |
21947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21948 | (exit $ac_status); } && | |
21949 | { ac_try='test -z "$ac_c_werror_flag" | |
21950 | || test ! -s conftest.err' | |
21951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21952 | (eval $ac_try) 2>&5 | |
21953 | ac_status=$? | |
21954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21955 | (exit $ac_status); }; } && | |
21956 | { ac_try='test -s conftest$ac_exeext' | |
21957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21958 | (eval $ac_try) 2>&5 | |
21959 | ac_status=$? | |
21960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21961 | (exit $ac_status); }; }; then | |
21962 | gdb_cv_var_elf=yes | |
21963 | else | |
21964 | echo "$as_me: failed program was:" >&5 | |
21965 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21966 | ||
21967 | gdb_cv_var_elf=no | |
21968 | fi | |
21969 | rm -f conftest.err conftest.$ac_objext \ | |
21970 | conftest$ac_exeext conftest.$ac_ext | |
21971 | fi | |
21972 | echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5 | |
21973 | echo "${ECHO_T}$gdb_cv_var_elf" >&6 | |
21974 | if test $gdb_cv_var_elf = yes; then | |
21975 | CONFIG_OBS="$CONFIG_OBS elfread.o" | |
21976 | ||
21977 | cat >>confdefs.h <<\_ACEOF | |
21978 | #define HAVE_ELF 1 | |
21979 | _ACEOF | |
21980 | ||
21981 | fi | |
21982 | CFLAGS=$OLD_CFLAGS | |
21983 | LDFLAGS=$OLD_LDFLAGS | |
21984 | LIBS=$OLD_LIBS | |
21985 | ||
121ce6e5 DJ |
21986 | # Add any host-specific objects to GDB. |
21987 | CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" | |
21988 | ||
3fc11d3e JM |
21989 | LIBGUI="../libgui/src/libgui.a" |
21990 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
21991 | ||
21992 | ||
7a292a7a | 21993 | |
3fc11d3e JM |
21994 | WIN32LDAPP= |
21995 | ||
21996 | ||
21997 | ||
d91670b9 CV |
21998 | case "${host}" in |
21999 | *-*-cygwin*) | |
22000 | configdir="win" | |
22001 | ;; | |
22002 | *) | |
22003 | configdir="unix" | |
22004 | ;; | |
22005 | esac | |
3fc11d3e JM |
22006 | |
22007 | GDBTKLIBS= | |
22008 | if test "${enable_gdbtk}" = "yes"; then | |
22009 | ||
d1c3b63a KS |
22010 | # Gdbtk must have an absolute path to srcdir in order to run |
22011 | # properly when not installed. | |
22012 | here=`pwd` | |
22013 | cd ${srcdir} | |
22014 | GDBTK_SRC_DIR=`pwd` | |
22015 | cd $here | |
22016 | ||
bec39cab | 22017 | |
3fc11d3e JM |
22018 | # |
22019 | # Ok, lets find the tcl configuration | |
bec39cab | 22020 | # First, look for one uninstalled. |
3fc11d3e JM |
22021 | # the alternative search directory is invoked by --with-tclconfig |
22022 | # | |
22023 | ||
22024 | if test x"${no_tcl}" = x ; then | |
22025 | # we reset no_tcl in case something fails here | |
22026 | no_tcl=true | |
bec39cab | 22027 | |
b4e70030 | 22028 | # Check whether --with-tclconfig or --without-tclconfig was given. |
3fc11d3e | 22029 | if test "${with_tclconfig+set}" = set; then |
b4e70030 JB |
22030 | withval="$with_tclconfig" |
22031 | with_tclconfig=${withval} | |
22032 | fi; | |
22033 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 | |
22034 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 | |
bec39cab AC |
22035 | if test "${ac_cv_c_tclconfig+set}" = set; then |
22036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22037 | else |
bec39cab | 22038 | |
3fc11d3e JM |
22039 | |
22040 | # First check to see if --with-tclconfig was specified. | |
22041 | if test x"${with_tclconfig}" != x ; then | |
22042 | if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
22043 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
22044 | else | |
bec39cab AC |
22045 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
22046 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} | |
22047 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22048 | fi |
22049 | fi | |
22050 | ||
22051 | # then check for a private Tcl installation | |
22052 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22053 | for i in \ | |
22054 | ../tcl \ | |
22055 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ | |
22056 | ../../tcl \ | |
22057 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ | |
22058 | ../../../tcl \ | |
22059 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do | |
22060 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
22061 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
22062 | break | |
22063 | fi | |
22064 | done | |
22065 | fi | |
22066 | # check in a few common install locations | |
22067 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22068 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22069 | if test -f "$i/tclConfig.sh" ; then | |
22070 | ac_cv_c_tclconfig=`(cd $i; pwd)` | |
22071 | break | |
22072 | fi | |
22073 | done | |
22074 | fi | |
22075 | # check in a few other private locations | |
22076 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22077 | for i in \ | |
22078 | ${srcdir}/../tcl \ | |
22079 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do | |
22080 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
22081 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
22082 | break | |
22083 | fi | |
22084 | done | |
22085 | fi | |
bec39cab | 22086 | |
3fc11d3e JM |
22087 | fi |
22088 | ||
22089 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22090 | TCLCONFIG="# no Tcl configs found" | |
bec39cab AC |
22091 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
22092 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} | |
3fc11d3e JM |
22093 | else |
22094 | no_tcl= | |
22095 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh | |
b4e70030 JB |
22096 | echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5 |
22097 | echo "${ECHO_T}found $TCLCONFIG" >&6 | |
3fc11d3e JM |
22098 | fi |
22099 | fi | |
22100 | ||
22101 | if test -z "${no_tcl}"; then | |
bec39cab | 22102 | |
3fc11d3e JM |
22103 | . $TCLCONFIG |
22104 | ||
3fc11d3e JM |
22105 | |
22106 | ||
22107 | ||
22108 | ||
3fc11d3e JM |
22109 | |
22110 | ||
22111 | ||
bec39cab AC |
22112 | |
22113 | ||
22114 | ||
22115 | ||
22116 | ||
22117 | ||
22118 | ||
22119 | ||
22120 | ||
22121 | ||
22122 | ||
22123 | ||
22124 | ||
22125 | ||
22126 | ||
22127 | ||
22128 | ||
22129 | ||
22130 | ||
3fc11d3e JM |
22131 | # |
22132 | # Ok, lets find the tk configuration | |
bec39cab | 22133 | # First, look for one uninstalled. |
3fc11d3e JM |
22134 | # the alternative search directory is invoked by --with-tkconfig |
22135 | # | |
22136 | ||
22137 | if test x"${no_tk}" = x ; then | |
22138 | # we reset no_tk in case something fails here | |
22139 | no_tk=true | |
bec39cab | 22140 | |
b4e70030 | 22141 | # Check whether --with-tkconfig or --without-tkconfig was given. |
3fc11d3e | 22142 | if test "${with_tkconfig+set}" = set; then |
b4e70030 JB |
22143 | withval="$with_tkconfig" |
22144 | with_tkconfig=${withval} | |
22145 | fi; | |
22146 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 | |
22147 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 | |
bec39cab AC |
22148 | if test "${ac_cv_c_tkconfig+set}" = set; then |
22149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22150 | else |
bec39cab | 22151 | |
3fc11d3e JM |
22152 | |
22153 | # First check to see if --with-tkconfig was specified. | |
22154 | if test x"${with_tkconfig}" != x ; then | |
22155 | if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
22156 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
22157 | else | |
bec39cab AC |
22158 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
22159 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} | |
22160 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22161 | fi |
22162 | fi | |
22163 | ||
22164 | # then check for a private Tk library | |
22165 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22166 | for i in \ | |
22167 | ../tk \ | |
22168 | `ls -dr ../tk[4-9]* 2>/dev/null` \ | |
22169 | ../../tk \ | |
22170 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ | |
22171 | ../../../tk \ | |
22172 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do | |
22173 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
22174 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
22175 | break | |
22176 | fi | |
22177 | done | |
22178 | fi | |
22179 | # check in a few common install locations | |
22180 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22181 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22182 | if test -f "$i/tkConfig.sh" ; then | |
22183 | ac_cv_c_tkconfig=`(cd $i; pwd)` | |
22184 | break | |
22185 | fi | |
22186 | done | |
22187 | fi | |
22188 | # check in a few other private locations | |
22189 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22190 | for i in \ | |
22191 | ${srcdir}/../tk \ | |
22192 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do | |
22193 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
22194 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
22195 | break | |
22196 | fi | |
22197 | done | |
22198 | fi | |
bec39cab | 22199 | |
3fc11d3e JM |
22200 | fi |
22201 | ||
22202 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22203 | TKCONFIG="# no Tk configs found" | |
bec39cab AC |
22204 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
22205 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} | |
3fc11d3e JM |
22206 | else |
22207 | no_tk= | |
22208 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh | |
b4e70030 JB |
22209 | echo "$as_me:$LINENO: result: found $TKCONFIG" >&5 |
22210 | echo "${ECHO_T}found $TKCONFIG" >&6 | |
3fc11d3e JM |
22211 | fi |
22212 | fi | |
22213 | ||
22214 | ||
22215 | ||
dd2504ab JM |
22216 | # now look for Tcl library stuff |
22217 | ||
d91670b9 | 22218 | tcldir="../tcl/${configdir}/" |
dd2504ab JM |
22219 | |
22220 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" | |
22221 | ||
3fc11d3e JM |
22222 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
22223 | # point to doing Tcl. | |
22224 | if test -z "${no_tk}"; then | |
bec39cab | 22225 | |
3fc11d3e JM |
22226 | if test -f "$TKCONFIG" ; then |
22227 | . $TKCONFIG | |
22228 | fi | |
22229 | ||
3fc11d3e | 22230 | |
3fc11d3e JM |
22231 | |
22232 | ||
3fc11d3e | 22233 | |
bec39cab AC |
22234 | |
22235 | ||
22236 | ||
22237 | ||
22238 | ||
22239 | ||
22240 | ||
22241 | ||
22242 | ||
3fc11d3e JM |
22243 | # |
22244 | # Ok, lets find the tcl source trees so we can use the headers | |
22245 | # Warning: transition of version 9 to 10 will break this algorithm | |
22246 | # because 10 sorts before 9. We also look for just tcl. We have to | |
22247 | # be careful that we don't match stuff like tclX by accident. | |
22248 | # the alternative search directory is involked by --with-tclinclude | |
22249 | # | |
22250 | ||
22251 | no_tcl=true | |
b4e70030 JB |
22252 | echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5 |
22253 | echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6 | |
bec39cab | 22254 | |
b4e70030 | 22255 | # Check whether --with-tclinclude or --without-tclinclude was given. |
3fc11d3e | 22256 | if test "${with_tclinclude+set}" = set; then |
b4e70030 JB |
22257 | withval="$with_tclinclude" |
22258 | with_tclinclude=${withval} | |
22259 | fi; | |
bec39cab AC |
22260 | if test "${ac_cv_c_tclh+set}" = set; then |
22261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22262 | else |
bec39cab | 22263 | |
3fc11d3e JM |
22264 | # first check to see if --with-tclinclude was specified |
22265 | if test x"${with_tclinclude}" != x ; then | |
22266 | if test -f ${with_tclinclude}/tclInt.h ; then | |
22267 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` | |
22268 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then | |
22269 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` | |
22270 | else | |
bec39cab AC |
22271 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5 |
22272 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;} | |
22273 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22274 | fi |
22275 | fi | |
22276 | ||
22277 | # next check if it came with Tcl configuration file | |
22278 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22279 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then | |
22280 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` | |
22281 | fi | |
22282 | fi | |
22283 | ||
22284 | # next check in private source directory | |
22285 | # | |
22286 | # since ls returns lowest version numbers first, reverse its output | |
22287 | if test x"${ac_cv_c_tclh}" = x ; then | |
22288 | for i in \ | |
22289 | ${srcdir}/../tcl \ | |
22290 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ | |
22291 | ${srcdir}/../../tcl \ | |
22292 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ | |
22293 | ${srcdir}/../../../tcl \ | |
22294 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do | |
22295 | if test -f $i/generic/tclInt.h ; then | |
22296 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
22297 | break | |
22298 | fi | |
22299 | done | |
22300 | fi | |
22301 | # finally check in a few common install locations | |
22302 | # | |
22303 | # since ls returns lowest version numbers first, reverse its output | |
22304 | if test x"${ac_cv_c_tclh}" = x ; then | |
22305 | for i in \ | |
22306 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ | |
22307 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ | |
22308 | /usr/local/src/tcl \ | |
22309 | /usr/local/lib/tcl \ | |
22310 | ${prefix}/include ; do | |
22311 | if test -f $i/generic/tclInt.h ; then | |
22312 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
22313 | break | |
22314 | fi | |
22315 | done | |
22316 | fi | |
22317 | # see if one is installed | |
22318 | if test x"${ac_cv_c_tclh}" = x ; then | |
bec39cab | 22319 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
b4e70030 JB |
22320 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
22321 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
bec39cab AC |
22322 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
22323 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22324 | fi | |
b4e70030 JB |
22325 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
22326 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
bec39cab AC |
22327 | else |
22328 | # Is the header compilable? | |
b4e70030 JB |
22329 | echo "$as_me:$LINENO: checking tclInt.h usability" >&5 |
22330 | echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6 | |
bec39cab AC |
22331 | cat >conftest.$ac_ext <<_ACEOF |
22332 | /* confdefs.h. */ | |
22333 | _ACEOF | |
22334 | cat confdefs.h >>conftest.$ac_ext | |
22335 | cat >>conftest.$ac_ext <<_ACEOF | |
22336 | /* end confdefs.h. */ | |
22337 | $ac_includes_default | |
22338 | #include <tclInt.h> | |
22339 | _ACEOF | |
22340 | rm -f conftest.$ac_objext | |
22341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22342 | (eval $ac_compile) 2>conftest.er1 | |
22343 | ac_status=$? | |
22344 | grep -v '^ *+' conftest.er1 >conftest.err | |
22345 | rm -f conftest.er1 | |
22346 | cat conftest.err >&5 | |
22347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22348 | (exit $ac_status); } && | |
b4e70030 JB |
22349 | { ac_try='test -z "$ac_c_werror_flag" |
22350 | || test ! -s conftest.err' | |
bec39cab AC |
22351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22352 | (eval $ac_try) 2>&5 | |
22353 | ac_status=$? | |
22354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22355 | (exit $ac_status); }; } && | |
22356 | { ac_try='test -s conftest.$ac_objext' | |
22357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22358 | (eval $ac_try) 2>&5 | |
22359 | ac_status=$? | |
22360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22361 | (exit $ac_status); }; }; then | |
22362 | ac_header_compiler=yes | |
22363 | else | |
22364 | echo "$as_me: failed program was:" >&5 | |
22365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22366 | ||
b4e70030 | 22367 | ac_header_compiler=no |
bec39cab AC |
22368 | fi |
22369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
22370 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22371 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
22372 | |
22373 | # Is the header present? | |
b4e70030 JB |
22374 | echo "$as_me:$LINENO: checking tclInt.h presence" >&5 |
22375 | echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6 | |
bec39cab AC |
22376 | cat >conftest.$ac_ext <<_ACEOF |
22377 | /* confdefs.h. */ | |
22378 | _ACEOF | |
22379 | cat confdefs.h >>conftest.$ac_ext | |
22380 | cat >>conftest.$ac_ext <<_ACEOF | |
22381 | /* end confdefs.h. */ | |
3fc11d3e | 22382 | #include <tclInt.h> |
bec39cab AC |
22383 | _ACEOF |
22384 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22385 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22386 | ac_status=$? | |
22387 | grep -v '^ *+' conftest.er1 >conftest.err | |
22388 | rm -f conftest.er1 | |
22389 | cat conftest.err >&5 | |
22390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22391 | (exit $ac_status); } >/dev/null; then | |
22392 | if test -s conftest.err; then | |
22393 | ac_cpp_err=$ac_c_preproc_warn_flag | |
22394 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
22395 | else | |
22396 | ac_cpp_err= | |
22397 | fi | |
22398 | else | |
22399 | ac_cpp_err=yes | |
3fc11d3e | 22400 | fi |
bec39cab AC |
22401 | if test -z "$ac_cpp_err"; then |
22402 | ac_header_preproc=yes | |
22403 | else | |
22404 | echo "$as_me: failed program was:" >&5 | |
22405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22406 | ||
22407 | ac_header_preproc=no | |
3fc11d3e | 22408 | fi |
bec39cab | 22409 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
22410 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22411 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
22412 | |
22413 | # So? What about this header? | |
22414 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22415 | yes:no: ) | |
22416 | { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22417 | echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22418 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5 | |
22419 | echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;} | |
22420 | ac_header_preproc=yes | |
22421 | ;; | |
22422 | no:yes:* ) | |
22423 | { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5 | |
22424 | echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;} | |
22425 | { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5 | |
22426 | echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;} | |
22427 | { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5 | |
22428 | echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;} | |
22429 | { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22430 | echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
22431 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5 | |
22432 | echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;} | |
22433 | { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5 | |
22434 | echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
22435 | ( |
22436 | cat <<\_ASBOX | |
22437 | ## ------------------------------------------ ## | |
22438 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
22439 | ## ------------------------------------------ ## | |
22440 | _ASBOX | |
22441 | ) | | |
22442 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
22443 | ;; |
22444 | esac | |
b4e70030 JB |
22445 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
22446 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
bec39cab AC |
22447 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
22448 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22449 | else | |
22450 | ac_cv_header_tclInt_h=$ac_header_preproc | |
22451 | fi | |
b4e70030 JB |
22452 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
22453 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
bec39cab AC |
22454 | |
22455 | fi | |
22456 | if test $ac_cv_header_tclInt_h = yes; then | |
3fc11d3e JM |
22457 | ac_cv_c_tclh=installed |
22458 | else | |
bec39cab | 22459 | ac_cv_c_tclh="" |
3fc11d3e JM |
22460 | fi |
22461 | ||
bec39cab | 22462 | |
3fc11d3e JM |
22463 | fi |
22464 | ||
22465 | fi | |
22466 | ||
22467 | if test x"${ac_cv_c_tclh}" = x ; then | |
22468 | TCLHDIR="# no Tcl private headers found" | |
bec39cab AC |
22469 | { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5 |
22470 | echo "$as_me: error: Can't find Tcl private headers" >&2;} | |
22471 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22472 | fi |
22473 | if test x"${ac_cv_c_tclh}" != x ; then | |
22474 | no_tcl="" | |
22475 | if test x"${ac_cv_c_tclh}" = x"installed" ; then | |
b4e70030 JB |
22476 | echo "$as_me:$LINENO: result: is installed" >&5 |
22477 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
22478 | TCLHDIR="" |
22479 | else | |
b4e70030 JB |
22480 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5 |
22481 | echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6 | |
3fc11d3e JM |
22482 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
22483 | TCLHDIR="-I${ac_cv_c_tclh}" | |
22484 | fi | |
22485 | fi | |
22486 | ||
22487 | ||
22488 | ||
bec39cab | 22489 | |
3fc11d3e JM |
22490 | # |
22491 | # Ok, lets find the tk source trees so we can use the headers | |
22492 | # If the directory (presumably symlink) named "tk" exists, use that one | |
22493 | # in preference to any others. Same logic is used when choosing library | |
22494 | # and again with Tcl. The search order is the best place to look first, then in | |
22495 | # decreasing significance. The loop breaks if the trigger file is found. | |
22496 | # Note the gross little conversion here of srcdir by cd'ing to the found | |
22497 | # directory. This converts the path from a relative to an absolute, so | |
22498 | # recursive cache variables for the path will work right. We check all | |
22499 | # the possible paths in one loop rather than many seperate loops to speed | |
22500 | # things up. | |
22501 | # the alternative search directory is involked by --with-tkinclude | |
22502 | # | |
22503 | no_tk=true | |
b4e70030 JB |
22504 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
22505 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 | |
bec39cab | 22506 | |
b4e70030 | 22507 | # Check whether --with-tkinclude or --without-tkinclude was given. |
3fc11d3e | 22508 | if test "${with_tkinclude+set}" = set; then |
b4e70030 JB |
22509 | withval="$with_tkinclude" |
22510 | with_tkinclude=${withval} | |
22511 | fi; | |
bec39cab AC |
22512 | if test "${ac_cv_c_tkh+set}" = set; then |
22513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22514 | else |
bec39cab | 22515 | |
3fc11d3e JM |
22516 | # first check to see if --with-tkinclude was specified |
22517 | if test x"${with_tkinclude}" != x ; then | |
22518 | if test -f ${with_tkinclude}/tk.h ; then | |
22519 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` | |
22520 | elif test -f ${with_tkinclude}/generic/tk.h ; then | |
22521 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` | |
22522 | else | |
bec39cab AC |
22523 | { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5 |
22524 | echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;} | |
22525 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22526 | fi |
22527 | fi | |
22528 | ||
22529 | # next check if it came with Tk configuration file | |
22530 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22531 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then | |
22532 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` | |
22533 | fi | |
22534 | fi | |
22535 | ||
22536 | # next check in private source directory | |
22537 | # | |
22538 | # since ls returns lowest version numbers first, reverse its output | |
22539 | if test x"${ac_cv_c_tkh}" = x ; then | |
22540 | for i in \ | |
22541 | ${srcdir}/../tk \ | |
22542 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ | |
22543 | ${srcdir}/../../tk \ | |
22544 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ | |
22545 | ${srcdir}/../../../tk \ | |
22546 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do | |
22547 | if test -f $i/generic/tk.h ; then | |
22548 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
22549 | break | |
22550 | fi | |
22551 | done | |
22552 | fi | |
22553 | # finally check in a few common install locations | |
22554 | # | |
22555 | # since ls returns lowest version numbers first, reverse its output | |
22556 | if test x"${ac_cv_c_tkh}" = x ; then | |
22557 | for i in \ | |
22558 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ | |
22559 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ | |
22560 | /usr/local/src/tk \ | |
22561 | /usr/local/lib/tk \ | |
22562 | ${prefix}/include ; do | |
22563 | if test -f $i/generic/tk.h ; then | |
22564 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
22565 | break | |
22566 | fi | |
22567 | done | |
22568 | fi | |
22569 | # see if one is installed | |
22570 | if test x"${ac_cv_c_tkh}" = x ; then | |
bec39cab | 22571 | if test "${ac_cv_header_tk_h+set}" = set; then |
b4e70030 JB |
22572 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
22573 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
bec39cab AC |
22574 | if test "${ac_cv_header_tk_h+set}" = set; then |
22575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22576 | fi | |
b4e70030 JB |
22577 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
22578 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
bec39cab AC |
22579 | else |
22580 | # Is the header compilable? | |
b4e70030 JB |
22581 | echo "$as_me:$LINENO: checking tk.h usability" >&5 |
22582 | echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6 | |
bec39cab AC |
22583 | cat >conftest.$ac_ext <<_ACEOF |
22584 | /* confdefs.h. */ | |
22585 | _ACEOF | |
22586 | cat confdefs.h >>conftest.$ac_ext | |
22587 | cat >>conftest.$ac_ext <<_ACEOF | |
22588 | /* end confdefs.h. */ | |
22589 | $ac_includes_default | |
3fc11d3e | 22590 | #include <tk.h> |
bec39cab AC |
22591 | _ACEOF |
22592 | rm -f conftest.$ac_objext | |
22593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22594 | (eval $ac_compile) 2>conftest.er1 | |
22595 | ac_status=$? | |
22596 | grep -v '^ *+' conftest.er1 >conftest.err | |
22597 | rm -f conftest.er1 | |
22598 | cat conftest.err >&5 | |
22599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22600 | (exit $ac_status); } && | |
b4e70030 JB |
22601 | { ac_try='test -z "$ac_c_werror_flag" |
22602 | || test ! -s conftest.err' | |
bec39cab AC |
22603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22604 | (eval $ac_try) 2>&5 | |
22605 | ac_status=$? | |
22606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22607 | (exit $ac_status); }; } && | |
22608 | { ac_try='test -s conftest.$ac_objext' | |
22609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22610 | (eval $ac_try) 2>&5 | |
22611 | ac_status=$? | |
22612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22613 | (exit $ac_status); }; }; then | |
22614 | ac_header_compiler=yes | |
22615 | else | |
22616 | echo "$as_me: failed program was:" >&5 | |
22617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22618 | ||
b4e70030 | 22619 | ac_header_compiler=no |
bec39cab AC |
22620 | fi |
22621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
22622 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22623 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
22624 | |
22625 | # Is the header present? | |
b4e70030 JB |
22626 | echo "$as_me:$LINENO: checking tk.h presence" >&5 |
22627 | echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6 | |
bec39cab AC |
22628 | cat >conftest.$ac_ext <<_ACEOF |
22629 | /* confdefs.h. */ | |
22630 | _ACEOF | |
22631 | cat confdefs.h >>conftest.$ac_ext | |
22632 | cat >>conftest.$ac_ext <<_ACEOF | |
22633 | /* end confdefs.h. */ | |
22634 | #include <tk.h> | |
22635 | _ACEOF | |
22636 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22637 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22638 | ac_status=$? | |
22639 | grep -v '^ *+' conftest.er1 >conftest.err | |
22640 | rm -f conftest.er1 | |
22641 | cat conftest.err >&5 | |
22642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22643 | (exit $ac_status); } >/dev/null; then | |
22644 | if test -s conftest.err; then | |
22645 | ac_cpp_err=$ac_c_preproc_warn_flag | |
22646 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
22647 | else | |
22648 | ac_cpp_err= | |
22649 | fi | |
22650 | else | |
22651 | ac_cpp_err=yes | |
3fc11d3e | 22652 | fi |
bec39cab AC |
22653 | if test -z "$ac_cpp_err"; then |
22654 | ac_header_preproc=yes | |
22655 | else | |
22656 | echo "$as_me: failed program was:" >&5 | |
22657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22658 | ||
22659 | ac_header_preproc=no | |
22660 | fi | |
22661 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
22662 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22663 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
22664 | |
22665 | # So? What about this header? | |
22666 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22667 | yes:no: ) | |
22668 | { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22669 | echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22670 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5 | |
22671 | echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;} | |
22672 | ac_header_preproc=yes | |
22673 | ;; | |
22674 | no:yes:* ) | |
22675 | { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5 | |
22676 | echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;} | |
22677 | { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5 | |
22678 | echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;} | |
22679 | { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5 | |
22680 | echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;} | |
22681 | { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22682 | echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
22683 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5 | |
22684 | echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;} | |
22685 | { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5 | |
22686 | echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
22687 | ( |
22688 | cat <<\_ASBOX | |
22689 | ## ------------------------------------------ ## | |
22690 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
22691 | ## ------------------------------------------ ## | |
22692 | _ASBOX | |
22693 | ) | | |
22694 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
22695 | ;; |
22696 | esac | |
b4e70030 JB |
22697 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
22698 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
bec39cab AC |
22699 | if test "${ac_cv_header_tk_h+set}" = set; then |
22700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22701 | else | |
22702 | ac_cv_header_tk_h=$ac_header_preproc | |
22703 | fi | |
b4e70030 JB |
22704 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
22705 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
bec39cab | 22706 | |
3fc11d3e | 22707 | fi |
bec39cab | 22708 | if test $ac_cv_header_tk_h = yes; then |
3fc11d3e JM |
22709 | ac_cv_c_tkh=installed |
22710 | else | |
bec39cab | 22711 | ac_cv_c_tkh="" |
3fc11d3e JM |
22712 | fi |
22713 | ||
bec39cab | 22714 | |
3fc11d3e JM |
22715 | fi |
22716 | ||
22717 | fi | |
22718 | ||
22719 | if test x"${ac_cv_c_tkh}" != x ; then | |
22720 | no_tk="" | |
22721 | if test x"${ac_cv_c_tkh}" = x"installed" ; then | |
b4e70030 JB |
22722 | echo "$as_me:$LINENO: result: is installed" >&5 |
22723 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
22724 | TKHDIR="" |
22725 | else | |
b4e70030 JB |
22726 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5 |
22727 | echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6 | |
3fc11d3e JM |
22728 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
22729 | TKHDIR="-I${ac_cv_c_tkh}" | |
22730 | fi | |
22731 | else | |
22732 | TKHDIR="# no Tk directory found" | |
bec39cab AC |
22733 | { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5 |
22734 | echo "$as_me: WARNING: Can't find Tk private headers" >&2;} | |
3fc11d3e JM |
22735 | no_tk=true |
22736 | fi | |
22737 | ||
22738 | ||
22739 | ||
bec39cab | 22740 | |
b4e70030 JB |
22741 | echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5 |
22742 | echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
22743 | if test x"${ac_cv_c_itclh}" = x ; then |
22744 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do | |
22745 | if test -f $i/generic/itcl.h ; then | |
22746 | ac_cv_c_itclh=`(cd $i/generic; pwd)` | |
22747 | break | |
22748 | fi | |
22749 | done | |
22750 | fi | |
22751 | if test x"${ac_cv_c_itclh}" = x ; then | |
22752 | ITCLHDIR="# no Itcl private headers found" | |
bec39cab AC |
22753 | { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5 |
22754 | echo "$as_me: error: Can't find Itcl private headers" >&2;} | |
22755 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22756 | fi |
22757 | if test x"${ac_cv_c_itclh}" != x ; then | |
22758 | ITCLHDIR="-I${ac_cv_c_itclh}" | |
22759 | fi | |
22760 | # should always be here | |
22761 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" | |
22762 | ||
22763 | #AC_SUBST(ITCLLIB) | |
22764 | ||
bec39cab | 22765 | |
b4e70030 JB |
22766 | echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5 |
22767 | echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
22768 | if test x"${ac_cv_c_itkh}" = x ; then |
22769 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do | |
22770 | if test -f $i/generic/itk.h ; then | |
22771 | ac_cv_c_itkh=`(cd $i/generic; pwd)` | |
22772 | break | |
22773 | fi | |
22774 | done | |
22775 | fi | |
22776 | if test x"${ac_cv_c_itkh}" = x ; then | |
22777 | ITKHDIR="# no Itk private headers found" | |
bec39cab AC |
22778 | { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5 |
22779 | echo "$as_me: error: Can't find Itk private headers" >&2;} | |
22780 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22781 | fi |
22782 | if test x"${ac_cv_c_itkh}" != x ; then | |
22783 | ITKHDIR="-I${ac_cv_c_itkh}" | |
22784 | fi | |
22785 | # should always be here | |
22786 | # ITKLIB="../itcl/itk/unix/libitk.a" | |
22787 | ||
22788 | #AC_SUBST(ITKLIB) | |
22789 | ||
3fc11d3e | 22790 | |
dd2504ab JM |
22791 | |
22792 | # now look for Tk library stuff | |
22793 | ||
d91670b9 | 22794 | tkdir="../tk/${configdir}/" |
dd2504ab JM |
22795 | |
22796 | TK_DEPS="${tkdir}${TK_LIB_FILE}" | |
22797 | ||
3fc11d3e JM |
22798 | # now look for Itcl library stuff |
22799 | ||
bec39cab | 22800 | |
3fc11d3e JM |
22801 | # |
22802 | # Ok, lets find the itcl configuration | |
bec39cab | 22803 | # First, look for one uninstalled. |
3fc11d3e JM |
22804 | # the alternative search directory is invoked by --with-itclconfig |
22805 | # | |
22806 | ||
22807 | if test x"${no_itcl}" = x ; then | |
22808 | # we reset no_itcl in case something fails here | |
22809 | no_itcl=true | |
bec39cab | 22810 | |
b4e70030 | 22811 | # Check whether --with-itclconfig or --without-itclconfig was given. |
3fc11d3e | 22812 | if test "${with_itclconfig+set}" = set; then |
b4e70030 JB |
22813 | withval="$with_itclconfig" |
22814 | with_itclconfig=${withval} | |
22815 | fi; | |
22816 | echo "$as_me:$LINENO: checking for Itcl configuration" >&5 | |
22817 | echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6 | |
bec39cab AC |
22818 | if test "${ac_cv_c_itclconfig+set}" = set; then |
22819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22820 | else |
bec39cab | 22821 | |
3fc11d3e JM |
22822 | |
22823 | # First check to see if --with-itclconfig was specified. | |
22824 | if test x"${with_itclconfig}" != x ; then | |
22825 | if test -f "${with_itclconfig}/itclConfig.sh" ; then | |
22826 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` | |
22827 | else | |
bec39cab AC |
22828 | { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 |
22829 | echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} | |
22830 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22831 | fi |
22832 | fi | |
22833 | ||
22834 | # then check for a private Itcl library | |
22835 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22836 | for i in \ | |
22837 | ../itcl/itcl \ | |
22838 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ | |
22839 | ../../itcl \ | |
22840 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ | |
22841 | ../../../itcl \ | |
22842 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do | |
22843 | if test -f "$i/itclConfig.sh" ; then | |
22844 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
22845 | break | |
22846 | fi | |
22847 | done | |
22848 | fi | |
22849 | # check in a few common install locations | |
22850 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22851 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22852 | if test -f "$i/itclConfig.sh" ; then | |
22853 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
22854 | break | |
22855 | fi | |
22856 | done | |
22857 | fi | |
22858 | # check in a few other private locations | |
22859 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22860 | for i in \ | |
22861 | ${srcdir}/../itcl/itcl \ | |
22862 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do | |
22863 | if test -f "$i/itclConfig.sh" ; then | |
22864 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
22865 | break | |
22866 | fi | |
22867 | done | |
22868 | fi | |
bec39cab | 22869 | |
3fc11d3e JM |
22870 | fi |
22871 | ||
22872 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22873 | ITCLCONFIG="# no Itcl configs found" | |
bec39cab AC |
22874 | { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5 |
22875 | echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;} | |
3fc11d3e JM |
22876 | else |
22877 | no_itcl= | |
22878 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh | |
b4e70030 JB |
22879 | echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5 |
22880 | echo "${ECHO_T}found $ITCLCONFIG" >&6 | |
3fc11d3e JM |
22881 | fi |
22882 | fi | |
22883 | ||
22884 | if test -z "${no_itcl}"; then | |
bec39cab | 22885 | |
3fc11d3e JM |
22886 | if test -f "$ITCLCONFIG" ; then |
22887 | . $ITCLCONFIG | |
22888 | fi | |
22889 | ||
3fc11d3e | 22890 | |
3fc11d3e JM |
22891 | |
22892 | ||
bec39cab AC |
22893 | |
22894 | ||
22895 | ||
22896 | ||
22897 | ||
22898 | ||
22899 | ||
3fc11d3e JM |
22900 | |
22901 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" | |
b381d62d | 22902 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
3fc11d3e JM |
22903 | fi |
22904 | ||
bec39cab | 22905 | |
3fc11d3e | 22906 | # now look for Itk library stuff |
bec39cab | 22907 | |
3fc11d3e JM |
22908 | # |
22909 | # Ok, lets find the itk configuration | |
bec39cab | 22910 | # First, look for one uninstalled. |
3fc11d3e JM |
22911 | # the alternative search directory is invoked by --with-itkconfig |
22912 | # | |
22913 | ||
22914 | if test x"${no_itk}" = x ; then | |
22915 | # we reset no_itk in case something fails here | |
22916 | no_itk=true | |
bec39cab | 22917 | |
b4e70030 | 22918 | # Check whether --with-itkconfig or --without-itkconfig was given. |
3fc11d3e | 22919 | if test "${with_itkconfig+set}" = set; then |
b4e70030 JB |
22920 | withval="$with_itkconfig" |
22921 | with_itkconfig=${withval} | |
22922 | fi; | |
22923 | echo "$as_me:$LINENO: checking for Itk configuration" >&5 | |
22924 | echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6 | |
bec39cab AC |
22925 | if test "${ac_cv_c_itkconfig+set}" = set; then |
22926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22927 | else |
bec39cab | 22928 | |
3fc11d3e JM |
22929 | |
22930 | # First check to see if --with-itkconfig was specified. | |
22931 | if test x"${with_itkconfig}" != x ; then | |
22932 | if test -f "${with_itkconfig}/itkConfig.sh" ; then | |
22933 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` | |
22934 | else | |
bec39cab AC |
22935 | { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5 |
22936 | echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;} | |
22937 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22938 | fi |
22939 | fi | |
22940 | ||
22941 | # then check for a private Itk library | |
22942 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22943 | for i in \ | |
22944 | ../itcl/itk \ | |
22945 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ | |
22946 | ../../itk \ | |
22947 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ | |
22948 | ../../../itk \ | |
22949 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do | |
22950 | if test -f "$i/itkConfig.sh" ; then | |
22951 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
22952 | break | |
22953 | fi | |
22954 | done | |
22955 | fi | |
22956 | # check in a few common install locations | |
22957 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22958 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22959 | if test -f "$i/itkConfig.sh" ; then | |
22960 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
22961 | break | |
22962 | fi | |
22963 | done | |
22964 | fi | |
22965 | # check in a few other private locations | |
22966 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22967 | for i in \ | |
22968 | ${srcdir}/../itcl/itk \ | |
22969 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do | |
22970 | if test -f "$i/itkConfig.sh" ; then | |
22971 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
22972 | break | |
22973 | fi | |
22974 | done | |
22975 | fi | |
bec39cab | 22976 | |
3fc11d3e JM |
22977 | fi |
22978 | ||
22979 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22980 | ITKCONFIG="# no Itk configs found" | |
bec39cab AC |
22981 | { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5 |
22982 | echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;} | |
3fc11d3e JM |
22983 | else |
22984 | no_itk= | |
22985 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh | |
b4e70030 JB |
22986 | echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5 |
22987 | echo "${ECHO_T}found $ITKCONFIG" >&6 | |
3fc11d3e JM |
22988 | fi |
22989 | fi | |
22990 | ||
22991 | ||
bec39cab AC |
22992 | if test -z "${no_itcl}"; then |
22993 | ||
22994 | if test -f "$ITKCONFIG" ; then | |
22995 | . $ITKCONFIG | |
22996 | fi | |
22997 | ||
22998 | ||
22999 | ||
23000 | ||
23001 | ||
23002 | ||
3fc11d3e | 23003 | |
3fc11d3e | 23004 | |
3fc11d3e JM |
23005 | |
23006 | ||
3fc11d3e JM |
23007 | |
23008 | ||
3fc11d3e | 23009 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
b381d62d | 23010 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
3fc11d3e JM |
23011 | fi |
23012 | ||
4226a5a5 | 23013 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
3fc11d3e JM |
23014 | |
23015 | # Include some libraries that Tcl and Tk want. | |
b2a1bd4f | 23016 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
3fc11d3e JM |
23017 | # Yes, the ordering seems wrong here. But it isn't. |
23018 | # TK_LIBS is the list of libraries that need to be linked | |
23019 | # after Tcl/Tk. Note that this isn't put into LIBS. If it | |
23020 | # were in LIBS then any link tests after this point would | |
23021 | # try to include things like `$(LIBGUI)', which wouldn't work. | |
23022 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
4226a5a5 FN |
23023 | |
23024 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" | |
23025 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" | |
23026 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" | |
33f8ca73 AC |
23027 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
23028 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" | |
23029 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" | |
23030 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" | |
3fc11d3e JM |
23031 | |
23032 | if test x$gdb_cv_os_cygwin = xyes; then | |
23033 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" | |
23034 | WIN32LDAPP="-Wl,--subsystem,console" | |
23035 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" | |
23036 | fi | |
23037 | fi | |
23038 | fi | |
ffc6a242 | 23039 | |
b4e70030 JB |
23040 | |
23041 | ||
23042 | subdirs="$subdirs gdbtk" | |
3ace7edb | 23043 | |
3fc11d3e JM |
23044 | fi |
23045 | ||
23046 | ||
23047 | ||
23048 | ||
23049 | ||
23050 | ||
23051 | ||
23052 | ||
23053 | ||
23054 | ||
23055 | ||
23056 | ||
23057 | ||
dd2504ab | 23058 | |
b4e70030 JB |
23059 | echo "$as_me:$LINENO: checking for X" >&5 |
23060 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
bec39cab | 23061 | |
c906108c | 23062 | |
b4e70030 | 23063 | # Check whether --with-x or --without-x was given. |
c906108c | 23064 | if test "${with_x+set}" = set; then |
b4e70030 | 23065 | withval="$with_x" |
c906108c | 23066 | |
b4e70030 | 23067 | fi; |
c906108c SS |
23068 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
23069 | if test "x$with_x" = xno; then | |
23070 | # The user explicitly disabled X. | |
23071 | have_x=disabled | |
23072 | else | |
23073 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
23074 | # Both variables are already set. | |
23075 | have_x=yes | |
23076 | else | |
bec39cab AC |
23077 | if test "${ac_cv_have_x+set}" = set; then |
23078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
23079 | else |
23080 | # One or both of the vars are not set, and there is no cached value. | |
bec39cab | 23081 | ac_x_includes=no ac_x_libraries=no |
b4e70030 | 23082 | rm -fr conftest.dir |
bec39cab AC |
23083 | if mkdir conftest.dir; then |
23084 | cd conftest.dir | |
c906108c | 23085 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
bec39cab | 23086 | cat >Imakefile <<'_ACEOF' |
c906108c SS |
23087 | acfindx: |
23088 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
bec39cab | 23089 | _ACEOF |
b4e70030 | 23090 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
c906108c SS |
23091 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
23092 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
23093 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
23094 | for ac_extension in a so sl; do | |
23095 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
bec39cab AC |
23096 | test -f $ac_im_libdir/libX11.$ac_extension; then |
23097 | ac_im_usrlibdir=$ac_im_libdir; break | |
c906108c SS |
23098 | fi |
23099 | done | |
23100 | # Screen out bogus values from the imake configuration. They are | |
23101 | # bogus both because they are the default anyway, and because | |
23102 | # using them would break gcc on systems where it needs fixed includes. | |
bec39cab | 23103 | case $ac_im_incroot in |
b4e70030 | 23104 | /usr/include) ;; |
bec39cab | 23105 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
c906108c | 23106 | esac |
bec39cab | 23107 | case $ac_im_usrlibdir in |
c906108c | 23108 | /usr/lib | /lib) ;; |
bec39cab | 23109 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
c906108c SS |
23110 | esac |
23111 | fi | |
23112 | cd .. | |
b4e70030 | 23113 | rm -fr conftest.dir |
c906108c SS |
23114 | fi |
23115 | ||
bec39cab AC |
23116 | # Standard set of common directories for X headers. |
23117 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
23118 | ac_x_header_dirs=' | |
23119 | /usr/X11/include | |
23120 | /usr/X11R6/include | |
23121 | /usr/X11R5/include | |
23122 | /usr/X11R4/include | |
23123 | ||
23124 | /usr/include/X11 | |
23125 | /usr/include/X11R6 | |
23126 | /usr/include/X11R5 | |
23127 | /usr/include/X11R4 | |
23128 | ||
23129 | /usr/local/X11/include | |
23130 | /usr/local/X11R6/include | |
23131 | /usr/local/X11R5/include | |
23132 | /usr/local/X11R4/include | |
23133 | ||
23134 | /usr/local/include/X11 | |
23135 | /usr/local/include/X11R6 | |
23136 | /usr/local/include/X11R5 | |
23137 | /usr/local/include/X11R4 | |
23138 | ||
23139 | /usr/X386/include | |
23140 | /usr/x386/include | |
23141 | /usr/XFree86/include/X11 | |
23142 | ||
23143 | /usr/include | |
23144 | /usr/local/include | |
23145 | /usr/unsupported/include | |
23146 | /usr/athena/include | |
23147 | /usr/local/x11r5/include | |
23148 | /usr/lpp/Xamples/include | |
23149 | ||
23150 | /usr/openwin/include | |
23151 | /usr/openwin/share/include' | |
23152 | ||
23153 | if test "$ac_x_includes" = no; then | |
59f80f10 | 23154 | # Guess where to find include files, by looking for Intrinsic.h. |
c906108c | 23155 | # First, try using that file with no special directory specified. |
bec39cab AC |
23156 | cat >conftest.$ac_ext <<_ACEOF |
23157 | /* confdefs.h. */ | |
23158 | _ACEOF | |
23159 | cat confdefs.h >>conftest.$ac_ext | |
23160 | cat >>conftest.$ac_ext <<_ACEOF | |
23161 | /* end confdefs.h. */ | |
59f80f10 | 23162 | #include <X11/Intrinsic.h> |
bec39cab AC |
23163 | _ACEOF |
23164 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23165 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23166 | ac_status=$? | |
23167 | grep -v '^ *+' conftest.er1 >conftest.err | |
23168 | rm -f conftest.er1 | |
23169 | cat conftest.err >&5 | |
23170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23171 | (exit $ac_status); } >/dev/null; then | |
23172 | if test -s conftest.err; then | |
23173 | ac_cpp_err=$ac_c_preproc_warn_flag | |
23174 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
23175 | else | |
23176 | ac_cpp_err= | |
23177 | fi | |
23178 | else | |
23179 | ac_cpp_err=yes | |
23180 | fi | |
23181 | if test -z "$ac_cpp_err"; then | |
c906108c SS |
23182 | # We can compile using X headers with no special include directory. |
23183 | ac_x_includes= | |
23184 | else | |
bec39cab AC |
23185 | echo "$as_me: failed program was:" >&5 |
23186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23187 | ||
23188 | for ac_dir in $ac_x_header_dirs; do | |
59f80f10 | 23189 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
bec39cab AC |
23190 | ac_x_includes=$ac_dir |
23191 | break | |
23192 | fi | |
23193 | done | |
c906108c | 23194 | fi |
bec39cab AC |
23195 | rm -f conftest.err conftest.$ac_ext |
23196 | fi # $ac_x_includes = no | |
c906108c | 23197 | |
bec39cab | 23198 | if test "$ac_x_libraries" = no; then |
c906108c | 23199 | # Check for the libraries. |
c906108c SS |
23200 | # See if we find them without any special options. |
23201 | # Don't add to $LIBS permanently. | |
bec39cab | 23202 | ac_save_LIBS=$LIBS |
4e8d927d | 23203 | LIBS="-lXt $LIBS" |
bec39cab AC |
23204 | cat >conftest.$ac_ext <<_ACEOF |
23205 | /* confdefs.h. */ | |
23206 | _ACEOF | |
23207 | cat confdefs.h >>conftest.$ac_ext | |
23208 | cat >>conftest.$ac_ext <<_ACEOF | |
23209 | /* end confdefs.h. */ | |
59f80f10 | 23210 | #include <X11/Intrinsic.h> |
bec39cab AC |
23211 | int |
23212 | main () | |
23213 | { | |
59f80f10 | 23214 | XtMalloc (0) |
bec39cab AC |
23215 | ; |
23216 | return 0; | |
23217 | } | |
23218 | _ACEOF | |
23219 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23220 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23221 | (eval $ac_link) 2>conftest.er1 | |
23222 | ac_status=$? | |
23223 | grep -v '^ *+' conftest.er1 >conftest.err | |
23224 | rm -f conftest.er1 | |
23225 | cat conftest.err >&5 | |
23226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23227 | (exit $ac_status); } && | |
b4e70030 JB |
23228 | { ac_try='test -z "$ac_c_werror_flag" |
23229 | || test ! -s conftest.err' | |
bec39cab AC |
23230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23231 | (eval $ac_try) 2>&5 | |
23232 | ac_status=$? | |
23233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23234 | (exit $ac_status); }; } && | |
23235 | { ac_try='test -s conftest$ac_exeext' | |
23236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23237 | (eval $ac_try) 2>&5 | |
23238 | ac_status=$? | |
23239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23240 | (exit $ac_status); }; }; then | |
23241 | LIBS=$ac_save_LIBS | |
c906108c SS |
23242 | # We can link X programs with no special library path. |
23243 | ac_x_libraries= | |
23244 | else | |
bec39cab AC |
23245 | echo "$as_me: failed program was:" >&5 |
23246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23247 | ||
b4e70030 | 23248 | LIBS=$ac_save_LIBS |
bec39cab | 23249 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
c906108c | 23250 | do |
bec39cab | 23251 | # Don't even attempt the hair of trying to link an X program! |
c906108c | 23252 | for ac_extension in a so sl; do |
b4e70030 | 23253 | if test -r $ac_dir/libXt.$ac_extension; then |
c906108c SS |
23254 | ac_x_libraries=$ac_dir |
23255 | break 2 | |
23256 | fi | |
23257 | done | |
23258 | done | |
23259 | fi | |
bec39cab AC |
23260 | rm -f conftest.err conftest.$ac_objext \ |
23261 | conftest$ac_exeext conftest.$ac_ext | |
23262 | fi # $ac_x_libraries = no | |
c906108c | 23263 | |
bec39cab | 23264 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
c906108c SS |
23265 | # Didn't find X anywhere. Cache the known absence of X. |
23266 | ac_cv_have_x="have_x=no" | |
23267 | else | |
23268 | # Record where we found X for the cache. | |
23269 | ac_cv_have_x="have_x=yes \ | |
bec39cab | 23270 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
c906108c SS |
23271 | fi |
23272 | fi | |
bec39cab | 23273 | |
c906108c SS |
23274 | fi |
23275 | eval "$ac_cv_have_x" | |
23276 | fi # $with_x != no | |
23277 | ||
23278 | if test "$have_x" != yes; then | |
b4e70030 JB |
23279 | echo "$as_me:$LINENO: result: $have_x" >&5 |
23280 | echo "${ECHO_T}$have_x" >&6 | |
c906108c SS |
23281 | no_x=yes |
23282 | else | |
23283 | # If each of the values was on the command line, it overrides each guess. | |
23284 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
23285 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
23286 | # Update the cache value to reflect the command line values. | |
23287 | ac_cv_have_x="have_x=yes \ | |
23288 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
b4e70030 JB |
23289 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
23290 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
c906108c SS |
23291 | fi |
23292 | ||
23293 | ||
9cc52bde MK |
23294 | # Check whether we should enable the TUI, but only do so if we really |
23295 | # can. | |
23296 | if test x"$enable_tui" = xyes; then | |
23297 | if test -d $srcdir/tui; then | |
23298 | if test "$ac_cv_search_waddstr" != no; then | |
23299 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" | |
23300 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | |
23301 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | |
23302 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" | |
23303 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" | |
23304 | CONFIG_ALL="${CONFIG_ALL} all-tui" | |
23305 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
23306 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
23307 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
23308 | else | |
bec39cab AC |
23309 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
23310 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} | |
9cc52bde MK |
23311 | fi |
23312 | fi | |
23313 | fi | |
23314 | ||
bec39cab AC |
23315 | # Unlike the sim directory, whether a simulator is linked is controlled by |
23316 | # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file. | |
7a292a7a SS |
23317 | # This code just checks for a few cases where we'd like to ignore those |
23318 | # definitions, even when they're present in the '.mt' file. These cases | |
23319 | # are when --disable-sim is specified, or if the simulator directory is | |
6c5cfe5b | 23320 | # not part of the source tree. |
7a292a7a | 23321 | # |
b4e70030 | 23322 | # Check whether --enable-sim or --disable-sim was given. |
7a292a7a | 23323 | if test "${enable_sim+set}" = set; then |
b4e70030 JB |
23324 | enableval="$enable_sim" |
23325 | echo "enable_sim = $enable_sim"; | |
7a292a7a SS |
23326 | echo "enableval = ${enableval}"; |
23327 | case "${enableval}" in | |
23328 | yes) ignore_sim=false ;; | |
23329 | no) ignore_sim=true ;; | |
23330 | *) ignore_sim=false ;; | |
23331 | esac | |
23332 | else | |
23333 | ignore_sim=false | |
b4e70030 | 23334 | fi; |
7a292a7a SS |
23335 | |
23336 | if test ! -d "${srcdir}/../sim"; then | |
23337 | ignore_sim=true | |
23338 | fi | |
23339 | ||
23340 | if test "${ignore_sim}" = "true"; then | |
23341 | IGNORE_SIM="SIM=" | |
23342 | IGNORE_SIM_OBS="SIM_OBS=" | |
23343 | else | |
23344 | IGNORE_SIM="" | |
23345 | IGNORE_SIM_OBS="" | |
60ca704f SE |
23346 | |
23347 | cat >>confdefs.h <<\_ACEOF | |
7a292a7a | 23348 | #define WITH_SIM 1 |
bec39cab | 23349 | _ACEOF |
7a292a7a SS |
23350 | |
23351 | fi | |
23352 | ||
23353 | ||
23354 | ||
c906108c SS |
23355 | |
23356 | ||
23357 | ||
23358 | ||
23359 | ||
23360 | ||
dfcd3bfb | 23361 | |
e56ac5c3 AC |
23362 | |
23363 | ||
b3a90332 AC |
23364 | |
23365 | ||
c35f4ffc | 23366 | # List of host floatformats. |
bec39cab AC |
23367 | |
23368 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 23369 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
bec39cab | 23370 | _ACEOF |
c35f4ffc | 23371 | |
bec39cab AC |
23372 | |
23373 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 23374 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
bec39cab AC |
23375 | _ACEOF |
23376 | ||
c35f4ffc | 23377 | |
bec39cab | 23378 | cat >>confdefs.h <<_ACEOF |
c35f4ffc | 23379 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
bec39cab | 23380 | _ACEOF |
c35f4ffc AC |
23381 | |
23382 | ||
c906108c SS |
23383 | # target_subdir is used by the testsuite to find the target libraries. |
23384 | target_subdir= | |
23385 | if test "${host}" != "${target}"; then | |
23386 | target_subdir="${target_alias}/" | |
23387 | fi | |
23388 | ||
23389 | ||
23390 | frags= | |
771b4502 | 23391 | if test "${gdb_native}" = "yes"; then |
0dad8a66 MK |
23392 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
23393 | if test ! -f ${host_makefile_frag}; then | |
bec39cab AC |
23394 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
23395 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} | |
23396 | { (exit 1); exit 1; }; } | |
0dad8a66 MK |
23397 | fi |
23398 | frags="$frags $host_makefile_frag" | |
23399 | else | |
23400 | host_makefile_frag=/dev/null | |
c906108c | 23401 | fi |
c906108c SS |
23402 | |
23403 | target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | |
23404 | if test ! -f ${target_makefile_frag}; then | |
bec39cab AC |
23405 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5 |
23406 | echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;} | |
23407 | { (exit 1); exit 1; }; } | |
c906108c SS |
23408 | fi |
23409 | frags="$frags $target_makefile_frag" | |
23410 | ||
23411 | ||
23412 | ||
23413 | ||
23414 | ||
23415 | hostfile=`sed -n ' | |
23416 | s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
23417 | ' ${host_makefile_frag}` | |
23418 | ||
23419 | targetfile=`sed -n ' | |
b523a1fd | 23420 | s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
c906108c SS |
23421 | ' ${target_makefile_frag}` |
23422 | ||
771b4502 | 23423 | if test "${gdb_native}" = "yes"; then |
a85f51e7 DJ |
23424 | # We pick this up from the host configuration file (.mh) because we |
23425 | # do not have a native configuration Makefile fragment. | |
c906108c SS |
23426 | nativefile=`sed -n ' |
23427 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
23428 | ' ${host_makefile_frag}` | |
c906108c SS |
23429 | fi |
23430 | ||
23431 | ||
b00a8037 | 23432 | if test x"${gdb_osabi}" != x ; then |
bec39cab AC |
23433 | |
23434 | cat >>confdefs.h <<_ACEOF | |
b00a8037 | 23435 | #define GDB_OSABI_DEFAULT $gdb_osabi |
bec39cab | 23436 | _ACEOF |
b00a8037 DJ |
23437 | |
23438 | fi | |
23439 | ||
8dcde887 | 23440 | # Enable multi-ice-gdb-server. |
b4e70030 | 23441 | # Check whether --enable-multi-ice or --disable-multi-ice was given. |
8dcde887 | 23442 | if test "${enable_multi_ice+set}" = set; then |
b4e70030 JB |
23443 | enableval="$enable_multi_ice" |
23444 | case $enableval in | |
8dcde887 MK |
23445 | yes | no) |
23446 | ;; | |
bec39cab AC |
23447 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
23448 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} | |
23449 | { (exit 1); exit 1; }; } ;; | |
8dcde887 | 23450 | esac |
b4e70030 | 23451 | fi; |
4e8d927d | 23452 | if test "x$enable_multi_ice" = xyes; then |
b4e70030 JB |
23453 | |
23454 | ||
23455 | subdirs="$subdirs multi-ice" | |
3ace7edb | 23456 | |
a85f51e7 DJ |
23457 | fi |
23458 | ||
a13e2c95 UW |
23459 | # We only build gdbserver automatically in a native configuration. |
23460 | if test "$gdb_native" = "yes"; then | |
b4e70030 JB |
23461 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
23462 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 | |
8dcde887 | 23463 | if test "x$build_gdbserver" = xyes; then |
b4e70030 JB |
23464 | echo "$as_me:$LINENO: result: yes" >&5 |
23465 | echo "${ECHO_T}yes" >&6 | |
23466 | ||
23467 | ||
23468 | subdirs="$subdirs gdbserver" | |
3ace7edb | 23469 | |
8dcde887 | 23470 | else |
b4e70030 JB |
23471 | echo "$as_me:$LINENO: result: no" >&5 |
23472 | echo "${ECHO_T}no" >&6 | |
8dcde887 MK |
23473 | fi |
23474 | fi | |
23475 | ||
2c0fc042 AC |
23476 | # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or |
23477 | # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link | |
23478 | # to an empty version. | |
c906108c SS |
23479 | |
23480 | files= | |
23481 | links= | |
5a2402b8 | 23482 | |
c906108c | 23483 | rm -f xm.h |
5a2402b8 | 23484 | xm_h="" |
c906108c | 23485 | if test "${hostfile}" != ""; then |
5a2402b8 | 23486 | xm_h=xm.h |
0f475e27 AC |
23487 | case "${hostfile}" in |
23488 | xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;; | |
23489 | * ) GDB_XM_FILE="${hostfile}" | |
23490 | esac | |
5a2402b8 AC |
23491 | files="${files} ${GDB_XM_FILE}" |
23492 | links="${links} xm.h" | |
60ca704f SE |
23493 | |
23494 | cat >>confdefs.h <<_ACEOF | |
b78960be | 23495 | #define GDB_XM_FILE "${GDB_XM_FILE}" |
bec39cab | 23496 | _ACEOF |
5a2402b8 | 23497 | |
c906108c | 23498 | fi |
5a2402b8 AC |
23499 | |
23500 | ||
c906108c | 23501 | rm -f tm.h |
5a2402b8 | 23502 | tm_h="" |
c906108c | 23503 | if test "${targetfile}" != ""; then |
5a2402b8 | 23504 | tm_h=tm.h |
0f475e27 | 23505 | case "${targetfile}" in |
b8c4aece | 23506 | tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;; |
0f475e27 AC |
23507 | * ) GDB_TM_FILE="${targetfile}" |
23508 | esac | |
5a2402b8 AC |
23509 | files="${files} ${GDB_TM_FILE}" |
23510 | links="${links} tm.h" | |
60ca704f SE |
23511 | |
23512 | cat >>confdefs.h <<_ACEOF | |
b78960be | 23513 | #define GDB_TM_FILE "${GDB_TM_FILE}" |
bec39cab | 23514 | _ACEOF |
5a2402b8 | 23515 | |
c906108c | 23516 | fi |
5a2402b8 AC |
23517 | |
23518 | ||
c906108c | 23519 | rm -f nm.h |
5a2402b8 | 23520 | nm_h="" |
c906108c | 23521 | if test "${nativefile}" != ""; then |
5a2402b8 | 23522 | nm_h=nm.h |
0f475e27 AC |
23523 | case "${nativefile}" in |
23524 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; | |
23525 | * ) GDB_NM_FILE="${nativefile}" | |
23526 | esac | |
5a2402b8 AC |
23527 | files="${files} ${GDB_NM_FILE}" |
23528 | links="${links} nm.h" | |
60ca704f SE |
23529 | |
23530 | cat >>confdefs.h <<_ACEOF | |
b78960be | 23531 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
bec39cab | 23532 | _ACEOF |
5a2402b8 | 23533 | |
c906108c | 23534 | fi |
5a2402b8 AC |
23535 | |
23536 | ||
bec39cab AC |
23537 | ac_sources="$files" |
23538 | ac_dests="$links" | |
23539 | while test -n "$ac_sources"; do | |
23540 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
23541 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
23542 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
23543 | done | |
b4e70030 | 23544 | ac_config_links="$ac_config_links $ac_config_links_1" |
c906108c SS |
23545 | |
23546 | ||
c906108c SS |
23547 | |
23548 | ||
c906108c | 23549 | |
c906108c | 23550 | |
bec39cab AC |
23551 | cat >>confdefs.h <<\_ACEOF |
23552 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" | |
23553 | _ACEOF | |
c906108c | 23554 | |
234b45d4 | 23555 | |
234b45d4 KB |
23556 | |
23557 | ||
23558 | ||
b4e70030 | 23559 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
234b45d4 | 23560 | if test "${with_libiconv_prefix+set}" = set; then |
b4e70030 JB |
23561 | withval="$with_libiconv_prefix" |
23562 | ||
234b45d4 KB |
23563 | for dir in `echo "$withval" | tr : ' '`; do |
23564 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
23565 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
23566 | done | |
234b45d4 | 23567 | |
b4e70030 | 23568 | fi; |
234b45d4 | 23569 | |
b4e70030 JB |
23570 | echo "$as_me:$LINENO: checking for iconv" >&5 |
23571 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
bec39cab AC |
23572 | if test "${am_cv_func_iconv+set}" = set; then |
23573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
234b45d4 | 23574 | else |
bec39cab | 23575 | |
234b45d4 KB |
23576 | am_cv_func_iconv="no, consider installing GNU libiconv" |
23577 | am_cv_lib_iconv=no | |
bec39cab AC |
23578 | cat >conftest.$ac_ext <<_ACEOF |
23579 | /* confdefs.h. */ | |
23580 | _ACEOF | |
23581 | cat confdefs.h >>conftest.$ac_ext | |
23582 | cat >>conftest.$ac_ext <<_ACEOF | |
23583 | /* end confdefs.h. */ | |
234b45d4 KB |
23584 | #include <stdlib.h> |
23585 | #include <iconv.h> | |
bec39cab AC |
23586 | int |
23587 | main () | |
23588 | { | |
234b45d4 KB |
23589 | iconv_t cd = iconv_open("",""); |
23590 | iconv(cd,NULL,NULL,NULL,NULL); | |
23591 | iconv_close(cd); | |
bec39cab AC |
23592 | ; |
23593 | return 0; | |
23594 | } | |
23595 | _ACEOF | |
23596 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23598 | (eval $ac_link) 2>conftest.er1 | |
23599 | ac_status=$? | |
23600 | grep -v '^ *+' conftest.er1 >conftest.err | |
23601 | rm -f conftest.er1 | |
23602 | cat conftest.err >&5 | |
23603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23604 | (exit $ac_status); } && | |
b4e70030 JB |
23605 | { ac_try='test -z "$ac_c_werror_flag" |
23606 | || test ! -s conftest.err' | |
bec39cab AC |
23607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23608 | (eval $ac_try) 2>&5 | |
23609 | ac_status=$? | |
23610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23611 | (exit $ac_status); }; } && | |
23612 | { ac_try='test -s conftest$ac_exeext' | |
23613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23614 | (eval $ac_try) 2>&5 | |
23615 | ac_status=$? | |
23616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23617 | (exit $ac_status); }; }; then | |
234b45d4 KB |
23618 | am_cv_func_iconv=yes |
23619 | else | |
bec39cab AC |
23620 | echo "$as_me: failed program was:" >&5 |
23621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23622 | ||
234b45d4 | 23623 | fi |
bec39cab AC |
23624 | rm -f conftest.err conftest.$ac_objext \ |
23625 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
23626 | if test "$am_cv_func_iconv" != yes; then |
23627 | am_save_LIBS="$LIBS" | |
23628 | LIBS="$LIBS -liconv" | |
bec39cab AC |
23629 | cat >conftest.$ac_ext <<_ACEOF |
23630 | /* confdefs.h. */ | |
23631 | _ACEOF | |
23632 | cat confdefs.h >>conftest.$ac_ext | |
23633 | cat >>conftest.$ac_ext <<_ACEOF | |
23634 | /* end confdefs.h. */ | |
234b45d4 KB |
23635 | #include <stdlib.h> |
23636 | #include <iconv.h> | |
bec39cab AC |
23637 | int |
23638 | main () | |
23639 | { | |
234b45d4 KB |
23640 | iconv_t cd = iconv_open("",""); |
23641 | iconv(cd,NULL,NULL,NULL,NULL); | |
23642 | iconv_close(cd); | |
bec39cab AC |
23643 | ; |
23644 | return 0; | |
23645 | } | |
23646 | _ACEOF | |
23647 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23648 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23649 | (eval $ac_link) 2>conftest.er1 | |
23650 | ac_status=$? | |
23651 | grep -v '^ *+' conftest.er1 >conftest.err | |
23652 | rm -f conftest.er1 | |
23653 | cat conftest.err >&5 | |
23654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23655 | (exit $ac_status); } && | |
b4e70030 JB |
23656 | { ac_try='test -z "$ac_c_werror_flag" |
23657 | || test ! -s conftest.err' | |
bec39cab AC |
23658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23659 | (eval $ac_try) 2>&5 | |
23660 | ac_status=$? | |
23661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23662 | (exit $ac_status); }; } && | |
23663 | { ac_try='test -s conftest$ac_exeext' | |
23664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23665 | (eval $ac_try) 2>&5 | |
23666 | ac_status=$? | |
23667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23668 | (exit $ac_status); }; }; then | |
234b45d4 KB |
23669 | am_cv_lib_iconv=yes |
23670 | am_cv_func_iconv=yes | |
23671 | else | |
bec39cab AC |
23672 | echo "$as_me: failed program was:" >&5 |
23673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23674 | ||
234b45d4 | 23675 | fi |
bec39cab AC |
23676 | rm -f conftest.err conftest.$ac_objext \ |
23677 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
23678 | LIBS="$am_save_LIBS" |
23679 | fi | |
bec39cab AC |
23680 | |
23681 | fi | |
b4e70030 JB |
23682 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
23683 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
bec39cab AC |
23684 | if test "$am_cv_func_iconv" = yes; then |
23685 | ||
23686 | cat >>confdefs.h <<\_ACEOF | |
23687 | #define HAVE_ICONV 1 | |
23688 | _ACEOF | |
23689 | ||
b4e70030 JB |
23690 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
23691 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
bec39cab AC |
23692 | if test "${am_cv_proto_iconv+set}" = set; then |
23693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23694 | else | |
23695 | ||
23696 | cat >conftest.$ac_ext <<_ACEOF | |
23697 | /* confdefs.h. */ | |
23698 | _ACEOF | |
23699 | cat confdefs.h >>conftest.$ac_ext | |
23700 | cat >>conftest.$ac_ext <<_ACEOF | |
23701 | /* end confdefs.h. */ | |
23702 | ||
23703 | #include <stdlib.h> | |
23704 | #include <iconv.h> | |
23705 | extern | |
23706 | #ifdef __cplusplus | |
23707 | "C" | |
23708 | #endif | |
23709 | #if defined(__STDC__) || defined(__cplusplus) | |
23710 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
23711 | #else | |
23712 | size_t iconv(); | |
23713 | #endif | |
23714 | ||
23715 | int | |
23716 | main () | |
23717 | { | |
23718 | ||
23719 | ; | |
23720 | return 0; | |
23721 | } | |
23722 | _ACEOF | |
23723 | rm -f conftest.$ac_objext | |
23724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23725 | (eval $ac_compile) 2>conftest.er1 | |
23726 | ac_status=$? | |
23727 | grep -v '^ *+' conftest.er1 >conftest.err | |
23728 | rm -f conftest.er1 | |
23729 | cat conftest.err >&5 | |
23730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23731 | (exit $ac_status); } && | |
b4e70030 JB |
23732 | { ac_try='test -z "$ac_c_werror_flag" |
23733 | || test ! -s conftest.err' | |
bec39cab AC |
23734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23735 | (eval $ac_try) 2>&5 | |
23736 | ac_status=$? | |
23737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23738 | (exit $ac_status); }; } && | |
23739 | { ac_try='test -s conftest.$ac_objext' | |
23740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23741 | (eval $ac_try) 2>&5 | |
23742 | ac_status=$? | |
23743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23744 | (exit $ac_status); }; }; then | |
23745 | am_cv_proto_iconv_arg1="" | |
23746 | else | |
23747 | echo "$as_me: failed program was:" >&5 | |
23748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23749 | ||
b4e70030 | 23750 | am_cv_proto_iconv_arg1="const" |
bec39cab AC |
23751 | fi |
23752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23753 | 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);" | |
23754 | fi | |
23755 | ||
23756 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
b4e70030 | 23757 | echo "$as_me:$LINENO: result: ${ac_t:- |
bec39cab AC |
23758 | }$am_cv_proto_iconv" >&5 |
23759 | echo "${ECHO_T}${ac_t:- | |
b4e70030 | 23760 | }$am_cv_proto_iconv" >&6 |
bec39cab AC |
23761 | |
23762 | cat >>confdefs.h <<_ACEOF | |
23763 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
23764 | _ACEOF | |
23765 | ||
23766 | fi | |
23767 | LIBICONV= | |
23768 | if test "$am_cv_lib_iconv" = yes; then | |
23769 | LIBICONV="-liconv" | |
23770 | fi | |
23771 | ||
23772 | ||
23773 | ||
b4e70030 JB |
23774 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in" |
23775 | ac_config_commands="$ac_config_commands default" | |
bec39cab AC |
23776 | cat >confcache <<\_ACEOF |
23777 | # This file is a shell script that caches the results of configure | |
23778 | # tests run on this system so they can be shared between configure | |
23779 | # scripts and configure runs, see configure's option --config-cache. | |
23780 | # It is not useful on other systems. If it contains results you don't | |
23781 | # want to keep, you may remove or edit it. | |
23782 | # | |
23783 | # config.status only pays attention to the cache file if you give it | |
23784 | # the --recheck option to rerun configure. | |
23785 | # | |
23786 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23787 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23788 | # following values. | |
23789 | ||
23790 | _ACEOF | |
23791 | ||
23792 | # The following way of writing the cache mishandles newlines in values, | |
23793 | # but we know of no workaround that is simple, portable, and efficient. | |
b4e70030 | 23794 | # So, don't put newlines in cache variables' values. |
bec39cab AC |
23795 | # Ultrix sh set writes to stderr and can't be redirected directly, |
23796 | # and sets the high bit in the cache file unless we assign to the vars. | |
b4e70030 | 23797 | { |
bec39cab | 23798 | (set) 2>&1 | |
b4e70030 JB |
23799 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
23800 | *ac_space=\ *) | |
bec39cab AC |
23801 | # `set' does not quote correctly, so add quotes (double-quote |
23802 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23803 | sed -n \ | |
23804 | "s/'/'\\\\''/g; | |
23805 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
b4e70030 | 23806 | ;; |
bec39cab AC |
23807 | *) |
23808 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
b4e70030 JB |
23809 | sed -n \ |
23810 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 23811 | ;; |
b4e70030 JB |
23812 | esac; |
23813 | } | | |
bec39cab AC |
23814 | sed ' |
23815 | t clear | |
b4e70030 | 23816 | : clear |
bec39cab AC |
23817 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
23818 | t end | |
b4e70030 JB |
23819 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
23820 | : end' >>confcache | |
bec39cab AC |
23821 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
23822 | if test -w $cache_file; then | |
b4e70030 | 23823 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
bec39cab AC |
23824 | cat confcache >$cache_file |
23825 | else | |
b4e70030 | 23826 | echo "not updating unwritable cache $cache_file" |
bec39cab AC |
23827 | fi |
23828 | fi | |
23829 | rm -f confcache | |
23830 | ||
23831 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
23832 | # Let make expand exec_prefix. | |
23833 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
23834 | ||
b4e70030 JB |
23835 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
23836 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
23837 | # trailing colons and then remove the whole line if VPATH becomes empty | |
23838 | # (actually we leave an empty line to preserve line numbers). | |
23839 | if test "x$srcdir" = x.; then | |
23840 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
23841 | s/:*\$(srcdir):*/:/; | |
23842 | s/:*\${srcdir}:*/:/; | |
23843 | s/:*@srcdir@:*/:/; | |
23844 | s/^\([^=]*=[ ]*\):*/\1/; | |
23845 | s/:*$//; | |
23846 | s/^[^=]*=[ ]*$//; | |
23847 | }' | |
23848 | fi | |
23849 | ||
bec39cab AC |
23850 | DEFS=-DHAVE_CONFIG_H |
23851 | ||
23852 | ac_libobjs= | |
23853 | ac_ltlibobjs= | |
23854 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
23855 | # 1. Remove the extension, and $U if already installed. | |
b4e70030 JB |
23856 | ac_i=`echo "$ac_i" | |
23857 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
23858 | # 2. Add them. | |
23859 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
23860 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
bec39cab AC |
23861 | done |
23862 | LIBOBJS=$ac_libobjs | |
23863 | ||
23864 | LTLIBOBJS=$ac_ltlibobjs | |
23865 | ||
23866 | ||
85981d60 AC |
23867 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
23868 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
23869 | Usually this means the macro was only invoked conditionally." >&5 | |
23870 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
23871 | Usually this means the macro was only invoked conditionally." >&2;} | |
23872 | { (exit 1); exit 1; }; } | |
23873 | fi | |
bec39cab AC |
23874 | |
23875 | : ${CONFIG_STATUS=./config.status} | |
23876 | ac_clean_files_save=$ac_clean_files | |
23877 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
23878 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
23879 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
23880 | cat >$CONFIG_STATUS <<_ACEOF | |
23881 | #! $SHELL | |
23882 | # Generated by $as_me. | |
23883 | # Run this file to recreate the current configuration. | |
23884 | # Compiler output produced by configure, useful for debugging | |
23885 | # configure, is in config.log if it exists. | |
23886 | ||
23887 | debug=false | |
23888 | ac_cs_recheck=false | |
23889 | ac_cs_silent=false | |
23890 | SHELL=\${CONFIG_SHELL-$SHELL} | |
23891 | _ACEOF | |
23892 | ||
23893 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23894 | ## --------------------- ## | |
23895 | ## M4sh Initialization. ## | |
23896 | ## --------------------- ## | |
23897 | ||
23898 | # Be Bourne compatible | |
23899 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
23900 | emulate sh | |
23901 | NULLCMD=: | |
23902 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
23903 | # is contrary to our usage. Disable this feature. | |
23904 | alias -g '${1+"$@"}'='"$@"' | |
b4e70030 JB |
23905 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
23906 | set -o posix | |
bec39cab AC |
23907 | fi |
23908 | DUALCASE=1; export DUALCASE # for MKS sh | |
23909 | ||
23910 | # Support unset when possible. | |
23911 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
23912 | as_unset=unset | |
23913 | else | |
23914 | as_unset=false | |
23915 | fi | |
23916 | ||
23917 | ||
23918 | # Work around bugs in pre-3.0 UWIN ksh. | |
b4e70030 | 23919 | $as_unset ENV MAIL MAILPATH |
bec39cab AC |
23920 | PS1='$ ' |
23921 | PS2='> ' | |
23922 | PS4='+ ' | |
23923 | ||
23924 | # NLS nuisances. | |
23925 | for as_var in \ | |
23926 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
23927 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
23928 | LC_TELEPHONE LC_TIME | |
23929 | do | |
23930 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
23931 | eval $as_var=C; export $as_var | |
23932 | else | |
b4e70030 | 23933 | $as_unset $as_var |
bec39cab AC |
23934 | fi |
23935 | done | |
23936 | ||
23937 | # Required to use basename. | |
b4e70030 | 23938 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
23939 | as_expr=expr |
23940 | else | |
23941 | as_expr=false | |
23942 | fi | |
23943 | ||
b4e70030 | 23944 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
bec39cab AC |
23945 | as_basename=basename |
23946 | else | |
23947 | as_basename=false | |
23948 | fi | |
23949 | ||
23950 | ||
23951 | # Name of the executable. | |
b4e70030 | 23952 | as_me=`$as_basename "$0" || |
bec39cab AC |
23953 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
23954 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
23955 | X"$0" : 'X\(/\)$' \| \ |
23956 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 23957 | echo X/"$0" | |
b4e70030 JB |
23958 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
23959 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
23960 | /^X\/\(\/\).*/{ s//\1/; q; } | |
23961 | s/.*/./; q'` | |
bec39cab | 23962 | |
b4e70030 JB |
23963 | |
23964 | # PATH needs CR, and LINENO needs CR and PATH. | |
23965 | # Avoid depending upon Character Ranges. | |
23966 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
23967 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
23968 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
23969 | as_cr_digits='0123456789' | |
23970 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
23971 | ||
23972 | # The user is always right. | |
23973 | if test "${PATH_SEPARATOR+set}" != set; then | |
23974 | echo "#! /bin/sh" >conf$$.sh | |
23975 | echo "exit 0" >>conf$$.sh | |
23976 | chmod +x conf$$.sh | |
23977 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
23978 | PATH_SEPARATOR=';' | |
23979 | else | |
23980 | PATH_SEPARATOR=: | |
23981 | fi | |
23982 | rm -f conf$$.sh | |
23983 | fi | |
bec39cab AC |
23984 | |
23985 | ||
b4e70030 JB |
23986 | as_lineno_1=$LINENO |
23987 | as_lineno_2=$LINENO | |
23988 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
23989 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
23990 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
23991 | # Find who we are. Look in the path if we contain no path at all | |
23992 | # relative or not. | |
23993 | case $0 in | |
23994 | *[\\/]* ) as_myself=$0 ;; | |
23995 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23996 | for as_dir in $PATH | |
23997 | do | |
23998 | IFS=$as_save_IFS | |
23999 | test -z "$as_dir" && as_dir=. | |
24000 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
24001 | done | |
bec39cab | 24002 | |
b4e70030 JB |
24003 | ;; |
24004 | esac | |
24005 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
24006 | # in which case we are not to be found in the path. | |
24007 | if test "x$as_myself" = x; then | |
24008 | as_myself=$0 | |
24009 | fi | |
24010 | if test ! -f "$as_myself"; then | |
24011 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
24012 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
24013 | { (exit 1); exit 1; }; } | |
24014 | fi | |
24015 | case $CONFIG_SHELL in | |
24016 | '') | |
24017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24018 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
24019 | do | |
24020 | IFS=$as_save_IFS | |
24021 | test -z "$as_dir" && as_dir=. | |
24022 | for as_base in sh bash ksh sh5; do | |
24023 | case $as_dir in | |
24024 | /*) | |
24025 | if ("$as_dir/$as_base" -c ' | |
bec39cab AC |
24026 | as_lineno_1=$LINENO |
24027 | as_lineno_2=$LINENO | |
b4e70030 | 24028 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
bec39cab | 24029 | test "x$as_lineno_1" != "x$as_lineno_2" && |
b4e70030 JB |
24030 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
24031 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
24032 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
24033 | CONFIG_SHELL=$as_dir/$as_base | |
24034 | export CONFIG_SHELL | |
24035 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
24036 | fi;; | |
24037 | esac | |
24038 | done | |
24039 | done | |
24040 | ;; | |
24041 | esac | |
bec39cab AC |
24042 | |
24043 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
24044 | # uniformly replaced by the line number. The first 'sed' inserts a | |
b4e70030 JB |
24045 | # line-number line before each line; the second 'sed' does the real |
24046 | # work. The second script uses 'N' to pair each line-number line | |
24047 | # with the numbered line, and appends trailing '-' during | |
24048 | # substitution so that $LINENO is not a special case at line end. | |
bec39cab | 24049 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
b4e70030 JB |
24050 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
24051 | sed '=' <$as_myself | | |
bec39cab AC |
24052 | sed ' |
24053 | N | |
b4e70030 JB |
24054 | s,$,-, |
24055 | : loop | |
24056 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
bec39cab | 24057 | t loop |
b4e70030 JB |
24058 | s,-$,, |
24059 | s,^['$as_cr_digits']*\n,, | |
bec39cab | 24060 | ' >$as_me.lineno && |
b4e70030 JB |
24061 | chmod +x $as_me.lineno || |
24062 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
24063 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
bec39cab AC |
24064 | { (exit 1); exit 1; }; } |
24065 | ||
24066 | # Don't try to exec as it changes $[0], causing all sort of problems | |
24067 | # (the dirname of $[0] is not the place where we might find the | |
b4e70030 JB |
24068 | # original and so on. Autoconf is especially sensible to this). |
24069 | . ./$as_me.lineno | |
bec39cab AC |
24070 | # Exit status is that of the last command. |
24071 | exit | |
24072 | } | |
24073 | ||
24074 | ||
b4e70030 JB |
24075 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
24076 | *c*,-n*) ECHO_N= ECHO_C=' | |
24077 | ' ECHO_T=' ' ;; | |
24078 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
24079 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
bec39cab AC |
24080 | esac |
24081 | ||
b4e70030 | 24082 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
24083 | as_expr=expr |
24084 | else | |
24085 | as_expr=false | |
24086 | fi | |
24087 | ||
24088 | rm -f conf$$ conf$$.exe conf$$.file | |
24089 | echo >conf$$.file | |
24090 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b4e70030 JB |
24091 | # We could just check for DJGPP; but this test a) works b) is more generic |
24092 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
24093 | if test -f conf$$.exe; then | |
24094 | # Don't use ln at all; we don't have any links | |
bec39cab | 24095 | as_ln_s='cp -p' |
b4e70030 JB |
24096 | else |
24097 | as_ln_s='ln -s' | |
24098 | fi | |
bec39cab AC |
24099 | elif ln conf$$.file conf$$ 2>/dev/null; then |
24100 | as_ln_s=ln | |
24101 | else | |
24102 | as_ln_s='cp -p' | |
24103 | fi | |
b4e70030 | 24104 | rm -f conf$$ conf$$.exe conf$$.file |
bec39cab AC |
24105 | |
24106 | if mkdir -p . 2>/dev/null; then | |
24107 | as_mkdir_p=: | |
24108 | else | |
24109 | test -d ./-p && rmdir ./-p | |
24110 | as_mkdir_p=false | |
24111 | fi | |
24112 | ||
b4e70030 | 24113 | as_executable_p="test -f" |
bec39cab AC |
24114 | |
24115 | # Sed expression to map a string onto a valid CPP name. | |
24116 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
24117 | ||
24118 | # Sed expression to map a string onto a valid variable name. | |
24119 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
24120 | ||
24121 | ||
b4e70030 JB |
24122 | # IFS |
24123 | # We need space, tab and new line, in precisely that order. | |
24124 | as_nl=' | |
24125 | ' | |
24126 | IFS=" $as_nl" | |
24127 | ||
24128 | # CDPATH. | |
24129 | $as_unset CDPATH | |
24130 | ||
bec39cab AC |
24131 | exec 6>&1 |
24132 | ||
b4e70030 | 24133 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
bec39cab | 24134 | # report actual input values of CONFIG_FILES etc. instead of their |
b4e70030 JB |
24135 | # values after options handling. Logging --version etc. is OK. |
24136 | exec 5>>config.log | |
24137 | { | |
24138 | echo | |
24139 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
24140 | ## Running $as_me. ## | |
24141 | _ASBOX | |
24142 | } >&5 | |
24143 | cat >&5 <<_CSEOF | |
24144 | ||
bec39cab | 24145 | This file was extended by $as_me, which was |
b4e70030 | 24146 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
24147 | |
24148 | CONFIG_FILES = $CONFIG_FILES | |
24149 | CONFIG_HEADERS = $CONFIG_HEADERS | |
24150 | CONFIG_LINKS = $CONFIG_LINKS | |
24151 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
24152 | $ $0 $@ | |
24153 | ||
b4e70030 JB |
24154 | _CSEOF |
24155 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
24156 | echo >&5 | |
bec39cab AC |
24157 | _ACEOF |
24158 | ||
24159 | # Files that config.status was made for. | |
b4e70030 JB |
24160 | if test -n "$ac_config_files"; then |
24161 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
24162 | fi | |
234b45d4 | 24163 | |
b4e70030 JB |
24164 | if test -n "$ac_config_headers"; then |
24165 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
24166 | fi | |
24167 | ||
24168 | if test -n "$ac_config_links"; then | |
24169 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
24170 | fi | |
24171 | ||
24172 | if test -n "$ac_config_commands"; then | |
24173 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
24174 | fi | |
234b45d4 | 24175 | |
bec39cab | 24176 | cat >>$CONFIG_STATUS <<\_ACEOF |
b4e70030 | 24177 | |
bec39cab AC |
24178 | ac_cs_usage="\ |
24179 | \`$as_me' instantiates files from templates according to the | |
24180 | current configuration. | |
234b45d4 | 24181 | |
bec39cab | 24182 | Usage: $0 [OPTIONS] [FILE]... |
234b45d4 | 24183 | |
bec39cab AC |
24184 | -h, --help print this help, then exit |
24185 | -V, --version print version number, then exit | |
24186 | -q, --quiet do not print progress messages | |
24187 | -d, --debug don't remove temporary files | |
24188 | --recheck update $as_me by reconfiguring in the same conditions | |
24189 | --file=FILE[:TEMPLATE] | |
24190 | instantiate the configuration file FILE | |
24191 | --header=FILE[:TEMPLATE] | |
24192 | instantiate the configuration header FILE | |
234b45d4 | 24193 | |
bec39cab AC |
24194 | Configuration files: |
24195 | $config_files | |
234b45d4 | 24196 | |
bec39cab AC |
24197 | Configuration headers: |
24198 | $config_headers | |
234b45d4 | 24199 | |
bec39cab AC |
24200 | Configuration links: |
24201 | $config_links | |
234b45d4 | 24202 | |
bec39cab AC |
24203 | Configuration commands: |
24204 | $config_commands | |
24205 | ||
24206 | Report bugs to <bug-autoconf@gnu.org>." | |
4e8d927d | 24207 | _ACEOF |
b4e70030 | 24208 | |
bec39cab AC |
24209 | cat >>$CONFIG_STATUS <<_ACEOF |
24210 | ac_cs_version="\\ | |
24211 | config.status | |
b4e70030 | 24212 | configured by $0, generated by GNU Autoconf 2.59, |
bec39cab AC |
24213 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
24214 | ||
b4e70030 | 24215 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
24216 | This config.status script is free software; the Free Software Foundation |
24217 | gives unlimited permission to copy, distribute and modify it." | |
b4e70030 JB |
24218 | srcdir=$srcdir |
24219 | INSTALL="$INSTALL" | |
bec39cab AC |
24220 | _ACEOF |
24221 | ||
24222 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24223 | # If no file are specified by the user, then we need to provide default | |
24224 | # value. By we need to know if files were specified by the user. | |
24225 | ac_need_defaults=: | |
24226 | while test $# != 0 | |
24227 | do | |
24228 | case $1 in | |
24229 | --*=*) | |
b4e70030 JB |
24230 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
24231 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
bec39cab | 24232 | ac_shift=: |
c906108c | 24233 | ;; |
b4e70030 | 24234 | -*) |
bec39cab AC |
24235 | ac_option=$1 |
24236 | ac_optarg=$2 | |
24237 | ac_shift=shift | |
c906108c | 24238 | ;; |
b4e70030 JB |
24239 | *) # This is not an option, so the user has probably given explicit |
24240 | # arguments. | |
24241 | ac_option=$1 | |
24242 | ac_need_defaults=false;; | |
bec39cab | 24243 | esac |
c906108c | 24244 | |
bec39cab AC |
24245 | case $ac_option in |
24246 | # Handling of the options. | |
b4e70030 JB |
24247 | _ACEOF |
24248 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab AC |
24249 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
24250 | ac_cs_recheck=: ;; | |
b4e70030 JB |
24251 | --version | --vers* | -V ) |
24252 | echo "$ac_cs_version"; exit 0 ;; | |
24253 | --he | --h) | |
24254 | # Conflict between --help and --header | |
24255 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
24256 | Try \`$0 --help' for more information." >&5 | |
24257 | echo "$as_me: error: ambiguous option: $1 | |
24258 | Try \`$0 --help' for more information." >&2;} | |
24259 | { (exit 1); exit 1; }; };; | |
24260 | --help | --hel | -h ) | |
24261 | echo "$ac_cs_usage"; exit 0 ;; | |
24262 | --debug | --d* | -d ) | |
bec39cab AC |
24263 | debug=: ;; |
24264 | --file | --fil | --fi | --f ) | |
24265 | $ac_shift | |
24266 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
24267 | ac_need_defaults=false;; | |
24268 | --header | --heade | --head | --hea ) | |
24269 | $ac_shift | |
24270 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
24271 | ac_need_defaults=false;; | |
24272 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
24273 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
24274 | ac_cs_silent=: ;; | |
c906108c | 24275 | |
bec39cab | 24276 | # This is an error. |
b4e70030 JB |
24277 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
24278 | Try \`$0 --help' for more information." >&5 | |
24279 | echo "$as_me: error: unrecognized option: $1 | |
24280 | Try \`$0 --help' for more information." >&2;} | |
bec39cab | 24281 | { (exit 1); exit 1; }; } ;; |
c906108c | 24282 | |
b4e70030 | 24283 | *) ac_config_targets="$ac_config_targets $1" ;; |
c906108c | 24284 | |
bec39cab AC |
24285 | esac |
24286 | shift | |
24287 | done | |
c906108c | 24288 | |
bec39cab | 24289 | ac_configure_extra_args= |
c906108c | 24290 | |
bec39cab AC |
24291 | if $ac_cs_silent; then |
24292 | exec 6>/dev/null | |
24293 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
24294 | fi | |
c906108c | 24295 | |
bec39cab AC |
24296 | _ACEOF |
24297 | cat >>$CONFIG_STATUS <<_ACEOF | |
24298 | if \$ac_cs_recheck; then | |
b4e70030 JB |
24299 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
24300 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
bec39cab AC |
24301 | fi |
24302 | ||
24303 | _ACEOF | |
24304 | ||
24305 | cat >>$CONFIG_STATUS <<_ACEOF | |
c906108c | 24306 | # |
b4e70030 | 24307 | # INIT-COMMANDS section. |
c906108c | 24308 | # |
c906108c | 24309 | |
b4e70030 | 24310 | |
4e8d927d DJ |
24311 | GCC="$GCC" |
24312 | CC="$CC" | |
24313 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
24314 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
24315 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
24316 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
24317 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
24318 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
24319 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
24320 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
24321 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
24322 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
24323 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
24324 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
24325 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
24326 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
24327 | ||
bec39cab AC |
24328 | |
24329 | gdb_host_cpu=$gdb_host_cpu | |
24330 | gdb_target_cpu=$gdb_target_cpu | |
24331 | nativefile=$nativefile | |
24332 | ||
24333 | ||
24334 | _ACEOF | |
24335 | ||
4e8d927d | 24336 | |
b4e70030 JB |
24337 | |
24338 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab | 24339 | for ac_config_target in $ac_config_targets |
c906108c | 24340 | do |
b4e70030 JB |
24341 | case "$ac_config_target" in |
24342 | # Handling of arguments. | |
24343 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
24344 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
24345 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
24346 | "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;; | |
24347 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
24348 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
bec39cab AC |
24349 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
24350 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
24351 | { (exit 1); exit 1; }; };; | |
c906108c SS |
24352 | esac |
24353 | done | |
24354 | ||
bec39cab AC |
24355 | # If the user did not use the arguments to specify the items to instantiate, |
24356 | # then the envvar interface is used. Set only those that are not. | |
24357 | # We use the long form for the default assignment because of an extremely | |
24358 | # bizarre bug on SunOS 4.1.3. | |
24359 | if $ac_need_defaults; then | |
24360 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
24361 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
24362 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
24363 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
24364 | fi | |
24365 | ||
b4e70030 JB |
24366 | # Have a temporary directory for convenience. Make it in the build tree |
24367 | # simply because there is no reason to put it here, and in addition, | |
24368 | # creating and moving files from /tmp can sometimes cause problems. | |
24369 | # Create a temporary directory, and hook for its removal unless debugging. | |
24370 | $debug || | |
24371 | { | |
24372 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
24373 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
24374 | } | |
4e8d927d | 24375 | |
b4e70030 | 24376 | # Create a (secure) tmp directory for tmp files. |
4e8d927d | 24377 | |
b4e70030 JB |
24378 | { |
24379 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
24380 | test -n "$tmp" && test -d "$tmp" | |
24381 | } || | |
24382 | { | |
24383 | tmp=./confstat$$-$RANDOM | |
24384 | (umask 077 && mkdir $tmp) | |
24385 | } || | |
24386 | { | |
24387 | echo "$me: cannot create a temporary directory in ." >&2 | |
24388 | { (exit 1); exit 1; } | |
24389 | } | |
4e8d927d | 24390 | |
b4e70030 | 24391 | _ACEOF |
4e8d927d | 24392 | |
b4e70030 | 24393 | cat >>$CONFIG_STATUS <<_ACEOF |
4e8d927d | 24394 | |
b4e70030 JB |
24395 | # |
24396 | # CONFIG_FILES section. | |
24397 | # | |
4e8d927d | 24398 | |
b4e70030 JB |
24399 | # No need to generate the scripts if there are no CONFIG_FILES. |
24400 | # This happens for instance when ./config.status config.h | |
24401 | if test -n "\$CONFIG_FILES"; then | |
24402 | # Protect against being on the right side of a sed subst in config.status. | |
24403 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
24404 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
24405 | s,@SHELL@,$SHELL,;t t | |
24406 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
24407 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
24408 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
24409 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
24410 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
24411 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
24412 | s,@exec_prefix@,$exec_prefix,;t t | |
24413 | s,@prefix@,$prefix,;t t | |
24414 | s,@program_transform_name@,$program_transform_name,;t t | |
24415 | s,@bindir@,$bindir,;t t | |
24416 | s,@sbindir@,$sbindir,;t t | |
24417 | s,@libexecdir@,$libexecdir,;t t | |
24418 | s,@datadir@,$datadir,;t t | |
24419 | s,@sysconfdir@,$sysconfdir,;t t | |
24420 | s,@sharedstatedir@,$sharedstatedir,;t t | |
24421 | s,@localstatedir@,$localstatedir,;t t | |
24422 | s,@libdir@,$libdir,;t t | |
24423 | s,@includedir@,$includedir,;t t | |
24424 | s,@oldincludedir@,$oldincludedir,;t t | |
24425 | s,@infodir@,$infodir,;t t | |
24426 | s,@mandir@,$mandir,;t t | |
24427 | s,@build_alias@,$build_alias,;t t | |
24428 | s,@host_alias@,$host_alias,;t t | |
24429 | s,@target_alias@,$target_alias,;t t | |
24430 | s,@DEFS@,$DEFS,;t t | |
24431 | s,@ECHO_C@,$ECHO_C,;t t | |
24432 | s,@ECHO_N@,$ECHO_N,;t t | |
24433 | s,@ECHO_T@,$ECHO_T,;t t | |
24434 | s,@LIBS@,$LIBS,;t t | |
24435 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
24436 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
24437 | s,@MAINT@,$MAINT,;t t | |
24438 | s,@CC@,$CC,;t t | |
24439 | s,@CFLAGS@,$CFLAGS,;t t | |
24440 | s,@LDFLAGS@,$LDFLAGS,;t t | |
24441 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
24442 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
24443 | s,@EXEEXT@,$EXEEXT,;t t | |
24444 | s,@OBJEXT@,$OBJEXT,;t t | |
24445 | s,@CPP@,$CPP,;t t | |
24446 | s,@EGREP@,$EGREP,;t t | |
24447 | s,@build@,$build,;t t | |
24448 | s,@build_cpu@,$build_cpu,;t t | |
24449 | s,@build_vendor@,$build_vendor,;t t | |
24450 | s,@build_os@,$build_os,;t t | |
24451 | s,@host@,$host,;t t | |
24452 | s,@host_cpu@,$host_cpu,;t t | |
24453 | s,@host_vendor@,$host_vendor,;t t | |
24454 | s,@host_os@,$host_os,;t t | |
24455 | s,@target@,$target,;t t | |
24456 | s,@target_cpu@,$target_cpu,;t t | |
24457 | s,@target_vendor@,$target_vendor,;t t | |
24458 | s,@target_os@,$target_os,;t t | |
b4e70030 | 24459 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
24460 | s,@LIBINTL@,$LIBINTL,;t t |
24461 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
24462 | s,@INCINTL@,$INCINTL,;t t | |
b4e70030 | 24463 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
24464 | s,@GMSGFMT@,$GMSGFMT,;t t |
24465 | s,@POSUB@,$POSUB,;t t | |
b4e70030 | 24466 | s,@CATALOGS@,$CATALOGS,;t t |
b4e70030 | 24467 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
b4e70030 | 24468 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
24469 | s,@GENCAT@,$GENCAT,;t t |
24470 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
b4e70030 JB |
24471 | s,@localedir@,$localedir,;t t |
24472 | s,@PACKAGE@,$PACKAGE,;t t | |
24473 | s,@subdirs@,$subdirs,;t t | |
24474 | s,@AWK@,$AWK,;t t | |
24475 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
24476 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
24477 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
24478 | s,@LN_S@,$LN_S,;t t | |
20e95c23 DJ |
24479 | s,@RANLIB@,$RANLIB,;t t |
24480 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
b4e70030 JB |
24481 | s,@YACC@,$YACC,;t t |
24482 | s,@AR@,$AR,;t t | |
24483 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
24484 | s,@DLLTOOL@,$DLLTOOL,;t t | |
24485 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
24486 | s,@WINDRES@,$WINDRES,;t t | |
24487 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
24488 | s,@MIG@,$MIG,;t t | |
24489 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t | |
6a30b0a5 AS |
24490 | s,@READLINE@,$READLINE,;t t |
24491 | s,@READLINE_DEPS@,$READLINE_DEPS,;t t | |
24492 | s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t | |
3841debe DJ |
24493 | s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t |
24494 | s,@LIBEXPAT@,$LIBEXPAT,;t t | |
24495 | s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t | |
20e95c23 | 24496 | s,@ALLOCA@,$ALLOCA,;t t |
b4e70030 JB |
24497 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t |
24498 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t | |
24499 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t | |
24500 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
24501 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
24502 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t | |
24503 | s,@WIN32LIBS@,$WIN32LIBS,;t t | |
24504 | s,@LIBGUI@,$LIBGUI,;t t | |
24505 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t | |
24506 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t | |
24507 | s,@TCL_VERSION@,$TCL_VERSION,;t t | |
24508 | s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t | |
24509 | s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t | |
24510 | s,@TCL_CC@,$TCL_CC,;t t | |
24511 | s,@TCL_DEFS@,$TCL_DEFS,;t t | |
24512 | s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t | |
24513 | s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t | |
24514 | s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t | |
24515 | s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t | |
24516 | s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t | |
24517 | s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t | |
24518 | s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t | |
24519 | s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t | |
24520 | s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t | |
24521 | s,@TCL_RANLIB@,$TCL_RANLIB,;t t | |
24522 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t | |
24523 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t | |
24524 | s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t | |
24525 | s,@TK_VERSION@,$TK_VERSION,;t t | |
24526 | s,@TK_DEFS@,$TK_DEFS,;t t | |
24527 | s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t | |
24528 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t | |
24529 | s,@TK_XLIBSW@,$TK_XLIBSW,;t t | |
24530 | s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t | |
24531 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t | |
24532 | s,@TCLHDIR@,$TCLHDIR,;t t | |
24533 | s,@TKHDIR@,$TKHDIR,;t t | |
24534 | s,@ITCLHDIR@,$ITCLHDIR,;t t | |
24535 | s,@ITKHDIR@,$ITKHDIR,;t t | |
24536 | s,@ITCL_VERSION@,$ITCL_VERSION,;t t | |
24537 | s,@ITCL_DEFS@,$ITCL_DEFS,;t t | |
24538 | s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t | |
24539 | s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t | |
24540 | s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t | |
24541 | s,@ITK_VERSION@,$ITK_VERSION,;t t | |
24542 | s,@ITK_DEFS@,$ITK_DEFS,;t t | |
24543 | s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t | |
24544 | s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t | |
24545 | s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t | |
24546 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
24547 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t | |
24548 | s,@X_LIBS@,$X_LIBS,;t t | |
24549 | s,@TCL_DEPS@,$TCL_DEPS,;t t | |
24550 | s,@TK_DEPS@,$TK_DEPS,;t t | |
24551 | s,@ITCLLIB@,$ITCLLIB,;t t | |
24552 | s,@ITCL_DEPS@,$ITCL_DEPS,;t t | |
24553 | s,@ITKLIB@,$ITKLIB,;t t | |
24554 | s,@ITK_DEPS@,$ITK_DEPS,;t t | |
24555 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t | |
24556 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t | |
24557 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t | |
24558 | s,@IGNORE_SIM@,$IGNORE_SIM,;t t | |
24559 | s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t | |
24560 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t | |
24561 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t | |
24562 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t | |
24563 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t | |
24564 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t | |
24565 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t | |
24566 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t | |
24567 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t | |
24568 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t | |
24569 | s,@target_subdir@,$target_subdir,;t t | |
24570 | s,@frags@,$frags,;t t | |
24571 | s,@xm_h@,$xm_h,;t t | |
24572 | s,@tm_h@,$tm_h,;t t | |
24573 | s,@nm_h@,$nm_h,;t t | |
24574 | s,@LIBICONV@,$LIBICONV,;t t | |
24575 | s,@LIBOBJS@,$LIBOBJS,;t t | |
24576 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
24577 | /@host_makefile_frag@/r $host_makefile_frag | |
24578 | s,@host_makefile_frag@,,;t t | |
24579 | /@target_makefile_frag@/r $target_makefile_frag | |
24580 | s,@target_makefile_frag@,,;t t | |
24581 | CEOF | |
24582 | ||
24583 | _ACEOF | |
24584 | ||
24585 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24586 | # Split the substitutions into bite-sized pieces for seds with | |
24587 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
24588 | ac_max_sed_lines=48 | |
24589 | ac_sed_frag=1 # Number of current file. | |
24590 | ac_beg=1 # First line for current file. | |
24591 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
24592 | ac_more_lines=: | |
24593 | ac_sed_cmds= | |
24594 | while $ac_more_lines; do | |
24595 | if test $ac_beg -gt 1; then | |
24596 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
24597 | else | |
24598 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
4e8d927d | 24599 | fi |
b4e70030 JB |
24600 | if test ! -s $tmp/subs.frag; then |
24601 | ac_more_lines=false | |
24602 | else | |
24603 | # The purpose of the label and of the branching condition is to | |
24604 | # speed up the sed processing (if there are no `@' at all, there | |
24605 | # is no need to browse any of the substitutions). | |
24606 | # These are the two extra sed commands mentioned above. | |
24607 | (echo ':t | |
24608 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
24609 | if test -z "$ac_sed_cmds"; then | |
24610 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
24611 | else | |
24612 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
24613 | fi | |
24614 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
24615 | ac_beg=$ac_end | |
24616 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
24617 | fi | |
24618 | done | |
24619 | if test -z "$ac_sed_cmds"; then | |
24620 | ac_sed_cmds=cat | |
24621 | fi | |
24622 | fi # test -n "$CONFIG_FILES" | |
4e8d927d | 24623 | |
b4e70030 JB |
24624 | _ACEOF |
24625 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24626 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
24627 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
24628 | case $ac_file in | |
24629 | - | *:- | *:-:* ) # input from stdin | |
24630 | cat >$tmp/stdin | |
24631 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24632 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24633 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24634 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24635 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
24636 | esac |
24637 | ||
b4e70030 JB |
24638 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
24639 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
bec39cab AC |
24640 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
24641 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
24642 | X"$ac_file" : 'X\(//\)$' \| \ | |
b4e70030 JB |
24643 | X"$ac_file" : 'X\(/\)' \| \ |
24644 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 24645 | echo X"$ac_file" | |
b4e70030 JB |
24646 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
24647 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24648 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24649 | /^X\(\/\).*/{ s//\1/; q; } | |
24650 | s/.*/./; q'` | |
24651 | { if $as_mkdir_p; then | |
24652 | mkdir -p "$ac_dir" | |
24653 | else | |
24654 | as_dir="$ac_dir" | |
bec39cab | 24655 | as_dirs= |
b4e70030 JB |
24656 | while test ! -d "$as_dir"; do |
24657 | as_dirs="$as_dir $as_dirs" | |
24658 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
24659 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
24660 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24661 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
24662 | X"$as_dir" : 'X\(/\)' \| \ |
24663 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 24664 | echo X"$as_dir" | |
b4e70030 JB |
24665 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
24666 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24667 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24668 | /^X\(\/\).*/{ s//\1/; q; } | |
24669 | s/.*/./; q'` | |
bec39cab | 24670 | done |
b4e70030 JB |
24671 | test ! -n "$as_dirs" || mkdir $as_dirs |
24672 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
24673 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 24674 | { (exit 1); exit 1; }; }; } |
b4e70030 | 24675 | |
bec39cab AC |
24676 | ac_builddir=. |
24677 | ||
b4e70030 | 24678 | if test "$ac_dir" != .; then |
bec39cab | 24679 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
24680 | # A "../" for each directory in $ac_dir_suffix. |
24681 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
24682 | else | |
24683 | ac_dir_suffix= ac_top_builddir= | |
24684 | fi | |
bec39cab AC |
24685 | |
24686 | case $srcdir in | |
b4e70030 | 24687 | .) # No --srcdir option. We are building in place. |
bec39cab | 24688 | ac_srcdir=. |
b4e70030 JB |
24689 | if test -z "$ac_top_builddir"; then |
24690 | ac_top_srcdir=. | |
24691 | else | |
24692 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
24693 | fi ;; | |
24694 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 24695 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
24696 | ac_top_srcdir=$srcdir ;; |
24697 | *) # Relative path. | |
24698 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
24699 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
bec39cab AC |
24700 | esac |
24701 | ||
b4e70030 JB |
24702 | # Do not use `cd foo && pwd` to compute absolute paths, because |
24703 | # the directories may not exist. | |
24704 | case `pwd` in | |
24705 | .) ac_abs_builddir="$ac_dir";; | |
24706 | *) | |
24707 | case "$ac_dir" in | |
24708 | .) ac_abs_builddir=`pwd`;; | |
24709 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
24710 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
24711 | esac;; | |
24712 | esac | |
24713 | case $ac_abs_builddir in | |
24714 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24715 | *) | |
24716 | case ${ac_top_builddir}. in | |
24717 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
24718 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24719 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
24720 | esac;; | |
24721 | esac | |
24722 | case $ac_abs_builddir in | |
24723 | .) ac_abs_srcdir=$ac_srcdir;; | |
24724 | *) | |
24725 | case $ac_srcdir in | |
24726 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
24727 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
24728 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
24729 | esac;; | |
24730 | esac | |
24731 | case $ac_abs_builddir in | |
24732 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24733 | *) | |
24734 | case $ac_top_srcdir in | |
24735 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
24736 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24737 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
24738 | esac;; | |
24739 | esac | |
c906108c | 24740 | |
c906108c | 24741 | |
bec39cab AC |
24742 | case $INSTALL in |
24743 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
b4e70030 | 24744 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
c906108c | 24745 | esac |
121ce6e5 | 24746 | |
b4e70030 JB |
24747 | if test x"$ac_file" != x-; then |
24748 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
24749 | echo "$as_me: creating $ac_file" >&6;} | |
24750 | rm -f "$ac_file" | |
24751 | fi | |
24752 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
24753 | # use $as_me), people would be surprised to read: | |
24754 | # /* config.h. Generated by config.status. */ | |
24755 | if test x"$ac_file" = x-; then | |
24756 | configure_input= | |
24757 | else | |
24758 | configure_input="$ac_file. " | |
24759 | fi | |
24760 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
24761 | sed 's,.*/,,'` by configure." | |
24762 | ||
24763 | # First look for the input files in the build tree, otherwise in the | |
24764 | # src tree. | |
24765 | ac_file_inputs=`IFS=: | |
24766 | for f in $ac_file_in; do | |
24767 | case $f in | |
24768 | -) echo $tmp/stdin ;; | |
24769 | [\\/$]*) | |
24770 | # Absolute (can't be DOS-style, as IFS=:) | |
24771 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24772 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24773 | { (exit 1); exit 1; }; } | |
24774 | echo "$f";; | |
24775 | *) # Relative | |
24776 | if test -f "$f"; then | |
24777 | # Build tree | |
24778 | echo "$f" | |
24779 | elif test -f "$srcdir/$f"; then | |
24780 | # Source tree | |
24781 | echo "$srcdir/$f" | |
24782 | else | |
24783 | # /dev/null tree | |
24784 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24785 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24786 | { (exit 1); exit 1; }; } | |
24787 | fi;; | |
24788 | esac | |
24789 | done` || { (exit 1); exit 1; } | |
4e8d927d | 24790 | _ACEOF |
bec39cab AC |
24791 | cat >>$CONFIG_STATUS <<_ACEOF |
24792 | sed "$ac_vpsub | |
24793 | $extrasub | |
24794 | _ACEOF | |
24795 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24796 | :t | |
24797 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
b4e70030 JB |
24798 | s,@configure_input@,$configure_input,;t t |
24799 | s,@srcdir@,$ac_srcdir,;t t | |
24800 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
24801 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
24802 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
24803 | s,@builddir@,$ac_builddir,;t t | |
24804 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
24805 | s,@top_builddir@,$ac_top_builddir,;t t | |
24806 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
24807 | s,@INSTALL@,$ac_INSTALL,;t t | |
24808 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
24809 | rm -f $tmp/stdin | |
24810 | if test x"$ac_file" != x-; then | |
24811 | mv $tmp/out $ac_file | |
24812 | else | |
24813 | cat $tmp/out | |
24814 | rm -f $tmp/out | |
24815 | fi | |
24816 | ||
24817 | done | |
24818 | _ACEOF | |
24819 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24820 | ||
24821 | # | |
24822 | # CONFIG_HEADER section. | |
24823 | # | |
24824 | ||
24825 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
24826 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
24827 | # | |
24828 | # ac_d sets the value in "#define NAME VALUE" lines. | |
24829 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
24830 | ac_dB='[ ].*$,\1#\2' | |
24831 | ac_dC=' ' | |
24832 | ac_dD=',;t' | |
24833 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
24834 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
24835 | ac_uB='$,\1#\2define\3' | |
24836 | ac_uC=' ' | |
24837 | ac_uD=',;t' | |
24838 | ||
24839 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
24840 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
bec39cab | 24841 | case $ac_file in |
b4e70030 JB |
24842 | - | *:- | *:-:* ) # input from stdin |
24843 | cat >$tmp/stdin | |
24844 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24845 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24846 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24847 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24848 | * ) ac_file_in=$ac_file.in ;; | |
c906108c | 24849 | esac |
b4e70030 JB |
24850 | |
24851 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
24852 | echo "$as_me: creating $ac_file" >&6;} | |
24853 | ||
24854 | # First look for the input files in the build tree, otherwise in the | |
24855 | # src tree. | |
24856 | ac_file_inputs=`IFS=: | |
24857 | for f in $ac_file_in; do | |
24858 | case $f in | |
24859 | -) echo $tmp/stdin ;; | |
24860 | [\\/$]*) | |
24861 | # Absolute (can't be DOS-style, as IFS=:) | |
24862 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24863 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24864 | { (exit 1); exit 1; }; } | |
24865 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
24866 | echo "$f";; | |
24867 | *) # Relative | |
24868 | if test -f "$f"; then | |
24869 | # Build tree | |
24870 | echo "$f" | |
24871 | elif test -f "$srcdir/$f"; then | |
24872 | # Source tree | |
24873 | echo "$srcdir/$f" | |
24874 | else | |
24875 | # /dev/null tree | |
24876 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24877 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24878 | { (exit 1); exit 1; }; } | |
24879 | fi;; | |
24880 | esac | |
24881 | done` || { (exit 1); exit 1; } | |
24882 | # Remove the trailing spaces. | |
24883 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
24884 | ||
24885 | _ACEOF | |
24886 | ||
24887 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
24888 | # `conftest.undefs', that substitutes the proper values into | |
24889 | # config.h.in to produce config.h. The first handles `#define' | |
24890 | # templates, and the second `#undef' templates. | |
24891 | # And first: Protect against being on the right side of a sed subst in | |
24892 | # config.status. Protect against being in an unquoted here document | |
24893 | # in config.status. | |
24894 | rm -f conftest.defines conftest.undefs | |
24895 | # Using a here document instead of a string reduces the quoting nightmare. | |
24896 | # Putting comments in sed scripts is not portable. | |
24897 | # | |
24898 | # `end' is used to avoid that the second main sed command (meant for | |
24899 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
24900 | # See the Autoconf documentation for `clear'. | |
24901 | cat >confdef2sed.sed <<\_ACEOF | |
24902 | s/[\\&,]/\\&/g | |
24903 | s,[\\$`],\\&,g | |
24904 | t clear | |
24905 | : clear | |
24906 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
24907 | t end | |
24908 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
24909 | : end | |
24910 | _ACEOF | |
24911 | # If some macros were called several times there might be several times | |
24912 | # the same #defines, which is useless. Nevertheless, we may not want to | |
24913 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
24914 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
24915 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
24916 | rm -f confdef2sed.sed | |
24917 | ||
24918 | # This sed command replaces #undef with comments. This is necessary, for | |
c906108c SS |
24919 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
24920 | # on some systems where configure will not decide to define it. | |
b4e70030 JB |
24921 | cat >>conftest.undefs <<\_ACEOF |
24922 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
24923 | _ACEOF | |
24924 | ||
24925 | # Break up conftest.defines because some shells have a limit on the size | |
24926 | # of here documents, and old seds have small limits too (100 cmds). | |
24927 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
24928 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
24929 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
24930 | echo ' :' >>$CONFIG_STATUS | |
24931 | rm -f conftest.tail | |
24932 | while grep . conftest.defines >/dev/null | |
bec39cab | 24933 | do |
b4e70030 JB |
24934 | # Write a limited-size here document to $tmp/defines.sed. |
24935 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
24936 | # Speed up: don't consider the non `#define' lines. | |
24937 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
24938 | # Work around the forget-to-reset-the-flag bug. | |
24939 | echo 't clr' >>$CONFIG_STATUS | |
24940 | echo ': clr' >>$CONFIG_STATUS | |
24941 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
bec39cab | 24942 | echo 'CEOF |
b4e70030 JB |
24943 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
24944 | rm -f $tmp/in | |
24945 | mv $tmp/out $tmp/in | |
24946 | ' >>$CONFIG_STATUS | |
24947 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
bec39cab AC |
24948 | rm -f conftest.defines |
24949 | mv conftest.tail conftest.defines | |
24950 | done | |
b4e70030 JB |
24951 | rm -f conftest.defines |
24952 | echo ' fi # grep' >>$CONFIG_STATUS | |
24953 | echo >>$CONFIG_STATUS | |
24954 | ||
24955 | # Break up conftest.undefs because some shells have a limit on the size | |
24956 | # of here documents, and old seds have small limits too (100 cmds). | |
24957 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
24958 | rm -f conftest.tail | |
24959 | while grep . conftest.undefs >/dev/null | |
24960 | do | |
24961 | # Write a limited-size here document to $tmp/undefs.sed. | |
24962 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
24963 | # Speed up: don't consider the non `#undef' | |
24964 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
24965 | # Work around the forget-to-reset-the-flag bug. | |
24966 | echo 't clr' >>$CONFIG_STATUS | |
24967 | echo ': clr' >>$CONFIG_STATUS | |
24968 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
24969 | echo 'CEOF | |
24970 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
24971 | rm -f $tmp/in | |
24972 | mv $tmp/out $tmp/in | |
24973 | ' >>$CONFIG_STATUS | |
24974 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
24975 | rm -f conftest.undefs | |
24976 | mv conftest.tail conftest.undefs | |
24977 | done | |
24978 | rm -f conftest.undefs | |
bec39cab AC |
24979 | |
24980 | cat >>$CONFIG_STATUS <<\_ACEOF | |
b4e70030 JB |
24981 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
24982 | # use $as_me), people would be surprised to read: | |
24983 | # /* config.h. Generated by config.status. */ | |
24984 | if test x"$ac_file" = x-; then | |
24985 | echo "/* Generated by configure. */" >$tmp/config.h | |
24986 | else | |
24987 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
24988 | fi | |
24989 | cat $tmp/in >>$tmp/config.h | |
24990 | rm -f $tmp/in | |
bec39cab | 24991 | if test x"$ac_file" != x-; then |
b4e70030 | 24992 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
bec39cab AC |
24993 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
24994 | echo "$as_me: $ac_file is unchanged" >&6;} | |
24995 | else | |
b4e70030 JB |
24996 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
24997 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24998 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
24999 | X"$ac_file" : 'X\(//\)$' \| \ | |
25000 | X"$ac_file" : 'X\(/\)' \| \ | |
25001 | . : '\(.\)' 2>/dev/null || | |
25002 | echo X"$ac_file" | | |
25003 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25004 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25005 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25006 | /^X\(\/\).*/{ s//\1/; q; } | |
25007 | s/.*/./; q'` | |
25008 | { if $as_mkdir_p; then | |
25009 | mkdir -p "$ac_dir" | |
25010 | else | |
25011 | as_dir="$ac_dir" | |
25012 | as_dirs= | |
25013 | while test ! -d "$as_dir"; do | |
25014 | as_dirs="$as_dir $as_dirs" | |
25015 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25016 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25017 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25018 | X"$as_dir" : 'X\(//\)$' \| \ | |
25019 | X"$as_dir" : 'X\(/\)' \| \ | |
25020 | . : '\(.\)' 2>/dev/null || | |
25021 | echo X"$as_dir" | | |
25022 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25023 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25024 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25025 | /^X\(\/\).*/{ s//\1/; q; } | |
25026 | s/.*/./; q'` | |
25027 | done | |
25028 | test ! -n "$as_dirs" || mkdir $as_dirs | |
25029 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25030 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
25031 | { (exit 1); exit 1; }; }; } | |
25032 | ||
bec39cab | 25033 | rm -f $ac_file |
b4e70030 | 25034 | mv $tmp/config.h $ac_file |
bec39cab AC |
25035 | fi |
25036 | else | |
b4e70030 JB |
25037 | cat $tmp/config.h |
25038 | rm -f $tmp/config.h | |
bec39cab | 25039 | fi |
b4e70030 JB |
25040 | done |
25041 | _ACEOF | |
25042 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25043 | ||
25044 | # | |
25045 | # CONFIG_LINKS section. | |
25046 | # | |
25047 | ||
25048 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue | |
25049 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
25050 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 25051 | |
b4e70030 JB |
25052 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
25053 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
25054 | |
25055 | if test ! -r $srcdir/$ac_source; then | |
bec39cab AC |
25056 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
25057 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
25058 | { (exit 1); exit 1; }; } | |
c906108c | 25059 | fi |
b4e70030 JB |
25060 | rm -f $ac_dest |
25061 | ||
25062 | # Make relative symlinks. | |
25063 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || | |
25064 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25065 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
25066 | X"$ac_dest" : 'X\(//\)$' \| \ | |
25067 | X"$ac_dest" : 'X\(/\)' \| \ | |
25068 | . : '\(.\)' 2>/dev/null || | |
25069 | echo X"$ac_dest" | | |
25070 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25071 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25072 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25073 | /^X\(\/\).*/{ s//\1/; q; } | |
25074 | s/.*/./; q'` | |
25075 | { if $as_mkdir_p; then | |
25076 | mkdir -p "$ac_dest_dir" | |
25077 | else | |
25078 | as_dir="$ac_dest_dir" | |
25079 | as_dirs= | |
25080 | while test ! -d "$as_dir"; do | |
25081 | as_dirs="$as_dir $as_dirs" | |
25082 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25083 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25084 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25085 | X"$as_dir" : 'X\(//\)$' \| \ | |
25086 | X"$as_dir" : 'X\(/\)' \| \ | |
25087 | . : '\(.\)' 2>/dev/null || | |
25088 | echo X"$as_dir" | | |
25089 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25090 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25091 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25092 | /^X\(\/\).*/{ s//\1/; q; } | |
25093 | s/.*/./; q'` | |
25094 | done | |
25095 | test ! -n "$as_dirs" || mkdir $as_dirs | |
25096 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
25097 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
25098 | { (exit 1); exit 1; }; }; } | |
25099 | ||
25100 | ac_builddir=. | |
25101 | ||
25102 | if test "$ac_dest_dir" != .; then | |
25103 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
25104 | # A "../" for each directory in $ac_dir_suffix. | |
25105 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25106 | else | |
25107 | ac_dir_suffix= ac_top_builddir= | |
25108 | fi | |
25109 | ||
25110 | case $srcdir in | |
25111 | .) # No --srcdir option. We are building in place. | |
25112 | ac_srcdir=. | |
25113 | if test -z "$ac_top_builddir"; then | |
25114 | ac_top_srcdir=. | |
25115 | else | |
25116 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25117 | fi ;; | |
25118 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
25119 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25120 | ac_top_srcdir=$srcdir ;; | |
25121 | *) # Relative path. | |
25122 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25123 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25124 | esac | |
25125 | ||
25126 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
25127 | # the directories may not exist. | |
25128 | case `pwd` in | |
25129 | .) ac_abs_builddir="$ac_dest_dir";; | |
25130 | *) | |
25131 | case "$ac_dest_dir" in | |
25132 | .) ac_abs_builddir=`pwd`;; | |
25133 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
25134 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
25135 | esac;; | |
25136 | esac | |
25137 | case $ac_abs_builddir in | |
25138 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25139 | *) | |
25140 | case ${ac_top_builddir}. in | |
25141 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25142 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25143 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25144 | esac;; | |
25145 | esac | |
25146 | case $ac_abs_builddir in | |
25147 | .) ac_abs_srcdir=$ac_srcdir;; | |
25148 | *) | |
25149 | case $ac_srcdir in | |
25150 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25151 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25152 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25153 | esac;; | |
25154 | esac | |
25155 | case $ac_abs_builddir in | |
25156 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25157 | *) | |
25158 | case $ac_top_srcdir in | |
25159 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25160 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25161 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25162 | esac;; | |
25163 | esac | |
25164 | ||
bec39cab AC |
25165 | |
25166 | case $srcdir in | |
25167 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
b4e70030 | 25168 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
c906108c | 25169 | esac |
b4e70030 JB |
25170 | |
25171 | # Try a symlink, then a hard link, then a copy. | |
25172 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
25173 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
25174 | cp -p $srcdir/$ac_source $ac_dest || | |
25175 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
25176 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
bec39cab | 25177 | { (exit 1); exit 1; }; } |
b4e70030 JB |
25178 | done |
25179 | _ACEOF | |
25180 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25181 | ||
25182 | # | |
25183 | # CONFIG_COMMANDS section. | |
25184 | # | |
25185 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
25186 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
25187 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25188 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
25189 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25190 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
25191 | X"$ac_dest" : 'X\(//\)$' \| \ | |
25192 | X"$ac_dest" : 'X\(/\)' \| \ | |
25193 | . : '\(.\)' 2>/dev/null || | |
25194 | echo X"$ac_dest" | | |
25195 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25196 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25197 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25198 | /^X\(\/\).*/{ s//\1/; q; } | |
25199 | s/.*/./; q'` | |
25200 | { if $as_mkdir_p; then | |
25201 | mkdir -p "$ac_dir" | |
25202 | else | |
25203 | as_dir="$ac_dir" | |
25204 | as_dirs= | |
25205 | while test ! -d "$as_dir"; do | |
25206 | as_dirs="$as_dir $as_dirs" | |
25207 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25208 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25209 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25210 | X"$as_dir" : 'X\(//\)$' \| \ | |
25211 | X"$as_dir" : 'X\(/\)' \| \ | |
25212 | . : '\(.\)' 2>/dev/null || | |
25213 | echo X"$as_dir" | | |
25214 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25215 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25216 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25217 | /^X\(\/\).*/{ s//\1/; q; } | |
25218 | s/.*/./; q'` | |
25219 | done | |
25220 | test ! -n "$as_dirs" || mkdir $as_dirs | |
25221 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25222 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
25223 | { (exit 1); exit 1; }; }; } | |
25224 | ||
25225 | ac_builddir=. | |
25226 | ||
25227 | if test "$ac_dir" != .; then | |
25228 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
25229 | # A "../" for each directory in $ac_dir_suffix. | |
25230 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25231 | else | |
25232 | ac_dir_suffix= ac_top_builddir= | |
25233 | fi | |
25234 | ||
25235 | case $srcdir in | |
25236 | .) # No --srcdir option. We are building in place. | |
25237 | ac_srcdir=. | |
25238 | if test -z "$ac_top_builddir"; then | |
25239 | ac_top_srcdir=. | |
25240 | else | |
25241 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25242 | fi ;; | |
25243 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
25244 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25245 | ac_top_srcdir=$srcdir ;; | |
25246 | *) # Relative path. | |
25247 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25248 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25249 | esac | |
25250 | ||
25251 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
25252 | # the directories may not exist. | |
25253 | case `pwd` in | |
25254 | .) ac_abs_builddir="$ac_dir";; | |
25255 | *) | |
25256 | case "$ac_dir" in | |
25257 | .) ac_abs_builddir=`pwd`;; | |
25258 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
25259 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
25260 | esac;; | |
25261 | esac | |
25262 | case $ac_abs_builddir in | |
25263 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25264 | *) | |
25265 | case ${ac_top_builddir}. in | |
25266 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25267 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25268 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25269 | esac;; | |
25270 | esac | |
25271 | case $ac_abs_builddir in | |
25272 | .) ac_abs_srcdir=$ac_srcdir;; | |
25273 | *) | |
25274 | case $ac_srcdir in | |
25275 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25276 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25277 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25278 | esac;; | |
25279 | esac | |
25280 | case $ac_abs_builddir in | |
25281 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25282 | *) | |
25283 | case $ac_top_srcdir in | |
25284 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25285 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25286 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25287 | esac;; | |
25288 | esac | |
bec39cab | 25289 | |
bec39cab | 25290 | |
b4e70030 JB |
25291 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
25292 | echo "$as_me: executing $ac_dest commands" >&6;} | |
25293 | case $ac_dest in | |
25294 | gdb_stdint.h ) | |
4e8d927d DJ |
25295 | if test "$GCC" = yes; then |
25296 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
25297 | else | |
25298 | echo "/* generated for $CC */" > tmp-stdint.h | |
25299 | fi | |
25300 | ||
25301 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25302 | ||
25303 | #ifndef GCC_GENERATED_STDINT_H | |
25304 | #define GCC_GENERATED_STDINT_H 1 | |
25305 | ||
25306 | #include <sys/types.h> | |
25307 | EOF | |
25308 | ||
25309 | if test "$acx_cv_header_stdint" != stdint.h; then | |
25310 | echo "#include <stddef.h>" >> tmp-stdint.h | |
25311 | fi | |
25312 | if test "$acx_cv_header_stdint" != stddef.h; then | |
25313 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
25314 | fi | |
25315 | ||
25316 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25317 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
25318 | #ifdef __int8_t_defined | |
25319 | #define _INT8_T | |
25320 | #define _INT16_T | |
25321 | #define _INT32_T | |
25322 | #endif | |
25323 | #ifdef __uint32_t_defined | |
25324 | #define _UINT32_T | |
25325 | #endif | |
25326 | ||
25327 | EOF | |
25328 | ||
25329 | # ----------------- done header, emit basic int types ------------- | |
25330 | if test "$acx_cv_header_stdint" = stddef.h; then | |
25331 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25332 | ||
25333 | #ifndef _UINT8_T | |
25334 | #define _UINT8_T | |
07abfebf RS |
25335 | #ifndef __uint8_t_defined |
25336 | #define __uint8_t_defined | |
4e8d927d DJ |
25337 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
25338 | #endif | |
07abfebf | 25339 | #endif |
4e8d927d DJ |
25340 | |
25341 | #ifndef _UINT16_T | |
25342 | #define _UINT16_T | |
07abfebf RS |
25343 | #ifndef __uint16_t_defined |
25344 | #define __uint16_t_defined | |
4e8d927d DJ |
25345 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
25346 | #endif | |
07abfebf | 25347 | #endif |
4e8d927d DJ |
25348 | |
25349 | #ifndef _UINT32_T | |
25350 | #define _UINT32_T | |
07abfebf RS |
25351 | #ifndef __uint32_t_defined |
25352 | #define __uint32_t_defined | |
4e8d927d DJ |
25353 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
25354 | #endif | |
07abfebf | 25355 | #endif |
4e8d927d DJ |
25356 | |
25357 | #ifndef _INT8_T | |
25358 | #define _INT8_T | |
07abfebf RS |
25359 | #ifndef __int8_t_defined |
25360 | #define __int8_t_defined | |
4e8d927d DJ |
25361 | typedef $acx_cv_type_int8_t int8_t; |
25362 | #endif | |
07abfebf | 25363 | #endif |
4e8d927d DJ |
25364 | |
25365 | #ifndef _INT16_T | |
25366 | #define _INT16_T | |
07abfebf RS |
25367 | #ifndef __int16_t_defined |
25368 | #define __int16_t_defined | |
4e8d927d DJ |
25369 | typedef $acx_cv_type_int16_t int16_t; |
25370 | #endif | |
07abfebf | 25371 | #endif |
4e8d927d DJ |
25372 | |
25373 | #ifndef _INT32_T | |
25374 | #define _INT32_T | |
07abfebf RS |
25375 | #ifndef __int32_t_defined |
25376 | #define __int32_t_defined | |
4e8d927d DJ |
25377 | typedef $acx_cv_type_int32_t int32_t; |
25378 | #endif | |
07abfebf | 25379 | #endif |
4e8d927d DJ |
25380 | EOF |
25381 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
25382 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25383 | ||
25384 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
25385 | #ifndef _INT8_T | |
25386 | #define _INT8_T | |
25387 | #endif | |
25388 | #ifndef _INT16_T | |
25389 | #define _INT16_T | |
25390 | #endif | |
25391 | #ifndef _INT32_T | |
25392 | #define _INT32_T | |
25393 | #endif | |
25394 | ||
25395 | #ifndef _UINT8_T | |
25396 | #define _UINT8_T | |
07abfebf RS |
25397 | #ifndef __uint8_t_defined |
25398 | #define __uint8_t_defined | |
4e8d927d DJ |
25399 | typedef u_int8_t uint8_t; |
25400 | #endif | |
07abfebf | 25401 | #endif |
4e8d927d DJ |
25402 | |
25403 | #ifndef _UINT16_T | |
25404 | #define _UINT16_T | |
07abfebf RS |
25405 | #ifndef __uint16_t_defined |
25406 | #define __uint16_t_defined | |
4e8d927d DJ |
25407 | typedef u_int16_t uint16_t; |
25408 | #endif | |
07abfebf | 25409 | #endif |
4e8d927d DJ |
25410 | |
25411 | #ifndef _UINT32_T | |
25412 | #define _UINT32_T | |
07abfebf RS |
25413 | #ifndef __uint32_t_defined |
25414 | #define __uint32_t_defined | |
4e8d927d DJ |
25415 | typedef u_int32_t uint32_t; |
25416 | #endif | |
07abfebf | 25417 | #endif |
4e8d927d DJ |
25418 | EOF |
25419 | else | |
25420 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25421 | ||
25422 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
25423 | #ifndef _INT8_T | |
25424 | #define _INT8_T | |
25425 | #endif | |
25426 | #ifndef _INT16_T | |
25427 | #define _INT16_T | |
25428 | #endif | |
25429 | #ifndef _INT32_T | |
25430 | #define _INT32_T | |
25431 | #endif | |
25432 | #ifndef _UINT8_T | |
25433 | #define _UINT8_T | |
25434 | #endif | |
25435 | #ifndef _UINT16_T | |
25436 | #define _UINT16_T | |
25437 | #endif | |
25438 | #ifndef _UINT32_T | |
25439 | #define _UINT32_T | |
25440 | #endif | |
25441 | EOF | |
25442 | fi | |
25443 | ||
25444 | # ------------- done basic int types, emit int64_t types ------------ | |
25445 | if test "$ac_cv_type_uint64_t" = yes; then | |
25446 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25447 | ||
25448 | /* system headers have good uint64_t and int64_t */ | |
25449 | #ifndef _INT64_T | |
25450 | #define _INT64_T | |
25451 | #endif | |
25452 | #ifndef _UINT64_T | |
25453 | #define _UINT64_T | |
25454 | #endif | |
25455 | EOF | |
25456 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
25457 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25458 | ||
25459 | /* system headers have an u_int64_t (and int64_t) */ | |
25460 | #ifndef _INT64_T | |
25461 | #define _INT64_T | |
25462 | #endif | |
25463 | #ifndef _UINT64_T | |
25464 | #define _UINT64_T | |
07abfebf RS |
25465 | #ifndef __uint64_t_defined |
25466 | #define __uint64_t_defined | |
4e8d927d DJ |
25467 | typedef u_int64_t uint64_t; |
25468 | #endif | |
07abfebf | 25469 | #endif |
4e8d927d DJ |
25470 | EOF |
25471 | elif test -n "$acx_cv_type_int64_t"; then | |
25472 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25473 | ||
25474 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
25475 | #ifndef _INT64_T | |
25476 | #define _INT64_T | |
25477 | typedef $acx_cv_type_int64_t int64_t; | |
25478 | #endif | |
25479 | #ifndef _UINT64_T | |
25480 | #define _UINT64_T | |
07abfebf RS |
25481 | #ifndef __uint64_t_defined |
25482 | #define __uint64_t_defined | |
4e8d927d DJ |
25483 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
25484 | #endif | |
07abfebf | 25485 | #endif |
4e8d927d DJ |
25486 | EOF |
25487 | else | |
25488 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25489 | ||
25490 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
25491 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
25492 | #ifndef _INT64_T | |
25493 | #define _INT64_T | |
07abfebf | 25494 | #ifndef __int64_t_defined |
4e8d927d DJ |
25495 | typedef long long int64_t; |
25496 | #endif | |
07abfebf | 25497 | #endif |
4e8d927d DJ |
25498 | #ifndef _UINT64_T |
25499 | #define _UINT64_T | |
25500 | typedef unsigned long long uint64_t; | |
25501 | #endif | |
25502 | ||
25503 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
25504 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
25505 | does not implement __extension__. But that compiler doesn't define | |
25506 | __GNUC_MINOR__. */ | |
25507 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
25508 | # define __extension__ | |
25509 | # endif | |
25510 | ||
25511 | # ifndef _INT64_T | |
25512 | # define _INT64_T | |
25513 | __extension__ typedef long long int64_t; | |
25514 | # endif | |
25515 | # ifndef _UINT64_T | |
25516 | # define _UINT64_T | |
25517 | __extension__ typedef unsigned long long uint64_t; | |
25518 | # endif | |
25519 | ||
25520 | #elif !defined __STRICT_ANSI__ | |
25521 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
25522 | ||
25523 | # ifndef _INT64_T | |
25524 | # define _INT64_T | |
25525 | typedef __int64 int64_t; | |
25526 | # endif | |
25527 | # ifndef _UINT64_T | |
25528 | # define _UINT64_T | |
25529 | typedef unsigned __int64 uint64_t; | |
25530 | # endif | |
25531 | # endif /* compiler */ | |
25532 | ||
25533 | #endif /* ANSI version */ | |
25534 | EOF | |
25535 | fi | |
25536 | ||
25537 | # ------------- done int64_t types, emit intptr types ------------ | |
25538 | if test "$ac_cv_type_uintptr_t" != yes; then | |
25539 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25540 | ||
25541 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
07abfebf | 25542 | #ifndef __uintptr_t_defined |
4e8d927d | 25543 | typedef u$acx_cv_type_intptr_t uintptr_t; |
07abfebf RS |
25544 | #endif |
25545 | #ifndef __intptr_t_defined | |
4e8d927d | 25546 | typedef $acx_cv_type_intptr_t intptr_t; |
07abfebf | 25547 | #endif |
4e8d927d DJ |
25548 | EOF |
25549 | fi | |
25550 | ||
25551 | # ------------- done intptr types, emit int_least types ------------ | |
25552 | if test "$ac_cv_type_int_least32_t" != yes; then | |
25553 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25554 | ||
25555 | /* Define int_least types */ | |
25556 | typedef int8_t int_least8_t; | |
25557 | typedef int16_t int_least16_t; | |
25558 | typedef int32_t int_least32_t; | |
25559 | #ifdef _INT64_T | |
25560 | typedef int64_t int_least64_t; | |
25561 | #endif | |
25562 | ||
25563 | typedef uint8_t uint_least8_t; | |
25564 | typedef uint16_t uint_least16_t; | |
25565 | typedef uint32_t uint_least32_t; | |
25566 | #ifdef _UINT64_T | |
25567 | typedef uint64_t uint_least64_t; | |
25568 | #endif | |
25569 | EOF | |
25570 | fi | |
25571 | ||
25572 | # ------------- done intptr types, emit int_fast types ------------ | |
25573 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
25574 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25575 | ||
25576 | /* Define int_fast types. short is often slow */ | |
25577 | typedef int8_t int_fast8_t; | |
25578 | typedef int int_fast16_t; | |
25579 | typedef int32_t int_fast32_t; | |
25580 | #ifdef _INT64_T | |
25581 | typedef int64_t int_fast64_t; | |
25582 | #endif | |
25583 | ||
25584 | typedef uint8_t uint_fast8_t; | |
25585 | typedef unsigned int uint_fast16_t; | |
25586 | typedef uint32_t uint_fast32_t; | |
25587 | #ifdef _UINT64_T | |
25588 | typedef uint64_t uint_fast64_t; | |
25589 | #endif | |
25590 | EOF | |
25591 | fi | |
25592 | ||
25593 | if test "$ac_cv_type_uintmax_t" != yes; then | |
25594 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25595 | ||
25596 | /* Define intmax based on what we found */ | |
25597 | #ifdef _INT64_T | |
25598 | typedef int64_t intmax_t; | |
25599 | #else | |
25600 | typedef long intmax_t; | |
25601 | #endif | |
25602 | #ifdef _UINT64_T | |
25603 | typedef uint64_t uintmax_t; | |
25604 | #else | |
25605 | typedef unsigned long uintmax_t; | |
25606 | #endif | |
25607 | EOF | |
25608 | fi | |
25609 | ||
25610 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25611 | ||
25612 | #endif /* GCC_GENERATED_STDINT_H */ | |
25613 | EOF | |
25614 | ||
25615 | if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then | |
25616 | rm -f tmp-stdint.h | |
25617 | else | |
25618 | mv -f tmp-stdint.h gdb_stdint.h | |
bec39cab AC |
25619 | fi |
25620 | ||
4e8d927d | 25621 | ;; |
b4e70030 | 25622 | default ) |
c906108c | 25623 | |
2c0fc042 | 25624 | sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, |
c906108c SS |
25625 | /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, |
25626 | /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp | |
25627 | mv -f Makefile.tmp Makefile | |
25628 | ||
2acceee2 | 25629 | |
c906108c SS |
25630 | case x$CONFIG_HEADERS in |
25631 | xconfig.h:config.in) | |
25632 | echo > stamp-h ;; | |
25633 | esac | |
bec39cab AC |
25634 | ;; |
25635 | esac | |
b4e70030 JB |
25636 | done |
25637 | _ACEOF | |
c906108c | 25638 | |
b4e70030 | 25639 | cat >>$CONFIG_STATUS <<\_ACEOF |
bec39cab AC |
25640 | |
25641 | { (exit 0); exit 0; } | |
25642 | _ACEOF | |
c906108c | 25643 | chmod +x $CONFIG_STATUS |
bec39cab AC |
25644 | ac_clean_files=$ac_clean_files_save |
25645 | ||
25646 | ||
25647 | # configure is writing to config.log, and then calls config.status. | |
25648 | # config.status does its own redirection, appending to config.log. | |
25649 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
25650 | # by configure, so config.status won't be able to write to it; its | |
25651 | # output is simply discarded. So we exec the FD to /dev/null, | |
25652 | # effectively closing config.log, so it can be properly (re)opened and | |
25653 | # appended to by config.status. When coming back to configure, we | |
25654 | # need to make the FD available again. | |
25655 | if test "$no_create" != yes; then | |
25656 | ac_cs_success=: | |
25657 | ac_config_status_args= | |
25658 | test "$silent" = yes && | |
25659 | ac_config_status_args="$ac_config_status_args --quiet" | |
25660 | exec 5>/dev/null | |
25661 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
25662 | exec 5>>config.log | |
25663 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
25664 | # would make configure fail if this is the last instruction. | |
25665 | $ac_cs_success || { (exit 1); exit 1; } | |
25666 | fi | |
c906108c | 25667 | |
bec39cab AC |
25668 | # |
25669 | # CONFIG_SUBDIRS section. | |
25670 | # | |
c906108c SS |
25671 | if test "$no_recursion" != yes; then |
25672 | ||
25673 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
25674 | ac_sub_configure_args= | |
25675 | ac_prev= | |
b4e70030 | 25676 | for ac_arg in $ac_configure_args; do |
c906108c SS |
25677 | if test -n "$ac_prev"; then |
25678 | ac_prev= | |
25679 | continue | |
25680 | fi | |
bec39cab | 25681 | case $ac_arg in |
c906108c SS |
25682 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
25683 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
25684 | ac_prev=cache_file ;; | |
25685 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
bec39cab AC |
25686 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
25687 | | --c=*) | |
25688 | ;; | |
25689 | --config-cache | -C) | |
c906108c SS |
25690 | ;; |
25691 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
25692 | ac_prev=srcdir ;; | |
25693 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
25694 | ;; | |
bec39cab AC |
25695 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
25696 | ac_prev=prefix ;; | |
25697 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
25698 | ;; | |
b4e70030 | 25699 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
c906108c SS |
25700 | esac |
25701 | done | |
25702 | ||
bec39cab AC |
25703 | # Always prepend --prefix to ensure using the same prefix |
25704 | # in subdir configurations. | |
25705 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
25706 | ||
b4e70030 | 25707 | ac_popdir=`pwd` |
bec39cab | 25708 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
c906108c SS |
25709 | |
25710 | # Do not complain, so a configure script can configure whichever | |
25711 | # parts of a large source tree are present. | |
bec39cab | 25712 | test -d $srcdir/$ac_dir || continue |
c906108c | 25713 | |
b4e70030 JB |
25714 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
25715 | echo "$as_me: configuring in $ac_dir" >&6;} | |
25716 | { if $as_mkdir_p; then | |
25717 | mkdir -p "$ac_dir" | |
25718 | else | |
25719 | as_dir="$ac_dir" | |
bec39cab | 25720 | as_dirs= |
b4e70030 JB |
25721 | while test ! -d "$as_dir"; do |
25722 | as_dirs="$as_dir $as_dirs" | |
25723 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
25724 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
25725 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25726 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
25727 | X"$as_dir" : 'X\(/\)' \| \ |
25728 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 25729 | echo X"$as_dir" | |
b4e70030 JB |
25730 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
25731 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25732 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25733 | /^X\(\/\).*/{ s//\1/; q; } | |
25734 | s/.*/./; q'` | |
bec39cab | 25735 | done |
b4e70030 JB |
25736 | test ! -n "$as_dirs" || mkdir $as_dirs |
25737 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25738 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 25739 | { (exit 1); exit 1; }; }; } |
b4e70030 | 25740 | |
bec39cab AC |
25741 | ac_builddir=. |
25742 | ||
b4e70030 | 25743 | if test "$ac_dir" != .; then |
bec39cab | 25744 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
25745 | # A "../" for each directory in $ac_dir_suffix. |
25746 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25747 | else | |
25748 | ac_dir_suffix= ac_top_builddir= | |
25749 | fi | |
bec39cab AC |
25750 | |
25751 | case $srcdir in | |
b4e70030 | 25752 | .) # No --srcdir option. We are building in place. |
bec39cab | 25753 | ac_srcdir=. |
b4e70030 JB |
25754 | if test -z "$ac_top_builddir"; then |
25755 | ac_top_srcdir=. | |
25756 | else | |
25757 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25758 | fi ;; | |
25759 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 25760 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
25761 | ac_top_srcdir=$srcdir ;; |
25762 | *) # Relative path. | |
25763 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25764 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25765 | esac | |
25766 | ||
25767 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
25768 | # the directories may not exist. | |
25769 | case `pwd` in | |
25770 | .) ac_abs_builddir="$ac_dir";; | |
25771 | *) | |
25772 | case "$ac_dir" in | |
25773 | .) ac_abs_builddir=`pwd`;; | |
25774 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
25775 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
25776 | esac;; | |
25777 | esac | |
25778 | case $ac_abs_builddir in | |
25779 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25780 | *) | |
25781 | case ${ac_top_builddir}. in | |
25782 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25783 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25784 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25785 | esac;; | |
25786 | esac | |
25787 | case $ac_abs_builddir in | |
25788 | .) ac_abs_srcdir=$ac_srcdir;; | |
25789 | *) | |
25790 | case $ac_srcdir in | |
25791 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25792 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25793 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25794 | esac;; | |
25795 | esac | |
25796 | case $ac_abs_builddir in | |
25797 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25798 | *) | |
25799 | case $ac_top_srcdir in | |
25800 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25801 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25802 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25803 | esac;; | |
bec39cab | 25804 | esac |
c906108c | 25805 | |
c906108c | 25806 | |
b4e70030 | 25807 | cd $ac_dir |
c906108c SS |
25808 | |
25809 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab AC |
25810 | if test -f $ac_srcdir/configure.gnu; then |
25811 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
25812 | elif test -f $ac_srcdir/configure; then | |
25813 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
25814 | elif test -f $ac_srcdir/configure.in; then | |
c906108c SS |
25815 | ac_sub_configure=$ac_configure |
25816 | else | |
bec39cab AC |
25817 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
25818 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
25819 | ac_sub_configure= |
25820 | fi | |
25821 | ||
25822 | # The recursion is here. | |
25823 | if test -n "$ac_sub_configure"; then | |
c906108c | 25824 | # Make the cache file name correct relative to the subdirectory. |
bec39cab AC |
25825 | case $cache_file in |
25826 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
b4e70030 JB |
25827 | *) # Relative path. |
25828 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
c906108c | 25829 | esac |
c906108c | 25830 | |
bec39cab AC |
25831 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
25832 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 25833 | # The eval makes quoting arguments work. |
b4e70030 JB |
25834 | eval $ac_sub_configure $ac_sub_configure_args \ |
25835 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
bec39cab AC |
25836 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
25837 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
25838 | { (exit 1); exit 1; }; } | |
c906108c SS |
25839 | fi |
25840 | ||
b4e70030 | 25841 | cd $ac_popdir |
c906108c SS |
25842 | done |
25843 | fi | |
25844 | ||
25845 | ||
25846 | exit 0 |