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 |
3841debe DJ |
881 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
882 | --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib | |
883 | --without-libexpat-prefix don't search for libexpat in includedir and libdir | |
bec39cab AC |
884 | --without-included-regex don't use included regex; this is the default |
885 | on systems with version 2 of the GNU C library | |
886 | (use with caution on other system) | |
887 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
888 | --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh) | |
889 | --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh) | |
890 | --with-tclinclude=DIR Directory where tcl private headers are | |
891 | --with-tkinclude=DIR Directory where tk private headers are | |
892 | --with-itclconfig Directory containing itcl configuration (itclConfig.sh) | |
893 | --with-itkconfig Directory containing itk configuration (itkConfig.sh) | |
894 | --with-x use the X Window System | |
895 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
896 | ||
897 | Some influential environment variables: | |
898 | CC C compiler command | |
899 | CFLAGS C compiler flags | |
900 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
901 | nonstandard directory <lib dir> | |
b4e70030 JB |
902 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
903 | headers in a nonstandard directory <include dir> | |
bec39cab AC |
904 | CPP C preprocessor |
905 | ||
906 | Use these variables to override the choices made by `configure' or to help | |
907 | it to find libraries and programs with nonstandard names/locations. | |
908 | ||
909 | _ACEOF | |
910 | fi | |
911 | ||
912 | if test "$ac_init_help" = "recursive"; then | |
913 | # If there are subdirs, report their specific --help. | |
b4e70030 | 914 | ac_popdir=`pwd` |
bec39cab AC |
915 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
916 | test -d $ac_dir || continue | |
917 | ac_builddir=. | |
918 | ||
b4e70030 | 919 | if test "$ac_dir" != .; then |
bec39cab | 920 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
921 | # A "../" for each directory in $ac_dir_suffix. |
922 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
923 | else | |
924 | ac_dir_suffix= ac_top_builddir= | |
925 | fi | |
bec39cab AC |
926 | |
927 | case $srcdir in | |
b4e70030 | 928 | .) # No --srcdir option. We are building in place. |
bec39cab | 929 | ac_srcdir=. |
b4e70030 JB |
930 | if test -z "$ac_top_builddir"; then |
931 | ac_top_srcdir=. | |
932 | else | |
933 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
934 | fi ;; | |
935 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 936 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
937 | ac_top_srcdir=$srcdir ;; |
938 | *) # Relative path. | |
939 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
940 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
941 | esac | |
942 | ||
943 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
944 | # the directories may not exist. | |
945 | case `pwd` in | |
946 | .) ac_abs_builddir="$ac_dir";; | |
947 | *) | |
948 | case "$ac_dir" in | |
949 | .) ac_abs_builddir=`pwd`;; | |
950 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
951 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
952 | esac;; | |
953 | esac | |
954 | case $ac_abs_builddir in | |
955 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
956 | *) | |
957 | case ${ac_top_builddir}. in | |
958 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
959 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
960 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
961 | esac;; | |
962 | esac | |
963 | case $ac_abs_builddir in | |
964 | .) ac_abs_srcdir=$ac_srcdir;; | |
965 | *) | |
966 | case $ac_srcdir in | |
967 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
968 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
969 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
970 | esac;; | |
971 | esac | |
972 | case $ac_abs_builddir in | |
973 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
974 | *) | |
975 | case $ac_top_srcdir in | |
976 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
977 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
978 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
979 | esac;; | |
bec39cab AC |
980 | esac |
981 | ||
b4e70030 JB |
982 | cd $ac_dir |
983 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab | 984 | if test -f $ac_srcdir/configure.gnu; then |
b4e70030 | 985 | echo |
bec39cab AC |
986 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
987 | elif test -f $ac_srcdir/configure; then | |
b4e70030 | 988 | echo |
bec39cab | 989 | $SHELL $ac_srcdir/configure --help=recursive |
b4e70030 JB |
990 | elif test -f $ac_srcdir/configure.ac || |
991 | test -f $ac_srcdir/configure.in; then | |
992 | echo | |
993 | $ac_configure --help | |
3ace7edb | 994 | else |
bec39cab | 995 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
b4e70030 JB |
996 | fi |
997 | cd $ac_popdir | |
bec39cab AC |
998 | done |
999 | fi | |
1000 | ||
b4e70030 | 1001 | test -n "$ac_init_help" && exit 0 |
bec39cab AC |
1002 | if $ac_init_version; then |
1003 | cat <<\_ACEOF | |
1004 | ||
b4e70030 | 1005 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
1006 | This configure script is free software; the Free Software Foundation |
1007 | gives unlimited permission to copy, distribute and modify it. | |
1008 | _ACEOF | |
b4e70030 | 1009 | exit 0 |
bec39cab | 1010 | fi |
b4e70030 JB |
1011 | exec 5>config.log |
1012 | cat >&5 <<_ACEOF | |
bec39cab AC |
1013 | This file contains any messages produced by compilers while |
1014 | running configure, to aid debugging if configure makes a mistake. | |
1015 | ||
1016 | It was created by $as_me, which was | |
b4e70030 | 1017 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
1018 | |
1019 | $ $0 $@ | |
1020 | ||
1021 | _ACEOF | |
1022 | { | |
1023 | cat <<_ASUNAME | |
1024 | ## --------- ## | |
1025 | ## Platform. ## | |
1026 | ## --------- ## | |
1027 | ||
1028 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1029 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1030 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1031 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1032 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1033 | ||
1034 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1035 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1036 | ||
1037 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1038 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1039 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
b4e70030 | 1040 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
bec39cab AC |
1041 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1042 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1043 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1044 | ||
1045 | _ASUNAME | |
1046 | ||
1047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1048 | for as_dir in $PATH | |
1049 | do | |
1050 | IFS=$as_save_IFS | |
1051 | test -z "$as_dir" && as_dir=. | |
1052 | echo "PATH: $as_dir" | |
1053 | done | |
1054 | ||
1055 | } >&5 | |
1056 | ||
1057 | cat >&5 <<_ACEOF | |
1058 | ||
1059 | ||
1060 | ## ----------- ## | |
1061 | ## Core tests. ## | |
1062 | ## ----------- ## | |
1063 | ||
1064 | _ACEOF | |
1065 | ||
1066 | ||
1067 | # Keep a trace of the command line. | |
1068 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1069 | # Strip out --silent because we don't want to record it for future runs. | |
1070 | # Also quote any args containing shell meta-characters. | |
1071 | # Make two passes to allow for proper duplicate-argument suppression. | |
1072 | ac_configure_args= | |
1073 | ac_configure_args0= | |
1074 | ac_configure_args1= | |
1075 | ac_sep= | |
1076 | ac_must_keep_next=false | |
1077 | for ac_pass in 1 2 | |
1078 | do | |
1079 | for ac_arg | |
1080 | do | |
1081 | case $ac_arg in | |
1082 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1083 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1084 | | -silent | --silent | --silen | --sile | --sil) | |
1085 | continue ;; | |
b4e70030 | 1086 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
bec39cab AC |
1087 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1088 | esac | |
1089 | case $ac_pass in | |
1090 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1091 | 2) | |
1092 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1093 | if test $ac_must_keep_next = true; then | |
1094 | ac_must_keep_next=false # Got value, back to normal. | |
1095 | else | |
1096 | case $ac_arg in | |
1097 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1098 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1099 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1100 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1101 | case "$ac_configure_args0 " in | |
1102 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1103 | esac | |
1104 | ;; | |
1105 | -* ) ac_must_keep_next=true ;; | |
1106 | esac | |
1107 | fi | |
1108 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1109 | # Get rid of the leading space. | |
1110 | ac_sep=" " | |
1111 | ;; | |
1112 | esac | |
1113 | done | |
1114 | done | |
1115 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1116 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1117 | ||
1118 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1119 | # config.log. We remove comments because anyway the quotes in there | |
1120 | # would cause problems or look ugly. | |
b4e70030 JB |
1121 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1122 | # such as our DU 5.0 friend, will then `close' the trap. | |
bec39cab AC |
1123 | trap 'exit_status=$? |
1124 | # Save into config.log some information that might help in debugging. | |
1125 | { | |
1126 | echo | |
1127 | ||
1128 | cat <<\_ASBOX | |
1129 | ## ---------------- ## | |
1130 | ## Cache variables. ## | |
1131 | ## ---------------- ## | |
1132 | _ASBOX | |
1133 | echo | |
1134 | # The following way of writing the cache mishandles newlines in values, | |
b4e70030 | 1135 | { |
bec39cab | 1136 | (set) 2>&1 | |
b4e70030 JB |
1137 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1138 | *ac_space=\ *) | |
bec39cab | 1139 | sed -n \ |
b4e70030 JB |
1140 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1141 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1142 | ;; | |
bec39cab | 1143 | *) |
b4e70030 JB |
1144 | sed -n \ |
1145 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 1146 | ;; |
b4e70030 JB |
1147 | esac; |
1148 | } | |
bec39cab AC |
1149 | echo |
1150 | ||
1151 | cat <<\_ASBOX | |
1152 | ## ----------------- ## | |
1153 | ## Output variables. ## | |
1154 | ## ----------------- ## | |
1155 | _ASBOX | |
1156 | echo | |
1157 | for ac_var in $ac_subst_vars | |
1158 | do | |
b4e70030 JB |
1159 | eval ac_val=$`echo $ac_var` |
1160 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1161 | done | sort |
1162 | echo | |
1163 | ||
1164 | if test -n "$ac_subst_files"; then | |
1165 | cat <<\_ASBOX | |
b4e70030 JB |
1166 | ## ------------- ## |
1167 | ## Output files. ## | |
1168 | ## ------------- ## | |
bec39cab AC |
1169 | _ASBOX |
1170 | echo | |
1171 | for ac_var in $ac_subst_files | |
1172 | do | |
b4e70030 JB |
1173 | eval ac_val=$`echo $ac_var` |
1174 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1175 | done | sort |
1176 | echo | |
1177 | fi | |
1178 | ||
1179 | if test -s confdefs.h; then | |
1180 | cat <<\_ASBOX | |
1181 | ## ----------- ## | |
1182 | ## confdefs.h. ## | |
1183 | ## ----------- ## | |
1184 | _ASBOX | |
1185 | echo | |
b4e70030 | 1186 | sed "/^$/d" confdefs.h | sort |
bec39cab | 1187 | echo |
3ace7edb | 1188 | fi |
bec39cab AC |
1189 | test "$ac_signal" != 0 && |
1190 | echo "$as_me: caught signal $ac_signal" | |
1191 | echo "$as_me: exit $exit_status" | |
1192 | } >&5 | |
b4e70030 JB |
1193 | rm -f core *.core && |
1194 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
bec39cab | 1195 | exit $exit_status |
b4e70030 | 1196 | ' 0 |
bec39cab AC |
1197 | for ac_signal in 1 2 13 15; do |
1198 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1199 | done | |
1200 | ac_signal=0 | |
1201 | ||
1202 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
b4e70030 JB |
1203 | rm -rf conftest* confdefs.h |
1204 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1205 | echo >confdefs.h | |
bec39cab AC |
1206 | |
1207 | # Predefined preprocessor variables. | |
1208 | ||
1209 | cat >>confdefs.h <<_ACEOF | |
1210 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1211 | _ACEOF | |
1212 | ||
1213 | ||
1214 | cat >>confdefs.h <<_ACEOF | |
1215 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1216 | _ACEOF | |
1217 | ||
1218 | ||
1219 | cat >>confdefs.h <<_ACEOF | |
1220 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1221 | _ACEOF | |
1222 | ||
1223 | ||
1224 | cat >>confdefs.h <<_ACEOF | |
1225 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1226 | _ACEOF | |
1227 | ||
1228 | ||
1229 | cat >>confdefs.h <<_ACEOF | |
1230 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1231 | _ACEOF | |
1232 | ||
1233 | ||
1234 | # Let the site file select an alternate cache file if it wants to. | |
1235 | # Prefer explicitly selected file to automatically selected ones. | |
b4e70030 JB |
1236 | if test -z "$CONFIG_SITE"; then |
1237 | if test "x$prefix" != xNONE; then | |
1238 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1239 | else | |
1240 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1241 | fi | |
c906108c | 1242 | fi |
b4e70030 | 1243 | for ac_site_file in $CONFIG_SITE; do |
c906108c | 1244 | if test -r "$ac_site_file"; then |
bec39cab AC |
1245 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1246 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1247 | sed 's/^/| /' "$ac_site_file" >&5 | |
c906108c SS |
1248 | . "$ac_site_file" |
1249 | fi | |
1250 | done | |
1251 | ||
1252 | if test -r "$cache_file"; then | |
bec39cab AC |
1253 | # Some versions of bash will fail to source /dev/null (special |
1254 | # files actually), so we avoid doing that. | |
1255 | if test -f "$cache_file"; then | |
1256 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1257 | echo "$as_me: loading cache $cache_file" >&6;} | |
1258 | case $cache_file in | |
1259 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1260 | *) . ./$cache_file;; | |
1261 | esac | |
1262 | fi | |
c906108c | 1263 | else |
bec39cab AC |
1264 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1265 | echo "$as_me: creating cache $cache_file" >&6;} | |
1266 | >$cache_file | |
1267 | fi | |
1268 | ||
1269 | # Check that the precious variables saved in the cache have kept the same | |
1270 | # value. | |
1271 | ac_cache_corrupted=false | |
b4e70030 JB |
1272 | for ac_var in `(set) 2>&1 | |
1273 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
bec39cab AC |
1274 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1275 | eval ac_new_set=\$ac_env_${ac_var}_set | |
b4e70030 JB |
1276 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1277 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
bec39cab AC |
1278 | case $ac_old_set,$ac_new_set in |
1279 | set,) | |
1280 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1281 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1282 | ac_cache_corrupted=: ;; | |
1283 | ,set) | |
1284 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1285 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1286 | ac_cache_corrupted=: ;; | |
1287 | ,);; | |
1288 | *) | |
1289 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1290 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1291 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1292 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1293 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1294 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1295 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1296 | ac_cache_corrupted=: | |
1297 | fi;; | |
1298 | esac | |
1299 | # Pass precious variables to config.status. | |
1300 | if test "$ac_new_set" = set; then | |
1301 | case $ac_new_val in | |
b4e70030 JB |
1302 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1303 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
bec39cab AC |
1304 | *) ac_arg=$ac_var=$ac_new_val ;; |
1305 | esac | |
1306 | case " $ac_configure_args " in | |
1307 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1308 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1309 | esac | |
1310 | fi | |
1311 | done | |
1312 | if $ac_cache_corrupted; then | |
1313 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1314 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1315 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1316 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1317 | { (exit 1); exit 1; }; } | |
c906108c SS |
1318 | fi |
1319 | ||
b4e70030 JB |
1320 | ac_ext=c |
1321 | ac_cpp='$CPP $CPPFLAGS' | |
1322 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1323 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c SS |
1325 | |
1326 | ||
bec39cab AC |
1327 | |
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | ||
1338 | ||
1339 | ||
1340 | ||
1341 | ||
1342 | ||
bec39cab | 1343 | |
b4e70030 JB |
1344 | ac_config_headers="$ac_config_headers config.h:config.in" |
1345 | ||
1346 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1347 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1348 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
413ccac7 | 1349 | if test "${enable_maintainer_mode+set}" = set; then |
b4e70030 JB |
1350 | enableval="$enable_maintainer_mode" |
1351 | USE_MAINTAINER_MODE=$enableval | |
413ccac7 AC |
1352 | else |
1353 | USE_MAINTAINER_MODE=no | |
b4e70030 JB |
1354 | fi; |
1355 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1356 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
413ccac7 | 1357 | |
413ccac7 AC |
1358 | |
1359 | if test $USE_MAINTAINER_MODE = yes; then | |
1360 | MAINTAINER_MODE_TRUE= | |
1361 | MAINTAINER_MODE_FALSE='#' | |
1362 | else | |
1363 | MAINTAINER_MODE_TRUE='#' | |
1364 | MAINTAINER_MODE_FALSE= | |
1365 | fi | |
85981d60 | 1366 | |
413ccac7 | 1367 | MAINT=$MAINTAINER_MODE_TRUE |
413ccac7 | 1368 | |
c906108c | 1369 | |
bec39cab AC |
1370 | |
1371 | ac_ext=c | |
1372 | ac_cpp='$CPP $CPPFLAGS' | |
1373 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1374 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1375 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1376 | if test -n "$ac_tool_prefix"; then | |
1377 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1378 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b4e70030 JB |
1379 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1380 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1381 | if test "${ac_cv_prog_CC+set}" = set; then |
1382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1383 | else | |
1384 | if test -n "$CC"; then | |
1385 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1386 | else | |
1387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1388 | for as_dir in $PATH | |
1389 | do | |
1390 | IFS=$as_save_IFS | |
1391 | test -z "$as_dir" && as_dir=. | |
1392 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1393 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1394 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1395 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1396 | break 2 | |
1397 | fi | |
1398 | done | |
1399 | done | |
1400 | ||
1401 | fi | |
1402 | fi | |
1403 | CC=$ac_cv_prog_CC | |
1404 | if test -n "$CC"; then | |
b4e70030 JB |
1405 | echo "$as_me:$LINENO: result: $CC" >&5 |
1406 | echo "${ECHO_T}$CC" >&6 | |
bec39cab | 1407 | else |
b4e70030 JB |
1408 | echo "$as_me:$LINENO: result: no" >&5 |
1409 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1410 | fi |
1411 | ||
1412 | fi | |
1413 | if test -z "$ac_cv_prog_CC"; then | |
1414 | ac_ct_CC=$CC | |
1415 | # Extract the first word of "gcc", so it can be a program name with args. | |
c906108c | 1416 | set dummy gcc; ac_word=$2 |
b4e70030 JB |
1417 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1418 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1419 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1421 | else | |
1422 | if test -n "$ac_ct_CC"; then | |
1423 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1424 | else | |
1425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1426 | for as_dir in $PATH | |
1427 | do | |
1428 | IFS=$as_save_IFS | |
1429 | test -z "$as_dir" && as_dir=. | |
1430 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1431 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1432 | ac_cv_prog_ac_ct_CC="gcc" |
1433 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1434 | break 2 | |
1435 | fi | |
1436 | done | |
1437 | done | |
1438 | ||
1439 | fi | |
1440 | fi | |
1441 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1442 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1443 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1444 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1445 | else |
b4e70030 JB |
1446 | echo "$as_me:$LINENO: result: no" >&5 |
1447 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1448 | fi |
1449 | ||
b4e70030 | 1450 | CC=$ac_ct_CC |
bec39cab AC |
1451 | else |
1452 | CC="$ac_cv_prog_CC" | |
1453 | fi | |
1454 | ||
1455 | if test -z "$CC"; then | |
b4e70030 JB |
1456 | if test -n "$ac_tool_prefix"; then |
1457 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bec39cab | 1458 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b4e70030 JB |
1459 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1460 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1461 | if test "${ac_cv_prog_CC+set}" = set; then |
1462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1463 | else |
1464 | if test -n "$CC"; then | |
1465 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1466 | else | |
bec39cab AC |
1467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1468 | for as_dir in $PATH | |
1469 | do | |
1470 | IFS=$as_save_IFS | |
1471 | test -z "$as_dir" && as_dir=. | |
1472 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1473 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1474 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1475 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1476 | break 2 | |
1477 | fi | |
1478 | done | |
1479 | done | |
1480 | ||
c906108c SS |
1481 | fi |
1482 | fi | |
bec39cab | 1483 | CC=$ac_cv_prog_CC |
c906108c | 1484 | if test -n "$CC"; then |
b4e70030 JB |
1485 | echo "$as_me:$LINENO: result: $CC" >&5 |
1486 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1487 | else |
b4e70030 JB |
1488 | echo "$as_me:$LINENO: result: no" >&5 |
1489 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1490 | fi |
1491 | ||
b4e70030 JB |
1492 | fi |
1493 | if test -z "$ac_cv_prog_CC"; then | |
1494 | ac_ct_CC=$CC | |
1495 | # Extract the first word of "cc", so it can be a program name with args. | |
1496 | set dummy cc; ac_word=$2 | |
1497 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1499 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1500 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1501 | else | |
1502 | if test -n "$ac_ct_CC"; then | |
1503 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1504 | else | |
1505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1506 | for as_dir in $PATH | |
1507 | do | |
1508 | IFS=$as_save_IFS | |
1509 | test -z "$as_dir" && as_dir=. | |
1510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1511 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1512 | ac_cv_prog_ac_ct_CC="cc" | |
1513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1514 | break 2 | |
4e8d927d | 1515 | fi |
b4e70030 JB |
1516 | done |
1517 | done | |
1518 | ||
1519 | fi | |
1520 | fi | |
1521 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1522 | if test -n "$ac_ct_CC"; then | |
1523 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1524 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1525 | else | |
1526 | echo "$as_me:$LINENO: result: no" >&5 | |
1527 | echo "${ECHO_T}no" >&6 | |
1528 | fi | |
1529 | ||
1530 | CC=$ac_ct_CC | |
1531 | else | |
1532 | CC="$ac_cv_prog_CC" | |
1533 | fi | |
1534 | ||
bec39cab | 1535 | fi |
c906108c SS |
1536 | if test -z "$CC"; then |
1537 | # Extract the first word of "cc", so it can be a program name with args. | |
1538 | set dummy cc; ac_word=$2 | |
b4e70030 JB |
1539 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1540 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1541 | if test "${ac_cv_prog_CC+set}" = set; then |
1542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1543 | else |
1544 | if test -n "$CC"; then | |
1545 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1546 | else | |
c906108c | 1547 | ac_prog_rejected=no |
bec39cab AC |
1548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1549 | for as_dir in $PATH | |
1550 | do | |
1551 | IFS=$as_save_IFS | |
1552 | test -z "$as_dir" && as_dir=. | |
1553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1554 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1555 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1556 | ac_prog_rejected=yes | |
1557 | continue | |
1558 | fi | |
1559 | ac_cv_prog_CC="cc" | |
1560 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1561 | break 2 | |
1562 | fi | |
1563 | done | |
1564 | done | |
1565 | ||
c906108c SS |
1566 | if test $ac_prog_rejected = yes; then |
1567 | # We found a bogon in the path, so make sure we never use it. | |
1568 | set dummy $ac_cv_prog_CC | |
1569 | shift | |
bec39cab | 1570 | if test $# != 0; then |
c906108c SS |
1571 | # We chose a different compiler from the bogus one. |
1572 | # However, it has the same basename, so the bogon will be chosen | |
1573 | # first if we set CC to just the basename; use the full file name. | |
1574 | shift | |
bec39cab | 1575 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
1576 | fi |
1577 | fi | |
1578 | fi | |
1579 | fi | |
bec39cab | 1580 | CC=$ac_cv_prog_CC |
c906108c | 1581 | if test -n "$CC"; then |
b4e70030 JB |
1582 | echo "$as_me:$LINENO: result: $CC" >&5 |
1583 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1584 | else |
b4e70030 JB |
1585 | echo "$as_me:$LINENO: result: no" >&5 |
1586 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1587 | fi |
1588 | ||
bec39cab AC |
1589 | fi |
1590 | if test -z "$CC"; then | |
1591 | if test -n "$ac_tool_prefix"; then | |
b4e70030 | 1592 | for ac_prog in cl |
bec39cab AC |
1593 | do |
1594 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1595 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b4e70030 JB |
1596 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1597 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1598 | if test "${ac_cv_prog_CC+set}" = set; then |
1599 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1600 | else |
1601 | if test -n "$CC"; then | |
1602 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1603 | else | |
bec39cab AC |
1604 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1605 | for as_dir in $PATH | |
1606 | do | |
1607 | IFS=$as_save_IFS | |
1608 | test -z "$as_dir" && as_dir=. | |
1609 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1610 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1611 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1612 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1613 | break 2 | |
1614 | fi | |
1615 | done | |
1616 | done | |
1617 | ||
c906108c SS |
1618 | fi |
1619 | fi | |
bec39cab | 1620 | CC=$ac_cv_prog_CC |
c906108c | 1621 | if test -n "$CC"; then |
b4e70030 JB |
1622 | echo "$as_me:$LINENO: result: $CC" >&5 |
1623 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1624 | else |
b4e70030 JB |
1625 | echo "$as_me:$LINENO: result: no" >&5 |
1626 | echo "${ECHO_T}no" >&6 | |
c906108c | 1627 | fi |
bec39cab AC |
1628 | |
1629 | test -n "$CC" && break | |
1630 | done | |
1631 | fi | |
1632 | if test -z "$CC"; then | |
1633 | ac_ct_CC=$CC | |
b4e70030 | 1634 | for ac_prog in cl |
bec39cab AC |
1635 | do |
1636 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1637 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
1638 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1639 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1640 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1642 | else | |
1643 | if test -n "$ac_ct_CC"; then | |
1644 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1645 | else | |
1646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1647 | for as_dir in $PATH | |
1648 | do | |
1649 | IFS=$as_save_IFS | |
1650 | test -z "$as_dir" && as_dir=. | |
1651 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1652 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1653 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1654 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1655 | break 2 | |
c906108c | 1656 | fi |
bec39cab AC |
1657 | done |
1658 | done | |
1659 | ||
1660 | fi | |
1661 | fi | |
1662 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1663 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1664 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1665 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1666 | else |
b4e70030 JB |
1667 | echo "$as_me:$LINENO: result: no" >&5 |
1668 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1669 | fi |
1670 | ||
bec39cab AC |
1671 | test -n "$ac_ct_CC" && break |
1672 | done | |
c906108c | 1673 | |
b4e70030 | 1674 | CC=$ac_ct_CC |
bec39cab AC |
1675 | fi |
1676 | ||
1677 | fi | |
1678 | ||
1679 | ||
1680 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1681 | See \`config.log' for more details." >&5 | |
1682 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1683 | See \`config.log' for more details." >&2;} | |
1684 | { (exit 1); exit 1; }; } | |
1685 | ||
1686 | # Provide some information about the compiler. | |
b4e70030 JB |
1687 | echo "$as_me:$LINENO:" \ |
1688 | "checking for C compiler version" >&5 | |
bec39cab | 1689 | ac_compiler=`set X $ac_compile; echo $2` |
b4e70030 JB |
1690 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1691 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
bec39cab AC |
1692 | ac_status=$? |
1693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1694 | (exit $ac_status); } | |
b4e70030 JB |
1695 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1696 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
bec39cab AC |
1697 | ac_status=$? |
1698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1699 | (exit $ac_status); } | |
b4e70030 JB |
1700 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1701 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
bec39cab AC |
1702 | ac_status=$? |
1703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1704 | (exit $ac_status); } | |
1705 | ||
1706 | cat >conftest.$ac_ext <<_ACEOF | |
1707 | /* confdefs.h. */ | |
1708 | _ACEOF | |
1709 | cat confdefs.h >>conftest.$ac_ext | |
1710 | cat >>conftest.$ac_ext <<_ACEOF | |
1711 | /* end confdefs.h. */ | |
1712 | ||
1713 | int | |
1714 | main () | |
1715 | { | |
1716 | ||
1717 | ; | |
1718 | return 0; | |
1719 | } | |
1720 | _ACEOF | |
1721 | ac_clean_files_save=$ac_clean_files | |
b4e70030 | 1722 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
bec39cab AC |
1723 | # Try to create an executable without -o first, disregard a.out. |
1724 | # It will help us diagnose broken compilers, and finding out an intuition | |
1725 | # of exeext. | |
b4e70030 JB |
1726 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1727 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
bec39cab AC |
1728 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1729 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1730 | (eval $ac_link_default) 2>&5 | |
1731 | ac_status=$? | |
1732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1733 | (exit $ac_status); }; then | |
b4e70030 JB |
1734 | # Find the output, starting from the most likely. This scheme is |
1735 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1736 | # resort. | |
1737 | ||
1738 | # Be careful to initialize this variable, since it used to be cached. | |
1739 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1740 | ac_cv_exeext= | |
1741 | # b.out is created by i960 compilers. | |
1742 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
bec39cab AC |
1743 | do |
1744 | test -f "$ac_file" || continue | |
1745 | case $ac_file in | |
b4e70030 JB |
1746 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1747 | ;; | |
1748 | conftest.$ac_ext ) | |
1749 | # This is the source file. | |
1750 | ;; | |
1751 | [ab].out ) | |
1752 | # We found the default executable, but exeext='' is most | |
1753 | # certainly right. | |
1754 | break;; | |
1755 | *.* ) | |
1756 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1757 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1758 | # but it would be cool to find out if it's true. Does anybody | |
1759 | # maintain Libtool? --akim. | |
1760 | export ac_cv_exeext | |
1761 | break;; | |
1762 | * ) | |
1763 | break;; | |
bec39cab AC |
1764 | esac |
1765 | done | |
1766 | else | |
1767 | echo "$as_me: failed program was:" >&5 | |
1768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1769 | ||
1770 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1771 | See \`config.log' for more details." >&5 | |
1772 | echo "$as_me: error: C compiler cannot create executables | |
1773 | See \`config.log' for more details." >&2;} | |
1774 | { (exit 77); exit 77; }; } | |
1775 | fi | |
1776 | ||
b4e70030 JB |
1777 | ac_exeext=$ac_cv_exeext |
1778 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1779 | echo "${ECHO_T}$ac_file" >&6 | |
1780 | ||
1781 | # Check the compiler produces executables we can run. If not, either | |
bec39cab | 1782 | # the compiler is broken, or we cross compile. |
b4e70030 JB |
1783 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1784 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
bec39cab AC |
1785 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1786 | # If not cross compiling, check that we can run a simple program. | |
1787 | if test "$cross_compiling" != yes; then | |
1788 | if { ac_try='./$ac_file' | |
1789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1790 | (eval $ac_try) 2>&5 | |
1791 | ac_status=$? | |
1792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1793 | (exit $ac_status); }; }; then | |
1794 | cross_compiling=no | |
c906108c | 1795 | else |
bec39cab AC |
1796 | if test "$cross_compiling" = maybe; then |
1797 | cross_compiling=yes | |
1798 | else | |
1799 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1800 | If you meant to cross compile, use \`--host'. | |
1801 | See \`config.log' for more details." >&5 | |
1802 | echo "$as_me: error: cannot run C compiled programs. | |
1803 | If you meant to cross compile, use \`--host'. | |
1804 | See \`config.log' for more details." >&2;} | |
1805 | { (exit 1); exit 1; }; } | |
1806 | fi | |
c906108c | 1807 | fi |
bec39cab | 1808 | fi |
b4e70030 JB |
1809 | echo "$as_me:$LINENO: result: yes" >&5 |
1810 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 1811 | |
b4e70030 JB |
1812 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1813 | ac_clean_files=$ac_clean_files_save | |
1814 | # Check the compiler produces executables we can run. If not, either | |
1815 | # the compiler is broken, or we cross compile. | |
1816 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1817 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1818 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1819 | echo "${ECHO_T}$cross_compiling" >&6 | |
4e8d927d | 1820 | |
b4e70030 JB |
1821 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1822 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
bec39cab AC |
1824 | (eval $ac_link) 2>&5 |
1825 | ac_status=$? | |
1826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1827 | (exit $ac_status); }; then | |
b4e70030 JB |
1828 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
1829 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1830 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1831 | # `rm'. | |
1832 | for ac_file in conftest.exe conftest conftest.*; do | |
1833 | test -f "$ac_file" || continue | |
1834 | case $ac_file in | |
1835 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1836 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1837 | export ac_cv_exeext | |
1838 | break;; | |
1839 | * ) break;; | |
1840 | esac | |
1841 | done | |
c906108c | 1842 | else |
bec39cab AC |
1843 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1844 | See \`config.log' for more details." >&5 | |
1845 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1846 | See \`config.log' for more details." >&2;} | |
1847 | { (exit 1); exit 1; }; } | |
c906108c | 1848 | fi |
c906108c | 1849 | |
b4e70030 JB |
1850 | rm -f conftest$ac_cv_exeext |
1851 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1852 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 1853 | |
b4e70030 | 1854 | rm -f conftest.$ac_ext |
bec39cab AC |
1855 | EXEEXT=$ac_cv_exeext |
1856 | ac_exeext=$EXEEXT | |
b4e70030 JB |
1857 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1858 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
bec39cab AC |
1859 | if test "${ac_cv_objext+set}" = set; then |
1860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1861 | else | |
b4e70030 JB |
1862 | cat >conftest.$ac_ext <<_ACEOF |
1863 | /* confdefs.h. */ | |
1864 | _ACEOF | |
1865 | cat confdefs.h >>conftest.$ac_ext | |
1866 | cat >>conftest.$ac_ext <<_ACEOF | |
1867 | /* end confdefs.h. */ | |
1868 | ||
1869 | int | |
1870 | main () | |
1871 | { | |
1872 | ||
1873 | ; | |
1874 | return 0; | |
1875 | } | |
1876 | _ACEOF | |
1877 | rm -f conftest.o conftest.obj | |
bec39cab AC |
1878 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1879 | (eval $ac_compile) 2>&5 | |
1880 | ac_status=$? | |
1881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1882 | (exit $ac_status); }; then | |
b4e70030 | 1883 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
bec39cab | 1884 | case $ac_file in |
b4e70030 | 1885 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
bec39cab AC |
1886 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1887 | break;; | |
1888 | esac | |
1889 | done | |
c906108c | 1890 | else |
bec39cab AC |
1891 | echo "$as_me: failed program was:" >&5 |
1892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1893 | ||
1894 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1895 | See \`config.log' for more details." >&5 | |
1896 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1897 | See \`config.log' for more details." >&2;} | |
1898 | { (exit 1); exit 1; }; } | |
c906108c SS |
1899 | fi |
1900 | ||
b4e70030 | 1901 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
bec39cab | 1902 | fi |
b4e70030 JB |
1903 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1904 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
bec39cab AC |
1905 | OBJEXT=$ac_cv_objext |
1906 | ac_objext=$OBJEXT | |
b4e70030 JB |
1907 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1908 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
bec39cab AC |
1909 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1911 | else |
bec39cab AC |
1912 | cat >conftest.$ac_ext <<_ACEOF |
1913 | /* confdefs.h. */ | |
1914 | _ACEOF | |
1915 | cat confdefs.h >>conftest.$ac_ext | |
1916 | cat >>conftest.$ac_ext <<_ACEOF | |
1917 | /* end confdefs.h. */ | |
1918 | ||
1919 | int | |
1920 | main () | |
1921 | { | |
1922 | #ifndef __GNUC__ | |
1923 | choke me | |
1924 | #endif | |
1925 | ||
1926 | ; | |
1927 | return 0; | |
1928 | } | |
1929 | _ACEOF | |
1930 | rm -f conftest.$ac_objext | |
1931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1932 | (eval $ac_compile) 2>conftest.er1 | |
1933 | ac_status=$? | |
1934 | grep -v '^ *+' conftest.er1 >conftest.err | |
1935 | rm -f conftest.er1 | |
1936 | cat conftest.err >&5 | |
1937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1938 | (exit $ac_status); } && | |
b4e70030 JB |
1939 | { ac_try='test -z "$ac_c_werror_flag" |
1940 | || test ! -s conftest.err' | |
bec39cab AC |
1941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1942 | (eval $ac_try) 2>&5 | |
1943 | ac_status=$? | |
1944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1945 | (exit $ac_status); }; } && | |
1946 | { ac_try='test -s conftest.$ac_objext' | |
1947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1948 | (eval $ac_try) 2>&5 | |
1949 | ac_status=$? | |
1950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1951 | (exit $ac_status); }; }; then | |
1952 | ac_compiler_gnu=yes | |
1953 | else | |
1954 | echo "$as_me: failed program was:" >&5 | |
1955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1956 | ||
b4e70030 | 1957 | ac_compiler_gnu=no |
bec39cab AC |
1958 | fi |
1959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
1960 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1961 | ||
1962 | fi | |
b4e70030 JB |
1963 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
1964 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
bec39cab AC |
1965 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
1966 | ac_test_CFLAGS=${CFLAGS+set} | |
1967 | ac_save_CFLAGS=$CFLAGS | |
b4e70030 JB |
1968 | CFLAGS="-g" |
1969 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1970 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
bec39cab AC |
1971 | if test "${ac_cv_prog_cc_g+set}" = set; then |
1972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1973 | else | |
b4e70030 | 1974 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
1975 | /* confdefs.h. */ |
1976 | _ACEOF | |
1977 | cat confdefs.h >>conftest.$ac_ext | |
1978 | cat >>conftest.$ac_ext <<_ACEOF | |
1979 | /* end confdefs.h. */ | |
1980 | ||
1981 | int | |
1982 | main () | |
1983 | { | |
1984 | ||
1985 | ; | |
1986 | return 0; | |
1987 | } | |
1988 | _ACEOF | |
1989 | rm -f conftest.$ac_objext | |
1990 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1991 | (eval $ac_compile) 2>conftest.er1 | |
1992 | ac_status=$? | |
1993 | grep -v '^ *+' conftest.er1 >conftest.err | |
1994 | rm -f conftest.er1 | |
1995 | cat conftest.err >&5 | |
1996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1997 | (exit $ac_status); } && | |
b4e70030 JB |
1998 | { ac_try='test -z "$ac_c_werror_flag" |
1999 | || test ! -s conftest.err' | |
bec39cab AC |
2000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2001 | (eval $ac_try) 2>&5 | |
2002 | ac_status=$? | |
2003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2004 | (exit $ac_status); }; } && | |
2005 | { ac_try='test -s conftest.$ac_objext' | |
2006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2007 | (eval $ac_try) 2>&5 | |
2008 | ac_status=$? | |
2009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2010 | (exit $ac_status); }; }; then | |
c906108c SS |
2011 | ac_cv_prog_cc_g=yes |
2012 | else | |
bec39cab AC |
2013 | echo "$as_me: failed program was:" >&5 |
2014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2015 | |
b4e70030 | 2016 | ac_cv_prog_cc_g=no |
4e8d927d | 2017 | fi |
bec39cab AC |
2018 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2019 | fi | |
b4e70030 JB |
2020 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2021 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 2022 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 2023 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
2024 | elif test $ac_cv_prog_cc_g = yes; then |
2025 | if test "$GCC" = yes; then | |
2026 | CFLAGS="-g -O2" | |
2027 | else | |
2028 | CFLAGS="-g" | |
2029 | fi | |
2030 | else | |
2031 | if test "$GCC" = yes; then | |
2032 | CFLAGS="-O2" | |
2033 | else | |
2034 | CFLAGS= | |
2035 | fi | |
2036 | fi | |
b4e70030 JB |
2037 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2038 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2039 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
bec39cab AC |
2040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2041 | else | |
b4e70030 | 2042 | ac_cv_prog_cc_stdc=no |
bec39cab AC |
2043 | ac_save_CC=$CC |
2044 | cat >conftest.$ac_ext <<_ACEOF | |
2045 | /* confdefs.h. */ | |
2046 | _ACEOF | |
2047 | cat confdefs.h >>conftest.$ac_ext | |
2048 | cat >>conftest.$ac_ext <<_ACEOF | |
2049 | /* end confdefs.h. */ | |
c906108c SS |
2050 | #include <stdarg.h> |
2051 | #include <stdio.h> | |
2052 | #include <sys/types.h> | |
2053 | #include <sys/stat.h> | |
2054 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2055 | struct buf { int x; }; | |
2056 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2057 | static char *e (p, i) | |
2058 | char **p; | |
2059 | int i; | |
2060 | { | |
2061 | return p[i]; | |
2062 | } | |
2063 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2064 | { | |
2065 | char *s; | |
2066 | va_list v; | |
2067 | va_start (v,p); | |
2068 | s = g (p, va_arg (v,int)); | |
2069 | va_end (v); | |
2070 | return s; | |
2071 | } | |
bec39cab AC |
2072 | |
2073 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2074 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2075 | These don't provoke an error unfortunately, instead are silently treated | |
b4e70030 | 2076 | as 'x'. The following induces an error, until -std1 is added to get |
bec39cab AC |
2077 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2078 | array size at least. It's necessary to write '\x00'==0 to get something | |
b4e70030 | 2079 | that's true only with -std1. */ |
bec39cab AC |
2080 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2081 | ||
c906108c SS |
2082 | int test (int i, double x); |
2083 | struct s1 {int (*f) (int a);}; | |
2084 | struct s2 {int (*f) (double a);}; | |
2085 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2086 | int argc; | |
2087 | char **argv; | |
bec39cab AC |
2088 | int |
2089 | main () | |
2090 | { | |
c906108c | 2091 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
bec39cab AC |
2092 | ; |
2093 | return 0; | |
2094 | } | |
2095 | _ACEOF | |
b4e70030 JB |
2096 | # Don't try gcc -ansi; that turns off useful extensions and |
2097 | # breaks some systems' header files. | |
2098 | # AIX -qlanglvl=ansi | |
2099 | # Ultrix and OSF/1 -std1 | |
2100 | # HP-UX 10.20 and later -Ae | |
2101 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2102 | # SVR4 -Xc -D__EXTENSIONS__ | |
2103 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bec39cab AC |
2104 | do |
2105 | CC="$ac_save_CC $ac_arg" | |
2106 | rm -f conftest.$ac_objext | |
2107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2108 | (eval $ac_compile) 2>conftest.er1 | |
2109 | ac_status=$? | |
2110 | grep -v '^ *+' conftest.er1 >conftest.err | |
2111 | rm -f conftest.er1 | |
2112 | cat conftest.err >&5 | |
2113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2114 | (exit $ac_status); } && | |
b4e70030 JB |
2115 | { ac_try='test -z "$ac_c_werror_flag" |
2116 | || test ! -s conftest.err' | |
bec39cab AC |
2117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2118 | (eval $ac_try) 2>&5 | |
2119 | ac_status=$? | |
2120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2121 | (exit $ac_status); }; } && | |
2122 | { ac_try='test -s conftest.$ac_objext' | |
2123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2124 | (eval $ac_try) 2>&5 | |
2125 | ac_status=$? | |
2126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2127 | (exit $ac_status); }; }; then | |
b4e70030 JB |
2128 | ac_cv_prog_cc_stdc=$ac_arg |
2129 | break | |
c906108c | 2130 | else |
bec39cab AC |
2131 | echo "$as_me: failed program was:" >&5 |
2132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2133 | ||
c906108c | 2134 | fi |
bec39cab | 2135 | rm -f conftest.err conftest.$ac_objext |
c906108c | 2136 | done |
b4e70030 | 2137 | rm -f conftest.$ac_ext conftest.$ac_objext |
bec39cab | 2138 | CC=$ac_save_CC |
c906108c SS |
2139 | |
2140 | fi | |
b4e70030 JB |
2141 | |
2142 | case "x$ac_cv_prog_cc_stdc" in | |
2143 | x|xno) | |
2144 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2145 | echo "${ECHO_T}none needed" >&6 ;; | |
bec39cab | 2146 | *) |
b4e70030 JB |
2147 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2148 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2149 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
c906108c SS |
2150 | esac |
2151 | ||
b4e70030 JB |
2152 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2153 | # in C++ we need to declare it. In case someone uses the same compiler | |
2154 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2155 | # the declaration of exit, since it's the most demanding environment. | |
2156 | cat >conftest.$ac_ext <<_ACEOF | |
2157 | #ifndef __cplusplus | |
2158 | choke me | |
2159 | #endif | |
2160 | _ACEOF | |
2161 | rm -f conftest.$ac_objext | |
2162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2163 | (eval $ac_compile) 2>conftest.er1 | |
2164 | ac_status=$? | |
2165 | grep -v '^ *+' conftest.er1 >conftest.err | |
2166 | rm -f conftest.er1 | |
2167 | cat conftest.err >&5 | |
2168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2169 | (exit $ac_status); } && | |
2170 | { ac_try='test -z "$ac_c_werror_flag" | |
2171 | || test ! -s conftest.err' | |
2172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2173 | (eval $ac_try) 2>&5 | |
2174 | ac_status=$? | |
2175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2176 | (exit $ac_status); }; } && | |
2177 | { ac_try='test -s conftest.$ac_objext' | |
2178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2179 | (eval $ac_try) 2>&5 | |
2180 | ac_status=$? | |
2181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2182 | (exit $ac_status); }; }; then | |
2183 | for ac_declaration in \ | |
2184 | '' \ | |
2185 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2186 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2187 | 'extern "C" void exit (int) throw ();' \ | |
2188 | 'extern "C" void exit (int);' \ | |
2189 | 'void exit (int);' | |
2190 | do | |
2191 | cat >conftest.$ac_ext <<_ACEOF | |
2192 | /* confdefs.h. */ | |
2193 | _ACEOF | |
2194 | cat confdefs.h >>conftest.$ac_ext | |
2195 | cat >>conftest.$ac_ext <<_ACEOF | |
2196 | /* end confdefs.h. */ | |
2197 | $ac_declaration | |
2198 | #include <stdlib.h> | |
2199 | int | |
2200 | main () | |
2201 | { | |
2202 | exit (42); | |
2203 | ; | |
2204 | return 0; | |
2205 | } | |
2206 | _ACEOF | |
2207 | rm -f conftest.$ac_objext | |
2208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2209 | (eval $ac_compile) 2>conftest.er1 | |
2210 | ac_status=$? | |
2211 | grep -v '^ *+' conftest.er1 >conftest.err | |
2212 | rm -f conftest.er1 | |
2213 | cat conftest.err >&5 | |
2214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2215 | (exit $ac_status); } && | |
2216 | { ac_try='test -z "$ac_c_werror_flag" | |
2217 | || test ! -s conftest.err' | |
2218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2219 | (eval $ac_try) 2>&5 | |
2220 | ac_status=$? | |
2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2222 | (exit $ac_status); }; } && | |
2223 | { ac_try='test -s conftest.$ac_objext' | |
2224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2225 | (eval $ac_try) 2>&5 | |
2226 | ac_status=$? | |
2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2228 | (exit $ac_status); }; }; then | |
2229 | : | |
2230 | else | |
2231 | echo "$as_me: failed program was:" >&5 | |
2232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2233 | ||
2234 | continue | |
2235 | fi | |
2236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2237 | cat >conftest.$ac_ext <<_ACEOF | |
2238 | /* confdefs.h. */ | |
2239 | _ACEOF | |
2240 | cat confdefs.h >>conftest.$ac_ext | |
2241 | cat >>conftest.$ac_ext <<_ACEOF | |
2242 | /* end confdefs.h. */ | |
2243 | $ac_declaration | |
2244 | int | |
2245 | main () | |
2246 | { | |
2247 | exit (42); | |
2248 | ; | |
2249 | return 0; | |
2250 | } | |
2251 | _ACEOF | |
2252 | rm -f conftest.$ac_objext | |
2253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2254 | (eval $ac_compile) 2>conftest.er1 | |
2255 | ac_status=$? | |
2256 | grep -v '^ *+' conftest.er1 >conftest.err | |
2257 | rm -f conftest.er1 | |
2258 | cat conftest.err >&5 | |
2259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2260 | (exit $ac_status); } && | |
2261 | { ac_try='test -z "$ac_c_werror_flag" | |
2262 | || test ! -s conftest.err' | |
2263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2264 | (eval $ac_try) 2>&5 | |
2265 | ac_status=$? | |
2266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2267 | (exit $ac_status); }; } && | |
2268 | { ac_try='test -s conftest.$ac_objext' | |
2269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2270 | (eval $ac_try) 2>&5 | |
2271 | ac_status=$? | |
2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2273 | (exit $ac_status); }; }; then | |
2274 | break | |
2275 | else | |
2276 | echo "$as_me: failed program was:" >&5 | |
2277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2278 | ||
2279 | fi | |
2280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2281 | done | |
2282 | rm -f conftest* | |
2283 | if test -n "$ac_declaration"; then | |
2284 | echo '#ifdef __cplusplus' >>confdefs.h | |
2285 | echo $ac_declaration >>confdefs.h | |
2286 | echo '#endif' >>confdefs.h | |
2287 | fi | |
2288 | ||
2289 | else | |
2290 | echo "$as_me: failed program was:" >&5 | |
2291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2292 | |
b4e70030 JB |
2293 | fi |
2294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab AC |
2295 | ac_ext=c |
2296 | ac_cpp='$CPP $CPPFLAGS' | |
2297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c | 2300 | |
60ca704f | 2301 | |
bec39cab AC |
2302 | cat >>confdefs.h <<\_ACEOF |
2303 | #define _GNU_SOURCE 1 | |
2304 | _ACEOF | |
c906108c SS |
2305 | |
2306 | ||
8bb2c122 | 2307 | |
bec39cab AC |
2308 | ac_ext=c |
2309 | ac_cpp='$CPP $CPPFLAGS' | |
2310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b4e70030 JB |
2313 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2314 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
bec39cab AC |
2315 | # On Suns, sometimes $CPP names a directory. |
2316 | if test -n "$CPP" && test -d "$CPP"; then | |
2317 | CPP= | |
8bb2c122 | 2318 | fi |
bec39cab AC |
2319 | if test -z "$CPP"; then |
2320 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2322 | else | |
2323 | # Double quotes because CPP needs to be expanded | |
2324 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2325 | do | |
2326 | ac_preproc_ok=false | |
2327 | for ac_c_preproc_warn_flag in '' yes | |
2328 | do | |
2329 | # Use a header file that comes with gcc, so configuring glibc | |
2330 | # with a fresh cross-compiler works. | |
2331 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2332 | # <limits.h> exists even on freestanding compilers. | |
2333 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2334 | # not just through cpp. "Syntax error" is here to catch this case. | |
2335 | cat >conftest.$ac_ext <<_ACEOF | |
2336 | /* confdefs.h. */ | |
2337 | _ACEOF | |
2338 | cat confdefs.h >>conftest.$ac_ext | |
2339 | cat >>conftest.$ac_ext <<_ACEOF | |
2340 | /* end confdefs.h. */ | |
2341 | #ifdef __STDC__ | |
2342 | # include <limits.h> | |
2343 | #else | |
2344 | # include <assert.h> | |
2345 | #endif | |
2346 | Syntax error | |
2347 | _ACEOF | |
2348 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2349 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2350 | ac_status=$? | |
2351 | grep -v '^ *+' conftest.er1 >conftest.err | |
2352 | rm -f conftest.er1 | |
2353 | cat conftest.err >&5 | |
2354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2355 | (exit $ac_status); } >/dev/null; then | |
2356 | if test -s conftest.err; then | |
2357 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2358 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2359 | else | |
2360 | ac_cpp_err= | |
2361 | fi | |
8bb2c122 | 2362 | else |
bec39cab | 2363 | ac_cpp_err=yes |
8bb2c122 | 2364 | fi |
bec39cab AC |
2365 | if test -z "$ac_cpp_err"; then |
2366 | : | |
8bb2c122 | 2367 | else |
bec39cab AC |
2368 | echo "$as_me: failed program was:" >&5 |
2369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2370 | ||
2371 | # Broken: fails on valid input. | |
2372 | continue | |
2373 | fi | |
2374 | rm -f conftest.err conftest.$ac_ext | |
2375 | ||
b4e70030 | 2376 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2377 | # can be detected and how. |
2378 | cat >conftest.$ac_ext <<_ACEOF | |
2379 | /* confdefs.h. */ | |
2380 | _ACEOF | |
2381 | cat confdefs.h >>conftest.$ac_ext | |
2382 | cat >>conftest.$ac_ext <<_ACEOF | |
2383 | /* end confdefs.h. */ | |
2384 | #include <ac_nonexistent.h> | |
2385 | _ACEOF | |
2386 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2387 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2388 | ac_status=$? | |
2389 | grep -v '^ *+' conftest.er1 >conftest.err | |
2390 | rm -f conftest.er1 | |
2391 | cat conftest.err >&5 | |
2392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2393 | (exit $ac_status); } >/dev/null; then | |
2394 | if test -s conftest.err; then | |
2395 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2396 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2397 | else | |
2398 | ac_cpp_err= | |
2399 | fi | |
8bb2c122 | 2400 | else |
bec39cab | 2401 | ac_cpp_err=yes |
8bb2c122 | 2402 | fi |
bec39cab AC |
2403 | if test -z "$ac_cpp_err"; then |
2404 | # Broken: success on invalid input. | |
2405 | continue | |
8bb2c122 | 2406 | else |
bec39cab AC |
2407 | echo "$as_me: failed program was:" >&5 |
2408 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 2409 | |
bec39cab AC |
2410 | # Passes both tests. |
2411 | ac_preproc_ok=: | |
2412 | break | |
8bb2c122 | 2413 | fi |
bec39cab | 2414 | rm -f conftest.err conftest.$ac_ext |
8bb2c122 | 2415 | |
bec39cab AC |
2416 | done |
2417 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2418 | rm -f conftest.err conftest.$ac_ext | |
2419 | if $ac_preproc_ok; then | |
2420 | break | |
2421 | fi | |
8bb2c122 | 2422 | |
bec39cab AC |
2423 | done |
2424 | ac_cv_prog_CPP=$CPP | |
ddc9cd0f | 2425 | |
c906108c | 2426 | fi |
bec39cab AC |
2427 | CPP=$ac_cv_prog_CPP |
2428 | else | |
2429 | ac_cv_prog_CPP=$CPP | |
c906108c | 2430 | fi |
b4e70030 JB |
2431 | echo "$as_me:$LINENO: result: $CPP" >&5 |
2432 | echo "${ECHO_T}$CPP" >&6 | |
bec39cab AC |
2433 | ac_preproc_ok=false |
2434 | for ac_c_preproc_warn_flag in '' yes | |
2435 | do | |
2436 | # Use a header file that comes with gcc, so configuring glibc | |
2437 | # with a fresh cross-compiler works. | |
2438 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2439 | # <limits.h> exists even on freestanding compilers. | |
2440 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2441 | # not just through cpp. "Syntax error" is here to catch this case. | |
2442 | cat >conftest.$ac_ext <<_ACEOF | |
2443 | /* confdefs.h. */ | |
2444 | _ACEOF | |
2445 | cat confdefs.h >>conftest.$ac_ext | |
2446 | cat >>conftest.$ac_ext <<_ACEOF | |
2447 | /* end confdefs.h. */ | |
2448 | #ifdef __STDC__ | |
2449 | # include <limits.h> | |
2450 | #else | |
2451 | # include <assert.h> | |
2452 | #endif | |
2453 | Syntax error | |
2454 | _ACEOF | |
2455 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2456 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2457 | ac_status=$? | |
2458 | grep -v '^ *+' conftest.er1 >conftest.err | |
2459 | rm -f conftest.er1 | |
2460 | cat conftest.err >&5 | |
2461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2462 | (exit $ac_status); } >/dev/null; then | |
2463 | if test -s conftest.err; then | |
2464 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2465 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2466 | else | |
2467 | ac_cpp_err= | |
2468 | fi | |
c906108c | 2469 | else |
bec39cab | 2470 | ac_cpp_err=yes |
c906108c | 2471 | fi |
bec39cab AC |
2472 | if test -z "$ac_cpp_err"; then |
2473 | : | |
c906108c | 2474 | else |
bec39cab AC |
2475 | echo "$as_me: failed program was:" >&5 |
2476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2477 | ||
2478 | # Broken: fails on valid input. | |
2479 | continue | |
2480 | fi | |
2481 | rm -f conftest.err conftest.$ac_ext | |
2482 | ||
b4e70030 | 2483 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2484 | # can be detected and how. |
2485 | cat >conftest.$ac_ext <<_ACEOF | |
2486 | /* confdefs.h. */ | |
2487 | _ACEOF | |
2488 | cat confdefs.h >>conftest.$ac_ext | |
2489 | cat >>conftest.$ac_ext <<_ACEOF | |
2490 | /* end confdefs.h. */ | |
2491 | #include <ac_nonexistent.h> | |
2492 | _ACEOF | |
2493 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2494 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2495 | ac_status=$? | |
2496 | grep -v '^ *+' conftest.er1 >conftest.err | |
2497 | rm -f conftest.er1 | |
2498 | cat conftest.err >&5 | |
2499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2500 | (exit $ac_status); } >/dev/null; then | |
2501 | if test -s conftest.err; then | |
2502 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2503 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2504 | else | |
2505 | ac_cpp_err= | |
2506 | fi | |
c906108c | 2507 | else |
bec39cab | 2508 | ac_cpp_err=yes |
c906108c | 2509 | fi |
bec39cab AC |
2510 | if test -z "$ac_cpp_err"; then |
2511 | # Broken: success on invalid input. | |
2512 | continue | |
c906108c | 2513 | else |
bec39cab AC |
2514 | echo "$as_me: failed program was:" >&5 |
2515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2516 | |
bec39cab AC |
2517 | # Passes both tests. |
2518 | ac_preproc_ok=: | |
2519 | break | |
c906108c | 2520 | fi |
bec39cab | 2521 | rm -f conftest.err conftest.$ac_ext |
c906108c | 2522 | |
bec39cab AC |
2523 | done |
2524 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2525 | rm -f conftest.err conftest.$ac_ext | |
2526 | if $ac_preproc_ok; then | |
c906108c SS |
2527 | : |
2528 | else | |
bec39cab AC |
2529 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2530 | See \`config.log' for more details." >&5 | |
2531 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2532 | See \`config.log' for more details." >&2;} | |
2533 | { (exit 1); exit 1; }; } | |
c906108c | 2534 | fi |
c906108c | 2535 | |
bec39cab AC |
2536 | ac_ext=c |
2537 | ac_cpp='$CPP $CPPFLAGS' | |
2538 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2539 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2540 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2541 | ||
2542 | ||
b4e70030 JB |
2543 | echo "$as_me:$LINENO: checking for egrep" >&5 |
2544 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2545 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4e8d927d DJ |
2546 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2547 | else | |
b4e70030 JB |
2548 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2549 | then ac_cv_prog_egrep='grep -E' | |
2550 | else ac_cv_prog_egrep='egrep' | |
bec39cab | 2551 | fi |
4e8d927d | 2552 | fi |
b4e70030 JB |
2553 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2554 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2555 | EGREP=$ac_cv_prog_egrep | |
c906108c | 2556 | |
bec39cab AC |
2557 | |
2558 | ||
b4e70030 JB |
2559 | echo "$as_me:$LINENO: checking for AIX" >&5 |
2560 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 | |
bec39cab AC |
2561 | cat >conftest.$ac_ext <<_ACEOF |
2562 | /* confdefs.h. */ | |
2563 | _ACEOF | |
2564 | cat confdefs.h >>conftest.$ac_ext | |
2565 | cat >>conftest.$ac_ext <<_ACEOF | |
2566 | /* end confdefs.h. */ | |
2567 | #ifdef _AIX | |
2568 | yes | |
2569 | #endif | |
2570 | ||
2571 | _ACEOF | |
c906108c | 2572 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 2573 | $EGREP "yes" >/dev/null 2>&1; then |
b4e70030 JB |
2574 | echo "$as_me:$LINENO: result: yes" >&5 |
2575 | echo "${ECHO_T}yes" >&6 | |
bec39cab AC |
2576 | cat >>confdefs.h <<\_ACEOF |
2577 | #define _ALL_SOURCE 1 | |
2578 | _ACEOF | |
2579 | ||
c906108c | 2580 | else |
b4e70030 JB |
2581 | echo "$as_me:$LINENO: result: no" >&5 |
2582 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2583 | fi |
2584 | rm -f conftest* | |
2585 | ||
c906108c | 2586 | |
b4e70030 JB |
2587 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2588 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
bec39cab AC |
2589 | if test "${ac_cv_search_strerror+set}" = set; then |
2590 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2591 | else |
bec39cab | 2592 | ac_func_search_save_LIBS=$LIBS |
b4e70030 | 2593 | ac_cv_search_strerror=no |
bec39cab AC |
2594 | cat >conftest.$ac_ext <<_ACEOF |
2595 | /* confdefs.h. */ | |
2596 | _ACEOF | |
2597 | cat confdefs.h >>conftest.$ac_ext | |
2598 | cat >>conftest.$ac_ext <<_ACEOF | |
2599 | /* end confdefs.h. */ | |
c906108c | 2600 | |
b4e70030 | 2601 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
2602 | #ifdef __cplusplus |
2603 | extern "C" | |
2604 | #endif | |
b4e70030 JB |
2605 | /* We use char because int might match the return type of a gcc2 |
2606 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
2607 | char strerror (); |
2608 | int | |
2609 | main () | |
2610 | { | |
b4e70030 | 2611 | strerror (); |
bec39cab AC |
2612 | ; |
2613 | return 0; | |
2614 | } | |
2615 | _ACEOF | |
b4e70030 | 2616 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
2617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2618 | (eval $ac_link) 2>conftest.er1 | |
2619 | ac_status=$? | |
2620 | grep -v '^ *+' conftest.er1 >conftest.err | |
2621 | rm -f conftest.er1 | |
2622 | cat conftest.err >&5 | |
2623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2624 | (exit $ac_status); } && | |
b4e70030 JB |
2625 | { ac_try='test -z "$ac_c_werror_flag" |
2626 | || test ! -s conftest.err' | |
bec39cab AC |
2627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2628 | (eval $ac_try) 2>&5 | |
2629 | ac_status=$? | |
2630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2631 | (exit $ac_status); }; } && | |
2632 | { ac_try='test -s conftest$ac_exeext' | |
2633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2634 | (eval $ac_try) 2>&5 | |
2635 | ac_status=$? | |
2636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2637 | (exit $ac_status); }; }; then | |
b4e70030 | 2638 | ac_cv_search_strerror="none required" |
c906108c | 2639 | else |
bec39cab AC |
2640 | echo "$as_me: failed program was:" >&5 |
2641 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2642 | |
2643 | fi | |
bec39cab | 2644 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
2645 | conftest$ac_exeext conftest.$ac_ext |
2646 | if test "$ac_cv_search_strerror" = no; then | |
2647 | for ac_lib in cposix; do | |
2648 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2649 | cat >conftest.$ac_ext <<_ACEOF | |
2650 | /* confdefs.h. */ | |
2651 | _ACEOF | |
2652 | cat confdefs.h >>conftest.$ac_ext | |
2653 | cat >>conftest.$ac_ext <<_ACEOF | |
2654 | /* end confdefs.h. */ | |
2655 | ||
2656 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2657 | #ifdef __cplusplus | |
2658 | extern "C" | |
2659 | #endif | |
2660 | /* We use char because int might match the return type of a gcc2 | |
2661 | builtin and then its argument prototype would still apply. */ | |
2662 | char strerror (); | |
2663 | int | |
2664 | main () | |
2665 | { | |
2666 | strerror (); | |
2667 | ; | |
2668 | return 0; | |
2669 | } | |
2670 | _ACEOF | |
2671 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2673 | (eval $ac_link) 2>conftest.er1 | |
2674 | ac_status=$? | |
2675 | grep -v '^ *+' conftest.er1 >conftest.err | |
2676 | rm -f conftest.er1 | |
2677 | cat conftest.err >&5 | |
2678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2679 | (exit $ac_status); } && | |
2680 | { ac_try='test -z "$ac_c_werror_flag" | |
2681 | || test ! -s conftest.err' | |
2682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2683 | (eval $ac_try) 2>&5 | |
2684 | ac_status=$? | |
2685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2686 | (exit $ac_status); }; } && | |
2687 | { ac_try='test -s conftest$ac_exeext' | |
2688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2689 | (eval $ac_try) 2>&5 | |
2690 | ac_status=$? | |
2691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2692 | (exit $ac_status); }; }; then | |
2693 | ac_cv_search_strerror="-l$ac_lib" | |
2694 | break | |
4e8d927d | 2695 | else |
b4e70030 JB |
2696 | echo "$as_me: failed program was:" >&5 |
2697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2698 | ||
2699 | fi | |
2700 | rm -f conftest.err conftest.$ac_objext \ | |
2701 | conftest$ac_exeext conftest.$ac_ext | |
2702 | done | |
c906108c | 2703 | fi |
bec39cab | 2704 | LIBS=$ac_func_search_save_LIBS |
c906108c | 2705 | fi |
b4e70030 JB |
2706 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
2707 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2708 | if test "$ac_cv_search_strerror" != no; then | |
2709 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
bec39cab | 2710 | |
c906108c SS |
2711 | fi |
2712 | ||
c906108c | 2713 | |
c906108c | 2714 | |
bec39cab | 2715 | |
b4e70030 JB |
2716 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 |
2717 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 | |
bec39cab AC |
2718 | if test "${am_cv_prog_cc_stdc+set}" = set; then |
2719 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2720 | else |
bec39cab AC |
2721 | am_cv_prog_cc_stdc=no |
2722 | ac_save_CC="$CC" | |
2723 | # Don't try gcc -ansi; that turns off useful extensions and | |
2724 | # breaks some systems' header files. | |
2725 | # AIX -qlanglvl=ansi | |
2726 | # Ultrix and OSF/1 -std1 | |
2727 | # HP-UX 10.20 and later -Ae | |
2728 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2729 | # SVR4 -Xc -D__EXTENSIONS__ | |
2730 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2731 | do | |
2732 | CC="$ac_save_CC $ac_arg" | |
2733 | cat >conftest.$ac_ext <<_ACEOF | |
2734 | /* confdefs.h. */ | |
2735 | _ACEOF | |
2736 | cat confdefs.h >>conftest.$ac_ext | |
2737 | cat >>conftest.$ac_ext <<_ACEOF | |
2738 | /* end confdefs.h. */ | |
2739 | #include <stdarg.h> | |
2740 | #include <stdio.h> | |
2741 | #include <sys/types.h> | |
2742 | #include <sys/stat.h> | |
2743 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2744 | struct buf { int x; }; | |
2745 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2746 | static char *e (p, i) | |
2747 | char **p; | |
2748 | int i; | |
2749 | { | |
2750 | return p[i]; | |
2751 | } | |
2752 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2753 | { | |
2754 | char *s; | |
2755 | va_list v; | |
2756 | va_start (v,p); | |
2757 | s = g (p, va_arg (v,int)); | |
2758 | va_end (v); | |
2759 | return s; | |
2760 | } | |
2761 | int test (int i, double x); | |
2762 | struct s1 {int (*f) (int a);}; | |
2763 | struct s2 {int (*f) (double a);}; | |
2764 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2765 | int argc; | |
2766 | char **argv; | |
c906108c | 2767 | |
bec39cab AC |
2768 | int |
2769 | main () | |
2770 | { | |
c906108c | 2771 | |
bec39cab | 2772 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
c906108c | 2773 | |
bec39cab AC |
2774 | ; |
2775 | return 0; | |
2776 | } | |
2777 | _ACEOF | |
2778 | rm -f conftest.$ac_objext | |
2779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2780 | (eval $ac_compile) 2>conftest.er1 | |
2781 | ac_status=$? | |
2782 | grep -v '^ *+' conftest.er1 >conftest.err | |
2783 | rm -f conftest.er1 | |
2784 | cat conftest.err >&5 | |
2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2786 | (exit $ac_status); } && | |
b4e70030 JB |
2787 | { ac_try='test -z "$ac_c_werror_flag" |
2788 | || test ! -s conftest.err' | |
bec39cab AC |
2789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2790 | (eval $ac_try) 2>&5 | |
2791 | ac_status=$? | |
2792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2793 | (exit $ac_status); }; } && | |
2794 | { ac_try='test -s conftest.$ac_objext' | |
2795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2796 | (eval $ac_try) 2>&5 | |
2797 | ac_status=$? | |
2798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2799 | (exit $ac_status); }; }; then | |
2800 | am_cv_prog_cc_stdc="$ac_arg"; break | |
c906108c | 2801 | else |
bec39cab AC |
2802 | echo "$as_me: failed program was:" >&5 |
2803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2804 | |
2805 | fi | |
bec39cab AC |
2806 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2807 | done | |
2808 | CC="$ac_save_CC" | |
c906108c SS |
2809 | |
2810 | fi | |
2811 | ||
bec39cab | 2812 | if test -z "$am_cv_prog_cc_stdc"; then |
b4e70030 JB |
2813 | echo "$as_me:$LINENO: result: none needed" >&5 |
2814 | echo "${ECHO_T}none needed" >&6 | |
c906108c | 2815 | else |
b4e70030 JB |
2816 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
2817 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 | |
c906108c | 2818 | fi |
bec39cab AC |
2819 | case "x$am_cv_prog_cc_stdc" in |
2820 | x|xno) ;; | |
2821 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
2822 | esac | |
c906108c | 2823 | |
c906108c | 2824 | |
bec39cab AC |
2825 | ac_aux_dir= |
2826 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do | |
2827 | if test -f $ac_dir/install-sh; then | |
2828 | ac_aux_dir=$ac_dir | |
2829 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2830 | break | |
2831 | elif test -f $ac_dir/install.sh; then | |
2832 | ac_aux_dir=$ac_dir | |
2833 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2834 | break | |
2835 | elif test -f $ac_dir/shtool; then | |
2836 | ac_aux_dir=$ac_dir | |
2837 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2838 | break | |
2839 | fi | |
2840 | done | |
2841 | if test -z "$ac_aux_dir"; then | |
2842 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5 | |
2843 | echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;} | |
2844 | { (exit 1); exit 1; }; } | |
c906108c | 2845 | fi |
bec39cab AC |
2846 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
2847 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
2848 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
c906108c | 2849 | |
bec39cab AC |
2850 | # Make sure we can run config.sub. |
2851 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
2852 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
2853 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
2854 | { (exit 1); exit 1; }; } | |
2855 | ||
b4e70030 JB |
2856 | echo "$as_me:$LINENO: checking build system type" >&5 |
2857 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
bec39cab AC |
2858 | if test "${ac_cv_build+set}" = set; then |
2859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2860 | else | |
b4e70030 JB |
2861 | ac_cv_build_alias=$build_alias |
2862 | test -z "$ac_cv_build_alias" && | |
2863 | ac_cv_build_alias=`$ac_config_guess` | |
2864 | test -z "$ac_cv_build_alias" && | |
bec39cab AC |
2865 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2866 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2867 | { (exit 1); exit 1; }; } | |
b4e70030 JB |
2868 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
2869 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
2870 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
bec39cab AC |
2871 | { (exit 1); exit 1; }; } |
2872 | ||
2873 | fi | |
b4e70030 JB |
2874 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2875 | echo "${ECHO_T}$ac_cv_build" >&6 | |
bec39cab | 2876 | build=$ac_cv_build |
b4e70030 JB |
2877 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2878 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2879 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
bec39cab AC |
2880 | |
2881 | ||
b4e70030 JB |
2882 | echo "$as_me:$LINENO: checking host system type" >&5 |
2883 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
bec39cab AC |
2884 | if test "${ac_cv_host+set}" = set; then |
2885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2886 | else | |
b4e70030 JB |
2887 | ac_cv_host_alias=$host_alias |
2888 | test -z "$ac_cv_host_alias" && | |
2889 | ac_cv_host_alias=$ac_cv_build_alias | |
2890 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
2891 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
2892 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
bec39cab AC |
2893 | { (exit 1); exit 1; }; } |
2894 | ||
2895 | fi | |
b4e70030 JB |
2896 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2897 | echo "${ECHO_T}$ac_cv_host" >&6 | |
bec39cab | 2898 | host=$ac_cv_host |
b4e70030 JB |
2899 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2900 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2901 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
bec39cab AC |
2902 | |
2903 | ||
b4e70030 JB |
2904 | echo "$as_me:$LINENO: checking target system type" >&5 |
2905 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
bec39cab AC |
2906 | if test "${ac_cv_target+set}" = set; then |
2907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2908 | else | |
b4e70030 JB |
2909 | ac_cv_target_alias=$target_alias |
2910 | test "x$ac_cv_target_alias" = "x" && | |
2911 | ac_cv_target_alias=$ac_cv_host_alias | |
2912 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
2913 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
2914 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
bec39cab AC |
2915 | { (exit 1); exit 1; }; } |
2916 | ||
2917 | fi | |
b4e70030 JB |
2918 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2919 | echo "${ECHO_T}$ac_cv_target" >&6 | |
bec39cab | 2920 | target=$ac_cv_target |
b4e70030 JB |
2921 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2922 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2923 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
c906108c | 2924 | |
c906108c | 2925 | |
bec39cab AC |
2926 | # The aliases save the names the user supplied, while $host etc. |
2927 | # will get canonicalized. | |
2928 | test -n "$target_alias" && | |
2929 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2930 | NONENONEs,x,x, && | |
2931 | program_prefix=${target_alias}- | |
c906108c | 2932 | |
c906108c | 2933 | |
bec39cab AC |
2934 | CONFIG_OBS= |
2935 | CONFIG_DEPS= | |
2936 | CONFIG_SRCS= | |
2937 | ENABLE_CFLAGS= | |
c906108c | 2938 | |
bec39cab AC |
2939 | CONFIG_ALL= |
2940 | CONFIG_CLEAN= | |
2941 | CONFIG_INSTALL= | |
2942 | CONFIG_UNINSTALL= | |
2943 | ||
20e95c23 DJ |
2944 | # If we haven't got the data from the intl directory, |
2945 | # assume NLS is disabled. | |
2946 | USE_NLS=no | |
2947 | LIBINTL= | |
2948 | LIBINTL_DEP= | |
2949 | INCINTL= | |
2950 | XGETTEXT= | |
2951 | GMSGFMT= | |
2952 | POSUB= | |
3841debe DJ |
2953 | |
2954 | if test -f ../intl/config.intl; then | |
2955 | . ../intl/config.intl | |
20e95c23 DJ |
2956 | fi |
2957 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
2958 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
2959 | if test x"$USE_NLS" != xyes; then | |
b4e70030 JB |
2960 | echo "$as_me:$LINENO: result: no" >&5 |
2961 | echo "${ECHO_T}no" >&6 | |
c906108c | 2962 | else |
20e95c23 DJ |
2963 | echo "$as_me:$LINENO: result: yes" >&5 |
2964 | echo "${ECHO_T}yes" >&6 | |
c906108c | 2965 | |
20e95c23 DJ |
2966 | cat >>confdefs.h <<\_ACEOF |
2967 | #define ENABLE_NLS 1 | |
bec39cab | 2968 | _ACEOF |
c906108c | 2969 | |
c906108c | 2970 | |
20e95c23 DJ |
2971 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
2972 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
2973 | # Look for .po and .gmo files in the source directory. | |
2974 | CATALOGS= | |
2975 | XLINGUAS= | |
2976 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
2977 | # If there aren't any .gmo files the shell will give us the | |
2978 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
2979 | # weeded out. | |
2980 | case "$cat" in *\**) | |
2981 | continue;; | |
2982 | esac | |
2983 | # The quadruple backslash is collapsed to a double backslash | |
2984 | # by the backticks, then collapsed again by the double quotes, | |
2985 | # leaving us with one backslash in the sed expression (right | |
2986 | # before the dot that mustn't act as a wildcard). | |
2987 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
2988 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
2989 | # The user is allowed to set LINGUAS to a list of languages to | |
2990 | # install catalogs for. If it's empty that means "all of them." | |
2991 | if test "x$LINGUAS" = x; then | |
2992 | CATALOGS="$CATALOGS $cat" | |
2993 | XLINGUAS="$XLINGUAS $lang" | |
2994 | else | |
2995 | case "$LINGUAS" in *$lang*) | |
2996 | CATALOGS="$CATALOGS $cat" | |
2997 | XLINGUAS="$XLINGUAS $lang" | |
2998 | ;; | |
2999 | esac | |
3000 | fi | |
3001 | done | |
3002 | LINGUAS="$XLINGUAS" | |
3003 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
3004 | echo "${ECHO_T}$LINGUAS" >&6 | |
c906108c | 3005 | |
c906108c | 3006 | |
20e95c23 | 3007 | DATADIRNAME=share |
c906108c | 3008 | |
20e95c23 | 3009 | INSTOBJEXT=.mo |
c906108c | 3010 | |
20e95c23 DJ |
3011 | GENCAT=gencat |
3012 | ||
3013 | CATOBJEXT=.gmo | |
3014 | ||
3015 | fi | |
3016 | ||
3017 | localedir='${datadir}/locale' | |
c906108c | 3018 | |
bec39cab | 3019 | |
20e95c23 | 3020 | if test x"$USE_NLS" = xyes; then |
bec39cab AC |
3021 | CONFIG_ALL="$CONFIG_ALL all-po" |
3022 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" | |
3023 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" | |
3024 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" | |
3025 | fi | |
3026 | ||
3027 | PACKAGE=gdb | |
3028 | ||
3029 | cat >>confdefs.h <<_ACEOF | |
3030 | #define PACKAGE "$PACKAGE" | |
3031 | _ACEOF | |
3032 | ||
3033 | ||
3034 | ||
3035 | debugdir=${libdir}/debug | |
3036 | ||
3037 | ||
b4e70030 | 3038 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. |
bec39cab | 3039 | if test "${with_separate_debug_dir+set}" = set; then |
b4e70030 JB |
3040 | withval="$with_separate_debug_dir" |
3041 | debugdir="${withval}" | |
3042 | fi; | |
bec39cab AC |
3043 | |
3044 | ||
3045 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
3046 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3047 | ac_define_dir=`eval echo $debugdir` | |
3048 | ac_define_dir=`eval echo $ac_define_dir` | |
3049 | ||
3050 | cat >>confdefs.h <<_ACEOF | |
3051 | #define DEBUGDIR "$ac_define_dir" | |
3052 | _ACEOF | |
3053 | ||
3054 | ||
3055 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), | |
3056 | ||
aa28a74e DJ |
3057 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
3058 | if test "x$prefix" = xNONE; then | |
3059 | test_prefix=/usr/local | |
3060 | else | |
3061 | test_prefix=$prefix | |
3062 | fi | |
3063 | else | |
3064 | test_prefix=$exec_prefix | |
3065 | fi | |
3066 | case ${debugdir} in | |
3067 | "${test_prefix}"|"${test_prefix}/"*|\ | |
3068 | '${exec_prefix}'|'${exec_prefix}/'*) | |
3069 | ||
3070 | cat >>confdefs.h <<\_ACEOF | |
3071 | #define DEBUGDIR_RELOCATABLE 1 | |
3072 | _ACEOF | |
3073 | ||
3074 | ;; | |
3075 | esac | |
3076 | ||
b4e70030 JB |
3077 | |
3078 | ||
bec39cab AC |
3079 | subdirs="$subdirs doc testsuite" |
3080 | ||
3081 | ||
121ce6e5 DJ |
3082 | # Provide defaults for some variables set by the per-host and per-target |
3083 | # configuration. | |
3084 | gdb_host_obs=posix-hdep.o | |
3085 | ||
771b4502 UW |
3086 | if test "${target}" = "${host}"; then |
3087 | gdb_native=yes | |
3088 | else | |
3089 | gdb_native=no | |
3090 | fi | |
3091 | ||
bec39cab AC |
3092 | . $srcdir/configure.host |
3093 | ||
3094 | . $srcdir/configure.tgt | |
3095 | ||
3096 | # Fetch the default architecture and default target vector from BFD. | |
3097 | targ=$target; . $srcdir/../bfd/config.bfd | |
3098 | ||
3099 | # We only want the first architecture, so strip off the others if | |
3100 | # there is more than one. | |
3101 | targ_archs=`echo $targ_archs | sed 's/ .*//'` | |
3102 | ||
3103 | if test "x$targ_archs" != x; then | |
3104 | ||
3105 | cat >>confdefs.h <<_ACEOF | |
3106 | #define DEFAULT_BFD_ARCH $targ_archs | |
3107 | _ACEOF | |
3108 | ||
3109 | fi | |
3110 | if test "x$targ_defvec" != x; then | |
3111 | ||
3112 | cat >>confdefs.h <<_ACEOF | |
3113 | #define DEFAULT_BFD_VEC $targ_defvec | |
3114 | _ACEOF | |
3115 | ||
3116 | fi | |
3117 | ||
3118 | test "$program_prefix" != NONE && | |
b4e70030 | 3119 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
bec39cab AC |
3120 | # Use a double $ so make ignores it. |
3121 | test "$program_suffix" != NONE && | |
b4e70030 | 3122 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
bec39cab AC |
3123 | # Double any \ or $. echo might interpret backslashes. |
3124 | # By default was `s,x,x', remove it if useless. | |
3125 | cat <<\_ACEOF >conftest.sed | |
3126 | s/[\\$]/&&/g;s/;s,x,x,$// | |
3127 | _ACEOF | |
3128 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
b4e70030 | 3129 | rm conftest.sed |
bec39cab AC |
3130 | |
3131 | ||
3132 | # The CLI cannot be disabled yet, but may be in the future. | |
3133 | ||
3134 | # Enable CLI. | |
b4e70030 | 3135 | # Check whether --enable-gdbcli or --disable-gdbcli was given. |
bec39cab | 3136 | if test "${enable_gdbcli+set}" = set; then |
b4e70030 JB |
3137 | enableval="$enable_gdbcli" |
3138 | case $enableval in | |
bec39cab AC |
3139 | yes) |
3140 | ;; | |
3141 | no) | |
3142 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 | |
3143 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} | |
3144 | { (exit 1); exit 1; }; } ;; | |
3145 | *) | |
3146 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 | |
3147 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} | |
3148 | { (exit 1); exit 1; }; } ;; | |
3149 | esac | |
3150 | else | |
3151 | enable_gdbcli=yes | |
b4e70030 | 3152 | fi; |
bec39cab AC |
3153 | if test x"$enable_gdbcli" = xyes; then |
3154 | if test -d $srcdir/cli; then | |
3155 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" | |
3156 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" | |
3157 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" | |
3158 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" | |
3159 | fi | |
3160 | fi | |
3161 | ||
3162 | # Enable MI. | |
b4e70030 | 3163 | # Check whether --enable-gdbmi or --disable-gdbmi was given. |
bec39cab | 3164 | if test "${enable_gdbmi+set}" = set; then |
b4e70030 JB |
3165 | enableval="$enable_gdbmi" |
3166 | case $enableval in | |
bec39cab AC |
3167 | yes | no) |
3168 | ;; | |
3169 | *) | |
3170 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 | |
3171 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} | |
3172 | { (exit 1); exit 1; }; } ;; | |
3173 | esac | |
3174 | else | |
3175 | enable_gdbmi=yes | |
b4e70030 | 3176 | fi; |
bec39cab AC |
3177 | if test x"$enable_gdbmi" = xyes; then |
3178 | if test -d $srcdir/mi; then | |
3179 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" | |
3180 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" | |
3181 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" | |
3182 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" | |
3183 | fi | |
3184 | fi | |
3185 | ||
3186 | # Enable TUI. | |
b4e70030 | 3187 | # Check whether --enable-tui or --disable-tui was given. |
bec39cab | 3188 | if test "${enable_tui+set}" = set; then |
b4e70030 JB |
3189 | enableval="$enable_tui" |
3190 | case $enableval in | |
bec39cab AC |
3191 | yes | no) |
3192 | ;; | |
3193 | *) | |
3194 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 | |
3195 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} | |
3196 | { (exit 1); exit 1; }; } ;; | |
3197 | esac | |
3198 | else | |
3199 | enable_tui=yes | |
b4e70030 | 3200 | fi; |
bec39cab AC |
3201 | |
3202 | # Enable gdbtk. | |
b4e70030 | 3203 | # Check whether --enable-gdbtk or --disable-gdbtk was given. |
bec39cab | 3204 | if test "${enable_gdbtk+set}" = set; then |
b4e70030 JB |
3205 | enableval="$enable_gdbtk" |
3206 | case $enableval in | |
bec39cab AC |
3207 | yes | no) |
3208 | ;; | |
3209 | *) | |
3210 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 | |
3211 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} | |
3212 | { (exit 1); exit 1; }; } ;; | |
3213 | esac | |
3214 | else | |
04ac69aa | 3215 | if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then |
bec39cab AC |
3216 | enable_gdbtk=yes |
3217 | else | |
3218 | enable_gdbtk=no | |
3219 | fi | |
b4e70030 | 3220 | fi; |
bec39cab AC |
3221 | # We unconditionally disable gdbtk tests on selected platforms. |
3222 | case $host_os in | |
3223 | go32* | windows*) | |
3224 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 | |
3225 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} | |
3226 | enable_gdbtk=no ;; | |
3227 | esac | |
3228 | ||
3229 | # Libunwind support. | |
20e95c23 DJ |
3230 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3231 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3232 | if test "${ac_cv_header_stdc+set}" = set; then | |
3233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3234 | else | |
3235 | cat >conftest.$ac_ext <<_ACEOF | |
3236 | /* confdefs.h. */ | |
3237 | _ACEOF | |
3238 | cat confdefs.h >>conftest.$ac_ext | |
3239 | cat >>conftest.$ac_ext <<_ACEOF | |
3240 | /* end confdefs.h. */ | |
3241 | #include <stdlib.h> | |
3242 | #include <stdarg.h> | |
3243 | #include <string.h> | |
3244 | #include <float.h> | |
3245 | ||
3246 | int | |
3247 | main () | |
3248 | { | |
3249 | ||
3250 | ; | |
3251 | return 0; | |
3252 | } | |
3253 | _ACEOF | |
3254 | rm -f conftest.$ac_objext | |
3255 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3256 | (eval $ac_compile) 2>conftest.er1 | |
3257 | ac_status=$? | |
3258 | grep -v '^ *+' conftest.er1 >conftest.err | |
3259 | rm -f conftest.er1 | |
3260 | cat conftest.err >&5 | |
3261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3262 | (exit $ac_status); } && | |
3263 | { ac_try='test -z "$ac_c_werror_flag" | |
3264 | || test ! -s conftest.err' | |
3265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3266 | (eval $ac_try) 2>&5 | |
3267 | ac_status=$? | |
3268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3269 | (exit $ac_status); }; } && | |
3270 | { ac_try='test -s conftest.$ac_objext' | |
3271 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3272 | (eval $ac_try) 2>&5 | |
3273 | ac_status=$? | |
3274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3275 | (exit $ac_status); }; }; then | |
3276 | ac_cv_header_stdc=yes | |
3277 | else | |
3278 | echo "$as_me: failed program was:" >&5 | |
3279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3280 | ||
3281 | ac_cv_header_stdc=no | |
3282 | fi | |
3283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3284 | ||
3285 | if test $ac_cv_header_stdc = yes; then | |
3286 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3287 | cat >conftest.$ac_ext <<_ACEOF | |
3288 | /* confdefs.h. */ | |
3289 | _ACEOF | |
3290 | cat confdefs.h >>conftest.$ac_ext | |
3291 | cat >>conftest.$ac_ext <<_ACEOF | |
3292 | /* end confdefs.h. */ | |
3293 | #include <string.h> | |
3294 | ||
3295 | _ACEOF | |
3296 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3297 | $EGREP "memchr" >/dev/null 2>&1; then | |
3298 | : | |
3299 | else | |
3300 | ac_cv_header_stdc=no | |
3301 | fi | |
3302 | rm -f conftest* | |
3303 | ||
3304 | fi | |
3305 | ||
3306 | if test $ac_cv_header_stdc = yes; then | |
3307 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3308 | cat >conftest.$ac_ext <<_ACEOF | |
3309 | /* confdefs.h. */ | |
3310 | _ACEOF | |
3311 | cat confdefs.h >>conftest.$ac_ext | |
3312 | cat >>conftest.$ac_ext <<_ACEOF | |
3313 | /* end confdefs.h. */ | |
3314 | #include <stdlib.h> | |
3315 | ||
3316 | _ACEOF | |
3317 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3318 | $EGREP "free" >/dev/null 2>&1; then | |
3319 | : | |
3320 | else | |
3321 | ac_cv_header_stdc=no | |
3322 | fi | |
3323 | rm -f conftest* | |
3324 | ||
3325 | fi | |
3326 | ||
3327 | if test $ac_cv_header_stdc = yes; then | |
3328 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3329 | if test "$cross_compiling" = yes; then | |
3330 | : | |
3331 | else | |
3332 | cat >conftest.$ac_ext <<_ACEOF | |
3333 | /* confdefs.h. */ | |
3334 | _ACEOF | |
3335 | cat confdefs.h >>conftest.$ac_ext | |
3336 | cat >>conftest.$ac_ext <<_ACEOF | |
3337 | /* end confdefs.h. */ | |
3338 | #include <ctype.h> | |
3339 | #if ((' ' & 0x0FF) == 0x020) | |
3340 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3341 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3342 | #else | |
3343 | # define ISLOWER(c) \ | |
3344 | (('a' <= (c) && (c) <= 'i') \ | |
3345 | || ('j' <= (c) && (c) <= 'r') \ | |
3346 | || ('s' <= (c) && (c) <= 'z')) | |
3347 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3348 | #endif | |
3349 | ||
3350 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3351 | int | |
3352 | main () | |
3353 | { | |
3354 | int i; | |
3355 | for (i = 0; i < 256; i++) | |
3356 | if (XOR (islower (i), ISLOWER (i)) | |
3357 | || toupper (i) != TOUPPER (i)) | |
3358 | exit(2); | |
3359 | exit (0); | |
3360 | } | |
3361 | _ACEOF | |
3362 | rm -f conftest$ac_exeext | |
3363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3364 | (eval $ac_link) 2>&5 | |
3365 | ac_status=$? | |
3366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3367 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3369 | (eval $ac_try) 2>&5 | |
3370 | ac_status=$? | |
3371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3372 | (exit $ac_status); }; }; then | |
3373 | : | |
3374 | else | |
3375 | echo "$as_me: program exited with status $ac_status" >&5 | |
3376 | echo "$as_me: failed program was:" >&5 | |
3377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3378 | ||
3379 | ( exit $ac_status ) | |
3380 | ac_cv_header_stdc=no | |
3381 | fi | |
3382 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3383 | fi | |
3384 | fi | |
3385 | fi | |
3386 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3387 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3388 | if test $ac_cv_header_stdc = yes; then | |
3389 | ||
3390 | cat >>confdefs.h <<\_ACEOF | |
3391 | #define STDC_HEADERS 1 | |
3392 | _ACEOF | |
3393 | ||
3394 | fi | |
3395 | ||
3396 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3397 | ||
3398 | ||
3399 | ||
3400 | ||
3401 | ||
3402 | ||
3403 | ||
3404 | ||
3405 | ||
3406 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3407 | inttypes.h stdint.h unistd.h | |
3408 | do | |
3409 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3410 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3411 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3412 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3414 | else | |
3415 | cat >conftest.$ac_ext <<_ACEOF | |
3416 | /* confdefs.h. */ | |
3417 | _ACEOF | |
3418 | cat confdefs.h >>conftest.$ac_ext | |
3419 | cat >>conftest.$ac_ext <<_ACEOF | |
3420 | /* end confdefs.h. */ | |
3421 | $ac_includes_default | |
3422 | ||
3423 | #include <$ac_header> | |
3424 | _ACEOF | |
3425 | rm -f conftest.$ac_objext | |
3426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3427 | (eval $ac_compile) 2>conftest.er1 | |
3428 | ac_status=$? | |
3429 | grep -v '^ *+' conftest.er1 >conftest.err | |
3430 | rm -f conftest.er1 | |
3431 | cat conftest.err >&5 | |
3432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3433 | (exit $ac_status); } && | |
3434 | { ac_try='test -z "$ac_c_werror_flag" | |
3435 | || test ! -s conftest.err' | |
3436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3437 | (eval $ac_try) 2>&5 | |
3438 | ac_status=$? | |
3439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3440 | (exit $ac_status); }; } && | |
3441 | { ac_try='test -s conftest.$ac_objext' | |
3442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3443 | (eval $ac_try) 2>&5 | |
3444 | ac_status=$? | |
3445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3446 | (exit $ac_status); }; }; then | |
3447 | eval "$as_ac_Header=yes" | |
3448 | else | |
3449 | echo "$as_me: failed program was:" >&5 | |
3450 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3451 | ||
3452 | eval "$as_ac_Header=no" | |
3453 | fi | |
3454 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3455 | fi | |
3456 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3457 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3458 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3459 | cat >>confdefs.h <<_ACEOF | |
3460 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3461 | _ACEOF | |
3462 | ||
3463 | fi | |
3464 | ||
3465 | done | |
3466 | ||
3467 | ||
bec39cab | 3468 | |
b4e70030 | 3469 | # Check whether --with-libunwind or --without-libunwind was given. |
bec39cab | 3470 | if test "${with_libunwind+set}" = set; then |
b4e70030 JB |
3471 | withval="$with_libunwind" |
3472 | case "${withval}" in | |
bec39cab AC |
3473 | yes) enable_libunwind=yes ;; |
3474 | no) enable_libunwind=no ;; | |
3475 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 | |
3476 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} | |
3477 | { (exit 1); exit 1; }; } ;; | |
3478 | esac | |
3479 | else | |
3480 | ||
3481 | ||
3482 | for ac_header in libunwind.h | |
3483 | do | |
3484 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3485 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3486 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3487 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3488 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3489 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3490 | fi | |
b4e70030 JB |
3491 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3492 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3493 | else |
3494 | # Is the header compilable? | |
b4e70030 JB |
3495 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3496 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3497 | cat >conftest.$ac_ext <<_ACEOF |
3498 | /* confdefs.h. */ | |
3499 | _ACEOF | |
3500 | cat confdefs.h >>conftest.$ac_ext | |
3501 | cat >>conftest.$ac_ext <<_ACEOF | |
3502 | /* end confdefs.h. */ | |
3503 | $ac_includes_default | |
3504 | #include <$ac_header> | |
3505 | _ACEOF | |
3506 | rm -f conftest.$ac_objext | |
3507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3508 | (eval $ac_compile) 2>conftest.er1 | |
3509 | ac_status=$? | |
3510 | grep -v '^ *+' conftest.er1 >conftest.err | |
3511 | rm -f conftest.er1 | |
3512 | cat conftest.err >&5 | |
3513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3514 | (exit $ac_status); } && | |
b4e70030 JB |
3515 | { ac_try='test -z "$ac_c_werror_flag" |
3516 | || test ! -s conftest.err' | |
bec39cab AC |
3517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3518 | (eval $ac_try) 2>&5 | |
3519 | ac_status=$? | |
3520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3521 | (exit $ac_status); }; } && | |
3522 | { ac_try='test -s conftest.$ac_objext' | |
3523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3524 | (eval $ac_try) 2>&5 | |
3525 | ac_status=$? | |
3526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3527 | (exit $ac_status); }; }; then | |
3528 | ac_header_compiler=yes | |
3529 | else | |
3530 | echo "$as_me: failed program was:" >&5 | |
3531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3532 | ||
b4e70030 | 3533 | ac_header_compiler=no |
bec39cab AC |
3534 | fi |
3535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3536 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3537 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3538 | |
3539 | # Is the header present? | |
b4e70030 JB |
3540 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3541 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3542 | cat >conftest.$ac_ext <<_ACEOF |
3543 | /* confdefs.h. */ | |
3544 | _ACEOF | |
3545 | cat confdefs.h >>conftest.$ac_ext | |
3546 | cat >>conftest.$ac_ext <<_ACEOF | |
3547 | /* end confdefs.h. */ | |
3548 | #include <$ac_header> | |
3549 | _ACEOF | |
3550 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3551 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3552 | ac_status=$? | |
3553 | grep -v '^ *+' conftest.er1 >conftest.err | |
3554 | rm -f conftest.er1 | |
3555 | cat conftest.err >&5 | |
3556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3557 | (exit $ac_status); } >/dev/null; then | |
3558 | if test -s conftest.err; then | |
3559 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3560 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3561 | else | |
3562 | ac_cpp_err= | |
3563 | fi | |
3564 | else | |
3565 | ac_cpp_err=yes | |
3566 | fi | |
3567 | if test -z "$ac_cpp_err"; then | |
3568 | ac_header_preproc=yes | |
3569 | else | |
3570 | echo "$as_me: failed program was:" >&5 | |
3571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3572 | ||
3573 | ac_header_preproc=no | |
3574 | fi | |
3575 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
3576 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3577 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3578 | |
3579 | # So? What about this header? | |
3580 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3581 | yes:no: ) | |
3582 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3583 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3584 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3585 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3586 | ac_header_preproc=yes | |
3587 | ;; | |
3588 | no:yes:* ) | |
3589 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3590 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3591 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3592 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3593 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3594 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3595 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3596 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3597 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3598 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3599 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3600 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
3601 | ( |
3602 | cat <<\_ASBOX | |
3603 | ## ------------------------------------------ ## | |
3604 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3605 | ## ------------------------------------------ ## | |
3606 | _ASBOX | |
3607 | ) | | |
3608 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3609 | ;; |
3610 | esac | |
b4e70030 JB |
3611 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3612 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3613 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3615 | else | |
3616 | eval "$as_ac_Header=\$ac_header_preproc" | |
3617 | fi | |
b4e70030 JB |
3618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3619 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3620 | |
3621 | fi | |
3622 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3623 | cat >>confdefs.h <<_ACEOF | |
3624 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3625 | _ACEOF | |
3626 | ||
3627 | fi | |
3628 | ||
3629 | done | |
3630 | ||
3631 | ||
3632 | for ac_header in libunwind-ia64.h | |
3633 | do | |
3634 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3635 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3636 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3637 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3638 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3640 | fi | |
b4e70030 JB |
3641 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3642 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3643 | else |
3644 | # Is the header compilable? | |
b4e70030 JB |
3645 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3646 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3647 | cat >conftest.$ac_ext <<_ACEOF |
3648 | /* confdefs.h. */ | |
3649 | _ACEOF | |
3650 | cat confdefs.h >>conftest.$ac_ext | |
3651 | cat >>conftest.$ac_ext <<_ACEOF | |
3652 | /* end confdefs.h. */ | |
3653 | $ac_includes_default | |
3654 | #include <$ac_header> | |
3655 | _ACEOF | |
3656 | rm -f conftest.$ac_objext | |
3657 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3658 | (eval $ac_compile) 2>conftest.er1 | |
3659 | ac_status=$? | |
3660 | grep -v '^ *+' conftest.er1 >conftest.err | |
3661 | rm -f conftest.er1 | |
3662 | cat conftest.err >&5 | |
3663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3664 | (exit $ac_status); } && | |
b4e70030 JB |
3665 | { ac_try='test -z "$ac_c_werror_flag" |
3666 | || test ! -s conftest.err' | |
bec39cab AC |
3667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3668 | (eval $ac_try) 2>&5 | |
3669 | ac_status=$? | |
3670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3671 | (exit $ac_status); }; } && | |
3672 | { ac_try='test -s conftest.$ac_objext' | |
3673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3674 | (eval $ac_try) 2>&5 | |
3675 | ac_status=$? | |
3676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3677 | (exit $ac_status); }; }; then | |
3678 | ac_header_compiler=yes | |
3679 | else | |
3680 | echo "$as_me: failed program was:" >&5 | |
3681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3682 | ||
b4e70030 | 3683 | ac_header_compiler=no |
bec39cab AC |
3684 | fi |
3685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3686 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3687 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3688 | |
3689 | # Is the header present? | |
b4e70030 JB |
3690 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3691 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3692 | cat >conftest.$ac_ext <<_ACEOF |
3693 | /* confdefs.h. */ | |
3694 | _ACEOF | |
3695 | cat confdefs.h >>conftest.$ac_ext | |
3696 | cat >>conftest.$ac_ext <<_ACEOF | |
3697 | /* end confdefs.h. */ | |
3698 | #include <$ac_header> | |
3699 | _ACEOF | |
3700 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3701 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3702 | ac_status=$? | |
3703 | grep -v '^ *+' conftest.er1 >conftest.err | |
3704 | rm -f conftest.er1 | |
3705 | cat conftest.err >&5 | |
3706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3707 | (exit $ac_status); } >/dev/null; then | |
3708 | if test -s conftest.err; then | |
3709 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3710 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3711 | else | |
3712 | ac_cpp_err= | |
3713 | fi | |
3714 | else | |
3715 | ac_cpp_err=yes | |
3716 | fi | |
3717 | if test -z "$ac_cpp_err"; then | |
3718 | ac_header_preproc=yes | |
3719 | else | |
3720 | echo "$as_me: failed program was:" >&5 | |
3721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3722 | ||
3723 | ac_header_preproc=no | |
3724 | fi | |
3725 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
3726 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3727 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3728 | |
3729 | # So? What about this header? | |
3730 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3731 | yes:no: ) | |
3732 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3733 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3734 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3735 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3736 | ac_header_preproc=yes | |
3737 | ;; | |
3738 | no:yes:* ) | |
3739 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3740 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3741 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3742 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3743 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3744 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3745 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3746 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3747 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3748 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3749 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3750 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
3751 | ( |
3752 | cat <<\_ASBOX | |
3753 | ## ------------------------------------------ ## | |
3754 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3755 | ## ------------------------------------------ ## | |
3756 | _ASBOX | |
3757 | ) | | |
3758 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3759 | ;; |
3760 | esac | |
b4e70030 JB |
3761 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3762 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3763 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3765 | else | |
3766 | eval "$as_ac_Header=\$ac_header_preproc" | |
3767 | fi | |
b4e70030 JB |
3768 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3769 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3770 | |
3771 | fi | |
3772 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3773 | cat >>confdefs.h <<_ACEOF | |
3774 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3775 | _ACEOF | |
3776 | ||
3777 | fi | |
3778 | ||
3779 | done | |
3780 | ||
3781 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then | |
3782 | enable_libunwind=yes; | |
3783 | fi | |
3784 | ||
b4e70030 | 3785 | fi; |
bec39cab AC |
3786 | |
3787 | if test x"$enable_libunwind" = xyes; then | |
3788 | ||
3789 | for ac_header in libunwind.h | |
3790 | do | |
3791 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3792 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3793 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3794 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3795 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3797 | fi | |
b4e70030 JB |
3798 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3799 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3800 | else |
3801 | # Is the header compilable? | |
b4e70030 JB |
3802 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3803 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3804 | cat >conftest.$ac_ext <<_ACEOF |
3805 | /* confdefs.h. */ | |
3806 | _ACEOF | |
3807 | cat confdefs.h >>conftest.$ac_ext | |
3808 | cat >>conftest.$ac_ext <<_ACEOF | |
3809 | /* end confdefs.h. */ | |
3810 | $ac_includes_default | |
3811 | #include <$ac_header> | |
3812 | _ACEOF | |
3813 | rm -f conftest.$ac_objext | |
3814 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3815 | (eval $ac_compile) 2>conftest.er1 | |
3816 | ac_status=$? | |
3817 | grep -v '^ *+' conftest.er1 >conftest.err | |
3818 | rm -f conftest.er1 | |
3819 | cat conftest.err >&5 | |
3820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3821 | (exit $ac_status); } && | |
b4e70030 JB |
3822 | { ac_try='test -z "$ac_c_werror_flag" |
3823 | || test ! -s conftest.err' | |
bec39cab AC |
3824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3825 | (eval $ac_try) 2>&5 | |
3826 | ac_status=$? | |
3827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3828 | (exit $ac_status); }; } && | |
3829 | { ac_try='test -s conftest.$ac_objext' | |
3830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3831 | (eval $ac_try) 2>&5 | |
3832 | ac_status=$? | |
3833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3834 | (exit $ac_status); }; }; then | |
3835 | ac_header_compiler=yes | |
3836 | else | |
3837 | echo "$as_me: failed program was:" >&5 | |
3838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3839 | ||
b4e70030 | 3840 | ac_header_compiler=no |
bec39cab AC |
3841 | fi |
3842 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3843 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3844 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3845 | |
3846 | # Is the header present? | |
b4e70030 JB |
3847 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3848 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3849 | cat >conftest.$ac_ext <<_ACEOF |
3850 | /* confdefs.h. */ | |
3851 | _ACEOF | |
3852 | cat confdefs.h >>conftest.$ac_ext | |
3853 | cat >>conftest.$ac_ext <<_ACEOF | |
3854 | /* end confdefs.h. */ | |
3855 | #include <$ac_header> | |
3856 | _ACEOF | |
3857 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3858 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3859 | ac_status=$? | |
3860 | grep -v '^ *+' conftest.er1 >conftest.err | |
3861 | rm -f conftest.er1 | |
3862 | cat conftest.err >&5 | |
3863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3864 | (exit $ac_status); } >/dev/null; then | |
3865 | if test -s conftest.err; then | |
3866 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3867 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3868 | else | |
3869 | ac_cpp_err= | |
3870 | fi | |
3871 | else | |
3872 | ac_cpp_err=yes | |
3873 | fi | |
3874 | if test -z "$ac_cpp_err"; then | |
3875 | ac_header_preproc=yes | |
3876 | else | |
3877 | echo "$as_me: failed program was:" >&5 | |
3878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3879 | ||
3880 | ac_header_preproc=no | |
3881 | fi | |
3882 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
3883 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3884 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3885 | |
3886 | # So? What about this header? | |
3887 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3888 | yes:no: ) | |
3889 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3890 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3891 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3892 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3893 | ac_header_preproc=yes | |
3894 | ;; | |
3895 | no:yes:* ) | |
3896 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3897 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3898 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3899 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3900 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3901 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3902 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3903 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3904 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3905 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3906 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3907 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
3908 | ( |
3909 | cat <<\_ASBOX | |
3910 | ## ------------------------------------------ ## | |
3911 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3912 | ## ------------------------------------------ ## | |
3913 | _ASBOX | |
3914 | ) | | |
3915 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3916 | ;; |
3917 | esac | |
b4e70030 JB |
3918 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3919 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3920 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3921 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3922 | else | |
3923 | eval "$as_ac_Header=\$ac_header_preproc" | |
3924 | fi | |
b4e70030 JB |
3925 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3926 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3927 | |
3928 | fi | |
3929 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3930 | cat >>confdefs.h <<_ACEOF | |
3931 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3932 | _ACEOF | |
3933 | ||
3934 | fi | |
3935 | ||
3936 | done | |
3937 | ||
3938 | ||
3939 | for ac_header in libunwind-ia64.h | |
3940 | do | |
3941 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3942 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3943 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3944 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3945 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3947 | fi | |
b4e70030 JB |
3948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3949 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3950 | else |
3951 | # Is the header compilable? | |
b4e70030 JB |
3952 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3953 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3954 | cat >conftest.$ac_ext <<_ACEOF |
3955 | /* confdefs.h. */ | |
3956 | _ACEOF | |
3957 | cat confdefs.h >>conftest.$ac_ext | |
3958 | cat >>conftest.$ac_ext <<_ACEOF | |
3959 | /* end confdefs.h. */ | |
3960 | $ac_includes_default | |
3961 | #include <$ac_header> | |
3962 | _ACEOF | |
3963 | rm -f conftest.$ac_objext | |
3964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3965 | (eval $ac_compile) 2>conftest.er1 | |
3966 | ac_status=$? | |
3967 | grep -v '^ *+' conftest.er1 >conftest.err | |
3968 | rm -f conftest.er1 | |
3969 | cat conftest.err >&5 | |
3970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3971 | (exit $ac_status); } && | |
b4e70030 JB |
3972 | { ac_try='test -z "$ac_c_werror_flag" |
3973 | || test ! -s conftest.err' | |
bec39cab AC |
3974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3975 | (eval $ac_try) 2>&5 | |
3976 | ac_status=$? | |
3977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3978 | (exit $ac_status); }; } && | |
3979 | { ac_try='test -s conftest.$ac_objext' | |
3980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3981 | (eval $ac_try) 2>&5 | |
3982 | ac_status=$? | |
3983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3984 | (exit $ac_status); }; }; then | |
3985 | ac_header_compiler=yes | |
3986 | else | |
3987 | echo "$as_me: failed program was:" >&5 | |
3988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3989 | ||
b4e70030 | 3990 | ac_header_compiler=no |
bec39cab AC |
3991 | fi |
3992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3993 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3994 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3995 | |
3996 | # Is the header present? | |
b4e70030 JB |
3997 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3998 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3999 | cat >conftest.$ac_ext <<_ACEOF |
4000 | /* confdefs.h. */ | |
4001 | _ACEOF | |
4002 | cat confdefs.h >>conftest.$ac_ext | |
4003 | cat >>conftest.$ac_ext <<_ACEOF | |
4004 | /* end confdefs.h. */ | |
4005 | #include <$ac_header> | |
4006 | _ACEOF | |
4007 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4008 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4009 | ac_status=$? | |
4010 | grep -v '^ *+' conftest.er1 >conftest.err | |
4011 | rm -f conftest.er1 | |
4012 | cat conftest.err >&5 | |
4013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4014 | (exit $ac_status); } >/dev/null; then | |
4015 | if test -s conftest.err; then | |
4016 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4017 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4018 | else | |
4019 | ac_cpp_err= | |
4020 | fi | |
4021 | else | |
4022 | ac_cpp_err=yes | |
4023 | fi | |
4024 | if test -z "$ac_cpp_err"; then | |
4025 | ac_header_preproc=yes | |
4026 | else | |
4027 | echo "$as_me: failed program was:" >&5 | |
4028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4029 | ||
4030 | ac_header_preproc=no | |
4031 | fi | |
4032 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
4033 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4034 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
4035 | |
4036 | # So? What about this header? | |
4037 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4038 | yes:no: ) | |
4039 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4040 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4041 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4042 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4043 | ac_header_preproc=yes | |
4044 | ;; | |
4045 | no:yes:* ) | |
4046 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4047 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4048 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4049 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4050 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4051 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4052 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4053 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4054 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4055 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4056 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4057 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
4058 | ( |
4059 | cat <<\_ASBOX | |
4060 | ## ------------------------------------------ ## | |
4061 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4062 | ## ------------------------------------------ ## | |
4063 | _ASBOX | |
4064 | ) | | |
4065 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
4066 | ;; |
4067 | esac | |
b4e70030 JB |
4068 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4069 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4070 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
4071 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4072 | else | |
4073 | eval "$as_ac_Header=\$ac_header_preproc" | |
4074 | fi | |
b4e70030 JB |
4075 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4076 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
4077 | |
4078 | fi | |
4079 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4080 | cat >>confdefs.h <<_ACEOF | |
4081 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4082 | _ACEOF | |
4083 | ||
4084 | fi | |
4085 | ||
4086 | done | |
4087 | ||
60ca704f SE |
4088 | |
4089 | cat >>confdefs.h <<\_ACEOF | |
bec39cab AC |
4090 | #define HAVE_LIBUNWIND 1 |
4091 | _ACEOF | |
4092 | ||
4093 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" | |
4094 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" | |
4095 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" | |
4096 | fi | |
4097 | ||
4098 | # Profiling support. | |
b4e70030 | 4099 | # Check whether --enable-profiling or --disable-profiling was given. |
bec39cab | 4100 | if test "${enable_profiling+set}" = set; then |
b4e70030 JB |
4101 | enableval="$enable_profiling" |
4102 | case $enableval in | |
bec39cab AC |
4103 | yes | no) |
4104 | ;; | |
4105 | *) | |
4106 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 | |
4107 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} | |
4108 | { (exit 1); exit 1; }; } ;; | |
4109 | esac | |
4110 | else | |
4111 | enable_profiling=no | |
b4e70030 | 4112 | fi; |
bec39cab AC |
4113 | |
4114 | ||
4115 | ||
4116 | for ac_func in monstartup _mcleanup | |
4117 | do | |
4118 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
4119 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4120 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4121 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
4122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4123 | else | |
4124 | cat >conftest.$ac_ext <<_ACEOF | |
4125 | /* confdefs.h. */ | |
4126 | _ACEOF | |
4127 | cat confdefs.h >>conftest.$ac_ext | |
4128 | cat >>conftest.$ac_ext <<_ACEOF | |
4129 | /* end confdefs.h. */ | |
4130 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4131 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4132 | #define $ac_func innocuous_$ac_func | |
4133 | ||
4134 | /* System header to define __stub macros and hopefully few prototypes, | |
4135 | which can conflict with char $ac_func (); below. | |
4136 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4137 | <limits.h> exists even on freestanding compilers. */ | |
4138 | ||
4139 | #ifdef __STDC__ | |
4140 | # include <limits.h> | |
4141 | #else | |
4142 | # include <assert.h> | |
4143 | #endif | |
4144 | ||
4145 | #undef $ac_func | |
4146 | ||
b4e70030 | 4147 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
4148 | #ifdef __cplusplus |
4149 | extern "C" | |
b4e70030 | 4150 | { |
bec39cab | 4151 | #endif |
b4e70030 JB |
4152 | /* We use char because int might match the return type of a gcc2 |
4153 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
4154 | char $ac_func (); |
4155 | /* The GNU C library defines this for functions which it implements | |
4156 | to always fail with ENOSYS. Some functions are actually named | |
4157 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 4158 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bec39cab | 4159 | choke me |
b4e70030 JB |
4160 | #else |
4161 | char (*f) () = $ac_func; | |
4162 | #endif | |
4163 | #ifdef __cplusplus | |
4164 | } | |
bec39cab AC |
4165 | #endif |
4166 | ||
4167 | int | |
4168 | main () | |
4169 | { | |
b4e70030 | 4170 | return f != $ac_func; |
bec39cab AC |
4171 | ; |
4172 | return 0; | |
4173 | } | |
4174 | _ACEOF | |
4175 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4177 | (eval $ac_link) 2>conftest.er1 | |
4178 | ac_status=$? | |
4179 | grep -v '^ *+' conftest.er1 >conftest.err | |
4180 | rm -f conftest.er1 | |
4181 | cat conftest.err >&5 | |
4182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4183 | (exit $ac_status); } && | |
b4e70030 JB |
4184 | { ac_try='test -z "$ac_c_werror_flag" |
4185 | || test ! -s conftest.err' | |
bec39cab AC |
4186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4187 | (eval $ac_try) 2>&5 | |
4188 | ac_status=$? | |
4189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4190 | (exit $ac_status); }; } && | |
4191 | { ac_try='test -s conftest$ac_exeext' | |
4192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4193 | (eval $ac_try) 2>&5 | |
4194 | ac_status=$? | |
4195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4196 | (exit $ac_status); }; }; then | |
4197 | eval "$as_ac_var=yes" | |
4198 | else | |
4199 | echo "$as_me: failed program was:" >&5 | |
4200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4201 | ||
b4e70030 | 4202 | eval "$as_ac_var=no" |
bec39cab AC |
4203 | fi |
4204 | rm -f conftest.err conftest.$ac_objext \ | |
4205 | conftest$ac_exeext conftest.$ac_ext | |
4206 | fi | |
b4e70030 JB |
4207 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4208 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
4209 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
4210 | cat >>confdefs.h <<_ACEOF | |
4211 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4212 | _ACEOF | |
4213 | ||
4214 | fi | |
4215 | done | |
4216 | ||
b4e70030 JB |
4217 | echo "$as_me:$LINENO: checking for _etext" >&5 |
4218 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 | |
bec39cab AC |
4219 | if test "${ac_cv_var__etext+set}" = set; then |
4220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4221 | else | |
4222 | cat >conftest.$ac_ext <<_ACEOF | |
4223 | /* confdefs.h. */ | |
4224 | _ACEOF | |
4225 | cat confdefs.h >>conftest.$ac_ext | |
4226 | cat >>conftest.$ac_ext <<_ACEOF | |
4227 | /* end confdefs.h. */ | |
4228 | #include <stdlib.h> | |
4229 | extern char _etext; | |
4230 | ||
4231 | int | |
4232 | main () | |
4233 | { | |
4234 | free (&_etext); | |
4235 | ; | |
4236 | return 0; | |
4237 | } | |
4238 | _ACEOF | |
4239 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4241 | (eval $ac_link) 2>conftest.er1 | |
4242 | ac_status=$? | |
4243 | grep -v '^ *+' conftest.er1 >conftest.err | |
4244 | rm -f conftest.er1 | |
4245 | cat conftest.err >&5 | |
4246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4247 | (exit $ac_status); } && | |
b4e70030 JB |
4248 | { ac_try='test -z "$ac_c_werror_flag" |
4249 | || test ! -s conftest.err' | |
bec39cab AC |
4250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4251 | (eval $ac_try) 2>&5 | |
4252 | ac_status=$? | |
4253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4254 | (exit $ac_status); }; } && | |
4255 | { ac_try='test -s conftest$ac_exeext' | |
4256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4257 | (eval $ac_try) 2>&5 | |
4258 | ac_status=$? | |
4259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4260 | (exit $ac_status); }; }; then | |
4261 | ac_cv_var__etext=yes | |
4262 | else | |
4263 | echo "$as_me: failed program was:" >&5 | |
4264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4265 | ||
b4e70030 | 4266 | ac_cv_var__etext=no |
bec39cab AC |
4267 | fi |
4268 | rm -f conftest.err conftest.$ac_objext \ | |
4269 | conftest$ac_exeext conftest.$ac_ext | |
4270 | fi | |
b4e70030 JB |
4271 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 |
4272 | echo "${ECHO_T}$ac_cv_var__etext" >&6 | |
bec39cab AC |
4273 | if test $ac_cv_var__etext = yes; then |
4274 | ||
4275 | cat >>confdefs.h <<\_ACEOF | |
4276 | #define HAVE__ETEXT 1 | |
4277 | _ACEOF | |
4278 | ||
4279 | fi | |
4280 | if test "$enable_profiling" = yes ; then | |
4281 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then | |
4282 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 | |
4283 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} | |
4284 | { (exit 1); exit 1; }; } | |
4285 | fi | |
4286 | PROFILE_CFLAGS=-pg | |
4287 | OLD_CFLAGS="$CFLAGS" | |
4288 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" | |
4289 | ||
b4e70030 JB |
4290 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 |
4291 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 | |
bec39cab AC |
4292 | if test "${ac_cv_cc_supports_pg+set}" = set; then |
4293 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4294 | else |
bec39cab AC |
4295 | cat >conftest.$ac_ext <<_ACEOF |
4296 | /* confdefs.h. */ | |
4297 | _ACEOF | |
4298 | cat confdefs.h >>conftest.$ac_ext | |
4299 | cat >>conftest.$ac_ext <<_ACEOF | |
4300 | /* end confdefs.h. */ | |
4301 | ||
4302 | int | |
4303 | main () | |
4304 | { | |
4305 | int x; | |
4306 | ; | |
4307 | return 0; | |
4308 | } | |
4309 | _ACEOF | |
4310 | rm -f conftest.$ac_objext | |
4311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4312 | (eval $ac_compile) 2>conftest.er1 | |
4313 | ac_status=$? | |
4314 | grep -v '^ *+' conftest.er1 >conftest.err | |
4315 | rm -f conftest.er1 | |
4316 | cat conftest.err >&5 | |
4317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4318 | (exit $ac_status); } && | |
b4e70030 JB |
4319 | { ac_try='test -z "$ac_c_werror_flag" |
4320 | || test ! -s conftest.err' | |
bec39cab AC |
4321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4322 | (eval $ac_try) 2>&5 | |
4323 | ac_status=$? | |
4324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4325 | (exit $ac_status); }; } && | |
4326 | { ac_try='test -s conftest.$ac_objext' | |
4327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4328 | (eval $ac_try) 2>&5 | |
4329 | ac_status=$? | |
4330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4331 | (exit $ac_status); }; }; then | |
4332 | ac_cv_cc_supports_pg=yes | |
4333 | else | |
4334 | echo "$as_me: failed program was:" >&5 | |
4335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4336 | ||
b4e70030 | 4337 | ac_cv_cc_supports_pg=no |
bec39cab AC |
4338 | fi |
4339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4340 | fi | |
b4e70030 JB |
4341 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 |
4342 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 | |
bec39cab AC |
4343 | |
4344 | if test $ac_cv_cc_supports_pg = no; then | |
4345 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 | |
4346 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} | |
4347 | { (exit 1); exit 1; }; } | |
4348 | fi | |
4349 | ||
4350 | CFLAGS="$OLD_CFLAGS" | |
4351 | fi | |
4352 | ||
4353 | # --------------------- # | |
4354 | # Checks for programs. # | |
4355 | # --------------------- # | |
4356 | ||
4357 | for ac_prog in gawk mawk nawk awk | |
4358 | do | |
4359 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4360 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
4361 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4362 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4363 | if test "${ac_cv_prog_AWK+set}" = set; then |
4364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4365 | else | |
4366 | if test -n "$AWK"; then | |
4367 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4368 | else | |
4369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4370 | for as_dir in $PATH | |
4371 | do | |
4372 | IFS=$as_save_IFS | |
4373 | test -z "$as_dir" && as_dir=. | |
4374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4375 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4376 | ac_cv_prog_AWK="$ac_prog" |
4377 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4378 | break 2 | |
4379 | fi | |
4380 | done | |
4381 | done | |
4382 | ||
4383 | fi | |
4384 | fi | |
4385 | AWK=$ac_cv_prog_AWK | |
4386 | if test -n "$AWK"; then | |
b4e70030 JB |
4387 | echo "$as_me:$LINENO: result: $AWK" >&5 |
4388 | echo "${ECHO_T}$AWK" >&6 | |
bec39cab | 4389 | else |
b4e70030 JB |
4390 | echo "$as_me:$LINENO: result: no" >&5 |
4391 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4392 | fi |
4393 | ||
4394 | test -n "$AWK" && break | |
4395 | done | |
4396 | ||
4397 | # Find a good install program. We prefer a C program (faster), | |
4398 | # so one script is as good as another. But avoid the broken or | |
4399 | # incompatible versions: | |
4400 | # SysV /etc/install, /usr/sbin/install | |
4401 | # SunOS /usr/etc/install | |
4402 | # IRIX /sbin/install | |
4403 | # AIX /bin/install | |
4404 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4405 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4406 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4407 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4408 | # OS/2's system install, which has a completely different semantic | |
4409 | # ./install, which can be erroneously created by make from ./install.sh. | |
b4e70030 JB |
4410 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4411 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
bec39cab AC |
4412 | if test -z "$INSTALL"; then |
4413 | if test "${ac_cv_path_install+set}" = set; then | |
4414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4415 | else | |
4416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4417 | for as_dir in $PATH | |
4418 | do | |
4419 | IFS=$as_save_IFS | |
4420 | test -z "$as_dir" && as_dir=. | |
4421 | # Account for people who put trailing slashes in PATH elements. | |
4422 | case $as_dir/ in | |
4423 | ./ | .// | /cC/* | \ | |
4424 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4425 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4426 | /usr/ucb/* ) ;; | |
c906108c | 4427 | *) |
bec39cab AC |
4428 | # OSF1 and SCO ODT 3.0 have their own names for install. |
4429 | # Don't use installbsd from OSF since it installs stuff as root | |
4430 | # by default. | |
4431 | for ac_prog in ginstall scoinst install; do | |
4432 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4433 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
bec39cab AC |
4434 | if test $ac_prog = install && |
4435 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4436 | # AIX install. It has an incompatible calling convention. | |
4437 | : | |
4438 | elif test $ac_prog = install && | |
4439 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4440 | # program-specific install script used by HP pwplus--don't use. | |
4441 | : | |
4442 | else | |
4443 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4444 | break 3 | |
4445 | fi | |
4446 | fi | |
4447 | done | |
4448 | done | |
4449 | ;; | |
c906108c | 4450 | esac |
bec39cab AC |
4451 | done |
4452 | ||
4453 | ||
4454 | fi | |
4455 | if test "${ac_cv_path_install+set}" = set; then | |
4456 | INSTALL=$ac_cv_path_install | |
4457 | else | |
b4e70030 JB |
4458 | # As a last resort, use the slow shell script. We don't cache a |
4459 | # path for INSTALL within a source directory, because that will | |
bec39cab | 4460 | # break other packages using the cache if that directory is |
b4e70030 | 4461 | # removed, or if the path is relative. |
bec39cab AC |
4462 | INSTALL=$ac_install_sh |
4463 | fi | |
4464 | fi | |
b4e70030 JB |
4465 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4466 | echo "${ECHO_T}$INSTALL" >&6 | |
bec39cab AC |
4467 | |
4468 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4469 | # It thinks the first close brace ends the variable substitution. | |
4470 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4471 | ||
4472 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4473 | ||
4474 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4475 | ||
b4e70030 JB |
4476 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4477 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
bec39cab AC |
4478 | LN_S=$as_ln_s |
4479 | if test "$LN_S" = "ln -s"; then | |
b4e70030 JB |
4480 | echo "$as_me:$LINENO: result: yes" >&5 |
4481 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 4482 | else |
b4e70030 JB |
4483 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4484 | echo "${ECHO_T}no, using $LN_S" >&6 | |
bec39cab AC |
4485 | fi |
4486 | ||
4487 | if test -n "$ac_tool_prefix"; then | |
4488 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4489 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b4e70030 JB |
4490 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4491 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4492 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
4493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4494 | else | |
4495 | if test -n "$RANLIB"; then | |
4496 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4497 | else | |
4498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4499 | for as_dir in $PATH | |
4500 | do | |
4501 | IFS=$as_save_IFS | |
4502 | test -z "$as_dir" && as_dir=. | |
4503 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4504 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4505 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
4506 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4507 | break 2 | |
4508 | fi | |
4509 | done | |
4510 | done | |
4511 | ||
4512 | fi | |
4513 | fi | |
4514 | RANLIB=$ac_cv_prog_RANLIB | |
4515 | if test -n "$RANLIB"; then | |
b4e70030 JB |
4516 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4517 | echo "${ECHO_T}$RANLIB" >&6 | |
bec39cab | 4518 | else |
b4e70030 JB |
4519 | echo "$as_me:$LINENO: result: no" >&5 |
4520 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4521 | fi |
4522 | ||
4523 | fi | |
4524 | if test -z "$ac_cv_prog_RANLIB"; then | |
4525 | ac_ct_RANLIB=$RANLIB | |
4526 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4527 | set dummy ranlib; ac_word=$2 | |
b4e70030 JB |
4528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4530 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
4531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4532 | else | |
4533 | if test -n "$ac_ct_RANLIB"; then | |
4534 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4535 | else | |
4536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4537 | for as_dir in $PATH | |
4538 | do | |
4539 | IFS=$as_save_IFS | |
4540 | test -z "$as_dir" && as_dir=. | |
4541 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4542 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4543 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
4544 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4545 | break 2 | |
4546 | fi | |
4547 | done | |
4548 | done | |
4549 | ||
b4e70030 | 4550 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
bec39cab AC |
4551 | fi |
4552 | fi | |
4553 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4554 | if test -n "$ac_ct_RANLIB"; then | |
b4e70030 JB |
4555 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4556 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
bec39cab | 4557 | else |
b4e70030 JB |
4558 | echo "$as_me:$LINENO: result: no" >&5 |
4559 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4560 | fi |
4561 | ||
b4e70030 | 4562 | RANLIB=$ac_ct_RANLIB |
bec39cab AC |
4563 | else |
4564 | RANLIB="$ac_cv_prog_RANLIB" | |
4565 | fi | |
4566 | ||
4567 | for ac_prog in 'bison -y' byacc | |
4568 | do | |
4569 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4570 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
4571 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4572 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4573 | if test "${ac_cv_prog_YACC+set}" = set; then |
4574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4575 | else | |
4576 | if test -n "$YACC"; then | |
4577 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4578 | else | |
4579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4580 | for as_dir in $PATH | |
4581 | do | |
4582 | IFS=$as_save_IFS | |
4583 | test -z "$as_dir" && as_dir=. | |
4584 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4585 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4586 | ac_cv_prog_YACC="$ac_prog" |
4587 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4588 | break 2 | |
4589 | fi | |
4590 | done | |
4591 | done | |
4592 | ||
4593 | fi | |
4594 | fi | |
4595 | YACC=$ac_cv_prog_YACC | |
4596 | if test -n "$YACC"; then | |
b4e70030 JB |
4597 | echo "$as_me:$LINENO: result: $YACC" >&5 |
4598 | echo "${ECHO_T}$YACC" >&6 | |
bec39cab | 4599 | else |
b4e70030 JB |
4600 | echo "$as_me:$LINENO: result: no" >&5 |
4601 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4602 | fi |
4603 | ||
4604 | test -n "$YACC" && break | |
4605 | done | |
4606 | test -n "$YACC" || YACC="yacc" | |
4607 | ||
4608 | ||
4609 | if test -n "$ac_tool_prefix"; then | |
4610 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4611 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
b4e70030 JB |
4612 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4613 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4614 | if test "${ac_cv_prog_AR+set}" = set; then |
4615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4616 | else | |
4617 | if test -n "$AR"; then | |
4618 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4619 | else | |
4620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4621 | for as_dir in $PATH | |
4622 | do | |
4623 | IFS=$as_save_IFS | |
4624 | test -z "$as_dir" && as_dir=. | |
4625 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4626 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4627 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
4628 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4629 | break 2 | |
4630 | fi | |
4631 | done | |
4632 | done | |
4633 | ||
4634 | fi | |
4635 | fi | |
4636 | AR=$ac_cv_prog_AR | |
4637 | if test -n "$AR"; then | |
b4e70030 JB |
4638 | echo "$as_me:$LINENO: result: $AR" >&5 |
4639 | echo "${ECHO_T}$AR" >&6 | |
bec39cab | 4640 | else |
b4e70030 JB |
4641 | echo "$as_me:$LINENO: result: no" >&5 |
4642 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4643 | fi |
4644 | ||
4645 | fi | |
4646 | if test -z "$ac_cv_prog_AR"; then | |
4647 | ac_ct_AR=$AR | |
4648 | # Extract the first word of "ar", so it can be a program name with args. | |
4649 | set dummy ar; ac_word=$2 | |
b4e70030 JB |
4650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4652 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
4653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4654 | else | |
4655 | if test -n "$ac_ct_AR"; then | |
4656 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4657 | else | |
4658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4659 | for as_dir in $PATH | |
4660 | do | |
4661 | IFS=$as_save_IFS | |
4662 | test -z "$as_dir" && as_dir=. | |
4663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4665 | ac_cv_prog_ac_ct_AR="ar" |
4666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4667 | break 2 | |
4668 | fi | |
4669 | done | |
4670 | done | |
4671 | ||
4672 | fi | |
4673 | fi | |
4674 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4675 | if test -n "$ac_ct_AR"; then | |
b4e70030 JB |
4676 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
4677 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
bec39cab | 4678 | else |
b4e70030 JB |
4679 | echo "$as_me:$LINENO: result: no" >&5 |
4680 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4681 | fi |
4682 | ||
b4e70030 | 4683 | AR=$ac_ct_AR |
bec39cab AC |
4684 | else |
4685 | AR="$ac_cv_prog_AR" | |
4686 | fi | |
4687 | ||
4688 | if test -n "$ac_tool_prefix"; then | |
4689 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
4690 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
b4e70030 JB |
4691 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4692 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4693 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
4694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4695 | else | |
4696 | if test -n "$DLLTOOL"; then | |
4697 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
4698 | else | |
4699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4700 | for as_dir in $PATH | |
4701 | do | |
4702 | IFS=$as_save_IFS | |
4703 | test -z "$as_dir" && as_dir=. | |
4704 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4705 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4706 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
4707 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4708 | break 2 | |
4709 | fi | |
4710 | done | |
4711 | done | |
4712 | ||
4713 | fi | |
4714 | fi | |
4715 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
4716 | if test -n "$DLLTOOL"; then | |
b4e70030 JB |
4717 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
4718 | echo "${ECHO_T}$DLLTOOL" >&6 | |
bec39cab | 4719 | else |
b4e70030 JB |
4720 | echo "$as_me:$LINENO: result: no" >&5 |
4721 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4722 | fi |
4723 | ||
4724 | fi | |
4725 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
4726 | ac_ct_DLLTOOL=$DLLTOOL | |
4727 | # Extract the first word of "dlltool", so it can be a program name with args. | |
4728 | set dummy dlltool; ac_word=$2 | |
b4e70030 JB |
4729 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4730 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4731 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
4732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4733 | else | |
4734 | if test -n "$ac_ct_DLLTOOL"; then | |
4735 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
4736 | else | |
4737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4738 | for as_dir in $PATH | |
4739 | do | |
4740 | IFS=$as_save_IFS | |
4741 | test -z "$as_dir" && as_dir=. | |
4742 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4743 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4744 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
4745 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4746 | break 2 | |
4747 | fi | |
4748 | done | |
4749 | done | |
4750 | ||
4751 | fi | |
4752 | fi | |
4753 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
4754 | if test -n "$ac_ct_DLLTOOL"; then | |
b4e70030 JB |
4755 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
4756 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
bec39cab | 4757 | else |
b4e70030 JB |
4758 | echo "$as_me:$LINENO: result: no" >&5 |
4759 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4760 | fi |
4761 | ||
b4e70030 | 4762 | DLLTOOL=$ac_ct_DLLTOOL |
bec39cab AC |
4763 | else |
4764 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
4765 | fi | |
4766 | ||
4767 | if test -n "$ac_tool_prefix"; then | |
4768 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
4769 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
b4e70030 JB |
4770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4772 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
4773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4774 | else | |
4775 | if test -n "$WINDRES"; then | |
4776 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
4777 | else | |
4778 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4779 | for as_dir in $PATH | |
4780 | do | |
4781 | IFS=$as_save_IFS | |
4782 | test -z "$as_dir" && as_dir=. | |
4783 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4784 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4785 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
4786 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4787 | break 2 | |
4788 | fi | |
4789 | done | |
4790 | done | |
4791 | ||
4792 | fi | |
4793 | fi | |
4794 | WINDRES=$ac_cv_prog_WINDRES | |
4795 | if test -n "$WINDRES"; then | |
b4e70030 JB |
4796 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
4797 | echo "${ECHO_T}$WINDRES" >&6 | |
bec39cab | 4798 | else |
b4e70030 JB |
4799 | echo "$as_me:$LINENO: result: no" >&5 |
4800 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4801 | fi |
4802 | ||
4803 | fi | |
4804 | if test -z "$ac_cv_prog_WINDRES"; then | |
4805 | ac_ct_WINDRES=$WINDRES | |
4806 | # Extract the first word of "windres", so it can be a program name with args. | |
4807 | set dummy windres; ac_word=$2 | |
b4e70030 JB |
4808 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4809 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4810 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
4811 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4812 | else | |
4813 | if test -n "$ac_ct_WINDRES"; then | |
4814 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
4815 | else | |
4816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4817 | for as_dir in $PATH | |
4818 | do | |
4819 | IFS=$as_save_IFS | |
4820 | test -z "$as_dir" && as_dir=. | |
4821 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4822 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4823 | ac_cv_prog_ac_ct_WINDRES="windres" |
4824 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4825 | break 2 | |
4826 | fi | |
4827 | done | |
4828 | done | |
4829 | ||
4830 | fi | |
4831 | fi | |
4832 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
4833 | if test -n "$ac_ct_WINDRES"; then | |
b4e70030 JB |
4834 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
4835 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
bec39cab | 4836 | else |
b4e70030 JB |
4837 | echo "$as_me:$LINENO: result: no" >&5 |
4838 | echo "${ECHO_T}no" >&6 | |
c906108c | 4839 | fi |
bec39cab | 4840 | |
b4e70030 | 4841 | WINDRES=$ac_ct_WINDRES |
c906108c | 4842 | else |
bec39cab | 4843 | WINDRES="$ac_cv_prog_WINDRES" |
c906108c SS |
4844 | fi |
4845 | ||
bec39cab AC |
4846 | |
4847 | # Needed for GNU/Hurd. | |
4848 | if test -n "$ac_tool_prefix"; then | |
4849 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. | |
4850 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
b4e70030 JB |
4851 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4852 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4853 | if test "${ac_cv_prog_MIG+set}" = set; then |
4854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4855 | else |
bec39cab AC |
4856 | if test -n "$MIG"; then |
4857 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
4858 | else | |
4859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4860 | for as_dir in $PATH | |
4861 | do | |
4862 | IFS=$as_save_IFS | |
4863 | test -z "$as_dir" && as_dir=. | |
4864 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4865 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4866 | ac_cv_prog_MIG="${ac_tool_prefix}mig" |
4867 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4868 | break 2 | |
4869 | fi | |
4870 | done | |
4871 | done | |
4872 | ||
c906108c | 4873 | fi |
bec39cab AC |
4874 | fi |
4875 | MIG=$ac_cv_prog_MIG | |
4876 | if test -n "$MIG"; then | |
b4e70030 JB |
4877 | echo "$as_me:$LINENO: result: $MIG" >&5 |
4878 | echo "${ECHO_T}$MIG" >&6 | |
c906108c | 4879 | else |
b4e70030 JB |
4880 | echo "$as_me:$LINENO: result: no" >&5 |
4881 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
4882 | fi |
4883 | ||
bec39cab AC |
4884 | fi |
4885 | if test -z "$ac_cv_prog_MIG"; then | |
4886 | ac_ct_MIG=$MIG | |
4887 | # Extract the first word of "mig", so it can be a program name with args. | |
4888 | set dummy mig; ac_word=$2 | |
b4e70030 JB |
4889 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4891 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then |
4892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4893 | else | |
4894 | if test -n "$ac_ct_MIG"; then | |
4895 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. | |
4896 | else | |
4897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4898 | for as_dir in $PATH | |
4899 | do | |
4900 | IFS=$as_save_IFS | |
4901 | test -z "$as_dir" && as_dir=. | |
4902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4903 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4904 | ac_cv_prog_ac_ct_MIG="mig" |
4905 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4906 | break 2 | |
4907 | fi | |
4908 | done | |
4909 | done | |
c906108c | 4910 | |
bec39cab AC |
4911 | fi |
4912 | fi | |
4913 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG | |
4914 | if test -n "$ac_ct_MIG"; then | |
b4e70030 JB |
4915 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 |
4916 | echo "${ECHO_T}$ac_ct_MIG" >&6 | |
bec39cab | 4917 | else |
b4e70030 JB |
4918 | echo "$as_me:$LINENO: result: no" >&5 |
4919 | echo "${ECHO_T}no" >&6 | |
bec39cab | 4920 | fi |
c906108c | 4921 | |
b4e70030 | 4922 | MIG=$ac_ct_MIG |
bec39cab AC |
4923 | else |
4924 | MIG="$ac_cv_prog_MIG" | |
4925 | fi | |
c906108c | 4926 | |
c906108c | 4927 | |
bec39cab AC |
4928 | # ---------------------- # |
4929 | # Checks for libraries. # | |
4930 | # ---------------------- # | |
c906108c | 4931 | |
bec39cab | 4932 | # We might need to link with -lm; most simulators need it. |
c906108c | 4933 | |
b4e70030 JB |
4934 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
4935 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
bec39cab AC |
4936 | if test "${ac_cv_lib_m_main+set}" = set; then |
4937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4938 | else | |
4939 | ac_check_lib_save_LIBS=$LIBS | |
4940 | LIBS="-lm $LIBS" | |
4941 | cat >conftest.$ac_ext <<_ACEOF | |
4942 | /* confdefs.h. */ | |
4943 | _ACEOF | |
4944 | cat confdefs.h >>conftest.$ac_ext | |
4945 | cat >>conftest.$ac_ext <<_ACEOF | |
4946 | /* end confdefs.h. */ | |
c906108c | 4947 | |
c906108c | 4948 | |
bec39cab AC |
4949 | int |
4950 | main () | |
4951 | { | |
b4e70030 | 4952 | main (); |
bec39cab AC |
4953 | ; |
4954 | return 0; | |
4955 | } | |
4956 | _ACEOF | |
4957 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4958 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4959 | (eval $ac_link) 2>conftest.er1 | |
4960 | ac_status=$? | |
4961 | grep -v '^ *+' conftest.er1 >conftest.err | |
4962 | rm -f conftest.er1 | |
4963 | cat conftest.err >&5 | |
4964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4965 | (exit $ac_status); } && | |
b4e70030 JB |
4966 | { ac_try='test -z "$ac_c_werror_flag" |
4967 | || test ! -s conftest.err' | |
bec39cab AC |
4968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4969 | (eval $ac_try) 2>&5 | |
4970 | ac_status=$? | |
4971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4972 | (exit $ac_status); }; } && | |
4973 | { ac_try='test -s conftest$ac_exeext' | |
4974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4975 | (eval $ac_try) 2>&5 | |
4976 | ac_status=$? | |
4977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4978 | (exit $ac_status); }; }; then | |
4979 | ac_cv_lib_m_main=yes | |
4980 | else | |
4981 | echo "$as_me: failed program was:" >&5 | |
4982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4983 | ||
b4e70030 | 4984 | ac_cv_lib_m_main=no |
bec39cab AC |
4985 | fi |
4986 | rm -f conftest.err conftest.$ac_objext \ | |
4987 | conftest$ac_exeext conftest.$ac_ext | |
4988 | LIBS=$ac_check_lib_save_LIBS | |
4989 | fi | |
b4e70030 JB |
4990 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
4991 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
bec39cab AC |
4992 | if test $ac_cv_lib_m_main = yes; then |
4993 | cat >>confdefs.h <<_ACEOF | |
4994 | #define HAVE_LIBM 1 | |
4995 | _ACEOF | |
4996 | ||
4997 | LIBS="-lm $LIBS" | |
c906108c | 4998 | |
c906108c | 4999 | fi |
bec39cab AC |
5000 | |
5001 | ||
5002 | # We need to link with -lw to get `wctype' on Solaris before Solaris | |
5003 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a | |
5004 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 | |
5005 | # is known to have this problem). Therefore we avoid libw if we can. | |
b4e70030 JB |
5006 | echo "$as_me:$LINENO: checking for wctype" >&5 |
5007 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 | |
bec39cab AC |
5008 | if test "${ac_cv_func_wctype+set}" = set; then |
5009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5010 | else | |
5011 | cat >conftest.$ac_ext <<_ACEOF | |
5012 | /* confdefs.h. */ | |
5013 | _ACEOF | |
5014 | cat confdefs.h >>conftest.$ac_ext | |
5015 | cat >>conftest.$ac_ext <<_ACEOF | |
5016 | /* end confdefs.h. */ | |
5017 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
5018 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5019 | #define wctype innocuous_wctype | |
5020 | ||
5021 | /* System header to define __stub macros and hopefully few prototypes, | |
5022 | which can conflict with char wctype (); below. | |
5023 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5024 | <limits.h> exists even on freestanding compilers. */ | |
5025 | ||
5026 | #ifdef __STDC__ | |
5027 | # include <limits.h> | |
5028 | #else | |
5029 | # include <assert.h> | |
5030 | #endif | |
5031 | ||
5032 | #undef wctype | |
5033 | ||
b4e70030 | 5034 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5035 | #ifdef __cplusplus |
5036 | extern "C" | |
b4e70030 | 5037 | { |
bec39cab | 5038 | #endif |
b4e70030 JB |
5039 | /* We use char because int might match the return type of a gcc2 |
5040 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5041 | char wctype (); |
5042 | /* The GNU C library defines this for functions which it implements | |
5043 | to always fail with ENOSYS. Some functions are actually named | |
5044 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 5045 | #if defined (__stub_wctype) || defined (__stub___wctype) |
bec39cab | 5046 | choke me |
b4e70030 JB |
5047 | #else |
5048 | char (*f) () = wctype; | |
5049 | #endif | |
5050 | #ifdef __cplusplus | |
5051 | } | |
bec39cab AC |
5052 | #endif |
5053 | ||
5054 | int | |
5055 | main () | |
5056 | { | |
b4e70030 | 5057 | return f != wctype; |
bec39cab AC |
5058 | ; |
5059 | return 0; | |
5060 | } | |
5061 | _ACEOF | |
5062 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5064 | (eval $ac_link) 2>conftest.er1 | |
5065 | ac_status=$? | |
5066 | grep -v '^ *+' conftest.er1 >conftest.err | |
5067 | rm -f conftest.er1 | |
5068 | cat conftest.err >&5 | |
5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5070 | (exit $ac_status); } && | |
b4e70030 JB |
5071 | { ac_try='test -z "$ac_c_werror_flag" |
5072 | || test ! -s conftest.err' | |
bec39cab AC |
5073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5074 | (eval $ac_try) 2>&5 | |
5075 | ac_status=$? | |
5076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5077 | (exit $ac_status); }; } && | |
5078 | { ac_try='test -s conftest$ac_exeext' | |
5079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5080 | (eval $ac_try) 2>&5 | |
5081 | ac_status=$? | |
5082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5083 | (exit $ac_status); }; }; then | |
5084 | ac_cv_func_wctype=yes | |
5085 | else | |
5086 | echo "$as_me: failed program was:" >&5 | |
5087 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5088 | ||
b4e70030 | 5089 | ac_cv_func_wctype=no |
bec39cab AC |
5090 | fi |
5091 | rm -f conftest.err conftest.$ac_objext \ | |
5092 | conftest$ac_exeext conftest.$ac_ext | |
5093 | fi | |
b4e70030 JB |
5094 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
5095 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 | |
bec39cab AC |
5096 | if test $ac_cv_func_wctype = yes; then |
5097 | : | |
c906108c | 5098 | else |
c906108c | 5099 | |
b4e70030 JB |
5100 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
5101 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 | |
bec39cab AC |
5102 | if test "${ac_cv_lib_w_wctype+set}" = set; then |
5103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5104 | else | |
5105 | ac_check_lib_save_LIBS=$LIBS | |
5106 | LIBS="-lw $LIBS" | |
5107 | cat >conftest.$ac_ext <<_ACEOF | |
5108 | /* confdefs.h. */ | |
5109 | _ACEOF | |
5110 | cat confdefs.h >>conftest.$ac_ext | |
5111 | cat >>conftest.$ac_ext <<_ACEOF | |
5112 | /* end confdefs.h. */ | |
c906108c | 5113 | |
b4e70030 | 5114 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5115 | #ifdef __cplusplus |
5116 | extern "C" | |
5117 | #endif | |
b4e70030 JB |
5118 | /* We use char because int might match the return type of a gcc2 |
5119 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5120 | char wctype (); |
5121 | int | |
5122 | main () | |
5123 | { | |
b4e70030 | 5124 | wctype (); |
bec39cab AC |
5125 | ; |
5126 | return 0; | |
5127 | } | |
5128 | _ACEOF | |
5129 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5131 | (eval $ac_link) 2>conftest.er1 | |
5132 | ac_status=$? | |
5133 | grep -v '^ *+' conftest.er1 >conftest.err | |
5134 | rm -f conftest.er1 | |
5135 | cat conftest.err >&5 | |
5136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5137 | (exit $ac_status); } && | |
b4e70030 JB |
5138 | { ac_try='test -z "$ac_c_werror_flag" |
5139 | || test ! -s conftest.err' | |
bec39cab AC |
5140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5141 | (eval $ac_try) 2>&5 | |
5142 | ac_status=$? | |
5143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5144 | (exit $ac_status); }; } && | |
5145 | { ac_try='test -s conftest$ac_exeext' | |
5146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5147 | (eval $ac_try) 2>&5 | |
5148 | ac_status=$? | |
5149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5150 | (exit $ac_status); }; }; then | |
5151 | ac_cv_lib_w_wctype=yes | |
5152 | else | |
5153 | echo "$as_me: failed program was:" >&5 | |
5154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5155 | ||
b4e70030 | 5156 | ac_cv_lib_w_wctype=no |
bec39cab AC |
5157 | fi |
5158 | rm -f conftest.err conftest.$ac_objext \ | |
5159 | conftest$ac_exeext conftest.$ac_ext | |
5160 | LIBS=$ac_check_lib_save_LIBS | |
5161 | fi | |
b4e70030 JB |
5162 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 |
5163 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 | |
bec39cab AC |
5164 | if test $ac_cv_lib_w_wctype = yes; then |
5165 | cat >>confdefs.h <<_ACEOF | |
5166 | #define HAVE_LIBW 1 | |
5167 | _ACEOF | |
c906108c | 5168 | |
bec39cab | 5169 | LIBS="-lw $LIBS" |
c906108c | 5170 | |
bec39cab | 5171 | fi |
c906108c | 5172 | |
bec39cab | 5173 | fi |
c906108c | 5174 | |
ddc9cd0f | 5175 | |
bec39cab | 5176 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
b4e70030 JB |
5177 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
5178 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 | |
bec39cab AC |
5179 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
5180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5181 | else | |
5182 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 5183 | ac_cv_search_gethostbyname=no |
bec39cab AC |
5184 | cat >conftest.$ac_ext <<_ACEOF |
5185 | /* confdefs.h. */ | |
5186 | _ACEOF | |
5187 | cat confdefs.h >>conftest.$ac_ext | |
5188 | cat >>conftest.$ac_ext <<_ACEOF | |
5189 | /* end confdefs.h. */ | |
ddc9cd0f | 5190 | |
b4e70030 | 5191 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5192 | #ifdef __cplusplus |
5193 | extern "C" | |
5194 | #endif | |
b4e70030 JB |
5195 | /* We use char because int might match the return type of a gcc2 |
5196 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5197 | char gethostbyname (); |
5198 | int | |
5199 | main () | |
5200 | { | |
b4e70030 | 5201 | gethostbyname (); |
bec39cab AC |
5202 | ; |
5203 | return 0; | |
5204 | } | |
5205 | _ACEOF | |
b4e70030 | 5206 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5208 | (eval $ac_link) 2>conftest.er1 | |
5209 | ac_status=$? | |
5210 | grep -v '^ *+' conftest.er1 >conftest.err | |
5211 | rm -f conftest.er1 | |
5212 | cat conftest.err >&5 | |
5213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5214 | (exit $ac_status); } && | |
b4e70030 JB |
5215 | { ac_try='test -z "$ac_c_werror_flag" |
5216 | || test ! -s conftest.err' | |
bec39cab AC |
5217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5218 | (eval $ac_try) 2>&5 | |
5219 | ac_status=$? | |
5220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5221 | (exit $ac_status); }; } && | |
5222 | { ac_try='test -s conftest$ac_exeext' | |
5223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5224 | (eval $ac_try) 2>&5 | |
5225 | ac_status=$? | |
5226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5227 | (exit $ac_status); }; }; then | |
b4e70030 | 5228 | ac_cv_search_gethostbyname="none required" |
bec39cab AC |
5229 | else |
5230 | echo "$as_me: failed program was:" >&5 | |
5231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 5232 | |
bec39cab AC |
5233 | fi |
5234 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
5235 | conftest$ac_exeext conftest.$ac_ext |
5236 | if test "$ac_cv_search_gethostbyname" = no; then | |
5237 | for ac_lib in nsl; do | |
5238 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5239 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
5240 | /* confdefs.h. */ |
5241 | _ACEOF | |
5242 | cat confdefs.h >>conftest.$ac_ext | |
5243 | cat >>conftest.$ac_ext <<_ACEOF | |
5244 | /* end confdefs.h. */ | |
ddc9cd0f | 5245 | |
b4e70030 | 5246 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5247 | #ifdef __cplusplus |
5248 | extern "C" | |
5249 | #endif | |
b4e70030 JB |
5250 | /* We use char because int might match the return type of a gcc2 |
5251 | builtin and then its argument prototype would still apply. */ | |
5252 | char gethostbyname (); | |
bec39cab AC |
5253 | int |
5254 | main () | |
5255 | { | |
b4e70030 | 5256 | gethostbyname (); |
bec39cab AC |
5257 | ; |
5258 | return 0; | |
5259 | } | |
5260 | _ACEOF | |
b4e70030 | 5261 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5263 | (eval $ac_link) 2>conftest.er1 | |
5264 | ac_status=$? | |
5265 | grep -v '^ *+' conftest.er1 >conftest.err | |
5266 | rm -f conftest.er1 | |
5267 | cat conftest.err >&5 | |
5268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5269 | (exit $ac_status); } && | |
b4e70030 JB |
5270 | { ac_try='test -z "$ac_c_werror_flag" |
5271 | || test ! -s conftest.err' | |
bec39cab AC |
5272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5273 | (eval $ac_try) 2>&5 | |
5274 | ac_status=$? | |
5275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5276 | (exit $ac_status); }; } && | |
5277 | { ac_try='test -s conftest$ac_exeext' | |
5278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5279 | (eval $ac_try) 2>&5 | |
5280 | ac_status=$? | |
5281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5282 | (exit $ac_status); }; }; then | |
b4e70030 JB |
5283 | ac_cv_search_gethostbyname="-l$ac_lib" |
5284 | break | |
bec39cab AC |
5285 | else |
5286 | echo "$as_me: failed program was:" >&5 | |
5287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5288 | ||
5289 | fi | |
5290 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
5291 | conftest$ac_exeext conftest.$ac_ext |
5292 | done | |
bec39cab AC |
5293 | fi |
5294 | LIBS=$ac_func_search_save_LIBS | |
5295 | fi | |
b4e70030 JB |
5296 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 |
5297 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 | |
5298 | if test "$ac_cv_search_gethostbyname" != no; then | |
5299 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" | |
96baa820 | 5300 | |
bec39cab | 5301 | fi |
96baa820 | 5302 | |
c906108c | 5303 | |
b4e70030 JB |
5304 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
5305 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 | |
5306 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 | |
5307 | if test "${ac_cv_search_socketpair+set}" = set; then | |
5308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5309 | else | |
5310 | ac_func_search_save_LIBS=$LIBS | |
5311 | ac_cv_search_socketpair=no | |
5312 | cat >conftest.$ac_ext <<_ACEOF | |
5313 | /* confdefs.h. */ | |
5314 | _ACEOF | |
5315 | cat confdefs.h >>conftest.$ac_ext | |
5316 | cat >>conftest.$ac_ext <<_ACEOF | |
5317 | /* end confdefs.h. */ | |
5318 | ||
5319 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5320 | #ifdef __cplusplus | |
5321 | extern "C" | |
5322 | #endif | |
5323 | /* We use char because int might match the return type of a gcc2 | |
5324 | builtin and then its argument prototype would still apply. */ | |
5325 | char socketpair (); | |
5326 | int | |
5327 | main () | |
5328 | { | |
5329 | socketpair (); | |
5330 | ; | |
5331 | return 0; | |
5332 | } | |
5333 | _ACEOF | |
5334 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5336 | (eval $ac_link) 2>conftest.er1 | |
5337 | ac_status=$? | |
5338 | grep -v '^ *+' conftest.er1 >conftest.err | |
5339 | rm -f conftest.er1 | |
5340 | cat conftest.err >&5 | |
5341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5342 | (exit $ac_status); } && | |
5343 | { ac_try='test -z "$ac_c_werror_flag" | |
5344 | || test ! -s conftest.err' | |
5345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5346 | (eval $ac_try) 2>&5 | |
5347 | ac_status=$? | |
5348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5349 | (exit $ac_status); }; } && | |
5350 | { ac_try='test -s conftest$ac_exeext' | |
5351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5352 | (eval $ac_try) 2>&5 | |
5353 | ac_status=$? | |
5354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5355 | (exit $ac_status); }; }; then | |
5356 | ac_cv_search_socketpair="none required" | |
5357 | else | |
5358 | echo "$as_me: failed program was:" >&5 | |
5359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5360 | ||
5361 | fi | |
5362 | rm -f conftest.err conftest.$ac_objext \ | |
5363 | conftest$ac_exeext conftest.$ac_ext | |
5364 | if test "$ac_cv_search_socketpair" = no; then | |
5365 | for ac_lib in socket; do | |
5366 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5367 | cat >conftest.$ac_ext <<_ACEOF | |
5368 | /* confdefs.h. */ | |
5369 | _ACEOF | |
5370 | cat confdefs.h >>conftest.$ac_ext | |
5371 | cat >>conftest.$ac_ext <<_ACEOF | |
5372 | /* end confdefs.h. */ | |
5373 | ||
5374 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5375 | #ifdef __cplusplus | |
5376 | extern "C" | |
5377 | #endif | |
5378 | /* We use char because int might match the return type of a gcc2 | |
5379 | builtin and then its argument prototype would still apply. */ | |
5380 | char socketpair (); | |
5381 | int | |
5382 | main () | |
5383 | { | |
5384 | socketpair (); | |
5385 | ; | |
5386 | return 0; | |
5387 | } | |
5388 | _ACEOF | |
5389 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5390 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5391 | (eval $ac_link) 2>conftest.er1 | |
5392 | ac_status=$? | |
5393 | grep -v '^ *+' conftest.er1 >conftest.err | |
5394 | rm -f conftest.er1 | |
5395 | cat conftest.err >&5 | |
5396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5397 | (exit $ac_status); } && | |
5398 | { ac_try='test -z "$ac_c_werror_flag" | |
5399 | || test ! -s conftest.err' | |
5400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5401 | (eval $ac_try) 2>&5 | |
5402 | ac_status=$? | |
5403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5404 | (exit $ac_status); }; } && | |
5405 | { ac_try='test -s conftest$ac_exeext' | |
5406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5407 | (eval $ac_try) 2>&5 | |
5408 | ac_status=$? | |
5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5410 | (exit $ac_status); }; }; then | |
5411 | ac_cv_search_socketpair="-l$ac_lib" | |
5412 | break | |
5413 | else | |
5414 | echo "$as_me: failed program was:" >&5 | |
5415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5416 | ||
5417 | fi | |
5418 | rm -f conftest.err conftest.$ac_objext \ | |
5419 | conftest$ac_exeext conftest.$ac_ext | |
5420 | done | |
5421 | fi | |
5422 | LIBS=$ac_func_search_save_LIBS | |
5423 | fi | |
5424 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 | |
5425 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 | |
5426 | if test "$ac_cv_search_socketpair" != no; then | |
5427 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" | |
5428 | ||
5429 | fi | |
5430 | ||
5431 | ||
5432 | # For the TUI, we need enhanced curses functionality. | |
bec39cab AC |
5433 | # |
5434 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied | |
5435 | # curses library because the latter might not provide all the | |
5436 | # functionality we need. However, this leads to problems on systems | |
5437 | # where the linker searches /usr/local/lib, but the compiler doesn't | |
5438 | # search /usr/local/include, if ncurses is installed in /usr/local. A | |
5439 | # default installation of ncurses on alpha*-dec-osf* will lead to such | |
5440 | # a situation. | |
b4e70030 JB |
5441 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 |
5442 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 | |
bec39cab AC |
5443 | if test "${ac_cv_search_waddstr+set}" = set; then |
5444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5445 | else | |
5446 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 5447 | ac_cv_search_waddstr=no |
bec39cab AC |
5448 | cat >conftest.$ac_ext <<_ACEOF |
5449 | /* confdefs.h. */ | |
5450 | _ACEOF | |
5451 | cat confdefs.h >>conftest.$ac_ext | |
5452 | cat >>conftest.$ac_ext <<_ACEOF | |
5453 | /* end confdefs.h. */ | |
c906108c | 5454 | |
b4e70030 | 5455 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5456 | #ifdef __cplusplus |
5457 | extern "C" | |
5458 | #endif | |
b4e70030 JB |
5459 | /* We use char because int might match the return type of a gcc2 |
5460 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5461 | char waddstr (); |
5462 | int | |
5463 | main () | |
5464 | { | |
b4e70030 | 5465 | waddstr (); |
bec39cab AC |
5466 | ; |
5467 | return 0; | |
5468 | } | |
5469 | _ACEOF | |
b4e70030 | 5470 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5472 | (eval $ac_link) 2>conftest.er1 | |
5473 | ac_status=$? | |
5474 | grep -v '^ *+' conftest.er1 >conftest.err | |
5475 | rm -f conftest.er1 | |
5476 | cat conftest.err >&5 | |
5477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5478 | (exit $ac_status); } && | |
b4e70030 JB |
5479 | { ac_try='test -z "$ac_c_werror_flag" |
5480 | || test ! -s conftest.err' | |
bec39cab AC |
5481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5482 | (eval $ac_try) 2>&5 | |
5483 | ac_status=$? | |
5484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5485 | (exit $ac_status); }; } && | |
5486 | { ac_try='test -s conftest$ac_exeext' | |
5487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5488 | (eval $ac_try) 2>&5 | |
5489 | ac_status=$? | |
5490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5491 | (exit $ac_status); }; }; then | |
b4e70030 | 5492 | ac_cv_search_waddstr="none required" |
bec39cab AC |
5493 | else |
5494 | echo "$as_me: failed program was:" >&5 | |
5495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1ba607ad AC |
5496 | |
5497 | fi | |
bec39cab | 5498 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
5499 | conftest$ac_exeext conftest.$ac_ext |
5500 | if test "$ac_cv_search_waddstr" = no; then | |
5501 | for ac_lib in ncurses cursesX curses; do | |
5502 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5503 | cat >conftest.$ac_ext <<_ACEOF | |
5504 | /* confdefs.h. */ | |
5505 | _ACEOF | |
5506 | cat confdefs.h >>conftest.$ac_ext | |
5507 | cat >>conftest.$ac_ext <<_ACEOF | |
5508 | /* end confdefs.h. */ | |
5509 | ||
5510 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5511 | #ifdef __cplusplus | |
5512 | extern "C" | |
5513 | #endif | |
5514 | /* We use char because int might match the return type of a gcc2 | |
5515 | builtin and then its argument prototype would still apply. */ | |
5516 | char waddstr (); | |
5517 | int | |
5518 | main () | |
5519 | { | |
5520 | waddstr (); | |
5521 | ; | |
5522 | return 0; | |
5523 | } | |
5524 | _ACEOF | |
5525 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5527 | (eval $ac_link) 2>conftest.er1 | |
5528 | ac_status=$? | |
5529 | grep -v '^ *+' conftest.er1 >conftest.err | |
5530 | rm -f conftest.er1 | |
5531 | cat conftest.err >&5 | |
5532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5533 | (exit $ac_status); } && | |
5534 | { ac_try='test -z "$ac_c_werror_flag" | |
5535 | || test ! -s conftest.err' | |
5536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5537 | (eval $ac_try) 2>&5 | |
5538 | ac_status=$? | |
5539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5540 | (exit $ac_status); }; } && | |
5541 | { ac_try='test -s conftest$ac_exeext' | |
5542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5543 | (eval $ac_try) 2>&5 | |
5544 | ac_status=$? | |
5545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5546 | (exit $ac_status); }; }; then | |
5547 | ac_cv_search_waddstr="-l$ac_lib" | |
5548 | break | |
4e8d927d | 5549 | else |
b4e70030 JB |
5550 | echo "$as_me: failed program was:" >&5 |
5551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5552 | ||
5553 | fi | |
5554 | rm -f conftest.err conftest.$ac_objext \ | |
5555 | conftest$ac_exeext conftest.$ac_ext | |
5556 | done | |
1ba607ad | 5557 | fi |
bec39cab AC |
5558 | LIBS=$ac_func_search_save_LIBS |
5559 | fi | |
b4e70030 JB |
5560 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 |
5561 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 | |
5562 | if test "$ac_cv_search_waddstr" != no; then | |
5563 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" | |
c906108c | 5564 | |
8bb2c122 | 5565 | fi |
8bb2c122 | 5566 | |
8bb2c122 | 5567 | |
bec39cab AC |
5568 | # Since GDB uses Readline, we need termcap functionality. In many |
5569 | # cases this will be provided by the curses library, but some systems | |
5570 | # have a seperate termcap library, or no curses library at all. | |
8bb2c122 | 5571 | |
bec39cab AC |
5572 | case $host_os in |
5573 | cygwin*) | |
5574 | if test -d $srcdir/libtermcap; then | |
5575 | LIBS="../libtermcap/libtermcap.a $LIBS" | |
5576 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" | |
5577 | fi ;; | |
5578 | go32* | *djgpp*) | |
5579 | ac_cv_search_tgetent="none required" | |
5580 | ;; | |
7ef34f2c MM |
5581 | *mingw32*) |
5582 | ac_cv_search_tgetent="none required" | |
5583 | CONFIG_OBS="$CONFIG_OBS win32-termcap.o" | |
5584 | ;; | |
bec39cab | 5585 | esac |
627af7ea | 5586 | |
bec39cab | 5587 | # These are the libraries checked by Readline. |
b4e70030 JB |
5588 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
5589 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
bec39cab AC |
5590 | if test "${ac_cv_search_tgetent+set}" = set; then |
5591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5592 | else | |
5593 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 5594 | ac_cv_search_tgetent=no |
bec39cab AC |
5595 | cat >conftest.$ac_ext <<_ACEOF |
5596 | /* confdefs.h. */ | |
5597 | _ACEOF | |
5598 | cat confdefs.h >>conftest.$ac_ext | |
5599 | cat >>conftest.$ac_ext <<_ACEOF | |
5600 | /* end confdefs.h. */ | |
5601 | ||
b4e70030 | 5602 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5603 | #ifdef __cplusplus |
5604 | extern "C" | |
5605 | #endif | |
b4e70030 JB |
5606 | /* We use char because int might match the return type of a gcc2 |
5607 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5608 | char tgetent (); |
5609 | int | |
5610 | main () | |
5611 | { | |
b4e70030 | 5612 | tgetent (); |
bec39cab AC |
5613 | ; |
5614 | return 0; | |
5615 | } | |
5616 | _ACEOF | |
b4e70030 | 5617 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5619 | (eval $ac_link) 2>conftest.er1 | |
5620 | ac_status=$? | |
5621 | grep -v '^ *+' conftest.er1 >conftest.err | |
5622 | rm -f conftest.er1 | |
5623 | cat conftest.err >&5 | |
5624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5625 | (exit $ac_status); } && | |
b4e70030 JB |
5626 | { ac_try='test -z "$ac_c_werror_flag" |
5627 | || test ! -s conftest.err' | |
bec39cab AC |
5628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5629 | (eval $ac_try) 2>&5 | |
5630 | ac_status=$? | |
5631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5632 | (exit $ac_status); }; } && | |
5633 | { ac_try='test -s conftest$ac_exeext' | |
5634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5635 | (eval $ac_try) 2>&5 | |
5636 | ac_status=$? | |
5637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5638 | (exit $ac_status); }; }; then | |
b4e70030 | 5639 | ac_cv_search_tgetent="none required" |
627af7ea | 5640 | else |
bec39cab AC |
5641 | echo "$as_me: failed program was:" >&5 |
5642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 5643 | |
627af7ea | 5644 | fi |
bec39cab | 5645 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
5646 | conftest$ac_exeext conftest.$ac_ext |
5647 | if test "$ac_cv_search_tgetent" = no; then | |
5648 | for ac_lib in termcap tinfo curses ncurses; do | |
5649 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5650 | cat >conftest.$ac_ext <<_ACEOF | |
5651 | /* confdefs.h. */ | |
5652 | _ACEOF | |
5653 | cat confdefs.h >>conftest.$ac_ext | |
5654 | cat >>conftest.$ac_ext <<_ACEOF | |
5655 | /* end confdefs.h. */ | |
5656 | ||
5657 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5658 | #ifdef __cplusplus | |
5659 | extern "C" | |
5660 | #endif | |
5661 | /* We use char because int might match the return type of a gcc2 | |
5662 | builtin and then its argument prototype would still apply. */ | |
5663 | char tgetent (); | |
5664 | int | |
5665 | main () | |
5666 | { | |
5667 | tgetent (); | |
5668 | ; | |
5669 | return 0; | |
5670 | } | |
5671 | _ACEOF | |
5672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5674 | (eval $ac_link) 2>conftest.er1 | |
5675 | ac_status=$? | |
5676 | grep -v '^ *+' conftest.er1 >conftest.err | |
5677 | rm -f conftest.er1 | |
5678 | cat conftest.err >&5 | |
5679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5680 | (exit $ac_status); } && | |
5681 | { ac_try='test -z "$ac_c_werror_flag" | |
5682 | || test ! -s conftest.err' | |
5683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5684 | (eval $ac_try) 2>&5 | |
5685 | ac_status=$? | |
5686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5687 | (exit $ac_status); }; } && | |
5688 | { ac_try='test -s conftest$ac_exeext' | |
5689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5690 | (eval $ac_try) 2>&5 | |
5691 | ac_status=$? | |
5692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5693 | (exit $ac_status); }; }; then | |
5694 | ac_cv_search_tgetent="-l$ac_lib" | |
5695 | break | |
4e8d927d | 5696 | else |
b4e70030 JB |
5697 | echo "$as_me: failed program was:" >&5 |
5698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5699 | ||
5700 | fi | |
5701 | rm -f conftest.err conftest.$ac_objext \ | |
5702 | conftest$ac_exeext conftest.$ac_ext | |
5703 | done | |
bec39cab AC |
5704 | fi |
5705 | LIBS=$ac_func_search_save_LIBS | |
5706 | fi | |
b4e70030 JB |
5707 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
5708 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
5709 | if test "$ac_cv_search_tgetent" != no; then | |
5710 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
627af7ea | 5711 | |
06825bd1 MK |
5712 | fi |
5713 | ||
06825bd1 | 5714 | |
bec39cab AC |
5715 | if test "$ac_cv_search_tgetent" = no; then |
5716 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 | |
5717 | echo "$as_me: error: no termcap library found" >&2;} | |
5718 | { (exit 1); exit 1; }; } | |
8ee53726 MK |
5719 | fi |
5720 | ||
3841debe | 5721 | |
6a30b0a5 AS |
5722 | # Check whether --with-system-readline or --without-system-readline was given. |
5723 | if test "${with_system_readline+set}" = set; then | |
5724 | withval="$with_system_readline" | |
5725 | ||
5726 | fi; | |
5727 | ||
5728 | if test "$with_system_readline" = yes; then | |
5729 | READLINE=-lreadline | |
5730 | READLINE_DEPS= | |
5731 | READLINE_CFLAGS= | |
5732 | else | |
5733 | READLINE='$(READLINE_DIR)/libreadline.a' | |
5734 | READLINE_DEPS='$(READLINE)' | |
5735 | READLINE_CFLAGS='-I$(READLINE_SRC)/..' | |
5736 | fi | |
5737 | ||
5738 | ||
5739 | ||
5740 | ||
5741 | ||
3841debe DJ |
5742 | if test "X$prefix" = "XNONE"; then |
5743 | acl_final_prefix="$ac_default_prefix" | |
5744 | else | |
5745 | acl_final_prefix="$prefix" | |
5746 | fi | |
5747 | if test "X$exec_prefix" = "XNONE"; then | |
5748 | acl_final_exec_prefix='${prefix}' | |
5749 | else | |
5750 | acl_final_exec_prefix="$exec_prefix" | |
5751 | fi | |
5752 | acl_save_prefix="$prefix" | |
5753 | prefix="$acl_final_prefix" | |
5754 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
5755 | prefix="$acl_save_prefix" | |
5756 | ||
5757 | ||
5758 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
5759 | if test "${with_gnu_ld+set}" = set; then | |
5760 | withval="$with_gnu_ld" | |
5761 | test "$withval" = no || with_gnu_ld=yes | |
5762 | else | |
5763 | with_gnu_ld=no | |
5764 | fi; | |
5765 | # Prepare PATH_SEPARATOR. | |
5766 | # The user is always right. | |
5767 | if test "${PATH_SEPARATOR+set}" != set; then | |
5768 | echo "#! /bin/sh" >conf$$.sh | |
5769 | echo "exit 0" >>conf$$.sh | |
5770 | chmod +x conf$$.sh | |
5771 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5772 | PATH_SEPARATOR=';' | |
5773 | else | |
5774 | PATH_SEPARATOR=: | |
5775 | fi | |
5776 | rm -f conf$$.sh | |
5777 | fi | |
5778 | ac_prog=ld | |
5779 | if test "$GCC" = yes; then | |
5780 | # Check if gcc -print-prog-name=ld gives a path. | |
5781 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
5782 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
5783 | case $host in | |
5784 | *-*-mingw*) | |
5785 | # gcc leaves a trailing carriage return which upsets mingw | |
5786 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5787 | *) | |
5788 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5789 | esac | |
5790 | case $ac_prog in | |
5791 | # Accept absolute paths. | |
5792 | [\\/]* | [A-Za-z]:[\\/]*) | |
5793 | re_direlt='/[^/][^/]*/\.\./' | |
5794 | # Canonicalize the path of ld | |
5795 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
5796 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
5797 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
5798 | done | |
5799 | test -z "$LD" && LD="$ac_prog" | |
5800 | ;; | |
5801 | "") | |
5802 | # If it fails, then pretend we aren't using GCC. | |
5803 | ac_prog=ld | |
5804 | ;; | |
5805 | *) | |
5806 | # If it is relative, then search for the first ld in PATH. | |
5807 | with_gnu_ld=unknown | |
5808 | ;; | |
5809 | esac | |
5810 | elif test "$with_gnu_ld" = yes; then | |
5811 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
5812 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
5813 | else | |
5814 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
5815 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
5816 | fi | |
5817 | if test "${acl_cv_path_LD+set}" = set; then | |
5818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5819 | else | |
5820 | if test -z "$LD"; then | |
5821 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
5822 | for ac_dir in $PATH; do | |
5823 | test -z "$ac_dir" && ac_dir=. | |
5824 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5825 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
5826 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5827 | # but apparently some GNU ld's only accept -v. | |
5828 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5829 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
5830 | test "$with_gnu_ld" != no && break | |
5831 | else | |
5832 | test "$with_gnu_ld" != yes && break | |
5833 | fi | |
5834 | fi | |
5835 | done | |
5836 | IFS="$ac_save_ifs" | |
5837 | else | |
5838 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
5839 | fi | |
5840 | fi | |
5841 | ||
5842 | LD="$acl_cv_path_LD" | |
5843 | if test -n "$LD"; then | |
5844 | echo "$as_me:$LINENO: result: $LD" >&5 | |
5845 | echo "${ECHO_T}$LD" >&6 | |
5846 | else | |
5847 | echo "$as_me:$LINENO: result: no" >&5 | |
5848 | echo "${ECHO_T}no" >&6 | |
5849 | fi | |
5850 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
5851 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
5852 | { (exit 1); exit 1; }; } | |
5853 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
5854 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
5855 | if test "${acl_cv_prog_gnu_ld+set}" = set; then | |
5856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5857 | else | |
5858 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
5859 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
5860 | acl_cv_prog_gnu_ld=yes | |
5861 | else | |
5862 | acl_cv_prog_gnu_ld=no | |
5863 | fi | |
5864 | fi | |
5865 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 | |
5866 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 | |
5867 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
5868 | ||
5869 | ||
5870 | ||
5871 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | |
5872 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 | |
5873 | if test "${acl_cv_rpath+set}" = set; then | |
5874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5875 | else | |
5876 | ||
5877 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
5878 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
5879 | . ./conftest.sh | |
5880 | rm -f ./conftest.sh | |
5881 | acl_cv_rpath=done | |
5882 | ||
5883 | fi | |
5884 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 | |
5885 | echo "${ECHO_T}$acl_cv_rpath" >&6 | |
5886 | wl="$acl_cv_wl" | |
5887 | libext="$acl_cv_libext" | |
5888 | shlibext="$acl_cv_shlibext" | |
5889 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
5890 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
5891 | hardcode_direct="$acl_cv_hardcode_direct" | |
5892 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
5893 | # Check whether --enable-rpath or --disable-rpath was given. | |
5894 | if test "${enable_rpath+set}" = set; then | |
5895 | enableval="$enable_rpath" | |
5896 | : | |
5897 | else | |
5898 | enable_rpath=yes | |
5899 | fi; | |
5900 | ||
5901 | ||
5902 | ||
5903 | ||
5904 | ||
5905 | ||
5906 | ||
5907 | ||
5908 | ||
5909 | use_additional=yes | |
5910 | ||
5911 | acl_save_prefix="$prefix" | |
5912 | prefix="$acl_final_prefix" | |
5913 | acl_save_exec_prefix="$exec_prefix" | |
5914 | exec_prefix="$acl_final_exec_prefix" | |
5915 | ||
5916 | eval additional_includedir=\"$includedir\" | |
5917 | eval additional_libdir=\"$libdir\" | |
5918 | ||
5919 | exec_prefix="$acl_save_exec_prefix" | |
5920 | prefix="$acl_save_prefix" | |
5921 | ||
5922 | ||
5923 | # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given. | |
5924 | if test "${with_libexpat_prefix+set}" = set; then | |
5925 | withval="$with_libexpat_prefix" | |
5926 | ||
5927 | if test "X$withval" = "Xno"; then | |
5928 | use_additional=no | |
5929 | else | |
5930 | if test "X$withval" = "X"; then | |
5931 | ||
5932 | acl_save_prefix="$prefix" | |
5933 | prefix="$acl_final_prefix" | |
5934 | acl_save_exec_prefix="$exec_prefix" | |
5935 | exec_prefix="$acl_final_exec_prefix" | |
5936 | ||
5937 | eval additional_includedir=\"$includedir\" | |
5938 | eval additional_libdir=\"$libdir\" | |
5939 | ||
5940 | exec_prefix="$acl_save_exec_prefix" | |
5941 | prefix="$acl_save_prefix" | |
5942 | ||
5943 | else | |
5944 | additional_includedir="$withval/include" | |
5945 | additional_libdir="$withval/lib" | |
5946 | fi | |
5947 | fi | |
5948 | ||
5949 | fi; | |
5950 | LIBEXPAT= | |
5951 | LTLIBEXPAT= | |
5952 | INCEXPAT= | |
5953 | rpathdirs= | |
5954 | ltrpathdirs= | |
5955 | names_already_handled= | |
5956 | names_next_round='expat ' | |
5957 | while test -n "$names_next_round"; do | |
5958 | names_this_round="$names_next_round" | |
5959 | names_next_round= | |
5960 | for name in $names_this_round; do | |
5961 | already_handled= | |
5962 | for n in $names_already_handled; do | |
5963 | if test "$n" = "$name"; then | |
5964 | already_handled=yes | |
5965 | break | |
5966 | fi | |
5967 | done | |
5968 | if test -z "$already_handled"; then | |
5969 | names_already_handled="$names_already_handled $name" | |
5970 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
5971 | eval value=\"\$HAVE_LIB$uppername\" | |
5972 | if test -n "$value"; then | |
5973 | if test "$value" = yes; then | |
5974 | eval value=\"\$LIB$uppername\" | |
5975 | test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" | |
5976 | eval value=\"\$LTLIB$uppername\" | |
5977 | test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" | |
5978 | else | |
5979 | : | |
5980 | fi | |
5981 | else | |
5982 | found_dir= | |
5983 | found_la= | |
5984 | found_so= | |
5985 | found_a= | |
5986 | if test $use_additional = yes; then | |
5987 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
5988 | found_dir="$additional_libdir" | |
5989 | found_so="$additional_libdir/lib$name.$shlibext" | |
5990 | if test -f "$additional_libdir/lib$name.la"; then | |
5991 | found_la="$additional_libdir/lib$name.la" | |
5992 | fi | |
5993 | else | |
5994 | if test -f "$additional_libdir/lib$name.$libext"; then | |
5995 | found_dir="$additional_libdir" | |
5996 | found_a="$additional_libdir/lib$name.$libext" | |
5997 | if test -f "$additional_libdir/lib$name.la"; then | |
5998 | found_la="$additional_libdir/lib$name.la" | |
5999 | fi | |
6000 | fi | |
6001 | fi | |
6002 | fi | |
6003 | if test "X$found_dir" = "X"; then | |
6004 | for x in $LDFLAGS $LTLIBEXPAT; do | |
6005 | ||
6006 | acl_save_prefix="$prefix" | |
6007 | prefix="$acl_final_prefix" | |
6008 | acl_save_exec_prefix="$exec_prefix" | |
6009 | exec_prefix="$acl_final_exec_prefix" | |
6010 | eval x=\"$x\" | |
6011 | exec_prefix="$acl_save_exec_prefix" | |
6012 | prefix="$acl_save_prefix" | |
6013 | ||
6014 | case "$x" in | |
6015 | -L*) | |
6016 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
6017 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
6018 | found_dir="$dir" | |
6019 | found_so="$dir/lib$name.$shlibext" | |
6020 | if test -f "$dir/lib$name.la"; then | |
6021 | found_la="$dir/lib$name.la" | |
6022 | fi | |
6023 | else | |
6024 | if test -f "$dir/lib$name.$libext"; then | |
6025 | found_dir="$dir" | |
6026 | found_a="$dir/lib$name.$libext" | |
6027 | if test -f "$dir/lib$name.la"; then | |
6028 | found_la="$dir/lib$name.la" | |
6029 | fi | |
6030 | fi | |
6031 | fi | |
6032 | ;; | |
6033 | esac | |
6034 | if test "X$found_dir" != "X"; then | |
6035 | break | |
6036 | fi | |
6037 | done | |
6038 | fi | |
6039 | if test "X$found_dir" != "X"; then | |
6040 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name" | |
6041 | if test "X$found_so" != "X"; then | |
6042 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
6043 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6044 | else | |
6045 | haveit= | |
6046 | for x in $ltrpathdirs; do | |
6047 | if test "X$x" = "X$found_dir"; then | |
6048 | haveit=yes | |
6049 | break | |
6050 | fi | |
6051 | done | |
6052 | if test -z "$haveit"; then | |
6053 | ltrpathdirs="$ltrpathdirs $found_dir" | |
6054 | fi | |
6055 | if test "$hardcode_direct" = yes; then | |
6056 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6057 | else | |
6058 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
6059 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6060 | haveit= | |
6061 | for x in $rpathdirs; do | |
6062 | if test "X$x" = "X$found_dir"; then | |
6063 | haveit=yes | |
6064 | break | |
6065 | fi | |
6066 | done | |
6067 | if test -z "$haveit"; then | |
6068 | rpathdirs="$rpathdirs $found_dir" | |
6069 | fi | |
6070 | else | |
6071 | haveit= | |
6072 | for x in $LDFLAGS $LIBEXPAT; do | |
6073 | ||
6074 | acl_save_prefix="$prefix" | |
6075 | prefix="$acl_final_prefix" | |
6076 | acl_save_exec_prefix="$exec_prefix" | |
6077 | exec_prefix="$acl_final_exec_prefix" | |
6078 | eval x=\"$x\" | |
6079 | exec_prefix="$acl_save_exec_prefix" | |
6080 | prefix="$acl_save_prefix" | |
6081 | ||
6082 | if test "X$x" = "X-L$found_dir"; then | |
6083 | haveit=yes | |
6084 | break | |
6085 | fi | |
6086 | done | |
6087 | if test -z "$haveit"; then | |
6088 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" | |
6089 | fi | |
6090 | if test "$hardcode_minus_L" != no; then | |
6091 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6092 | else | |
6093 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
6094 | fi | |
6095 | fi | |
6096 | fi | |
6097 | fi | |
6098 | else | |
6099 | if test "X$found_a" != "X"; then | |
6100 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" | |
6101 | else | |
6102 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name" | |
6103 | fi | |
6104 | fi | |
6105 | additional_includedir= | |
6106 | case "$found_dir" in | |
6107 | */lib | */lib/) | |
6108 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
6109 | additional_includedir="$basedir/include" | |
6110 | ;; | |
6111 | esac | |
6112 | if test "X$additional_includedir" != "X"; then | |
6113 | if test "X$additional_includedir" != "X/usr/include"; then | |
6114 | haveit= | |
6115 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
6116 | if test -n "$GCC"; then | |
6117 | case $host_os in | |
6118 | linux*) haveit=yes;; | |
6119 | esac | |
6120 | fi | |
6121 | fi | |
6122 | if test -z "$haveit"; then | |
6123 | for x in $CPPFLAGS $INCEXPAT; do | |
6124 | ||
6125 | acl_save_prefix="$prefix" | |
6126 | prefix="$acl_final_prefix" | |
6127 | acl_save_exec_prefix="$exec_prefix" | |
6128 | exec_prefix="$acl_final_exec_prefix" | |
6129 | eval x=\"$x\" | |
6130 | exec_prefix="$acl_save_exec_prefix" | |
6131 | prefix="$acl_save_prefix" | |
6132 | ||
6133 | if test "X$x" = "X-I$additional_includedir"; then | |
6134 | haveit=yes | |
6135 | break | |
6136 | fi | |
6137 | done | |
6138 | if test -z "$haveit"; then | |
6139 | if test -d "$additional_includedir"; then | |
6140 | INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir" | |
6141 | fi | |
6142 | fi | |
6143 | fi | |
6144 | fi | |
6145 | fi | |
6146 | if test -n "$found_la"; then | |
6147 | save_libdir="$libdir" | |
6148 | case "$found_la" in | |
6149 | */* | *\\*) . "$found_la" ;; | |
6150 | *) . "./$found_la" ;; | |
6151 | esac | |
6152 | libdir="$save_libdir" | |
6153 | for dep in $dependency_libs; do | |
6154 | case "$dep" in | |
6155 | -L*) | |
6156 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
6157 | if test "X$additional_libdir" != "X/usr/lib"; then | |
6158 | haveit= | |
6159 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
6160 | if test -n "$GCC"; then | |
6161 | case $host_os in | |
6162 | linux*) haveit=yes;; | |
6163 | esac | |
6164 | fi | |
6165 | fi | |
6166 | if test -z "$haveit"; then | |
6167 | haveit= | |
6168 | for x in $LDFLAGS $LIBEXPAT; do | |
6169 | ||
6170 | acl_save_prefix="$prefix" | |
6171 | prefix="$acl_final_prefix" | |
6172 | acl_save_exec_prefix="$exec_prefix" | |
6173 | exec_prefix="$acl_final_exec_prefix" | |
6174 | eval x=\"$x\" | |
6175 | exec_prefix="$acl_save_exec_prefix" | |
6176 | prefix="$acl_save_prefix" | |
6177 | ||
6178 | if test "X$x" = "X-L$additional_libdir"; then | |
6179 | haveit=yes | |
6180 | break | |
6181 | fi | |
6182 | done | |
6183 | if test -z "$haveit"; then | |
6184 | if test -d "$additional_libdir"; then | |
6185 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir" | |
6186 | fi | |
6187 | fi | |
6188 | haveit= | |
6189 | for x in $LDFLAGS $LTLIBEXPAT; do | |
6190 | ||
6191 | acl_save_prefix="$prefix" | |
6192 | prefix="$acl_final_prefix" | |
6193 | acl_save_exec_prefix="$exec_prefix" | |
6194 | exec_prefix="$acl_final_exec_prefix" | |
6195 | eval x=\"$x\" | |
6196 | exec_prefix="$acl_save_exec_prefix" | |
6197 | prefix="$acl_save_prefix" | |
6198 | ||
6199 | if test "X$x" = "X-L$additional_libdir"; then | |
6200 | haveit=yes | |
6201 | break | |
6202 | fi | |
6203 | done | |
6204 | if test -z "$haveit"; then | |
6205 | if test -d "$additional_libdir"; then | |
6206 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir" | |
6207 | fi | |
6208 | fi | |
6209 | fi | |
6210 | fi | |
6211 | ;; | |
6212 | -R*) | |
6213 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
6214 | if test "$enable_rpath" != no; then | |
6215 | haveit= | |
6216 | for x in $rpathdirs; do | |
6217 | if test "X$x" = "X$dir"; then | |
6218 | haveit=yes | |
6219 | break | |
6220 | fi | |
6221 | done | |
6222 | if test -z "$haveit"; then | |
6223 | rpathdirs="$rpathdirs $dir" | |
6224 | fi | |
6225 | haveit= | |
6226 | for x in $ltrpathdirs; do | |
6227 | if test "X$x" = "X$dir"; then | |
6228 | haveit=yes | |
6229 | break | |
6230 | fi | |
6231 | done | |
6232 | if test -z "$haveit"; then | |
6233 | ltrpathdirs="$ltrpathdirs $dir" | |
6234 | fi | |
6235 | fi | |
6236 | ;; | |
6237 | -l*) | |
6238 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
6239 | ;; | |
6240 | *.la) | |
6241 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
6242 | ;; | |
6243 | *) | |
6244 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" | |
6245 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" | |
6246 | ;; | |
6247 | esac | |
6248 | done | |
6249 | fi | |
6250 | else | |
6251 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
6252 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" | |
6253 | fi | |
6254 | fi | |
6255 | fi | |
6256 | done | |
6257 | done | |
6258 | if test "X$rpathdirs" != "X"; then | |
6259 | if test -n "$hardcode_libdir_separator"; then | |
6260 | alldirs= | |
6261 | for found_dir in $rpathdirs; do | |
6262 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
6263 | done | |
6264 | acl_save_libdir="$libdir" | |
6265 | libdir="$alldirs" | |
6266 | eval flag=\"$hardcode_libdir_flag_spec\" | |
6267 | libdir="$acl_save_libdir" | |
6268 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
6269 | else | |
6270 | for found_dir in $rpathdirs; do | |
6271 | acl_save_libdir="$libdir" | |
6272 | libdir="$found_dir" | |
6273 | eval flag=\"$hardcode_libdir_flag_spec\" | |
6274 | libdir="$acl_save_libdir" | |
6275 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
6276 | done | |
6277 | fi | |
6278 | fi | |
6279 | if test "X$ltrpathdirs" != "X"; then | |
6280 | for found_dir in $ltrpathdirs; do | |
6281 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" | |
6282 | done | |
6283 | fi | |
6284 | ||
6285 | ||
6286 | ac_save_CPPFLAGS="$CPPFLAGS" | |
6287 | ||
6288 | for element in $INCEXPAT; do | |
6289 | haveit= | |
6290 | for x in $CPPFLAGS; do | |
6291 | ||
6292 | acl_save_prefix="$prefix" | |
6293 | prefix="$acl_final_prefix" | |
6294 | acl_save_exec_prefix="$exec_prefix" | |
6295 | exec_prefix="$acl_final_exec_prefix" | |
6296 | eval x=\"$x\" | |
6297 | exec_prefix="$acl_save_exec_prefix" | |
6298 | prefix="$acl_save_prefix" | |
6299 | ||
6300 | if test "X$x" = "X$element"; then | |
6301 | haveit=yes | |
6302 | break | |
6303 | fi | |
6304 | done | |
6305 | if test -z "$haveit"; then | |
6306 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
6307 | fi | |
6308 | done | |
6309 | ||
6310 | ||
6311 | echo "$as_me:$LINENO: checking for libexpat" >&5 | |
6312 | echo $ECHO_N "checking for libexpat... $ECHO_C" >&6 | |
6313 | if test "${ac_cv_libexpat+set}" = set; then | |
6314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6315 | else | |
6316 | ||
6317 | ac_save_LIBS="$LIBS" | |
6318 | LIBS="$LIBS $LIBEXPAT" | |
6319 | cat >conftest.$ac_ext <<_ACEOF | |
6320 | /* confdefs.h. */ | |
6321 | _ACEOF | |
6322 | cat confdefs.h >>conftest.$ac_ext | |
6323 | cat >>conftest.$ac_ext <<_ACEOF | |
6324 | /* end confdefs.h. */ | |
6325 | #include "expat.h" | |
6326 | int | |
6327 | main () | |
6328 | { | |
6329 | XML_Parser p = XML_ParserCreate (0); | |
6330 | ; | |
6331 | return 0; | |
6332 | } | |
6333 | _ACEOF | |
6334 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6336 | (eval $ac_link) 2>conftest.er1 | |
6337 | ac_status=$? | |
6338 | grep -v '^ *+' conftest.er1 >conftest.err | |
6339 | rm -f conftest.er1 | |
6340 | cat conftest.err >&5 | |
6341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6342 | (exit $ac_status); } && | |
6343 | { ac_try='test -z "$ac_c_werror_flag" | |
6344 | || test ! -s conftest.err' | |
6345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6346 | (eval $ac_try) 2>&5 | |
6347 | ac_status=$? | |
6348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6349 | (exit $ac_status); }; } && | |
6350 | { ac_try='test -s conftest$ac_exeext' | |
6351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6352 | (eval $ac_try) 2>&5 | |
6353 | ac_status=$? | |
6354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6355 | (exit $ac_status); }; }; then | |
6356 | ac_cv_libexpat=yes | |
6357 | else | |
6358 | echo "$as_me: failed program was:" >&5 | |
6359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6360 | ||
6361 | ac_cv_libexpat=no | |
6362 | fi | |
6363 | rm -f conftest.err conftest.$ac_objext \ | |
6364 | conftest$ac_exeext conftest.$ac_ext | |
6365 | LIBS="$ac_save_LIBS" | |
6366 | ||
6367 | fi | |
6368 | echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5 | |
6369 | echo "${ECHO_T}$ac_cv_libexpat" >&6 | |
6370 | if test "$ac_cv_libexpat" = yes; then | |
6371 | HAVE_LIBEXPAT=yes | |
6372 | ||
6373 | cat >>confdefs.h <<\_ACEOF | |
6374 | #define HAVE_LIBEXPAT 1 | |
6375 | _ACEOF | |
6376 | ||
6377 | echo "$as_me:$LINENO: checking how to link with libexpat" >&5 | |
6378 | echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6 | |
6379 | echo "$as_me:$LINENO: result: $LIBEXPAT" >&5 | |
6380 | echo "${ECHO_T}$LIBEXPAT" >&6 | |
6381 | else | |
6382 | HAVE_LIBEXPAT=no | |
6383 | CPPFLAGS="$ac_save_CPPFLAGS" | |
6384 | LIBEXPAT= | |
6385 | LTLIBEXPAT= | |
6386 | fi | |
6387 | ||
6388 | ||
6389 | ||
6390 | ||
6391 | ||
6392 | ||
6393 | if test "$HAVE_LIBEXPAT" != yes; then | |
6394 | { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be disabled." >&5 | |
6395 | echo "$as_me: WARNING: expat is missing or unusable; some features may be disabled." >&2;} | |
ca4ca11e DJ |
6396 | else |
6397 | save_LIBS=$LIBS | |
6398 | LIBS="$LIBS $LIBEXPAT" | |
6399 | ||
6400 | for ac_func in XML_StopParser | |
6401 | do | |
6402 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6403 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6404 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6405 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6407 | else | |
6408 | cat >conftest.$ac_ext <<_ACEOF | |
6409 | /* confdefs.h. */ | |
6410 | _ACEOF | |
6411 | cat confdefs.h >>conftest.$ac_ext | |
6412 | cat >>conftest.$ac_ext <<_ACEOF | |
6413 | /* end confdefs.h. */ | |
6414 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6415 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6416 | #define $ac_func innocuous_$ac_func | |
6417 | ||
6418 | /* System header to define __stub macros and hopefully few prototypes, | |
6419 | which can conflict with char $ac_func (); below. | |
6420 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6421 | <limits.h> exists even on freestanding compilers. */ | |
6422 | ||
6423 | #ifdef __STDC__ | |
6424 | # include <limits.h> | |
6425 | #else | |
6426 | # include <assert.h> | |
6427 | #endif | |
6428 | ||
6429 | #undef $ac_func | |
6430 | ||
6431 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6432 | #ifdef __cplusplus | |
6433 | extern "C" | |
6434 | { | |
6435 | #endif | |
6436 | /* We use char because int might match the return type of a gcc2 | |
6437 | builtin and then its argument prototype would still apply. */ | |
6438 | char $ac_func (); | |
6439 | /* The GNU C library defines this for functions which it implements | |
6440 | to always fail with ENOSYS. Some functions are actually named | |
6441 | something starting with __ and the normal name is an alias. */ | |
6442 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6443 | choke me | |
6444 | #else | |
6445 | char (*f) () = $ac_func; | |
6446 | #endif | |
6447 | #ifdef __cplusplus | |
6448 | } | |
6449 | #endif | |
6450 | ||
6451 | int | |
6452 | main () | |
6453 | { | |
6454 | return f != $ac_func; | |
6455 | ; | |
6456 | return 0; | |
6457 | } | |
6458 | _ACEOF | |
6459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6461 | (eval $ac_link) 2>conftest.er1 | |
6462 | ac_status=$? | |
6463 | grep -v '^ *+' conftest.er1 >conftest.err | |
6464 | rm -f conftest.er1 | |
6465 | cat conftest.err >&5 | |
6466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6467 | (exit $ac_status); } && | |
6468 | { ac_try='test -z "$ac_c_werror_flag" | |
6469 | || test ! -s conftest.err' | |
6470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6471 | (eval $ac_try) 2>&5 | |
6472 | ac_status=$? | |
6473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6474 | (exit $ac_status); }; } && | |
6475 | { ac_try='test -s conftest$ac_exeext' | |
6476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6477 | (eval $ac_try) 2>&5 | |
6478 | ac_status=$? | |
6479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6480 | (exit $ac_status); }; }; then | |
6481 | eval "$as_ac_var=yes" | |
6482 | else | |
6483 | echo "$as_me: failed program was:" >&5 | |
6484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6485 | ||
6486 | eval "$as_ac_var=no" | |
6487 | fi | |
6488 | rm -f conftest.err conftest.$ac_objext \ | |
6489 | conftest$ac_exeext conftest.$ac_ext | |
6490 | fi | |
6491 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6492 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6493 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6494 | cat >>confdefs.h <<_ACEOF | |
6495 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6496 | _ACEOF | |
6497 | ||
6498 | fi | |
6499 | done | |
6500 | ||
6501 | LIBS=$save_LIBS | |
3841debe DJ |
6502 | fi |
6503 | ||
bec39cab AC |
6504 | # ------------------------- # |
6505 | # Checks for header files. # | |
6506 | # ------------------------- # | |
8ee53726 | 6507 | |
0e5d83e3 | 6508 | |
bec39cab AC |
6509 | |
6510 | ||
6511 | ||
6512 | ||
6513 | ac_header_dirent=no | |
6514 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
6515 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
b4e70030 JB |
6516 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
6517 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
6518 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
6519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6520 | else | |
6521 | cat >conftest.$ac_ext <<_ACEOF | |
6522 | /* confdefs.h. */ | |
6523 | _ACEOF | |
6524 | cat confdefs.h >>conftest.$ac_ext | |
6525 | cat >>conftest.$ac_ext <<_ACEOF | |
6526 | /* end confdefs.h. */ | |
6527 | #include <sys/types.h> | |
0e5d83e3 | 6528 | #include <$ac_hdr> |
bec39cab AC |
6529 | |
6530 | int | |
6531 | main () | |
6532 | { | |
6533 | if ((DIR *) 0) | |
6534 | return 0; | |
6535 | ; | |
6536 | return 0; | |
6537 | } | |
6538 | _ACEOF | |
6539 | rm -f conftest.$ac_objext | |
6540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6541 | (eval $ac_compile) 2>conftest.er1 | |
6542 | ac_status=$? | |
6543 | grep -v '^ *+' conftest.er1 >conftest.err | |
6544 | rm -f conftest.er1 | |
6545 | cat conftest.err >&5 | |
6546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6547 | (exit $ac_status); } && | |
b4e70030 JB |
6548 | { ac_try='test -z "$ac_c_werror_flag" |
6549 | || test ! -s conftest.err' | |
bec39cab AC |
6550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6551 | (eval $ac_try) 2>&5 | |
6552 | ac_status=$? | |
6553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6554 | (exit $ac_status); }; } && | |
6555 | { ac_try='test -s conftest.$ac_objext' | |
6556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6557 | (eval $ac_try) 2>&5 | |
6558 | ac_status=$? | |
6559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6560 | (exit $ac_status); }; }; then | |
6561 | eval "$as_ac_Header=yes" | |
6562 | else | |
6563 | echo "$as_me: failed program was:" >&5 | |
6564 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6565 | ||
b4e70030 | 6566 | eval "$as_ac_Header=no" |
bec39cab AC |
6567 | fi |
6568 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6569 | fi | |
b4e70030 JB |
6570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6571 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
6572 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6573 | cat >>confdefs.h <<_ACEOF | |
6574 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
6575 | _ACEOF | |
6576 | ||
6577 | ac_header_dirent=$ac_hdr; break | |
0e5d83e3 | 6578 | fi |
0e5d83e3 | 6579 | |
bec39cab AC |
6580 | done |
6581 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
6582 | if test $ac_header_dirent = dirent.h; then | |
b4e70030 JB |
6583 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
6584 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
6585 | if test "${ac_cv_search_opendir+set}" = set; then |
6586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6587 | else | |
6588 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 6589 | ac_cv_search_opendir=no |
bec39cab AC |
6590 | cat >conftest.$ac_ext <<_ACEOF |
6591 | /* confdefs.h. */ | |
6592 | _ACEOF | |
6593 | cat confdefs.h >>conftest.$ac_ext | |
6594 | cat >>conftest.$ac_ext <<_ACEOF | |
6595 | /* end confdefs.h. */ | |
0e5d83e3 | 6596 | |
b4e70030 | 6597 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
6598 | #ifdef __cplusplus |
6599 | extern "C" | |
6600 | #endif | |
b4e70030 JB |
6601 | /* We use char because int might match the return type of a gcc2 |
6602 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
6603 | char opendir (); |
6604 | int | |
6605 | main () | |
6606 | { | |
b4e70030 | 6607 | opendir (); |
bec39cab AC |
6608 | ; |
6609 | return 0; | |
6610 | } | |
6611 | _ACEOF | |
b4e70030 | 6612 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
6613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6614 | (eval $ac_link) 2>conftest.er1 | |
6615 | ac_status=$? | |
6616 | grep -v '^ *+' conftest.er1 >conftest.err | |
6617 | rm -f conftest.er1 | |
6618 | cat conftest.err >&5 | |
6619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6620 | (exit $ac_status); } && | |
b4e70030 JB |
6621 | { ac_try='test -z "$ac_c_werror_flag" |
6622 | || test ! -s conftest.err' | |
bec39cab AC |
6623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6624 | (eval $ac_try) 2>&5 | |
6625 | ac_status=$? | |
6626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6627 | (exit $ac_status); }; } && | |
6628 | { ac_try='test -s conftest$ac_exeext' | |
6629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6630 | (eval $ac_try) 2>&5 | |
6631 | ac_status=$? | |
6632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6633 | (exit $ac_status); }; }; then | |
b4e70030 | 6634 | ac_cv_search_opendir="none required" |
bec39cab AC |
6635 | else |
6636 | echo "$as_me: failed program was:" >&5 | |
6637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6638 | ||
6639 | fi | |
bec39cab | 6640 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
6641 | conftest$ac_exeext conftest.$ac_ext |
6642 | if test "$ac_cv_search_opendir" = no; then | |
6643 | for ac_lib in dir; do | |
6644 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6645 | cat >conftest.$ac_ext <<_ACEOF | |
6646 | /* confdefs.h. */ | |
6647 | _ACEOF | |
6648 | cat confdefs.h >>conftest.$ac_ext | |
6649 | cat >>conftest.$ac_ext <<_ACEOF | |
6650 | /* end confdefs.h. */ | |
6651 | ||
6652 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6653 | #ifdef __cplusplus | |
6654 | extern "C" | |
6655 | #endif | |
6656 | /* We use char because int might match the return type of a gcc2 | |
6657 | builtin and then its argument prototype would still apply. */ | |
6658 | char opendir (); | |
6659 | int | |
6660 | main () | |
6661 | { | |
6662 | opendir (); | |
6663 | ; | |
6664 | return 0; | |
6665 | } | |
6666 | _ACEOF | |
6667 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6669 | (eval $ac_link) 2>conftest.er1 | |
6670 | ac_status=$? | |
6671 | grep -v '^ *+' conftest.er1 >conftest.err | |
6672 | rm -f conftest.er1 | |
6673 | cat conftest.err >&5 | |
6674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6675 | (exit $ac_status); } && | |
6676 | { ac_try='test -z "$ac_c_werror_flag" | |
6677 | || test ! -s conftest.err' | |
6678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6679 | (eval $ac_try) 2>&5 | |
6680 | ac_status=$? | |
6681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6682 | (exit $ac_status); }; } && | |
6683 | { ac_try='test -s conftest$ac_exeext' | |
6684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6685 | (eval $ac_try) 2>&5 | |
6686 | ac_status=$? | |
6687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6688 | (exit $ac_status); }; }; then | |
6689 | ac_cv_search_opendir="-l$ac_lib" | |
6690 | break | |
4e8d927d | 6691 | else |
b4e70030 JB |
6692 | echo "$as_me: failed program was:" >&5 |
6693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6694 | ||
6695 | fi | |
6696 | rm -f conftest.err conftest.$ac_objext \ | |
6697 | conftest$ac_exeext conftest.$ac_ext | |
6698 | done | |
0e5d83e3 | 6699 | fi |
bec39cab | 6700 | LIBS=$ac_func_search_save_LIBS |
0e5d83e3 | 6701 | fi |
b4e70030 JB |
6702 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
6703 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
6704 | if test "$ac_cv_search_opendir" != no; then | |
6705 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
0e5d83e3 | 6706 | |
0e5d83e3 JJ |
6707 | fi |
6708 | ||
d28f9cdf | 6709 | else |
b4e70030 JB |
6710 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
6711 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
6712 | if test "${ac_cv_search_opendir+set}" = set; then |
6713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6714 | else | |
6715 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 6716 | ac_cv_search_opendir=no |
bec39cab AC |
6717 | cat >conftest.$ac_ext <<_ACEOF |
6718 | /* confdefs.h. */ | |
6719 | _ACEOF | |
6720 | cat confdefs.h >>conftest.$ac_ext | |
6721 | cat >>conftest.$ac_ext <<_ACEOF | |
6722 | /* end confdefs.h. */ | |
d28f9cdf | 6723 | |
b4e70030 | 6724 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
6725 | #ifdef __cplusplus |
6726 | extern "C" | |
d28f9cdf | 6727 | #endif |
b4e70030 JB |
6728 | /* We use char because int might match the return type of a gcc2 |
6729 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
6730 | char opendir (); |
6731 | int | |
6732 | main () | |
6733 | { | |
b4e70030 | 6734 | opendir (); |
bec39cab AC |
6735 | ; |
6736 | return 0; | |
6737 | } | |
6738 | _ACEOF | |
b4e70030 | 6739 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
6740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6741 | (eval $ac_link) 2>conftest.er1 | |
6742 | ac_status=$? | |
6743 | grep -v '^ *+' conftest.er1 >conftest.err | |
6744 | rm -f conftest.er1 | |
6745 | cat conftest.err >&5 | |
6746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6747 | (exit $ac_status); } && | |
b4e70030 JB |
6748 | { ac_try='test -z "$ac_c_werror_flag" |
6749 | || test ! -s conftest.err' | |
bec39cab AC |
6750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6751 | (eval $ac_try) 2>&5 | |
6752 | ac_status=$? | |
6753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6754 | (exit $ac_status); }; } && | |
6755 | { ac_try='test -s conftest$ac_exeext' | |
6756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6757 | (eval $ac_try) 2>&5 | |
6758 | ac_status=$? | |
6759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6760 | (exit $ac_status); }; }; then | |
b4e70030 | 6761 | ac_cv_search_opendir="none required" |
d28f9cdf | 6762 | else |
bec39cab AC |
6763 | echo "$as_me: failed program was:" >&5 |
6764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6765 | ||
d28f9cdf | 6766 | fi |
bec39cab | 6767 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
6768 | conftest$ac_exeext conftest.$ac_ext |
6769 | if test "$ac_cv_search_opendir" = no; then | |
6770 | for ac_lib in x; do | |
6771 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6772 | cat >conftest.$ac_ext <<_ACEOF | |
6773 | /* confdefs.h. */ | |
6774 | _ACEOF | |
6775 | cat confdefs.h >>conftest.$ac_ext | |
6776 | cat >>conftest.$ac_ext <<_ACEOF | |
6777 | /* end confdefs.h. */ | |
6778 | ||
6779 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6780 | #ifdef __cplusplus | |
6781 | extern "C" | |
6782 | #endif | |
6783 | /* We use char because int might match the return type of a gcc2 | |
6784 | builtin and then its argument prototype would still apply. */ | |
6785 | char opendir (); | |
6786 | int | |
6787 | main () | |
6788 | { | |
6789 | opendir (); | |
6790 | ; | |
6791 | return 0; | |
6792 | } | |
6793 | _ACEOF | |
6794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6796 | (eval $ac_link) 2>conftest.er1 | |
6797 | ac_status=$? | |
6798 | grep -v '^ *+' conftest.er1 >conftest.err | |
6799 | rm -f conftest.er1 | |
6800 | cat conftest.err >&5 | |
6801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6802 | (exit $ac_status); } && | |
6803 | { ac_try='test -z "$ac_c_werror_flag" | |
6804 | || test ! -s conftest.err' | |
6805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6806 | (eval $ac_try) 2>&5 | |
6807 | ac_status=$? | |
6808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6809 | (exit $ac_status); }; } && | |
6810 | { ac_try='test -s conftest$ac_exeext' | |
6811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6812 | (eval $ac_try) 2>&5 | |
6813 | ac_status=$? | |
6814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6815 | (exit $ac_status); }; }; then | |
6816 | ac_cv_search_opendir="-l$ac_lib" | |
6817 | break | |
4e8d927d | 6818 | else |
b4e70030 JB |
6819 | echo "$as_me: failed program was:" >&5 |
6820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6821 | ||
6822 | fi | |
6823 | rm -f conftest.err conftest.$ac_objext \ | |
6824 | conftest$ac_exeext conftest.$ac_ext | |
6825 | done | |
bec39cab AC |
6826 | fi |
6827 | LIBS=$ac_func_search_save_LIBS | |
d28f9cdf | 6828 | fi |
b4e70030 JB |
6829 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
6830 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
6831 | if test "$ac_cv_search_opendir" != no; then | |
6832 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
d28f9cdf | 6833 | |
d28f9cdf DJ |
6834 | fi |
6835 | ||
bec39cab | 6836 | fi |
b0b1c2c0 | 6837 | |
b4e70030 JB |
6838 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
6839 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 | |
bec39cab AC |
6840 | if test "${ac_cv_header_stat_broken+set}" = set; then |
6841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b0b1c2c0 | 6842 | else |
bec39cab AC |
6843 | cat >conftest.$ac_ext <<_ACEOF |
6844 | /* confdefs.h. */ | |
6845 | _ACEOF | |
6846 | cat confdefs.h >>conftest.$ac_ext | |
6847 | cat >>conftest.$ac_ext <<_ACEOF | |
6848 | /* end confdefs.h. */ | |
6849 | #include <sys/types.h> | |
6850 | #include <sys/stat.h> | |
b0b1c2c0 | 6851 | |
b4e70030 | 6852 | #if defined(S_ISBLK) && defined(S_IFDIR) |
bec39cab AC |
6853 | # if S_ISBLK (S_IFDIR) |
6854 | You lose. | |
6855 | # endif | |
6856 | #endif | |
b0b1c2c0 | 6857 | |
b4e70030 | 6858 | #if defined(S_ISBLK) && defined(S_IFCHR) |
bec39cab AC |
6859 | # if S_ISBLK (S_IFCHR) |
6860 | You lose. | |
6861 | # endif | |
6862 | #endif | |
d28f9cdf | 6863 | |
b4e70030 | 6864 | #if defined(S_ISLNK) && defined(S_IFREG) |
bec39cab AC |
6865 | # if S_ISLNK (S_IFREG) |
6866 | You lose. | |
6867 | # endif | |
6868 | #endif | |
d28f9cdf | 6869 | |
b4e70030 | 6870 | #if defined(S_ISSOCK) && defined(S_IFREG) |
bec39cab AC |
6871 | # if S_ISSOCK (S_IFREG) |
6872 | You lose. | |
6873 | # endif | |
6874 | #endif | |
6875 | ||
6876 | _ACEOF | |
6877 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6878 | $EGREP "You lose" >/dev/null 2>&1; then | |
6879 | ac_cv_header_stat_broken=yes | |
d28f9cdf | 6880 | else |
bec39cab | 6881 | ac_cv_header_stat_broken=no |
d28f9cdf DJ |
6882 | fi |
6883 | rm -f conftest* | |
d28f9cdf | 6884 | |
d28f9cdf | 6885 | fi |
b4e70030 JB |
6886 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
6887 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 | |
bec39cab | 6888 | if test $ac_cv_header_stat_broken = yes; then |
d28f9cdf | 6889 | |
bec39cab AC |
6890 | cat >>confdefs.h <<\_ACEOF |
6891 | #define STAT_MACROS_BROKEN 1 | |
6892 | _ACEOF | |
8bb2c122 | 6893 | |
7a292a7a | 6894 | fi |
bec39cab | 6895 | |
b4e70030 JB |
6896 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
6897 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
bec39cab AC |
6898 | if test "${ac_cv_header_stdc+set}" = set; then |
6899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7a292a7a | 6900 | else |
bec39cab AC |
6901 | cat >conftest.$ac_ext <<_ACEOF |
6902 | /* confdefs.h. */ | |
6903 | _ACEOF | |
6904 | cat confdefs.h >>conftest.$ac_ext | |
6905 | cat >>conftest.$ac_ext <<_ACEOF | |
6906 | /* end confdefs.h. */ | |
6907 | #include <stdlib.h> | |
6908 | #include <stdarg.h> | |
6909 | #include <string.h> | |
6910 | #include <float.h> | |
7a292a7a | 6911 | |
bec39cab AC |
6912 | int |
6913 | main () | |
6914 | { | |
7a292a7a | 6915 | |
bec39cab AC |
6916 | ; |
6917 | return 0; | |
6918 | } | |
6919 | _ACEOF | |
6920 | rm -f conftest.$ac_objext | |
6921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6922 | (eval $ac_compile) 2>conftest.er1 | |
6923 | ac_status=$? | |
6924 | grep -v '^ *+' conftest.er1 >conftest.err | |
6925 | rm -f conftest.er1 | |
6926 | cat conftest.err >&5 | |
6927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6928 | (exit $ac_status); } && | |
b4e70030 JB |
6929 | { ac_try='test -z "$ac_c_werror_flag" |
6930 | || test ! -s conftest.err' | |
bec39cab AC |
6931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6932 | (eval $ac_try) 2>&5 | |
6933 | ac_status=$? | |
6934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6935 | (exit $ac_status); }; } && | |
6936 | { ac_try='test -s conftest.$ac_objext' | |
6937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6938 | (eval $ac_try) 2>&5 | |
6939 | ac_status=$? | |
6940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6941 | (exit $ac_status); }; }; then | |
6942 | ac_cv_header_stdc=yes | |
c906108c | 6943 | else |
bec39cab AC |
6944 | echo "$as_me: failed program was:" >&5 |
6945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 6946 | |
b4e70030 | 6947 | ac_cv_header_stdc=no |
c906108c | 6948 | fi |
bec39cab | 6949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 6950 | |
bec39cab AC |
6951 | if test $ac_cv_header_stdc = yes; then |
6952 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6953 | cat >conftest.$ac_ext <<_ACEOF | |
6954 | /* confdefs.h. */ | |
6955 | _ACEOF | |
6956 | cat confdefs.h >>conftest.$ac_ext | |
6957 | cat >>conftest.$ac_ext <<_ACEOF | |
6958 | /* end confdefs.h. */ | |
6959 | #include <string.h> | |
c906108c | 6960 | |
bec39cab AC |
6961 | _ACEOF |
6962 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6963 | $EGREP "memchr" >/dev/null 2>&1; then | |
6964 | : | |
8bb2c122 | 6965 | else |
bec39cab | 6966 | ac_cv_header_stdc=no |
8bb2c122 | 6967 | fi |
bec39cab AC |
6968 | rm -f conftest* |
6969 | ||
c906108c SS |
6970 | fi |
6971 | ||
bec39cab AC |
6972 | if test $ac_cv_header_stdc = yes; then |
6973 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6974 | cat >conftest.$ac_ext <<_ACEOF | |
6975 | /* confdefs.h. */ | |
6976 | _ACEOF | |
6977 | cat confdefs.h >>conftest.$ac_ext | |
6978 | cat >>conftest.$ac_ext <<_ACEOF | |
6979 | /* end confdefs.h. */ | |
6980 | #include <stdlib.h> | |
6981 | ||
6982 | _ACEOF | |
6983 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6984 | $EGREP "free" >/dev/null 2>&1; then | |
6985 | : | |
c906108c | 6986 | else |
bec39cab | 6987 | ac_cv_header_stdc=no |
c906108c | 6988 | fi |
bec39cab AC |
6989 | rm -f conftest* |
6990 | ||
c906108c SS |
6991 | fi |
6992 | ||
bec39cab AC |
6993 | if test $ac_cv_header_stdc = yes; then |
6994 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6995 | if test "$cross_compiling" = yes; then | |
6996 | : | |
c906108c | 6997 | else |
bec39cab AC |
6998 | cat >conftest.$ac_ext <<_ACEOF |
6999 | /* confdefs.h. */ | |
7000 | _ACEOF | |
7001 | cat confdefs.h >>conftest.$ac_ext | |
7002 | cat >>conftest.$ac_ext <<_ACEOF | |
7003 | /* end confdefs.h. */ | |
7004 | #include <ctype.h> | |
7005 | #if ((' ' & 0x0FF) == 0x020) | |
7006 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7007 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7008 | #else | |
7009 | # define ISLOWER(c) \ | |
7010 | (('a' <= (c) && (c) <= 'i') \ | |
7011 | || ('j' <= (c) && (c) <= 'r') \ | |
7012 | || ('s' <= (c) && (c) <= 'z')) | |
7013 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7014 | #endif | |
7015 | ||
7016 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7017 | int | |
7018 | main () | |
7019 | { | |
7020 | int i; | |
7021 | for (i = 0; i < 256; i++) | |
7022 | if (XOR (islower (i), ISLOWER (i)) | |
7023 | || toupper (i) != TOUPPER (i)) | |
b4e70030 JB |
7024 | exit(2); |
7025 | exit (0); | |
bec39cab AC |
7026 | } |
7027 | _ACEOF | |
7028 | rm -f conftest$ac_exeext | |
7029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7030 | (eval $ac_link) 2>&5 | |
7031 | ac_status=$? | |
7032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7033 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7035 | (eval $ac_try) 2>&5 | |
7036 | ac_status=$? | |
7037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7038 | (exit $ac_status); }; }; then | |
7039 | : | |
7040 | else | |
7041 | echo "$as_me: program exited with status $ac_status" >&5 | |
7042 | echo "$as_me: failed program was:" >&5 | |
7043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7044 | ||
7045 | ( exit $ac_status ) | |
7046 | ac_cv_header_stdc=no | |
c906108c | 7047 | fi |
b4e70030 | 7048 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 7049 | fi |
c906108c | 7050 | fi |
bec39cab | 7051 | fi |
b4e70030 JB |
7052 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
7053 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
bec39cab | 7054 | if test $ac_cv_header_stdc = yes; then |
c906108c | 7055 | |
bec39cab AC |
7056 | cat >>confdefs.h <<\_ACEOF |
7057 | #define STDC_HEADERS 1 | |
7058 | _ACEOF | |
c906108c | 7059 | |
bec39cab | 7060 | fi |
8bb2c122 | 7061 | |
bec39cab | 7062 | |
7cb9022a | 7063 | for ac_header in nlist.h |
bec39cab AC |
7064 | do |
7065 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7067 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7068 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7069 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7071 | fi | |
b4e70030 JB |
7072 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7073 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7074 | else |
7075 | # Is the header compilable? | |
b4e70030 JB |
7076 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7077 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7078 | cat >conftest.$ac_ext <<_ACEOF |
7079 | /* confdefs.h. */ | |
7080 | _ACEOF | |
7081 | cat confdefs.h >>conftest.$ac_ext | |
7082 | cat >>conftest.$ac_ext <<_ACEOF | |
7083 | /* end confdefs.h. */ | |
7084 | $ac_includes_default | |
7085 | #include <$ac_header> | |
7086 | _ACEOF | |
7087 | rm -f conftest.$ac_objext | |
7088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7089 | (eval $ac_compile) 2>conftest.er1 | |
7090 | ac_status=$? | |
7091 | grep -v '^ *+' conftest.er1 >conftest.err | |
7092 | rm -f conftest.er1 | |
7093 | cat conftest.err >&5 | |
7094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7095 | (exit $ac_status); } && | |
b4e70030 JB |
7096 | { ac_try='test -z "$ac_c_werror_flag" |
7097 | || test ! -s conftest.err' | |
bec39cab AC |
7098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7099 | (eval $ac_try) 2>&5 | |
7100 | ac_status=$? | |
7101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7102 | (exit $ac_status); }; } && | |
7103 | { ac_try='test -s conftest.$ac_objext' | |
7104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7105 | (eval $ac_try) 2>&5 | |
7106 | ac_status=$? | |
7107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7108 | (exit $ac_status); }; }; then | |
7109 | ac_header_compiler=yes | |
7110 | else | |
7111 | echo "$as_me: failed program was:" >&5 | |
7112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7113 | ||
b4e70030 | 7114 | ac_header_compiler=no |
bec39cab AC |
7115 | fi |
7116 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7117 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7118 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7119 | |
7120 | # Is the header present? | |
b4e70030 JB |
7121 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7122 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7123 | cat >conftest.$ac_ext <<_ACEOF |
7124 | /* confdefs.h. */ | |
7125 | _ACEOF | |
7126 | cat confdefs.h >>conftest.$ac_ext | |
7127 | cat >>conftest.$ac_ext <<_ACEOF | |
7128 | /* end confdefs.h. */ | |
7129 | #include <$ac_header> | |
7130 | _ACEOF | |
7131 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7132 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7133 | ac_status=$? | |
7134 | grep -v '^ *+' conftest.er1 >conftest.err | |
7135 | rm -f conftest.er1 | |
7136 | cat conftest.err >&5 | |
7137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7138 | (exit $ac_status); } >/dev/null; then | |
7139 | if test -s conftest.err; then | |
7140 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7141 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7142 | else | |
7143 | ac_cpp_err= | |
7144 | fi | |
c906108c | 7145 | else |
bec39cab | 7146 | ac_cpp_err=yes |
c906108c | 7147 | fi |
bec39cab AC |
7148 | if test -z "$ac_cpp_err"; then |
7149 | ac_header_preproc=yes | |
c906108c | 7150 | else |
bec39cab AC |
7151 | echo "$as_me: failed program was:" >&5 |
7152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 7153 | |
bec39cab AC |
7154 | ac_header_preproc=no |
7155 | fi | |
7156 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
7157 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7158 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 7159 | |
bec39cab AC |
7160 | # So? What about this header? |
7161 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7162 | yes:no: ) | |
7163 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7164 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7165 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7166 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7167 | ac_header_preproc=yes | |
7168 | ;; | |
7169 | no:yes:* ) | |
7170 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7171 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7172 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7173 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7174 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7175 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7176 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7177 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7178 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7179 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7180 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7181 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7182 | ( |
7183 | cat <<\_ASBOX | |
7184 | ## ------------------------------------------ ## | |
7185 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7186 | ## ------------------------------------------ ## | |
7187 | _ASBOX | |
7188 | ) | | |
7189 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7190 | ;; |
7191 | esac | |
b4e70030 JB |
7192 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7193 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7194 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
95ca63c4 | 7196 | else |
bec39cab | 7197 | eval "$as_ac_Header=\$ac_header_preproc" |
95ca63c4 | 7198 | fi |
b4e70030 JB |
7199 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7200 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7201 | |
95ca63c4 | 7202 | fi |
bec39cab AC |
7203 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7204 | cat >>confdefs.h <<_ACEOF | |
7205 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7206 | _ACEOF | |
7207 | ||
95ca63c4 CF |
7208 | fi |
7209 | ||
bec39cab | 7210 | done |
95ca63c4 CF |
7211 | |
7212 | ||
7cb9022a | 7213 | for ac_header in link.h |
bec39cab AC |
7214 | do |
7215 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7216 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7217 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7218 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7219 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 7220 | else |
7cb9022a | 7221 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
7222 | /* confdefs.h. */ |
7223 | _ACEOF | |
7224 | cat confdefs.h >>conftest.$ac_ext | |
7225 | cat >>conftest.$ac_ext <<_ACEOF | |
7226 | /* end confdefs.h. */ | |
7cb9022a MK |
7227 | #if HAVE_SYS_TYPES_H |
7228 | # include <sys/types.h> | |
7229 | #endif | |
7230 | #if HAVE_NLIST_H | |
7231 | # include <nlist.h> | |
7232 | #endif | |
7233 | ||
7234 | ||
bec39cab AC |
7235 | #include <$ac_header> |
7236 | _ACEOF | |
7237 | rm -f conftest.$ac_objext | |
7238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7239 | (eval $ac_compile) 2>conftest.er1 | |
7240 | ac_status=$? | |
7241 | grep -v '^ *+' conftest.er1 >conftest.err | |
7242 | rm -f conftest.er1 | |
7243 | cat conftest.err >&5 | |
7244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7245 | (exit $ac_status); } && | |
b4e70030 JB |
7246 | { ac_try='test -z "$ac_c_werror_flag" |
7247 | || test ! -s conftest.err' | |
bec39cab AC |
7248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7249 | (eval $ac_try) 2>&5 | |
7250 | ac_status=$? | |
7251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7252 | (exit $ac_status); }; } && | |
7253 | { ac_try='test -s conftest.$ac_objext' | |
7254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7255 | (eval $ac_try) 2>&5 | |
7256 | ac_status=$? | |
7257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7258 | (exit $ac_status); }; }; then | |
7cb9022a | 7259 | eval "$as_ac_Header=yes" |
bec39cab AC |
7260 | else |
7261 | echo "$as_me: failed program was:" >&5 | |
7262 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7263 | ||
b4e70030 | 7264 | eval "$as_ac_Header=no" |
bec39cab AC |
7265 | fi |
7266 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab | 7267 | fi |
b4e70030 JB |
7268 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7269 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7270 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7271 | cat >>confdefs.h <<_ACEOF | |
7272 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7273 | _ACEOF | |
95ca63c4 | 7274 | |
bec39cab | 7275 | fi |
95ca63c4 | 7276 | |
bec39cab | 7277 | done |
95ca63c4 | 7278 | |
c906108c | 7279 | |
7cb9022a | 7280 | for ac_header in machine/reg.h |
bec39cab AC |
7281 | do |
7282 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7283 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7284 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7285 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7286 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7288 | fi | |
b4e70030 JB |
7289 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7290 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7291 | else |
7292 | # Is the header compilable? | |
b4e70030 JB |
7293 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7294 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7295 | cat >conftest.$ac_ext <<_ACEOF |
7296 | /* confdefs.h. */ | |
7297 | _ACEOF | |
7298 | cat confdefs.h >>conftest.$ac_ext | |
7299 | cat >>conftest.$ac_ext <<_ACEOF | |
7300 | /* end confdefs.h. */ | |
7301 | $ac_includes_default | |
7302 | #include <$ac_header> | |
7303 | _ACEOF | |
7304 | rm -f conftest.$ac_objext | |
7305 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7306 | (eval $ac_compile) 2>conftest.er1 | |
7307 | ac_status=$? | |
7308 | grep -v '^ *+' conftest.er1 >conftest.err | |
7309 | rm -f conftest.er1 | |
7310 | cat conftest.err >&5 | |
7311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7312 | (exit $ac_status); } && | |
b4e70030 JB |
7313 | { ac_try='test -z "$ac_c_werror_flag" |
7314 | || test ! -s conftest.err' | |
bec39cab AC |
7315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7316 | (eval $ac_try) 2>&5 | |
7317 | ac_status=$? | |
7318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7319 | (exit $ac_status); }; } && | |
7320 | { ac_try='test -s conftest.$ac_objext' | |
7321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7322 | (eval $ac_try) 2>&5 | |
7323 | ac_status=$? | |
7324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7325 | (exit $ac_status); }; }; then | |
7326 | ac_header_compiler=yes | |
7327 | else | |
7328 | echo "$as_me: failed program was:" >&5 | |
7329 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7330 | ||
b4e70030 | 7331 | ac_header_compiler=no |
bec39cab AC |
7332 | fi |
7333 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7334 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7335 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7336 | |
7337 | # Is the header present? | |
b4e70030 JB |
7338 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7339 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7340 | cat >conftest.$ac_ext <<_ACEOF |
7341 | /* confdefs.h. */ | |
7342 | _ACEOF | |
7343 | cat confdefs.h >>conftest.$ac_ext | |
7344 | cat >>conftest.$ac_ext <<_ACEOF | |
7345 | /* end confdefs.h. */ | |
7346 | #include <$ac_header> | |
7347 | _ACEOF | |
7348 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7349 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7350 | ac_status=$? | |
7351 | grep -v '^ *+' conftest.er1 >conftest.err | |
7352 | rm -f conftest.er1 | |
7353 | cat conftest.err >&5 | |
7354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7355 | (exit $ac_status); } >/dev/null; then | |
7356 | if test -s conftest.err; then | |
7357 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7358 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7359 | else | |
7360 | ac_cpp_err= | |
7361 | fi | |
75c6e08a | 7362 | else |
bec39cab | 7363 | ac_cpp_err=yes |
75c6e08a | 7364 | fi |
bec39cab AC |
7365 | if test -z "$ac_cpp_err"; then |
7366 | ac_header_preproc=yes | |
7367 | else | |
7368 | echo "$as_me: failed program was:" >&5 | |
7369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7370 | ||
7371 | ac_header_preproc=no | |
75c6e08a | 7372 | fi |
bec39cab | 7373 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7374 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7375 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7376 | |
7377 | # So? What about this header? | |
7378 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7379 | yes:no: ) | |
7380 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7381 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7382 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7383 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7384 | ac_header_preproc=yes | |
7385 | ;; | |
7386 | no:yes:* ) | |
7387 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7388 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7389 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7390 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7391 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7392 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7393 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7394 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7395 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7396 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7397 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7398 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7399 | ( |
7400 | cat <<\_ASBOX | |
7401 | ## ------------------------------------------ ## | |
7402 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7403 | ## ------------------------------------------ ## | |
7404 | _ASBOX | |
7405 | ) | | |
7406 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7407 | ;; |
7408 | esac | |
b4e70030 JB |
7409 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7410 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7411 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7412 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
75c6e08a | 7413 | else |
bec39cab AC |
7414 | eval "$as_ac_Header=\$ac_header_preproc" |
7415 | fi | |
b4e70030 JB |
7416 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7417 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7418 | |
75c6e08a | 7419 | fi |
bec39cab AC |
7420 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7421 | cat >>confdefs.h <<_ACEOF | |
7422 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7423 | _ACEOF | |
75c6e08a | 7424 | |
bec39cab | 7425 | fi |
75c6e08a | 7426 | |
bec39cab | 7427 | done |
75c6e08a MK |
7428 | |
7429 | ||
9a156167 | 7430 | |
bec39cab AC |
7431 | for ac_header in poll.h sys/poll.h |
7432 | do | |
7433 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7434 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7435 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7436 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7437 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7438 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7439 | fi | |
b4e70030 JB |
7440 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7441 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7442 | else |
7443 | # Is the header compilable? | |
b4e70030 JB |
7444 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7445 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7446 | cat >conftest.$ac_ext <<_ACEOF |
7447 | /* confdefs.h. */ | |
7448 | _ACEOF | |
7449 | cat confdefs.h >>conftest.$ac_ext | |
7450 | cat >>conftest.$ac_ext <<_ACEOF | |
7451 | /* end confdefs.h. */ | |
7452 | $ac_includes_default | |
7453 | #include <$ac_header> | |
7454 | _ACEOF | |
7455 | rm -f conftest.$ac_objext | |
7456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7457 | (eval $ac_compile) 2>conftest.er1 | |
7458 | ac_status=$? | |
7459 | grep -v '^ *+' conftest.er1 >conftest.err | |
7460 | rm -f conftest.er1 | |
7461 | cat conftest.err >&5 | |
7462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7463 | (exit $ac_status); } && | |
b4e70030 JB |
7464 | { ac_try='test -z "$ac_c_werror_flag" |
7465 | || test ! -s conftest.err' | |
bec39cab AC |
7466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7467 | (eval $ac_try) 2>&5 | |
7468 | ac_status=$? | |
7469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7470 | (exit $ac_status); }; } && | |
7471 | { ac_try='test -s conftest.$ac_objext' | |
7472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7473 | (eval $ac_try) 2>&5 | |
7474 | ac_status=$? | |
7475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7476 | (exit $ac_status); }; }; then | |
7477 | ac_header_compiler=yes | |
7478 | else | |
7479 | echo "$as_me: failed program was:" >&5 | |
7480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7481 | ||
b4e70030 | 7482 | ac_header_compiler=no |
bec39cab AC |
7483 | fi |
7484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7485 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7486 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7487 | |
7488 | # Is the header present? | |
b4e70030 JB |
7489 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7490 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7491 | cat >conftest.$ac_ext <<_ACEOF |
7492 | /* confdefs.h. */ | |
7493 | _ACEOF | |
7494 | cat confdefs.h >>conftest.$ac_ext | |
7495 | cat >>conftest.$ac_ext <<_ACEOF | |
7496 | /* end confdefs.h. */ | |
7497 | #include <$ac_header> | |
7498 | _ACEOF | |
7499 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7500 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7501 | ac_status=$? | |
7502 | grep -v '^ *+' conftest.er1 >conftest.err | |
7503 | rm -f conftest.er1 | |
7504 | cat conftest.err >&5 | |
7505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7506 | (exit $ac_status); } >/dev/null; then | |
7507 | if test -s conftest.err; then | |
7508 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7509 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7510 | else | |
7511 | ac_cpp_err= | |
7512 | fi | |
9a156167 | 7513 | else |
bec39cab | 7514 | ac_cpp_err=yes |
9a156167 | 7515 | fi |
bec39cab AC |
7516 | if test -z "$ac_cpp_err"; then |
7517 | ac_header_preproc=yes | |
7518 | else | |
7519 | echo "$as_me: failed program was:" >&5 | |
7520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 7521 | |
bec39cab | 7522 | ac_header_preproc=no |
9a156167 | 7523 | fi |
bec39cab | 7524 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7525 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7526 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 7527 | |
bec39cab AC |
7528 | # So? What about this header? |
7529 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7530 | yes:no: ) | |
7531 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7532 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7533 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7534 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7535 | ac_header_preproc=yes | |
7536 | ;; | |
7537 | no:yes:* ) | |
7538 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7539 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7540 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7541 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7542 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7543 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7544 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7545 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7546 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7547 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7548 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7549 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7550 | ( |
7551 | cat <<\_ASBOX | |
7552 | ## ------------------------------------------ ## | |
7553 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7554 | ## ------------------------------------------ ## | |
7555 | _ASBOX | |
7556 | ) | | |
7557 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7558 | ;; |
7559 | esac | |
b4e70030 JB |
7560 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7561 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7562 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 7564 | else |
bec39cab | 7565 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 7566 | fi |
b4e70030 JB |
7567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7568 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 | 7569 | |
bec39cab AC |
7570 | fi |
7571 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7572 | cat >>confdefs.h <<_ACEOF | |
7573 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7574 | _ACEOF | |
9a156167 | 7575 | |
bec39cab | 7576 | fi |
9a156167 | 7577 | |
bec39cab | 7578 | done |
9a156167 | 7579 | |
9a156167 | 7580 | |
9a156167 | 7581 | |
bec39cab AC |
7582 | |
7583 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h | |
7584 | do | |
7585 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7586 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7587 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7588 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7589 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7591 | fi | |
b4e70030 JB |
7592 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7593 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7594 | else |
7595 | # Is the header compilable? | |
b4e70030 JB |
7596 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7597 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7598 | cat >conftest.$ac_ext <<_ACEOF |
7599 | /* confdefs.h. */ | |
7600 | _ACEOF | |
7601 | cat confdefs.h >>conftest.$ac_ext | |
7602 | cat >>conftest.$ac_ext <<_ACEOF | |
436868fb DP |
7603 | /* end confdefs.h. */ |
7604 | $ac_includes_default | |
7605 | #include <$ac_header> | |
7606 | _ACEOF | |
7607 | rm -f conftest.$ac_objext | |
7608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7609 | (eval $ac_compile) 2>conftest.er1 | |
7610 | ac_status=$? | |
7611 | grep -v '^ *+' conftest.er1 >conftest.err | |
7612 | rm -f conftest.er1 | |
7613 | cat conftest.err >&5 | |
7614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7615 | (exit $ac_status); } && | |
7616 | { ac_try='test -z "$ac_c_werror_flag" | |
7617 | || test ! -s conftest.err' | |
7618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7619 | (eval $ac_try) 2>&5 | |
7620 | ac_status=$? | |
7621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7622 | (exit $ac_status); }; } && | |
7623 | { ac_try='test -s conftest.$ac_objext' | |
7624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7625 | (eval $ac_try) 2>&5 | |
7626 | ac_status=$? | |
7627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7628 | (exit $ac_status); }; }; then | |
7629 | ac_header_compiler=yes | |
7630 | else | |
7631 | echo "$as_me: failed program was:" >&5 | |
7632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7633 | ||
7634 | ac_header_compiler=no | |
7635 | fi | |
7636 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7637 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7638 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7639 | ||
7640 | # Is the header present? | |
7641 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7642 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7643 | cat >conftest.$ac_ext <<_ACEOF | |
7644 | /* confdefs.h. */ | |
7645 | _ACEOF | |
7646 | cat confdefs.h >>conftest.$ac_ext | |
7647 | cat >>conftest.$ac_ext <<_ACEOF | |
7648 | /* end confdefs.h. */ | |
7649 | #include <$ac_header> | |
7650 | _ACEOF | |
7651 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7652 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7653 | ac_status=$? | |
7654 | grep -v '^ *+' conftest.er1 >conftest.err | |
7655 | rm -f conftest.er1 | |
7656 | cat conftest.err >&5 | |
7657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7658 | (exit $ac_status); } >/dev/null; then | |
7659 | if test -s conftest.err; then | |
7660 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7661 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7662 | else | |
7663 | ac_cpp_err= | |
7664 | fi | |
7665 | else | |
7666 | ac_cpp_err=yes | |
7667 | fi | |
7668 | if test -z "$ac_cpp_err"; then | |
7669 | ac_header_preproc=yes | |
7670 | else | |
7671 | echo "$as_me: failed program was:" >&5 | |
7672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7673 | ||
7674 | ac_header_preproc=no | |
7675 | fi | |
7676 | rm -f conftest.err conftest.$ac_ext | |
7677 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7678 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7679 | ||
7680 | # So? What about this header? | |
7681 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7682 | yes:no: ) | |
7683 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7684 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7685 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7686 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7687 | ac_header_preproc=yes | |
7688 | ;; | |
7689 | no:yes:* ) | |
7690 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7691 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7692 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7693 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7694 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7695 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7696 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7697 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7698 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7699 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7700 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7701 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7702 | ( | |
7703 | cat <<\_ASBOX | |
7704 | ## ------------------------------------------ ## | |
7705 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7706 | ## ------------------------------------------ ## | |
7707 | _ASBOX | |
7708 | ) | | |
7709 | sed "s/^/$as_me: WARNING: /" >&2 | |
7710 | ;; | |
7711 | esac | |
7712 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7714 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7716 | else | |
7717 | eval "$as_ac_Header=\$ac_header_preproc" | |
7718 | fi | |
7719 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7720 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7721 | ||
7722 | fi | |
7723 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7724 | cat >>confdefs.h <<_ACEOF | |
7725 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7726 | _ACEOF | |
7727 | ||
7728 | fi | |
7729 | ||
7730 | done | |
7731 | ||
7732 | ||
7733 | for ac_header in signal.h | |
7734 | do | |
7735 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7736 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7737 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7738 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7739 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7741 | fi | |
7742 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7743 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7744 | else | |
7745 | # Is the header compilable? | |
7746 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7747 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7748 | cat >conftest.$ac_ext <<_ACEOF | |
7749 | /* confdefs.h. */ | |
7750 | _ACEOF | |
7751 | cat confdefs.h >>conftest.$ac_ext | |
7752 | cat >>conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
7753 | /* end confdefs.h. */ |
7754 | $ac_includes_default | |
7755 | #include <$ac_header> | |
7756 | _ACEOF | |
7757 | rm -f conftest.$ac_objext | |
7758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7759 | (eval $ac_compile) 2>conftest.er1 | |
7760 | ac_status=$? | |
7761 | grep -v '^ *+' conftest.er1 >conftest.err | |
7762 | rm -f conftest.er1 | |
7763 | cat conftest.err >&5 | |
7764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7765 | (exit $ac_status); } && | |
b4e70030 JB |
7766 | { ac_try='test -z "$ac_c_werror_flag" |
7767 | || test ! -s conftest.err' | |
bec39cab AC |
7768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7769 | (eval $ac_try) 2>&5 | |
7770 | ac_status=$? | |
7771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7772 | (exit $ac_status); }; } && | |
7773 | { ac_try='test -s conftest.$ac_objext' | |
7774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7775 | (eval $ac_try) 2>&5 | |
7776 | ac_status=$? | |
7777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7778 | (exit $ac_status); }; }; then | |
7779 | ac_header_compiler=yes | |
7780 | else | |
7781 | echo "$as_me: failed program was:" >&5 | |
7782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7783 | ||
b4e70030 | 7784 | ac_header_compiler=no |
bec39cab AC |
7785 | fi |
7786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7787 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7788 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7789 | |
7790 | # Is the header present? | |
b4e70030 JB |
7791 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7792 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7793 | cat >conftest.$ac_ext <<_ACEOF |
7794 | /* confdefs.h. */ | |
7795 | _ACEOF | |
7796 | cat confdefs.h >>conftest.$ac_ext | |
7797 | cat >>conftest.$ac_ext <<_ACEOF | |
7798 | /* end confdefs.h. */ | |
7799 | #include <$ac_header> | |
7800 | _ACEOF | |
7801 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7802 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7803 | ac_status=$? | |
7804 | grep -v '^ *+' conftest.er1 >conftest.err | |
7805 | rm -f conftest.er1 | |
7806 | cat conftest.err >&5 | |
7807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7808 | (exit $ac_status); } >/dev/null; then | |
7809 | if test -s conftest.err; then | |
7810 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7811 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7812 | else | |
7813 | ac_cpp_err= | |
7814 | fi | |
9a156167 | 7815 | else |
bec39cab | 7816 | ac_cpp_err=yes |
9a156167 | 7817 | fi |
bec39cab AC |
7818 | if test -z "$ac_cpp_err"; then |
7819 | ac_header_preproc=yes | |
7820 | else | |
7821 | echo "$as_me: failed program was:" >&5 | |
7822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 7823 | |
bec39cab | 7824 | ac_header_preproc=no |
9a156167 | 7825 | fi |
bec39cab | 7826 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7827 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7828 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 7829 | |
bec39cab AC |
7830 | # So? What about this header? |
7831 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7832 | yes:no: ) | |
7833 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7834 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7835 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7836 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7837 | ac_header_preproc=yes | |
7838 | ;; | |
7839 | no:yes:* ) | |
7840 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7841 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7842 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7843 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7844 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7845 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7846 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7847 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7848 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7849 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7850 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7851 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7852 | ( |
7853 | cat <<\_ASBOX | |
7854 | ## ------------------------------------------ ## | |
7855 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7856 | ## ------------------------------------------ ## | |
7857 | _ASBOX | |
7858 | ) | | |
7859 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7860 | ;; |
7861 | esac | |
b4e70030 JB |
7862 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7863 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7864 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7865 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 7866 | else |
bec39cab | 7867 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 7868 | fi |
b4e70030 JB |
7869 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7870 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 MK |
7871 | |
7872 | fi | |
bec39cab AC |
7873 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7874 | cat >>confdefs.h <<_ACEOF | |
7875 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7876 | _ACEOF | |
9a156167 | 7877 | |
bec39cab AC |
7878 | fi |
7879 | ||
7880 | done | |
9a156167 | 7881 | |
c890192f | 7882 | |
bec39cab AC |
7883 | for ac_header in stddef.h |
7884 | do | |
7885 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7886 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7887 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7888 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7889 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7891 | fi | |
b4e70030 JB |
7892 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7893 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7894 | else |
7895 | # Is the header compilable? | |
b4e70030 JB |
7896 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7897 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7898 | cat >conftest.$ac_ext <<_ACEOF |
7899 | /* confdefs.h. */ | |
7900 | _ACEOF | |
7901 | cat confdefs.h >>conftest.$ac_ext | |
7902 | cat >>conftest.$ac_ext <<_ACEOF | |
7903 | /* end confdefs.h. */ | |
7904 | $ac_includes_default | |
7905 | #include <$ac_header> | |
7906 | _ACEOF | |
7907 | rm -f conftest.$ac_objext | |
7908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7909 | (eval $ac_compile) 2>conftest.er1 | |
7910 | ac_status=$? | |
7911 | grep -v '^ *+' conftest.er1 >conftest.err | |
7912 | rm -f conftest.er1 | |
7913 | cat conftest.err >&5 | |
7914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7915 | (exit $ac_status); } && | |
b4e70030 JB |
7916 | { ac_try='test -z "$ac_c_werror_flag" |
7917 | || test ! -s conftest.err' | |
bec39cab AC |
7918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7919 | (eval $ac_try) 2>&5 | |
7920 | ac_status=$? | |
7921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7922 | (exit $ac_status); }; } && | |
7923 | { ac_try='test -s conftest.$ac_objext' | |
7924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7925 | (eval $ac_try) 2>&5 | |
7926 | ac_status=$? | |
7927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7928 | (exit $ac_status); }; }; then | |
7929 | ac_header_compiler=yes | |
7930 | else | |
7931 | echo "$as_me: failed program was:" >&5 | |
7932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7933 | ||
b4e70030 | 7934 | ac_header_compiler=no |
bec39cab AC |
7935 | fi |
7936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7937 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7938 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7939 | |
7940 | # Is the header present? | |
b4e70030 JB |
7941 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7942 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7943 | cat >conftest.$ac_ext <<_ACEOF |
7944 | /* confdefs.h. */ | |
7945 | _ACEOF | |
7946 | cat confdefs.h >>conftest.$ac_ext | |
7947 | cat >>conftest.$ac_ext <<_ACEOF | |
7948 | /* end confdefs.h. */ | |
7949 | #include <$ac_header> | |
7950 | _ACEOF | |
7951 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7952 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7953 | ac_status=$? | |
7954 | grep -v '^ *+' conftest.er1 >conftest.err | |
7955 | rm -f conftest.er1 | |
7956 | cat conftest.err >&5 | |
7957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7958 | (exit $ac_status); } >/dev/null; then | |
7959 | if test -s conftest.err; then | |
7960 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7961 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7962 | else | |
7963 | ac_cpp_err= | |
7964 | fi | |
c890192f | 7965 | else |
bec39cab AC |
7966 | ac_cpp_err=yes |
7967 | fi | |
7968 | if test -z "$ac_cpp_err"; then | |
7969 | ac_header_preproc=yes | |
c890192f | 7970 | else |
bec39cab AC |
7971 | echo "$as_me: failed program was:" >&5 |
7972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7973 | ||
7974 | ac_header_preproc=no | |
c890192f | 7975 | fi |
bec39cab | 7976 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7977 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7978 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7979 | |
7980 | # So? What about this header? | |
7981 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7982 | yes:no: ) | |
7983 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7984 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7985 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7986 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7987 | ac_header_preproc=yes | |
7988 | ;; | |
7989 | no:yes:* ) | |
7990 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7991 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7992 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7993 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7994 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7995 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7996 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7997 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7998 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7999 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8000 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8001 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8002 | ( |
8003 | cat <<\_ASBOX | |
8004 | ## ------------------------------------------ ## | |
8005 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8006 | ## ------------------------------------------ ## | |
8007 | _ASBOX | |
8008 | ) | | |
8009 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8010 | ;; |
8011 | esac | |
b4e70030 JB |
8012 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8013 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8014 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c890192f | 8016 | else |
bec39cab | 8017 | eval "$as_ac_Header=\$ac_header_preproc" |
c890192f | 8018 | fi |
b4e70030 JB |
8019 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8020 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 8021 | |
c890192f | 8022 | fi |
bec39cab AC |
8023 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8024 | cat >>confdefs.h <<_ACEOF | |
8025 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8026 | _ACEOF | |
c890192f | 8027 | |
c890192f MK |
8028 | fi |
8029 | ||
bec39cab | 8030 | done |
9a156167 | 8031 | |
bec39cab AC |
8032 | |
8033 | for ac_header in stdlib.h | |
8034 | do | |
8035 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8036 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8037 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8038 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8039 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8040 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8041 | fi | |
b4e70030 JB |
8042 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8043 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8044 | else |
8045 | # Is the header compilable? | |
b4e70030 JB |
8046 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8047 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8048 | cat >conftest.$ac_ext <<_ACEOF |
8049 | /* confdefs.h. */ | |
8050 | _ACEOF | |
8051 | cat confdefs.h >>conftest.$ac_ext | |
8052 | cat >>conftest.$ac_ext <<_ACEOF | |
8053 | /* end confdefs.h. */ | |
8054 | $ac_includes_default | |
8055 | #include <$ac_header> | |
8056 | _ACEOF | |
8057 | rm -f conftest.$ac_objext | |
8058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8059 | (eval $ac_compile) 2>conftest.er1 | |
8060 | ac_status=$? | |
8061 | grep -v '^ *+' conftest.er1 >conftest.err | |
8062 | rm -f conftest.er1 | |
8063 | cat conftest.err >&5 | |
8064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8065 | (exit $ac_status); } && | |
b4e70030 JB |
8066 | { ac_try='test -z "$ac_c_werror_flag" |
8067 | || test ! -s conftest.err' | |
bec39cab AC |
8068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8069 | (eval $ac_try) 2>&5 | |
8070 | ac_status=$? | |
8071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8072 | (exit $ac_status); }; } && | |
8073 | { ac_try='test -s conftest.$ac_objext' | |
8074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8075 | (eval $ac_try) 2>&5 | |
8076 | ac_status=$? | |
8077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8078 | (exit $ac_status); }; }; then | |
8079 | ac_header_compiler=yes | |
8080 | else | |
8081 | echo "$as_me: failed program was:" >&5 | |
8082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8083 | ||
b4e70030 | 8084 | ac_header_compiler=no |
bec39cab AC |
8085 | fi |
8086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8087 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8088 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8089 | |
8090 | # Is the header present? | |
b4e70030 JB |
8091 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8092 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8093 | cat >conftest.$ac_ext <<_ACEOF |
8094 | /* confdefs.h. */ | |
8095 | _ACEOF | |
8096 | cat confdefs.h >>conftest.$ac_ext | |
8097 | cat >>conftest.$ac_ext <<_ACEOF | |
8098 | /* end confdefs.h. */ | |
8099 | #include <$ac_header> | |
8100 | _ACEOF | |
8101 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8102 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8103 | ac_status=$? | |
8104 | grep -v '^ *+' conftest.er1 >conftest.err | |
8105 | rm -f conftest.er1 | |
8106 | cat conftest.err >&5 | |
8107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8108 | (exit $ac_status); } >/dev/null; then | |
8109 | if test -s conftest.err; then | |
8110 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8111 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8112 | else | |
8113 | ac_cpp_err= | |
8114 | fi | |
9a156167 | 8115 | else |
bec39cab AC |
8116 | ac_cpp_err=yes |
8117 | fi | |
8118 | if test -z "$ac_cpp_err"; then | |
8119 | ac_header_preproc=yes | |
9a156167 | 8120 | else |
bec39cab AC |
8121 | echo "$as_me: failed program was:" >&5 |
8122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8123 | ||
8124 | ac_header_preproc=no | |
9a156167 | 8125 | fi |
bec39cab | 8126 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8127 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8128 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8129 | |
8130 | # So? What about this header? | |
8131 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8132 | yes:no: ) | |
8133 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8134 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8135 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8136 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8137 | ac_header_preproc=yes | |
8138 | ;; | |
8139 | no:yes:* ) | |
8140 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8141 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8142 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8143 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8144 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8145 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8146 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8147 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8148 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8149 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8150 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8151 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8152 | ( |
8153 | cat <<\_ASBOX | |
8154 | ## ------------------------------------------ ## | |
8155 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8156 | ## ------------------------------------------ ## | |
8157 | _ASBOX | |
8158 | ) | | |
8159 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8160 | ;; |
8161 | esac | |
b4e70030 JB |
8162 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8163 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8164 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8165 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 8166 | else |
bec39cab | 8167 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 8168 | fi |
b4e70030 JB |
8169 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8170 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 8171 | |
9a156167 | 8172 | fi |
bec39cab AC |
8173 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8174 | cat >>confdefs.h <<_ACEOF | |
8175 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8176 | _ACEOF | |
9a156167 | 8177 | |
9a156167 MK |
8178 | fi |
8179 | ||
bec39cab AC |
8180 | done |
8181 | ||
06825bd1 | 8182 | |
bec39cab AC |
8183 | for ac_header in stdint.h |
8184 | do | |
8185 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8186 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8187 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8188 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8189 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8191 | fi | |
b4e70030 JB |
8192 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8193 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8194 | else |
8195 | # Is the header compilable? | |
b4e70030 JB |
8196 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8197 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8198 | cat >conftest.$ac_ext <<_ACEOF |
8199 | /* confdefs.h. */ | |
8200 | _ACEOF | |
8201 | cat confdefs.h >>conftest.$ac_ext | |
8202 | cat >>conftest.$ac_ext <<_ACEOF | |
8203 | /* end confdefs.h. */ | |
8204 | $ac_includes_default | |
8205 | #include <$ac_header> | |
8206 | _ACEOF | |
8207 | rm -f conftest.$ac_objext | |
8208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8209 | (eval $ac_compile) 2>conftest.er1 | |
8210 | ac_status=$? | |
8211 | grep -v '^ *+' conftest.er1 >conftest.err | |
8212 | rm -f conftest.er1 | |
8213 | cat conftest.err >&5 | |
8214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8215 | (exit $ac_status); } && | |
b4e70030 JB |
8216 | { ac_try='test -z "$ac_c_werror_flag" |
8217 | || test ! -s conftest.err' | |
bec39cab AC |
8218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8219 | (eval $ac_try) 2>&5 | |
8220 | ac_status=$? | |
8221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8222 | (exit $ac_status); }; } && | |
8223 | { ac_try='test -s conftest.$ac_objext' | |
8224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8225 | (eval $ac_try) 2>&5 | |
8226 | ac_status=$? | |
8227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8228 | (exit $ac_status); }; }; then | |
8229 | ac_header_compiler=yes | |
8230 | else | |
8231 | echo "$as_me: failed program was:" >&5 | |
8232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8233 | ||
b4e70030 | 8234 | ac_header_compiler=no |
bec39cab AC |
8235 | fi |
8236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8237 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8238 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8239 | |
8240 | # Is the header present? | |
b4e70030 JB |
8241 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8242 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8243 | cat >conftest.$ac_ext <<_ACEOF |
8244 | /* confdefs.h. */ | |
8245 | _ACEOF | |
8246 | cat confdefs.h >>conftest.$ac_ext | |
8247 | cat >>conftest.$ac_ext <<_ACEOF | |
8248 | /* end confdefs.h. */ | |
8249 | #include <$ac_header> | |
8250 | _ACEOF | |
8251 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8252 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8253 | ac_status=$? | |
8254 | grep -v '^ *+' conftest.er1 >conftest.err | |
8255 | rm -f conftest.er1 | |
8256 | cat conftest.err >&5 | |
8257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8258 | (exit $ac_status); } >/dev/null; then | |
8259 | if test -s conftest.err; then | |
8260 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8261 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8262 | else | |
8263 | ac_cpp_err= | |
8264 | fi | |
06825bd1 | 8265 | else |
bec39cab AC |
8266 | ac_cpp_err=yes |
8267 | fi | |
8268 | if test -z "$ac_cpp_err"; then | |
8269 | ac_header_preproc=yes | |
06825bd1 | 8270 | else |
bec39cab AC |
8271 | echo "$as_me: failed program was:" >&5 |
8272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8273 | ||
8274 | ac_header_preproc=no | |
06825bd1 | 8275 | fi |
bec39cab | 8276 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8277 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8278 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8279 | |
8280 | # So? What about this header? | |
8281 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8282 | yes:no: ) | |
8283 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8284 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8285 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8286 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8287 | ac_header_preproc=yes | |
8288 | ;; | |
8289 | no:yes:* ) | |
8290 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8291 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8292 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8293 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8294 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8295 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8296 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8297 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8298 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8299 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8300 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8301 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8302 | ( |
8303 | cat <<\_ASBOX | |
8304 | ## ------------------------------------------ ## | |
8305 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8306 | ## ------------------------------------------ ## | |
8307 | _ASBOX | |
8308 | ) | | |
8309 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8310 | ;; |
8311 | esac | |
b4e70030 JB |
8312 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8313 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8314 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
06825bd1 | 8316 | else |
bec39cab | 8317 | eval "$as_ac_Header=\$ac_header_preproc" |
06825bd1 | 8318 | fi |
b4e70030 JB |
8319 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8320 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 8321 | |
06825bd1 | 8322 | fi |
bec39cab AC |
8323 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8324 | cat >>confdefs.h <<_ACEOF | |
8325 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8326 | _ACEOF | |
06825bd1 | 8327 | |
06825bd1 | 8328 | fi |
4f0be353 | 8329 | |
bec39cab | 8330 | done |
4f0be353 | 8331 | |
06825bd1 | 8332 | |
06825bd1 | 8333 | |
bec39cab AC |
8334 | |
8335 | for ac_header in string.h memory.h strings.h | |
8336 | do | |
8337 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8338 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8339 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8340 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8341 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8343 | fi | |
b4e70030 JB |
8344 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8345 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8346 | else |
8347 | # Is the header compilable? | |
b4e70030 JB |
8348 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8349 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8350 | cat >conftest.$ac_ext <<_ACEOF |
8351 | /* confdefs.h. */ | |
8352 | _ACEOF | |
8353 | cat confdefs.h >>conftest.$ac_ext | |
8354 | cat >>conftest.$ac_ext <<_ACEOF | |
8355 | /* end confdefs.h. */ | |
8356 | $ac_includes_default | |
8357 | #include <$ac_header> | |
8358 | _ACEOF | |
8359 | rm -f conftest.$ac_objext | |
8360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8361 | (eval $ac_compile) 2>conftest.er1 | |
8362 | ac_status=$? | |
8363 | grep -v '^ *+' conftest.er1 >conftest.err | |
8364 | rm -f conftest.er1 | |
8365 | cat conftest.err >&5 | |
8366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8367 | (exit $ac_status); } && | |
b4e70030 JB |
8368 | { ac_try='test -z "$ac_c_werror_flag" |
8369 | || test ! -s conftest.err' | |
bec39cab AC |
8370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8371 | (eval $ac_try) 2>&5 | |
8372 | ac_status=$? | |
8373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8374 | (exit $ac_status); }; } && | |
8375 | { ac_try='test -s conftest.$ac_objext' | |
8376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8377 | (eval $ac_try) 2>&5 | |
8378 | ac_status=$? | |
8379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8380 | (exit $ac_status); }; }; then | |
8381 | ac_header_compiler=yes | |
8382 | else | |
8383 | echo "$as_me: failed program was:" >&5 | |
8384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8385 | ||
b4e70030 | 8386 | ac_header_compiler=no |
bec39cab AC |
8387 | fi |
8388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8389 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8390 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8391 | |
8392 | # Is the header present? | |
b4e70030 JB |
8393 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8394 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8395 | cat >conftest.$ac_ext <<_ACEOF |
8396 | /* confdefs.h. */ | |
8397 | _ACEOF | |
8398 | cat confdefs.h >>conftest.$ac_ext | |
8399 | cat >>conftest.$ac_ext <<_ACEOF | |
8400 | /* end confdefs.h. */ | |
8401 | #include <$ac_header> | |
8402 | _ACEOF | |
8403 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8404 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8405 | ac_status=$? | |
8406 | grep -v '^ *+' conftest.er1 >conftest.err | |
8407 | rm -f conftest.er1 | |
8408 | cat conftest.err >&5 | |
8409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8410 | (exit $ac_status); } >/dev/null; then | |
8411 | if test -s conftest.err; then | |
8412 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8413 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8414 | else | |
8415 | ac_cpp_err= | |
8416 | fi | |
06825bd1 | 8417 | else |
bec39cab AC |
8418 | ac_cpp_err=yes |
8419 | fi | |
8420 | if test -z "$ac_cpp_err"; then | |
8421 | ac_header_preproc=yes | |
06825bd1 | 8422 | else |
bec39cab AC |
8423 | echo "$as_me: failed program was:" >&5 |
8424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8425 | ||
8426 | ac_header_preproc=no | |
06825bd1 | 8427 | fi |
bec39cab | 8428 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8429 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8430 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8431 | |
8432 | # So? What about this header? | |
8433 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8434 | yes:no: ) | |
8435 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8436 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8437 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8438 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8439 | ac_header_preproc=yes | |
8440 | ;; | |
8441 | no:yes:* ) | |
8442 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8443 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8444 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8445 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8446 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8447 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8448 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8449 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8450 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8451 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8452 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8453 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8454 | ( |
8455 | cat <<\_ASBOX | |
8456 | ## ------------------------------------------ ## | |
8457 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8458 | ## ------------------------------------------ ## | |
8459 | _ASBOX | |
8460 | ) | | |
8461 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8462 | ;; |
8463 | esac | |
b4e70030 JB |
8464 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8465 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8466 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8468 | else | |
8469 | eval "$as_ac_Header=\$ac_header_preproc" | |
06825bd1 | 8470 | fi |
b4e70030 JB |
8471 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8472 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
06825bd1 | 8473 | |
06825bd1 | 8474 | fi |
bec39cab AC |
8475 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8476 | cat >>confdefs.h <<_ACEOF | |
8477 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8478 | _ACEOF | |
06825bd1 | 8479 | |
06825bd1 MK |
8480 | fi |
8481 | ||
bec39cab | 8482 | done |
5ee754fc | 8483 | |
bec39cab AC |
8484 | |
8485 | for ac_header in sys/fault.h | |
5ee754fc | 8486 | do |
bec39cab | 8487 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
8488 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8489 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8490 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8491 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8492 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8493 | fi | |
b4e70030 JB |
8494 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8495 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8496 | else |
8497 | # Is the header compilable? | |
b4e70030 JB |
8498 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8499 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8500 | cat >conftest.$ac_ext <<_ACEOF |
8501 | /* confdefs.h. */ | |
8502 | _ACEOF | |
8503 | cat confdefs.h >>conftest.$ac_ext | |
8504 | cat >>conftest.$ac_ext <<_ACEOF | |
8505 | /* end confdefs.h. */ | |
8506 | $ac_includes_default | |
8507 | #include <$ac_header> | |
8508 | _ACEOF | |
8509 | rm -f conftest.$ac_objext | |
8510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8511 | (eval $ac_compile) 2>conftest.er1 | |
8512 | ac_status=$? | |
8513 | grep -v '^ *+' conftest.er1 >conftest.err | |
8514 | rm -f conftest.er1 | |
8515 | cat conftest.err >&5 | |
8516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8517 | (exit $ac_status); } && | |
b4e70030 JB |
8518 | { ac_try='test -z "$ac_c_werror_flag" |
8519 | || test ! -s conftest.err' | |
bec39cab AC |
8520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8521 | (eval $ac_try) 2>&5 | |
8522 | ac_status=$? | |
8523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8524 | (exit $ac_status); }; } && | |
8525 | { ac_try='test -s conftest.$ac_objext' | |
8526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8527 | (eval $ac_try) 2>&5 | |
8528 | ac_status=$? | |
8529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8530 | (exit $ac_status); }; }; then | |
8531 | ac_header_compiler=yes | |
8532 | else | |
8533 | echo "$as_me: failed program was:" >&5 | |
8534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8535 | ||
b4e70030 | 8536 | ac_header_compiler=no |
bec39cab AC |
8537 | fi |
8538 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8539 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8540 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8541 | |
8542 | # Is the header present? | |
b4e70030 JB |
8543 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8544 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8545 | cat >conftest.$ac_ext <<_ACEOF |
8546 | /* confdefs.h. */ | |
8547 | _ACEOF | |
8548 | cat confdefs.h >>conftest.$ac_ext | |
8549 | cat >>conftest.$ac_ext <<_ACEOF | |
8550 | /* end confdefs.h. */ | |
8551 | #include <$ac_header> | |
8552 | _ACEOF | |
8553 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8554 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8555 | ac_status=$? | |
8556 | grep -v '^ *+' conftest.er1 >conftest.err | |
8557 | rm -f conftest.er1 | |
8558 | cat conftest.err >&5 | |
8559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8560 | (exit $ac_status); } >/dev/null; then | |
8561 | if test -s conftest.err; then | |
8562 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8563 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8564 | else | |
8565 | ac_cpp_err= | |
8566 | fi | |
5ee754fc | 8567 | else |
bec39cab | 8568 | ac_cpp_err=yes |
5ee754fc | 8569 | fi |
bec39cab AC |
8570 | if test -z "$ac_cpp_err"; then |
8571 | ac_header_preproc=yes | |
8572 | else | |
8573 | echo "$as_me: failed program was:" >&5 | |
8574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 8575 | |
bec39cab | 8576 | ac_header_preproc=no |
5ee754fc | 8577 | fi |
bec39cab | 8578 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8579 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8580 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8581 | |
8582 | # So? What about this header? | |
8583 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8584 | yes:no: ) | |
8585 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8586 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8587 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8588 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8589 | ac_header_preproc=yes | |
8590 | ;; | |
8591 | no:yes:* ) | |
8592 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8593 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8594 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8595 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8596 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8597 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8598 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8599 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8600 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8601 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8602 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8603 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8604 | ( |
8605 | cat <<\_ASBOX | |
8606 | ## ------------------------------------------ ## | |
8607 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8608 | ## ------------------------------------------ ## | |
8609 | _ASBOX | |
8610 | ) | | |
8611 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8612 | ;; |
8613 | esac | |
b4e70030 JB |
8614 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8615 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8616 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 8618 | else |
bec39cab | 8619 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 8620 | fi |
b4e70030 JB |
8621 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8622 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
c906108c | 8623 | |
5ee754fc | 8624 | fi |
bec39cab AC |
8625 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8626 | cat >>confdefs.h <<_ACEOF | |
8627 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8628 | _ACEOF | |
c906108c | 8629 | |
5ee754fc | 8630 | fi |
bec39cab AC |
8631 | |
8632 | done | |
8633 | ||
8634 | ||
8635 | for ac_header in sys/file.h | |
8636 | do | |
8637 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8638 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8639 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8640 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8641 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8643 | fi | |
b4e70030 JB |
8644 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8645 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8646 | else |
8647 | # Is the header compilable? | |
b4e70030 JB |
8648 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8649 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8650 | cat >conftest.$ac_ext <<_ACEOF |
8651 | /* confdefs.h. */ | |
8652 | _ACEOF | |
8653 | cat confdefs.h >>conftest.$ac_ext | |
8654 | cat >>conftest.$ac_ext <<_ACEOF | |
8655 | /* end confdefs.h. */ | |
8656 | $ac_includes_default | |
8657 | #include <$ac_header> | |
8658 | _ACEOF | |
8659 | rm -f conftest.$ac_objext | |
8660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8661 | (eval $ac_compile) 2>conftest.er1 | |
8662 | ac_status=$? | |
8663 | grep -v '^ *+' conftest.er1 >conftest.err | |
8664 | rm -f conftest.er1 | |
8665 | cat conftest.err >&5 | |
8666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8667 | (exit $ac_status); } && | |
b4e70030 JB |
8668 | { ac_try='test -z "$ac_c_werror_flag" |
8669 | || test ! -s conftest.err' | |
bec39cab AC |
8670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8671 | (eval $ac_try) 2>&5 | |
8672 | ac_status=$? | |
8673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8674 | (exit $ac_status); }; } && | |
8675 | { ac_try='test -s conftest.$ac_objext' | |
8676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8677 | (eval $ac_try) 2>&5 | |
8678 | ac_status=$? | |
8679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8680 | (exit $ac_status); }; }; then | |
8681 | ac_header_compiler=yes | |
8682 | else | |
8683 | echo "$as_me: failed program was:" >&5 | |
8684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8685 | ||
b4e70030 | 8686 | ac_header_compiler=no |
bec39cab AC |
8687 | fi |
8688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8689 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8690 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8691 | |
8692 | # Is the header present? | |
b4e70030 JB |
8693 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8694 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8695 | cat >conftest.$ac_ext <<_ACEOF |
8696 | /* confdefs.h. */ | |
8697 | _ACEOF | |
8698 | cat confdefs.h >>conftest.$ac_ext | |
8699 | cat >>conftest.$ac_ext <<_ACEOF | |
8700 | /* end confdefs.h. */ | |
8701 | #include <$ac_header> | |
8702 | _ACEOF | |
8703 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8704 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8705 | ac_status=$? | |
8706 | grep -v '^ *+' conftest.er1 >conftest.err | |
8707 | rm -f conftest.er1 | |
8708 | cat conftest.err >&5 | |
8709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8710 | (exit $ac_status); } >/dev/null; then | |
8711 | if test -s conftest.err; then | |
8712 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8713 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8714 | else | |
8715 | ac_cpp_err= | |
8716 | fi | |
5ee754fc | 8717 | else |
bec39cab | 8718 | ac_cpp_err=yes |
5ee754fc | 8719 | fi |
bec39cab AC |
8720 | if test -z "$ac_cpp_err"; then |
8721 | ac_header_preproc=yes | |
8722 | else | |
8723 | echo "$as_me: failed program was:" >&5 | |
8724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8725 | |
bec39cab | 8726 | ac_header_preproc=no |
5ee754fc | 8727 | fi |
bec39cab | 8728 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8729 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8730 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 8731 | |
bec39cab AC |
8732 | # So? What about this header? |
8733 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8734 | yes:no: ) | |
8735 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8736 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8737 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8738 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8739 | ac_header_preproc=yes | |
8740 | ;; | |
8741 | no:yes:* ) | |
8742 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8743 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8744 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8745 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8746 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8747 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8748 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8749 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8750 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8751 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8752 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8753 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8754 | ( |
8755 | cat <<\_ASBOX | |
8756 | ## ------------------------------------------ ## | |
8757 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8758 | ## ------------------------------------------ ## | |
8759 | _ASBOX | |
8760 | ) | | |
8761 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8762 | ;; |
8763 | esac | |
b4e70030 JB |
8764 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8765 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8766 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8767 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 8768 | else |
bec39cab AC |
8769 | eval "$as_ac_Header=\$ac_header_preproc" |
8770 | fi | |
b4e70030 JB |
8771 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8772 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 8773 | |
bec39cab AC |
8774 | fi |
8775 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8776 | cat >>confdefs.h <<_ACEOF | |
8777 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8778 | _ACEOF | |
5ee754fc | 8779 | |
bec39cab | 8780 | fi |
5ee754fc | 8781 | |
bec39cab | 8782 | done |
5ee754fc | 8783 | |
5ee754fc | 8784 | |
bec39cab AC |
8785 | for ac_header in sys/filio.h |
8786 | do | |
8787 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8788 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8789 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8790 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8791 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8793 | fi | |
b4e70030 JB |
8794 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8795 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8796 | else |
8797 | # Is the header compilable? | |
b4e70030 JB |
8798 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8799 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8800 | cat >conftest.$ac_ext <<_ACEOF |
8801 | /* confdefs.h. */ | |
8802 | _ACEOF | |
8803 | cat confdefs.h >>conftest.$ac_ext | |
8804 | cat >>conftest.$ac_ext <<_ACEOF | |
8805 | /* end confdefs.h. */ | |
8806 | $ac_includes_default | |
8807 | #include <$ac_header> | |
8808 | _ACEOF | |
8809 | rm -f conftest.$ac_objext | |
8810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8811 | (eval $ac_compile) 2>conftest.er1 | |
8812 | ac_status=$? | |
8813 | grep -v '^ *+' conftest.er1 >conftest.err | |
8814 | rm -f conftest.er1 | |
8815 | cat conftest.err >&5 | |
8816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8817 | (exit $ac_status); } && | |
b4e70030 JB |
8818 | { ac_try='test -z "$ac_c_werror_flag" |
8819 | || test ! -s conftest.err' | |
bec39cab AC |
8820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8821 | (eval $ac_try) 2>&5 | |
8822 | ac_status=$? | |
8823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8824 | (exit $ac_status); }; } && | |
8825 | { ac_try='test -s conftest.$ac_objext' | |
8826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8827 | (eval $ac_try) 2>&5 | |
8828 | ac_status=$? | |
8829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8830 | (exit $ac_status); }; }; then | |
8831 | ac_header_compiler=yes | |
8832 | else | |
8833 | echo "$as_me: failed program was:" >&5 | |
8834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8835 | ||
b4e70030 | 8836 | ac_header_compiler=no |
bec39cab AC |
8837 | fi |
8838 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8839 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8840 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8841 | |
8842 | # Is the header present? | |
b4e70030 JB |
8843 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8844 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8845 | cat >conftest.$ac_ext <<_ACEOF |
8846 | /* confdefs.h. */ | |
8847 | _ACEOF | |
8848 | cat confdefs.h >>conftest.$ac_ext | |
8849 | cat >>conftest.$ac_ext <<_ACEOF | |
8850 | /* end confdefs.h. */ | |
8851 | #include <$ac_header> | |
8852 | _ACEOF | |
8853 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8854 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8855 | ac_status=$? | |
8856 | grep -v '^ *+' conftest.er1 >conftest.err | |
8857 | rm -f conftest.er1 | |
8858 | cat conftest.err >&5 | |
8859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8860 | (exit $ac_status); } >/dev/null; then | |
8861 | if test -s conftest.err; then | |
8862 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8863 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8864 | else | |
8865 | ac_cpp_err= | |
8866 | fi | |
5ee754fc | 8867 | else |
bec39cab | 8868 | ac_cpp_err=yes |
5ee754fc | 8869 | fi |
bec39cab AC |
8870 | if test -z "$ac_cpp_err"; then |
8871 | ac_header_preproc=yes | |
8872 | else | |
8873 | echo "$as_me: failed program was:" >&5 | |
8874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 8875 | |
bec39cab | 8876 | ac_header_preproc=no |
5ee754fc | 8877 | fi |
bec39cab | 8878 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8879 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8880 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 8881 | |
bec39cab AC |
8882 | # So? What about this header? |
8883 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8884 | yes:no: ) | |
8885 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8886 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8887 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8888 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8889 | ac_header_preproc=yes | |
8890 | ;; | |
8891 | no:yes:* ) | |
8892 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8893 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8894 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8895 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8896 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8897 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8898 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8899 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8900 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8901 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8902 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8903 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8904 | ( |
8905 | cat <<\_ASBOX | |
8906 | ## ------------------------------------------ ## | |
8907 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8908 | ## ------------------------------------------ ## | |
8909 | _ASBOX | |
8910 | ) | | |
8911 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8912 | ;; |
8913 | esac | |
b4e70030 JB |
8914 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8915 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8916 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8917 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 8918 | else |
bec39cab | 8919 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 8920 | fi |
b4e70030 JB |
8921 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8922 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 8923 | |
5ee754fc | 8924 | fi |
bec39cab AC |
8925 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8926 | cat >>confdefs.h <<_ACEOF | |
8927 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8928 | _ACEOF | |
5ee754fc MK |
8929 | |
8930 | fi | |
8931 | ||
bec39cab AC |
8932 | done |
8933 | ||
8934 | ||
8935 | for ac_header in sys/ioctl.h | |
8936 | do | |
8937 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8938 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8939 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8940 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8941 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8942 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8943 | fi | |
b4e70030 JB |
8944 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8945 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8946 | else |
8947 | # Is the header compilable? | |
b4e70030 JB |
8948 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8949 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8950 | cat >conftest.$ac_ext <<_ACEOF |
8951 | /* confdefs.h. */ | |
8952 | _ACEOF | |
8953 | cat confdefs.h >>conftest.$ac_ext | |
8954 | cat >>conftest.$ac_ext <<_ACEOF | |
8955 | /* end confdefs.h. */ | |
8956 | $ac_includes_default | |
8957 | #include <$ac_header> | |
8958 | _ACEOF | |
8959 | rm -f conftest.$ac_objext | |
8960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8961 | (eval $ac_compile) 2>conftest.er1 | |
8962 | ac_status=$? | |
8963 | grep -v '^ *+' conftest.er1 >conftest.err | |
8964 | rm -f conftest.er1 | |
8965 | cat conftest.err >&5 | |
8966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8967 | (exit $ac_status); } && | |
b4e70030 JB |
8968 | { ac_try='test -z "$ac_c_werror_flag" |
8969 | || test ! -s conftest.err' | |
bec39cab AC |
8970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8971 | (eval $ac_try) 2>&5 | |
8972 | ac_status=$? | |
8973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8974 | (exit $ac_status); }; } && | |
8975 | { ac_try='test -s conftest.$ac_objext' | |
8976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8977 | (eval $ac_try) 2>&5 | |
8978 | ac_status=$? | |
8979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8980 | (exit $ac_status); }; }; then | |
8981 | ac_header_compiler=yes | |
8982 | else | |
8983 | echo "$as_me: failed program was:" >&5 | |
8984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8985 | ||
b4e70030 | 8986 | ac_header_compiler=no |
bec39cab AC |
8987 | fi |
8988 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8989 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8990 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8991 | |
8992 | # Is the header present? | |
b4e70030 JB |
8993 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8994 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8995 | cat >conftest.$ac_ext <<_ACEOF |
8996 | /* confdefs.h. */ | |
8997 | _ACEOF | |
8998 | cat confdefs.h >>conftest.$ac_ext | |
8999 | cat >>conftest.$ac_ext <<_ACEOF | |
9000 | /* end confdefs.h. */ | |
9001 | #include <$ac_header> | |
9002 | _ACEOF | |
9003 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9004 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9005 | ac_status=$? | |
9006 | grep -v '^ *+' conftest.er1 >conftest.err | |
9007 | rm -f conftest.er1 | |
9008 | cat conftest.err >&5 | |
9009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9010 | (exit $ac_status); } >/dev/null; then | |
9011 | if test -s conftest.err; then | |
9012 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9013 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9014 | else | |
9015 | ac_cpp_err= | |
9016 | fi | |
5ee754fc | 9017 | else |
bec39cab | 9018 | ac_cpp_err=yes |
5ee754fc | 9019 | fi |
bec39cab AC |
9020 | if test -z "$ac_cpp_err"; then |
9021 | ac_header_preproc=yes | |
9022 | else | |
9023 | echo "$as_me: failed program was:" >&5 | |
9024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 9025 | |
bec39cab | 9026 | ac_header_preproc=no |
5ee754fc | 9027 | fi |
bec39cab | 9028 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9029 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9030 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9031 | |
bec39cab AC |
9032 | # So? What about this header? |
9033 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9034 | yes:no: ) | |
9035 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9036 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9037 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9038 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9039 | ac_header_preproc=yes | |
9040 | ;; | |
9041 | no:yes:* ) | |
9042 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9043 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9044 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9045 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9046 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9047 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9048 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9049 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9050 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9051 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9052 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9053 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9054 | ( |
9055 | cat <<\_ASBOX | |
9056 | ## ------------------------------------------ ## | |
9057 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9058 | ## ------------------------------------------ ## | |
9059 | _ASBOX | |
9060 | ) | | |
9061 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9062 | ;; |
9063 | esac | |
b4e70030 JB |
9064 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 9068 | else |
bec39cab | 9069 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 9070 | fi |
b4e70030 JB |
9071 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9072 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc MK |
9073 | |
9074 | fi | |
bec39cab AC |
9075 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9076 | cat >>confdefs.h <<_ACEOF | |
9077 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9078 | _ACEOF | |
9079 | ||
5ee754fc MK |
9080 | fi |
9081 | ||
bec39cab | 9082 | done |
5ee754fc | 9083 | |
5ee754fc | 9084 | |
bec39cab | 9085 | for ac_header in sys/param.h |
5ee754fc | 9086 | do |
bec39cab | 9087 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9088 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9089 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9090 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9091 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9093 | fi | |
b4e70030 JB |
9094 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9095 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9096 | else |
9097 | # Is the header compilable? | |
b4e70030 JB |
9098 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9099 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9100 | cat >conftest.$ac_ext <<_ACEOF |
9101 | /* confdefs.h. */ | |
9102 | _ACEOF | |
9103 | cat confdefs.h >>conftest.$ac_ext | |
9104 | cat >>conftest.$ac_ext <<_ACEOF | |
9105 | /* end confdefs.h. */ | |
9106 | $ac_includes_default | |
9107 | #include <$ac_header> | |
9108 | _ACEOF | |
9109 | rm -f conftest.$ac_objext | |
9110 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9111 | (eval $ac_compile) 2>conftest.er1 | |
9112 | ac_status=$? | |
9113 | grep -v '^ *+' conftest.er1 >conftest.err | |
9114 | rm -f conftest.er1 | |
9115 | cat conftest.err >&5 | |
9116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9117 | (exit $ac_status); } && | |
b4e70030 JB |
9118 | { ac_try='test -z "$ac_c_werror_flag" |
9119 | || test ! -s conftest.err' | |
bec39cab AC |
9120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9121 | (eval $ac_try) 2>&5 | |
9122 | ac_status=$? | |
9123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9124 | (exit $ac_status); }; } && | |
9125 | { ac_try='test -s conftest.$ac_objext' | |
9126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9127 | (eval $ac_try) 2>&5 | |
9128 | ac_status=$? | |
9129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9130 | (exit $ac_status); }; }; then | |
9131 | ac_header_compiler=yes | |
9132 | else | |
9133 | echo "$as_me: failed program was:" >&5 | |
9134 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9135 | ||
b4e70030 | 9136 | ac_header_compiler=no |
bec39cab AC |
9137 | fi |
9138 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9139 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9140 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9141 | |
9142 | # Is the header present? | |
b4e70030 JB |
9143 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9144 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9145 | cat >conftest.$ac_ext <<_ACEOF |
9146 | /* confdefs.h. */ | |
9147 | _ACEOF | |
9148 | cat confdefs.h >>conftest.$ac_ext | |
9149 | cat >>conftest.$ac_ext <<_ACEOF | |
9150 | /* end confdefs.h. */ | |
9151 | #include <$ac_header> | |
9152 | _ACEOF | |
9153 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9154 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9155 | ac_status=$? | |
9156 | grep -v '^ *+' conftest.er1 >conftest.err | |
9157 | rm -f conftest.er1 | |
9158 | cat conftest.err >&5 | |
9159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9160 | (exit $ac_status); } >/dev/null; then | |
9161 | if test -s conftest.err; then | |
9162 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9163 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9164 | else | |
9165 | ac_cpp_err= | |
9166 | fi | |
5ee754fc | 9167 | else |
bec39cab | 9168 | ac_cpp_err=yes |
5ee754fc | 9169 | fi |
bec39cab AC |
9170 | if test -z "$ac_cpp_err"; then |
9171 | ac_header_preproc=yes | |
9172 | else | |
9173 | echo "$as_me: failed program was:" >&5 | |
9174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 9175 | |
bec39cab | 9176 | ac_header_preproc=no |
5ee754fc | 9177 | fi |
bec39cab | 9178 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9179 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9180 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
9181 | |
9182 | # So? What about this header? | |
9183 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9184 | yes:no: ) | |
9185 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9186 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9187 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9188 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9189 | ac_header_preproc=yes | |
9190 | ;; | |
9191 | no:yes:* ) | |
9192 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9193 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9194 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9195 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9196 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9197 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9198 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9199 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9200 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9201 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9202 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9203 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9204 | ( |
9205 | cat <<\_ASBOX | |
9206 | ## ------------------------------------------ ## | |
9207 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9208 | ## ------------------------------------------ ## | |
9209 | _ASBOX | |
9210 | ) | | |
9211 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9212 | ;; |
9213 | esac | |
b4e70030 JB |
9214 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9215 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9216 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 9218 | else |
bec39cab | 9219 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 9220 | fi |
b4e70030 JB |
9221 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9222 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 9223 | |
5ee754fc | 9224 | fi |
bec39cab AC |
9225 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9226 | cat >>confdefs.h <<_ACEOF | |
9227 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9228 | _ACEOF | |
9229 | ||
5ee754fc | 9230 | fi |
bec39cab | 9231 | |
5ee754fc MK |
9232 | done |
9233 | ||
bec39cab | 9234 | |
7eb368b3 NR |
9235 | for ac_header in sys/resource.h |
9236 | do | |
9237 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9238 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9239 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9240 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9241 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9243 | fi | |
9244 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9245 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9246 | else | |
9247 | # Is the header compilable? | |
9248 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9249 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9250 | cat >conftest.$ac_ext <<_ACEOF | |
9251 | /* confdefs.h. */ | |
9252 | _ACEOF | |
9253 | cat confdefs.h >>conftest.$ac_ext | |
9254 | cat >>conftest.$ac_ext <<_ACEOF | |
9255 | /* end confdefs.h. */ | |
9256 | $ac_includes_default | |
9257 | #include <$ac_header> | |
9258 | _ACEOF | |
9259 | rm -f conftest.$ac_objext | |
9260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9261 | (eval $ac_compile) 2>conftest.er1 | |
9262 | ac_status=$? | |
9263 | grep -v '^ *+' conftest.er1 >conftest.err | |
9264 | rm -f conftest.er1 | |
9265 | cat conftest.err >&5 | |
9266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9267 | (exit $ac_status); } && | |
9268 | { ac_try='test -z "$ac_c_werror_flag" | |
9269 | || test ! -s conftest.err' | |
9270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9271 | (eval $ac_try) 2>&5 | |
9272 | ac_status=$? | |
9273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9274 | (exit $ac_status); }; } && | |
9275 | { ac_try='test -s conftest.$ac_objext' | |
9276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9277 | (eval $ac_try) 2>&5 | |
9278 | ac_status=$? | |
9279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9280 | (exit $ac_status); }; }; then | |
9281 | ac_header_compiler=yes | |
9282 | else | |
9283 | echo "$as_me: failed program was:" >&5 | |
9284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9285 | ||
9286 | ac_header_compiler=no | |
9287 | fi | |
9288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9289 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9290 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9291 | ||
9292 | # Is the header present? | |
9293 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9294 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9295 | cat >conftest.$ac_ext <<_ACEOF | |
9296 | /* confdefs.h. */ | |
9297 | _ACEOF | |
9298 | cat confdefs.h >>conftest.$ac_ext | |
9299 | cat >>conftest.$ac_ext <<_ACEOF | |
9300 | /* end confdefs.h. */ | |
9301 | #include <$ac_header> | |
9302 | _ACEOF | |
9303 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9304 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9305 | ac_status=$? | |
9306 | grep -v '^ *+' conftest.er1 >conftest.err | |
9307 | rm -f conftest.er1 | |
9308 | cat conftest.err >&5 | |
9309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9310 | (exit $ac_status); } >/dev/null; then | |
9311 | if test -s conftest.err; then | |
9312 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9313 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9314 | else | |
9315 | ac_cpp_err= | |
9316 | fi | |
9317 | else | |
9318 | ac_cpp_err=yes | |
9319 | fi | |
9320 | if test -z "$ac_cpp_err"; then | |
9321 | ac_header_preproc=yes | |
9322 | else | |
9323 | echo "$as_me: failed program was:" >&5 | |
9324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9325 | ||
9326 | ac_header_preproc=no | |
9327 | fi | |
9328 | rm -f conftest.err conftest.$ac_ext | |
9329 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9330 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9331 | ||
9332 | # So? What about this header? | |
9333 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9334 | yes:no: ) | |
9335 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9336 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9337 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9338 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9339 | ac_header_preproc=yes | |
9340 | ;; | |
9341 | no:yes:* ) | |
9342 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9343 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9344 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9345 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9346 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9347 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9348 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9349 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9350 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9351 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9352 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9353 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9354 | ( | |
9355 | cat <<\_ASBOX | |
9356 | ## ------------------------------------------ ## | |
9357 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9358 | ## ------------------------------------------ ## | |
9359 | _ASBOX | |
9360 | ) | | |
9361 | sed "s/^/$as_me: WARNING: /" >&2 | |
9362 | ;; | |
9363 | esac | |
9364 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9366 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9368 | else | |
9369 | eval "$as_ac_Header=\$ac_header_preproc" | |
9370 | fi | |
9371 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9372 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9373 | ||
9374 | fi | |
9375 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9376 | cat >>confdefs.h <<_ACEOF | |
9377 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9378 | _ACEOF | |
9379 | ||
9380 | fi | |
9381 | ||
9382 | done | |
9383 | ||
9384 | ||
bec39cab | 9385 | for ac_header in sys/proc.h |
5ee754fc | 9386 | do |
bec39cab | 9387 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9388 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9389 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9390 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 9392 | else |
7cb9022a | 9393 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
9394 | /* confdefs.h. */ |
9395 | _ACEOF | |
9396 | cat confdefs.h >>conftest.$ac_ext | |
9397 | cat >>conftest.$ac_ext <<_ACEOF | |
9398 | /* end confdefs.h. */ | |
7cb9022a MK |
9399 | #if HAVE_SYS_PARAM_H |
9400 | # include <sys/param.h> | |
9401 | #endif | |
9402 | ||
9403 | ||
bec39cab AC |
9404 | #include <$ac_header> |
9405 | _ACEOF | |
9406 | rm -f conftest.$ac_objext | |
9407 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9408 | (eval $ac_compile) 2>conftest.er1 | |
9409 | ac_status=$? | |
9410 | grep -v '^ *+' conftest.er1 >conftest.err | |
9411 | rm -f conftest.er1 | |
9412 | cat conftest.err >&5 | |
9413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9414 | (exit $ac_status); } && | |
b4e70030 JB |
9415 | { ac_try='test -z "$ac_c_werror_flag" |
9416 | || test ! -s conftest.err' | |
bec39cab AC |
9417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9418 | (eval $ac_try) 2>&5 | |
9419 | ac_status=$? | |
9420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9421 | (exit $ac_status); }; } && | |
9422 | { ac_try='test -s conftest.$ac_objext' | |
9423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9424 | (eval $ac_try) 2>&5 | |
9425 | ac_status=$? | |
9426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9427 | (exit $ac_status); }; }; then | |
7cb9022a | 9428 | eval "$as_ac_Header=yes" |
bec39cab AC |
9429 | else |
9430 | echo "$as_me: failed program was:" >&5 | |
9431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9432 | ||
b4e70030 | 9433 | eval "$as_ac_Header=no" |
bec39cab AC |
9434 | fi |
9435 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 9436 | fi |
b4e70030 JB |
9437 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9438 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9439 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9440 | cat >>confdefs.h <<_ACEOF | |
9441 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9442 | _ACEOF | |
9443 | ||
5ee754fc | 9444 | fi |
bec39cab | 9445 | |
5ee754fc MK |
9446 | done |
9447 | ||
bec39cab AC |
9448 | |
9449 | for ac_header in sys/procfs.h | |
5ee754fc | 9450 | do |
bec39cab | 9451 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9452 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
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 | |
bec39cab AC |
9456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9457 | fi | |
b4e70030 JB |
9458 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9459 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9460 | else |
9461 | # Is the header compilable? | |
b4e70030 JB |
9462 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9463 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9464 | cat >conftest.$ac_ext <<_ACEOF |
9465 | /* confdefs.h. */ | |
9466 | _ACEOF | |
9467 | cat confdefs.h >>conftest.$ac_ext | |
9468 | cat >>conftest.$ac_ext <<_ACEOF | |
9469 | /* end confdefs.h. */ | |
9470 | $ac_includes_default | |
9471 | #include <$ac_header> | |
9472 | _ACEOF | |
9473 | rm -f conftest.$ac_objext | |
9474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9475 | (eval $ac_compile) 2>conftest.er1 | |
9476 | ac_status=$? | |
9477 | grep -v '^ *+' conftest.er1 >conftest.err | |
9478 | rm -f conftest.er1 | |
9479 | cat conftest.err >&5 | |
9480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9481 | (exit $ac_status); } && | |
b4e70030 JB |
9482 | { ac_try='test -z "$ac_c_werror_flag" |
9483 | || test ! -s conftest.err' | |
bec39cab AC |
9484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9485 | (eval $ac_try) 2>&5 | |
9486 | ac_status=$? | |
9487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9488 | (exit $ac_status); }; } && | |
9489 | { ac_try='test -s conftest.$ac_objext' | |
9490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9491 | (eval $ac_try) 2>&5 | |
9492 | ac_status=$? | |
9493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9494 | (exit $ac_status); }; }; then | |
9495 | ac_header_compiler=yes | |
9496 | else | |
9497 | echo "$as_me: failed program was:" >&5 | |
9498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9499 | ||
b4e70030 | 9500 | ac_header_compiler=no |
bec39cab AC |
9501 | fi |
9502 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9503 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9504 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9505 | |
9506 | # Is the header present? | |
b4e70030 JB |
9507 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9508 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9509 | cat >conftest.$ac_ext <<_ACEOF |
9510 | /* confdefs.h. */ | |
9511 | _ACEOF | |
9512 | cat confdefs.h >>conftest.$ac_ext | |
9513 | cat >>conftest.$ac_ext <<_ACEOF | |
9514 | /* end confdefs.h. */ | |
9515 | #include <$ac_header> | |
9516 | _ACEOF | |
9517 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9518 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9519 | ac_status=$? | |
9520 | grep -v '^ *+' conftest.er1 >conftest.err | |
9521 | rm -f conftest.er1 | |
9522 | cat conftest.err >&5 | |
9523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9524 | (exit $ac_status); } >/dev/null; then | |
9525 | if test -s conftest.err; then | |
9526 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9527 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9528 | else | |
9529 | ac_cpp_err= | |
9530 | fi | |
9531 | else | |
9532 | ac_cpp_err=yes | |
5ee754fc | 9533 | fi |
bec39cab AC |
9534 | if test -z "$ac_cpp_err"; then |
9535 | ac_header_preproc=yes | |
5ee754fc | 9536 | else |
bec39cab AC |
9537 | echo "$as_me: failed program was:" >&5 |
9538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9539 | ||
9540 | ac_header_preproc=no | |
5ee754fc | 9541 | fi |
bec39cab | 9542 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9543 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9544 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9545 | |
bec39cab AC |
9546 | # So? What about this header? |
9547 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9548 | yes:no: ) | |
9549 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9550 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9551 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9552 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9553 | ac_header_preproc=yes | |
9554 | ;; | |
9555 | no:yes:* ) | |
9556 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9557 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9558 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9559 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9560 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9561 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9562 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9563 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9564 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9565 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9566 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9567 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9568 | ( |
9569 | cat <<\_ASBOX | |
9570 | ## ------------------------------------------ ## | |
9571 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9572 | ## ------------------------------------------ ## | |
9573 | _ASBOX | |
9574 | ) | | |
9575 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9576 | ;; |
9577 | esac | |
b4e70030 JB |
9578 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9579 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9580 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9582 | else | |
9583 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9584 | fi |
b4e70030 JB |
9585 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9586 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9587 | |
5ee754fc | 9588 | fi |
bec39cab AC |
9589 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9590 | cat >>confdefs.h <<_ACEOF | |
9591 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9592 | _ACEOF | |
9593 | ||
5ee754fc | 9594 | fi |
bec39cab | 9595 | |
5ee754fc MK |
9596 | done |
9597 | ||
bec39cab AC |
9598 | |
9599 | ||
9600 | for ac_header in sys/ptrace.h ptrace.h | |
5ee754fc | 9601 | do |
bec39cab | 9602 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9603 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9604 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9605 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9606 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608 | fi | |
b4e70030 JB |
9609 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9610 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9611 | else |
9612 | # Is the header compilable? | |
b4e70030 JB |
9613 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9614 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9615 | cat >conftest.$ac_ext <<_ACEOF |
9616 | /* confdefs.h. */ | |
9617 | _ACEOF | |
9618 | cat confdefs.h >>conftest.$ac_ext | |
9619 | cat >>conftest.$ac_ext <<_ACEOF | |
9620 | /* end confdefs.h. */ | |
9621 | $ac_includes_default | |
9622 | #include <$ac_header> | |
9623 | _ACEOF | |
9624 | rm -f conftest.$ac_objext | |
9625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9626 | (eval $ac_compile) 2>conftest.er1 | |
9627 | ac_status=$? | |
9628 | grep -v '^ *+' conftest.er1 >conftest.err | |
9629 | rm -f conftest.er1 | |
9630 | cat conftest.err >&5 | |
9631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9632 | (exit $ac_status); } && | |
b4e70030 JB |
9633 | { ac_try='test -z "$ac_c_werror_flag" |
9634 | || test ! -s conftest.err' | |
bec39cab AC |
9635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9636 | (eval $ac_try) 2>&5 | |
9637 | ac_status=$? | |
9638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9639 | (exit $ac_status); }; } && | |
9640 | { ac_try='test -s conftest.$ac_objext' | |
9641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9642 | (eval $ac_try) 2>&5 | |
9643 | ac_status=$? | |
9644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9645 | (exit $ac_status); }; }; then | |
9646 | ac_header_compiler=yes | |
9647 | else | |
9648 | echo "$as_me: failed program was:" >&5 | |
9649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9650 | ||
b4e70030 | 9651 | ac_header_compiler=no |
bec39cab AC |
9652 | fi |
9653 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9654 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9655 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9656 | |
9657 | # Is the header present? | |
b4e70030 JB |
9658 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9659 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9660 | cat >conftest.$ac_ext <<_ACEOF |
9661 | /* confdefs.h. */ | |
9662 | _ACEOF | |
9663 | cat confdefs.h >>conftest.$ac_ext | |
9664 | cat >>conftest.$ac_ext <<_ACEOF | |
9665 | /* end confdefs.h. */ | |
9666 | #include <$ac_header> | |
9667 | _ACEOF | |
9668 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9669 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9670 | ac_status=$? | |
9671 | grep -v '^ *+' conftest.er1 >conftest.err | |
9672 | rm -f conftest.er1 | |
9673 | cat conftest.err >&5 | |
9674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9675 | (exit $ac_status); } >/dev/null; then | |
9676 | if test -s conftest.err; then | |
9677 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9678 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9679 | else | |
9680 | ac_cpp_err= | |
9681 | fi | |
9682 | else | |
9683 | ac_cpp_err=yes | |
5ee754fc | 9684 | fi |
bec39cab AC |
9685 | if test -z "$ac_cpp_err"; then |
9686 | ac_header_preproc=yes | |
5ee754fc | 9687 | else |
bec39cab AC |
9688 | echo "$as_me: failed program was:" >&5 |
9689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9690 | ||
9691 | ac_header_preproc=no | |
5ee754fc | 9692 | fi |
bec39cab | 9693 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9694 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9695 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9696 | |
bec39cab AC |
9697 | # So? What about this header? |
9698 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9699 | yes:no: ) | |
9700 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9701 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9702 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9703 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9704 | ac_header_preproc=yes | |
9705 | ;; | |
9706 | no:yes:* ) | |
9707 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9708 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9709 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9710 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9711 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9712 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9713 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9714 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9715 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9716 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9717 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9718 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9719 | ( |
9720 | cat <<\_ASBOX | |
9721 | ## ------------------------------------------ ## | |
9722 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9723 | ## ------------------------------------------ ## | |
9724 | _ASBOX | |
9725 | ) | | |
9726 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9727 | ;; |
9728 | esac | |
b4e70030 JB |
9729 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9730 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9731 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9732 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9733 | else | |
9734 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9735 | fi |
b4e70030 JB |
9736 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9737 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9738 | |
5ee754fc | 9739 | fi |
bec39cab AC |
9740 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9741 | cat >>confdefs.h <<_ACEOF | |
9742 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9743 | _ACEOF | |
9744 | ||
5ee754fc | 9745 | fi |
bec39cab | 9746 | |
5ee754fc MK |
9747 | done |
9748 | ||
bec39cab AC |
9749 | |
9750 | ||
9751 | for ac_header in sys/reg.h sys/debugreg.h | |
5ee754fc | 9752 | do |
bec39cab | 9753 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9754 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9755 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9756 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9757 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9759 | fi | |
b4e70030 JB |
9760 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9761 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9762 | else |
9763 | # Is the header compilable? | |
b4e70030 JB |
9764 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9765 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9766 | cat >conftest.$ac_ext <<_ACEOF |
9767 | /* confdefs.h. */ | |
9768 | _ACEOF | |
9769 | cat confdefs.h >>conftest.$ac_ext | |
9770 | cat >>conftest.$ac_ext <<_ACEOF | |
9771 | /* end confdefs.h. */ | |
9772 | $ac_includes_default | |
9773 | #include <$ac_header> | |
9774 | _ACEOF | |
9775 | rm -f conftest.$ac_objext | |
9776 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9777 | (eval $ac_compile) 2>conftest.er1 | |
9778 | ac_status=$? | |
9779 | grep -v '^ *+' conftest.er1 >conftest.err | |
9780 | rm -f conftest.er1 | |
9781 | cat conftest.err >&5 | |
9782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9783 | (exit $ac_status); } && | |
b4e70030 JB |
9784 | { ac_try='test -z "$ac_c_werror_flag" |
9785 | || test ! -s conftest.err' | |
bec39cab AC |
9786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9787 | (eval $ac_try) 2>&5 | |
9788 | ac_status=$? | |
9789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9790 | (exit $ac_status); }; } && | |
9791 | { ac_try='test -s conftest.$ac_objext' | |
9792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9793 | (eval $ac_try) 2>&5 | |
9794 | ac_status=$? | |
9795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9796 | (exit $ac_status); }; }; then | |
9797 | ac_header_compiler=yes | |
9798 | else | |
9799 | echo "$as_me: failed program was:" >&5 | |
9800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9801 | ||
b4e70030 | 9802 | ac_header_compiler=no |
bec39cab AC |
9803 | fi |
9804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9805 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9806 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9807 | |
9808 | # Is the header present? | |
b4e70030 JB |
9809 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9810 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9811 | cat >conftest.$ac_ext <<_ACEOF |
9812 | /* confdefs.h. */ | |
9813 | _ACEOF | |
9814 | cat confdefs.h >>conftest.$ac_ext | |
9815 | cat >>conftest.$ac_ext <<_ACEOF | |
9816 | /* end confdefs.h. */ | |
9817 | #include <$ac_header> | |
9818 | _ACEOF | |
9819 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9820 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9821 | ac_status=$? | |
9822 | grep -v '^ *+' conftest.er1 >conftest.err | |
9823 | rm -f conftest.er1 | |
9824 | cat conftest.err >&5 | |
9825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9826 | (exit $ac_status); } >/dev/null; then | |
9827 | if test -s conftest.err; then | |
9828 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9829 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9830 | else | |
9831 | ac_cpp_err= | |
9832 | fi | |
9833 | else | |
9834 | ac_cpp_err=yes | |
5ee754fc | 9835 | fi |
bec39cab AC |
9836 | if test -z "$ac_cpp_err"; then |
9837 | ac_header_preproc=yes | |
5ee754fc | 9838 | else |
bec39cab AC |
9839 | echo "$as_me: failed program was:" >&5 |
9840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9841 | ||
9842 | ac_header_preproc=no | |
5ee754fc | 9843 | fi |
bec39cab | 9844 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9845 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9846 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9847 | |
bec39cab AC |
9848 | # So? What about this header? |
9849 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9850 | yes:no: ) | |
9851 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9852 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9853 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9854 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9855 | ac_header_preproc=yes | |
9856 | ;; | |
9857 | no:yes:* ) | |
9858 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9859 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9860 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9861 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9862 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9863 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9864 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9865 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9866 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9867 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9868 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9869 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9870 | ( |
9871 | cat <<\_ASBOX | |
9872 | ## ------------------------------------------ ## | |
9873 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9874 | ## ------------------------------------------ ## | |
9875 | _ASBOX | |
9876 | ) | | |
9877 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9878 | ;; |
9879 | esac | |
b4e70030 JB |
9880 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9881 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9882 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9884 | else | |
9885 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9886 | fi |
b4e70030 JB |
9887 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9888 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9889 | |
5ee754fc | 9890 | fi |
bec39cab AC |
9891 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9892 | cat >>confdefs.h <<_ACEOF | |
9893 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9894 | _ACEOF | |
9895 | ||
5ee754fc | 9896 | fi |
bec39cab | 9897 | |
5ee754fc MK |
9898 | done |
9899 | ||
bec39cab AC |
9900 | |
9901 | for ac_header in sys/select.h | |
5ee754fc | 9902 | do |
bec39cab | 9903 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9904 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9905 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9906 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9907 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9908 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9909 | fi | |
b4e70030 JB |
9910 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9911 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9912 | else |
9913 | # Is the header compilable? | |
b4e70030 JB |
9914 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9915 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9916 | cat >conftest.$ac_ext <<_ACEOF |
9917 | /* confdefs.h. */ | |
9918 | _ACEOF | |
9919 | cat confdefs.h >>conftest.$ac_ext | |
9920 | cat >>conftest.$ac_ext <<_ACEOF | |
9921 | /* end confdefs.h. */ | |
9922 | $ac_includes_default | |
9923 | #include <$ac_header> | |
9924 | _ACEOF | |
9925 | rm -f conftest.$ac_objext | |
9926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9927 | (eval $ac_compile) 2>conftest.er1 | |
9928 | ac_status=$? | |
9929 | grep -v '^ *+' conftest.er1 >conftest.err | |
9930 | rm -f conftest.er1 | |
9931 | cat conftest.err >&5 | |
9932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9933 | (exit $ac_status); } && | |
b4e70030 JB |
9934 | { ac_try='test -z "$ac_c_werror_flag" |
9935 | || test ! -s conftest.err' | |
bec39cab AC |
9936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9937 | (eval $ac_try) 2>&5 | |
9938 | ac_status=$? | |
9939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9940 | (exit $ac_status); }; } && | |
9941 | { ac_try='test -s conftest.$ac_objext' | |
9942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9943 | (eval $ac_try) 2>&5 | |
9944 | ac_status=$? | |
9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9946 | (exit $ac_status); }; }; then | |
9947 | ac_header_compiler=yes | |
9948 | else | |
9949 | echo "$as_me: failed program was:" >&5 | |
9950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9951 | ||
b4e70030 | 9952 | ac_header_compiler=no |
bec39cab AC |
9953 | fi |
9954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9955 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9956 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9957 | |
9958 | # Is the header present? | |
b4e70030 JB |
9959 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9960 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9961 | cat >conftest.$ac_ext <<_ACEOF |
9962 | /* confdefs.h. */ | |
9963 | _ACEOF | |
9964 | cat confdefs.h >>conftest.$ac_ext | |
9965 | cat >>conftest.$ac_ext <<_ACEOF | |
9966 | /* end confdefs.h. */ | |
9967 | #include <$ac_header> | |
9968 | _ACEOF | |
9969 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9970 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9971 | ac_status=$? | |
9972 | grep -v '^ *+' conftest.er1 >conftest.err | |
9973 | rm -f conftest.er1 | |
9974 | cat conftest.err >&5 | |
9975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9976 | (exit $ac_status); } >/dev/null; then | |
9977 | if test -s conftest.err; then | |
9978 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9979 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9980 | else | |
9981 | ac_cpp_err= | |
9982 | fi | |
9983 | else | |
9984 | ac_cpp_err=yes | |
5ee754fc | 9985 | fi |
bec39cab AC |
9986 | if test -z "$ac_cpp_err"; then |
9987 | ac_header_preproc=yes | |
5ee754fc | 9988 | else |
bec39cab AC |
9989 | echo "$as_me: failed program was:" >&5 |
9990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9991 | ||
9992 | ac_header_preproc=no | |
5ee754fc | 9993 | fi |
bec39cab | 9994 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9995 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9996 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9997 | |
bec39cab AC |
9998 | # So? What about this header? |
9999 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10000 | yes:no: ) | |
10001 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10002 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10003 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10004 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10005 | ac_header_preproc=yes | |
10006 | ;; | |
10007 | no:yes:* ) | |
10008 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10009 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10010 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10011 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10012 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10013 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10014 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10015 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10016 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10017 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10018 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10019 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10020 | ( |
10021 | cat <<\_ASBOX | |
10022 | ## ------------------------------------------ ## | |
10023 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10024 | ## ------------------------------------------ ## | |
10025 | _ASBOX | |
10026 | ) | | |
10027 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10028 | ;; |
10029 | esac | |
b4e70030 JB |
10030 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10031 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10032 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10033 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10034 | else | |
10035 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 10036 | fi |
b4e70030 JB |
10037 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10038 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10039 | |
5ee754fc | 10040 | fi |
bec39cab AC |
10041 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10042 | cat >>confdefs.h <<_ACEOF | |
10043 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10044 | _ACEOF | |
10045 | ||
5ee754fc | 10046 | fi |
bec39cab | 10047 | |
5ee754fc MK |
10048 | done |
10049 | ||
bec39cab AC |
10050 | |
10051 | for ac_header in sys/syscall.h | |
5ee754fc | 10052 | do |
bec39cab | 10053 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10054 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10055 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10056 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10057 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10059 | fi | |
b4e70030 JB |
10060 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10061 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10062 | else |
10063 | # Is the header compilable? | |
b4e70030 JB |
10064 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10065 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10066 | cat >conftest.$ac_ext <<_ACEOF |
10067 | /* confdefs.h. */ | |
10068 | _ACEOF | |
10069 | cat confdefs.h >>conftest.$ac_ext | |
10070 | cat >>conftest.$ac_ext <<_ACEOF | |
10071 | /* end confdefs.h. */ | |
10072 | $ac_includes_default | |
10073 | #include <$ac_header> | |
10074 | _ACEOF | |
10075 | rm -f conftest.$ac_objext | |
10076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10077 | (eval $ac_compile) 2>conftest.er1 | |
10078 | ac_status=$? | |
10079 | grep -v '^ *+' conftest.er1 >conftest.err | |
10080 | rm -f conftest.er1 | |
10081 | cat conftest.err >&5 | |
10082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10083 | (exit $ac_status); } && | |
b4e70030 JB |
10084 | { ac_try='test -z "$ac_c_werror_flag" |
10085 | || test ! -s conftest.err' | |
bec39cab AC |
10086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10087 | (eval $ac_try) 2>&5 | |
10088 | ac_status=$? | |
10089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10090 | (exit $ac_status); }; } && | |
10091 | { ac_try='test -s conftest.$ac_objext' | |
10092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10093 | (eval $ac_try) 2>&5 | |
10094 | ac_status=$? | |
10095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10096 | (exit $ac_status); }; }; then | |
10097 | ac_header_compiler=yes | |
10098 | else | |
10099 | echo "$as_me: failed program was:" >&5 | |
10100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10101 | ||
b4e70030 | 10102 | ac_header_compiler=no |
bec39cab AC |
10103 | fi |
10104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10105 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10106 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10107 | |
10108 | # Is the header present? | |
b4e70030 JB |
10109 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10110 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10111 | cat >conftest.$ac_ext <<_ACEOF |
10112 | /* confdefs.h. */ | |
10113 | _ACEOF | |
10114 | cat confdefs.h >>conftest.$ac_ext | |
10115 | cat >>conftest.$ac_ext <<_ACEOF | |
10116 | /* end confdefs.h. */ | |
10117 | #include <$ac_header> | |
10118 | _ACEOF | |
10119 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10120 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10121 | ac_status=$? | |
10122 | grep -v '^ *+' conftest.er1 >conftest.err | |
10123 | rm -f conftest.er1 | |
10124 | cat conftest.err >&5 | |
10125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10126 | (exit $ac_status); } >/dev/null; then | |
10127 | if test -s conftest.err; then | |
10128 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10129 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10130 | else | |
10131 | ac_cpp_err= | |
10132 | fi | |
10133 | else | |
10134 | ac_cpp_err=yes | |
5ee754fc | 10135 | fi |
bec39cab AC |
10136 | if test -z "$ac_cpp_err"; then |
10137 | ac_header_preproc=yes | |
5ee754fc | 10138 | else |
bec39cab AC |
10139 | echo "$as_me: failed program was:" >&5 |
10140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10141 | ||
10142 | ac_header_preproc=no | |
5ee754fc | 10143 | fi |
bec39cab | 10144 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10145 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10146 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10147 | |
bec39cab AC |
10148 | # So? What about this header? |
10149 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10150 | yes:no: ) | |
10151 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10152 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10153 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10154 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10155 | ac_header_preproc=yes | |
10156 | ;; | |
10157 | no:yes:* ) | |
10158 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10159 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10160 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10161 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10162 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10163 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10164 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10165 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10166 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10167 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10168 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10169 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10170 | ( |
10171 | cat <<\_ASBOX | |
10172 | ## ------------------------------------------ ## | |
10173 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10174 | ## ------------------------------------------ ## | |
10175 | _ASBOX | |
10176 | ) | | |
10177 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10178 | ;; |
10179 | esac | |
b4e70030 JB |
10180 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10181 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10182 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10184 | else | |
10185 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 10186 | fi |
b4e70030 JB |
10187 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10188 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10189 | |
5ee754fc | 10190 | fi |
bec39cab AC |
10191 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10192 | cat >>confdefs.h <<_ACEOF | |
10193 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10194 | _ACEOF | |
10195 | ||
5ee754fc | 10196 | fi |
bec39cab | 10197 | |
5ee754fc MK |
10198 | done |
10199 | ||
bec39cab AC |
10200 | |
10201 | for ac_header in sys/types.h | |
5ee754fc | 10202 | do |
bec39cab | 10203 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10204 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10205 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10206 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10207 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10208 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10209 | fi | |
b4e70030 JB |
10210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10212 | else |
10213 | # Is the header compilable? | |
b4e70030 JB |
10214 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10215 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10216 | cat >conftest.$ac_ext <<_ACEOF |
10217 | /* confdefs.h. */ | |
10218 | _ACEOF | |
10219 | cat confdefs.h >>conftest.$ac_ext | |
10220 | cat >>conftest.$ac_ext <<_ACEOF | |
10221 | /* end confdefs.h. */ | |
10222 | $ac_includes_default | |
10223 | #include <$ac_header> | |
10224 | _ACEOF | |
10225 | rm -f conftest.$ac_objext | |
10226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10227 | (eval $ac_compile) 2>conftest.er1 | |
10228 | ac_status=$? | |
10229 | grep -v '^ *+' conftest.er1 >conftest.err | |
10230 | rm -f conftest.er1 | |
10231 | cat conftest.err >&5 | |
10232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10233 | (exit $ac_status); } && | |
b4e70030 JB |
10234 | { ac_try='test -z "$ac_c_werror_flag" |
10235 | || test ! -s conftest.err' | |
bec39cab AC |
10236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10237 | (eval $ac_try) 2>&5 | |
10238 | ac_status=$? | |
10239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10240 | (exit $ac_status); }; } && | |
10241 | { ac_try='test -s conftest.$ac_objext' | |
10242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10243 | (eval $ac_try) 2>&5 | |
10244 | ac_status=$? | |
10245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10246 | (exit $ac_status); }; }; then | |
10247 | ac_header_compiler=yes | |
10248 | else | |
10249 | echo "$as_me: failed program was:" >&5 | |
10250 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10251 | ||
b4e70030 | 10252 | ac_header_compiler=no |
bec39cab AC |
10253 | fi |
10254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10255 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10256 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10257 | |
10258 | # Is the header present? | |
b4e70030 JB |
10259 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10260 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10261 | cat >conftest.$ac_ext <<_ACEOF |
10262 | /* confdefs.h. */ | |
10263 | _ACEOF | |
10264 | cat confdefs.h >>conftest.$ac_ext | |
10265 | cat >>conftest.$ac_ext <<_ACEOF | |
10266 | /* end confdefs.h. */ | |
10267 | #include <$ac_header> | |
10268 | _ACEOF | |
10269 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10270 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10271 | ac_status=$? | |
10272 | grep -v '^ *+' conftest.er1 >conftest.err | |
10273 | rm -f conftest.er1 | |
10274 | cat conftest.err >&5 | |
10275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10276 | (exit $ac_status); } >/dev/null; then | |
10277 | if test -s conftest.err; then | |
10278 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10279 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10280 | else | |
10281 | ac_cpp_err= | |
10282 | fi | |
10283 | else | |
10284 | ac_cpp_err=yes | |
5ee754fc | 10285 | fi |
bec39cab AC |
10286 | if test -z "$ac_cpp_err"; then |
10287 | ac_header_preproc=yes | |
5ee754fc | 10288 | else |
bec39cab AC |
10289 | echo "$as_me: failed program was:" >&5 |
10290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10291 | ||
10292 | ac_header_preproc=no | |
5ee754fc | 10293 | fi |
bec39cab | 10294 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10295 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10296 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10297 | |
bec39cab AC |
10298 | # So? What about this header? |
10299 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10300 | yes:no: ) | |
10301 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10302 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10303 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10304 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10305 | ac_header_preproc=yes | |
10306 | ;; | |
10307 | no:yes:* ) | |
10308 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10309 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10310 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10311 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10312 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10313 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10314 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10315 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10316 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10317 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10318 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10319 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10320 | ( |
10321 | cat <<\_ASBOX | |
10322 | ## ------------------------------------------ ## | |
10323 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10324 | ## ------------------------------------------ ## | |
10325 | _ASBOX | |
10326 | ) | | |
10327 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10328 | ;; |
10329 | esac | |
b4e70030 JB |
10330 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10331 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10332 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10334 | else | |
10335 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 10336 | fi |
b4e70030 JB |
10337 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10338 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10339 | |
5ee754fc | 10340 | fi |
bec39cab AC |
10341 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10342 | cat >>confdefs.h <<_ACEOF | |
10343 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10344 | _ACEOF | |
10345 | ||
5ee754fc | 10346 | fi |
bec39cab | 10347 | |
5ee754fc MK |
10348 | done |
10349 | ||
bec39cab AC |
10350 | |
10351 | for ac_header in sys/user.h | |
5ee754fc | 10352 | do |
bec39cab | 10353 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10354 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10355 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10356 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 10357 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 10358 | else |
7cb9022a | 10359 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
10360 | /* confdefs.h. */ |
10361 | _ACEOF | |
10362 | cat confdefs.h >>conftest.$ac_ext | |
10363 | cat >>conftest.$ac_ext <<_ACEOF | |
10364 | /* end confdefs.h. */ | |
7cb9022a MK |
10365 | #if HAVE_SYS_PARAM_H |
10366 | # include <sys/param.h> | |
10367 | #endif | |
10368 | ||
10369 | ||
bec39cab AC |
10370 | #include <$ac_header> |
10371 | _ACEOF | |
10372 | rm -f conftest.$ac_objext | |
10373 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10374 | (eval $ac_compile) 2>conftest.er1 | |
10375 | ac_status=$? | |
10376 | grep -v '^ *+' conftest.er1 >conftest.err | |
10377 | rm -f conftest.er1 | |
10378 | cat conftest.err >&5 | |
10379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10380 | (exit $ac_status); } && | |
b4e70030 JB |
10381 | { ac_try='test -z "$ac_c_werror_flag" |
10382 | || test ! -s conftest.err' | |
bec39cab AC |
10383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10384 | (eval $ac_try) 2>&5 | |
10385 | ac_status=$? | |
10386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10387 | (exit $ac_status); }; } && | |
10388 | { ac_try='test -s conftest.$ac_objext' | |
10389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10390 | (eval $ac_try) 2>&5 | |
10391 | ac_status=$? | |
10392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10393 | (exit $ac_status); }; }; then | |
7cb9022a | 10394 | eval "$as_ac_Header=yes" |
bec39cab AC |
10395 | else |
10396 | echo "$as_me: failed program was:" >&5 | |
10397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10398 | ||
b4e70030 | 10399 | eval "$as_ac_Header=no" |
bec39cab AC |
10400 | fi |
10401 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 10402 | fi |
b4e70030 JB |
10403 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10404 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10405 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10406 | cat >>confdefs.h <<_ACEOF | |
10407 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10408 | _ACEOF | |
10409 | ||
5ee754fc | 10410 | fi |
bec39cab | 10411 | |
5ee754fc MK |
10412 | done |
10413 | ||
bec39cab AC |
10414 | |
10415 | ||
10416 | for ac_header in sys/wait.h wait.h | |
5ee754fc | 10417 | do |
bec39cab | 10418 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10419 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10420 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10421 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10422 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10424 | fi | |
b4e70030 JB |
10425 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10426 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10427 | else |
10428 | # Is the header compilable? | |
b4e70030 JB |
10429 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10430 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10431 | cat >conftest.$ac_ext <<_ACEOF |
10432 | /* confdefs.h. */ | |
10433 | _ACEOF | |
10434 | cat confdefs.h >>conftest.$ac_ext | |
10435 | cat >>conftest.$ac_ext <<_ACEOF | |
10436 | /* end confdefs.h. */ | |
10437 | $ac_includes_default | |
10438 | #include <$ac_header> | |
10439 | _ACEOF | |
10440 | rm -f conftest.$ac_objext | |
10441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10442 | (eval $ac_compile) 2>conftest.er1 | |
10443 | ac_status=$? | |
10444 | grep -v '^ *+' conftest.er1 >conftest.err | |
10445 | rm -f conftest.er1 | |
10446 | cat conftest.err >&5 | |
10447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10448 | (exit $ac_status); } && | |
b4e70030 JB |
10449 | { ac_try='test -z "$ac_c_werror_flag" |
10450 | || test ! -s conftest.err' | |
bec39cab AC |
10451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10452 | (eval $ac_try) 2>&5 | |
10453 | ac_status=$? | |
10454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10455 | (exit $ac_status); }; } && | |
10456 | { ac_try='test -s conftest.$ac_objext' | |
10457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10458 | (eval $ac_try) 2>&5 | |
10459 | ac_status=$? | |
10460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10461 | (exit $ac_status); }; }; then | |
10462 | ac_header_compiler=yes | |
10463 | else | |
10464 | echo "$as_me: failed program was:" >&5 | |
10465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10466 | ||
b4e70030 | 10467 | ac_header_compiler=no |
bec39cab AC |
10468 | fi |
10469 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10470 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10471 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10472 | |
10473 | # Is the header present? | |
b4e70030 JB |
10474 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10475 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10476 | cat >conftest.$ac_ext <<_ACEOF |
10477 | /* confdefs.h. */ | |
10478 | _ACEOF | |
10479 | cat confdefs.h >>conftest.$ac_ext | |
10480 | cat >>conftest.$ac_ext <<_ACEOF | |
10481 | /* end confdefs.h. */ | |
10482 | #include <$ac_header> | |
10483 | _ACEOF | |
10484 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10485 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10486 | ac_status=$? | |
10487 | grep -v '^ *+' conftest.er1 >conftest.err | |
10488 | rm -f conftest.er1 | |
10489 | cat conftest.err >&5 | |
10490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10491 | (exit $ac_status); } >/dev/null; then | |
10492 | if test -s conftest.err; then | |
10493 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10494 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10495 | else | |
10496 | ac_cpp_err= | |
10497 | fi | |
10498 | else | |
10499 | ac_cpp_err=yes | |
5ee754fc | 10500 | fi |
bec39cab AC |
10501 | if test -z "$ac_cpp_err"; then |
10502 | ac_header_preproc=yes | |
5ee754fc | 10503 | else |
bec39cab AC |
10504 | echo "$as_me: failed program was:" >&5 |
10505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10506 | ||
10507 | ac_header_preproc=no | |
5ee754fc | 10508 | fi |
bec39cab | 10509 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10510 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10511 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10512 | |
bec39cab AC |
10513 | # So? What about this header? |
10514 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10515 | yes:no: ) | |
10516 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10517 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10518 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10519 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10520 | ac_header_preproc=yes | |
10521 | ;; | |
10522 | no:yes:* ) | |
10523 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10524 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10525 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10526 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10527 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10528 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10529 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10530 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10531 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10532 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10533 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10534 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10535 | ( |
10536 | cat <<\_ASBOX | |
10537 | ## ------------------------------------------ ## | |
10538 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10539 | ## ------------------------------------------ ## | |
10540 | _ASBOX | |
10541 | ) | | |
10542 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10543 | ;; |
10544 | esac | |
b4e70030 JB |
10545 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10546 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10547 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10549 | else | |
10550 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 10551 | fi |
b4e70030 JB |
10552 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10553 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10554 | |
9608ab8b | 10555 | fi |
bec39cab AC |
10556 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10557 | cat >>confdefs.h <<_ACEOF | |
10558 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10559 | _ACEOF | |
10560 | ||
9608ab8b | 10561 | fi |
bec39cab | 10562 | |
9608ab8b | 10563 | done |
5ee754fc | 10564 | |
bec39cab AC |
10565 | |
10566 | ||
10567 | ||
10568 | for ac_header in termios.h termio.h sgtty.h | |
5ee754fc | 10569 | do |
bec39cab | 10570 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10571 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10572 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10573 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10574 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10575 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10576 | fi | |
b4e70030 JB |
10577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10578 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10579 | else |
10580 | # Is the header compilable? | |
b4e70030 JB |
10581 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10582 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10583 | cat >conftest.$ac_ext <<_ACEOF |
10584 | /* confdefs.h. */ | |
10585 | _ACEOF | |
10586 | cat confdefs.h >>conftest.$ac_ext | |
10587 | cat >>conftest.$ac_ext <<_ACEOF | |
10588 | /* end confdefs.h. */ | |
10589 | $ac_includes_default | |
10590 | #include <$ac_header> | |
10591 | _ACEOF | |
10592 | rm -f conftest.$ac_objext | |
10593 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10594 | (eval $ac_compile) 2>conftest.er1 | |
10595 | ac_status=$? | |
10596 | grep -v '^ *+' conftest.er1 >conftest.err | |
10597 | rm -f conftest.er1 | |
10598 | cat conftest.err >&5 | |
10599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10600 | (exit $ac_status); } && | |
b4e70030 JB |
10601 | { ac_try='test -z "$ac_c_werror_flag" |
10602 | || test ! -s conftest.err' | |
bec39cab AC |
10603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10604 | (eval $ac_try) 2>&5 | |
10605 | ac_status=$? | |
10606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10607 | (exit $ac_status); }; } && | |
10608 | { ac_try='test -s conftest.$ac_objext' | |
10609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10610 | (eval $ac_try) 2>&5 | |
10611 | ac_status=$? | |
10612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10613 | (exit $ac_status); }; }; then | |
10614 | ac_header_compiler=yes | |
10615 | else | |
10616 | echo "$as_me: failed program was:" >&5 | |
10617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10618 | ||
b4e70030 | 10619 | ac_header_compiler=no |
bec39cab AC |
10620 | fi |
10621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10622 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10623 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10624 | |
10625 | # Is the header present? | |
b4e70030 JB |
10626 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10627 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10628 | cat >conftest.$ac_ext <<_ACEOF |
10629 | /* confdefs.h. */ | |
10630 | _ACEOF | |
10631 | cat confdefs.h >>conftest.$ac_ext | |
10632 | cat >>conftest.$ac_ext <<_ACEOF | |
10633 | /* end confdefs.h. */ | |
10634 | #include <$ac_header> | |
10635 | _ACEOF | |
10636 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10637 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10638 | ac_status=$? | |
10639 | grep -v '^ *+' conftest.er1 >conftest.err | |
10640 | rm -f conftest.er1 | |
10641 | cat conftest.err >&5 | |
10642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10643 | (exit $ac_status); } >/dev/null; then | |
10644 | if test -s conftest.err; then | |
10645 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10646 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10647 | else | |
10648 | ac_cpp_err= | |
10649 | fi | |
10650 | else | |
10651 | ac_cpp_err=yes | |
9608ab8b | 10652 | fi |
bec39cab AC |
10653 | if test -z "$ac_cpp_err"; then |
10654 | ac_header_preproc=yes | |
9608ab8b | 10655 | else |
bec39cab AC |
10656 | echo "$as_me: failed program was:" >&5 |
10657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10658 | ||
10659 | ac_header_preproc=no | |
9608ab8b | 10660 | fi |
bec39cab | 10661 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10662 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10663 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9608ab8b | 10664 | |
bec39cab AC |
10665 | # So? What about this header? |
10666 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10667 | yes:no: ) | |
10668 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10669 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10670 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10671 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10672 | ac_header_preproc=yes | |
10673 | ;; | |
10674 | no:yes:* ) | |
10675 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10676 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10677 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10678 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10679 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10680 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10681 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10682 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10683 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10684 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10685 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10686 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10687 | ( |
10688 | cat <<\_ASBOX | |
10689 | ## ------------------------------------------ ## | |
10690 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10691 | ## ------------------------------------------ ## | |
10692 | _ASBOX | |
10693 | ) | | |
10694 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10695 | ;; |
10696 | esac | |
b4e70030 JB |
10697 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10698 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10699 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10700 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10701 | else | |
10702 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 10703 | fi |
b4e70030 JB |
10704 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10705 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10706 | |
9608ab8b | 10707 | fi |
bec39cab AC |
10708 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10709 | cat >>confdefs.h <<_ACEOF | |
10710 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10711 | _ACEOF | |
10712 | ||
9608ab8b | 10713 | fi |
bec39cab | 10714 | |
5ee754fc | 10715 | done |
9608ab8b | 10716 | |
bec39cab AC |
10717 | |
10718 | for ac_header in unistd.h | |
78434e59 | 10719 | do |
bec39cab | 10720 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10721 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10722 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10723 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10724 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10726 | fi | |
b4e70030 JB |
10727 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10728 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10729 | else |
10730 | # Is the header compilable? | |
b4e70030 JB |
10731 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10732 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10733 | cat >conftest.$ac_ext <<_ACEOF |
10734 | /* confdefs.h. */ | |
10735 | _ACEOF | |
10736 | cat confdefs.h >>conftest.$ac_ext | |
10737 | cat >>conftest.$ac_ext <<_ACEOF | |
10738 | /* end confdefs.h. */ | |
10739 | $ac_includes_default | |
10740 | #include <$ac_header> | |
10741 | _ACEOF | |
10742 | rm -f conftest.$ac_objext | |
10743 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10744 | (eval $ac_compile) 2>conftest.er1 | |
10745 | ac_status=$? | |
10746 | grep -v '^ *+' conftest.er1 >conftest.err | |
10747 | rm -f conftest.er1 | |
10748 | cat conftest.err >&5 | |
10749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10750 | (exit $ac_status); } && | |
b4e70030 JB |
10751 | { ac_try='test -z "$ac_c_werror_flag" |
10752 | || test ! -s conftest.err' | |
bec39cab AC |
10753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10754 | (eval $ac_try) 2>&5 | |
10755 | ac_status=$? | |
10756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10757 | (exit $ac_status); }; } && | |
10758 | { ac_try='test -s conftest.$ac_objext' | |
10759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10760 | (eval $ac_try) 2>&5 | |
10761 | ac_status=$? | |
10762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10763 | (exit $ac_status); }; }; then | |
10764 | ac_header_compiler=yes | |
10765 | else | |
10766 | echo "$as_me: failed program was:" >&5 | |
10767 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10768 | ||
b4e70030 | 10769 | ac_header_compiler=no |
bec39cab AC |
10770 | fi |
10771 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10772 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10773 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10774 | |
10775 | # Is the header present? | |
b4e70030 JB |
10776 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10777 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10778 | cat >conftest.$ac_ext <<_ACEOF |
10779 | /* confdefs.h. */ | |
10780 | _ACEOF | |
10781 | cat confdefs.h >>conftest.$ac_ext | |
10782 | cat >>conftest.$ac_ext <<_ACEOF | |
10783 | /* end confdefs.h. */ | |
10784 | #include <$ac_header> | |
10785 | _ACEOF | |
10786 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10787 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10788 | ac_status=$? | |
10789 | grep -v '^ *+' conftest.er1 >conftest.err | |
10790 | rm -f conftest.er1 | |
10791 | cat conftest.err >&5 | |
10792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10793 | (exit $ac_status); } >/dev/null; then | |
10794 | if test -s conftest.err; then | |
10795 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10796 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10797 | else | |
10798 | ac_cpp_err= | |
10799 | fi | |
10800 | else | |
10801 | ac_cpp_err=yes | |
78434e59 | 10802 | fi |
bec39cab AC |
10803 | if test -z "$ac_cpp_err"; then |
10804 | ac_header_preproc=yes | |
78434e59 | 10805 | else |
bec39cab AC |
10806 | echo "$as_me: failed program was:" >&5 |
10807 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10808 | ||
10809 | ac_header_preproc=no | |
78434e59 | 10810 | fi |
bec39cab | 10811 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10812 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10813 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
78434e59 | 10814 | |
bec39cab AC |
10815 | # So? What about this header? |
10816 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10817 | yes:no: ) | |
10818 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10819 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10820 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10821 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10822 | ac_header_preproc=yes | |
10823 | ;; | |
10824 | no:yes:* ) | |
10825 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10826 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10827 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10828 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10829 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10830 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10831 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10832 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10833 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10834 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10835 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10836 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10837 | ( |
10838 | cat <<\_ASBOX | |
10839 | ## ------------------------------------------ ## | |
10840 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10841 | ## ------------------------------------------ ## | |
10842 | _ASBOX | |
10843 | ) | | |
10844 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10845 | ;; |
10846 | esac | |
b4e70030 JB |
10847 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10848 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10849 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10851 | else | |
10852 | eval "$as_ac_Header=\$ac_header_preproc" | |
086ec9eb | 10853 | fi |
b4e70030 JB |
10854 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10855 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10856 | |
086ec9eb | 10857 | fi |
bec39cab AC |
10858 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10859 | cat >>confdefs.h <<_ACEOF | |
10860 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10861 | _ACEOF | |
10862 | ||
086ec9eb | 10863 | fi |
bec39cab | 10864 | |
086ec9eb MK |
10865 | done |
10866 | ||
9608ab8b | 10867 | |
b1d19a62 | 10868 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
5ee754fc MK |
10869 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
10870 | # think that we don't have <curses.h> if we're using GCC. | |
10871 | case $host_os in | |
b1d19a62 | 10872 | solaris2.[789]) |
5ee754fc | 10873 | if test "$GCC" = yes; then |
bec39cab AC |
10874 | |
10875 | cat >>confdefs.h <<\_ACEOF | |
5ee754fc | 10876 | #define _MSE_INT_H 1 |
bec39cab | 10877 | _ACEOF |
5ee754fc MK |
10878 | |
10879 | fi ;; | |
10880 | esac | |
bec39cab AC |
10881 | |
10882 | ||
10883 | ||
10884 | ||
10885 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h | |
5ee754fc | 10886 | do |
bec39cab | 10887 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10888 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10889 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10890 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10891 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10892 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10893 | fi | |
b4e70030 JB |
10894 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10895 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10896 | else |
10897 | # Is the header compilable? | |
b4e70030 JB |
10898 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10899 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10900 | cat >conftest.$ac_ext <<_ACEOF |
10901 | /* confdefs.h. */ | |
10902 | _ACEOF | |
10903 | cat confdefs.h >>conftest.$ac_ext | |
10904 | cat >>conftest.$ac_ext <<_ACEOF | |
10905 | /* end confdefs.h. */ | |
10906 | $ac_includes_default | |
10907 | #include <$ac_header> | |
10908 | _ACEOF | |
10909 | rm -f conftest.$ac_objext | |
10910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10911 | (eval $ac_compile) 2>conftest.er1 | |
10912 | ac_status=$? | |
10913 | grep -v '^ *+' conftest.er1 >conftest.err | |
10914 | rm -f conftest.er1 | |
10915 | cat conftest.err >&5 | |
10916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10917 | (exit $ac_status); } && | |
b4e70030 JB |
10918 | { ac_try='test -z "$ac_c_werror_flag" |
10919 | || test ! -s conftest.err' | |
bec39cab AC |
10920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10921 | (eval $ac_try) 2>&5 | |
10922 | ac_status=$? | |
10923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10924 | (exit $ac_status); }; } && | |
10925 | { ac_try='test -s conftest.$ac_objext' | |
10926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10927 | (eval $ac_try) 2>&5 | |
10928 | ac_status=$? | |
10929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10930 | (exit $ac_status); }; }; then | |
10931 | ac_header_compiler=yes | |
10932 | else | |
10933 | echo "$as_me: failed program was:" >&5 | |
10934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10935 | ||
b4e70030 | 10936 | ac_header_compiler=no |
bec39cab AC |
10937 | fi |
10938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10939 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10940 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10941 | |
10942 | # Is the header present? | |
b4e70030 JB |
10943 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10944 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10945 | cat >conftest.$ac_ext <<_ACEOF |
10946 | /* confdefs.h. */ | |
10947 | _ACEOF | |
10948 | cat confdefs.h >>conftest.$ac_ext | |
10949 | cat >>conftest.$ac_ext <<_ACEOF | |
10950 | /* end confdefs.h. */ | |
10951 | #include <$ac_header> | |
10952 | _ACEOF | |
10953 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10954 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10955 | ac_status=$? | |
10956 | grep -v '^ *+' conftest.er1 >conftest.err | |
10957 | rm -f conftest.er1 | |
10958 | cat conftest.err >&5 | |
10959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10960 | (exit $ac_status); } >/dev/null; then | |
10961 | if test -s conftest.err; then | |
10962 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10963 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10964 | else | |
10965 | ac_cpp_err= | |
10966 | fi | |
10967 | else | |
10968 | ac_cpp_err=yes | |
c906108c | 10969 | fi |
bec39cab AC |
10970 | if test -z "$ac_cpp_err"; then |
10971 | ac_header_preproc=yes | |
10972 | else | |
10973 | echo "$as_me: failed program was:" >&5 | |
10974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10975 | ||
10976 | ac_header_preproc=no | |
c906108c | 10977 | fi |
bec39cab | 10978 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10979 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10980 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
10981 | |
10982 | # So? What about this header? | |
10983 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10984 | yes:no: ) | |
10985 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10986 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10987 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10988 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10989 | ac_header_preproc=yes | |
10990 | ;; | |
10991 | no:yes:* ) | |
10992 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10993 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10994 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10995 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10996 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10997 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10998 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10999 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11000 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11001 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11002 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11003 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11004 | ( |
11005 | cat <<\_ASBOX | |
11006 | ## ------------------------------------------ ## | |
11007 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11008 | ## ------------------------------------------ ## | |
11009 | _ASBOX | |
11010 | ) | | |
11011 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11012 | ;; |
11013 | esac | |
b4e70030 JB |
11014 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11015 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11016 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11017 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 11018 | else |
bec39cab | 11019 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 11020 | fi |
b4e70030 JB |
11021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11022 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11023 | |
11024 | fi | |
11025 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11026 | cat >>confdefs.h <<_ACEOF | |
11027 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11028 | _ACEOF | |
11029 | ||
11030 | fi | |
11031 | ||
5ee754fc | 11032 | done |
c906108c | 11033 | |
bec39cab | 11034 | |
065a1afc | 11035 | for ac_header in ncurses/term.h |
3b78cdbb | 11036 | do |
bec39cab | 11037 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
11038 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11039 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11040 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11041 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11043 | fi | |
b4e70030 JB |
11044 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11045 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11046 | else |
11047 | # Is the header compilable? | |
b4e70030 JB |
11048 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11049 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
11050 | cat >conftest.$ac_ext <<_ACEOF |
11051 | /* confdefs.h. */ | |
11052 | _ACEOF | |
11053 | cat confdefs.h >>conftest.$ac_ext | |
11054 | cat >>conftest.$ac_ext <<_ACEOF | |
11055 | /* end confdefs.h. */ | |
11056 | $ac_includes_default | |
11057 | #include <$ac_header> | |
11058 | _ACEOF | |
11059 | rm -f conftest.$ac_objext | |
11060 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11061 | (eval $ac_compile) 2>conftest.er1 | |
11062 | ac_status=$? | |
11063 | grep -v '^ *+' conftest.er1 >conftest.err | |
11064 | rm -f conftest.er1 | |
11065 | cat conftest.err >&5 | |
11066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11067 | (exit $ac_status); } && | |
b4e70030 JB |
11068 | { ac_try='test -z "$ac_c_werror_flag" |
11069 | || test ! -s conftest.err' | |
bec39cab AC |
11070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11071 | (eval $ac_try) 2>&5 | |
11072 | ac_status=$? | |
11073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11074 | (exit $ac_status); }; } && | |
11075 | { ac_try='test -s conftest.$ac_objext' | |
11076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11077 | (eval $ac_try) 2>&5 | |
11078 | ac_status=$? | |
11079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11080 | (exit $ac_status); }; }; then | |
11081 | ac_header_compiler=yes | |
11082 | else | |
11083 | echo "$as_me: failed program was:" >&5 | |
11084 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11085 | ||
b4e70030 | 11086 | ac_header_compiler=no |
bec39cab AC |
11087 | fi |
11088 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
11089 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11090 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
11091 | |
11092 | # Is the header present? | |
b4e70030 JB |
11093 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11094 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
11095 | cat >conftest.$ac_ext <<_ACEOF |
11096 | /* confdefs.h. */ | |
11097 | _ACEOF | |
11098 | cat confdefs.h >>conftest.$ac_ext | |
11099 | cat >>conftest.$ac_ext <<_ACEOF | |
11100 | /* end confdefs.h. */ | |
11101 | #include <$ac_header> | |
11102 | _ACEOF | |
11103 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11104 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11105 | ac_status=$? | |
11106 | grep -v '^ *+' conftest.er1 >conftest.err | |
11107 | rm -f conftest.er1 | |
11108 | cat conftest.err >&5 | |
11109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11110 | (exit $ac_status); } >/dev/null; then | |
11111 | if test -s conftest.err; then | |
11112 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11113 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11114 | else | |
11115 | ac_cpp_err= | |
11116 | fi | |
11117 | else | |
11118 | ac_cpp_err=yes | |
3b78cdbb | 11119 | fi |
bec39cab AC |
11120 | if test -z "$ac_cpp_err"; then |
11121 | ac_header_preproc=yes | |
11122 | else | |
11123 | echo "$as_me: failed program was:" >&5 | |
11124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11125 | ||
11126 | ac_header_preproc=no | |
3b78cdbb | 11127 | fi |
bec39cab | 11128 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
11129 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11130 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
11131 | |
11132 | # So? What about this header? | |
11133 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11134 | yes:no: ) | |
11135 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11136 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11137 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11138 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11139 | ac_header_preproc=yes | |
11140 | ;; | |
11141 | no:yes:* ) | |
11142 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11143 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11144 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11145 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11146 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11147 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11148 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11149 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11150 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11151 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11152 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11153 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11154 | ( |
11155 | cat <<\_ASBOX | |
11156 | ## ------------------------------------------ ## | |
11157 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11158 | ## ------------------------------------------ ## | |
11159 | _ASBOX | |
11160 | ) | | |
11161 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11162 | ;; |
11163 | esac | |
b4e70030 JB |
11164 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11165 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11166 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3b78cdbb | 11168 | else |
bec39cab AC |
11169 | eval "$as_ac_Header=\$ac_header_preproc" |
11170 | fi | |
b4e70030 JB |
11171 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11172 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 11173 | |
3b78cdbb | 11174 | fi |
bec39cab AC |
11175 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11176 | cat >>confdefs.h <<_ACEOF | |
11177 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11178 | _ACEOF | |
11179 | ||
11180 | fi | |
11181 | ||
3b78cdbb DA |
11182 | done |
11183 | ||
c906108c | 11184 | |
065a1afc JB |
11185 | for ac_header in term.h |
11186 | do | |
11187 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
11188 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11189 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11190 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
065a1afc JB |
11191 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11192 | else | |
11193 | cat >conftest.$ac_ext <<_ACEOF | |
11194 | /* confdefs.h. */ | |
11195 | _ACEOF | |
11196 | cat confdefs.h >>conftest.$ac_ext | |
11197 | cat >>conftest.$ac_ext <<_ACEOF | |
11198 | /* end confdefs.h. */ | |
11199 | #if HAVE_CURSES_H | |
11200 | # include <curses.h> | |
11201 | #endif | |
11202 | ||
11203 | ||
11204 | #include <$ac_header> | |
11205 | _ACEOF | |
11206 | rm -f conftest.$ac_objext | |
11207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11208 | (eval $ac_compile) 2>conftest.er1 | |
11209 | ac_status=$? | |
11210 | grep -v '^ *+' conftest.er1 >conftest.err | |
11211 | rm -f conftest.er1 | |
11212 | cat conftest.err >&5 | |
11213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11214 | (exit $ac_status); } && | |
b4e70030 JB |
11215 | { ac_try='test -z "$ac_c_werror_flag" |
11216 | || test ! -s conftest.err' | |
065a1afc JB |
11217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11218 | (eval $ac_try) 2>&5 | |
11219 | ac_status=$? | |
11220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11221 | (exit $ac_status); }; } && | |
11222 | { ac_try='test -s conftest.$ac_objext' | |
11223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11224 | (eval $ac_try) 2>&5 | |
11225 | ac_status=$? | |
11226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11227 | (exit $ac_status); }; }; then | |
11228 | eval "$as_ac_Header=yes" | |
11229 | else | |
11230 | echo "$as_me: failed program was:" >&5 | |
11231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11232 | ||
b4e70030 | 11233 | eval "$as_ac_Header=no" |
065a1afc JB |
11234 | fi |
11235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11236 | fi | |
b4e70030 JB |
11237 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11238 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
065a1afc JB |
11239 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11240 | cat >>confdefs.h <<_ACEOF | |
11241 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11242 | _ACEOF | |
11243 | ||
11244 | fi | |
11245 | ||
11246 | done | |
11247 | ||
11248 | ||
5ee754fc MK |
11249 | # FIXME: kettenis/20030102: In most cases we include these |
11250 | # unconditionally, so what's the point in checking these? | |
bec39cab AC |
11251 | |
11252 | ||
11253 | for ac_header in ctype.h time.h | |
c906108c | 11254 | do |
bec39cab | 11255 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
11256 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11257 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11258 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11259 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11261 | fi | |
b4e70030 JB |
11262 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11263 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11264 | else |
11265 | # Is the header compilable? | |
b4e70030 JB |
11266 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11267 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
11268 | cat >conftest.$ac_ext <<_ACEOF |
11269 | /* confdefs.h. */ | |
11270 | _ACEOF | |
11271 | cat confdefs.h >>conftest.$ac_ext | |
11272 | cat >>conftest.$ac_ext <<_ACEOF | |
11273 | /* end confdefs.h. */ | |
11274 | $ac_includes_default | |
11275 | #include <$ac_header> | |
11276 | _ACEOF | |
11277 | rm -f conftest.$ac_objext | |
11278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11279 | (eval $ac_compile) 2>conftest.er1 | |
11280 | ac_status=$? | |
11281 | grep -v '^ *+' conftest.er1 >conftest.err | |
11282 | rm -f conftest.er1 | |
11283 | cat conftest.err >&5 | |
11284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11285 | (exit $ac_status); } && | |
b4e70030 JB |
11286 | { ac_try='test -z "$ac_c_werror_flag" |
11287 | || test ! -s conftest.err' | |
bec39cab AC |
11288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11289 | (eval $ac_try) 2>&5 | |
11290 | ac_status=$? | |
11291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11292 | (exit $ac_status); }; } && | |
11293 | { ac_try='test -s conftest.$ac_objext' | |
11294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11295 | (eval $ac_try) 2>&5 | |
11296 | ac_status=$? | |
11297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11298 | (exit $ac_status); }; }; then | |
11299 | ac_header_compiler=yes | |
11300 | else | |
11301 | echo "$as_me: failed program was:" >&5 | |
11302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11303 | ||
b4e70030 | 11304 | ac_header_compiler=no |
bec39cab AC |
11305 | fi |
11306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
11307 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11308 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
11309 | |
11310 | # Is the header present? | |
b4e70030 JB |
11311 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11312 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
11313 | cat >conftest.$ac_ext <<_ACEOF |
11314 | /* confdefs.h. */ | |
11315 | _ACEOF | |
11316 | cat confdefs.h >>conftest.$ac_ext | |
11317 | cat >>conftest.$ac_ext <<_ACEOF | |
11318 | /* end confdefs.h. */ | |
11319 | #include <$ac_header> | |
11320 | _ACEOF | |
11321 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11322 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11323 | ac_status=$? | |
11324 | grep -v '^ *+' conftest.er1 >conftest.err | |
11325 | rm -f conftest.er1 | |
11326 | cat conftest.err >&5 | |
11327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11328 | (exit $ac_status); } >/dev/null; then | |
11329 | if test -s conftest.err; then | |
11330 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11331 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11332 | else | |
11333 | ac_cpp_err= | |
11334 | fi | |
11335 | else | |
11336 | ac_cpp_err=yes | |
c906108c | 11337 | fi |
bec39cab AC |
11338 | if test -z "$ac_cpp_err"; then |
11339 | ac_header_preproc=yes | |
11340 | else | |
11341 | echo "$as_me: failed program was:" >&5 | |
11342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11343 | ||
11344 | ac_header_preproc=no | |
c906108c | 11345 | fi |
bec39cab | 11346 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
11347 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11348 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
11349 | |
11350 | # So? What about this header? | |
11351 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11352 | yes:no: ) | |
11353 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11354 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11355 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11356 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11357 | ac_header_preproc=yes | |
11358 | ;; | |
11359 | no:yes:* ) | |
11360 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11361 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11362 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11363 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11364 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11365 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11366 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11367 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11368 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11369 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11370 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11371 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11372 | ( |
11373 | cat <<\_ASBOX | |
11374 | ## ------------------------------------------ ## | |
11375 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11376 | ## ------------------------------------------ ## | |
11377 | _ASBOX | |
11378 | ) | | |
11379 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11380 | ;; |
11381 | esac | |
b4e70030 JB |
11382 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11383 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11384 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 11386 | else |
bec39cab AC |
11387 | eval "$as_ac_Header=\$ac_header_preproc" |
11388 | fi | |
b4e70030 JB |
11389 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11390 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11391 | |
11392 | fi | |
11393 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11394 | cat >>confdefs.h <<_ACEOF | |
11395 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11396 | _ACEOF | |
11397 | ||
c906108c | 11398 | fi |
bec39cab | 11399 | |
c906108c SS |
11400 | done |
11401 | ||
5ee754fc | 11402 | |
4e8d927d | 11403 | # Create a header we can use portably to get the standard integer types. |
666ec76f | 11404 | |
4e8d927d DJ |
11405 | |
11406 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
11407 | ||
11408 | acx_cv_header_stdint=stddef.h | |
11409 | acx_cv_header_stdint_kind="(already complete)" | |
11410 | for i in stdint.h $inttype_headers; do | |
11411 | unset ac_cv_type_uintptr_t | |
11412 | unset ac_cv_type_uintmax_t | |
11413 | unset ac_cv_type_int_least32_t | |
11414 | unset ac_cv_type_int_fast32_t | |
11415 | unset ac_cv_type_uint64_t | |
11416 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
b4e70030 JB |
11417 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 |
11418 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
4e8d927d | 11419 | if test "${ac_cv_type_uintmax_t+set}" = set; then |
bec39cab | 11420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
40a7debc | 11421 | else |
bec39cab AC |
11422 | cat >conftest.$ac_ext <<_ACEOF |
11423 | /* confdefs.h. */ | |
11424 | _ACEOF | |
11425 | cat confdefs.h >>conftest.$ac_ext | |
11426 | cat >>conftest.$ac_ext <<_ACEOF | |
11427 | /* end confdefs.h. */ | |
4e8d927d DJ |
11428 | #include <sys/types.h> |
11429 | #include <$i> | |
11430 | ||
bec39cab AC |
11431 | int |
11432 | main () | |
11433 | { | |
b4e70030 | 11434 | if ((uintmax_t *) 0) |
4e8d927d | 11435 | return 0; |
b4e70030 | 11436 | if (sizeof (uintmax_t)) |
4e8d927d DJ |
11437 | return 0; |
11438 | ; | |
bec39cab AC |
11439 | return 0; |
11440 | } | |
11441 | _ACEOF | |
11442 | rm -f conftest.$ac_objext | |
11443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11444 | (eval $ac_compile) 2>conftest.er1 | |
11445 | ac_status=$? | |
11446 | grep -v '^ *+' conftest.er1 >conftest.err | |
11447 | rm -f conftest.er1 | |
11448 | cat conftest.err >&5 | |
11449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11450 | (exit $ac_status); } && | |
b4e70030 JB |
11451 | { ac_try='test -z "$ac_c_werror_flag" |
11452 | || test ! -s conftest.err' | |
bec39cab AC |
11453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11454 | (eval $ac_try) 2>&5 | |
11455 | ac_status=$? | |
11456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11457 | (exit $ac_status); }; } && | |
11458 | { ac_try='test -s conftest.$ac_objext' | |
11459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11460 | (eval $ac_try) 2>&5 | |
11461 | ac_status=$? | |
11462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11463 | (exit $ac_status); }; }; then | |
4e8d927d | 11464 | ac_cv_type_uintmax_t=yes |
40a7debc | 11465 | else |
bec39cab AC |
11466 | echo "$as_me: failed program was:" >&5 |
11467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11468 | ||
b4e70030 | 11469 | ac_cv_type_uintmax_t=no |
40a7debc | 11470 | fi |
bec39cab | 11471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
40a7debc | 11472 | fi |
b4e70030 JB |
11473 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 |
11474 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
4e8d927d DJ |
11475 | if test $ac_cv_type_uintmax_t = yes; then |
11476 | acx_cv_header_stdint=$i | |
666ec76f | 11477 | else |
4e8d927d | 11478 | continue |
666ec76f | 11479 | fi |
4e8d927d | 11480 | |
b4e70030 JB |
11481 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
11482 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
4e8d927d | 11483 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
bec39cab AC |
11484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11485 | else | |
11486 | cat >conftest.$ac_ext <<_ACEOF | |
11487 | /* confdefs.h. */ | |
11488 | _ACEOF | |
11489 | cat confdefs.h >>conftest.$ac_ext | |
11490 | cat >>conftest.$ac_ext <<_ACEOF | |
11491 | /* end confdefs.h. */ | |
4e8d927d DJ |
11492 | #include <sys/types.h> |
11493 | #include <$i> | |
11494 | ||
666ec76f MK |
11495 | int |
11496 | main () | |
11497 | { | |
b4e70030 | 11498 | if ((uintptr_t *) 0) |
4e8d927d | 11499 | return 0; |
b4e70030 | 11500 | if (sizeof (uintptr_t)) |
4e8d927d | 11501 | return 0; |
666ec76f MK |
11502 | ; |
11503 | return 0; | |
11504 | } | |
11505 | _ACEOF | |
11506 | rm -f conftest.$ac_objext | |
11507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11508 | (eval $ac_compile) 2>conftest.er1 | |
11509 | ac_status=$? | |
11510 | grep -v '^ *+' conftest.er1 >conftest.err | |
11511 | rm -f conftest.er1 | |
11512 | cat conftest.err >&5 | |
11513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11514 | (exit $ac_status); } && | |
b4e70030 JB |
11515 | { ac_try='test -z "$ac_c_werror_flag" |
11516 | || test ! -s conftest.err' | |
666ec76f MK |
11517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11518 | (eval $ac_try) 2>&5 | |
11519 | ac_status=$? | |
11520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11521 | (exit $ac_status); }; } && | |
11522 | { ac_try='test -s conftest.$ac_objext' | |
11523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11524 | (eval $ac_try) 2>&5 | |
11525 | ac_status=$? | |
11526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11527 | (exit $ac_status); }; }; then | |
4e8d927d | 11528 | ac_cv_type_uintptr_t=yes |
666ec76f MK |
11529 | else |
11530 | echo "$as_me: failed program was:" >&5 | |
11531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 11532 | |
b4e70030 | 11533 | ac_cv_type_uintptr_t=no |
a3828db0 MK |
11534 | fi |
11535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11536 | fi | |
b4e70030 JB |
11537 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
11538 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
4e8d927d DJ |
11539 | if test $ac_cv_type_uintptr_t = yes; then |
11540 | : | |
a3828db0 | 11541 | else |
4e8d927d | 11542 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11543 | fi |
4e8d927d | 11544 | |
b4e70030 JB |
11545 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 |
11546 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
4e8d927d | 11547 | if test "${ac_cv_type_int_least32_t+set}" = set; then |
a3828db0 MK |
11548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11549 | else | |
11550 | cat >conftest.$ac_ext <<_ACEOF | |
666ec76f MK |
11551 | /* confdefs.h. */ |
11552 | _ACEOF | |
11553 | cat confdefs.h >>conftest.$ac_ext | |
11554 | cat >>conftest.$ac_ext <<_ACEOF | |
11555 | /* end confdefs.h. */ | |
4e8d927d DJ |
11556 | #include <sys/types.h> |
11557 | #include <$i> | |
11558 | ||
bec39cab AC |
11559 | int |
11560 | main () | |
11561 | { | |
b4e70030 | 11562 | if ((int_least32_t *) 0) |
4e8d927d | 11563 | return 0; |
b4e70030 | 11564 | if (sizeof (int_least32_t)) |
4e8d927d | 11565 | return 0; |
bec39cab AC |
11566 | ; |
11567 | return 0; | |
11568 | } | |
11569 | _ACEOF | |
11570 | rm -f conftest.$ac_objext | |
11571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11572 | (eval $ac_compile) 2>conftest.er1 | |
11573 | ac_status=$? | |
11574 | grep -v '^ *+' conftest.er1 >conftest.err | |
11575 | rm -f conftest.er1 | |
11576 | cat conftest.err >&5 | |
11577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11578 | (exit $ac_status); } && | |
b4e70030 JB |
11579 | { ac_try='test -z "$ac_c_werror_flag" |
11580 | || test ! -s conftest.err' | |
bec39cab AC |
11581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11582 | (eval $ac_try) 2>&5 | |
11583 | ac_status=$? | |
11584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11585 | (exit $ac_status); }; } && | |
11586 | { ac_try='test -s conftest.$ac_objext' | |
11587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11588 | (eval $ac_try) 2>&5 | |
11589 | ac_status=$? | |
11590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11591 | (exit $ac_status); }; }; then | |
4e8d927d | 11592 | ac_cv_type_int_least32_t=yes |
b9362cc7 | 11593 | else |
bec39cab AC |
11594 | echo "$as_me: failed program was:" >&5 |
11595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11596 | ||
b4e70030 | 11597 | ac_cv_type_int_least32_t=no |
b9362cc7 | 11598 | fi |
bec39cab | 11599 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b9362cc7 | 11600 | fi |
b4e70030 JB |
11601 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 |
11602 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
4e8d927d DJ |
11603 | if test $ac_cv_type_int_least32_t = yes; then |
11604 | : | |
a3828db0 | 11605 | else |
4e8d927d | 11606 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11607 | fi |
5ee754fc | 11608 | |
b4e70030 JB |
11609 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 |
11610 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
4e8d927d | 11611 | if test "${ac_cv_type_int_fast32_t+set}" = set; then |
bec39cab AC |
11612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11613 | else | |
11614 | cat >conftest.$ac_ext <<_ACEOF | |
11615 | /* confdefs.h. */ | |
11616 | _ACEOF | |
11617 | cat confdefs.h >>conftest.$ac_ext | |
11618 | cat >>conftest.$ac_ext <<_ACEOF | |
11619 | /* end confdefs.h. */ | |
4e8d927d DJ |
11620 | #include <sys/types.h> |
11621 | #include <$i> | |
11622 | ||
bec39cab AC |
11623 | int |
11624 | main () | |
11625 | { | |
b4e70030 | 11626 | if ((int_fast32_t *) 0) |
4e8d927d | 11627 | return 0; |
b4e70030 | 11628 | if (sizeof (int_fast32_t)) |
4e8d927d | 11629 | return 0; |
bec39cab AC |
11630 | ; |
11631 | return 0; | |
11632 | } | |
11633 | _ACEOF | |
11634 | rm -f conftest.$ac_objext | |
11635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11636 | (eval $ac_compile) 2>conftest.er1 | |
11637 | ac_status=$? | |
11638 | grep -v '^ *+' conftest.er1 >conftest.err | |
11639 | rm -f conftest.er1 | |
11640 | cat conftest.err >&5 | |
11641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11642 | (exit $ac_status); } && | |
b4e70030 JB |
11643 | { ac_try='test -z "$ac_c_werror_flag" |
11644 | || test ! -s conftest.err' | |
bec39cab AC |
11645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11646 | (eval $ac_try) 2>&5 | |
11647 | ac_status=$? | |
11648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11649 | (exit $ac_status); }; } && | |
11650 | { ac_try='test -s conftest.$ac_objext' | |
11651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11652 | (eval $ac_try) 2>&5 | |
11653 | ac_status=$? | |
11654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11655 | (exit $ac_status); }; }; then | |
4e8d927d | 11656 | ac_cv_type_int_fast32_t=yes |
c906108c | 11657 | else |
bec39cab AC |
11658 | echo "$as_me: failed program was:" >&5 |
11659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11660 | ||
b4e70030 | 11661 | ac_cv_type_int_fast32_t=no |
c906108c | 11662 | fi |
bec39cab | 11663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 11664 | fi |
b4e70030 JB |
11665 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 |
11666 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
4e8d927d DJ |
11667 | if test $ac_cv_type_int_fast32_t = yes; then |
11668 | : | |
a3828db0 | 11669 | else |
4e8d927d | 11670 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11671 | fi |
4e8d927d | 11672 | |
b4e70030 JB |
11673 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
11674 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
4e8d927d | 11675 | if test "${ac_cv_type_uint64_t+set}" = set; then |
bec39cab AC |
11676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11677 | else | |
11678 | cat >conftest.$ac_ext <<_ACEOF | |
11679 | /* confdefs.h. */ | |
11680 | _ACEOF | |
11681 | cat confdefs.h >>conftest.$ac_ext | |
11682 | cat >>conftest.$ac_ext <<_ACEOF | |
11683 | /* end confdefs.h. */ | |
4e8d927d DJ |
11684 | #include <sys/types.h> |
11685 | #include <$i> | |
11686 | ||
bec39cab AC |
11687 | int |
11688 | main () | |
11689 | { | |
b4e70030 | 11690 | if ((uint64_t *) 0) |
4e8d927d | 11691 | return 0; |
b4e70030 | 11692 | if (sizeof (uint64_t)) |
4e8d927d | 11693 | return 0; |
bec39cab AC |
11694 | ; |
11695 | return 0; | |
11696 | } | |
11697 | _ACEOF | |
11698 | rm -f conftest.$ac_objext | |
11699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11700 | (eval $ac_compile) 2>conftest.er1 | |
11701 | ac_status=$? | |
11702 | grep -v '^ *+' conftest.er1 >conftest.err | |
11703 | rm -f conftest.er1 | |
11704 | cat conftest.err >&5 | |
11705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11706 | (exit $ac_status); } && | |
b4e70030 JB |
11707 | { ac_try='test -z "$ac_c_werror_flag" |
11708 | || test ! -s conftest.err' | |
bec39cab AC |
11709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11710 | (eval $ac_try) 2>&5 | |
11711 | ac_status=$? | |
11712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11713 | (exit $ac_status); }; } && | |
11714 | { ac_try='test -s conftest.$ac_objext' | |
11715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11716 | (eval $ac_try) 2>&5 | |
11717 | ac_status=$? | |
11718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11719 | (exit $ac_status); }; }; then | |
4e8d927d | 11720 | ac_cv_type_uint64_t=yes |
c906108c | 11721 | else |
bec39cab AC |
11722 | echo "$as_me: failed program was:" >&5 |
11723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11724 | ||
b4e70030 | 11725 | ac_cv_type_uint64_t=no |
c906108c | 11726 | fi |
bec39cab | 11727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 11728 | fi |
b4e70030 JB |
11729 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
11730 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
4e8d927d DJ |
11731 | if test $ac_cv_type_uint64_t = yes; then |
11732 | : | |
a3828db0 | 11733 | else |
4e8d927d | 11734 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
c906108c SS |
11735 | fi |
11736 | ||
4e8d927d DJ |
11737 | break |
11738 | done | |
11739 | if test "$acx_cv_header_stdint" = stddef.h; then | |
3841debe | 11740 | acx_cv_header_stdint_kind="(lacks uintmax_t)" |
4e8d927d | 11741 | for i in stdint.h $inttype_headers; do |
3841debe | 11742 | unset ac_cv_type_uintptr_t |
4e8d927d DJ |
11743 | unset ac_cv_type_uint32_t |
11744 | unset ac_cv_type_uint64_t | |
11745 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
b4e70030 JB |
11746 | echo "$as_me:$LINENO: checking for uint32_t" >&5 |
11747 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
4e8d927d | 11748 | if test "${ac_cv_type_uint32_t+set}" = set; then |
bec39cab | 11749 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bce58c09 | 11750 | else |
bec39cab AC |
11751 | cat >conftest.$ac_ext <<_ACEOF |
11752 | /* confdefs.h. */ | |
11753 | _ACEOF | |
11754 | cat confdefs.h >>conftest.$ac_ext | |
11755 | cat >>conftest.$ac_ext <<_ACEOF | |
11756 | /* end confdefs.h. */ | |
4e8d927d DJ |
11757 | #include <sys/types.h> |
11758 | #include <$i> | |
11759 | ||
a3828db0 MK |
11760 | int |
11761 | main () | |
11762 | { | |
b4e70030 | 11763 | if ((uint32_t *) 0) |
4e8d927d | 11764 | return 0; |
b4e70030 | 11765 | if (sizeof (uint32_t)) |
4e8d927d | 11766 | return 0; |
a3828db0 MK |
11767 | ; |
11768 | return 0; | |
11769 | } | |
bec39cab AC |
11770 | _ACEOF |
11771 | rm -f conftest.$ac_objext | |
11772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11773 | (eval $ac_compile) 2>conftest.er1 | |
11774 | ac_status=$? | |
11775 | grep -v '^ *+' conftest.er1 >conftest.err | |
11776 | rm -f conftest.er1 | |
11777 | cat conftest.err >&5 | |
11778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11779 | (exit $ac_status); } && | |
b4e70030 JB |
11780 | { ac_try='test -z "$ac_c_werror_flag" |
11781 | || test ! -s conftest.err' | |
bec39cab AC |
11782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11783 | (eval $ac_try) 2>&5 | |
11784 | ac_status=$? | |
11785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11786 | (exit $ac_status); }; } && | |
11787 | { ac_try='test -s conftest.$ac_objext' | |
11788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11789 | (eval $ac_try) 2>&5 | |
11790 | ac_status=$? | |
11791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11792 | (exit $ac_status); }; }; then | |
4e8d927d | 11793 | ac_cv_type_uint32_t=yes |
bce58c09 | 11794 | else |
bec39cab AC |
11795 | echo "$as_me: failed program was:" >&5 |
11796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11797 | ||
b4e70030 | 11798 | ac_cv_type_uint32_t=no |
bce58c09 | 11799 | fi |
bec39cab | 11800 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bce58c09 | 11801 | fi |
b4e70030 JB |
11802 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
11803 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
4e8d927d DJ |
11804 | if test $ac_cv_type_uint32_t = yes; then |
11805 | acx_cv_header_stdint=$i | |
a3828db0 | 11806 | else |
4e8d927d | 11807 | continue |
e5a7de23 | 11808 | fi |
4e8d927d | 11809 | |
b4e70030 JB |
11810 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
11811 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
4e8d927d | 11812 | if test "${ac_cv_type_uint64_t+set}" = set; then |
e5a7de23 EZ |
11813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11814 | else | |
11815 | cat >conftest.$ac_ext <<_ACEOF | |
11816 | /* confdefs.h. */ | |
11817 | _ACEOF | |
11818 | cat confdefs.h >>conftest.$ac_ext | |
11819 | cat >>conftest.$ac_ext <<_ACEOF | |
11820 | /* end confdefs.h. */ | |
4e8d927d DJ |
11821 | #include <sys/types.h> |
11822 | #include <$i> | |
11823 | ||
e5a7de23 EZ |
11824 | int |
11825 | main () | |
11826 | { | |
b4e70030 | 11827 | if ((uint64_t *) 0) |
4e8d927d | 11828 | return 0; |
b4e70030 | 11829 | if (sizeof (uint64_t)) |
4e8d927d | 11830 | return 0; |
e5a7de23 EZ |
11831 | ; |
11832 | return 0; | |
11833 | } | |
11834 | _ACEOF | |
11835 | rm -f conftest.$ac_objext | |
11836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11837 | (eval $ac_compile) 2>conftest.er1 | |
11838 | ac_status=$? | |
11839 | grep -v '^ *+' conftest.er1 >conftest.err | |
11840 | rm -f conftest.er1 | |
11841 | cat conftest.err >&5 | |
11842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11843 | (exit $ac_status); } && | |
b4e70030 JB |
11844 | { ac_try='test -z "$ac_c_werror_flag" |
11845 | || test ! -s conftest.err' | |
e5a7de23 EZ |
11846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11847 | (eval $ac_try) 2>&5 | |
11848 | ac_status=$? | |
11849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11850 | (exit $ac_status); }; } && | |
11851 | { ac_try='test -s conftest.$ac_objext' | |
11852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11853 | (eval $ac_try) 2>&5 | |
11854 | ac_status=$? | |
11855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11856 | (exit $ac_status); }; }; then | |
4e8d927d | 11857 | ac_cv_type_uint64_t=yes |
e5a7de23 EZ |
11858 | else |
11859 | echo "$as_me: failed program was:" >&5 | |
11860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11861 | ||
b4e70030 | 11862 | ac_cv_type_uint64_t=no |
e5a7de23 EZ |
11863 | fi |
11864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11865 | fi | |
b4e70030 JB |
11866 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
11867 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
3841debe DJ |
11868 | |
11869 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
11870 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
11871 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
11872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11873 | else | |
11874 | cat >conftest.$ac_ext <<_ACEOF | |
11875 | /* confdefs.h. */ | |
11876 | _ACEOF | |
11877 | cat confdefs.h >>conftest.$ac_ext | |
11878 | cat >>conftest.$ac_ext <<_ACEOF | |
11879 | /* end confdefs.h. */ | |
11880 | #include <sys/types.h> | |
11881 | #include <$i> | |
11882 | ||
11883 | int | |
11884 | main () | |
11885 | { | |
11886 | if ((uintptr_t *) 0) | |
11887 | return 0; | |
11888 | if (sizeof (uintptr_t)) | |
11889 | return 0; | |
11890 | ; | |
11891 | return 0; | |
11892 | } | |
11893 | _ACEOF | |
11894 | rm -f conftest.$ac_objext | |
11895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11896 | (eval $ac_compile) 2>conftest.er1 | |
11897 | ac_status=$? | |
11898 | grep -v '^ *+' conftest.er1 >conftest.err | |
11899 | rm -f conftest.er1 | |
11900 | cat conftest.err >&5 | |
11901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11902 | (exit $ac_status); } && | |
11903 | { ac_try='test -z "$ac_c_werror_flag" | |
11904 | || test ! -s conftest.err' | |
11905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11906 | (eval $ac_try) 2>&5 | |
11907 | ac_status=$? | |
11908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11909 | (exit $ac_status); }; } && | |
11910 | { ac_try='test -s conftest.$ac_objext' | |
11911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11912 | (eval $ac_try) 2>&5 | |
11913 | ac_status=$? | |
11914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11915 | (exit $ac_status); }; }; then | |
11916 | ac_cv_type_uintptr_t=yes | |
e5a7de23 | 11917 | else |
3841debe DJ |
11918 | echo "$as_me: failed program was:" >&5 |
11919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11920 | ||
11921 | ac_cv_type_uintptr_t=no | |
4e8d927d | 11922 | fi |
3841debe DJ |
11923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11924 | fi | |
11925 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
11926 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
e5a7de23 | 11927 | |
4e8d927d DJ |
11928 | break |
11929 | done | |
e5a7de23 | 11930 | fi |
4e8d927d DJ |
11931 | if test "$acx_cv_header_stdint" = stddef.h; then |
11932 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
11933 | for i in sys/types.h $inttype_headers; do | |
11934 | unset ac_cv_type_u_int32_t | |
11935 | unset ac_cv_type_u_int64_t | |
11936 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
b4e70030 JB |
11937 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
11938 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
4e8d927d | 11939 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
e5a7de23 EZ |
11940 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11941 | else | |
11942 | cat >conftest.$ac_ext <<_ACEOF | |
11943 | /* confdefs.h. */ | |
11944 | _ACEOF | |
11945 | cat confdefs.h >>conftest.$ac_ext | |
11946 | cat >>conftest.$ac_ext <<_ACEOF | |
11947 | /* end confdefs.h. */ | |
4e8d927d DJ |
11948 | #include <sys/types.h> |
11949 | #include <$i> | |
11950 | ||
e5a7de23 EZ |
11951 | int |
11952 | main () | |
11953 | { | |
b4e70030 | 11954 | if ((u_int32_t *) 0) |
4e8d927d | 11955 | return 0; |
b4e70030 | 11956 | if (sizeof (u_int32_t)) |
4e8d927d | 11957 | return 0; |
e5a7de23 EZ |
11958 | ; |
11959 | return 0; | |
11960 | } | |
11961 | _ACEOF | |
11962 | rm -f conftest.$ac_objext | |
11963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11964 | (eval $ac_compile) 2>conftest.er1 | |
11965 | ac_status=$? | |
11966 | grep -v '^ *+' conftest.er1 >conftest.err | |
11967 | rm -f conftest.er1 | |
11968 | cat conftest.err >&5 | |
11969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11970 | (exit $ac_status); } && | |
b4e70030 JB |
11971 | { ac_try='test -z "$ac_c_werror_flag" |
11972 | || test ! -s conftest.err' | |
e5a7de23 EZ |
11973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11974 | (eval $ac_try) 2>&5 | |
11975 | ac_status=$? | |
11976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11977 | (exit $ac_status); }; } && | |
11978 | { ac_try='test -s conftest.$ac_objext' | |
11979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11980 | (eval $ac_try) 2>&5 | |
11981 | ac_status=$? | |
11982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11983 | (exit $ac_status); }; }; then | |
4e8d927d | 11984 | ac_cv_type_u_int32_t=yes |
e5a7de23 EZ |
11985 | else |
11986 | echo "$as_me: failed program was:" >&5 | |
11987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11988 | ||
b4e70030 | 11989 | ac_cv_type_u_int32_t=no |
e5a7de23 EZ |
11990 | fi |
11991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11992 | fi | |
b4e70030 JB |
11993 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
11994 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
4e8d927d DJ |
11995 | if test $ac_cv_type_u_int32_t = yes; then |
11996 | acx_cv_header_stdint=$i | |
e5a7de23 | 11997 | else |
4e8d927d | 11998 | continue |
a3828db0 | 11999 | fi |
5ee754fc | 12000 | |
b4e70030 JB |
12001 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
12002 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
4e8d927d | 12003 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
bec39cab AC |
12004 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12005 | else | |
12006 | cat >conftest.$ac_ext <<_ACEOF | |
12007 | /* confdefs.h. */ | |
12008 | _ACEOF | |
12009 | cat confdefs.h >>conftest.$ac_ext | |
12010 | cat >>conftest.$ac_ext <<_ACEOF | |
12011 | /* end confdefs.h. */ | |
4e8d927d DJ |
12012 | #include <sys/types.h> |
12013 | #include <$i> | |
12014 | ||
bec39cab AC |
12015 | int |
12016 | main () | |
12017 | { | |
b4e70030 | 12018 | if ((u_int64_t *) 0) |
4e8d927d | 12019 | return 0; |
b4e70030 | 12020 | if (sizeof (u_int64_t)) |
4e8d927d | 12021 | return 0; |
bec39cab AC |
12022 | ; |
12023 | return 0; | |
12024 | } | |
12025 | _ACEOF | |
a3828db0 MK |
12026 | rm -f conftest.$ac_objext |
12027 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12028 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
12029 | ac_status=$? |
12030 | grep -v '^ *+' conftest.er1 >conftest.err | |
12031 | rm -f conftest.er1 | |
12032 | cat conftest.err >&5 | |
12033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12034 | (exit $ac_status); } && | |
b4e70030 JB |
12035 | { ac_try='test -z "$ac_c_werror_flag" |
12036 | || test ! -s conftest.err' | |
bec39cab AC |
12037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12038 | (eval $ac_try) 2>&5 | |
12039 | ac_status=$? | |
12040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12041 | (exit $ac_status); }; } && | |
a3828db0 | 12042 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
12043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12044 | (eval $ac_try) 2>&5 | |
12045 | ac_status=$? | |
12046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12047 | (exit $ac_status); }; }; then | |
4e8d927d | 12048 | ac_cv_type_u_int64_t=yes |
bec39cab AC |
12049 | else |
12050 | echo "$as_me: failed program was:" >&5 | |
12051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12052 | ||
b4e70030 | 12053 | ac_cv_type_u_int64_t=no |
4e8d927d | 12054 | fi |
4e8d927d DJ |
12055 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12056 | fi | |
b4e70030 JB |
12057 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
12058 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
4e8d927d DJ |
12059 | |
12060 | break | |
12061 | done | |
12062 | fi | |
12063 | if test "$acx_cv_header_stdint" = stddef.h; then | |
12064 | acx_cv_header_stdint_kind="(using manual detection)" | |
12065 | fi | |
12066 | ||
12067 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
12068 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
12069 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
12070 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
12071 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
12072 | ||
12073 | # ----------------- Summarize what we found so far | |
12074 | ||
b4e70030 JB |
12075 | echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5 |
12076 | echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6 | |
4e8d927d | 12077 | |
b4e70030 | 12078 | case `$as_basename gdb_stdint.h || |
4e8d927d DJ |
12079 | $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ |
12080 | Xgdb_stdint.h : 'X\(//\)$' \| \ | |
b4e70030 JB |
12081 | Xgdb_stdint.h : 'X\(/\)$' \| \ |
12082 | . : '\(.\)' 2>/dev/null || | |
4e8d927d | 12083 | echo X/gdb_stdint.h | |
b4e70030 JB |
12084 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
12085 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
12086 | /^X\/\(\/\).*/{ s//\1/; q; } | |
12087 | s/.*/./; q'` in | |
4e8d927d DJ |
12088 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 |
12089 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
12090 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
12091 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
12092 | *) ;; | |
12093 | esac | |
12094 | ||
b4e70030 JB |
12095 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
12096 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 | |
4e8d927d DJ |
12097 | |
12098 | # ----------------- done included file, check C basic types -------- | |
12099 | ||
12100 | # Lacking an uintptr_t? Test size of void * | |
12101 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
b4e70030 JB |
12102 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 |
12103 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
4e8d927d DJ |
12104 | if test "${ac_cv_type_void_p+set}" = set; then |
12105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12106 | else | |
12107 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 12108 | /* confdefs.h. */ |
bec39cab AC |
12109 | _ACEOF |
12110 | cat confdefs.h >>conftest.$ac_ext | |
12111 | cat >>conftest.$ac_ext <<_ACEOF | |
12112 | /* end confdefs.h. */ | |
a3828db0 | 12113 | $ac_includes_default |
bec39cab AC |
12114 | int |
12115 | main () | |
12116 | { | |
b4e70030 | 12117 | if ((void * *) 0) |
4e8d927d | 12118 | return 0; |
b4e70030 | 12119 | if (sizeof (void *)) |
4e8d927d | 12120 | return 0; |
bec39cab AC |
12121 | ; |
12122 | return 0; | |
12123 | } | |
12124 | _ACEOF | |
a3828db0 MK |
12125 | rm -f conftest.$ac_objext |
12126 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12127 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
12128 | ac_status=$? |
12129 | grep -v '^ *+' conftest.er1 >conftest.err | |
12130 | rm -f conftest.er1 | |
12131 | cat conftest.err >&5 | |
12132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12133 | (exit $ac_status); } && | |
b4e70030 JB |
12134 | { ac_try='test -z "$ac_c_werror_flag" |
12135 | || test ! -s conftest.err' | |
bec39cab AC |
12136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12137 | (eval $ac_try) 2>&5 | |
12138 | ac_status=$? | |
12139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12140 | (exit $ac_status); }; } && | |
a3828db0 | 12141 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
12142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12143 | (eval $ac_try) 2>&5 | |
12144 | ac_status=$? | |
12145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12146 | (exit $ac_status); }; }; then | |
4e8d927d | 12147 | ac_cv_type_void_p=yes |
46711df8 | 12148 | else |
bec39cab AC |
12149 | echo "$as_me: failed program was:" >&5 |
12150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12151 | ||
b4e70030 | 12152 | ac_cv_type_void_p=no |
a3828db0 | 12153 | fi |
4e8d927d | 12154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d3ea6809 | 12155 | fi |
b4e70030 JB |
12156 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
12157 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
d3ea6809 | 12158 | |
b4e70030 JB |
12159 | echo "$as_me:$LINENO: checking size of void *" >&5 |
12160 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
4e8d927d | 12161 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
d3ea6809 MM |
12162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12163 | else | |
4e8d927d | 12164 | if test "$ac_cv_type_void_p" = yes; then |
b4e70030 | 12165 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
12166 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
12167 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12168 | # This bug is HP SR number 8606223364. | |
12169 | if test "$cross_compiling" = yes; then | |
12170 | # Depending upon the size, compute the lo and hi bounds. | |
12171 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
12172 | /* confdefs.h. */ |
12173 | _ACEOF | |
12174 | cat confdefs.h >>conftest.$ac_ext | |
12175 | cat >>conftest.$ac_ext <<_ACEOF | |
12176 | /* end confdefs.h. */ | |
12177 | $ac_includes_default | |
12178 | int | |
12179 | main () | |
12180 | { | |
b4e70030 | 12181 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
4e8d927d DJ |
12182 | test_array [0] = 0 |
12183 | ||
d3ea6809 MM |
12184 | ; |
12185 | return 0; | |
12186 | } | |
12187 | _ACEOF | |
12188 | rm -f conftest.$ac_objext | |
12189 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12190 | (eval $ac_compile) 2>conftest.er1 | |
12191 | ac_status=$? | |
12192 | grep -v '^ *+' conftest.er1 >conftest.err | |
12193 | rm -f conftest.er1 | |
12194 | cat conftest.err >&5 | |
12195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12196 | (exit $ac_status); } && | |
b4e70030 JB |
12197 | { ac_try='test -z "$ac_c_werror_flag" |
12198 | || test ! -s conftest.err' | |
d3ea6809 MM |
12199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12200 | (eval $ac_try) 2>&5 | |
12201 | ac_status=$? | |
12202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12203 | (exit $ac_status); }; } && | |
12204 | { ac_try='test -s conftest.$ac_objext' | |
12205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12206 | (eval $ac_try) 2>&5 | |
12207 | ac_status=$? | |
12208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12209 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
12210 | ac_lo=0 ac_mid=0 |
12211 | while :; do | |
12212 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
12213 | /* confdefs.h. */ |
12214 | _ACEOF | |
12215 | cat confdefs.h >>conftest.$ac_ext | |
12216 | cat >>conftest.$ac_ext <<_ACEOF | |
12217 | /* end confdefs.h. */ | |
12218 | $ac_includes_default | |
12219 | int | |
12220 | main () | |
12221 | { | |
b4e70030 | 12222 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
4e8d927d DJ |
12223 | test_array [0] = 0 |
12224 | ||
d3ea6809 MM |
12225 | ; |
12226 | return 0; | |
12227 | } | |
12228 | _ACEOF | |
12229 | rm -f conftest.$ac_objext | |
12230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12231 | (eval $ac_compile) 2>conftest.er1 | |
12232 | ac_status=$? | |
12233 | grep -v '^ *+' conftest.er1 >conftest.err | |
12234 | rm -f conftest.er1 | |
12235 | cat conftest.err >&5 | |
12236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12237 | (exit $ac_status); } && | |
b4e70030 JB |
12238 | { ac_try='test -z "$ac_c_werror_flag" |
12239 | || test ! -s conftest.err' | |
d3ea6809 MM |
12240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12241 | (eval $ac_try) 2>&5 | |
12242 | ac_status=$? | |
12243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12244 | (exit $ac_status); }; } && | |
12245 | { ac_try='test -s conftest.$ac_objext' | |
12246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12247 | (eval $ac_try) 2>&5 | |
12248 | ac_status=$? | |
12249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12250 | (exit $ac_status); }; }; then | |
4e8d927d | 12251 | ac_hi=$ac_mid; break |
d3ea6809 MM |
12252 | else |
12253 | echo "$as_me: failed program was:" >&5 | |
12254 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12255 | ||
b4e70030 JB |
12256 | ac_lo=`expr $ac_mid + 1` |
12257 | if test $ac_lo -le $ac_mid; then | |
12258 | ac_lo= ac_hi= | |
12259 | break | |
12260 | fi | |
12261 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a3828db0 | 12262 | fi |
4e8d927d DJ |
12263 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12264 | done | |
bec39cab | 12265 | else |
4e8d927d DJ |
12266 | echo "$as_me: failed program was:" >&5 |
12267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12268 | ||
b4e70030 | 12269 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
12270 | /* confdefs.h. */ |
12271 | _ACEOF | |
12272 | cat confdefs.h >>conftest.$ac_ext | |
12273 | cat >>conftest.$ac_ext <<_ACEOF | |
12274 | /* end confdefs.h. */ | |
4e8d927d | 12275 | $ac_includes_default |
bec39cab AC |
12276 | int |
12277 | main () | |
12278 | { | |
b4e70030 | 12279 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
4e8d927d DJ |
12280 | test_array [0] = 0 |
12281 | ||
bec39cab AC |
12282 | ; |
12283 | return 0; | |
12284 | } | |
12285 | _ACEOF | |
a3828db0 MK |
12286 | rm -f conftest.$ac_objext |
12287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12288 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
12289 | ac_status=$? |
12290 | grep -v '^ *+' conftest.er1 >conftest.err | |
12291 | rm -f conftest.er1 | |
12292 | cat conftest.err >&5 | |
12293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12294 | (exit $ac_status); } && | |
b4e70030 JB |
12295 | { ac_try='test -z "$ac_c_werror_flag" |
12296 | || test ! -s conftest.err' | |
bec39cab AC |
12297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12298 | (eval $ac_try) 2>&5 | |
12299 | ac_status=$? | |
12300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12301 | (exit $ac_status); }; } && | |
a3828db0 | 12302 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
12303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12304 | (eval $ac_try) 2>&5 | |
12305 | ac_status=$? | |
12306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12307 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
12308 | ac_hi=-1 ac_mid=-1 |
12309 | while :; do | |
12310 | cat >conftest.$ac_ext <<_ACEOF | |
f9f87d2c MK |
12311 | /* confdefs.h. */ |
12312 | _ACEOF | |
12313 | cat confdefs.h >>conftest.$ac_ext | |
12314 | cat >>conftest.$ac_ext <<_ACEOF | |
12315 | /* end confdefs.h. */ | |
4e8d927d | 12316 | $ac_includes_default |
f9f87d2c MK |
12317 | int |
12318 | main () | |
12319 | { | |
b4e70030 | 12320 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
4e8d927d DJ |
12321 | test_array [0] = 0 |
12322 | ||
f9f87d2c MK |
12323 | ; |
12324 | return 0; | |
12325 | } | |
12326 | _ACEOF | |
12327 | rm -f conftest.$ac_objext | |
12328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12329 | (eval $ac_compile) 2>conftest.er1 | |
12330 | ac_status=$? | |
12331 | grep -v '^ *+' conftest.er1 >conftest.err | |
12332 | rm -f conftest.er1 | |
12333 | cat conftest.err >&5 | |
12334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12335 | (exit $ac_status); } && | |
b4e70030 JB |
12336 | { ac_try='test -z "$ac_c_werror_flag" |
12337 | || test ! -s conftest.err' | |
f9f87d2c MK |
12338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12339 | (eval $ac_try) 2>&5 | |
12340 | ac_status=$? | |
12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12342 | (exit $ac_status); }; } && | |
12343 | { ac_try='test -s conftest.$ac_objext' | |
12344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12345 | (eval $ac_try) 2>&5 | |
12346 | ac_status=$? | |
12347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12348 | (exit $ac_status); }; }; then | |
4e8d927d | 12349 | ac_lo=$ac_mid; break |
f9f87d2c MK |
12350 | else |
12351 | echo "$as_me: failed program was:" >&5 | |
12352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12353 | ||
b4e70030 JB |
12354 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12355 | if test $ac_mid -le $ac_hi; then | |
12356 | ac_lo= ac_hi= | |
12357 | break | |
12358 | fi | |
12359 | ac_mid=`expr 2 '*' $ac_mid` | |
f9f87d2c | 12360 | fi |
4e8d927d DJ |
12361 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12362 | done | |
12363 | else | |
12364 | echo "$as_me: failed program was:" >&5 | |
12365 | sed 's/^/| /' conftest.$ac_ext >&5 | |
f9f87d2c | 12366 | |
b4e70030 | 12367 | ac_lo= ac_hi= |
4e8d927d | 12368 | fi |
4e8d927d | 12369 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3be60c3d | 12370 | fi |
4e8d927d DJ |
12371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12372 | # Binary search between lo and hi bounds. | |
12373 | while test "x$ac_lo" != "x$ac_hi"; do | |
12374 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
3be60c3d MK |
12375 | cat >conftest.$ac_ext <<_ACEOF |
12376 | /* confdefs.h. */ | |
12377 | _ACEOF | |
12378 | cat confdefs.h >>conftest.$ac_ext | |
12379 | cat >>conftest.$ac_ext <<_ACEOF | |
12380 | /* end confdefs.h. */ | |
4e8d927d | 12381 | $ac_includes_default |
3be60c3d MK |
12382 | int |
12383 | main () | |
12384 | { | |
b4e70030 | 12385 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
4e8d927d DJ |
12386 | test_array [0] = 0 |
12387 | ||
3be60c3d MK |
12388 | ; |
12389 | return 0; | |
12390 | } | |
12391 | _ACEOF | |
12392 | rm -f conftest.$ac_objext | |
12393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12394 | (eval $ac_compile) 2>conftest.er1 | |
12395 | ac_status=$? | |
12396 | grep -v '^ *+' conftest.er1 >conftest.err | |
12397 | rm -f conftest.er1 | |
12398 | cat conftest.err >&5 | |
12399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12400 | (exit $ac_status); } && | |
b4e70030 JB |
12401 | { ac_try='test -z "$ac_c_werror_flag" |
12402 | || test ! -s conftest.err' | |
3be60c3d MK |
12403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12404 | (eval $ac_try) 2>&5 | |
12405 | ac_status=$? | |
12406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12407 | (exit $ac_status); }; } && | |
12408 | { ac_try='test -s conftest.$ac_objext' | |
12409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12410 | (eval $ac_try) 2>&5 | |
12411 | ac_status=$? | |
12412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12413 | (exit $ac_status); }; }; then | |
4e8d927d | 12414 | ac_hi=$ac_mid |
3be60c3d MK |
12415 | else |
12416 | echo "$as_me: failed program was:" >&5 | |
12417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12418 | ||
b4e70030 | 12419 | ac_lo=`expr '(' $ac_mid ')' + 1` |
3be60c3d | 12420 | fi |
4e8d927d DJ |
12421 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12422 | done | |
12423 | case $ac_lo in | |
12424 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
b4e70030 | 12425 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12426 | See \`config.log' for more details." >&5 |
b4e70030 | 12427 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12428 | See \`config.log' for more details." >&2;} |
b4e70030 | 12429 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 12430 | esac |
b4e70030 JB |
12431 | else |
12432 | if test "$cross_compiling" = yes; then | |
12433 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
12434 | See \`config.log' for more details." >&5 | |
12435 | echo "$as_me: error: cannot run test program while cross compiling | |
12436 | See \`config.log' for more details." >&2;} | |
12437 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
12438 | else |
12439 | cat >conftest.$ac_ext <<_ACEOF | |
12440 | /* confdefs.h. */ | |
3be60c3d | 12441 | _ACEOF |
4e8d927d DJ |
12442 | cat confdefs.h >>conftest.$ac_ext |
12443 | cat >>conftest.$ac_ext <<_ACEOF | |
12444 | /* end confdefs.h. */ | |
12445 | $ac_includes_default | |
b4e70030 JB |
12446 | long longval () { return (long) (sizeof (void *)); } |
12447 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
4e8d927d DJ |
12448 | #include <stdio.h> |
12449 | #include <stdlib.h> | |
12450 | int | |
12451 | main () | |
12452 | { | |
12453 | ||
12454 | FILE *f = fopen ("conftest.val", "w"); | |
12455 | if (! f) | |
b4e70030 JB |
12456 | exit (1); |
12457 | if (((long) (sizeof (void *))) < 0) | |
4e8d927d | 12458 | { |
b4e70030 JB |
12459 | long i = longval (); |
12460 | if (i != ((long) (sizeof (void *)))) | |
12461 | exit (1); | |
4e8d927d DJ |
12462 | fprintf (f, "%ld\n", i); |
12463 | } | |
12464 | else | |
12465 | { | |
b4e70030 JB |
12466 | unsigned long i = ulongval (); |
12467 | if (i != ((long) (sizeof (void *)))) | |
12468 | exit (1); | |
4e8d927d DJ |
12469 | fprintf (f, "%lu\n", i); |
12470 | } | |
b4e70030 | 12471 | exit (ferror (f) || fclose (f) != 0); |
3be60c3d | 12472 | |
4e8d927d DJ |
12473 | ; |
12474 | return 0; | |
12475 | } | |
12476 | _ACEOF | |
12477 | rm -f conftest$ac_exeext | |
12478 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12479 | (eval $ac_link) 2>&5 | |
12480 | ac_status=$? | |
12481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12482 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12484 | (eval $ac_try) 2>&5 | |
12485 | ac_status=$? | |
12486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12487 | (exit $ac_status); }; }; then | |
12488 | ac_cv_sizeof_void_p=`cat conftest.val` | |
12489 | else | |
12490 | echo "$as_me: program exited with status $ac_status" >&5 | |
12491 | echo "$as_me: failed program was:" >&5 | |
12492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3be60c3d | 12493 | |
4e8d927d | 12494 | ( exit $ac_status ) |
b4e70030 | 12495 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12496 | See \`config.log' for more details." >&5 |
b4e70030 | 12497 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12498 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
12499 | { (exit 1); exit 1; }; } |
12500 | fi | |
12501 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f9f87d2c | 12502 | fi |
4e8d927d DJ |
12503 | fi |
12504 | rm -f conftest.val | |
12505 | else | |
12506 | ac_cv_sizeof_void_p=0 | |
12507 | fi | |
12508 | fi | |
b4e70030 JB |
12509 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
12510 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
4e8d927d DJ |
12511 | cat >>confdefs.h <<_ACEOF |
12512 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
12513 | _ACEOF | |
f9f87d2c | 12514 | |
4e8d927d DJ |
12515 | ;; |
12516 | esac | |
46711df8 | 12517 | |
4e8d927d DJ |
12518 | # Lacking an uint64_t? Test size of long |
12519 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
b4e70030 JB |
12520 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 |
12521 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
4e8d927d | 12522 | if test "${ac_cv_type_long+set}" = set; then |
bec39cab | 12523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46711df8 | 12524 | else |
bec39cab AC |
12525 | cat >conftest.$ac_ext <<_ACEOF |
12526 | /* confdefs.h. */ | |
12527 | _ACEOF | |
12528 | cat confdefs.h >>conftest.$ac_ext | |
12529 | cat >>conftest.$ac_ext <<_ACEOF | |
12530 | /* end confdefs.h. */ | |
4e8d927d | 12531 | $ac_includes_default |
bec39cab | 12532 | int |
46711df8 MK |
12533 | main () |
12534 | { | |
b4e70030 | 12535 | if ((long *) 0) |
4e8d927d | 12536 | return 0; |
b4e70030 | 12537 | if (sizeof (long)) |
4e8d927d | 12538 | return 0; |
a3828db0 MK |
12539 | ; |
12540 | return 0; | |
46711df8 | 12541 | } |
bec39cab | 12542 | _ACEOF |
a3828db0 MK |
12543 | rm -f conftest.$ac_objext |
12544 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12545 | (eval $ac_compile) 2>conftest.er1 | |
12546 | ac_status=$? | |
12547 | grep -v '^ *+' conftest.er1 >conftest.err | |
12548 | rm -f conftest.er1 | |
12549 | cat conftest.err >&5 | |
12550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12551 | (exit $ac_status); } && | |
b4e70030 JB |
12552 | { ac_try='test -z "$ac_c_werror_flag" |
12553 | || test ! -s conftest.err' | |
a3828db0 MK |
12554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12555 | (eval $ac_try) 2>&5 | |
bec39cab AC |
12556 | ac_status=$? |
12557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 MK |
12558 | (exit $ac_status); }; } && |
12559 | { ac_try='test -s conftest.$ac_objext' | |
bec39cab AC |
12560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12561 | (eval $ac_try) 2>&5 | |
12562 | ac_status=$? | |
12563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12564 | (exit $ac_status); }; }; then | |
4e8d927d | 12565 | ac_cv_type_long=yes |
46711df8 | 12566 | else |
a3828db0 | 12567 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
12568 | sed 's/^/| /' conftest.$ac_ext >&5 |
12569 | ||
b4e70030 | 12570 | ac_cv_type_long=no |
46711df8 | 12571 | fi |
4e8d927d | 12572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
46711df8 | 12573 | fi |
b4e70030 JB |
12574 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
12575 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
46711df8 | 12576 | |
b4e70030 JB |
12577 | echo "$as_me:$LINENO: checking size of long" >&5 |
12578 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
4e8d927d | 12579 | if test "${ac_cv_sizeof_long+set}" = set; then |
bec39cab | 12580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 12581 | else |
4e8d927d | 12582 | if test "$ac_cv_type_long" = yes; then |
b4e70030 | 12583 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
12584 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
12585 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12586 | # This bug is HP SR number 8606223364. | |
12587 | if test "$cross_compiling" = yes; then | |
12588 | # Depending upon the size, compute the lo and hi bounds. | |
12589 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
12590 | /* confdefs.h. */ |
12591 | _ACEOF | |
12592 | cat confdefs.h >>conftest.$ac_ext | |
12593 | cat >>conftest.$ac_ext <<_ACEOF | |
12594 | /* end confdefs.h. */ | |
4e8d927d | 12595 | $ac_includes_default |
4e8d927d DJ |
12596 | int |
12597 | main () | |
12598 | { | |
b4e70030 | 12599 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
4e8d927d | 12600 | test_array [0] = 0 |
a3828db0 | 12601 | |
4e8d927d DJ |
12602 | ; |
12603 | return 0; | |
12604 | } | |
bec39cab AC |
12605 | _ACEOF |
12606 | rm -f conftest.$ac_objext | |
12607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12608 | (eval $ac_compile) 2>conftest.er1 | |
12609 | ac_status=$? | |
12610 | grep -v '^ *+' conftest.er1 >conftest.err | |
12611 | rm -f conftest.er1 | |
12612 | cat conftest.err >&5 | |
12613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12614 | (exit $ac_status); } && | |
b4e70030 JB |
12615 | { ac_try='test -z "$ac_c_werror_flag" |
12616 | || test ! -s conftest.err' | |
bec39cab AC |
12617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12618 | (eval $ac_try) 2>&5 | |
12619 | ac_status=$? | |
12620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12621 | (exit $ac_status); }; } && | |
12622 | { ac_try='test -s conftest.$ac_objext' | |
12623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12624 | (eval $ac_try) 2>&5 | |
12625 | ac_status=$? | |
12626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12627 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
12628 | ac_lo=0 ac_mid=0 |
12629 | while :; do | |
12630 | cat >conftest.$ac_ext <<_ACEOF | |
12631 | /* confdefs.h. */ | |
12632 | _ACEOF | |
12633 | cat confdefs.h >>conftest.$ac_ext | |
12634 | cat >>conftest.$ac_ext <<_ACEOF | |
12635 | /* end confdefs.h. */ | |
12636 | $ac_includes_default | |
4e8d927d DJ |
12637 | int |
12638 | main () | |
12639 | { | |
b4e70030 | 12640 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
4e8d927d DJ |
12641 | test_array [0] = 0 |
12642 | ||
12643 | ; | |
12644 | return 0; | |
12645 | } | |
12646 | _ACEOF | |
12647 | rm -f conftest.$ac_objext | |
12648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12649 | (eval $ac_compile) 2>conftest.er1 | |
12650 | ac_status=$? | |
12651 | grep -v '^ *+' conftest.er1 >conftest.err | |
12652 | rm -f conftest.er1 | |
12653 | cat conftest.err >&5 | |
12654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12655 | (exit $ac_status); } && | |
b4e70030 JB |
12656 | { ac_try='test -z "$ac_c_werror_flag" |
12657 | || test ! -s conftest.err' | |
4e8d927d DJ |
12658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12659 | (eval $ac_try) 2>&5 | |
12660 | ac_status=$? | |
12661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12662 | (exit $ac_status); }; } && | |
12663 | { ac_try='test -s conftest.$ac_objext' | |
12664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12665 | (eval $ac_try) 2>&5 | |
12666 | ac_status=$? | |
12667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12668 | (exit $ac_status); }; }; then | |
12669 | ac_hi=$ac_mid; break | |
12670 | else | |
12671 | echo "$as_me: failed program was:" >&5 | |
12672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12673 | ||
b4e70030 JB |
12674 | ac_lo=`expr $ac_mid + 1` |
12675 | if test $ac_lo -le $ac_mid; then | |
12676 | ac_lo= ac_hi= | |
12677 | break | |
12678 | fi | |
12679 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 12680 | fi |
4e8d927d DJ |
12681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12682 | done | |
12683 | else | |
12684 | echo "$as_me: failed program was:" >&5 | |
12685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12686 | ||
b4e70030 | 12687 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
12688 | /* confdefs.h. */ |
12689 | _ACEOF | |
12690 | cat confdefs.h >>conftest.$ac_ext | |
12691 | cat >>conftest.$ac_ext <<_ACEOF | |
12692 | /* end confdefs.h. */ | |
12693 | $ac_includes_default | |
4e8d927d DJ |
12694 | int |
12695 | main () | |
12696 | { | |
b4e70030 | 12697 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
4e8d927d DJ |
12698 | test_array [0] = 0 |
12699 | ||
12700 | ; | |
12701 | return 0; | |
12702 | } | |
12703 | _ACEOF | |
12704 | rm -f conftest.$ac_objext | |
12705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12706 | (eval $ac_compile) 2>conftest.er1 | |
12707 | ac_status=$? | |
12708 | grep -v '^ *+' conftest.er1 >conftest.err | |
12709 | rm -f conftest.er1 | |
12710 | cat conftest.err >&5 | |
12711 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12712 | (exit $ac_status); } && | |
b4e70030 JB |
12713 | { ac_try='test -z "$ac_c_werror_flag" |
12714 | || test ! -s conftest.err' | |
4e8d927d DJ |
12715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12716 | (eval $ac_try) 2>&5 | |
12717 | ac_status=$? | |
12718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12719 | (exit $ac_status); }; } && | |
12720 | { ac_try='test -s conftest.$ac_objext' | |
12721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12722 | (eval $ac_try) 2>&5 | |
12723 | ac_status=$? | |
12724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12725 | (exit $ac_status); }; }; then | |
12726 | ac_hi=-1 ac_mid=-1 | |
12727 | while :; do | |
12728 | cat >conftest.$ac_ext <<_ACEOF | |
12729 | /* confdefs.h. */ | |
12730 | _ACEOF | |
12731 | cat confdefs.h >>conftest.$ac_ext | |
12732 | cat >>conftest.$ac_ext <<_ACEOF | |
12733 | /* end confdefs.h. */ | |
12734 | $ac_includes_default | |
4e8d927d DJ |
12735 | int |
12736 | main () | |
12737 | { | |
b4e70030 | 12738 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
4e8d927d DJ |
12739 | test_array [0] = 0 |
12740 | ||
12741 | ; | |
12742 | return 0; | |
12743 | } | |
12744 | _ACEOF | |
12745 | rm -f conftest.$ac_objext | |
12746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12747 | (eval $ac_compile) 2>conftest.er1 | |
12748 | ac_status=$? | |
12749 | grep -v '^ *+' conftest.er1 >conftest.err | |
12750 | rm -f conftest.er1 | |
12751 | cat conftest.err >&5 | |
12752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12753 | (exit $ac_status); } && | |
b4e70030 JB |
12754 | { ac_try='test -z "$ac_c_werror_flag" |
12755 | || test ! -s conftest.err' | |
4e8d927d DJ |
12756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12757 | (eval $ac_try) 2>&5 | |
12758 | ac_status=$? | |
12759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12760 | (exit $ac_status); }; } && | |
12761 | { ac_try='test -s conftest.$ac_objext' | |
12762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12763 | (eval $ac_try) 2>&5 | |
12764 | ac_status=$? | |
12765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12766 | (exit $ac_status); }; }; then | |
12767 | ac_lo=$ac_mid; break | |
12768 | else | |
12769 | echo "$as_me: failed program was:" >&5 | |
12770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12771 | ||
b4e70030 JB |
12772 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12773 | if test $ac_mid -le $ac_hi; then | |
12774 | ac_lo= ac_hi= | |
12775 | break | |
12776 | fi | |
12777 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 12778 | fi |
4e8d927d DJ |
12779 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12780 | done | |
12781 | else | |
12782 | echo "$as_me: failed program was:" >&5 | |
12783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12784 | ||
b4e70030 | 12785 | ac_lo= ac_hi= |
4e8d927d | 12786 | fi |
4e8d927d DJ |
12787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12788 | fi | |
4e8d927d DJ |
12789 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12790 | # Binary search between lo and hi bounds. | |
12791 | while test "x$ac_lo" != "x$ac_hi"; do | |
12792 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12793 | cat >conftest.$ac_ext <<_ACEOF | |
12794 | /* confdefs.h. */ | |
12795 | _ACEOF | |
12796 | cat confdefs.h >>conftest.$ac_ext | |
12797 | cat >>conftest.$ac_ext <<_ACEOF | |
12798 | /* end confdefs.h. */ | |
12799 | $ac_includes_default | |
4e8d927d DJ |
12800 | int |
12801 | main () | |
12802 | { | |
b4e70030 | 12803 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
4e8d927d DJ |
12804 | test_array [0] = 0 |
12805 | ||
12806 | ; | |
12807 | return 0; | |
12808 | } | |
12809 | _ACEOF | |
12810 | rm -f conftest.$ac_objext | |
12811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12812 | (eval $ac_compile) 2>conftest.er1 | |
12813 | ac_status=$? | |
12814 | grep -v '^ *+' conftest.er1 >conftest.err | |
12815 | rm -f conftest.er1 | |
12816 | cat conftest.err >&5 | |
12817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12818 | (exit $ac_status); } && | |
b4e70030 JB |
12819 | { ac_try='test -z "$ac_c_werror_flag" |
12820 | || test ! -s conftest.err' | |
4e8d927d DJ |
12821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12822 | (eval $ac_try) 2>&5 | |
12823 | ac_status=$? | |
12824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12825 | (exit $ac_status); }; } && | |
12826 | { ac_try='test -s conftest.$ac_objext' | |
12827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12828 | (eval $ac_try) 2>&5 | |
12829 | ac_status=$? | |
12830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12831 | (exit $ac_status); }; }; then | |
12832 | ac_hi=$ac_mid | |
12833 | else | |
12834 | echo "$as_me: failed program was:" >&5 | |
12835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12836 | ||
b4e70030 | 12837 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 12838 | fi |
4e8d927d DJ |
12839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12840 | done | |
12841 | case $ac_lo in | |
12842 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
b4e70030 | 12843 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
4e8d927d | 12844 | See \`config.log' for more details." >&5 |
b4e70030 | 12845 | echo "$as_me: error: cannot compute sizeof (long), 77 |
4e8d927d | 12846 | See \`config.log' for more details." >&2;} |
b4e70030 | 12847 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 12848 | esac |
b4e70030 JB |
12849 | else |
12850 | if test "$cross_compiling" = yes; then | |
12851 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
12852 | See \`config.log' for more details." >&5 | |
12853 | echo "$as_me: error: cannot run test program while cross compiling | |
12854 | See \`config.log' for more details." >&2;} | |
12855 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
12856 | else |
12857 | cat >conftest.$ac_ext <<_ACEOF | |
12858 | /* confdefs.h. */ | |
12859 | _ACEOF | |
12860 | cat confdefs.h >>conftest.$ac_ext | |
12861 | cat >>conftest.$ac_ext <<_ACEOF | |
12862 | /* end confdefs.h. */ | |
12863 | $ac_includes_default | |
b4e70030 JB |
12864 | long longval () { return (long) (sizeof (long)); } |
12865 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
4e8d927d DJ |
12866 | #include <stdio.h> |
12867 | #include <stdlib.h> | |
12868 | int | |
12869 | main () | |
12870 | { | |
12871 | ||
12872 | FILE *f = fopen ("conftest.val", "w"); | |
12873 | if (! f) | |
b4e70030 JB |
12874 | exit (1); |
12875 | if (((long) (sizeof (long))) < 0) | |
4e8d927d | 12876 | { |
b4e70030 JB |
12877 | long i = longval (); |
12878 | if (i != ((long) (sizeof (long)))) | |
12879 | exit (1); | |
4e8d927d DJ |
12880 | fprintf (f, "%ld\n", i); |
12881 | } | |
12882 | else | |
12883 | { | |
b4e70030 JB |
12884 | unsigned long i = ulongval (); |
12885 | if (i != ((long) (sizeof (long)))) | |
12886 | exit (1); | |
4e8d927d DJ |
12887 | fprintf (f, "%lu\n", i); |
12888 | } | |
b4e70030 | 12889 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
12890 | |
12891 | ; | |
12892 | return 0; | |
12893 | } | |
12894 | _ACEOF | |
12895 | rm -f conftest$ac_exeext | |
12896 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12897 | (eval $ac_link) 2>&5 | |
12898 | ac_status=$? | |
12899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12900 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12902 | (eval $ac_try) 2>&5 | |
12903 | ac_status=$? | |
12904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12905 | (exit $ac_status); }; }; then | |
12906 | ac_cv_sizeof_long=`cat conftest.val` | |
12907 | else | |
12908 | echo "$as_me: program exited with status $ac_status" >&5 | |
12909 | echo "$as_me: failed program was:" >&5 | |
12910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12911 | ||
12912 | ( exit $ac_status ) | |
b4e70030 | 12913 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
4e8d927d | 12914 | See \`config.log' for more details." >&5 |
b4e70030 | 12915 | echo "$as_me: error: cannot compute sizeof (long), 77 |
4e8d927d | 12916 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
12917 | { (exit 1); exit 1; }; } |
12918 | fi | |
12919 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 12920 | fi |
4e8d927d DJ |
12921 | fi |
12922 | rm -f conftest.val | |
12923 | else | |
12924 | ac_cv_sizeof_long=0 | |
12925 | fi | |
12926 | fi | |
b4e70030 JB |
12927 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
12928 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
4e8d927d DJ |
12929 | cat >>confdefs.h <<_ACEOF |
12930 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12931 | _ACEOF | |
12932 | ||
12933 | ;; | |
12934 | esac | |
12935 | ||
12936 | if test $acx_cv_header_stdint = stddef.h; then | |
12937 | # Lacking a good header? Test size of everything and deduce all types. | |
b4e70030 JB |
12938 | echo "$as_me:$LINENO: checking for int" >&5 |
12939 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
4e8d927d DJ |
12940 | if test "${ac_cv_type_int+set}" = set; then |
12941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12942 | else | |
12943 | cat >conftest.$ac_ext <<_ACEOF | |
12944 | /* confdefs.h. */ | |
12945 | _ACEOF | |
12946 | cat confdefs.h >>conftest.$ac_ext | |
12947 | cat >>conftest.$ac_ext <<_ACEOF | |
12948 | /* end confdefs.h. */ | |
12949 | $ac_includes_default | |
4e8d927d DJ |
12950 | int |
12951 | main () | |
12952 | { | |
b4e70030 | 12953 | if ((int *) 0) |
4e8d927d | 12954 | return 0; |
b4e70030 | 12955 | if (sizeof (int)) |
4e8d927d DJ |
12956 | return 0; |
12957 | ; | |
12958 | return 0; | |
12959 | } | |
12960 | _ACEOF | |
12961 | rm -f conftest.$ac_objext | |
12962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12963 | (eval $ac_compile) 2>conftest.er1 | |
12964 | ac_status=$? | |
12965 | grep -v '^ *+' conftest.er1 >conftest.err | |
12966 | rm -f conftest.er1 | |
12967 | cat conftest.err >&5 | |
12968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12969 | (exit $ac_status); } && | |
b4e70030 JB |
12970 | { ac_try='test -z "$ac_c_werror_flag" |
12971 | || test ! -s conftest.err' | |
4e8d927d DJ |
12972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12973 | (eval $ac_try) 2>&5 | |
12974 | ac_status=$? | |
12975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12976 | (exit $ac_status); }; } && | |
12977 | { ac_try='test -s conftest.$ac_objext' | |
12978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12979 | (eval $ac_try) 2>&5 | |
12980 | ac_status=$? | |
12981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12982 | (exit $ac_status); }; }; then | |
12983 | ac_cv_type_int=yes | |
12984 | else | |
12985 | echo "$as_me: failed program was:" >&5 | |
12986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12987 | ||
b4e70030 | 12988 | ac_cv_type_int=no |
4e8d927d | 12989 | fi |
4e8d927d DJ |
12990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12991 | fi | |
b4e70030 JB |
12992 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
12993 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
4e8d927d | 12994 | |
b4e70030 JB |
12995 | echo "$as_me:$LINENO: checking size of int" >&5 |
12996 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
4e8d927d DJ |
12997 | if test "${ac_cv_sizeof_int+set}" = set; then |
12998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12999 | else | |
13000 | if test "$ac_cv_type_int" = yes; then | |
b4e70030 | 13001 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
13002 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13003 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13004 | # This bug is HP SR number 8606223364. | |
13005 | if test "$cross_compiling" = yes; then | |
13006 | # Depending upon the size, compute the lo and hi bounds. | |
13007 | cat >conftest.$ac_ext <<_ACEOF | |
13008 | /* confdefs.h. */ | |
13009 | _ACEOF | |
13010 | cat confdefs.h >>conftest.$ac_ext | |
13011 | cat >>conftest.$ac_ext <<_ACEOF | |
13012 | /* end confdefs.h. */ | |
13013 | $ac_includes_default | |
4e8d927d DJ |
13014 | int |
13015 | main () | |
13016 | { | |
b4e70030 | 13017 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
4e8d927d DJ |
13018 | test_array [0] = 0 |
13019 | ||
13020 | ; | |
13021 | return 0; | |
13022 | } | |
13023 | _ACEOF | |
13024 | rm -f conftest.$ac_objext | |
13025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13026 | (eval $ac_compile) 2>conftest.er1 | |
13027 | ac_status=$? | |
13028 | grep -v '^ *+' conftest.er1 >conftest.err | |
13029 | rm -f conftest.er1 | |
13030 | cat conftest.err >&5 | |
13031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13032 | (exit $ac_status); } && | |
b4e70030 JB |
13033 | { ac_try='test -z "$ac_c_werror_flag" |
13034 | || test ! -s conftest.err' | |
4e8d927d DJ |
13035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13036 | (eval $ac_try) 2>&5 | |
13037 | ac_status=$? | |
13038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13039 | (exit $ac_status); }; } && | |
13040 | { ac_try='test -s conftest.$ac_objext' | |
13041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13042 | (eval $ac_try) 2>&5 | |
13043 | ac_status=$? | |
13044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13045 | (exit $ac_status); }; }; then | |
13046 | ac_lo=0 ac_mid=0 | |
13047 | while :; do | |
13048 | cat >conftest.$ac_ext <<_ACEOF | |
13049 | /* confdefs.h. */ | |
13050 | _ACEOF | |
13051 | cat confdefs.h >>conftest.$ac_ext | |
13052 | cat >>conftest.$ac_ext <<_ACEOF | |
13053 | /* end confdefs.h. */ | |
13054 | $ac_includes_default | |
4e8d927d DJ |
13055 | int |
13056 | main () | |
13057 | { | |
b4e70030 | 13058 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
4e8d927d DJ |
13059 | test_array [0] = 0 |
13060 | ||
13061 | ; | |
13062 | return 0; | |
13063 | } | |
13064 | _ACEOF | |
13065 | rm -f conftest.$ac_objext | |
13066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13067 | (eval $ac_compile) 2>conftest.er1 | |
13068 | ac_status=$? | |
13069 | grep -v '^ *+' conftest.er1 >conftest.err | |
13070 | rm -f conftest.er1 | |
13071 | cat conftest.err >&5 | |
13072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13073 | (exit $ac_status); } && | |
b4e70030 JB |
13074 | { ac_try='test -z "$ac_c_werror_flag" |
13075 | || test ! -s conftest.err' | |
4e8d927d DJ |
13076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13077 | (eval $ac_try) 2>&5 | |
13078 | ac_status=$? | |
13079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13080 | (exit $ac_status); }; } && | |
13081 | { ac_try='test -s conftest.$ac_objext' | |
13082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13083 | (eval $ac_try) 2>&5 | |
13084 | ac_status=$? | |
13085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13086 | (exit $ac_status); }; }; then | |
13087 | ac_hi=$ac_mid; break | |
13088 | else | |
13089 | echo "$as_me: failed program was:" >&5 | |
13090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13091 | ||
b4e70030 JB |
13092 | ac_lo=`expr $ac_mid + 1` |
13093 | if test $ac_lo -le $ac_mid; then | |
13094 | ac_lo= ac_hi= | |
13095 | break | |
13096 | fi | |
13097 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 13098 | fi |
4e8d927d DJ |
13099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13100 | done | |
13101 | else | |
13102 | echo "$as_me: failed program was:" >&5 | |
13103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13104 | ||
b4e70030 | 13105 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
13106 | /* confdefs.h. */ |
13107 | _ACEOF | |
13108 | cat confdefs.h >>conftest.$ac_ext | |
13109 | cat >>conftest.$ac_ext <<_ACEOF | |
13110 | /* end confdefs.h. */ | |
13111 | $ac_includes_default | |
4e8d927d DJ |
13112 | int |
13113 | main () | |
13114 | { | |
b4e70030 | 13115 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
4e8d927d DJ |
13116 | test_array [0] = 0 |
13117 | ||
13118 | ; | |
13119 | return 0; | |
13120 | } | |
13121 | _ACEOF | |
13122 | rm -f conftest.$ac_objext | |
13123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13124 | (eval $ac_compile) 2>conftest.er1 | |
13125 | ac_status=$? | |
13126 | grep -v '^ *+' conftest.er1 >conftest.err | |
13127 | rm -f conftest.er1 | |
13128 | cat conftest.err >&5 | |
13129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13130 | (exit $ac_status); } && | |
b4e70030 JB |
13131 | { ac_try='test -z "$ac_c_werror_flag" |
13132 | || test ! -s conftest.err' | |
4e8d927d DJ |
13133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13134 | (eval $ac_try) 2>&5 | |
13135 | ac_status=$? | |
13136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13137 | (exit $ac_status); }; } && | |
13138 | { ac_try='test -s conftest.$ac_objext' | |
13139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13140 | (eval $ac_try) 2>&5 | |
13141 | ac_status=$? | |
13142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13143 | (exit $ac_status); }; }; then | |
13144 | ac_hi=-1 ac_mid=-1 | |
13145 | while :; do | |
13146 | cat >conftest.$ac_ext <<_ACEOF | |
13147 | /* confdefs.h. */ | |
13148 | _ACEOF | |
13149 | cat confdefs.h >>conftest.$ac_ext | |
13150 | cat >>conftest.$ac_ext <<_ACEOF | |
13151 | /* end confdefs.h. */ | |
13152 | $ac_includes_default | |
4e8d927d DJ |
13153 | int |
13154 | main () | |
13155 | { | |
b4e70030 | 13156 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
4e8d927d DJ |
13157 | test_array [0] = 0 |
13158 | ||
13159 | ; | |
13160 | return 0; | |
13161 | } | |
13162 | _ACEOF | |
13163 | rm -f conftest.$ac_objext | |
13164 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13165 | (eval $ac_compile) 2>conftest.er1 | |
13166 | ac_status=$? | |
13167 | grep -v '^ *+' conftest.er1 >conftest.err | |
13168 | rm -f conftest.er1 | |
13169 | cat conftest.err >&5 | |
13170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13171 | (exit $ac_status); } && | |
b4e70030 JB |
13172 | { ac_try='test -z "$ac_c_werror_flag" |
13173 | || test ! -s conftest.err' | |
4e8d927d DJ |
13174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13175 | (eval $ac_try) 2>&5 | |
13176 | ac_status=$? | |
13177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13178 | (exit $ac_status); }; } && | |
13179 | { ac_try='test -s conftest.$ac_objext' | |
13180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13181 | (eval $ac_try) 2>&5 | |
13182 | ac_status=$? | |
13183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13184 | (exit $ac_status); }; }; then | |
13185 | ac_lo=$ac_mid; break | |
13186 | else | |
13187 | echo "$as_me: failed program was:" >&5 | |
13188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13189 | ||
b4e70030 JB |
13190 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13191 | if test $ac_mid -le $ac_hi; then | |
13192 | ac_lo= ac_hi= | |
13193 | break | |
13194 | fi | |
13195 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 13196 | fi |
4e8d927d DJ |
13197 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13198 | done | |
13199 | else | |
13200 | echo "$as_me: failed program was:" >&5 | |
13201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13202 | ||
b4e70030 | 13203 | ac_lo= ac_hi= |
4e8d927d | 13204 | fi |
4e8d927d DJ |
13205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13206 | fi | |
4e8d927d DJ |
13207 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13208 | # Binary search between lo and hi bounds. | |
13209 | while test "x$ac_lo" != "x$ac_hi"; do | |
13210 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13211 | cat >conftest.$ac_ext <<_ACEOF | |
13212 | /* confdefs.h. */ | |
13213 | _ACEOF | |
13214 | cat confdefs.h >>conftest.$ac_ext | |
13215 | cat >>conftest.$ac_ext <<_ACEOF | |
13216 | /* end confdefs.h. */ | |
13217 | $ac_includes_default | |
4e8d927d DJ |
13218 | int |
13219 | main () | |
13220 | { | |
b4e70030 | 13221 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
4e8d927d DJ |
13222 | test_array [0] = 0 |
13223 | ||
13224 | ; | |
13225 | return 0; | |
13226 | } | |
13227 | _ACEOF | |
13228 | rm -f conftest.$ac_objext | |
13229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13230 | (eval $ac_compile) 2>conftest.er1 | |
13231 | ac_status=$? | |
13232 | grep -v '^ *+' conftest.er1 >conftest.err | |
13233 | rm -f conftest.er1 | |
13234 | cat conftest.err >&5 | |
13235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13236 | (exit $ac_status); } && | |
b4e70030 JB |
13237 | { ac_try='test -z "$ac_c_werror_flag" |
13238 | || test ! -s conftest.err' | |
4e8d927d DJ |
13239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13240 | (eval $ac_try) 2>&5 | |
13241 | ac_status=$? | |
13242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13243 | (exit $ac_status); }; } && | |
13244 | { ac_try='test -s conftest.$ac_objext' | |
13245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13246 | (eval $ac_try) 2>&5 | |
13247 | ac_status=$? | |
13248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13249 | (exit $ac_status); }; }; then | |
13250 | ac_hi=$ac_mid | |
13251 | else | |
13252 | echo "$as_me: failed program was:" >&5 | |
13253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13254 | ||
b4e70030 | 13255 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 13256 | fi |
4e8d927d DJ |
13257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13258 | done | |
13259 | case $ac_lo in | |
13260 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
b4e70030 | 13261 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
4e8d927d | 13262 | See \`config.log' for more details." >&5 |
b4e70030 | 13263 | echo "$as_me: error: cannot compute sizeof (int), 77 |
4e8d927d | 13264 | See \`config.log' for more details." >&2;} |
b4e70030 | 13265 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 13266 | esac |
b4e70030 JB |
13267 | else |
13268 | if test "$cross_compiling" = yes; then | |
13269 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13270 | See \`config.log' for more details." >&5 | |
13271 | echo "$as_me: error: cannot run test program while cross compiling | |
13272 | See \`config.log' for more details." >&2;} | |
13273 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
13274 | else |
13275 | cat >conftest.$ac_ext <<_ACEOF | |
13276 | /* confdefs.h. */ | |
13277 | _ACEOF | |
13278 | cat confdefs.h >>conftest.$ac_ext | |
13279 | cat >>conftest.$ac_ext <<_ACEOF | |
13280 | /* end confdefs.h. */ | |
13281 | $ac_includes_default | |
b4e70030 JB |
13282 | long longval () { return (long) (sizeof (int)); } |
13283 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
4e8d927d DJ |
13284 | #include <stdio.h> |
13285 | #include <stdlib.h> | |
13286 | int | |
13287 | main () | |
13288 | { | |
13289 | ||
13290 | FILE *f = fopen ("conftest.val", "w"); | |
13291 | if (! f) | |
b4e70030 JB |
13292 | exit (1); |
13293 | if (((long) (sizeof (int))) < 0) | |
4e8d927d | 13294 | { |
b4e70030 JB |
13295 | long i = longval (); |
13296 | if (i != ((long) (sizeof (int)))) | |
13297 | exit (1); | |
4e8d927d DJ |
13298 | fprintf (f, "%ld\n", i); |
13299 | } | |
13300 | else | |
13301 | { | |
b4e70030 JB |
13302 | unsigned long i = ulongval (); |
13303 | if (i != ((long) (sizeof (int)))) | |
13304 | exit (1); | |
4e8d927d DJ |
13305 | fprintf (f, "%lu\n", i); |
13306 | } | |
b4e70030 | 13307 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
13308 | |
13309 | ; | |
13310 | return 0; | |
13311 | } | |
13312 | _ACEOF | |
13313 | rm -f conftest$ac_exeext | |
13314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13315 | (eval $ac_link) 2>&5 | |
13316 | ac_status=$? | |
13317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13318 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13320 | (eval $ac_try) 2>&5 | |
13321 | ac_status=$? | |
13322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13323 | (exit $ac_status); }; }; then | |
13324 | ac_cv_sizeof_int=`cat conftest.val` | |
13325 | else | |
13326 | echo "$as_me: program exited with status $ac_status" >&5 | |
13327 | echo "$as_me: failed program was:" >&5 | |
13328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13329 | ||
13330 | ( exit $ac_status ) | |
b4e70030 | 13331 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
4e8d927d | 13332 | See \`config.log' for more details." >&5 |
b4e70030 | 13333 | echo "$as_me: error: cannot compute sizeof (int), 77 |
4e8d927d | 13334 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
13335 | { (exit 1); exit 1; }; } |
13336 | fi | |
13337 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 13338 | fi |
4e8d927d DJ |
13339 | fi |
13340 | rm -f conftest.val | |
13341 | else | |
13342 | ac_cv_sizeof_int=0 | |
13343 | fi | |
13344 | fi | |
b4e70030 JB |
13345 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
13346 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
4e8d927d DJ |
13347 | cat >>confdefs.h <<_ACEOF |
13348 | #define SIZEOF_INT $ac_cv_sizeof_int | |
13349 | _ACEOF | |
13350 | ||
13351 | ||
b4e70030 JB |
13352 | echo "$as_me:$LINENO: checking for short" >&5 |
13353 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
4e8d927d DJ |
13354 | if test "${ac_cv_type_short+set}" = set; then |
13355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13356 | else | |
13357 | cat >conftest.$ac_ext <<_ACEOF | |
13358 | /* confdefs.h. */ | |
13359 | _ACEOF | |
13360 | cat confdefs.h >>conftest.$ac_ext | |
13361 | cat >>conftest.$ac_ext <<_ACEOF | |
13362 | /* end confdefs.h. */ | |
13363 | $ac_includes_default | |
4e8d927d DJ |
13364 | int |
13365 | main () | |
13366 | { | |
b4e70030 | 13367 | if ((short *) 0) |
4e8d927d | 13368 | return 0; |
b4e70030 | 13369 | if (sizeof (short)) |
4e8d927d DJ |
13370 | return 0; |
13371 | ; | |
13372 | return 0; | |
13373 | } | |
13374 | _ACEOF | |
13375 | rm -f conftest.$ac_objext | |
13376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13377 | (eval $ac_compile) 2>conftest.er1 | |
13378 | ac_status=$? | |
13379 | grep -v '^ *+' conftest.er1 >conftest.err | |
13380 | rm -f conftest.er1 | |
13381 | cat conftest.err >&5 | |
13382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13383 | (exit $ac_status); } && | |
b4e70030 JB |
13384 | { ac_try='test -z "$ac_c_werror_flag" |
13385 | || test ! -s conftest.err' | |
4e8d927d DJ |
13386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13387 | (eval $ac_try) 2>&5 | |
13388 | ac_status=$? | |
13389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13390 | (exit $ac_status); }; } && | |
13391 | { ac_try='test -s conftest.$ac_objext' | |
13392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13393 | (eval $ac_try) 2>&5 | |
13394 | ac_status=$? | |
13395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13396 | (exit $ac_status); }; }; then | |
13397 | ac_cv_type_short=yes | |
13398 | else | |
13399 | echo "$as_me: failed program was:" >&5 | |
13400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13401 | ||
b4e70030 | 13402 | ac_cv_type_short=no |
4e8d927d | 13403 | fi |
4e8d927d DJ |
13404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13405 | fi | |
b4e70030 JB |
13406 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
13407 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
4e8d927d | 13408 | |
b4e70030 JB |
13409 | echo "$as_me:$LINENO: checking size of short" >&5 |
13410 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
4e8d927d DJ |
13411 | if test "${ac_cv_sizeof_short+set}" = set; then |
13412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13413 | else | |
13414 | if test "$ac_cv_type_short" = yes; then | |
b4e70030 | 13415 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
13416 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13417 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13418 | # This bug is HP SR number 8606223364. | |
13419 | if test "$cross_compiling" = yes; then | |
13420 | # Depending upon the size, compute the lo and hi bounds. | |
13421 | cat >conftest.$ac_ext <<_ACEOF | |
13422 | /* confdefs.h. */ | |
13423 | _ACEOF | |
13424 | cat confdefs.h >>conftest.$ac_ext | |
13425 | cat >>conftest.$ac_ext <<_ACEOF | |
13426 | /* end confdefs.h. */ | |
13427 | $ac_includes_default | |
4e8d927d DJ |
13428 | int |
13429 | main () | |
13430 | { | |
b4e70030 | 13431 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
4e8d927d DJ |
13432 | test_array [0] = 0 |
13433 | ||
13434 | ; | |
13435 | return 0; | |
13436 | } | |
13437 | _ACEOF | |
13438 | rm -f conftest.$ac_objext | |
13439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13440 | (eval $ac_compile) 2>conftest.er1 | |
13441 | ac_status=$? | |
13442 | grep -v '^ *+' conftest.er1 >conftest.err | |
13443 | rm -f conftest.er1 | |
13444 | cat conftest.err >&5 | |
13445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13446 | (exit $ac_status); } && | |
b4e70030 JB |
13447 | { ac_try='test -z "$ac_c_werror_flag" |
13448 | || test ! -s conftest.err' | |
4e8d927d DJ |
13449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13450 | (eval $ac_try) 2>&5 | |
13451 | ac_status=$? | |
13452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13453 | (exit $ac_status); }; } && | |
13454 | { ac_try='test -s conftest.$ac_objext' | |
13455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13456 | (eval $ac_try) 2>&5 | |
13457 | ac_status=$? | |
13458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13459 | (exit $ac_status); }; }; then | |
13460 | ac_lo=0 ac_mid=0 | |
13461 | while :; do | |
13462 | cat >conftest.$ac_ext <<_ACEOF | |
13463 | /* confdefs.h. */ | |
13464 | _ACEOF | |
13465 | cat confdefs.h >>conftest.$ac_ext | |
13466 | cat >>conftest.$ac_ext <<_ACEOF | |
13467 | /* end confdefs.h. */ | |
13468 | $ac_includes_default | |
4e8d927d DJ |
13469 | int |
13470 | main () | |
13471 | { | |
b4e70030 | 13472 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
4e8d927d DJ |
13473 | test_array [0] = 0 |
13474 | ||
13475 | ; | |
13476 | return 0; | |
13477 | } | |
13478 | _ACEOF | |
13479 | rm -f conftest.$ac_objext | |
13480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13481 | (eval $ac_compile) 2>conftest.er1 | |
13482 | ac_status=$? | |
13483 | grep -v '^ *+' conftest.er1 >conftest.err | |
13484 | rm -f conftest.er1 | |
13485 | cat conftest.err >&5 | |
13486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13487 | (exit $ac_status); } && | |
b4e70030 JB |
13488 | { ac_try='test -z "$ac_c_werror_flag" |
13489 | || test ! -s conftest.err' | |
4e8d927d DJ |
13490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13491 | (eval $ac_try) 2>&5 | |
13492 | ac_status=$? | |
13493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13494 | (exit $ac_status); }; } && | |
13495 | { ac_try='test -s conftest.$ac_objext' | |
13496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13497 | (eval $ac_try) 2>&5 | |
13498 | ac_status=$? | |
13499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13500 | (exit $ac_status); }; }; then | |
13501 | ac_hi=$ac_mid; break | |
13502 | else | |
13503 | echo "$as_me: failed program was:" >&5 | |
13504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13505 | ||
b4e70030 JB |
13506 | ac_lo=`expr $ac_mid + 1` |
13507 | if test $ac_lo -le $ac_mid; then | |
13508 | ac_lo= ac_hi= | |
13509 | break | |
13510 | fi | |
13511 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 13512 | fi |
4e8d927d DJ |
13513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13514 | done | |
13515 | else | |
13516 | echo "$as_me: failed program was:" >&5 | |
13517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13518 | ||
b4e70030 | 13519 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
13520 | /* confdefs.h. */ |
13521 | _ACEOF | |
13522 | cat confdefs.h >>conftest.$ac_ext | |
13523 | cat >>conftest.$ac_ext <<_ACEOF | |
13524 | /* end confdefs.h. */ | |
13525 | $ac_includes_default | |
4e8d927d DJ |
13526 | int |
13527 | main () | |
13528 | { | |
b4e70030 | 13529 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
4e8d927d DJ |
13530 | test_array [0] = 0 |
13531 | ||
13532 | ; | |
13533 | return 0; | |
13534 | } | |
13535 | _ACEOF | |
13536 | rm -f conftest.$ac_objext | |
13537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13538 | (eval $ac_compile) 2>conftest.er1 | |
13539 | ac_status=$? | |
13540 | grep -v '^ *+' conftest.er1 >conftest.err | |
13541 | rm -f conftest.er1 | |
13542 | cat conftest.err >&5 | |
13543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13544 | (exit $ac_status); } && | |
b4e70030 JB |
13545 | { ac_try='test -z "$ac_c_werror_flag" |
13546 | || test ! -s conftest.err' | |
4e8d927d DJ |
13547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13548 | (eval $ac_try) 2>&5 | |
13549 | ac_status=$? | |
13550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13551 | (exit $ac_status); }; } && | |
13552 | { ac_try='test -s conftest.$ac_objext' | |
13553 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13554 | (eval $ac_try) 2>&5 | |
13555 | ac_status=$? | |
13556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13557 | (exit $ac_status); }; }; then | |
13558 | ac_hi=-1 ac_mid=-1 | |
13559 | while :; do | |
13560 | cat >conftest.$ac_ext <<_ACEOF | |
13561 | /* confdefs.h. */ | |
13562 | _ACEOF | |
13563 | cat confdefs.h >>conftest.$ac_ext | |
13564 | cat >>conftest.$ac_ext <<_ACEOF | |
13565 | /* end confdefs.h. */ | |
13566 | $ac_includes_default | |
4e8d927d DJ |
13567 | int |
13568 | main () | |
13569 | { | |
b4e70030 | 13570 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
4e8d927d DJ |
13571 | test_array [0] = 0 |
13572 | ||
13573 | ; | |
13574 | return 0; | |
13575 | } | |
13576 | _ACEOF | |
13577 | rm -f conftest.$ac_objext | |
13578 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13579 | (eval $ac_compile) 2>conftest.er1 | |
13580 | ac_status=$? | |
13581 | grep -v '^ *+' conftest.er1 >conftest.err | |
13582 | rm -f conftest.er1 | |
13583 | cat conftest.err >&5 | |
13584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13585 | (exit $ac_status); } && | |
b4e70030 JB |
13586 | { ac_try='test -z "$ac_c_werror_flag" |
13587 | || test ! -s conftest.err' | |
4e8d927d DJ |
13588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13589 | (eval $ac_try) 2>&5 | |
13590 | ac_status=$? | |
13591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13592 | (exit $ac_status); }; } && | |
13593 | { ac_try='test -s conftest.$ac_objext' | |
13594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13595 | (eval $ac_try) 2>&5 | |
13596 | ac_status=$? | |
13597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13598 | (exit $ac_status); }; }; then | |
13599 | ac_lo=$ac_mid; break | |
13600 | else | |
13601 | echo "$as_me: failed program was:" >&5 | |
13602 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13603 | ||
b4e70030 JB |
13604 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13605 | if test $ac_mid -le $ac_hi; then | |
13606 | ac_lo= ac_hi= | |
13607 | break | |
13608 | fi | |
13609 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 13610 | fi |
4e8d927d DJ |
13611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13612 | done | |
13613 | else | |
13614 | echo "$as_me: failed program was:" >&5 | |
13615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13616 | ||
b4e70030 | 13617 | ac_lo= ac_hi= |
4e8d927d | 13618 | fi |
4e8d927d DJ |
13619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13620 | fi | |
4e8d927d DJ |
13621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13622 | # Binary search between lo and hi bounds. | |
13623 | while test "x$ac_lo" != "x$ac_hi"; do | |
13624 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13625 | cat >conftest.$ac_ext <<_ACEOF | |
13626 | /* confdefs.h. */ | |
13627 | _ACEOF | |
13628 | cat confdefs.h >>conftest.$ac_ext | |
13629 | cat >>conftest.$ac_ext <<_ACEOF | |
13630 | /* end confdefs.h. */ | |
13631 | $ac_includes_default | |
4e8d927d DJ |
13632 | int |
13633 | main () | |
13634 | { | |
b4e70030 | 13635 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
4e8d927d DJ |
13636 | test_array [0] = 0 |
13637 | ||
13638 | ; | |
13639 | return 0; | |
13640 | } | |
13641 | _ACEOF | |
13642 | rm -f conftest.$ac_objext | |
13643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13644 | (eval $ac_compile) 2>conftest.er1 | |
13645 | ac_status=$? | |
13646 | grep -v '^ *+' conftest.er1 >conftest.err | |
13647 | rm -f conftest.er1 | |
13648 | cat conftest.err >&5 | |
13649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13650 | (exit $ac_status); } && | |
b4e70030 JB |
13651 | { ac_try='test -z "$ac_c_werror_flag" |
13652 | || test ! -s conftest.err' | |
4e8d927d DJ |
13653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13654 | (eval $ac_try) 2>&5 | |
13655 | ac_status=$? | |
13656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13657 | (exit $ac_status); }; } && | |
13658 | { ac_try='test -s conftest.$ac_objext' | |
13659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13660 | (eval $ac_try) 2>&5 | |
13661 | ac_status=$? | |
13662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13663 | (exit $ac_status); }; }; then | |
13664 | ac_hi=$ac_mid | |
13665 | else | |
13666 | echo "$as_me: failed program was:" >&5 | |
13667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13668 | ||
b4e70030 | 13669 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 13670 | fi |
4e8d927d DJ |
13671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13672 | done | |
13673 | case $ac_lo in | |
13674 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
b4e70030 | 13675 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
4e8d927d | 13676 | See \`config.log' for more details." >&5 |
b4e70030 | 13677 | echo "$as_me: error: cannot compute sizeof (short), 77 |
4e8d927d | 13678 | See \`config.log' for more details." >&2;} |
b4e70030 | 13679 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 13680 | esac |
b4e70030 JB |
13681 | else |
13682 | if test "$cross_compiling" = yes; then | |
13683 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13684 | See \`config.log' for more details." >&5 | |
13685 | echo "$as_me: error: cannot run test program while cross compiling | |
13686 | See \`config.log' for more details." >&2;} | |
13687 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
13688 | else |
13689 | cat >conftest.$ac_ext <<_ACEOF | |
13690 | /* confdefs.h. */ | |
13691 | _ACEOF | |
13692 | cat confdefs.h >>conftest.$ac_ext | |
13693 | cat >>conftest.$ac_ext <<_ACEOF | |
13694 | /* end confdefs.h. */ | |
13695 | $ac_includes_default | |
b4e70030 JB |
13696 | long longval () { return (long) (sizeof (short)); } |
13697 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
4e8d927d DJ |
13698 | #include <stdio.h> |
13699 | #include <stdlib.h> | |
13700 | int | |
13701 | main () | |
13702 | { | |
13703 | ||
13704 | FILE *f = fopen ("conftest.val", "w"); | |
13705 | if (! f) | |
b4e70030 JB |
13706 | exit (1); |
13707 | if (((long) (sizeof (short))) < 0) | |
4e8d927d | 13708 | { |
b4e70030 JB |
13709 | long i = longval (); |
13710 | if (i != ((long) (sizeof (short)))) | |
13711 | exit (1); | |
4e8d927d DJ |
13712 | fprintf (f, "%ld\n", i); |
13713 | } | |
13714 | else | |
13715 | { | |
b4e70030 JB |
13716 | unsigned long i = ulongval (); |
13717 | if (i != ((long) (sizeof (short)))) | |
13718 | exit (1); | |
4e8d927d DJ |
13719 | fprintf (f, "%lu\n", i); |
13720 | } | |
b4e70030 | 13721 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
13722 | |
13723 | ; | |
13724 | return 0; | |
13725 | } | |
13726 | _ACEOF | |
13727 | rm -f conftest$ac_exeext | |
13728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13729 | (eval $ac_link) 2>&5 | |
13730 | ac_status=$? | |
13731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13732 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13734 | (eval $ac_try) 2>&5 | |
13735 | ac_status=$? | |
13736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13737 | (exit $ac_status); }; }; then | |
13738 | ac_cv_sizeof_short=`cat conftest.val` | |
13739 | else | |
13740 | echo "$as_me: program exited with status $ac_status" >&5 | |
13741 | echo "$as_me: failed program was:" >&5 | |
13742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13743 | ||
13744 | ( exit $ac_status ) | |
b4e70030 | 13745 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
4e8d927d | 13746 | See \`config.log' for more details." >&5 |
b4e70030 | 13747 | echo "$as_me: error: cannot compute sizeof (short), 77 |
4e8d927d | 13748 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
13749 | { (exit 1); exit 1; }; } |
13750 | fi | |
13751 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 13752 | fi |
4e8d927d DJ |
13753 | fi |
13754 | rm -f conftest.val | |
13755 | else | |
13756 | ac_cv_sizeof_short=0 | |
13757 | fi | |
13758 | fi | |
b4e70030 JB |
13759 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
13760 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
4e8d927d DJ |
13761 | cat >>confdefs.h <<_ACEOF |
13762 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
13763 | _ACEOF | |
13764 | ||
13765 | ||
b4e70030 JB |
13766 | echo "$as_me:$LINENO: checking for char" >&5 |
13767 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
4e8d927d DJ |
13768 | if test "${ac_cv_type_char+set}" = set; then |
13769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13770 | else | |
13771 | cat >conftest.$ac_ext <<_ACEOF | |
13772 | /* confdefs.h. */ | |
13773 | _ACEOF | |
13774 | cat confdefs.h >>conftest.$ac_ext | |
13775 | cat >>conftest.$ac_ext <<_ACEOF | |
13776 | /* end confdefs.h. */ | |
13777 | $ac_includes_default | |
4e8d927d DJ |
13778 | int |
13779 | main () | |
13780 | { | |
b4e70030 | 13781 | if ((char *) 0) |
4e8d927d | 13782 | return 0; |
b4e70030 | 13783 | if (sizeof (char)) |
4e8d927d DJ |
13784 | return 0; |
13785 | ; | |
13786 | return 0; | |
13787 | } | |
13788 | _ACEOF | |
13789 | rm -f conftest.$ac_objext | |
13790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13791 | (eval $ac_compile) 2>conftest.er1 | |
13792 | ac_status=$? | |
13793 | grep -v '^ *+' conftest.er1 >conftest.err | |
13794 | rm -f conftest.er1 | |
13795 | cat conftest.err >&5 | |
13796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13797 | (exit $ac_status); } && | |
b4e70030 JB |
13798 | { ac_try='test -z "$ac_c_werror_flag" |
13799 | || test ! -s conftest.err' | |
4e8d927d DJ |
13800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13801 | (eval $ac_try) 2>&5 | |
13802 | ac_status=$? | |
13803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13804 | (exit $ac_status); }; } && | |
13805 | { ac_try='test -s conftest.$ac_objext' | |
13806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13807 | (eval $ac_try) 2>&5 | |
13808 | ac_status=$? | |
13809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13810 | (exit $ac_status); }; }; then | |
13811 | ac_cv_type_char=yes | |
13812 | else | |
13813 | echo "$as_me: failed program was:" >&5 | |
13814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13815 | ||
b4e70030 | 13816 | ac_cv_type_char=no |
4e8d927d | 13817 | fi |
4e8d927d DJ |
13818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13819 | fi | |
b4e70030 JB |
13820 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
13821 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
4e8d927d | 13822 | |
b4e70030 JB |
13823 | echo "$as_me:$LINENO: checking size of char" >&5 |
13824 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
4e8d927d DJ |
13825 | if test "${ac_cv_sizeof_char+set}" = set; then |
13826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13827 | else | |
13828 | if test "$ac_cv_type_char" = yes; then | |
b4e70030 | 13829 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
13830 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13831 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13832 | # This bug is HP SR number 8606223364. | |
13833 | if test "$cross_compiling" = yes; then | |
13834 | # Depending upon the size, compute the lo and hi bounds. | |
13835 | cat >conftest.$ac_ext <<_ACEOF | |
13836 | /* confdefs.h. */ | |
13837 | _ACEOF | |
13838 | cat confdefs.h >>conftest.$ac_ext | |
13839 | cat >>conftest.$ac_ext <<_ACEOF | |
13840 | /* end confdefs.h. */ | |
13841 | $ac_includes_default | |
4e8d927d DJ |
13842 | int |
13843 | main () | |
13844 | { | |
b4e70030 | 13845 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
4e8d927d DJ |
13846 | test_array [0] = 0 |
13847 | ||
13848 | ; | |
13849 | return 0; | |
13850 | } | |
13851 | _ACEOF | |
13852 | rm -f conftest.$ac_objext | |
13853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13854 | (eval $ac_compile) 2>conftest.er1 | |
13855 | ac_status=$? | |
13856 | grep -v '^ *+' conftest.er1 >conftest.err | |
13857 | rm -f conftest.er1 | |
13858 | cat conftest.err >&5 | |
13859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13860 | (exit $ac_status); } && | |
b4e70030 JB |
13861 | { ac_try='test -z "$ac_c_werror_flag" |
13862 | || test ! -s conftest.err' | |
4e8d927d DJ |
13863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13864 | (eval $ac_try) 2>&5 | |
13865 | ac_status=$? | |
13866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13867 | (exit $ac_status); }; } && | |
13868 | { ac_try='test -s conftest.$ac_objext' | |
13869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13870 | (eval $ac_try) 2>&5 | |
13871 | ac_status=$? | |
13872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13873 | (exit $ac_status); }; }; then | |
13874 | ac_lo=0 ac_mid=0 | |
13875 | while :; do | |
13876 | cat >conftest.$ac_ext <<_ACEOF | |
13877 | /* confdefs.h. */ | |
13878 | _ACEOF | |
13879 | cat confdefs.h >>conftest.$ac_ext | |
13880 | cat >>conftest.$ac_ext <<_ACEOF | |
13881 | /* end confdefs.h. */ | |
13882 | $ac_includes_default | |
4e8d927d DJ |
13883 | int |
13884 | main () | |
13885 | { | |
b4e70030 | 13886 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
4e8d927d DJ |
13887 | test_array [0] = 0 |
13888 | ||
13889 | ; | |
13890 | return 0; | |
13891 | } | |
13892 | _ACEOF | |
13893 | rm -f conftest.$ac_objext | |
13894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13895 | (eval $ac_compile) 2>conftest.er1 | |
13896 | ac_status=$? | |
13897 | grep -v '^ *+' conftest.er1 >conftest.err | |
13898 | rm -f conftest.er1 | |
13899 | cat conftest.err >&5 | |
13900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13901 | (exit $ac_status); } && | |
b4e70030 JB |
13902 | { ac_try='test -z "$ac_c_werror_flag" |
13903 | || test ! -s conftest.err' | |
4e8d927d DJ |
13904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13905 | (eval $ac_try) 2>&5 | |
13906 | ac_status=$? | |
13907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13908 | (exit $ac_status); }; } && | |
13909 | { ac_try='test -s conftest.$ac_objext' | |
13910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13911 | (eval $ac_try) 2>&5 | |
13912 | ac_status=$? | |
13913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13914 | (exit $ac_status); }; }; then | |
13915 | ac_hi=$ac_mid; break | |
13916 | else | |
13917 | echo "$as_me: failed program was:" >&5 | |
13918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13919 | ||
b4e70030 JB |
13920 | ac_lo=`expr $ac_mid + 1` |
13921 | if test $ac_lo -le $ac_mid; then | |
13922 | ac_lo= ac_hi= | |
13923 | break | |
13924 | fi | |
13925 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 13926 | fi |
4e8d927d DJ |
13927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13928 | done | |
13929 | else | |
13930 | echo "$as_me: failed program was:" >&5 | |
13931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13932 | ||
b4e70030 | 13933 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
13934 | /* confdefs.h. */ |
13935 | _ACEOF | |
13936 | cat confdefs.h >>conftest.$ac_ext | |
13937 | cat >>conftest.$ac_ext <<_ACEOF | |
13938 | /* end confdefs.h. */ | |
13939 | $ac_includes_default | |
4e8d927d DJ |
13940 | int |
13941 | main () | |
13942 | { | |
b4e70030 | 13943 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
4e8d927d DJ |
13944 | test_array [0] = 0 |
13945 | ||
13946 | ; | |
13947 | return 0; | |
13948 | } | |
13949 | _ACEOF | |
13950 | rm -f conftest.$ac_objext | |
13951 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13952 | (eval $ac_compile) 2>conftest.er1 | |
13953 | ac_status=$? | |
13954 | grep -v '^ *+' conftest.er1 >conftest.err | |
13955 | rm -f conftest.er1 | |
13956 | cat conftest.err >&5 | |
13957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13958 | (exit $ac_status); } && | |
b4e70030 JB |
13959 | { ac_try='test -z "$ac_c_werror_flag" |
13960 | || test ! -s conftest.err' | |
4e8d927d DJ |
13961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13962 | (eval $ac_try) 2>&5 | |
13963 | ac_status=$? | |
13964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13965 | (exit $ac_status); }; } && | |
13966 | { ac_try='test -s conftest.$ac_objext' | |
13967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13968 | (eval $ac_try) 2>&5 | |
13969 | ac_status=$? | |
13970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13971 | (exit $ac_status); }; }; then | |
13972 | ac_hi=-1 ac_mid=-1 | |
13973 | while :; do | |
13974 | cat >conftest.$ac_ext <<_ACEOF | |
13975 | /* confdefs.h. */ | |
13976 | _ACEOF | |
13977 | cat confdefs.h >>conftest.$ac_ext | |
13978 | cat >>conftest.$ac_ext <<_ACEOF | |
13979 | /* end confdefs.h. */ | |
13980 | $ac_includes_default | |
4e8d927d DJ |
13981 | int |
13982 | main () | |
13983 | { | |
b4e70030 | 13984 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
4e8d927d DJ |
13985 | test_array [0] = 0 |
13986 | ||
13987 | ; | |
13988 | return 0; | |
13989 | } | |
13990 | _ACEOF | |
13991 | rm -f conftest.$ac_objext | |
13992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13993 | (eval $ac_compile) 2>conftest.er1 | |
13994 | ac_status=$? | |
13995 | grep -v '^ *+' conftest.er1 >conftest.err | |
13996 | rm -f conftest.er1 | |
13997 | cat conftest.err >&5 | |
13998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13999 | (exit $ac_status); } && | |
b4e70030 JB |
14000 | { ac_try='test -z "$ac_c_werror_flag" |
14001 | || test ! -s conftest.err' | |
4e8d927d DJ |
14002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14003 | (eval $ac_try) 2>&5 | |
14004 | ac_status=$? | |
14005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14006 | (exit $ac_status); }; } && | |
14007 | { ac_try='test -s conftest.$ac_objext' | |
14008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14009 | (eval $ac_try) 2>&5 | |
14010 | ac_status=$? | |
14011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14012 | (exit $ac_status); }; }; then | |
14013 | ac_lo=$ac_mid; break | |
14014 | else | |
14015 | echo "$as_me: failed program was:" >&5 | |
14016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14017 | ||
b4e70030 JB |
14018 | ac_hi=`expr '(' $ac_mid ')' - 1` |
14019 | if test $ac_mid -le $ac_hi; then | |
14020 | ac_lo= ac_hi= | |
14021 | break | |
14022 | fi | |
14023 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 14024 | fi |
4e8d927d DJ |
14025 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14026 | done | |
14027 | else | |
14028 | echo "$as_me: failed program was:" >&5 | |
14029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14030 | ||
b4e70030 | 14031 | ac_lo= ac_hi= |
4e8d927d | 14032 | fi |
4e8d927d DJ |
14033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14034 | fi | |
4e8d927d DJ |
14035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14036 | # Binary search between lo and hi bounds. | |
14037 | while test "x$ac_lo" != "x$ac_hi"; do | |
14038 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14039 | cat >conftest.$ac_ext <<_ACEOF | |
14040 | /* confdefs.h. */ | |
14041 | _ACEOF | |
14042 | cat confdefs.h >>conftest.$ac_ext | |
14043 | cat >>conftest.$ac_ext <<_ACEOF | |
14044 | /* end confdefs.h. */ | |
14045 | $ac_includes_default | |
4e8d927d DJ |
14046 | int |
14047 | main () | |
14048 | { | |
b4e70030 | 14049 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
4e8d927d DJ |
14050 | test_array [0] = 0 |
14051 | ||
14052 | ; | |
14053 | return 0; | |
14054 | } | |
14055 | _ACEOF | |
14056 | rm -f conftest.$ac_objext | |
14057 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14058 | (eval $ac_compile) 2>conftest.er1 | |
14059 | ac_status=$? | |
14060 | grep -v '^ *+' conftest.er1 >conftest.err | |
14061 | rm -f conftest.er1 | |
14062 | cat conftest.err >&5 | |
14063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14064 | (exit $ac_status); } && | |
b4e70030 JB |
14065 | { ac_try='test -z "$ac_c_werror_flag" |
14066 | || test ! -s conftest.err' | |
4e8d927d DJ |
14067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14068 | (eval $ac_try) 2>&5 | |
14069 | ac_status=$? | |
14070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14071 | (exit $ac_status); }; } && | |
14072 | { ac_try='test -s conftest.$ac_objext' | |
14073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14074 | (eval $ac_try) 2>&5 | |
14075 | ac_status=$? | |
14076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14077 | (exit $ac_status); }; }; then | |
14078 | ac_hi=$ac_mid | |
14079 | else | |
14080 | echo "$as_me: failed program was:" >&5 | |
14081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14082 | ||
b4e70030 | 14083 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 14084 | fi |
4e8d927d DJ |
14085 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14086 | done | |
14087 | case $ac_lo in | |
14088 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
b4e70030 | 14089 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
4e8d927d | 14090 | See \`config.log' for more details." >&5 |
b4e70030 | 14091 | echo "$as_me: error: cannot compute sizeof (char), 77 |
4e8d927d | 14092 | See \`config.log' for more details." >&2;} |
b4e70030 | 14093 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 14094 | esac |
b4e70030 JB |
14095 | else |
14096 | if test "$cross_compiling" = yes; then | |
14097 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14098 | See \`config.log' for more details." >&5 | |
14099 | echo "$as_me: error: cannot run test program while cross compiling | |
14100 | See \`config.log' for more details." >&2;} | |
14101 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
14102 | else |
14103 | cat >conftest.$ac_ext <<_ACEOF | |
14104 | /* confdefs.h. */ | |
14105 | _ACEOF | |
14106 | cat confdefs.h >>conftest.$ac_ext | |
14107 | cat >>conftest.$ac_ext <<_ACEOF | |
14108 | /* end confdefs.h. */ | |
14109 | $ac_includes_default | |
b4e70030 JB |
14110 | long longval () { return (long) (sizeof (char)); } |
14111 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
4e8d927d DJ |
14112 | #include <stdio.h> |
14113 | #include <stdlib.h> | |
14114 | int | |
14115 | main () | |
14116 | { | |
14117 | ||
14118 | FILE *f = fopen ("conftest.val", "w"); | |
14119 | if (! f) | |
b4e70030 JB |
14120 | exit (1); |
14121 | if (((long) (sizeof (char))) < 0) | |
4e8d927d | 14122 | { |
b4e70030 JB |
14123 | long i = longval (); |
14124 | if (i != ((long) (sizeof (char)))) | |
14125 | exit (1); | |
4e8d927d DJ |
14126 | fprintf (f, "%ld\n", i); |
14127 | } | |
14128 | else | |
14129 | { | |
b4e70030 JB |
14130 | unsigned long i = ulongval (); |
14131 | if (i != ((long) (sizeof (char)))) | |
14132 | exit (1); | |
4e8d927d DJ |
14133 | fprintf (f, "%lu\n", i); |
14134 | } | |
b4e70030 | 14135 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
14136 | |
14137 | ; | |
14138 | return 0; | |
14139 | } | |
14140 | _ACEOF | |
14141 | rm -f conftest$ac_exeext | |
14142 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14143 | (eval $ac_link) 2>&5 | |
14144 | ac_status=$? | |
14145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14146 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14148 | (eval $ac_try) 2>&5 | |
14149 | ac_status=$? | |
14150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14151 | (exit $ac_status); }; }; then | |
14152 | ac_cv_sizeof_char=`cat conftest.val` | |
14153 | else | |
14154 | echo "$as_me: program exited with status $ac_status" >&5 | |
14155 | echo "$as_me: failed program was:" >&5 | |
14156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14157 | ||
14158 | ( exit $ac_status ) | |
b4e70030 | 14159 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
4e8d927d | 14160 | See \`config.log' for more details." >&5 |
b4e70030 | 14161 | echo "$as_me: error: cannot compute sizeof (char), 77 |
4e8d927d | 14162 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
14163 | { (exit 1); exit 1; }; } |
14164 | fi | |
14165 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 14166 | fi |
4e8d927d DJ |
14167 | fi |
14168 | rm -f conftest.val | |
14169 | else | |
14170 | ac_cv_sizeof_char=0 | |
14171 | fi | |
14172 | fi | |
b4e70030 JB |
14173 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
14174 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
4e8d927d DJ |
14175 | cat >>confdefs.h <<_ACEOF |
14176 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14177 | _ACEOF | |
14178 | ||
14179 | ||
14180 | ||
b4e70030 JB |
14181 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 |
14182 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14183 | case "$ac_cv_sizeof_char" in |
14184 | 1) acx_cv_type_int8_t=char ;; | |
14185 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
14186 | echo "$as_me: error: no 8-bit type" >&2;} | |
14187 | { (exit please report a bug); exit please report a bug; }; } | |
14188 | esac | |
b4e70030 JB |
14189 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 |
14190 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
4e8d927d | 14191 | |
b4e70030 JB |
14192 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 |
14193 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14194 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in |
14195 | 2:*) acx_cv_type_int16_t=int ;; | |
14196 | *:2) acx_cv_type_int16_t=short ;; | |
14197 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
14198 | echo "$as_me: error: no 16-bit type" >&2;} | |
14199 | { (exit please report a bug); exit please report a bug; }; } | |
14200 | esac | |
b4e70030 JB |
14201 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 |
14202 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
4e8d927d | 14203 | |
b4e70030 JB |
14204 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 |
14205 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14206 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in |
14207 | 4:*) acx_cv_type_int32_t=int ;; | |
14208 | *:4) acx_cv_type_int32_t=long ;; | |
14209 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
14210 | echo "$as_me: error: no 32-bit type" >&2;} | |
14211 | { (exit please report a bug); exit please report a bug; }; } | |
14212 | esac | |
b4e70030 JB |
14213 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 |
14214 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
4e8d927d DJ |
14215 | fi |
14216 | ||
14217 | # These tests are here to make the output prettier | |
14218 | ||
14219 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
14220 | case "$ac_cv_sizeof_long" in | |
14221 | 8) acx_cv_type_int64_t=long ;; | |
14222 | esac | |
b4e70030 JB |
14223 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 |
14224 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 | |
14225 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
14226 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
4e8d927d DJ |
14227 | fi |
14228 | ||
14229 | # Now we can use the above types | |
14230 | ||
14231 | if test "$ac_cv_type_uintptr_t" != yes; then | |
b4e70030 JB |
14232 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 |
14233 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14234 | case $ac_cv_sizeof_void_p in |
14235 | 2) acx_cv_type_intptr_t=int16_t ;; | |
14236 | 4) acx_cv_type_intptr_t=int32_t ;; | |
14237 | 8) acx_cv_type_intptr_t=int64_t ;; | |
14238 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
14239 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
14240 | { (exit please report a bug); exit please report a bug; }; } | |
14241 | esac | |
b4e70030 JB |
14242 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 |
14243 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
4e8d927d DJ |
14244 | fi |
14245 | ||
14246 | # ----------------- done all checks, emit header ------------- | |
b4e70030 | 14247 | ac_config_commands="$ac_config_commands gdb_stdint.h" |
4e8d927d DJ |
14248 | |
14249 | ||
14250 | ||
14251 | ||
14252 | # ------------------------- # | |
14253 | # Checks for declarations. # | |
14254 | # ------------------------- # | |
14255 | ||
b4e70030 JB |
14256 | echo "$as_me:$LINENO: checking whether free is declared" >&5 |
14257 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14258 | if test "${ac_cv_have_decl_free+set}" = set; then |
14259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14260 | else | |
14261 | cat >conftest.$ac_ext <<_ACEOF | |
14262 | /* confdefs.h. */ | |
14263 | _ACEOF | |
14264 | cat confdefs.h >>conftest.$ac_ext | |
14265 | cat >>conftest.$ac_ext <<_ACEOF | |
14266 | /* end confdefs.h. */ | |
14267 | $ac_includes_default | |
14268 | int | |
14269 | main () | |
14270 | { | |
14271 | #ifndef free | |
14272 | char *p = (char *) free; | |
4e8d927d DJ |
14273 | #endif |
14274 | ||
14275 | ; | |
14276 | return 0; | |
14277 | } | |
14278 | _ACEOF | |
14279 | rm -f conftest.$ac_objext | |
14280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14281 | (eval $ac_compile) 2>conftest.er1 | |
14282 | ac_status=$? | |
14283 | grep -v '^ *+' conftest.er1 >conftest.err | |
14284 | rm -f conftest.er1 | |
14285 | cat conftest.err >&5 | |
14286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14287 | (exit $ac_status); } && | |
b4e70030 JB |
14288 | { ac_try='test -z "$ac_c_werror_flag" |
14289 | || test ! -s conftest.err' | |
4e8d927d DJ |
14290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14291 | (eval $ac_try) 2>&5 | |
14292 | ac_status=$? | |
14293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14294 | (exit $ac_status); }; } && | |
14295 | { ac_try='test -s conftest.$ac_objext' | |
14296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14297 | (eval $ac_try) 2>&5 | |
14298 | ac_status=$? | |
14299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14300 | (exit $ac_status); }; }; then | |
14301 | ac_cv_have_decl_free=yes | |
14302 | else | |
14303 | echo "$as_me: failed program was:" >&5 | |
14304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14305 | ||
b4e70030 | 14306 | ac_cv_have_decl_free=no |
4e8d927d | 14307 | fi |
4e8d927d DJ |
14308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14309 | fi | |
b4e70030 JB |
14310 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
14311 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
4e8d927d DJ |
14312 | if test $ac_cv_have_decl_free = yes; then |
14313 | ||
14314 | cat >>confdefs.h <<_ACEOF | |
14315 | #define HAVE_DECL_FREE 1 | |
14316 | _ACEOF | |
14317 | ||
14318 | ||
14319 | else | |
14320 | cat >>confdefs.h <<_ACEOF | |
14321 | #define HAVE_DECL_FREE 0 | |
14322 | _ACEOF | |
14323 | ||
14324 | ||
14325 | fi | |
b4e70030 JB |
14326 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 |
14327 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14328 | if test "${ac_cv_have_decl_malloc+set}" = set; then |
14329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14330 | else | |
14331 | cat >conftest.$ac_ext <<_ACEOF | |
14332 | /* confdefs.h. */ | |
14333 | _ACEOF | |
14334 | cat confdefs.h >>conftest.$ac_ext | |
14335 | cat >>conftest.$ac_ext <<_ACEOF | |
14336 | /* end confdefs.h. */ | |
14337 | $ac_includes_default | |
14338 | int | |
14339 | main () | |
14340 | { | |
14341 | #ifndef malloc | |
14342 | char *p = (char *) malloc; | |
4e8d927d DJ |
14343 | #endif |
14344 | ||
14345 | ; | |
14346 | return 0; | |
14347 | } | |
14348 | _ACEOF | |
14349 | rm -f conftest.$ac_objext | |
14350 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14351 | (eval $ac_compile) 2>conftest.er1 | |
14352 | ac_status=$? | |
14353 | grep -v '^ *+' conftest.er1 >conftest.err | |
14354 | rm -f conftest.er1 | |
14355 | cat conftest.err >&5 | |
14356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14357 | (exit $ac_status); } && | |
b4e70030 JB |
14358 | { ac_try='test -z "$ac_c_werror_flag" |
14359 | || test ! -s conftest.err' | |
4e8d927d DJ |
14360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14361 | (eval $ac_try) 2>&5 | |
14362 | ac_status=$? | |
14363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14364 | (exit $ac_status); }; } && | |
14365 | { ac_try='test -s conftest.$ac_objext' | |
14366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14367 | (eval $ac_try) 2>&5 | |
14368 | ac_status=$? | |
14369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14370 | (exit $ac_status); }; }; then | |
14371 | ac_cv_have_decl_malloc=yes | |
14372 | else | |
14373 | echo "$as_me: failed program was:" >&5 | |
14374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14375 | ||
b4e70030 | 14376 | ac_cv_have_decl_malloc=no |
4e8d927d | 14377 | fi |
4e8d927d DJ |
14378 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14379 | fi | |
b4e70030 JB |
14380 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
14381 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
4e8d927d DJ |
14382 | if test $ac_cv_have_decl_malloc = yes; then |
14383 | ||
14384 | cat >>confdefs.h <<_ACEOF | |
14385 | #define HAVE_DECL_MALLOC 1 | |
14386 | _ACEOF | |
14387 | ||
14388 | ||
14389 | else | |
14390 | cat >>confdefs.h <<_ACEOF | |
14391 | #define HAVE_DECL_MALLOC 0 | |
14392 | _ACEOF | |
14393 | ||
14394 | ||
14395 | fi | |
b4e70030 JB |
14396 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 |
14397 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14398 | if test "${ac_cv_have_decl_realloc+set}" = set; then |
14399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14400 | else | |
14401 | cat >conftest.$ac_ext <<_ACEOF | |
14402 | /* confdefs.h. */ | |
14403 | _ACEOF | |
14404 | cat confdefs.h >>conftest.$ac_ext | |
14405 | cat >>conftest.$ac_ext <<_ACEOF | |
14406 | /* end confdefs.h. */ | |
14407 | $ac_includes_default | |
14408 | int | |
14409 | main () | |
14410 | { | |
14411 | #ifndef realloc | |
14412 | char *p = (char *) realloc; | |
4e8d927d DJ |
14413 | #endif |
14414 | ||
14415 | ; | |
14416 | return 0; | |
14417 | } | |
14418 | _ACEOF | |
14419 | rm -f conftest.$ac_objext | |
14420 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14421 | (eval $ac_compile) 2>conftest.er1 | |
14422 | ac_status=$? | |
14423 | grep -v '^ *+' conftest.er1 >conftest.err | |
14424 | rm -f conftest.er1 | |
14425 | cat conftest.err >&5 | |
14426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14427 | (exit $ac_status); } && | |
b4e70030 JB |
14428 | { ac_try='test -z "$ac_c_werror_flag" |
14429 | || test ! -s conftest.err' | |
4e8d927d DJ |
14430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14431 | (eval $ac_try) 2>&5 | |
14432 | ac_status=$? | |
14433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14434 | (exit $ac_status); }; } && | |
14435 | { ac_try='test -s conftest.$ac_objext' | |
14436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14437 | (eval $ac_try) 2>&5 | |
14438 | ac_status=$? | |
14439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14440 | (exit $ac_status); }; }; then | |
14441 | ac_cv_have_decl_realloc=yes | |
14442 | else | |
14443 | echo "$as_me: failed program was:" >&5 | |
14444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14445 | ||
b4e70030 | 14446 | ac_cv_have_decl_realloc=no |
4e8d927d | 14447 | fi |
4e8d927d DJ |
14448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14449 | fi | |
b4e70030 JB |
14450 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
14451 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
4e8d927d DJ |
14452 | if test $ac_cv_have_decl_realloc = yes; then |
14453 | ||
14454 | cat >>confdefs.h <<_ACEOF | |
14455 | #define HAVE_DECL_REALLOC 1 | |
14456 | _ACEOF | |
14457 | ||
14458 | ||
14459 | else | |
14460 | cat >>confdefs.h <<_ACEOF | |
14461 | #define HAVE_DECL_REALLOC 0 | |
14462 | _ACEOF | |
14463 | ||
14464 | ||
14465 | fi | |
14466 | ||
14467 | ||
b4e70030 JB |
14468 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 |
14469 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14470 | if test "${ac_cv_have_decl_strerror+set}" = set; then |
14471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14472 | else | |
14473 | cat >conftest.$ac_ext <<_ACEOF | |
14474 | /* confdefs.h. */ | |
14475 | _ACEOF | |
14476 | cat confdefs.h >>conftest.$ac_ext | |
14477 | cat >>conftest.$ac_ext <<_ACEOF | |
14478 | /* end confdefs.h. */ | |
14479 | $ac_includes_default | |
14480 | int | |
14481 | main () | |
14482 | { | |
14483 | #ifndef strerror | |
14484 | char *p = (char *) strerror; | |
4e8d927d DJ |
14485 | #endif |
14486 | ||
14487 | ; | |
14488 | return 0; | |
14489 | } | |
14490 | _ACEOF | |
14491 | rm -f conftest.$ac_objext | |
14492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14493 | (eval $ac_compile) 2>conftest.er1 | |
14494 | ac_status=$? | |
14495 | grep -v '^ *+' conftest.er1 >conftest.err | |
14496 | rm -f conftest.er1 | |
14497 | cat conftest.err >&5 | |
14498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14499 | (exit $ac_status); } && | |
b4e70030 JB |
14500 | { ac_try='test -z "$ac_c_werror_flag" |
14501 | || test ! -s conftest.err' | |
4e8d927d DJ |
14502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14503 | (eval $ac_try) 2>&5 | |
14504 | ac_status=$? | |
14505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14506 | (exit $ac_status); }; } && | |
14507 | { ac_try='test -s conftest.$ac_objext' | |
14508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14509 | (eval $ac_try) 2>&5 | |
14510 | ac_status=$? | |
14511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14512 | (exit $ac_status); }; }; then | |
14513 | ac_cv_have_decl_strerror=yes | |
14514 | else | |
14515 | echo "$as_me: failed program was:" >&5 | |
14516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14517 | ||
b4e70030 | 14518 | ac_cv_have_decl_strerror=no |
4e8d927d | 14519 | fi |
4e8d927d DJ |
14520 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14521 | fi | |
b4e70030 JB |
14522 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 |
14523 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 | |
4e8d927d DJ |
14524 | if test $ac_cv_have_decl_strerror = yes; then |
14525 | ||
14526 | cat >>confdefs.h <<_ACEOF | |
14527 | #define HAVE_DECL_STRERROR 1 | |
14528 | _ACEOF | |
14529 | ||
14530 | ||
14531 | else | |
14532 | cat >>confdefs.h <<_ACEOF | |
14533 | #define HAVE_DECL_STRERROR 0 | |
14534 | _ACEOF | |
14535 | ||
14536 | ||
14537 | fi | |
b4e70030 JB |
14538 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
14539 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14540 | if test "${ac_cv_have_decl_strstr+set}" = set; then |
14541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14542 | else | |
14543 | cat >conftest.$ac_ext <<_ACEOF | |
14544 | /* confdefs.h. */ | |
14545 | _ACEOF | |
14546 | cat confdefs.h >>conftest.$ac_ext | |
14547 | cat >>conftest.$ac_ext <<_ACEOF | |
14548 | /* end confdefs.h. */ | |
14549 | $ac_includes_default | |
14550 | int | |
14551 | main () | |
14552 | { | |
14553 | #ifndef strstr | |
14554 | char *p = (char *) strstr; | |
4e8d927d DJ |
14555 | #endif |
14556 | ||
14557 | ; | |
14558 | return 0; | |
14559 | } | |
14560 | _ACEOF | |
14561 | rm -f conftest.$ac_objext | |
14562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14563 | (eval $ac_compile) 2>conftest.er1 | |
14564 | ac_status=$? | |
14565 | grep -v '^ *+' conftest.er1 >conftest.err | |
14566 | rm -f conftest.er1 | |
14567 | cat conftest.err >&5 | |
14568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14569 | (exit $ac_status); } && | |
b4e70030 JB |
14570 | { ac_try='test -z "$ac_c_werror_flag" |
14571 | || test ! -s conftest.err' | |
4e8d927d DJ |
14572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14573 | (eval $ac_try) 2>&5 | |
14574 | ac_status=$? | |
14575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14576 | (exit $ac_status); }; } && | |
14577 | { ac_try='test -s conftest.$ac_objext' | |
14578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14579 | (eval $ac_try) 2>&5 | |
14580 | ac_status=$? | |
14581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14582 | (exit $ac_status); }; }; then | |
14583 | ac_cv_have_decl_strstr=yes | |
14584 | else | |
14585 | echo "$as_me: failed program was:" >&5 | |
14586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14587 | ||
b4e70030 | 14588 | ac_cv_have_decl_strstr=no |
4e8d927d | 14589 | fi |
4e8d927d DJ |
14590 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14591 | fi | |
b4e70030 JB |
14592 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
14593 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
4e8d927d DJ |
14594 | if test $ac_cv_have_decl_strstr = yes; then |
14595 | ||
14596 | cat >>confdefs.h <<_ACEOF | |
14597 | #define HAVE_DECL_STRSTR 1 | |
14598 | _ACEOF | |
14599 | ||
14600 | ||
14601 | else | |
14602 | cat >>confdefs.h <<_ACEOF | |
14603 | #define HAVE_DECL_STRSTR 0 | |
14604 | _ACEOF | |
14605 | ||
14606 | ||
14607 | fi | |
14608 | ||
14609 | ||
b4e70030 JB |
14610 | echo "$as_me:$LINENO: checking whether getopt is declared" >&5 |
14611 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14612 | if test "${ac_cv_have_decl_getopt+set}" = set; then |
14613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14614 | else | |
14615 | cat >conftest.$ac_ext <<_ACEOF | |
14616 | /* confdefs.h. */ | |
14617 | _ACEOF | |
14618 | cat confdefs.h >>conftest.$ac_ext | |
14619 | cat >>conftest.$ac_ext <<_ACEOF | |
14620 | /* end confdefs.h. */ | |
14621 | $ac_includes_default | |
14622 | int | |
14623 | main () | |
14624 | { | |
14625 | #ifndef getopt | |
14626 | char *p = (char *) getopt; | |
4e8d927d DJ |
14627 | #endif |
14628 | ||
14629 | ; | |
14630 | return 0; | |
14631 | } | |
14632 | _ACEOF | |
14633 | rm -f conftest.$ac_objext | |
14634 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14635 | (eval $ac_compile) 2>conftest.er1 | |
14636 | ac_status=$? | |
14637 | grep -v '^ *+' conftest.er1 >conftest.err | |
14638 | rm -f conftest.er1 | |
14639 | cat conftest.err >&5 | |
14640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14641 | (exit $ac_status); } && | |
b4e70030 JB |
14642 | { ac_try='test -z "$ac_c_werror_flag" |
14643 | || test ! -s conftest.err' | |
4e8d927d DJ |
14644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14645 | (eval $ac_try) 2>&5 | |
14646 | ac_status=$? | |
14647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14648 | (exit $ac_status); }; } && | |
14649 | { ac_try='test -s conftest.$ac_objext' | |
14650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14651 | (eval $ac_try) 2>&5 | |
14652 | ac_status=$? | |
14653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14654 | (exit $ac_status); }; }; then | |
14655 | ac_cv_have_decl_getopt=yes | |
14656 | else | |
14657 | echo "$as_me: failed program was:" >&5 | |
14658 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14659 | ||
b4e70030 | 14660 | ac_cv_have_decl_getopt=no |
4e8d927d | 14661 | fi |
4e8d927d DJ |
14662 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14663 | fi | |
b4e70030 JB |
14664 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5 |
14665 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6 | |
4e8d927d DJ |
14666 | if test $ac_cv_have_decl_getopt = yes; then |
14667 | ||
14668 | cat >>confdefs.h <<_ACEOF | |
14669 | #define HAVE_DECL_GETOPT 1 | |
14670 | _ACEOF | |
14671 | ||
14672 | ||
14673 | else | |
14674 | cat >>confdefs.h <<_ACEOF | |
14675 | #define HAVE_DECL_GETOPT 0 | |
14676 | _ACEOF | |
14677 | ||
14678 | ||
14679 | fi | |
b4e70030 JB |
14680 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
14681 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14682 | if test "${ac_cv_have_decl_snprintf+set}" = set; then |
14683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14684 | else | |
14685 | cat >conftest.$ac_ext <<_ACEOF | |
14686 | /* confdefs.h. */ | |
14687 | _ACEOF | |
14688 | cat confdefs.h >>conftest.$ac_ext | |
14689 | cat >>conftest.$ac_ext <<_ACEOF | |
14690 | /* end confdefs.h. */ | |
14691 | $ac_includes_default | |
14692 | int | |
14693 | main () | |
14694 | { | |
14695 | #ifndef snprintf | |
14696 | char *p = (char *) snprintf; | |
4e8d927d DJ |
14697 | #endif |
14698 | ||
14699 | ; | |
14700 | return 0; | |
14701 | } | |
14702 | _ACEOF | |
14703 | rm -f conftest.$ac_objext | |
14704 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14705 | (eval $ac_compile) 2>conftest.er1 | |
14706 | ac_status=$? | |
14707 | grep -v '^ *+' conftest.er1 >conftest.err | |
14708 | rm -f conftest.er1 | |
14709 | cat conftest.err >&5 | |
14710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14711 | (exit $ac_status); } && | |
b4e70030 JB |
14712 | { ac_try='test -z "$ac_c_werror_flag" |
14713 | || test ! -s conftest.err' | |
4e8d927d DJ |
14714 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14715 | (eval $ac_try) 2>&5 | |
14716 | ac_status=$? | |
14717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14718 | (exit $ac_status); }; } && | |
14719 | { ac_try='test -s conftest.$ac_objext' | |
14720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14721 | (eval $ac_try) 2>&5 | |
14722 | ac_status=$? | |
14723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14724 | (exit $ac_status); }; }; then | |
14725 | ac_cv_have_decl_snprintf=yes | |
14726 | else | |
14727 | echo "$as_me: failed program was:" >&5 | |
14728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14729 | ||
b4e70030 | 14730 | ac_cv_have_decl_snprintf=no |
4e8d927d | 14731 | fi |
4e8d927d DJ |
14732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14733 | fi | |
b4e70030 JB |
14734 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 |
14735 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
4e8d927d DJ |
14736 | if test $ac_cv_have_decl_snprintf = yes; then |
14737 | ||
14738 | cat >>confdefs.h <<_ACEOF | |
14739 | #define HAVE_DECL_SNPRINTF 1 | |
14740 | _ACEOF | |
14741 | ||
14742 | ||
14743 | else | |
14744 | cat >>confdefs.h <<_ACEOF | |
14745 | #define HAVE_DECL_SNPRINTF 0 | |
14746 | _ACEOF | |
14747 | ||
14748 | ||
14749 | fi | |
b4e70030 JB |
14750 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
14751 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14752 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then |
14753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14754 | else | |
14755 | cat >conftest.$ac_ext <<_ACEOF | |
14756 | /* confdefs.h. */ | |
14757 | _ACEOF | |
14758 | cat confdefs.h >>conftest.$ac_ext | |
14759 | cat >>conftest.$ac_ext <<_ACEOF | |
14760 | /* end confdefs.h. */ | |
14761 | $ac_includes_default | |
14762 | int | |
14763 | main () | |
14764 | { | |
14765 | #ifndef vsnprintf | |
14766 | char *p = (char *) vsnprintf; | |
4e8d927d DJ |
14767 | #endif |
14768 | ||
14769 | ; | |
14770 | return 0; | |
14771 | } | |
14772 | _ACEOF | |
14773 | rm -f conftest.$ac_objext | |
14774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14775 | (eval $ac_compile) 2>conftest.er1 | |
14776 | ac_status=$? | |
14777 | grep -v '^ *+' conftest.er1 >conftest.err | |
14778 | rm -f conftest.er1 | |
14779 | cat conftest.err >&5 | |
14780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14781 | (exit $ac_status); } && | |
b4e70030 JB |
14782 | { ac_try='test -z "$ac_c_werror_flag" |
14783 | || test ! -s conftest.err' | |
4e8d927d DJ |
14784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14785 | (eval $ac_try) 2>&5 | |
14786 | ac_status=$? | |
14787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14788 | (exit $ac_status); }; } && | |
14789 | { ac_try='test -s conftest.$ac_objext' | |
14790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14791 | (eval $ac_try) 2>&5 | |
14792 | ac_status=$? | |
14793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14794 | (exit $ac_status); }; }; then | |
14795 | ac_cv_have_decl_vsnprintf=yes | |
14796 | else | |
14797 | echo "$as_me: failed program was:" >&5 | |
14798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14799 | ||
b4e70030 | 14800 | ac_cv_have_decl_vsnprintf=no |
4e8d927d | 14801 | fi |
4e8d927d DJ |
14802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14803 | fi | |
b4e70030 JB |
14804 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 |
14805 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
4e8d927d DJ |
14806 | if test $ac_cv_have_decl_vsnprintf = yes; then |
14807 | ||
14808 | cat >>confdefs.h <<_ACEOF | |
14809 | #define HAVE_DECL_VSNPRINTF 1 | |
14810 | _ACEOF | |
14811 | ||
14812 | ||
14813 | else | |
14814 | cat >>confdefs.h <<_ACEOF | |
14815 | #define HAVE_DECL_VSNPRINTF 0 | |
14816 | _ACEOF | |
14817 | ||
14818 | ||
14819 | fi | |
14820 | ||
14821 | ||
14822 | ||
14823 | # ----------------------- # | |
14824 | # Checks for structures. # | |
14825 | # ----------------------- # | |
14826 | ||
b4e70030 JB |
14827 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
14828 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
4e8d927d DJ |
14829 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
14830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14831 | else | |
14832 | cat >conftest.$ac_ext <<_ACEOF | |
14833 | /* confdefs.h. */ | |
14834 | _ACEOF | |
14835 | cat confdefs.h >>conftest.$ac_ext | |
14836 | cat >>conftest.$ac_ext <<_ACEOF | |
14837 | /* end confdefs.h. */ | |
14838 | $ac_includes_default | |
14839 | int | |
14840 | main () | |
14841 | { | |
14842 | static struct stat ac_aggr; | |
14843 | if (ac_aggr.st_blocks) | |
14844 | return 0; | |
14845 | ; | |
14846 | return 0; | |
14847 | } | |
14848 | _ACEOF | |
14849 | rm -f conftest.$ac_objext | |
14850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14851 | (eval $ac_compile) 2>conftest.er1 | |
14852 | ac_status=$? | |
14853 | grep -v '^ *+' conftest.er1 >conftest.err | |
14854 | rm -f conftest.er1 | |
14855 | cat conftest.err >&5 | |
14856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14857 | (exit $ac_status); } && | |
b4e70030 JB |
14858 | { ac_try='test -z "$ac_c_werror_flag" |
14859 | || test ! -s conftest.err' | |
4e8d927d DJ |
14860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14861 | (eval $ac_try) 2>&5 | |
14862 | ac_status=$? | |
14863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14864 | (exit $ac_status); }; } && | |
14865 | { ac_try='test -s conftest.$ac_objext' | |
14866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14867 | (eval $ac_try) 2>&5 | |
14868 | ac_status=$? | |
14869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14870 | (exit $ac_status); }; }; then | |
14871 | ac_cv_member_struct_stat_st_blocks=yes | |
14872 | else | |
14873 | echo "$as_me: failed program was:" >&5 | |
14874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14875 | ||
b4e70030 | 14876 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
14877 | /* confdefs.h. */ |
14878 | _ACEOF | |
14879 | cat confdefs.h >>conftest.$ac_ext | |
14880 | cat >>conftest.$ac_ext <<_ACEOF | |
14881 | /* end confdefs.h. */ | |
14882 | $ac_includes_default | |
14883 | int | |
14884 | main () | |
14885 | { | |
14886 | static struct stat ac_aggr; | |
14887 | if (sizeof ac_aggr.st_blocks) | |
14888 | return 0; | |
14889 | ; | |
14890 | return 0; | |
14891 | } | |
14892 | _ACEOF | |
14893 | rm -f conftest.$ac_objext | |
14894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14895 | (eval $ac_compile) 2>conftest.er1 | |
14896 | ac_status=$? | |
14897 | grep -v '^ *+' conftest.er1 >conftest.err | |
14898 | rm -f conftest.er1 | |
14899 | cat conftest.err >&5 | |
14900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14901 | (exit $ac_status); } && | |
b4e70030 JB |
14902 | { ac_try='test -z "$ac_c_werror_flag" |
14903 | || test ! -s conftest.err' | |
4e8d927d DJ |
14904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14905 | (eval $ac_try) 2>&5 | |
14906 | ac_status=$? | |
14907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14908 | (exit $ac_status); }; } && | |
14909 | { ac_try='test -s conftest.$ac_objext' | |
14910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14911 | (eval $ac_try) 2>&5 | |
14912 | ac_status=$? | |
14913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14914 | (exit $ac_status); }; }; then | |
14915 | ac_cv_member_struct_stat_st_blocks=yes | |
14916 | else | |
14917 | echo "$as_me: failed program was:" >&5 | |
14918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14919 | ||
b4e70030 | 14920 | ac_cv_member_struct_stat_st_blocks=no |
4e8d927d | 14921 | fi |
4e8d927d DJ |
14922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14923 | fi | |
4e8d927d DJ |
14924 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14925 | fi | |
b4e70030 JB |
14926 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
14927 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
4e8d927d DJ |
14928 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
14929 | ||
14930 | cat >>confdefs.h <<_ACEOF | |
14931 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
14932 | _ACEOF | |
14933 | ||
14934 | ||
14935 | fi | |
14936 | ||
b4e70030 JB |
14937 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
14938 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
4e8d927d DJ |
14939 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
14940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14941 | else | |
14942 | cat >conftest.$ac_ext <<_ACEOF | |
14943 | /* confdefs.h. */ | |
14944 | _ACEOF | |
14945 | cat confdefs.h >>conftest.$ac_ext | |
14946 | cat >>conftest.$ac_ext <<_ACEOF | |
14947 | /* end confdefs.h. */ | |
14948 | $ac_includes_default | |
14949 | int | |
14950 | main () | |
14951 | { | |
14952 | static struct stat ac_aggr; | |
14953 | if (ac_aggr.st_blksize) | |
14954 | return 0; | |
14955 | ; | |
14956 | return 0; | |
14957 | } | |
14958 | _ACEOF | |
14959 | rm -f conftest.$ac_objext | |
14960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14961 | (eval $ac_compile) 2>conftest.er1 | |
14962 | ac_status=$? | |
14963 | grep -v '^ *+' conftest.er1 >conftest.err | |
14964 | rm -f conftest.er1 | |
14965 | cat conftest.err >&5 | |
14966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14967 | (exit $ac_status); } && | |
b4e70030 JB |
14968 | { ac_try='test -z "$ac_c_werror_flag" |
14969 | || test ! -s conftest.err' | |
4e8d927d DJ |
14970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14971 | (eval $ac_try) 2>&5 | |
14972 | ac_status=$? | |
14973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14974 | (exit $ac_status); }; } && | |
14975 | { ac_try='test -s conftest.$ac_objext' | |
14976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14977 | (eval $ac_try) 2>&5 | |
14978 | ac_status=$? | |
14979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14980 | (exit $ac_status); }; }; then | |
14981 | ac_cv_member_struct_stat_st_blksize=yes | |
14982 | else | |
14983 | echo "$as_me: failed program was:" >&5 | |
14984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14985 | ||
b4e70030 | 14986 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
14987 | /* confdefs.h. */ |
14988 | _ACEOF | |
14989 | cat confdefs.h >>conftest.$ac_ext | |
14990 | cat >>conftest.$ac_ext <<_ACEOF | |
14991 | /* end confdefs.h. */ | |
14992 | $ac_includes_default | |
14993 | int | |
14994 | main () | |
14995 | { | |
14996 | static struct stat ac_aggr; | |
14997 | if (sizeof ac_aggr.st_blksize) | |
14998 | return 0; | |
14999 | ; | |
15000 | return 0; | |
15001 | } | |
15002 | _ACEOF | |
15003 | rm -f conftest.$ac_objext | |
15004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15005 | (eval $ac_compile) 2>conftest.er1 | |
15006 | ac_status=$? | |
15007 | grep -v '^ *+' conftest.er1 >conftest.err | |
15008 | rm -f conftest.er1 | |
15009 | cat conftest.err >&5 | |
15010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15011 | (exit $ac_status); } && | |
b4e70030 JB |
15012 | { ac_try='test -z "$ac_c_werror_flag" |
15013 | || test ! -s conftest.err' | |
4e8d927d DJ |
15014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15015 | (eval $ac_try) 2>&5 | |
15016 | ac_status=$? | |
15017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15018 | (exit $ac_status); }; } && | |
15019 | { ac_try='test -s conftest.$ac_objext' | |
15020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15021 | (eval $ac_try) 2>&5 | |
15022 | ac_status=$? | |
15023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15024 | (exit $ac_status); }; }; then | |
15025 | ac_cv_member_struct_stat_st_blksize=yes | |
15026 | else | |
15027 | echo "$as_me: failed program was:" >&5 | |
15028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15029 | ||
b4e70030 | 15030 | ac_cv_member_struct_stat_st_blksize=no |
4e8d927d | 15031 | fi |
4e8d927d DJ |
15032 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15033 | fi | |
4e8d927d DJ |
15034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15035 | fi | |
b4e70030 JB |
15036 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
15037 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
4e8d927d DJ |
15038 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
15039 | ||
15040 | cat >>confdefs.h <<_ACEOF | |
15041 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
15042 | _ACEOF | |
15043 | ||
15044 | ||
15045 | fi | |
15046 | ||
15047 | ||
15048 | # ------------------ # | |
15049 | # Checks for types. # | |
15050 | # ------------------ # | |
15051 | ||
b4e70030 JB |
15052 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
15053 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
4e8d927d DJ |
15054 | if test "${ac_cv_type_signal+set}" = set; then |
15055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15056 | else | |
15057 | cat >conftest.$ac_ext <<_ACEOF | |
15058 | /* confdefs.h. */ | |
15059 | _ACEOF | |
15060 | cat confdefs.h >>conftest.$ac_ext | |
15061 | cat >>conftest.$ac_ext <<_ACEOF | |
15062 | /* end confdefs.h. */ | |
15063 | #include <sys/types.h> | |
15064 | #include <signal.h> | |
b4e70030 JB |
15065 | #ifdef signal |
15066 | # undef signal | |
15067 | #endif | |
15068 | #ifdef __cplusplus | |
15069 | extern "C" void (*signal (int, void (*)(int)))(int); | |
15070 | #else | |
15071 | void (*signal ()) (); | |
15072 | #endif | |
4e8d927d DJ |
15073 | |
15074 | int | |
15075 | main () | |
15076 | { | |
b4e70030 | 15077 | int i; |
4e8d927d DJ |
15078 | ; |
15079 | return 0; | |
15080 | } | |
15081 | _ACEOF | |
15082 | rm -f conftest.$ac_objext | |
15083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15084 | (eval $ac_compile) 2>conftest.er1 | |
15085 | ac_status=$? | |
15086 | grep -v '^ *+' conftest.er1 >conftest.err | |
15087 | rm -f conftest.er1 | |
15088 | cat conftest.err >&5 | |
15089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15090 | (exit $ac_status); } && | |
b4e70030 JB |
15091 | { ac_try='test -z "$ac_c_werror_flag" |
15092 | || test ! -s conftest.err' | |
4e8d927d DJ |
15093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15094 | (eval $ac_try) 2>&5 | |
15095 | ac_status=$? | |
15096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15097 | (exit $ac_status); }; } && | |
15098 | { ac_try='test -s conftest.$ac_objext' | |
15099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15100 | (eval $ac_try) 2>&5 | |
15101 | ac_status=$? | |
15102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15103 | (exit $ac_status); }; }; then | |
b4e70030 | 15104 | ac_cv_type_signal=void |
4e8d927d DJ |
15105 | else |
15106 | echo "$as_me: failed program was:" >&5 | |
15107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15108 | ||
b4e70030 | 15109 | ac_cv_type_signal=int |
4e8d927d | 15110 | fi |
4e8d927d DJ |
15111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15112 | fi | |
b4e70030 JB |
15113 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
15114 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
4e8d927d DJ |
15115 | |
15116 | cat >>confdefs.h <<_ACEOF | |
15117 | #define RETSIGTYPE $ac_cv_type_signal | |
15118 | _ACEOF | |
15119 | ||
15120 | ||
b4e70030 JB |
15121 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
15122 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | |
4e8d927d DJ |
15123 | if test "${ac_cv_type_socklen_t+set}" = set; then |
15124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15125 | else | |
15126 | cat >conftest.$ac_ext <<_ACEOF | |
15127 | /* confdefs.h. */ | |
15128 | _ACEOF | |
15129 | cat confdefs.h >>conftest.$ac_ext | |
15130 | cat >>conftest.$ac_ext <<_ACEOF | |
15131 | /* end confdefs.h. */ | |
15132 | #include <sys/types.h> | |
15133 | #include <sys/socket.h> | |
15134 | ||
15135 | ||
4e8d927d DJ |
15136 | int |
15137 | main () | |
15138 | { | |
b4e70030 | 15139 | if ((socklen_t *) 0) |
4e8d927d | 15140 | return 0; |
b4e70030 | 15141 | if (sizeof (socklen_t)) |
4e8d927d DJ |
15142 | return 0; |
15143 | ; | |
15144 | return 0; | |
15145 | } | |
15146 | _ACEOF | |
15147 | rm -f conftest.$ac_objext | |
15148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15149 | (eval $ac_compile) 2>conftest.er1 | |
15150 | ac_status=$? | |
15151 | grep -v '^ *+' conftest.er1 >conftest.err | |
15152 | rm -f conftest.er1 | |
15153 | cat conftest.err >&5 | |
15154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15155 | (exit $ac_status); } && | |
b4e70030 JB |
15156 | { ac_try='test -z "$ac_c_werror_flag" |
15157 | || test ! -s conftest.err' | |
4e8d927d DJ |
15158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15159 | (eval $ac_try) 2>&5 | |
15160 | ac_status=$? | |
15161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15162 | (exit $ac_status); }; } && | |
15163 | { ac_try='test -s conftest.$ac_objext' | |
15164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15165 | (eval $ac_try) 2>&5 | |
15166 | ac_status=$? | |
15167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15168 | (exit $ac_status); }; }; then | |
15169 | ac_cv_type_socklen_t=yes | |
15170 | else | |
15171 | echo "$as_me: failed program was:" >&5 | |
15172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15173 | ||
b4e70030 | 15174 | ac_cv_type_socklen_t=no |
4e8d927d | 15175 | fi |
4e8d927d DJ |
15176 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15177 | fi | |
b4e70030 JB |
15178 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
15179 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | |
4e8d927d DJ |
15180 | if test $ac_cv_type_socklen_t = yes; then |
15181 | ||
15182 | cat >>confdefs.h <<_ACEOF | |
15183 | #define HAVE_SOCKLEN_T 1 | |
15184 | _ACEOF | |
15185 | ||
15186 | ||
15187 | fi | |
15188 | ||
b4e70030 JB |
15189 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
15190 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
4e8d927d DJ |
15191 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
15192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15193 | else | |
15194 | cat >conftest.$ac_ext <<_ACEOF | |
15195 | /* confdefs.h. */ | |
15196 | _ACEOF | |
15197 | cat confdefs.h >>conftest.$ac_ext | |
15198 | cat >>conftest.$ac_ext <<_ACEOF | |
15199 | /* end confdefs.h. */ | |
15200 | #include <stdint.h> | |
15201 | ||
4e8d927d DJ |
15202 | int |
15203 | main () | |
15204 | { | |
b4e70030 | 15205 | if ((uintptr_t *) 0) |
4e8d927d | 15206 | return 0; |
b4e70030 | 15207 | if (sizeof (uintptr_t)) |
4e8d927d DJ |
15208 | return 0; |
15209 | ; | |
15210 | return 0; | |
15211 | } | |
15212 | _ACEOF | |
15213 | rm -f conftest.$ac_objext | |
15214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15215 | (eval $ac_compile) 2>conftest.er1 | |
15216 | ac_status=$? | |
15217 | grep -v '^ *+' conftest.er1 >conftest.err | |
15218 | rm -f conftest.er1 | |
15219 | cat conftest.err >&5 | |
15220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15221 | (exit $ac_status); } && | |
b4e70030 JB |
15222 | { ac_try='test -z "$ac_c_werror_flag" |
15223 | || test ! -s conftest.err' | |
4e8d927d DJ |
15224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15225 | (eval $ac_try) 2>&5 | |
15226 | ac_status=$? | |
15227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15228 | (exit $ac_status); }; } && | |
15229 | { ac_try='test -s conftest.$ac_objext' | |
15230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15231 | (eval $ac_try) 2>&5 | |
15232 | ac_status=$? | |
15233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15234 | (exit $ac_status); }; }; then | |
15235 | ac_cv_type_uintptr_t=yes | |
15236 | else | |
15237 | echo "$as_me: failed program was:" >&5 | |
15238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15239 | ||
b4e70030 | 15240 | ac_cv_type_uintptr_t=no |
4e8d927d | 15241 | fi |
4e8d927d DJ |
15242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15243 | fi | |
b4e70030 JB |
15244 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
15245 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
4e8d927d DJ |
15246 | if test $ac_cv_type_uintptr_t = yes; then |
15247 | ||
15248 | cat >>confdefs.h <<_ACEOF | |
15249 | #define HAVE_UINTPTR_T 1 | |
15250 | _ACEOF | |
15251 | ||
15252 | ||
15253 | fi | |
15254 | ||
15255 | ||
15256 | # ------------------------------------- # | |
15257 | # Checks for compiler characteristics. # | |
15258 | # ------------------------------------- # | |
15259 | ||
b4e70030 JB |
15260 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
15261 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4e8d927d DJ |
15262 | if test "${ac_cv_c_const+set}" = set; then |
15263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15264 | else | |
15265 | cat >conftest.$ac_ext <<_ACEOF | |
15266 | /* confdefs.h. */ | |
15267 | _ACEOF | |
15268 | cat confdefs.h >>conftest.$ac_ext | |
15269 | cat >>conftest.$ac_ext <<_ACEOF | |
15270 | /* end confdefs.h. */ | |
15271 | ||
15272 | int | |
15273 | main () | |
15274 | { | |
15275 | /* FIXME: Include the comments suggested by Paul. */ | |
15276 | #ifndef __cplusplus | |
15277 | /* Ultrix mips cc rejects this. */ | |
15278 | typedef int charset[2]; | |
15279 | const charset x; | |
15280 | /* SunOS 4.1.1 cc rejects this. */ | |
15281 | char const *const *ccp; | |
15282 | char **p; | |
15283 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15284 | struct point {int x, y;}; | |
15285 | static struct point const zero = {0,0}; | |
15286 | /* AIX XL C 1.02.0.0 rejects this. | |
15287 | It does not let you subtract one const X* pointer from another in | |
15288 | an arm of an if-expression whose if-part is not a constant | |
15289 | expression */ | |
15290 | const char *g = "string"; | |
15291 | ccp = &g + (g ? g-g : 0); | |
15292 | /* HPUX 7.0 cc rejects these. */ | |
15293 | ++ccp; | |
15294 | p = (char**) ccp; | |
15295 | ccp = (char const *const *) p; | |
15296 | { /* SCO 3.2v4 cc rejects this. */ | |
15297 | char *t; | |
15298 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15299 | ||
15300 | *t++ = 0; | |
4e8d927d DJ |
15301 | } |
15302 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15303 | int x[] = {25, 17}; | |
15304 | const int *foo = &x[0]; | |
15305 | ++foo; | |
15306 | } | |
15307 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15308 | typedef const int *iptr; | |
15309 | iptr p = 0; | |
15310 | ++p; | |
15311 | } | |
15312 | { /* AIX XL C 1.02.0.0 rejects this saying | |
15313 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15314 | struct s { int j; const int *ap[3]; }; | |
15315 | struct s *b; b->j = 5; | |
15316 | } | |
15317 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15318 | const int foo = 10; | |
4e8d927d | 15319 | } |
4e8d927d DJ |
15320 | #endif |
15321 | ||
15322 | ; | |
15323 | return 0; | |
15324 | } | |
15325 | _ACEOF | |
15326 | rm -f conftest.$ac_objext | |
15327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15328 | (eval $ac_compile) 2>conftest.er1 | |
15329 | ac_status=$? | |
15330 | grep -v '^ *+' conftest.er1 >conftest.err | |
15331 | rm -f conftest.er1 | |
15332 | cat conftest.err >&5 | |
15333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15334 | (exit $ac_status); } && | |
b4e70030 JB |
15335 | { ac_try='test -z "$ac_c_werror_flag" |
15336 | || test ! -s conftest.err' | |
4e8d927d DJ |
15337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15338 | (eval $ac_try) 2>&5 | |
15339 | ac_status=$? | |
15340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15341 | (exit $ac_status); }; } && | |
15342 | { ac_try='test -s conftest.$ac_objext' | |
15343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15344 | (eval $ac_try) 2>&5 | |
15345 | ac_status=$? | |
15346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15347 | (exit $ac_status); }; }; then | |
15348 | ac_cv_c_const=yes | |
15349 | else | |
15350 | echo "$as_me: failed program was:" >&5 | |
15351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15352 | ||
b4e70030 | 15353 | ac_cv_c_const=no |
4e8d927d | 15354 | fi |
4e8d927d DJ |
15355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15356 | fi | |
b4e70030 JB |
15357 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
15358 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4e8d927d DJ |
15359 | if test $ac_cv_c_const = no; then |
15360 | ||
15361 | cat >>confdefs.h <<\_ACEOF | |
15362 | #define const | |
15363 | _ACEOF | |
15364 | ||
15365 | fi | |
15366 | ||
b4e70030 JB |
15367 | echo "$as_me:$LINENO: checking for inline" >&5 |
15368 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4e8d927d DJ |
15369 | if test "${ac_cv_c_inline+set}" = set; then |
15370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15371 | else | |
15372 | ac_cv_c_inline=no | |
15373 | for ac_kw in inline __inline__ __inline; do | |
15374 | cat >conftest.$ac_ext <<_ACEOF | |
15375 | /* confdefs.h. */ | |
15376 | _ACEOF | |
15377 | cat confdefs.h >>conftest.$ac_ext | |
15378 | cat >>conftest.$ac_ext <<_ACEOF | |
15379 | /* end confdefs.h. */ | |
15380 | #ifndef __cplusplus | |
15381 | typedef int foo_t; | |
15382 | static $ac_kw foo_t static_foo () {return 0; } | |
15383 | $ac_kw foo_t foo () {return 0; } | |
15384 | #endif | |
15385 | ||
15386 | _ACEOF | |
15387 | rm -f conftest.$ac_objext | |
15388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15389 | (eval $ac_compile) 2>conftest.er1 | |
15390 | ac_status=$? | |
15391 | grep -v '^ *+' conftest.er1 >conftest.err | |
15392 | rm -f conftest.er1 | |
15393 | cat conftest.err >&5 | |
15394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15395 | (exit $ac_status); } && | |
b4e70030 JB |
15396 | { ac_try='test -z "$ac_c_werror_flag" |
15397 | || test ! -s conftest.err' | |
4e8d927d DJ |
15398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15399 | (eval $ac_try) 2>&5 | |
15400 | ac_status=$? | |
15401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15402 | (exit $ac_status); }; } && | |
15403 | { ac_try='test -s conftest.$ac_objext' | |
15404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15405 | (eval $ac_try) 2>&5 | |
15406 | ac_status=$? | |
15407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15408 | (exit $ac_status); }; }; then | |
b4e70030 | 15409 | ac_cv_c_inline=$ac_kw; break |
4e8d927d DJ |
15410 | else |
15411 | echo "$as_me: failed program was:" >&5 | |
15412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15413 | ||
4e8d927d | 15414 | fi |
4e8d927d | 15415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
15416 | done |
15417 | ||
15418 | fi | |
b4e70030 JB |
15419 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
15420 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
bec39cab | 15421 | |
bec39cab | 15422 | |
a3828db0 MK |
15423 | case $ac_cv_c_inline in |
15424 | inline | yes) ;; | |
15425 | *) | |
15426 | case $ac_cv_c_inline in | |
15427 | no) ac_val=;; | |
15428 | *) ac_val=$ac_cv_c_inline;; | |
15429 | esac | |
15430 | cat >>confdefs.h <<_ACEOF | |
15431 | #ifndef __cplusplus | |
15432 | #define inline $ac_val | |
15433 | #endif | |
15434 | _ACEOF | |
bec39cab AC |
15435 | ;; |
15436 | esac | |
bec39cab | 15437 | |
74c1b268 | 15438 | |
a3828db0 MK |
15439 | # ------------------------------ # |
15440 | # Checks for library functions. # | |
15441 | # ------------------------------ # | |
bec39cab | 15442 | |
a3828db0 MK |
15443 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
15444 | # for constant arguments. Useless! | |
b4e70030 JB |
15445 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
15446 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
a3828db0 | 15447 | if test "${ac_cv_working_alloca_h+set}" = set; then |
bec39cab AC |
15448 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15449 | else | |
15450 | cat >conftest.$ac_ext <<_ACEOF | |
15451 | /* confdefs.h. */ | |
15452 | _ACEOF | |
15453 | cat confdefs.h >>conftest.$ac_ext | |
15454 | cat >>conftest.$ac_ext <<_ACEOF | |
15455 | /* end confdefs.h. */ | |
a3828db0 | 15456 | #include <alloca.h> |
bec39cab AC |
15457 | int |
15458 | main () | |
15459 | { | |
a3828db0 | 15460 | char *p = (char *) alloca (2 * sizeof (int)); |
bec39cab AC |
15461 | ; |
15462 | return 0; | |
15463 | } | |
15464 | _ACEOF | |
15465 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15467 | (eval $ac_link) 2>conftest.er1 | |
15468 | ac_status=$? | |
15469 | grep -v '^ *+' conftest.er1 >conftest.err | |
15470 | rm -f conftest.er1 | |
15471 | cat conftest.err >&5 | |
15472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15473 | (exit $ac_status); } && | |
b4e70030 JB |
15474 | { ac_try='test -z "$ac_c_werror_flag" |
15475 | || test ! -s conftest.err' | |
bec39cab AC |
15476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15477 | (eval $ac_try) 2>&5 | |
15478 | ac_status=$? | |
15479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15480 | (exit $ac_status); }; } && | |
15481 | { ac_try='test -s conftest$ac_exeext' | |
15482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15483 | (eval $ac_try) 2>&5 | |
15484 | ac_status=$? | |
15485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15486 | (exit $ac_status); }; }; then | |
a3828db0 | 15487 | ac_cv_working_alloca_h=yes |
bec39cab AC |
15488 | else |
15489 | echo "$as_me: failed program was:" >&5 | |
15490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15491 | ||
b4e70030 | 15492 | ac_cv_working_alloca_h=no |
bec39cab AC |
15493 | fi |
15494 | rm -f conftest.err conftest.$ac_objext \ | |
15495 | conftest$ac_exeext conftest.$ac_ext | |
15496 | fi | |
b4e70030 JB |
15497 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
15498 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
a3828db0 MK |
15499 | if test $ac_cv_working_alloca_h = yes; then |
15500 | ||
15501 | cat >>confdefs.h <<\_ACEOF | |
15502 | #define HAVE_ALLOCA_H 1 | |
bec39cab | 15503 | _ACEOF |
74c1b268 | 15504 | |
74c1b268 AC |
15505 | fi |
15506 | ||
b4e70030 JB |
15507 | echo "$as_me:$LINENO: checking for alloca" >&5 |
15508 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
a3828db0 | 15509 | if test "${ac_cv_func_alloca_works+set}" = set; then |
bec39cab | 15510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
74c1b268 | 15511 | else |
bec39cab AC |
15512 | cat >conftest.$ac_ext <<_ACEOF |
15513 | /* confdefs.h. */ | |
15514 | _ACEOF | |
15515 | cat confdefs.h >>conftest.$ac_ext | |
15516 | cat >>conftest.$ac_ext <<_ACEOF | |
15517 | /* end confdefs.h. */ | |
a3828db0 MK |
15518 | #ifdef __GNUC__ |
15519 | # define alloca __builtin_alloca | |
15520 | #else | |
15521 | # ifdef _MSC_VER | |
15522 | # include <malloc.h> | |
15523 | # define alloca _alloca | |
15524 | # else | |
15525 | # if HAVE_ALLOCA_H | |
15526 | # include <alloca.h> | |
15527 | # else | |
15528 | # ifdef _AIX | |
15529 | #pragma alloca | |
15530 | # else | |
15531 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
15532 | char *alloca (); | |
15533 | # endif | |
15534 | # endif | |
15535 | # endif | |
97bf5e38 | 15536 | # endif |
a3828db0 | 15537 | #endif |
97bf5e38 | 15538 | |
bec39cab AC |
15539 | int |
15540 | main () | |
15541 | { | |
a3828db0 | 15542 | char *p = (char *) alloca (1); |
bec39cab AC |
15543 | ; |
15544 | return 0; | |
15545 | } | |
15546 | _ACEOF | |
a3828db0 MK |
15547 | rm -f conftest.$ac_objext conftest$ac_exeext |
15548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15549 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
15550 | ac_status=$? |
15551 | grep -v '^ *+' conftest.er1 >conftest.err | |
15552 | rm -f conftest.er1 | |
15553 | cat conftest.err >&5 | |
15554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15555 | (exit $ac_status); } && | |
b4e70030 JB |
15556 | { ac_try='test -z "$ac_c_werror_flag" |
15557 | || test ! -s conftest.err' | |
bec39cab AC |
15558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15559 | (eval $ac_try) 2>&5 | |
15560 | ac_status=$? | |
15561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15562 | (exit $ac_status); }; } && | |
a3828db0 | 15563 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
15564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15565 | (eval $ac_try) 2>&5 | |
15566 | ac_status=$? | |
15567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15568 | (exit $ac_status); }; }; then | |
a3828db0 | 15569 | ac_cv_func_alloca_works=yes |
0200359f | 15570 | else |
bec39cab AC |
15571 | echo "$as_me: failed program was:" >&5 |
15572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0200359f | 15573 | |
b4e70030 | 15574 | ac_cv_func_alloca_works=no |
0200359f | 15575 | fi |
a3828db0 MK |
15576 | rm -f conftest.err conftest.$ac_objext \ |
15577 | conftest$ac_exeext conftest.$ac_ext | |
72473524 | 15578 | fi |
b4e70030 JB |
15579 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
15580 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
bec39cab | 15581 | |
a3828db0 MK |
15582 | if test $ac_cv_func_alloca_works = yes; then |
15583 | ||
15584 | cat >>confdefs.h <<\_ACEOF | |
15585 | #define HAVE_ALLOCA 1 | |
bec39cab AC |
15586 | _ACEOF |
15587 | ||
a3828db0 MK |
15588 | else |
15589 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
15590 | # that cause trouble. Some versions do not even contain alloca or | |
15591 | # contain a buggy version. If you still want to use their alloca, | |
15592 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
72473524 | 15593 | |
b4e70030 | 15594 | ALLOCA=alloca.$ac_objext |
bec39cab | 15595 | |
a3828db0 MK |
15596 | cat >>confdefs.h <<\_ACEOF |
15597 | #define C_ALLOCA 1 | |
15598 | _ACEOF | |
bec39cab | 15599 | |
a3828db0 | 15600 | |
b4e70030 JB |
15601 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
15602 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
a3828db0 | 15603 | if test "${ac_cv_os_cray+set}" = set; then |
bec39cab | 15604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 15605 | else |
a3828db0 | 15606 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
15607 | /* confdefs.h. */ |
15608 | _ACEOF | |
15609 | cat confdefs.h >>conftest.$ac_ext | |
15610 | cat >>conftest.$ac_ext <<_ACEOF | |
15611 | /* end confdefs.h. */ | |
b4e70030 | 15612 | #if defined(CRAY) && ! defined(CRAY2) |
a3828db0 MK |
15613 | webecray |
15614 | #else | |
15615 | wenotbecray | |
15616 | #endif | |
15617 | ||
15618 | _ACEOF | |
15619 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
15620 | $EGREP "webecray" >/dev/null 2>&1; then | |
15621 | ac_cv_os_cray=yes | |
15622 | else | |
15623 | ac_cv_os_cray=no | |
15624 | fi | |
15625 | rm -f conftest* | |
15626 | ||
15627 | fi | |
b4e70030 JB |
15628 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
15629 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
a3828db0 MK |
15630 | if test $ac_cv_os_cray = yes; then |
15631 | for ac_func in _getb67 GETB67 getb67; do | |
15632 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
15633 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15634 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15635 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
15636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15637 | else | |
15638 | cat >conftest.$ac_ext <<_ACEOF | |
15639 | /* confdefs.h. */ | |
15640 | _ACEOF | |
15641 | cat confdefs.h >>conftest.$ac_ext | |
15642 | cat >>conftest.$ac_ext <<_ACEOF | |
15643 | /* end confdefs.h. */ | |
15644 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15645 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15646 | #define $ac_func innocuous_$ac_func | |
15647 | ||
15648 | /* System header to define __stub macros and hopefully few prototypes, | |
15649 | which can conflict with char $ac_func (); below. | |
15650 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15651 | <limits.h> exists even on freestanding compilers. */ | |
15652 | ||
15653 | #ifdef __STDC__ | |
15654 | # include <limits.h> | |
15655 | #else | |
15656 | # include <assert.h> | |
15657 | #endif | |
15658 | ||
15659 | #undef $ac_func | |
15660 | ||
b4e70030 | 15661 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
15662 | #ifdef __cplusplus |
15663 | extern "C" | |
b4e70030 | 15664 | { |
a3828db0 | 15665 | #endif |
b4e70030 JB |
15666 | /* We use char because int might match the return type of a gcc2 |
15667 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
15668 | char $ac_func (); |
15669 | /* The GNU C library defines this for functions which it implements | |
15670 | to always fail with ENOSYS. Some functions are actually named | |
15671 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 15672 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 15673 | choke me |
b4e70030 JB |
15674 | #else |
15675 | char (*f) () = $ac_func; | |
15676 | #endif | |
15677 | #ifdef __cplusplus | |
15678 | } | |
a3828db0 MK |
15679 | #endif |
15680 | ||
15681 | int | |
15682 | main () | |
15683 | { | |
b4e70030 | 15684 | return f != $ac_func; |
a3828db0 MK |
15685 | ; |
15686 | return 0; | |
15687 | } | |
15688 | _ACEOF | |
15689 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15691 | (eval $ac_link) 2>conftest.er1 | |
15692 | ac_status=$? | |
15693 | grep -v '^ *+' conftest.er1 >conftest.err | |
15694 | rm -f conftest.er1 | |
15695 | cat conftest.err >&5 | |
15696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15697 | (exit $ac_status); } && | |
b4e70030 JB |
15698 | { ac_try='test -z "$ac_c_werror_flag" |
15699 | || test ! -s conftest.err' | |
a3828db0 MK |
15700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15701 | (eval $ac_try) 2>&5 | |
15702 | ac_status=$? | |
15703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15704 | (exit $ac_status); }; } && | |
15705 | { ac_try='test -s conftest$ac_exeext' | |
15706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15707 | (eval $ac_try) 2>&5 | |
15708 | ac_status=$? | |
15709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15710 | (exit $ac_status); }; }; then | |
15711 | eval "$as_ac_var=yes" | |
15712 | else | |
15713 | echo "$as_me: failed program was:" >&5 | |
15714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15715 | ||
b4e70030 | 15716 | eval "$as_ac_var=no" |
a3828db0 MK |
15717 | fi |
15718 | rm -f conftest.err conftest.$ac_objext \ | |
15719 | conftest$ac_exeext conftest.$ac_ext | |
15720 | fi | |
b4e70030 JB |
15721 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
15722 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
15723 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
15724 | ||
15725 | cat >>confdefs.h <<_ACEOF | |
15726 | #define CRAY_STACKSEG_END $ac_func | |
15727 | _ACEOF | |
15728 | ||
15729 | break | |
15730 | fi | |
15731 | ||
15732 | done | |
15733 | fi | |
15734 | ||
b4e70030 JB |
15735 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
15736 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
a3828db0 MK |
15737 | if test "${ac_cv_c_stack_direction+set}" = set; then |
15738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15739 | else | |
15740 | if test "$cross_compiling" = yes; then | |
15741 | ac_cv_c_stack_direction=0 | |
15742 | else | |
15743 | cat >conftest.$ac_ext <<_ACEOF | |
15744 | /* confdefs.h. */ | |
15745 | _ACEOF | |
15746 | cat confdefs.h >>conftest.$ac_ext | |
15747 | cat >>conftest.$ac_ext <<_ACEOF | |
15748 | /* end confdefs.h. */ | |
15749 | int | |
15750 | find_stack_direction () | |
15751 | { | |
15752 | static char *addr = 0; | |
15753 | auto char dummy; | |
15754 | if (addr == 0) | |
15755 | { | |
15756 | addr = &dummy; | |
15757 | return find_stack_direction (); | |
15758 | } | |
15759 | else | |
15760 | return (&dummy > addr) ? 1 : -1; | |
15761 | } | |
15762 | ||
15763 | int | |
15764 | main () | |
15765 | { | |
b4e70030 | 15766 | exit (find_stack_direction () < 0); |
a3828db0 MK |
15767 | } |
15768 | _ACEOF | |
15769 | rm -f conftest$ac_exeext | |
15770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15771 | (eval $ac_link) 2>&5 | |
15772 | ac_status=$? | |
15773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15774 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15776 | (eval $ac_try) 2>&5 | |
15777 | ac_status=$? | |
15778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15779 | (exit $ac_status); }; }; then | |
15780 | ac_cv_c_stack_direction=1 | |
15781 | else | |
15782 | echo "$as_me: program exited with status $ac_status" >&5 | |
15783 | echo "$as_me: failed program was:" >&5 | |
15784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15785 | ||
15786 | ( exit $ac_status ) | |
15787 | ac_cv_c_stack_direction=-1 | |
15788 | fi | |
b4e70030 | 15789 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
15790 | fi |
15791 | fi | |
b4e70030 JB |
15792 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
15793 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
a3828db0 MK |
15794 | |
15795 | cat >>confdefs.h <<_ACEOF | |
15796 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
15797 | _ACEOF | |
15798 | ||
15799 | ||
15800 | fi | |
15801 | ||
15802 | ||
15803 | ||
15804 | for ac_header in stdlib.h unistd.h | |
15805 | do | |
15806 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
15807 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
15808 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
15809 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15810 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
15811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15812 | fi | |
b4e70030 JB |
15813 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15814 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 MK |
15815 | else |
15816 | # Is the header compilable? | |
b4e70030 JB |
15817 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
15818 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 MK |
15819 | cat >conftest.$ac_ext <<_ACEOF |
15820 | /* confdefs.h. */ | |
15821 | _ACEOF | |
15822 | cat confdefs.h >>conftest.$ac_ext | |
15823 | cat >>conftest.$ac_ext <<_ACEOF | |
15824 | /* end confdefs.h. */ | |
15825 | $ac_includes_default | |
15826 | #include <$ac_header> | |
15827 | _ACEOF | |
15828 | rm -f conftest.$ac_objext | |
15829 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15830 | (eval $ac_compile) 2>conftest.er1 | |
15831 | ac_status=$? | |
bec39cab AC |
15832 | grep -v '^ *+' conftest.er1 >conftest.err |
15833 | rm -f conftest.er1 | |
15834 | cat conftest.err >&5 | |
15835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15836 | (exit $ac_status); } && | |
b4e70030 JB |
15837 | { ac_try='test -z "$ac_c_werror_flag" |
15838 | || test ! -s conftest.err' | |
bec39cab AC |
15839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15840 | (eval $ac_try) 2>&5 | |
15841 | ac_status=$? | |
15842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15843 | (exit $ac_status); }; } && | |
15844 | { ac_try='test -s conftest.$ac_objext' | |
15845 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15846 | (eval $ac_try) 2>&5 | |
15847 | ac_status=$? | |
15848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15849 | (exit $ac_status); }; }; then | |
15850 | ac_header_compiler=yes | |
15851 | else | |
15852 | echo "$as_me: failed program was:" >&5 | |
15853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15854 | ||
b4e70030 | 15855 | ac_header_compiler=no |
bec39cab AC |
15856 | fi |
15857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
15858 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
15859 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
15860 | |
15861 | # Is the header present? | |
b4e70030 JB |
15862 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
15863 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
15864 | cat >conftest.$ac_ext <<_ACEOF |
15865 | /* confdefs.h. */ | |
15866 | _ACEOF | |
15867 | cat confdefs.h >>conftest.$ac_ext | |
15868 | cat >>conftest.$ac_ext <<_ACEOF | |
15869 | /* end confdefs.h. */ | |
15870 | #include <$ac_header> | |
15871 | _ACEOF | |
15872 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
15873 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
15874 | ac_status=$? | |
15875 | grep -v '^ *+' conftest.er1 >conftest.err | |
15876 | rm -f conftest.er1 | |
15877 | cat conftest.err >&5 | |
15878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15879 | (exit $ac_status); } >/dev/null; then | |
15880 | if test -s conftest.err; then | |
15881 | ac_cpp_err=$ac_c_preproc_warn_flag | |
15882 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
15883 | else | |
15884 | ac_cpp_err= | |
15885 | fi | |
15886 | else | |
15887 | ac_cpp_err=yes | |
15888 | fi | |
15889 | if test -z "$ac_cpp_err"; then | |
15890 | ac_header_preproc=yes | |
97bf5e38 | 15891 | else |
bec39cab AC |
15892 | echo "$as_me: failed program was:" >&5 |
15893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15894 | ||
15895 | ac_header_preproc=no | |
72473524 | 15896 | fi |
bec39cab | 15897 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
15898 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
15899 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 15900 | |
bec39cab AC |
15901 | # So? What about this header? |
15902 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
15903 | yes:no: ) | |
15904 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
15905 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
15906 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
15907 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
15908 | ac_header_preproc=yes | |
15909 | ;; | |
15910 | no:yes:* ) | |
15911 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
15912 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
15913 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
15914 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
15915 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
15916 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
15917 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
15918 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
15919 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
15920 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
15921 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
15922 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
15923 | ( |
15924 | cat <<\_ASBOX | |
15925 | ## ------------------------------------------ ## | |
15926 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
15927 | ## ------------------------------------------ ## | |
15928 | _ASBOX | |
15929 | ) | | |
15930 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
15931 | ;; |
15932 | esac | |
b4e70030 JB |
15933 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
15934 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
15935 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 15936 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 15937 | else |
bec39cab AC |
15938 | eval "$as_ac_Header=\$ac_header_preproc" |
15939 | fi | |
b4e70030 JB |
15940 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
15941 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
15942 | |
15943 | fi | |
15944 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15945 | cat >>confdefs.h <<_ACEOF | |
15946 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
15947 | _ACEOF | |
15948 | ||
15949 | fi | |
15950 | ||
15951 | done | |
15952 | ||
15953 | ||
a3828db0 | 15954 | for ac_func in getpagesize |
bec39cab AC |
15955 | do |
15956 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
15957 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
15958 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
15959 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
15960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15961 | else | |
15962 | cat >conftest.$ac_ext <<_ACEOF | |
15963 | /* confdefs.h. */ | |
15964 | _ACEOF | |
15965 | cat confdefs.h >>conftest.$ac_ext | |
15966 | cat >>conftest.$ac_ext <<_ACEOF | |
15967 | /* end confdefs.h. */ | |
15968 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
15969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
15970 | #define $ac_func innocuous_$ac_func | |
15971 | ||
97bf5e38 | 15972 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
15973 | which can conflict with char $ac_func (); below. |
15974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
15975 | <limits.h> exists even on freestanding compilers. */ | |
2b2d558c | 15976 | |
bec39cab AC |
15977 | #ifdef __STDC__ |
15978 | # include <limits.h> | |
15979 | #else | |
15980 | # include <assert.h> | |
15981 | #endif | |
97bf5e38 | 15982 | |
bec39cab AC |
15983 | #undef $ac_func |
15984 | ||
b4e70030 | 15985 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
15986 | #ifdef __cplusplus |
15987 | extern "C" | |
b4e70030 | 15988 | { |
bec39cab | 15989 | #endif |
b4e70030 JB |
15990 | /* We use char because int might match the return type of a gcc2 |
15991 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 15992 | char $ac_func (); |
97bf5e38 MK |
15993 | /* The GNU C library defines this for functions which it implements |
15994 | to always fail with ENOSYS. Some functions are actually named | |
15995 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 15996 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 15997 | choke me |
b4e70030 JB |
15998 | #else |
15999 | char (*f) () = $ac_func; | |
16000 | #endif | |
16001 | #ifdef __cplusplus | |
16002 | } | |
97bf5e38 MK |
16003 | #endif |
16004 | ||
bec39cab AC |
16005 | int |
16006 | main () | |
16007 | { | |
b4e70030 | 16008 | return f != $ac_func; |
bec39cab AC |
16009 | ; |
16010 | return 0; | |
16011 | } | |
16012 | _ACEOF | |
16013 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16015 | (eval $ac_link) 2>conftest.er1 | |
16016 | ac_status=$? | |
16017 | grep -v '^ *+' conftest.er1 >conftest.err | |
16018 | rm -f conftest.er1 | |
16019 | cat conftest.err >&5 | |
16020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16021 | (exit $ac_status); } && | |
b4e70030 JB |
16022 | { ac_try='test -z "$ac_c_werror_flag" |
16023 | || test ! -s conftest.err' | |
bec39cab AC |
16024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16025 | (eval $ac_try) 2>&5 | |
16026 | ac_status=$? | |
16027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16028 | (exit $ac_status); }; } && | |
16029 | { ac_try='test -s conftest$ac_exeext' | |
16030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16031 | (eval $ac_try) 2>&5 | |
16032 | ac_status=$? | |
16033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16034 | (exit $ac_status); }; }; then | |
16035 | eval "$as_ac_var=yes" | |
16036 | else | |
16037 | echo "$as_me: failed program was:" >&5 | |
16038 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16039 | ||
b4e70030 | 16040 | eval "$as_ac_var=no" |
bec39cab AC |
16041 | fi |
16042 | rm -f conftest.err conftest.$ac_objext \ | |
16043 | conftest$ac_exeext conftest.$ac_ext | |
16044 | fi | |
b4e70030 JB |
16045 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16046 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16047 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16048 | cat >>confdefs.h <<_ACEOF | |
16049 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16050 | _ACEOF | |
16051 | ||
2b2d558c | 16052 | fi |
bec39cab | 16053 | done |
2b2d558c | 16054 | |
b4e70030 JB |
16055 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
16056 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
a3828db0 | 16057 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
bec39cab | 16058 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 16059 | else |
bec39cab | 16060 | if test "$cross_compiling" = yes; then |
a3828db0 | 16061 | ac_cv_func_mmap_fixed_mapped=no |
bec39cab AC |
16062 | else |
16063 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 16064 | /* confdefs.h. */ |
bec39cab AC |
16065 | _ACEOF |
16066 | cat confdefs.h >>conftest.$ac_ext | |
16067 | cat >>conftest.$ac_ext <<_ACEOF | |
16068 | /* end confdefs.h. */ | |
a3828db0 MK |
16069 | $ac_includes_default |
16070 | /* malloc might have been renamed as rpl_malloc. */ | |
16071 | #undef malloc | |
bec39cab | 16072 | |
a3828db0 MK |
16073 | /* Thanks to Mike Haertel and Jim Avera for this test. |
16074 | Here is a matrix of mmap possibilities: | |
16075 | mmap private not fixed | |
16076 | mmap private fixed at somewhere currently unmapped | |
16077 | mmap private fixed at somewhere already mapped | |
16078 | mmap shared not fixed | |
16079 | mmap shared fixed at somewhere currently unmapped | |
16080 | mmap shared fixed at somewhere already mapped | |
16081 | For private mappings, we should verify that changes cannot be read() | |
16082 | back from the file, nor mmap's back from the file at a different | |
16083 | address. (There have been systems where private was not correctly | |
16084 | implemented like the infamous i386 svr4.0, and systems where the | |
16085 | VM page cache was not coherent with the file system buffer cache | |
16086 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
16087 | For shared mappings, we should conversely verify that changes get | |
16088 | propagated back to all the places they're supposed to be. | |
7dfa765c | 16089 | |
a3828db0 MK |
16090 | Grep wants private fixed already mapped. |
16091 | The main things grep needs to know about mmap are: | |
16092 | * does it exist and is it safe to write into the mmap'd area | |
16093 | * how to use it (BSD variants) */ | |
7dfa765c | 16094 | |
a3828db0 MK |
16095 | #include <fcntl.h> |
16096 | #include <sys/mman.h> | |
7dfa765c | 16097 | |
a3828db0 MK |
16098 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
16099 | char *malloc (); | |
16100 | #endif | |
7dfa765c | 16101 | |
a3828db0 MK |
16102 | /* This mess was copied from the GNU getpagesize.h. */ |
16103 | #if !HAVE_GETPAGESIZE | |
16104 | /* Assume that all systems that can run configure have sys/param.h. */ | |
16105 | # if !HAVE_SYS_PARAM_H | |
16106 | # define HAVE_SYS_PARAM_H 1 | |
16107 | # endif | |
64bb1671 | 16108 | |
a3828db0 MK |
16109 | # ifdef _SC_PAGESIZE |
16110 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
16111 | # else /* no _SC_PAGESIZE */ | |
16112 | # if HAVE_SYS_PARAM_H | |
16113 | # include <sys/param.h> | |
16114 | # ifdef EXEC_PAGESIZE | |
16115 | # define getpagesize() EXEC_PAGESIZE | |
16116 | # else /* no EXEC_PAGESIZE */ | |
16117 | # ifdef NBPG | |
16118 | # define getpagesize() NBPG * CLSIZE | |
16119 | # ifndef CLSIZE | |
16120 | # define CLSIZE 1 | |
16121 | # endif /* no CLSIZE */ | |
16122 | # else /* no NBPG */ | |
16123 | # ifdef NBPC | |
16124 | # define getpagesize() NBPC | |
16125 | # else /* no NBPC */ | |
16126 | # ifdef PAGESIZE | |
16127 | # define getpagesize() PAGESIZE | |
16128 | # endif /* PAGESIZE */ | |
16129 | # endif /* no NBPC */ | |
16130 | # endif /* no NBPG */ | |
16131 | # endif /* no EXEC_PAGESIZE */ | |
16132 | # else /* no HAVE_SYS_PARAM_H */ | |
16133 | # define getpagesize() 8192 /* punt totally */ | |
16134 | # endif /* no HAVE_SYS_PARAM_H */ | |
16135 | # endif /* no _SC_PAGESIZE */ | |
64bb1671 | 16136 | |
a3828db0 | 16137 | #endif /* no HAVE_GETPAGESIZE */ |
64bb1671 | 16138 | |
a3828db0 MK |
16139 | int |
16140 | main () | |
16141 | { | |
16142 | char *data, *data2, *data3; | |
16143 | int i, pagesize; | |
16144 | int fd; | |
97bf5e38 | 16145 | |
a3828db0 MK |
16146 | pagesize = getpagesize (); |
16147 | ||
16148 | /* First, make a file with some known garbage in it. */ | |
16149 | data = (char *) malloc (pagesize); | |
16150 | if (!data) | |
b4e70030 | 16151 | exit (1); |
a3828db0 MK |
16152 | for (i = 0; i < pagesize; ++i) |
16153 | *(data + i) = rand (); | |
16154 | umask (0); | |
16155 | fd = creat ("conftest.mmap", 0600); | |
16156 | if (fd < 0) | |
b4e70030 | 16157 | exit (1); |
a3828db0 | 16158 | if (write (fd, data, pagesize) != pagesize) |
b4e70030 | 16159 | exit (1); |
a3828db0 MK |
16160 | close (fd); |
16161 | ||
16162 | /* Next, try to mmap the file at a fixed address which already has | |
16163 | something else allocated at it. If we can, also make sure that | |
16164 | we see the same garbage. */ | |
16165 | fd = open ("conftest.mmap", O_RDWR); | |
16166 | if (fd < 0) | |
b4e70030 | 16167 | exit (1); |
a3828db0 MK |
16168 | data2 = (char *) malloc (2 * pagesize); |
16169 | if (!data2) | |
b4e70030 JB |
16170 | exit (1); |
16171 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
a3828db0 MK |
16172 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
16173 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
b4e70030 | 16174 | exit (1); |
a3828db0 MK |
16175 | for (i = 0; i < pagesize; ++i) |
16176 | if (*(data + i) != *(data2 + i)) | |
b4e70030 | 16177 | exit (1); |
a3828db0 MK |
16178 | |
16179 | /* Finally, make sure that changes to the mapped area do not | |
16180 | percolate back to the file as seen by read(). (This is a bug on | |
16181 | some variants of i386 svr4.0.) */ | |
16182 | for (i = 0; i < pagesize; ++i) | |
16183 | *(data2 + i) = *(data2 + i) + 1; | |
16184 | data3 = (char *) malloc (pagesize); | |
16185 | if (!data3) | |
b4e70030 | 16186 | exit (1); |
a3828db0 | 16187 | if (read (fd, data3, pagesize) != pagesize) |
b4e70030 | 16188 | exit (1); |
a3828db0 MK |
16189 | for (i = 0; i < pagesize; ++i) |
16190 | if (*(data + i) != *(data3 + i)) | |
b4e70030 | 16191 | exit (1); |
a3828db0 | 16192 | close (fd); |
b4e70030 | 16193 | exit (0); |
97bf5e38 | 16194 | } |
bec39cab AC |
16195 | _ACEOF |
16196 | rm -f conftest$ac_exeext | |
16197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16198 | (eval $ac_link) 2>&5 | |
16199 | ac_status=$? | |
16200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16201 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16203 | (eval $ac_try) 2>&5 | |
16204 | ac_status=$? | |
16205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16206 | (exit $ac_status); }; }; then | |
a3828db0 | 16207 | ac_cv_func_mmap_fixed_mapped=yes |
5c44784c | 16208 | else |
bec39cab AC |
16209 | echo "$as_me: program exited with status $ac_status" >&5 |
16210 | echo "$as_me: failed program was:" >&5 | |
16211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16212 | ||
16213 | ( exit $ac_status ) | |
a3828db0 | 16214 | ac_cv_func_mmap_fixed_mapped=no |
0afdd437 | 16215 | fi |
b4e70030 | 16216 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bec39cab | 16217 | fi |
a3828db0 | 16218 | fi |
b4e70030 JB |
16219 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
16220 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
a3828db0 | 16221 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
bec39cab AC |
16222 | |
16223 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 16224 | #define HAVE_MMAP 1 |
bec39cab | 16225 | _ACEOF |
0afdd437 MK |
16226 | |
16227 | fi | |
a3828db0 | 16228 | rm -f conftest.mmap |
0afdd437 | 16229 | |
b4e70030 JB |
16230 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
16231 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
a3828db0 | 16232 | if test "${ac_cv_type_pid_t+set}" = set; then |
bec39cab AC |
16233 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16234 | else | |
16235 | cat >conftest.$ac_ext <<_ACEOF | |
16236 | /* confdefs.h. */ | |
16237 | _ACEOF | |
16238 | cat confdefs.h >>conftest.$ac_ext | |
16239 | cat >>conftest.$ac_ext <<_ACEOF | |
16240 | /* end confdefs.h. */ | |
a3828db0 | 16241 | $ac_includes_default |
bec39cab AC |
16242 | int |
16243 | main () | |
16244 | { | |
b4e70030 | 16245 | if ((pid_t *) 0) |
a3828db0 | 16246 | return 0; |
b4e70030 | 16247 | if (sizeof (pid_t)) |
a3828db0 | 16248 | return 0; |
bec39cab AC |
16249 | ; |
16250 | return 0; | |
16251 | } | |
16252 | _ACEOF | |
a3828db0 MK |
16253 | rm -f conftest.$ac_objext |
16254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16255 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
16256 | ac_status=$? |
16257 | grep -v '^ *+' conftest.er1 >conftest.err | |
16258 | rm -f conftest.er1 | |
16259 | cat conftest.err >&5 | |
16260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16261 | (exit $ac_status); } && | |
b4e70030 JB |
16262 | { ac_try='test -z "$ac_c_werror_flag" |
16263 | || test ! -s conftest.err' | |
bec39cab AC |
16264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16265 | (eval $ac_try) 2>&5 | |
16266 | ac_status=$? | |
16267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16268 | (exit $ac_status); }; } && | |
a3828db0 | 16269 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
16270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16271 | (eval $ac_try) 2>&5 | |
16272 | ac_status=$? | |
16273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16274 | (exit $ac_status); }; }; then | |
a3828db0 | 16275 | ac_cv_type_pid_t=yes |
bec39cab AC |
16276 | else |
16277 | echo "$as_me: failed program was:" >&5 | |
16278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16279 | ||
b4e70030 | 16280 | ac_cv_type_pid_t=no |
bec39cab | 16281 | fi |
a3828db0 | 16282 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 16283 | fi |
b4e70030 JB |
16284 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
16285 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
a3828db0 MK |
16286 | if test $ac_cv_type_pid_t = yes; then |
16287 | : | |
16288 | else | |
16289 | ||
16290 | cat >>confdefs.h <<_ACEOF | |
16291 | #define pid_t int | |
bec39cab | 16292 | _ACEOF |
7e89e357 | 16293 | |
7e89e357 JT |
16294 | fi |
16295 | ||
bec39cab | 16296 | |
b4e70030 JB |
16297 | |
16298 | for ac_header in unistd.h vfork.h | |
7be570e7 | 16299 | do |
a3828db0 | 16300 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
16301 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16302 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16303 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16304 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 16305 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 | 16306 | fi |
b4e70030 JB |
16307 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
16308 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 16309 | else |
a3828db0 | 16310 | # Is the header compilable? |
b4e70030 JB |
16311 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16312 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 | 16313 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
16314 | /* confdefs.h. */ |
16315 | _ACEOF | |
16316 | cat confdefs.h >>conftest.$ac_ext | |
16317 | cat >>conftest.$ac_ext <<_ACEOF | |
16318 | /* end confdefs.h. */ | |
a3828db0 MK |
16319 | $ac_includes_default |
16320 | #include <$ac_header> | |
bec39cab | 16321 | _ACEOF |
a3828db0 MK |
16322 | rm -f conftest.$ac_objext |
16323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16324 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
16325 | ac_status=$? |
16326 | grep -v '^ *+' conftest.er1 >conftest.err | |
16327 | rm -f conftest.er1 | |
16328 | cat conftest.err >&5 | |
16329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16330 | (exit $ac_status); } && | |
b4e70030 JB |
16331 | { ac_try='test -z "$ac_c_werror_flag" |
16332 | || test ! -s conftest.err' | |
bec39cab AC |
16333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16334 | (eval $ac_try) 2>&5 | |
16335 | ac_status=$? | |
16336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16337 | (exit $ac_status); }; } && | |
a3828db0 | 16338 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
16339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16340 | (eval $ac_try) 2>&5 | |
16341 | ac_status=$? | |
16342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16343 | (exit $ac_status); }; }; then | |
a3828db0 | 16344 | ac_header_compiler=yes |
bec39cab AC |
16345 | else |
16346 | echo "$as_me: failed program was:" >&5 | |
16347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16348 | ||
b4e70030 | 16349 | ac_header_compiler=no |
bec39cab | 16350 | fi |
a3828db0 | 16351 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b4e70030 JB |
16352 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16353 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
a3828db0 MK |
16354 | |
16355 | # Is the header present? | |
b4e70030 JB |
16356 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16357 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
a3828db0 MK |
16358 | cat >conftest.$ac_ext <<_ACEOF |
16359 | /* confdefs.h. */ | |
16360 | _ACEOF | |
16361 | cat confdefs.h >>conftest.$ac_ext | |
16362 | cat >>conftest.$ac_ext <<_ACEOF | |
16363 | /* end confdefs.h. */ | |
16364 | #include <$ac_header> | |
16365 | _ACEOF | |
16366 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16367 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16368 | ac_status=$? | |
16369 | grep -v '^ *+' conftest.er1 >conftest.err | |
16370 | rm -f conftest.er1 | |
16371 | cat conftest.err >&5 | |
16372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16373 | (exit $ac_status); } >/dev/null; then | |
16374 | if test -s conftest.err; then | |
16375 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16376 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
16377 | else | |
16378 | ac_cpp_err= | |
16379 | fi | |
16380 | else | |
16381 | ac_cpp_err=yes | |
16382 | fi | |
16383 | if test -z "$ac_cpp_err"; then | |
16384 | ac_header_preproc=yes | |
16385 | else | |
16386 | echo "$as_me: failed program was:" >&5 | |
16387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16388 | ||
16389 | ac_header_preproc=no | |
16390 | fi | |
16391 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
16392 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16393 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
a3828db0 MK |
16394 | |
16395 | # So? What about this header? | |
16396 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16397 | yes:no: ) | |
16398 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16399 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16400 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16401 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16402 | ac_header_preproc=yes | |
16403 | ;; | |
16404 | no:yes:* ) | |
16405 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16406 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16407 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16408 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16409 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16410 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16411 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16412 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16413 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16414 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16415 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16416 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
16417 | ( |
16418 | cat <<\_ASBOX | |
16419 | ## ------------------------------------------ ## | |
16420 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
16421 | ## ------------------------------------------ ## | |
16422 | _ASBOX | |
16423 | ) | | |
16424 | sed "s/^/$as_me: WARNING: /" >&2 | |
a3828db0 MK |
16425 | ;; |
16426 | esac | |
b4e70030 JB |
16427 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16428 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16429 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
16430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16431 | else | |
16432 | eval "$as_ac_Header=\$ac_header_preproc" | |
16433 | fi | |
b4e70030 JB |
16434 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
16435 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 | 16436 | |
bec39cab | 16437 | fi |
a3828db0 | 16438 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
bec39cab | 16439 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 16440 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
bec39cab | 16441 | _ACEOF |
14abd0fb | 16442 | |
14abd0fb | 16443 | fi |
a3828db0 | 16444 | |
14abd0fb MK |
16445 | done |
16446 | ||
bec39cab | 16447 | |
a3828db0 MK |
16448 | |
16449 | for ac_func in fork vfork | |
14abd0fb | 16450 | do |
bec39cab | 16451 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
16452 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16453 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16454 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16456 | else | |
16457 | cat >conftest.$ac_ext <<_ACEOF | |
16458 | /* confdefs.h. */ | |
16459 | _ACEOF | |
16460 | cat confdefs.h >>conftest.$ac_ext | |
16461 | cat >>conftest.$ac_ext <<_ACEOF | |
16462 | /* end confdefs.h. */ | |
16463 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16464 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16465 | #define $ac_func innocuous_$ac_func | |
16466 | ||
14abd0fb | 16467 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16468 | which can conflict with char $ac_func (); below. |
16469 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16470 | <limits.h> exists even on freestanding compilers. */ | |
16471 | ||
16472 | #ifdef __STDC__ | |
16473 | # include <limits.h> | |
16474 | #else | |
16475 | # include <assert.h> | |
16476 | #endif | |
14abd0fb | 16477 | |
bec39cab | 16478 | #undef $ac_func |
14abd0fb | 16479 | |
b4e70030 | 16480 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16481 | #ifdef __cplusplus |
16482 | extern "C" | |
b4e70030 | 16483 | { |
bec39cab | 16484 | #endif |
b4e70030 JB |
16485 | /* We use char because int might match the return type of a gcc2 |
16486 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16487 | char $ac_func (); |
14abd0fb MK |
16488 | /* The GNU C library defines this for functions which it implements |
16489 | to always fail with ENOSYS. Some functions are actually named | |
16490 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16491 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
14abd0fb | 16492 | choke me |
b4e70030 JB |
16493 | #else |
16494 | char (*f) () = $ac_func; | |
16495 | #endif | |
16496 | #ifdef __cplusplus | |
16497 | } | |
14abd0fb MK |
16498 | #endif |
16499 | ||
bec39cab AC |
16500 | int |
16501 | main () | |
16502 | { | |
b4e70030 | 16503 | return f != $ac_func; |
bec39cab AC |
16504 | ; |
16505 | return 0; | |
16506 | } | |
16507 | _ACEOF | |
16508 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16509 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16510 | (eval $ac_link) 2>conftest.er1 | |
16511 | ac_status=$? | |
16512 | grep -v '^ *+' conftest.er1 >conftest.err | |
16513 | rm -f conftest.er1 | |
16514 | cat conftest.err >&5 | |
16515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16516 | (exit $ac_status); } && | |
b4e70030 JB |
16517 | { ac_try='test -z "$ac_c_werror_flag" |
16518 | || test ! -s conftest.err' | |
bec39cab AC |
16519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16520 | (eval $ac_try) 2>&5 | |
16521 | ac_status=$? | |
16522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16523 | (exit $ac_status); }; } && | |
16524 | { ac_try='test -s conftest$ac_exeext' | |
16525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16526 | (eval $ac_try) 2>&5 | |
16527 | ac_status=$? | |
16528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16529 | (exit $ac_status); }; }; then | |
16530 | eval "$as_ac_var=yes" | |
16531 | else | |
16532 | echo "$as_me: failed program was:" >&5 | |
16533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16534 | ||
b4e70030 | 16535 | eval "$as_ac_var=no" |
bec39cab AC |
16536 | fi |
16537 | rm -f conftest.err conftest.$ac_objext \ | |
16538 | conftest$ac_exeext conftest.$ac_ext | |
16539 | fi | |
b4e70030 JB |
16540 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16541 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16542 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16543 | cat >>confdefs.h <<_ACEOF | |
16544 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16545 | _ACEOF | |
7be570e7 | 16546 | |
7be570e7 JM |
16547 | fi |
16548 | done | |
16549 | ||
a3828db0 | 16550 | if test "x$ac_cv_func_fork" = xyes; then |
b4e70030 JB |
16551 | echo "$as_me:$LINENO: checking for working fork" >&5 |
16552 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
a3828db0 MK |
16553 | if test "${ac_cv_func_fork_works+set}" = set; then |
16554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16555 | else | |
16556 | if test "$cross_compiling" = yes; then | |
16557 | ac_cv_func_fork_works=cross | |
16558 | else | |
16559 | cat >conftest.$ac_ext <<_ACEOF | |
b4e70030 JB |
16560 | /* By Ruediger Kuhlmann. */ |
16561 | #include <sys/types.h> | |
16562 | #if HAVE_UNISTD_H | |
16563 | # include <unistd.h> | |
16564 | #endif | |
16565 | /* Some systems only have a dummy stub for fork() */ | |
16566 | int main () | |
16567 | { | |
16568 | if (fork() < 0) | |
16569 | exit (1); | |
16570 | exit (0); | |
16571 | } | |
a3828db0 MK |
16572 | _ACEOF |
16573 | rm -f conftest$ac_exeext | |
16574 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16575 | (eval $ac_link) 2>&5 | |
16576 | ac_status=$? | |
16577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16578 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16580 | (eval $ac_try) 2>&5 | |
16581 | ac_status=$? | |
16582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16583 | (exit $ac_status); }; }; then | |
16584 | ac_cv_func_fork_works=yes | |
16585 | else | |
16586 | echo "$as_me: program exited with status $ac_status" >&5 | |
16587 | echo "$as_me: failed program was:" >&5 | |
16588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 16589 | |
a3828db0 MK |
16590 | ( exit $ac_status ) |
16591 | ac_cv_func_fork_works=no | |
16592 | fi | |
b4e70030 | 16593 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16594 | fi |
16595 | fi | |
b4e70030 JB |
16596 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
16597 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
a3828db0 MK |
16598 | |
16599 | else | |
16600 | ac_cv_func_fork_works=$ac_cv_func_fork | |
16601 | fi | |
16602 | if test "x$ac_cv_func_fork_works" = xcross; then | |
16603 | case $host in | |
16604 | *-*-amigaos* | *-*-msdosdjgpp*) | |
16605 | # Override, as these systems have only a dummy fork() stub | |
16606 | ac_cv_func_fork_works=no | |
16607 | ;; | |
16608 | *) | |
16609 | ac_cv_func_fork_works=yes | |
16610 | ;; | |
16611 | esac | |
16612 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
16613 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
16614 | fi | |
16615 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
16616 | if test "x$ac_cv_func_vfork" = xyes; then | |
b4e70030 JB |
16617 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
16618 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
a3828db0 | 16619 | if test "${ac_cv_func_vfork_works+set}" = set; then |
bec39cab | 16620 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
16621 | else |
16622 | if test "$cross_compiling" = yes; then | |
16623 | ac_cv_func_vfork_works=cross | |
bec39cab AC |
16624 | else |
16625 | cat >conftest.$ac_ext <<_ACEOF | |
16626 | /* confdefs.h. */ | |
16627 | _ACEOF | |
16628 | cat confdefs.h >>conftest.$ac_ext | |
16629 | cat >>conftest.$ac_ext <<_ACEOF | |
16630 | /* end confdefs.h. */ | |
a3828db0 | 16631 | /* Thanks to Paul Eggert for this test. */ |
b4e70030 JB |
16632 | #include <stdio.h> |
16633 | #include <stdlib.h> | |
16634 | #include <sys/types.h> | |
16635 | #include <sys/stat.h> | |
a3828db0 | 16636 | #include <sys/wait.h> |
b4e70030 JB |
16637 | #if HAVE_UNISTD_H |
16638 | # include <unistd.h> | |
16639 | #endif | |
a3828db0 MK |
16640 | #if HAVE_VFORK_H |
16641 | # include <vfork.h> | |
bec39cab | 16642 | #endif |
a3828db0 MK |
16643 | /* On some sparc systems, changes by the child to local and incoming |
16644 | argument registers are propagated back to the parent. The compiler | |
16645 | is told about this with #include <vfork.h>, but some compilers | |
16646 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
16647 | static variable whose address is put into a register that is | |
16648 | clobbered by the vfork. */ | |
16649 | static void | |
bec39cab | 16650 | #ifdef __cplusplus |
a3828db0 MK |
16651 | sparc_address_test (int arg) |
16652 | # else | |
16653 | sparc_address_test (arg) int arg; | |
c906108c | 16654 | #endif |
a3828db0 MK |
16655 | { |
16656 | static pid_t child; | |
16657 | if (!child) { | |
16658 | child = vfork (); | |
16659 | if (child < 0) { | |
16660 | perror ("vfork"); | |
16661 | _exit(2); | |
16662 | } | |
16663 | if (!child) { | |
16664 | arg = getpid(); | |
16665 | write(-1, "", 0); | |
16666 | _exit (arg); | |
16667 | } | |
16668 | } | |
16669 | } | |
97bf5e38 | 16670 | |
bec39cab AC |
16671 | int |
16672 | main () | |
16673 | { | |
a3828db0 MK |
16674 | pid_t parent = getpid (); |
16675 | pid_t child; | |
16676 | ||
16677 | sparc_address_test (0); | |
16678 | ||
16679 | child = vfork (); | |
16680 | ||
16681 | if (child == 0) { | |
16682 | /* Here is another test for sparc vfork register problems. This | |
16683 | test uses lots of local variables, at least as many local | |
16684 | variables as main has allocated so far including compiler | |
16685 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
16686 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
16687 | reuse the register of parent for one of the local variables, | |
16688 | since it will think that parent can't possibly be used any more | |
16689 | in this routine. Assigning to the local variable will thus | |
16690 | munge parent in the parent process. */ | |
16691 | pid_t | |
16692 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
16693 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
16694 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
16695 | use the same hardware register for all 8 local variables. */ | |
16696 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
16697 | || p != p5 || p != p6 || p != p7) | |
16698 | _exit(1); | |
16699 | ||
16700 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
16701 | from child file descriptors. If the child closes a descriptor | |
16702 | before it execs or exits, this munges the parent's descriptor | |
16703 | as well. Test for this by closing stdout in the child. */ | |
16704 | _exit(close(fileno(stdout)) != 0); | |
16705 | } else { | |
16706 | int status; | |
16707 | struct stat st; | |
16708 | ||
16709 | while (wait(&status) != child) | |
16710 | ; | |
b4e70030 | 16711 | exit( |
a3828db0 MK |
16712 | /* Was there some problem with vforking? */ |
16713 | child < 0 | |
16714 | ||
16715 | /* Did the child fail? (This shouldn't happen.) */ | |
16716 | || status | |
16717 | ||
16718 | /* Did the vfork/compiler bug occur? */ | |
16719 | || parent != getpid() | |
16720 | ||
16721 | /* Did the file descriptor bug occur? */ | |
16722 | || fstat(fileno(stdout), &st) != 0 | |
16723 | ); | |
16724 | } | |
bec39cab AC |
16725 | } |
16726 | _ACEOF | |
a3828db0 | 16727 | rm -f conftest$ac_exeext |
bec39cab | 16728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 16729 | (eval $ac_link) 2>&5 |
bec39cab AC |
16730 | ac_status=$? |
16731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 16732 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
16733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16734 | (eval $ac_try) 2>&5 | |
16735 | ac_status=$? | |
16736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16737 | (exit $ac_status); }; }; then | |
a3828db0 MK |
16738 | ac_cv_func_vfork_works=yes |
16739 | else | |
16740 | echo "$as_me: program exited with status $ac_status" >&5 | |
16741 | echo "$as_me: failed program was:" >&5 | |
16742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16743 | ||
16744 | ( exit $ac_status ) | |
16745 | ac_cv_func_vfork_works=no | |
16746 | fi | |
b4e70030 | 16747 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16748 | fi |
16749 | fi | |
b4e70030 JB |
16750 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
16751 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
a3828db0 MK |
16752 | |
16753 | fi; | |
16754 | if test "x$ac_cv_func_fork_works" = xcross; then | |
16755 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
16756 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
16757 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
16758 | fi | |
16759 | ||
16760 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
16761 | ||
16762 | cat >>confdefs.h <<\_ACEOF | |
16763 | #define HAVE_WORKING_VFORK 1 | |
16764 | _ACEOF | |
16765 | ||
bec39cab | 16766 | else |
bec39cab | 16767 | |
a3828db0 MK |
16768 | cat >>confdefs.h <<\_ACEOF |
16769 | #define vfork fork | |
16770 | _ACEOF | |
16771 | ||
bec39cab | 16772 | fi |
a3828db0 MK |
16773 | if test "x$ac_cv_func_fork_works" = xyes; then |
16774 | ||
16775 | cat >>confdefs.h <<\_ACEOF | |
16776 | #define HAVE_WORKING_FORK 1 | |
bec39cab | 16777 | _ACEOF |
c906108c | 16778 | |
c906108c SS |
16779 | fi |
16780 | ||
bec39cab AC |
16781 | |
16782 | ||
a3828db0 | 16783 | for ac_func in canonicalize_file_name realpath |
97bf5e38 | 16784 | do |
bec39cab | 16785 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 | 16786 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7eb368b3 NR |
16787 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16788 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16790 | else | |
16791 | cat >conftest.$ac_ext <<_ACEOF | |
16792 | /* confdefs.h. */ | |
16793 | _ACEOF | |
16794 | cat confdefs.h >>conftest.$ac_ext | |
16795 | cat >>conftest.$ac_ext <<_ACEOF | |
16796 | /* end confdefs.h. */ | |
16797 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16798 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16799 | #define $ac_func innocuous_$ac_func | |
16800 | ||
16801 | /* System header to define __stub macros and hopefully few prototypes, | |
16802 | which can conflict with char $ac_func (); below. | |
16803 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16804 | <limits.h> exists even on freestanding compilers. */ | |
16805 | ||
16806 | #ifdef __STDC__ | |
16807 | # include <limits.h> | |
16808 | #else | |
16809 | # include <assert.h> | |
16810 | #endif | |
16811 | ||
16812 | #undef $ac_func | |
16813 | ||
16814 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16815 | #ifdef __cplusplus | |
16816 | extern "C" | |
16817 | { | |
16818 | #endif | |
16819 | /* We use char because int might match the return type of a gcc2 | |
16820 | builtin and then its argument prototype would still apply. */ | |
16821 | char $ac_func (); | |
16822 | /* The GNU C library defines this for functions which it implements | |
16823 | to always fail with ENOSYS. Some functions are actually named | |
16824 | something starting with __ and the normal name is an alias. */ | |
16825 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16826 | choke me | |
16827 | #else | |
16828 | char (*f) () = $ac_func; | |
16829 | #endif | |
16830 | #ifdef __cplusplus | |
16831 | } | |
16832 | #endif | |
16833 | ||
16834 | int | |
16835 | main () | |
16836 | { | |
16837 | return f != $ac_func; | |
16838 | ; | |
16839 | return 0; | |
16840 | } | |
16841 | _ACEOF | |
16842 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16844 | (eval $ac_link) 2>conftest.er1 | |
16845 | ac_status=$? | |
16846 | grep -v '^ *+' conftest.er1 >conftest.err | |
16847 | rm -f conftest.er1 | |
16848 | cat conftest.err >&5 | |
16849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16850 | (exit $ac_status); } && | |
16851 | { ac_try='test -z "$ac_c_werror_flag" | |
16852 | || test ! -s conftest.err' | |
16853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16854 | (eval $ac_try) 2>&5 | |
16855 | ac_status=$? | |
16856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16857 | (exit $ac_status); }; } && | |
16858 | { ac_try='test -s conftest$ac_exeext' | |
16859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16860 | (eval $ac_try) 2>&5 | |
16861 | ac_status=$? | |
16862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16863 | (exit $ac_status); }; }; then | |
16864 | eval "$as_ac_var=yes" | |
16865 | else | |
16866 | echo "$as_me: failed program was:" >&5 | |
16867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16868 | ||
16869 | eval "$as_ac_var=no" | |
16870 | fi | |
16871 | rm -f conftest.err conftest.$ac_objext \ | |
16872 | conftest$ac_exeext conftest.$ac_ext | |
16873 | fi | |
16874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16875 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16876 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16877 | cat >>confdefs.h <<_ACEOF | |
16878 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16879 | _ACEOF | |
16880 | ||
16881 | fi | |
16882 | done | |
16883 | ||
16884 | ||
16885 | for ac_func in getrusage | |
16886 | do | |
16887 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
16888 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
b4e70030 JB |
16889 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
16890 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16891 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16892 | else | |
16893 | cat >conftest.$ac_ext <<_ACEOF | |
16894 | /* confdefs.h. */ | |
16895 | _ACEOF | |
16896 | cat confdefs.h >>conftest.$ac_ext | |
16897 | cat >>conftest.$ac_ext <<_ACEOF | |
16898 | /* end confdefs.h. */ | |
16899 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16900 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16901 | #define $ac_func innocuous_$ac_func | |
16902 | ||
d3ea6809 MM |
16903 | /* System header to define __stub macros and hopefully few prototypes, |
16904 | which can conflict with char $ac_func (); below. | |
16905 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16906 | <limits.h> exists even on freestanding compilers. */ | |
16907 | ||
16908 | #ifdef __STDC__ | |
16909 | # include <limits.h> | |
16910 | #else | |
16911 | # include <assert.h> | |
16912 | #endif | |
16913 | ||
16914 | #undef $ac_func | |
16915 | ||
b4e70030 | 16916 | /* Override any gcc2 internal prototype to avoid an error. */ |
d3ea6809 MM |
16917 | #ifdef __cplusplus |
16918 | extern "C" | |
b4e70030 | 16919 | { |
d3ea6809 | 16920 | #endif |
b4e70030 JB |
16921 | /* We use char because int might match the return type of a gcc2 |
16922 | builtin and then its argument prototype would still apply. */ | |
d3ea6809 MM |
16923 | char $ac_func (); |
16924 | /* The GNU C library defines this for functions which it implements | |
16925 | to always fail with ENOSYS. Some functions are actually named | |
16926 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16927 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
d3ea6809 | 16928 | choke me |
b4e70030 JB |
16929 | #else |
16930 | char (*f) () = $ac_func; | |
16931 | #endif | |
16932 | #ifdef __cplusplus | |
16933 | } | |
d3ea6809 MM |
16934 | #endif |
16935 | ||
16936 | int | |
16937 | main () | |
16938 | { | |
b4e70030 | 16939 | return f != $ac_func; |
d3ea6809 MM |
16940 | ; |
16941 | return 0; | |
16942 | } | |
16943 | _ACEOF | |
16944 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16946 | (eval $ac_link) 2>conftest.er1 | |
16947 | ac_status=$? | |
16948 | grep -v '^ *+' conftest.er1 >conftest.err | |
16949 | rm -f conftest.er1 | |
16950 | cat conftest.err >&5 | |
16951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16952 | (exit $ac_status); } && | |
b4e70030 JB |
16953 | { ac_try='test -z "$ac_c_werror_flag" |
16954 | || test ! -s conftest.err' | |
d3ea6809 MM |
16955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16956 | (eval $ac_try) 2>&5 | |
16957 | ac_status=$? | |
16958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16959 | (exit $ac_status); }; } && | |
16960 | { ac_try='test -s conftest$ac_exeext' | |
16961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16962 | (eval $ac_try) 2>&5 | |
16963 | ac_status=$? | |
16964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16965 | (exit $ac_status); }; }; then | |
16966 | eval "$as_ac_var=yes" | |
16967 | else | |
16968 | echo "$as_me: failed program was:" >&5 | |
16969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16970 | ||
b4e70030 | 16971 | eval "$as_ac_var=no" |
d3ea6809 MM |
16972 | fi |
16973 | rm -f conftest.err conftest.$ac_objext \ | |
16974 | conftest$ac_exeext conftest.$ac_ext | |
16975 | fi | |
b4e70030 JB |
16976 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16977 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
d3ea6809 MM |
16978 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16979 | cat >>confdefs.h <<_ACEOF | |
16980 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16981 | _ACEOF | |
16982 | ||
16983 | fi | |
16984 | done | |
16985 | ||
16986 | ||
16987 | ||
16988 | for ac_func in getuid getgid | |
16989 | do | |
16990 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
16991 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16992 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16993 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
d3ea6809 MM |
16994 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16995 | else | |
16996 | cat >conftest.$ac_ext <<_ACEOF | |
16997 | /* confdefs.h. */ | |
16998 | _ACEOF | |
16999 | cat confdefs.h >>conftest.$ac_ext | |
17000 | cat >>conftest.$ac_ext <<_ACEOF | |
17001 | /* end confdefs.h. */ | |
17002 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17003 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17004 | #define $ac_func innocuous_$ac_func | |
17005 | ||
97bf5e38 | 17006 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17007 | which can conflict with char $ac_func (); below. |
17008 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17009 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 17010 | |
bec39cab AC |
17011 | #ifdef __STDC__ |
17012 | # include <limits.h> | |
17013 | #else | |
17014 | # include <assert.h> | |
17015 | #endif | |
97bf5e38 | 17016 | |
bec39cab AC |
17017 | #undef $ac_func |
17018 | ||
b4e70030 | 17019 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17020 | #ifdef __cplusplus |
17021 | extern "C" | |
b4e70030 | 17022 | { |
bec39cab | 17023 | #endif |
b4e70030 JB |
17024 | /* We use char because int might match the return type of a gcc2 |
17025 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17026 | char $ac_func (); |
97bf5e38 MK |
17027 | /* The GNU C library defines this for functions which it implements |
17028 | to always fail with ENOSYS. Some functions are actually named | |
17029 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17030 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 17031 | choke me |
b4e70030 JB |
17032 | #else |
17033 | char (*f) () = $ac_func; | |
17034 | #endif | |
17035 | #ifdef __cplusplus | |
17036 | } | |
c906108c | 17037 | #endif |
97bf5e38 | 17038 | |
bec39cab AC |
17039 | int |
17040 | main () | |
17041 | { | |
b4e70030 | 17042 | return f != $ac_func; |
bec39cab AC |
17043 | ; |
17044 | return 0; | |
17045 | } | |
17046 | _ACEOF | |
17047 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17049 | (eval $ac_link) 2>conftest.er1 | |
17050 | ac_status=$? | |
17051 | grep -v '^ *+' conftest.er1 >conftest.err | |
17052 | rm -f conftest.er1 | |
17053 | cat conftest.err >&5 | |
17054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17055 | (exit $ac_status); } && | |
b4e70030 JB |
17056 | { ac_try='test -z "$ac_c_werror_flag" |
17057 | || test ! -s conftest.err' | |
bec39cab AC |
17058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17059 | (eval $ac_try) 2>&5 | |
17060 | ac_status=$? | |
17061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17062 | (exit $ac_status); }; } && | |
17063 | { ac_try='test -s conftest$ac_exeext' | |
17064 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17065 | (eval $ac_try) 2>&5 | |
17066 | ac_status=$? | |
17067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17068 | (exit $ac_status); }; }; then | |
17069 | eval "$as_ac_var=yes" | |
17070 | else | |
17071 | echo "$as_me: failed program was:" >&5 | |
17072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17073 | ||
b4e70030 | 17074 | eval "$as_ac_var=no" |
bec39cab AC |
17075 | fi |
17076 | rm -f conftest.err conftest.$ac_objext \ | |
17077 | conftest$ac_exeext conftest.$ac_ext | |
17078 | fi | |
b4e70030 JB |
17079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17080 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17081 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17082 | cat >>confdefs.h <<_ACEOF | |
17083 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17084 | _ACEOF | |
c906108c | 17085 | |
c906108c | 17086 | fi |
97bf5e38 | 17087 | done |
c906108c | 17088 | |
bec39cab | 17089 | |
a3828db0 | 17090 | for ac_func in poll |
97bf5e38 | 17091 | do |
bec39cab | 17092 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17093 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17094 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17095 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17096 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17097 | else | |
17098 | cat >conftest.$ac_ext <<_ACEOF | |
17099 | /* confdefs.h. */ | |
17100 | _ACEOF | |
17101 | cat confdefs.h >>conftest.$ac_ext | |
17102 | cat >>conftest.$ac_ext <<_ACEOF | |
17103 | /* end confdefs.h. */ | |
17104 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17105 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17106 | #define $ac_func innocuous_$ac_func | |
17107 | ||
97bf5e38 | 17108 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17109 | which can conflict with char $ac_func (); below. |
17110 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17111 | <limits.h> exists even on freestanding compilers. */ | |
17112 | ||
17113 | #ifdef __STDC__ | |
17114 | # include <limits.h> | |
17115 | #else | |
17116 | # include <assert.h> | |
17117 | #endif | |
c906108c | 17118 | |
bec39cab | 17119 | #undef $ac_func |
97bf5e38 | 17120 | |
b4e70030 | 17121 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17122 | #ifdef __cplusplus |
17123 | extern "C" | |
b4e70030 | 17124 | { |
bec39cab | 17125 | #endif |
b4e70030 JB |
17126 | /* We use char because int might match the return type of a gcc2 |
17127 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17128 | char $ac_func (); |
97bf5e38 MK |
17129 | /* The GNU C library defines this for functions which it implements |
17130 | to always fail with ENOSYS. Some functions are actually named | |
17131 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17132 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 17133 | choke me |
b4e70030 JB |
17134 | #else |
17135 | char (*f) () = $ac_func; | |
17136 | #endif | |
17137 | #ifdef __cplusplus | |
17138 | } | |
c906108c | 17139 | #endif |
97bf5e38 | 17140 | |
bec39cab AC |
17141 | int |
17142 | main () | |
17143 | { | |
b4e70030 | 17144 | return f != $ac_func; |
bec39cab AC |
17145 | ; |
17146 | return 0; | |
17147 | } | |
17148 | _ACEOF | |
17149 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17151 | (eval $ac_link) 2>conftest.er1 | |
17152 | ac_status=$? | |
17153 | grep -v '^ *+' conftest.er1 >conftest.err | |
17154 | rm -f conftest.er1 | |
17155 | cat conftest.err >&5 | |
17156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17157 | (exit $ac_status); } && | |
b4e70030 JB |
17158 | { ac_try='test -z "$ac_c_werror_flag" |
17159 | || test ! -s conftest.err' | |
bec39cab AC |
17160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17161 | (eval $ac_try) 2>&5 | |
17162 | ac_status=$? | |
17163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17164 | (exit $ac_status); }; } && | |
17165 | { ac_try='test -s conftest$ac_exeext' | |
17166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17167 | (eval $ac_try) 2>&5 | |
17168 | ac_status=$? | |
17169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17170 | (exit $ac_status); }; }; then | |
17171 | eval "$as_ac_var=yes" | |
17172 | else | |
17173 | echo "$as_me: failed program was:" >&5 | |
17174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17175 | ||
b4e70030 | 17176 | eval "$as_ac_var=no" |
bec39cab AC |
17177 | fi |
17178 | rm -f conftest.err conftest.$ac_objext \ | |
17179 | conftest$ac_exeext conftest.$ac_ext | |
17180 | fi | |
b4e70030 JB |
17181 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17182 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17183 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17184 | cat >>confdefs.h <<_ACEOF | |
17185 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17186 | _ACEOF | |
c906108c | 17187 | |
c906108c | 17188 | fi |
97bf5e38 | 17189 | done |
c906108c | 17190 | |
bec39cab | 17191 | |
a3828db0 | 17192 | for ac_func in pread64 |
97bf5e38 | 17193 | do |
bec39cab | 17194 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17195 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17196 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17197 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17199 | else | |
17200 | cat >conftest.$ac_ext <<_ACEOF | |
17201 | /* confdefs.h. */ | |
17202 | _ACEOF | |
17203 | cat confdefs.h >>conftest.$ac_ext | |
17204 | cat >>conftest.$ac_ext <<_ACEOF | |
17205 | /* end confdefs.h. */ | |
17206 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17207 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17208 | #define $ac_func innocuous_$ac_func | |
17209 | ||
97bf5e38 | 17210 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17211 | which can conflict with char $ac_func (); below. |
17212 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17213 | <limits.h> exists even on freestanding compilers. */ | |
17214 | ||
17215 | #ifdef __STDC__ | |
17216 | # include <limits.h> | |
17217 | #else | |
17218 | # include <assert.h> | |
17219 | #endif | |
c906108c | 17220 | |
bec39cab | 17221 | #undef $ac_func |
97bf5e38 | 17222 | |
b4e70030 | 17223 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17224 | #ifdef __cplusplus |
17225 | extern "C" | |
b4e70030 | 17226 | { |
bec39cab | 17227 | #endif |
b4e70030 JB |
17228 | /* We use char because int might match the return type of a gcc2 |
17229 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17230 | char $ac_func (); |
97bf5e38 MK |
17231 | /* The GNU C library defines this for functions which it implements |
17232 | to always fail with ENOSYS. Some functions are actually named | |
17233 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17234 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 17235 | choke me |
b4e70030 JB |
17236 | #else |
17237 | char (*f) () = $ac_func; | |
17238 | #endif | |
17239 | #ifdef __cplusplus | |
17240 | } | |
c906108c | 17241 | #endif |
97bf5e38 | 17242 | |
bec39cab AC |
17243 | int |
17244 | main () | |
17245 | { | |
b4e70030 | 17246 | return f != $ac_func; |
bec39cab AC |
17247 | ; |
17248 | return 0; | |
17249 | } | |
17250 | _ACEOF | |
17251 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17253 | (eval $ac_link) 2>conftest.er1 | |
17254 | ac_status=$? | |
17255 | grep -v '^ *+' conftest.er1 >conftest.err | |
17256 | rm -f conftest.er1 | |
17257 | cat conftest.err >&5 | |
17258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17259 | (exit $ac_status); } && | |
b4e70030 JB |
17260 | { ac_try='test -z "$ac_c_werror_flag" |
17261 | || test ! -s conftest.err' | |
bec39cab AC |
17262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17263 | (eval $ac_try) 2>&5 | |
17264 | ac_status=$? | |
17265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17266 | (exit $ac_status); }; } && | |
17267 | { ac_try='test -s conftest$ac_exeext' | |
17268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17269 | (eval $ac_try) 2>&5 | |
17270 | ac_status=$? | |
17271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17272 | (exit $ac_status); }; }; then | |
17273 | eval "$as_ac_var=yes" | |
17274 | else | |
17275 | echo "$as_me: failed program was:" >&5 | |
17276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17277 | ||
b4e70030 | 17278 | eval "$as_ac_var=no" |
bec39cab AC |
17279 | fi |
17280 | rm -f conftest.err conftest.$ac_objext \ | |
17281 | conftest$ac_exeext conftest.$ac_ext | |
17282 | fi | |
b4e70030 JB |
17283 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17284 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17285 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17286 | cat >>confdefs.h <<_ACEOF | |
17287 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17288 | _ACEOF | |
c906108c | 17289 | |
c906108c | 17290 | fi |
97bf5e38 | 17291 | done |
c906108c | 17292 | |
bec39cab | 17293 | |
a3828db0 | 17294 | for ac_func in sbrk |
b757528f | 17295 | do |
bec39cab | 17296 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17297 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17298 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17299 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17301 | else | |
17302 | cat >conftest.$ac_ext <<_ACEOF | |
17303 | /* confdefs.h. */ | |
17304 | _ACEOF | |
17305 | cat confdefs.h >>conftest.$ac_ext | |
17306 | cat >>conftest.$ac_ext <<_ACEOF | |
17307 | /* end confdefs.h. */ | |
17308 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17309 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17310 | #define $ac_func innocuous_$ac_func | |
17311 | ||
b757528f | 17312 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17313 | which can conflict with char $ac_func (); below. |
17314 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17315 | <limits.h> exists even on freestanding compilers. */ | |
17316 | ||
17317 | #ifdef __STDC__ | |
17318 | # include <limits.h> | |
17319 | #else | |
17320 | # include <assert.h> | |
17321 | #endif | |
b757528f | 17322 | |
bec39cab | 17323 | #undef $ac_func |
b757528f | 17324 | |
b4e70030 | 17325 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17326 | #ifdef __cplusplus |
17327 | extern "C" | |
b4e70030 | 17328 | { |
bec39cab | 17329 | #endif |
b4e70030 JB |
17330 | /* We use char because int might match the return type of a gcc2 |
17331 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17332 | char $ac_func (); |
b757528f JJ |
17333 | /* The GNU C library defines this for functions which it implements |
17334 | to always fail with ENOSYS. Some functions are actually named | |
17335 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17336 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
b757528f | 17337 | choke me |
b4e70030 JB |
17338 | #else |
17339 | char (*f) () = $ac_func; | |
17340 | #endif | |
17341 | #ifdef __cplusplus | |
17342 | } | |
b757528f JJ |
17343 | #endif |
17344 | ||
bec39cab AC |
17345 | int |
17346 | main () | |
17347 | { | |
b4e70030 | 17348 | return f != $ac_func; |
bec39cab AC |
17349 | ; |
17350 | return 0; | |
17351 | } | |
17352 | _ACEOF | |
17353 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17354 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17355 | (eval $ac_link) 2>conftest.er1 | |
17356 | ac_status=$? | |
17357 | grep -v '^ *+' conftest.er1 >conftest.err | |
17358 | rm -f conftest.er1 | |
17359 | cat conftest.err >&5 | |
17360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17361 | (exit $ac_status); } && | |
b4e70030 JB |
17362 | { ac_try='test -z "$ac_c_werror_flag" |
17363 | || test ! -s conftest.err' | |
bec39cab AC |
17364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17365 | (eval $ac_try) 2>&5 | |
17366 | ac_status=$? | |
17367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17368 | (exit $ac_status); }; } && | |
17369 | { ac_try='test -s conftest$ac_exeext' | |
17370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17371 | (eval $ac_try) 2>&5 | |
17372 | ac_status=$? | |
17373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17374 | (exit $ac_status); }; }; then | |
17375 | eval "$as_ac_var=yes" | |
17376 | else | |
17377 | echo "$as_me: failed program was:" >&5 | |
17378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17379 | ||
b4e70030 | 17380 | eval "$as_ac_var=no" |
bec39cab AC |
17381 | fi |
17382 | rm -f conftest.err conftest.$ac_objext \ | |
17383 | conftest$ac_exeext conftest.$ac_ext | |
17384 | fi | |
b4e70030 JB |
17385 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17386 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17387 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17388 | cat >>confdefs.h <<_ACEOF | |
17389 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17390 | _ACEOF | |
b757528f | 17391 | |
b757528f JJ |
17392 | fi |
17393 | done | |
17394 | ||
bec39cab | 17395 | |
a3828db0 MK |
17396 | |
17397 | for ac_func in setpgid setpgrp | |
bcb3dc3d | 17398 | do |
bec39cab | 17399 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17400 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17401 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17402 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17404 | else | |
17405 | cat >conftest.$ac_ext <<_ACEOF | |
17406 | /* confdefs.h. */ | |
17407 | _ACEOF | |
17408 | cat confdefs.h >>conftest.$ac_ext | |
17409 | cat >>conftest.$ac_ext <<_ACEOF | |
17410 | /* end confdefs.h. */ | |
17411 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17412 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17413 | #define $ac_func innocuous_$ac_func | |
17414 | ||
bcb3dc3d | 17415 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17416 | which can conflict with char $ac_func (); below. |
17417 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17418 | <limits.h> exists even on freestanding compilers. */ | |
17419 | ||
17420 | #ifdef __STDC__ | |
17421 | # include <limits.h> | |
17422 | #else | |
17423 | # include <assert.h> | |
17424 | #endif | |
bcb3dc3d | 17425 | |
bec39cab | 17426 | #undef $ac_func |
bcb3dc3d | 17427 | |
b4e70030 | 17428 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17429 | #ifdef __cplusplus |
17430 | extern "C" | |
b4e70030 | 17431 | { |
bec39cab | 17432 | #endif |
b4e70030 JB |
17433 | /* We use char because int might match the return type of a gcc2 |
17434 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17435 | char $ac_func (); |
bcb3dc3d MK |
17436 | /* The GNU C library defines this for functions which it implements |
17437 | to always fail with ENOSYS. Some functions are actually named | |
17438 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17439 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bcb3dc3d | 17440 | choke me |
b4e70030 JB |
17441 | #else |
17442 | char (*f) () = $ac_func; | |
17443 | #endif | |
17444 | #ifdef __cplusplus | |
17445 | } | |
bcb3dc3d MK |
17446 | #endif |
17447 | ||
bec39cab AC |
17448 | int |
17449 | main () | |
17450 | { | |
b4e70030 | 17451 | return f != $ac_func; |
bec39cab AC |
17452 | ; |
17453 | return 0; | |
17454 | } | |
17455 | _ACEOF | |
17456 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17458 | (eval $ac_link) 2>conftest.er1 | |
17459 | ac_status=$? | |
17460 | grep -v '^ *+' conftest.er1 >conftest.err | |
17461 | rm -f conftest.er1 | |
17462 | cat conftest.err >&5 | |
17463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17464 | (exit $ac_status); } && | |
b4e70030 JB |
17465 | { ac_try='test -z "$ac_c_werror_flag" |
17466 | || test ! -s conftest.err' | |
bec39cab AC |
17467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17468 | (eval $ac_try) 2>&5 | |
17469 | ac_status=$? | |
17470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17471 | (exit $ac_status); }; } && | |
17472 | { ac_try='test -s conftest$ac_exeext' | |
17473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17474 | (eval $ac_try) 2>&5 | |
17475 | ac_status=$? | |
17476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17477 | (exit $ac_status); }; }; then | |
17478 | eval "$as_ac_var=yes" | |
17479 | else | |
17480 | echo "$as_me: failed program was:" >&5 | |
17481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17482 | ||
b4e70030 | 17483 | eval "$as_ac_var=no" |
bec39cab AC |
17484 | fi |
17485 | rm -f conftest.err conftest.$ac_objext \ | |
17486 | conftest$ac_exeext conftest.$ac_ext | |
17487 | fi | |
b4e70030 JB |
17488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17489 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17490 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17491 | cat >>confdefs.h <<_ACEOF | |
17492 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17493 | _ACEOF | |
bcb3dc3d | 17494 | |
bcb3dc3d MK |
17495 | fi |
17496 | done | |
17497 | ||
bec39cab | 17498 | |
a3828db0 MK |
17499 | |
17500 | ||
17501 | for ac_func in sigaction sigprocmask sigsetmask | |
8b9cf735 | 17502 | do |
bec39cab | 17503 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17504 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17505 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17506 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17508 | else | |
17509 | cat >conftest.$ac_ext <<_ACEOF | |
17510 | /* confdefs.h. */ | |
17511 | _ACEOF | |
17512 | cat confdefs.h >>conftest.$ac_ext | |
17513 | cat >>conftest.$ac_ext <<_ACEOF | |
17514 | /* end confdefs.h. */ | |
17515 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17516 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17517 | #define $ac_func innocuous_$ac_func | |
17518 | ||
8b9cf735 | 17519 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17520 | which can conflict with char $ac_func (); below. |
17521 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17522 | <limits.h> exists even on freestanding compilers. */ | |
17523 | ||
17524 | #ifdef __STDC__ | |
17525 | # include <limits.h> | |
17526 | #else | |
17527 | # include <assert.h> | |
17528 | #endif | |
8b9cf735 | 17529 | |
bec39cab | 17530 | #undef $ac_func |
8b9cf735 | 17531 | |
b4e70030 | 17532 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17533 | #ifdef __cplusplus |
17534 | extern "C" | |
b4e70030 | 17535 | { |
a3828db0 | 17536 | #endif |
b4e70030 JB |
17537 | /* We use char because int might match the return type of a gcc2 |
17538 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17539 | char $ac_func (); |
17540 | /* The GNU C library defines this for functions which it implements | |
17541 | to always fail with ENOSYS. Some functions are actually named | |
17542 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17543 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17544 | choke me |
b4e70030 JB |
17545 | #else |
17546 | char (*f) () = $ac_func; | |
17547 | #endif | |
17548 | #ifdef __cplusplus | |
17549 | } | |
a3828db0 MK |
17550 | #endif |
17551 | ||
bec39cab AC |
17552 | int |
17553 | main () | |
17554 | { | |
b4e70030 | 17555 | return f != $ac_func; |
bec39cab AC |
17556 | ; |
17557 | return 0; | |
17558 | } | |
17559 | _ACEOF | |
a3828db0 MK |
17560 | rm -f conftest.$ac_objext conftest$ac_exeext |
17561 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17562 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17563 | ac_status=$? |
17564 | grep -v '^ *+' conftest.er1 >conftest.err | |
17565 | rm -f conftest.er1 | |
17566 | cat conftest.err >&5 | |
17567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17568 | (exit $ac_status); } && | |
b4e70030 JB |
17569 | { ac_try='test -z "$ac_c_werror_flag" |
17570 | || test ! -s conftest.err' | |
bec39cab AC |
17571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17572 | (eval $ac_try) 2>&5 | |
17573 | ac_status=$? | |
17574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17575 | (exit $ac_status); }; } && | |
a3828db0 | 17576 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17578 | (eval $ac_try) 2>&5 | |
17579 | ac_status=$? | |
17580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17581 | (exit $ac_status); }; }; then | |
a3828db0 | 17582 | eval "$as_ac_var=yes" |
086ec9eb | 17583 | else |
bec39cab AC |
17584 | echo "$as_me: failed program was:" >&5 |
17585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17586 | ||
b4e70030 | 17587 | eval "$as_ac_var=no" |
a3828db0 MK |
17588 | fi |
17589 | rm -f conftest.err conftest.$ac_objext \ | |
17590 | conftest$ac_exeext conftest.$ac_ext | |
17591 | fi | |
b4e70030 JB |
17592 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17593 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17594 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17595 | cat >>confdefs.h <<_ACEOF | |
17596 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17597 | _ACEOF | |
17598 | ||
086ec9eb | 17599 | fi |
a3828db0 MK |
17600 | done |
17601 | ||
17602 | ||
17603 | for ac_func in socketpair | |
17604 | do | |
17605 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17606 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17607 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17608 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
17609 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17610 | else | |
17611 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
17612 | /* confdefs.h. */ |
17613 | _ACEOF | |
17614 | cat confdefs.h >>conftest.$ac_ext | |
17615 | cat >>conftest.$ac_ext <<_ACEOF | |
17616 | /* end confdefs.h. */ | |
a3828db0 MK |
17617 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17618 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17619 | #define $ac_func innocuous_$ac_func | |
17620 | ||
17621 | /* System header to define __stub macros and hopefully few prototypes, | |
17622 | which can conflict with char $ac_func (); below. | |
17623 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17624 | <limits.h> exists even on freestanding compilers. */ | |
17625 | ||
17626 | #ifdef __STDC__ | |
17627 | # include <limits.h> | |
17628 | #else | |
17629 | # include <assert.h> | |
17630 | #endif | |
17631 | ||
17632 | #undef $ac_func | |
17633 | ||
b4e70030 | 17634 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17635 | #ifdef __cplusplus |
17636 | extern "C" | |
b4e70030 | 17637 | { |
a3828db0 | 17638 | #endif |
b4e70030 JB |
17639 | /* We use char because int might match the return type of a gcc2 |
17640 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17641 | char $ac_func (); |
17642 | /* The GNU C library defines this for functions which it implements | |
17643 | to always fail with ENOSYS. Some functions are actually named | |
17644 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17645 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17646 | choke me |
b4e70030 JB |
17647 | #else |
17648 | char (*f) () = $ac_func; | |
17649 | #endif | |
17650 | #ifdef __cplusplus | |
17651 | } | |
a3828db0 MK |
17652 | #endif |
17653 | ||
bec39cab AC |
17654 | int |
17655 | main () | |
17656 | { | |
b4e70030 | 17657 | return f != $ac_func; |
bec39cab AC |
17658 | ; |
17659 | return 0; | |
17660 | } | |
17661 | _ACEOF | |
a3828db0 MK |
17662 | rm -f conftest.$ac_objext conftest$ac_exeext |
17663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17664 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17665 | ac_status=$? |
17666 | grep -v '^ *+' conftest.er1 >conftest.err | |
17667 | rm -f conftest.er1 | |
17668 | cat conftest.err >&5 | |
17669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17670 | (exit $ac_status); } && | |
b4e70030 JB |
17671 | { ac_try='test -z "$ac_c_werror_flag" |
17672 | || test ! -s conftest.err' | |
bec39cab AC |
17673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17674 | (eval $ac_try) 2>&5 | |
17675 | ac_status=$? | |
17676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17677 | (exit $ac_status); }; } && | |
a3828db0 | 17678 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17680 | (eval $ac_try) 2>&5 | |
17681 | ac_status=$? | |
17682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17683 | (exit $ac_status); }; }; then | |
a3828db0 | 17684 | eval "$as_ac_var=yes" |
086ec9eb | 17685 | else |
bec39cab AC |
17686 | echo "$as_me: failed program was:" >&5 |
17687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17688 | ||
b4e70030 | 17689 | eval "$as_ac_var=no" |
086ec9eb | 17690 | fi |
a3828db0 MK |
17691 | rm -f conftest.err conftest.$ac_objext \ |
17692 | conftest$ac_exeext conftest.$ac_ext | |
086ec9eb | 17693 | fi |
b4e70030 JB |
17694 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17695 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17696 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17697 | cat >>confdefs.h <<_ACEOF | |
17698 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17699 | _ACEOF |
086ec9eb MK |
17700 | |
17701 | fi | |
a3828db0 | 17702 | done |
086ec9eb | 17703 | |
a3828db0 MK |
17704 | |
17705 | for ac_func in syscall | |
17706 | do | |
17707 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17708 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17709 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17710 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 17711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab AC |
17712 | else |
17713 | cat >conftest.$ac_ext <<_ACEOF | |
17714 | /* confdefs.h. */ | |
17715 | _ACEOF | |
17716 | cat confdefs.h >>conftest.$ac_ext | |
17717 | cat >>conftest.$ac_ext <<_ACEOF | |
17718 | /* end confdefs.h. */ | |
a3828db0 MK |
17719 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17720 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17721 | #define $ac_func innocuous_$ac_func | |
17722 | ||
17723 | /* System header to define __stub macros and hopefully few prototypes, | |
17724 | which can conflict with char $ac_func (); below. | |
17725 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17726 | <limits.h> exists even on freestanding compilers. */ | |
17727 | ||
17728 | #ifdef __STDC__ | |
17729 | # include <limits.h> | |
17730 | #else | |
17731 | # include <assert.h> | |
17732 | #endif | |
17733 | ||
17734 | #undef $ac_func | |
17735 | ||
b4e70030 | 17736 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17737 | #ifdef __cplusplus |
17738 | extern "C" | |
b4e70030 | 17739 | { |
a3828db0 | 17740 | #endif |
b4e70030 JB |
17741 | /* We use char because int might match the return type of a gcc2 |
17742 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17743 | char $ac_func (); |
17744 | /* The GNU C library defines this for functions which it implements | |
17745 | to always fail with ENOSYS. Some functions are actually named | |
17746 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17747 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17748 | choke me |
b4e70030 JB |
17749 | #else |
17750 | char (*f) () = $ac_func; | |
17751 | #endif | |
17752 | #ifdef __cplusplus | |
17753 | } | |
c906108c | 17754 | #endif |
97bf5e38 | 17755 | |
bec39cab AC |
17756 | int |
17757 | main () | |
97bf5e38 | 17758 | { |
b4e70030 | 17759 | return f != $ac_func; |
bec39cab AC |
17760 | ; |
17761 | return 0; | |
97bf5e38 | 17762 | } |
bec39cab | 17763 | _ACEOF |
a3828db0 | 17764 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab | 17765 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 17766 | (eval $ac_link) 2>conftest.er1 |
bec39cab | 17767 | ac_status=$? |
a3828db0 MK |
17768 | grep -v '^ *+' conftest.er1 >conftest.err |
17769 | rm -f conftest.er1 | |
17770 | cat conftest.err >&5 | |
bec39cab | 17771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3828db0 | 17772 | (exit $ac_status); } && |
b4e70030 JB |
17773 | { ac_try='test -z "$ac_c_werror_flag" |
17774 | || test ! -s conftest.err' | |
a3828db0 MK |
17775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17776 | (eval $ac_try) 2>&5 | |
17777 | ac_status=$? | |
17778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17779 | (exit $ac_status); }; } && | |
17780 | { ac_try='test -s conftest$ac_exeext' | |
bec39cab AC |
17781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17782 | (eval $ac_try) 2>&5 | |
17783 | ac_status=$? | |
17784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17785 | (exit $ac_status); }; }; then | |
a3828db0 | 17786 | eval "$as_ac_var=yes" |
c906108c | 17787 | else |
a3828db0 | 17788 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
17789 | sed 's/^/| /' conftest.$ac_ext >&5 |
17790 | ||
b4e70030 | 17791 | eval "$as_ac_var=no" |
97bf5e38 | 17792 | fi |
a3828db0 MK |
17793 | rm -f conftest.err conftest.$ac_objext \ |
17794 | conftest$ac_exeext conftest.$ac_ext | |
17795 | fi | |
b4e70030 JB |
17796 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17797 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17798 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17799 | cat >>confdefs.h <<_ACEOF | |
17800 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17801 | _ACEOF |
c906108c SS |
17802 | |
17803 | fi | |
a3828db0 | 17804 | done |
c906108c | 17805 | |
a3828db0 MK |
17806 | |
17807 | for ac_func in ttrace | |
17808 | do | |
17809 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17810 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17811 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17812 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 17813 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b83266a0 | 17814 | else |
bec39cab AC |
17815 | cat >conftest.$ac_ext <<_ACEOF |
17816 | /* confdefs.h. */ | |
17817 | _ACEOF | |
17818 | cat confdefs.h >>conftest.$ac_ext | |
17819 | cat >>conftest.$ac_ext <<_ACEOF | |
17820 | /* end confdefs.h. */ | |
a3828db0 MK |
17821 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17822 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17823 | #define $ac_func innocuous_$ac_func | |
b83266a0 | 17824 | |
a3828db0 MK |
17825 | /* System header to define __stub macros and hopefully few prototypes, |
17826 | which can conflict with char $ac_func (); below. | |
17827 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17828 | <limits.h> exists even on freestanding compilers. */ | |
17829 | ||
17830 | #ifdef __STDC__ | |
17831 | # include <limits.h> | |
17832 | #else | |
17833 | # include <assert.h> | |
17834 | #endif | |
17835 | ||
17836 | #undef $ac_func | |
17837 | ||
b4e70030 | 17838 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17839 | #ifdef __cplusplus |
17840 | extern "C" | |
b4e70030 | 17841 | { |
a3828db0 | 17842 | #endif |
b4e70030 JB |
17843 | /* We use char because int might match the return type of a gcc2 |
17844 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17845 | char $ac_func (); |
17846 | /* The GNU C library defines this for functions which it implements | |
17847 | to always fail with ENOSYS. Some functions are actually named | |
17848 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17849 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17850 | choke me |
b4e70030 JB |
17851 | #else |
17852 | char (*f) () = $ac_func; | |
17853 | #endif | |
17854 | #ifdef __cplusplus | |
17855 | } | |
a3828db0 | 17856 | #endif |
97bf5e38 | 17857 | |
bec39cab AC |
17858 | int |
17859 | main () | |
17860 | { | |
b4e70030 | 17861 | return f != $ac_func; |
bec39cab AC |
17862 | ; |
17863 | return 0; | |
17864 | } | |
17865 | _ACEOF | |
a3828db0 MK |
17866 | rm -f conftest.$ac_objext conftest$ac_exeext |
17867 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17868 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17869 | ac_status=$? |
17870 | grep -v '^ *+' conftest.er1 >conftest.err | |
17871 | rm -f conftest.er1 | |
17872 | cat conftest.err >&5 | |
17873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17874 | (exit $ac_status); } && | |
b4e70030 JB |
17875 | { ac_try='test -z "$ac_c_werror_flag" |
17876 | || test ! -s conftest.err' | |
bec39cab AC |
17877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17878 | (eval $ac_try) 2>&5 | |
17879 | ac_status=$? | |
17880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17881 | (exit $ac_status); }; } && | |
a3828db0 | 17882 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17884 | (eval $ac_try) 2>&5 | |
17885 | ac_status=$? | |
17886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17887 | (exit $ac_status); }; }; then | |
a3828db0 | 17888 | eval "$as_ac_var=yes" |
b83266a0 | 17889 | else |
bec39cab AC |
17890 | echo "$as_me: failed program was:" >&5 |
17891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17892 | ||
b4e70030 | 17893 | eval "$as_ac_var=no" |
b83266a0 | 17894 | fi |
a3828db0 MK |
17895 | rm -f conftest.err conftest.$ac_objext \ |
17896 | conftest$ac_exeext conftest.$ac_ext | |
b83266a0 | 17897 | fi |
b4e70030 JB |
17898 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17899 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
17900 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17901 | cat >>confdefs.h <<_ACEOF | |
17902 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 17903 | _ACEOF |
b83266a0 | 17904 | |
97bf5e38 | 17905 | fi |
a3828db0 | 17906 | done |
b83266a0 | 17907 | |
a3828db0 MK |
17908 | |
17909 | for ac_func in wborder | |
17910 | do | |
17911 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17912 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17913 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17914 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17915 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17916 | else | |
17917 | cat >conftest.$ac_ext <<_ACEOF | |
17918 | /* confdefs.h. */ | |
17919 | _ACEOF | |
17920 | cat confdefs.h >>conftest.$ac_ext | |
17921 | cat >>conftest.$ac_ext <<_ACEOF | |
17922 | /* end confdefs.h. */ | |
a3828db0 MK |
17923 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
17924 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17925 | #define $ac_func innocuous_$ac_func | |
a4db0f07 | 17926 | |
a3828db0 MK |
17927 | /* System header to define __stub macros and hopefully few prototypes, |
17928 | which can conflict with char $ac_func (); below. | |
17929 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17930 | <limits.h> exists even on freestanding compilers. */ | |
17931 | ||
17932 | #ifdef __STDC__ | |
17933 | # include <limits.h> | |
17934 | #else | |
17935 | # include <assert.h> | |
17936 | #endif | |
17937 | ||
17938 | #undef $ac_func | |
17939 | ||
b4e70030 | 17940 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
17941 | #ifdef __cplusplus |
17942 | extern "C" | |
b4e70030 | 17943 | { |
a3828db0 | 17944 | #endif |
b4e70030 JB |
17945 | /* We use char because int might match the return type of a gcc2 |
17946 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
17947 | char $ac_func (); |
17948 | /* The GNU C library defines this for functions which it implements | |
17949 | to always fail with ENOSYS. Some functions are actually named | |
17950 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17951 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 17952 | choke me |
b4e70030 JB |
17953 | #else |
17954 | char (*f) () = $ac_func; | |
17955 | #endif | |
17956 | #ifdef __cplusplus | |
17957 | } | |
a3828db0 | 17958 | #endif |
97bf5e38 | 17959 | |
bec39cab AC |
17960 | int |
17961 | main () | |
17962 | { | |
b4e70030 | 17963 | return f != $ac_func; |
bec39cab AC |
17964 | ; |
17965 | return 0; | |
17966 | } | |
17967 | _ACEOF | |
a3828db0 MK |
17968 | rm -f conftest.$ac_objext conftest$ac_exeext |
17969 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17970 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
17971 | ac_status=$? |
17972 | grep -v '^ *+' conftest.er1 >conftest.err | |
17973 | rm -f conftest.er1 | |
17974 | cat conftest.err >&5 | |
17975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17976 | (exit $ac_status); } && | |
b4e70030 JB |
17977 | { ac_try='test -z "$ac_c_werror_flag" |
17978 | || test ! -s conftest.err' | |
bec39cab AC |
17979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17980 | (eval $ac_try) 2>&5 | |
17981 | ac_status=$? | |
17982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17983 | (exit $ac_status); }; } && | |
a3828db0 | 17984 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
17985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17986 | (eval $ac_try) 2>&5 | |
17987 | ac_status=$? | |
17988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17989 | (exit $ac_status); }; }; then | |
a3828db0 | 17990 | eval "$as_ac_var=yes" |
a4db0f07 | 17991 | else |
bec39cab AC |
17992 | echo "$as_me: failed program was:" >&5 |
17993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17994 | ||
b4e70030 | 17995 | eval "$as_ac_var=no" |
a4db0f07 | 17996 | fi |
a3828db0 MK |
17997 | rm -f conftest.err conftest.$ac_objext \ |
17998 | conftest$ac_exeext conftest.$ac_ext | |
a4db0f07 | 17999 | fi |
b4e70030 JB |
18000 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18001 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
18002 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18003 | cat >>confdefs.h <<_ACEOF | |
18004 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 18005 | _ACEOF |
a4db0f07 RH |
18006 | |
18007 | fi | |
a3828db0 | 18008 | done |
c906108c | 18009 | |
06825bd1 | 18010 | |
a3828db0 MK |
18011 | # Check the return and argument types of ptrace. No canned test for |
18012 | # this, so roll our own. | |
18013 | gdb_ptrace_headers=' | |
18014 | #if HAVE_SYS_TYPES_H | |
18015 | # include <sys/types.h> | |
18016 | #endif | |
18017 | #if HAVE_SYS_PTRACE_H | |
18018 | # include <sys/ptrace.h> | |
18019 | #endif | |
18020 | #if HAVE_UNISTD_H | |
18021 | # include <unistd.h> | |
18022 | #endif | |
18023 | ' | |
18024 | # There is no point in checking if we don't have a prototype. | |
b4e70030 JB |
18025 | echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 |
18026 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6 | |
a3828db0 | 18027 | if test "${ac_cv_have_decl_ptrace+set}" = set; then |
bec39cab AC |
18028 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18029 | else | |
18030 | cat >conftest.$ac_ext <<_ACEOF | |
18031 | /* confdefs.h. */ | |
18032 | _ACEOF | |
18033 | cat confdefs.h >>conftest.$ac_ext | |
18034 | cat >>conftest.$ac_ext <<_ACEOF | |
18035 | /* end confdefs.h. */ | |
a3828db0 MK |
18036 | $gdb_ptrace_headers |
18037 | ||
bec39cab AC |
18038 | int |
18039 | main () | |
18040 | { | |
a3828db0 MK |
18041 | #ifndef ptrace |
18042 | char *p = (char *) ptrace; | |
06825bd1 | 18043 | #endif |
a3828db0 | 18044 | |
bec39cab AC |
18045 | ; |
18046 | return 0; | |
18047 | } | |
18048 | _ACEOF | |
18049 | rm -f conftest.$ac_objext | |
18050 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18051 | (eval $ac_compile) 2>conftest.er1 | |
18052 | ac_status=$? | |
18053 | grep -v '^ *+' conftest.er1 >conftest.err | |
18054 | rm -f conftest.er1 | |
18055 | cat conftest.err >&5 | |
18056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18057 | (exit $ac_status); } && | |
b4e70030 JB |
18058 | { ac_try='test -z "$ac_c_werror_flag" |
18059 | || test ! -s conftest.err' | |
bec39cab AC |
18060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18061 | (eval $ac_try) 2>&5 | |
18062 | ac_status=$? | |
18063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18064 | (exit $ac_status); }; } && | |
18065 | { ac_try='test -s conftest.$ac_objext' | |
18066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18067 | (eval $ac_try) 2>&5 | |
18068 | ac_status=$? | |
18069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18070 | (exit $ac_status); }; }; then | |
a3828db0 | 18071 | ac_cv_have_decl_ptrace=yes |
06825bd1 | 18072 | else |
bec39cab AC |
18073 | echo "$as_me: failed program was:" >&5 |
18074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18075 | ||
b4e70030 | 18076 | ac_cv_have_decl_ptrace=no |
06825bd1 | 18077 | fi |
bec39cab | 18078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
06825bd1 | 18079 | fi |
b4e70030 JB |
18080 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
18081 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6 | |
a3828db0 | 18082 | if test $ac_cv_have_decl_ptrace = yes; then |
06825bd1 | 18083 | |
a3828db0 MK |
18084 | cat >>confdefs.h <<_ACEOF |
18085 | #define HAVE_DECL_PTRACE 1 | |
18086 | _ACEOF | |
bec39cab | 18087 | |
bec39cab | 18088 | |
a3828db0 MK |
18089 | else |
18090 | cat >>confdefs.h <<_ACEOF | |
18091 | #define HAVE_DECL_PTRACE 0 | |
bec39cab | 18092 | _ACEOF |
06825bd1 | 18093 | |
a3828db0 MK |
18094 | |
18095 | : ${gdb_cv_func_ptrace_ret='int'} | |
18096 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
18097 | ||
06825bd1 MK |
18098 | fi |
18099 | ||
a3828db0 MK |
18100 | |
18101 | # Check return type. | |
b4e70030 JB |
18102 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
18103 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 | |
a3828db0 | 18104 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then |
bec39cab AC |
18105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18106 | else | |
18107 | cat >conftest.$ac_ext <<_ACEOF | |
18108 | /* confdefs.h. */ | |
18109 | _ACEOF | |
18110 | cat confdefs.h >>conftest.$ac_ext | |
18111 | cat >>conftest.$ac_ext <<_ACEOF | |
18112 | /* end confdefs.h. */ | |
a3828db0 | 18113 | $gdb_ptrace_headers |
bec39cab AC |
18114 | int |
18115 | main () | |
18116 | { | |
a3828db0 | 18117 | extern int ptrace (); |
bec39cab AC |
18118 | ; |
18119 | return 0; | |
18120 | } | |
18121 | _ACEOF | |
18122 | rm -f conftest.$ac_objext | |
18123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18124 | (eval $ac_compile) 2>conftest.er1 | |
18125 | ac_status=$? | |
18126 | grep -v '^ *+' conftest.er1 >conftest.err | |
18127 | rm -f conftest.er1 | |
18128 | cat conftest.err >&5 | |
18129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18130 | (exit $ac_status); } && | |
b4e70030 JB |
18131 | { ac_try='test -z "$ac_c_werror_flag" |
18132 | || test ! -s conftest.err' | |
bec39cab AC |
18133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18134 | (eval $ac_try) 2>&5 | |
18135 | ac_status=$? | |
18136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18137 | (exit $ac_status); }; } && | |
18138 | { ac_try='test -s conftest.$ac_objext' | |
18139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18140 | (eval $ac_try) 2>&5 | |
18141 | ac_status=$? | |
18142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18143 | (exit $ac_status); }; }; then | |
a3828db0 | 18144 | gdb_cv_func_ptrace_ret='int' |
70f9f479 | 18145 | else |
bec39cab AC |
18146 | echo "$as_me: failed program was:" >&5 |
18147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18148 | ||
b4e70030 | 18149 | gdb_cv_func_ptrace_ret='long' |
70f9f479 | 18150 | fi |
bec39cab | 18151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
70f9f479 | 18152 | fi |
b4e70030 JB |
18153 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
18154 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 | |
bec39cab | 18155 | |
a3828db0 MK |
18156 | cat >>confdefs.h <<_ACEOF |
18157 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret | |
bec39cab | 18158 | _ACEOF |
70f9f479 | 18159 | |
a3828db0 | 18160 | # Check argument types. |
b4e70030 JB |
18161 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
18162 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 | |
a3828db0 | 18163 | if test "${gdb_cv_func_ptrace_args+set}" = set; then |
bec39cab AC |
18164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18165 | else | |
a3828db0 MK |
18166 | |
18167 | for gdb_arg1 in 'int' 'long'; do | |
18168 | for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
18169 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do | |
18170 | for gdb_arg4 in 'int' 'long'; do | |
18171 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
18172 | /* confdefs.h. */ |
18173 | _ACEOF | |
18174 | cat confdefs.h >>conftest.$ac_ext | |
18175 | cat >>conftest.$ac_ext <<_ACEOF | |
18176 | /* end confdefs.h. */ | |
a3828db0 | 18177 | $gdb_ptrace_headers |
bec39cab AC |
18178 | int |
18179 | main () | |
18180 | { | |
a3828db0 MK |
18181 | |
18182 | extern $gdb_cv_func_ptrace_ret | |
18183 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
18184 | ||
bec39cab AC |
18185 | ; |
18186 | return 0; | |
18187 | } | |
18188 | _ACEOF | |
18189 | rm -f conftest.$ac_objext | |
18190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18191 | (eval $ac_compile) 2>conftest.er1 | |
18192 | ac_status=$? | |
18193 | grep -v '^ *+' conftest.er1 >conftest.err | |
18194 | rm -f conftest.er1 | |
18195 | cat conftest.err >&5 | |
18196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18197 | (exit $ac_status); } && | |
b4e70030 JB |
18198 | { ac_try='test -z "$ac_c_werror_flag" |
18199 | || test ! -s conftest.err' | |
bec39cab AC |
18200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18201 | (eval $ac_try) 2>&5 | |
18202 | ac_status=$? | |
18203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18204 | (exit $ac_status); }; } && | |
18205 | { ac_try='test -s conftest.$ac_objext' | |
18206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18207 | (eval $ac_try) 2>&5 | |
18208 | ac_status=$? | |
18209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18210 | (exit $ac_status); }; }; then | |
a3828db0 MK |
18211 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
18212 | break 4; | |
5c7f2947 | 18213 | else |
bec39cab AC |
18214 | echo "$as_me: failed program was:" >&5 |
18215 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18216 | ||
5c7f2947 | 18217 | fi |
bec39cab | 18218 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
18219 | for gdb_arg5 in 'int *' 'int' 'long'; do |
18220 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
18221 | /* confdefs.h. */ |
18222 | _ACEOF | |
18223 | cat confdefs.h >>conftest.$ac_ext | |
18224 | cat >>conftest.$ac_ext <<_ACEOF | |
18225 | /* end confdefs.h. */ | |
a3828db0 | 18226 | $gdb_ptrace_headers |
bec39cab AC |
18227 | int |
18228 | main () | |
18229 | { | |
a3828db0 MK |
18230 | |
18231 | extern $gdb_cv_func_ptrace_ret | |
18232 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
18233 | ||
bec39cab AC |
18234 | ; |
18235 | return 0; | |
18236 | } | |
18237 | _ACEOF | |
18238 | rm -f conftest.$ac_objext | |
18239 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18240 | (eval $ac_compile) 2>conftest.er1 | |
18241 | ac_status=$? | |
18242 | grep -v '^ *+' conftest.er1 >conftest.err | |
18243 | rm -f conftest.er1 | |
18244 | cat conftest.err >&5 | |
18245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18246 | (exit $ac_status); } && | |
b4e70030 JB |
18247 | { ac_try='test -z "$ac_c_werror_flag" |
18248 | || test ! -s conftest.err' | |
bec39cab AC |
18249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18250 | (eval $ac_try) 2>&5 | |
18251 | ac_status=$? | |
18252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18253 | (exit $ac_status); }; } && | |
18254 | { ac_try='test -s conftest.$ac_objext' | |
18255 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18256 | (eval $ac_try) 2>&5 | |
18257 | ac_status=$? | |
18258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18259 | (exit $ac_status); }; }; then | |
a3828db0 MK |
18260 | |
18261 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; | |
18262 | break 5; | |
78434e59 | 18263 | else |
bec39cab AC |
18264 | echo "$as_me: failed program was:" >&5 |
18265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18266 | ||
78434e59 | 18267 | fi |
bec39cab | 18268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
18269 | done |
18270 | done | |
18271 | done | |
18272 | done | |
18273 | done | |
18274 | # Provide a safe default value. | |
18275 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
18276 | ||
78434e59 | 18277 | fi |
b4e70030 JB |
18278 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
18279 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 | |
a3828db0 MK |
18280 | ac_save_IFS=$IFS; IFS=',' |
18281 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
18282 | IFS=$ac_save_IFS | |
18283 | shift | |
bec39cab | 18284 | |
a3828db0 MK |
18285 | cat >>confdefs.h <<_ACEOF |
18286 | #define PTRACE_TYPE_ARG3 $3 | |
18287 | _ACEOF | |
18288 | ||
18289 | if test -n "$5"; then | |
18290 | ||
18291 | cat >>confdefs.h <<_ACEOF | |
18292 | #define PTRACE_TYPE_ARG5 $5 | |
bec39cab | 18293 | _ACEOF |
78434e59 MK |
18294 | |
18295 | fi | |
18296 | ||
a3828db0 | 18297 | if test "$cross_compiling" = no; then |
b4e70030 JB |
18298 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
18299 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 18300 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 18301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
18302 | else |
18303 | if test "$cross_compiling" = yes; then | |
18304 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 | |
18305 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} | |
18306 | { (exit 1); exit 1; }; } | |
bec39cab AC |
18307 | else |
18308 | cat >conftest.$ac_ext <<_ACEOF | |
18309 | /* confdefs.h. */ | |
18310 | _ACEOF | |
18311 | cat confdefs.h >>conftest.$ac_ext | |
18312 | cat >>conftest.$ac_ext <<_ACEOF | |
18313 | /* end confdefs.h. */ | |
b4e70030 JB |
18314 | #if HAVE_UNISTD_H |
18315 | # include <unistd.h> | |
18316 | #endif | |
18317 | ||
bec39cab AC |
18318 | int |
18319 | main () | |
18320 | { | |
a3828db0 MK |
18321 | /* If this system has a BSD-style setpgrp which takes arguments, |
18322 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
18323 | exit successfully. */ | |
b4e70030 | 18324 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
bec39cab AC |
18325 | ; |
18326 | return 0; | |
18327 | } | |
18328 | _ACEOF | |
a3828db0 MK |
18329 | rm -f conftest$ac_exeext |
18330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18331 | (eval $ac_link) 2>&5 | |
bec39cab AC |
18332 | ac_status=$? |
18333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 18334 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
18335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18336 | (eval $ac_try) 2>&5 | |
18337 | ac_status=$? | |
18338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18339 | (exit $ac_status); }; }; then | |
a3828db0 | 18340 | ac_cv_func_setpgrp_void=no |
c906108c | 18341 | else |
a3828db0 MK |
18342 | echo "$as_me: program exited with status $ac_status" >&5 |
18343 | echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
18344 | sed 's/^/| /' conftest.$ac_ext >&5 |
18345 | ||
a3828db0 MK |
18346 | ( exit $ac_status ) |
18347 | ac_cv_func_setpgrp_void=yes | |
c906108c | 18348 | fi |
b4e70030 | 18349 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 18350 | fi |
a3828db0 | 18351 | fi |
b4e70030 JB |
18352 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
18353 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 MK |
18354 | if test $ac_cv_func_setpgrp_void = yes; then |
18355 | ||
18356 | cat >>confdefs.h <<\_ACEOF | |
18357 | #define SETPGRP_VOID 1 | |
bec39cab | 18358 | _ACEOF |
97bf5e38 MK |
18359 | |
18360 | fi | |
a3828db0 MK |
18361 | |
18362 | else | |
b4e70030 JB |
18363 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
18364 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 18365 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 18366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 18367 | else |
bec39cab AC |
18368 | cat >conftest.$ac_ext <<_ACEOF |
18369 | /* confdefs.h. */ | |
18370 | _ACEOF | |
18371 | cat confdefs.h >>conftest.$ac_ext | |
18372 | cat >>conftest.$ac_ext <<_ACEOF | |
18373 | /* end confdefs.h. */ | |
a3828db0 MK |
18374 | |
18375 | #include <unistd.h> | |
18376 | ||
bec39cab AC |
18377 | int |
18378 | main () | |
18379 | { | |
a3828db0 MK |
18380 | |
18381 | if (setpgrp(1,1) == -1) | |
18382 | exit (0); | |
18383 | else | |
18384 | exit (1); | |
18385 | ||
bec39cab AC |
18386 | ; |
18387 | return 0; | |
18388 | } | |
18389 | _ACEOF | |
18390 | rm -f conftest.$ac_objext | |
18391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18392 | (eval $ac_compile) 2>conftest.er1 | |
18393 | ac_status=$? | |
18394 | grep -v '^ *+' conftest.er1 >conftest.err | |
18395 | rm -f conftest.er1 | |
18396 | cat conftest.err >&5 | |
18397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18398 | (exit $ac_status); } && | |
b4e70030 JB |
18399 | { ac_try='test -z "$ac_c_werror_flag" |
18400 | || test ! -s conftest.err' | |
bec39cab AC |
18401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18402 | (eval $ac_try) 2>&5 | |
18403 | ac_status=$? | |
18404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18405 | (exit $ac_status); }; } && | |
18406 | { ac_try='test -s conftest.$ac_objext' | |
18407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18408 | (eval $ac_try) 2>&5 | |
18409 | ac_status=$? | |
18410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18411 | (exit $ac_status); }; }; then | |
a3828db0 | 18412 | ac_cv_func_setpgrp_void=no |
c906108c | 18413 | else |
bec39cab AC |
18414 | echo "$as_me: failed program was:" >&5 |
18415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18416 | ||
b4e70030 | 18417 | ac_cv_func_setpgrp_void=yes |
c906108c | 18418 | fi |
bec39cab | 18419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18420 | fi |
b4e70030 JB |
18421 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
18422 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 | 18423 | if test $ac_cv_func_setpgrp_void = yes; then |
bec39cab | 18424 | cat >>confdefs.h <<\_ACEOF |
a3828db0 | 18425 | #define SETPGRP_VOID 1 |
bec39cab | 18426 | _ACEOF |
c3f6f71d | 18427 | |
a3828db0 | 18428 | fi |
c906108c SS |
18429 | fi |
18430 | ||
a3828db0 MK |
18431 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
18432 | # since sigsetjmp might only be defined as a macro. | |
b4e70030 JB |
18433 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
18434 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 | |
a3828db0 | 18435 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then |
bec39cab AC |
18436 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18437 | else | |
18438 | cat >conftest.$ac_ext <<_ACEOF | |
18439 | /* confdefs.h. */ | |
18440 | _ACEOF | |
18441 | cat confdefs.h >>conftest.$ac_ext | |
18442 | cat >>conftest.$ac_ext <<_ACEOF | |
18443 | /* end confdefs.h. */ | |
a3828db0 MK |
18444 | |
18445 | #include <setjmp.h> | |
18446 | ||
bec39cab AC |
18447 | int |
18448 | main () | |
18449 | { | |
a3828db0 | 18450 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
bec39cab AC |
18451 | ; |
18452 | return 0; | |
18453 | } | |
18454 | _ACEOF | |
18455 | rm -f conftest.$ac_objext | |
18456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18457 | (eval $ac_compile) 2>conftest.er1 | |
18458 | ac_status=$? | |
18459 | grep -v '^ *+' conftest.er1 >conftest.err | |
18460 | rm -f conftest.er1 | |
18461 | cat conftest.err >&5 | |
18462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18463 | (exit $ac_status); } && | |
b4e70030 JB |
18464 | { ac_try='test -z "$ac_c_werror_flag" |
18465 | || test ! -s conftest.err' | |
bec39cab AC |
18466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18467 | (eval $ac_try) 2>&5 | |
18468 | ac_status=$? | |
18469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18470 | (exit $ac_status); }; } && | |
18471 | { ac_try='test -s conftest.$ac_objext' | |
18472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18473 | (eval $ac_try) 2>&5 | |
18474 | ac_status=$? | |
18475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18476 | (exit $ac_status); }; }; then | |
a3828db0 | 18477 | gdb_cv_func_sigsetjmp=yes |
c906108c | 18478 | else |
bec39cab AC |
18479 | echo "$as_me: failed program was:" >&5 |
18480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18481 | ||
b4e70030 | 18482 | gdb_cv_func_sigsetjmp=no |
c906108c | 18483 | fi |
bec39cab | 18484 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18485 | fi |
b4e70030 JB |
18486 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
18487 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 | |
a3828db0 | 18488 | if test $gdb_cv_func_sigsetjmp = yes; then |
c906108c | 18489 | |
a3828db0 MK |
18490 | cat >>confdefs.h <<\_ACEOF |
18491 | #define HAVE_SIGSETJMP 1 | |
bec39cab | 18492 | _ACEOF |
c906108c | 18493 | |
97bf5e38 | 18494 | fi |
c906108c | 18495 | |
a3828db0 MK |
18496 | # Assume we'll default to using the included libiberty regex. |
18497 | gdb_use_included_regex=yes | |
18498 | ||
18499 | # However, if the system regex is GNU regex, then default to *not* | |
18500 | # using the included regex. | |
b4e70030 JB |
18501 | echo "$as_me:$LINENO: checking for GNU regex" >&5 |
18502 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 | |
a3828db0 | 18503 | if test "${gdb_cv_have_gnu_regex+set}" = set; then |
bec39cab AC |
18504 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18505 | else | |
18506 | cat >conftest.$ac_ext <<_ACEOF | |
18507 | /* confdefs.h. */ | |
18508 | _ACEOF | |
18509 | cat confdefs.h >>conftest.$ac_ext | |
18510 | cat >>conftest.$ac_ext <<_ACEOF | |
18511 | /* end confdefs.h. */ | |
a3828db0 | 18512 | #include <gnu-versions.h> |
bec39cab AC |
18513 | int |
18514 | main () | |
18515 | { | |
a3828db0 MK |
18516 | #define REGEX_INTERFACE_VERSION 1 |
18517 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION | |
18518 | # error "Version mismatch" | |
18519 | #endif | |
bec39cab AC |
18520 | ; |
18521 | return 0; | |
18522 | } | |
18523 | _ACEOF | |
18524 | rm -f conftest.$ac_objext | |
18525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18526 | (eval $ac_compile) 2>conftest.er1 | |
18527 | ac_status=$? | |
18528 | grep -v '^ *+' conftest.er1 >conftest.err | |
18529 | rm -f conftest.er1 | |
18530 | cat conftest.err >&5 | |
18531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18532 | (exit $ac_status); } && | |
b4e70030 JB |
18533 | { ac_try='test -z "$ac_c_werror_flag" |
18534 | || test ! -s conftest.err' | |
bec39cab AC |
18535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18536 | (eval $ac_try) 2>&5 | |
18537 | ac_status=$? | |
18538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18539 | (exit $ac_status); }; } && | |
18540 | { ac_try='test -s conftest.$ac_objext' | |
18541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18542 | (eval $ac_try) 2>&5 | |
18543 | ac_status=$? | |
18544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18545 | (exit $ac_status); }; }; then | |
a3828db0 | 18546 | gdb_cv_have_gnu_regex=yes |
c906108c | 18547 | else |
bec39cab AC |
18548 | echo "$as_me: failed program was:" >&5 |
18549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18550 | ||
b4e70030 | 18551 | gdb_cv_have_gnu_regex=no |
c906108c | 18552 | fi |
bec39cab | 18553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18554 | fi |
b4e70030 JB |
18555 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
18556 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 | |
a3828db0 MK |
18557 | if test $gdb_cv_have_gnu_regex = yes; then |
18558 | gdb_use_included_regex=no | |
18559 | fi | |
c906108c | 18560 | |
a3828db0 | 18561 | |
b4e70030 | 18562 | # Check whether --with-included-regex or --without-included-regex was given. |
a3828db0 | 18563 | if test "${with_included_regex+set}" = set; then |
b4e70030 JB |
18564 | withval="$with_included_regex" |
18565 | gdb_with_regex=$withval | |
a3828db0 MK |
18566 | else |
18567 | gdb_with_regex=$gdb_use_included_regex | |
b4e70030 | 18568 | fi; |
a3828db0 MK |
18569 | if test "$gdb_with_regex" = yes; then |
18570 | ||
18571 | cat >>confdefs.h <<\_ACEOF | |
18572 | #define USE_INCLUDED_REGEX 1 | |
bec39cab | 18573 | _ACEOF |
c906108c | 18574 | |
97bf5e38 | 18575 | fi |
c906108c | 18576 | |
5c45e068 | 18577 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
b4e70030 JB |
18578 | echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 |
18579 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6 | |
5c45e068 | 18580 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then |
bec39cab AC |
18581 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18582 | else | |
18583 | cat >conftest.$ac_ext <<_ACEOF | |
18584 | /* confdefs.h. */ | |
18585 | _ACEOF | |
18586 | cat confdefs.h >>conftest.$ac_ext | |
18587 | cat >>conftest.$ac_ext <<_ACEOF | |
18588 | /* end confdefs.h. */ | |
a3828db0 MK |
18589 | #include <sys/param.h> |
18590 | #include <sys/proc.h> | |
5c45e068 MK |
18591 | |
18592 | ||
bec39cab AC |
18593 | int |
18594 | main () | |
18595 | { | |
5c45e068 MK |
18596 | static struct thread ac_aggr; |
18597 | if (ac_aggr.td_pcb) | |
18598 | return 0; | |
bec39cab AC |
18599 | ; |
18600 | return 0; | |
18601 | } | |
18602 | _ACEOF | |
18603 | rm -f conftest.$ac_objext | |
18604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18605 | (eval $ac_compile) 2>conftest.er1 | |
18606 | ac_status=$? | |
18607 | grep -v '^ *+' conftest.er1 >conftest.err | |
18608 | rm -f conftest.er1 | |
18609 | cat conftest.err >&5 | |
18610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18611 | (exit $ac_status); } && | |
b4e70030 JB |
18612 | { ac_try='test -z "$ac_c_werror_flag" |
18613 | || test ! -s conftest.err' | |
bec39cab AC |
18614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18615 | (eval $ac_try) 2>&5 | |
18616 | ac_status=$? | |
18617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18618 | (exit $ac_status); }; } && | |
18619 | { ac_try='test -s conftest.$ac_objext' | |
18620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18621 | (eval $ac_try) 2>&5 | |
18622 | ac_status=$? | |
18623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18624 | (exit $ac_status); }; }; then | |
5c45e068 | 18625 | ac_cv_member_struct_thread_td_pcb=yes |
c906108c | 18626 | else |
bec39cab AC |
18627 | echo "$as_me: failed program was:" >&5 |
18628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18629 | ||
b4e70030 | 18630 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
18631 | /* confdefs.h. */ |
18632 | _ACEOF | |
18633 | cat confdefs.h >>conftest.$ac_ext | |
18634 | cat >>conftest.$ac_ext <<_ACEOF | |
18635 | /* end confdefs.h. */ | |
18636 | #include <sys/param.h> | |
18637 | #include <sys/proc.h> | |
18638 | ||
18639 | ||
18640 | int | |
18641 | main () | |
18642 | { | |
18643 | static struct thread ac_aggr; | |
18644 | if (sizeof ac_aggr.td_pcb) | |
18645 | return 0; | |
18646 | ; | |
18647 | return 0; | |
18648 | } | |
18649 | _ACEOF | |
18650 | rm -f conftest.$ac_objext | |
18651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18652 | (eval $ac_compile) 2>conftest.er1 | |
18653 | ac_status=$? | |
18654 | grep -v '^ *+' conftest.er1 >conftest.err | |
18655 | rm -f conftest.er1 | |
18656 | cat conftest.err >&5 | |
18657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18658 | (exit $ac_status); } && | |
b4e70030 JB |
18659 | { ac_try='test -z "$ac_c_werror_flag" |
18660 | || test ! -s conftest.err' | |
5c45e068 MK |
18661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18662 | (eval $ac_try) 2>&5 | |
18663 | ac_status=$? | |
18664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18665 | (exit $ac_status); }; } && | |
18666 | { ac_try='test -s conftest.$ac_objext' | |
18667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18668 | (eval $ac_try) 2>&5 | |
18669 | ac_status=$? | |
18670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18671 | (exit $ac_status); }; }; then | |
18672 | ac_cv_member_struct_thread_td_pcb=yes | |
18673 | else | |
18674 | echo "$as_me: failed program was:" >&5 | |
18675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18676 | ||
b4e70030 | 18677 | ac_cv_member_struct_thread_td_pcb=no |
5c45e068 MK |
18678 | fi |
18679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 18680 | fi |
bec39cab | 18681 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18682 | fi |
b4e70030 JB |
18683 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
18684 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6 | |
5c45e068 | 18685 | if test $ac_cv_member_struct_thread_td_pcb = yes; then |
c906108c | 18686 | |
5c45e068 | 18687 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 18688 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
bec39cab | 18689 | _ACEOF |
c906108c | 18690 | |
5c45e068 | 18691 | |
97bf5e38 | 18692 | fi |
c906108c | 18693 | |
5c45e068 | 18694 | |
a3828db0 | 18695 | # See if <sys/lwp.h> defines `struct lwp`. |
b4e70030 JB |
18696 | echo "$as_me:$LINENO: checking for struct lwp" >&5 |
18697 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 | |
a3828db0 | 18698 | if test "${gdb_cv_struct_lwp+set}" = set; then |
bec39cab AC |
18699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18700 | else | |
18701 | cat >conftest.$ac_ext <<_ACEOF | |
18702 | /* confdefs.h. */ | |
18703 | _ACEOF | |
18704 | cat confdefs.h >>conftest.$ac_ext | |
18705 | cat >>conftest.$ac_ext <<_ACEOF | |
18706 | /* end confdefs.h. */ | |
a3828db0 MK |
18707 | #include <sys/param.h> |
18708 | #include <sys/lwp.h> | |
bec39cab AC |
18709 | int |
18710 | main () | |
18711 | { | |
a3828db0 | 18712 | struct lwp l; |
bec39cab AC |
18713 | ; |
18714 | return 0; | |
18715 | } | |
18716 | _ACEOF | |
18717 | rm -f conftest.$ac_objext | |
18718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18719 | (eval $ac_compile) 2>conftest.er1 | |
18720 | ac_status=$? | |
18721 | grep -v '^ *+' conftest.er1 >conftest.err | |
18722 | rm -f conftest.er1 | |
18723 | cat conftest.err >&5 | |
18724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18725 | (exit $ac_status); } && | |
b4e70030 JB |
18726 | { ac_try='test -z "$ac_c_werror_flag" |
18727 | || test ! -s conftest.err' | |
bec39cab AC |
18728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18729 | (eval $ac_try) 2>&5 | |
18730 | ac_status=$? | |
18731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18732 | (exit $ac_status); }; } && | |
18733 | { ac_try='test -s conftest.$ac_objext' | |
18734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18735 | (eval $ac_try) 2>&5 | |
18736 | ac_status=$? | |
18737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18738 | (exit $ac_status); }; }; then | |
a3828db0 | 18739 | gdb_cv_struct_lwp=yes |
c906108c | 18740 | else |
bec39cab AC |
18741 | echo "$as_me: failed program was:" >&5 |
18742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18743 | ||
b4e70030 | 18744 | gdb_cv_struct_lwp=no |
c906108c | 18745 | fi |
bec39cab | 18746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 18747 | fi |
b4e70030 JB |
18748 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
18749 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 | |
a3828db0 | 18750 | if test $gdb_cv_struct_lwp = yes; then |
c906108c | 18751 | |
a3828db0 MK |
18752 | cat >>confdefs.h <<\_ACEOF |
18753 | #define HAVE_STRUCT_LWP 1 | |
bec39cab | 18754 | _ACEOF |
c906108c | 18755 | |
97bf5e38 | 18756 | fi |
c906108c | 18757 | |
a3828db0 | 18758 | # See if <machine/reg.h> degines `struct reg'. |
b4e70030 JB |
18759 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
18760 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 | |
a3828db0 | 18761 | if test "${gdb_cv_struct_reg+set}" = set; then |
bec39cab AC |
18762 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18763 | else | |
18764 | cat >conftest.$ac_ext <<_ACEOF | |
18765 | /* confdefs.h. */ | |
18766 | _ACEOF | |
18767 | cat confdefs.h >>conftest.$ac_ext | |
18768 | cat >>conftest.$ac_ext <<_ACEOF | |
18769 | /* end confdefs.h. */ | |
a3828db0 MK |
18770 | #include <sys/types.h> |
18771 | #include <machine/reg.h> | |
bec39cab AC |
18772 | int |
18773 | main () | |
18774 | { | |
a3828db0 | 18775 | struct reg r; |
bec39cab AC |
18776 | ; |
18777 | return 0; | |
18778 | } | |
18779 | _ACEOF | |
18780 | rm -f conftest.$ac_objext | |
18781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18782 | (eval $ac_compile) 2>conftest.er1 | |
18783 | ac_status=$? | |
18784 | grep -v '^ *+' conftest.er1 >conftest.err | |
18785 | rm -f conftest.er1 | |
18786 | cat conftest.err >&5 | |
18787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18788 | (exit $ac_status); } && | |
b4e70030 JB |
18789 | { ac_try='test -z "$ac_c_werror_flag" |
18790 | || test ! -s conftest.err' | |
bec39cab AC |
18791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18792 | (eval $ac_try) 2>&5 | |
18793 | ac_status=$? | |
18794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18795 | (exit $ac_status); }; } && | |
18796 | { ac_try='test -s conftest.$ac_objext' | |
18797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18798 | (eval $ac_try) 2>&5 | |
18799 | ac_status=$? | |
18800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18801 | (exit $ac_status); }; }; then | |
a3828db0 | 18802 | gdb_cv_struct_reg=yes |
27ca5dad | 18803 | else |
bec39cab AC |
18804 | echo "$as_me: failed program was:" >&5 |
18805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18806 | ||
b4e70030 | 18807 | gdb_cv_struct_reg=no |
27ca5dad | 18808 | fi |
bec39cab | 18809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27ca5dad | 18810 | fi |
b4e70030 JB |
18811 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
18812 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 | |
a3828db0 | 18813 | if test $gdb_cv_struct_reg = yes; then |
bec39cab AC |
18814 | |
18815 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 18816 | #define HAVE_STRUCT_REG 1 |
bec39cab | 18817 | _ACEOF |
27ca5dad MC |
18818 | |
18819 | fi | |
97bf5e38 | 18820 | |
a3828db0 MK |
18821 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
18822 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | |
b4e70030 JB |
18823 | echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
18824 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6 | |
5c45e068 | 18825 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then |
bec39cab | 18826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 18827 | else |
bec39cab AC |
18828 | cat >conftest.$ac_ext <<_ACEOF |
18829 | /* confdefs.h. */ | |
18830 | _ACEOF | |
18831 | cat confdefs.h >>conftest.$ac_ext | |
18832 | cat >>conftest.$ac_ext <<_ACEOF | |
18833 | /* end confdefs.h. */ | |
a3828db0 | 18834 | #include <machine/reg.h> |
5c45e068 MK |
18835 | |
18836 | int | |
18837 | main () | |
18838 | { | |
18839 | static struct reg ac_aggr; | |
18840 | if (ac_aggr.r_fs) | |
18841 | return 0; | |
18842 | ; | |
18843 | return 0; | |
18844 | } | |
18845 | _ACEOF | |
18846 | rm -f conftest.$ac_objext | |
18847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18848 | (eval $ac_compile) 2>conftest.er1 | |
18849 | ac_status=$? | |
18850 | grep -v '^ *+' conftest.er1 >conftest.err | |
18851 | rm -f conftest.er1 | |
18852 | cat conftest.err >&5 | |
18853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18854 | (exit $ac_status); } && | |
b4e70030 JB |
18855 | { ac_try='test -z "$ac_c_werror_flag" |
18856 | || test ! -s conftest.err' | |
5c45e068 MK |
18857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18858 | (eval $ac_try) 2>&5 | |
18859 | ac_status=$? | |
18860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18861 | (exit $ac_status); }; } && | |
18862 | { ac_try='test -s conftest.$ac_objext' | |
18863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18864 | (eval $ac_try) 2>&5 | |
18865 | ac_status=$? | |
18866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18867 | (exit $ac_status); }; }; then | |
18868 | ac_cv_member_struct_reg_r_fs=yes | |
18869 | else | |
18870 | echo "$as_me: failed program was:" >&5 | |
18871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18872 | ||
b4e70030 | 18873 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
18874 | /* confdefs.h. */ |
18875 | _ACEOF | |
18876 | cat confdefs.h >>conftest.$ac_ext | |
18877 | cat >>conftest.$ac_ext <<_ACEOF | |
18878 | /* end confdefs.h. */ | |
18879 | #include <machine/reg.h> | |
18880 | ||
bec39cab AC |
18881 | int |
18882 | main () | |
18883 | { | |
5c45e068 MK |
18884 | static struct reg ac_aggr; |
18885 | if (sizeof ac_aggr.r_fs) | |
18886 | return 0; | |
bec39cab AC |
18887 | ; |
18888 | return 0; | |
18889 | } | |
18890 | _ACEOF | |
18891 | rm -f conftest.$ac_objext | |
18892 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18893 | (eval $ac_compile) 2>conftest.er1 | |
18894 | ac_status=$? | |
18895 | grep -v '^ *+' conftest.er1 >conftest.err | |
18896 | rm -f conftest.er1 | |
18897 | cat conftest.err >&5 | |
18898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18899 | (exit $ac_status); } && | |
b4e70030 JB |
18900 | { ac_try='test -z "$ac_c_werror_flag" |
18901 | || test ! -s conftest.err' | |
bec39cab AC |
18902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18903 | (eval $ac_try) 2>&5 | |
18904 | ac_status=$? | |
18905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18906 | (exit $ac_status); }; } && | |
18907 | { ac_try='test -s conftest.$ac_objext' | |
18908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18909 | (eval $ac_try) 2>&5 | |
18910 | ac_status=$? | |
18911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18912 | (exit $ac_status); }; }; then | |
5c45e068 | 18913 | ac_cv_member_struct_reg_r_fs=yes |
3862412b | 18914 | else |
bec39cab AC |
18915 | echo "$as_me: failed program was:" >&5 |
18916 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18917 | ||
b4e70030 | 18918 | ac_cv_member_struct_reg_r_fs=no |
3862412b | 18919 | fi |
bec39cab | 18920 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 18921 | fi |
5c45e068 MK |
18922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
18923 | fi | |
b4e70030 JB |
18924 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 |
18925 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6 | |
5c45e068 MK |
18926 | if test $ac_cv_member_struct_reg_r_fs = yes; then |
18927 | ||
18928 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 18929 | #define HAVE_STRUCT_REG_R_FS 1 |
bec39cab | 18930 | _ACEOF |
3862412b | 18931 | |
5c45e068 | 18932 | |
97bf5e38 | 18933 | fi |
b4e70030 JB |
18934 | echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
18935 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6 | |
5c45e068 | 18936 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then |
bec39cab | 18937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 18938 | else |
bec39cab AC |
18939 | cat >conftest.$ac_ext <<_ACEOF |
18940 | /* confdefs.h. */ | |
18941 | _ACEOF | |
18942 | cat confdefs.h >>conftest.$ac_ext | |
18943 | cat >>conftest.$ac_ext <<_ACEOF | |
18944 | /* end confdefs.h. */ | |
a3828db0 | 18945 | #include <machine/reg.h> |
5c45e068 | 18946 | |
bec39cab AC |
18947 | int |
18948 | main () | |
18949 | { | |
5c45e068 MK |
18950 | static struct reg ac_aggr; |
18951 | if (ac_aggr.r_gs) | |
18952 | return 0; | |
bec39cab AC |
18953 | ; |
18954 | return 0; | |
18955 | } | |
18956 | _ACEOF | |
18957 | rm -f conftest.$ac_objext | |
18958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18959 | (eval $ac_compile) 2>conftest.er1 | |
18960 | ac_status=$? | |
18961 | grep -v '^ *+' conftest.er1 >conftest.err | |
18962 | rm -f conftest.er1 | |
18963 | cat conftest.err >&5 | |
18964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18965 | (exit $ac_status); } && | |
b4e70030 JB |
18966 | { ac_try='test -z "$ac_c_werror_flag" |
18967 | || test ! -s conftest.err' | |
bec39cab AC |
18968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18969 | (eval $ac_try) 2>&5 | |
18970 | ac_status=$? | |
18971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18972 | (exit $ac_status); }; } && | |
18973 | { ac_try='test -s conftest.$ac_objext' | |
18974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18975 | (eval $ac_try) 2>&5 | |
18976 | ac_status=$? | |
18977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18978 | (exit $ac_status); }; }; then | |
5c45e068 | 18979 | ac_cv_member_struct_reg_r_gs=yes |
3862412b | 18980 | else |
bec39cab AC |
18981 | echo "$as_me: failed program was:" >&5 |
18982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18983 | ||
b4e70030 | 18984 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
18985 | /* confdefs.h. */ |
18986 | _ACEOF | |
18987 | cat confdefs.h >>conftest.$ac_ext | |
18988 | cat >>conftest.$ac_ext <<_ACEOF | |
18989 | /* end confdefs.h. */ | |
18990 | #include <machine/reg.h> | |
18991 | ||
18992 | int | |
18993 | main () | |
18994 | { | |
18995 | static struct reg ac_aggr; | |
18996 | if (sizeof ac_aggr.r_gs) | |
18997 | return 0; | |
18998 | ; | |
18999 | return 0; | |
19000 | } | |
19001 | _ACEOF | |
19002 | rm -f conftest.$ac_objext | |
19003 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19004 | (eval $ac_compile) 2>conftest.er1 | |
19005 | ac_status=$? | |
19006 | grep -v '^ *+' conftest.er1 >conftest.err | |
19007 | rm -f conftest.er1 | |
19008 | cat conftest.err >&5 | |
19009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19010 | (exit $ac_status); } && | |
b4e70030 JB |
19011 | { ac_try='test -z "$ac_c_werror_flag" |
19012 | || test ! -s conftest.err' | |
5c45e068 MK |
19013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19014 | (eval $ac_try) 2>&5 | |
19015 | ac_status=$? | |
19016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19017 | (exit $ac_status); }; } && | |
19018 | { ac_try='test -s conftest.$ac_objext' | |
19019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19020 | (eval $ac_try) 2>&5 | |
19021 | ac_status=$? | |
19022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19023 | (exit $ac_status); }; }; then | |
19024 | ac_cv_member_struct_reg_r_gs=yes | |
19025 | else | |
19026 | echo "$as_me: failed program was:" >&5 | |
19027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19028 | ||
b4e70030 | 19029 | ac_cv_member_struct_reg_r_gs=no |
3862412b | 19030 | fi |
bec39cab | 19031 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 19032 | fi |
5c45e068 MK |
19033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19034 | fi | |
b4e70030 JB |
19035 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 |
19036 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6 | |
5c45e068 MK |
19037 | if test $ac_cv_member_struct_reg_r_gs = yes; then |
19038 | ||
19039 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 19040 | #define HAVE_STRUCT_REG_R_GS 1 |
bec39cab | 19041 | _ACEOF |
3862412b | 19042 | |
5c45e068 | 19043 | |
97bf5e38 | 19044 | fi |
3862412b | 19045 | |
5c45e068 | 19046 | |
a3828db0 | 19047 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
b4e70030 JB |
19048 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
19049 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 | |
a3828db0 | 19050 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then |
bec39cab | 19051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 19052 | else |
bec39cab AC |
19053 | cat >conftest.$ac_ext <<_ACEOF |
19054 | /* confdefs.h. */ | |
19055 | _ACEOF | |
19056 | cat confdefs.h >>conftest.$ac_ext | |
19057 | cat >>conftest.$ac_ext <<_ACEOF | |
19058 | /* end confdefs.h. */ | |
a3828db0 | 19059 | #include <sys/ptrace.h> |
bec39cab AC |
19060 | int |
19061 | main () | |
19062 | { | |
a3828db0 | 19063 | PTRACE_GETREGS; |
bec39cab AC |
19064 | ; |
19065 | return 0; | |
19066 | } | |
19067 | _ACEOF | |
19068 | rm -f conftest.$ac_objext | |
19069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19070 | (eval $ac_compile) 2>conftest.er1 | |
19071 | ac_status=$? | |
19072 | grep -v '^ *+' conftest.er1 >conftest.err | |
19073 | rm -f conftest.er1 | |
19074 | cat conftest.err >&5 | |
19075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19076 | (exit $ac_status); } && | |
b4e70030 JB |
19077 | { ac_try='test -z "$ac_c_werror_flag" |
19078 | || test ! -s conftest.err' | |
bec39cab AC |
19079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19080 | (eval $ac_try) 2>&5 | |
19081 | ac_status=$? | |
19082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19083 | (exit $ac_status); }; } && | |
19084 | { ac_try='test -s conftest.$ac_objext' | |
19085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19086 | (eval $ac_try) 2>&5 | |
19087 | ac_status=$? | |
19088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19089 | (exit $ac_status); }; }; then | |
a3828db0 | 19090 | gdb_cv_have_ptrace_getregs=yes |
451928c5 | 19091 | else |
bec39cab AC |
19092 | echo "$as_me: failed program was:" >&5 |
19093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19094 | ||
b4e70030 | 19095 | gdb_cv_have_ptrace_getregs=no |
451928c5 | 19096 | fi |
bec39cab | 19097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
19098 | fi |
19099 | ||
b4e70030 JB |
19100 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
19101 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 | |
a3828db0 | 19102 | if test $gdb_cv_have_ptrace_getregs = yes; then |
60ca704f SE |
19103 | |
19104 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19105 | #define HAVE_PTRACE_GETREGS 1 |
bec39cab | 19106 | _ACEOF |
451928c5 | 19107 | |
97bf5e38 | 19108 | fi |
451928c5 | 19109 | |
a3828db0 | 19110 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
b4e70030 JB |
19111 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
19112 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 | |
a3828db0 | 19113 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then |
bec39cab | 19114 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 19115 | else |
bec39cab AC |
19116 | cat >conftest.$ac_ext <<_ACEOF |
19117 | /* confdefs.h. */ | |
19118 | _ACEOF | |
19119 | cat confdefs.h >>conftest.$ac_ext | |
19120 | cat >>conftest.$ac_ext <<_ACEOF | |
19121 | /* end confdefs.h. */ | |
a3828db0 | 19122 | #include <sys/ptrace.h> |
bec39cab AC |
19123 | int |
19124 | main () | |
19125 | { | |
a3828db0 | 19126 | PTRACE_GETFPXREGS; |
bec39cab AC |
19127 | ; |
19128 | return 0; | |
19129 | } | |
19130 | _ACEOF | |
19131 | rm -f conftest.$ac_objext | |
19132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19133 | (eval $ac_compile) 2>conftest.er1 | |
19134 | ac_status=$? | |
19135 | grep -v '^ *+' conftest.er1 >conftest.err | |
19136 | rm -f conftest.er1 | |
19137 | cat conftest.err >&5 | |
19138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19139 | (exit $ac_status); } && | |
b4e70030 JB |
19140 | { ac_try='test -z "$ac_c_werror_flag" |
19141 | || test ! -s conftest.err' | |
bec39cab AC |
19142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19143 | (eval $ac_try) 2>&5 | |
19144 | ac_status=$? | |
19145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19146 | (exit $ac_status); }; } && | |
19147 | { ac_try='test -s conftest.$ac_objext' | |
19148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19149 | (eval $ac_try) 2>&5 | |
19150 | ac_status=$? | |
19151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19152 | (exit $ac_status); }; }; then | |
a3828db0 | 19153 | gdb_cv_have_ptrace_getfpxregs=yes |
451928c5 | 19154 | else |
bec39cab AC |
19155 | echo "$as_me: failed program was:" >&5 |
19156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19157 | ||
b4e70030 | 19158 | gdb_cv_have_ptrace_getfpxregs=no |
451928c5 | 19159 | fi |
bec39cab | 19160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
19161 | fi |
19162 | ||
b4e70030 JB |
19163 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
19164 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 | |
a3828db0 | 19165 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
60ca704f SE |
19166 | |
19167 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19168 | #define HAVE_PTRACE_GETFPXREGS 1 |
bec39cab | 19169 | _ACEOF |
451928c5 | 19170 | |
97bf5e38 | 19171 | fi |
451928c5 | 19172 | |
a3828db0 | 19173 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
b4e70030 JB |
19174 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
19175 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 | |
a3828db0 | 19176 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then |
bec39cab | 19177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 19178 | else |
bec39cab AC |
19179 | cat >conftest.$ac_ext <<_ACEOF |
19180 | /* confdefs.h. */ | |
19181 | _ACEOF | |
19182 | cat confdefs.h >>conftest.$ac_ext | |
19183 | cat >>conftest.$ac_ext <<_ACEOF | |
19184 | /* end confdefs.h. */ | |
a3828db0 MK |
19185 | #include <sys/types.h> |
19186 | #include <sys/ptrace.h> | |
bec39cab AC |
19187 | int |
19188 | main () | |
19189 | { | |
a3828db0 | 19190 | PT_GETDBREGS; |
bec39cab AC |
19191 | ; |
19192 | return 0; | |
19193 | } | |
19194 | _ACEOF | |
19195 | rm -f conftest.$ac_objext | |
19196 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19197 | (eval $ac_compile) 2>conftest.er1 | |
19198 | ac_status=$? | |
19199 | grep -v '^ *+' conftest.er1 >conftest.err | |
19200 | rm -f conftest.er1 | |
19201 | cat conftest.err >&5 | |
19202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19203 | (exit $ac_status); } && | |
b4e70030 JB |
19204 | { ac_try='test -z "$ac_c_werror_flag" |
19205 | || test ! -s conftest.err' | |
bec39cab AC |
19206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19207 | (eval $ac_try) 2>&5 | |
19208 | ac_status=$? | |
19209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19210 | (exit $ac_status); }; } && | |
19211 | { ac_try='test -s conftest.$ac_objext' | |
19212 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19213 | (eval $ac_try) 2>&5 | |
19214 | ac_status=$? | |
19215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19216 | (exit $ac_status); }; }; then | |
a3828db0 | 19217 | gdb_cv_have_pt_getdbregs=yes |
3862412b | 19218 | else |
bec39cab AC |
19219 | echo "$as_me: failed program was:" >&5 |
19220 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19221 | ||
b4e70030 | 19222 | gdb_cv_have_pt_getdbregs=no |
3862412b | 19223 | fi |
bec39cab | 19224 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
19225 | fi |
19226 | ||
b4e70030 JB |
19227 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
19228 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 | |
a3828db0 | 19229 | if test $gdb_cv_have_pt_getdbregs = yes; then |
60ca704f SE |
19230 | |
19231 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19232 | #define HAVE_PT_GETDBREGS 1 |
bec39cab | 19233 | _ACEOF |
3862412b | 19234 | |
97bf5e38 | 19235 | fi |
3862412b | 19236 | |
a3828db0 | 19237 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
b4e70030 JB |
19238 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
19239 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 | |
a3828db0 | 19240 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then |
bec39cab | 19241 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 19242 | else |
bec39cab AC |
19243 | cat >conftest.$ac_ext <<_ACEOF |
19244 | /* confdefs.h. */ | |
19245 | _ACEOF | |
19246 | cat confdefs.h >>conftest.$ac_ext | |
19247 | cat >>conftest.$ac_ext <<_ACEOF | |
19248 | /* end confdefs.h. */ | |
a3828db0 MK |
19249 | #include <sys/types.h> |
19250 | #include <sys/ptrace.h> | |
bec39cab AC |
19251 | int |
19252 | main () | |
19253 | { | |
a3828db0 | 19254 | PT_GETXMMREGS; |
bec39cab AC |
19255 | ; |
19256 | return 0; | |
19257 | } | |
19258 | _ACEOF | |
19259 | rm -f conftest.$ac_objext | |
19260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19261 | (eval $ac_compile) 2>conftest.er1 | |
19262 | ac_status=$? | |
19263 | grep -v '^ *+' conftest.er1 >conftest.err | |
19264 | rm -f conftest.er1 | |
19265 | cat conftest.err >&5 | |
19266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19267 | (exit $ac_status); } && | |
b4e70030 JB |
19268 | { ac_try='test -z "$ac_c_werror_flag" |
19269 | || test ! -s conftest.err' | |
bec39cab AC |
19270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19271 | (eval $ac_try) 2>&5 | |
19272 | ac_status=$? | |
19273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19274 | (exit $ac_status); }; } && | |
19275 | { ac_try='test -s conftest.$ac_objext' | |
19276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19277 | (eval $ac_try) 2>&5 | |
19278 | ac_status=$? | |
19279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19280 | (exit $ac_status); }; }; then | |
a3828db0 | 19281 | gdb_cv_have_pt_getxmmregs=yes |
3862412b | 19282 | else |
bec39cab AC |
19283 | echo "$as_me: failed program was:" >&5 |
19284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19285 | ||
b4e70030 | 19286 | gdb_cv_have_pt_getxmmregs=no |
3862412b | 19287 | fi |
bec39cab | 19288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
19289 | fi |
19290 | ||
b4e70030 JB |
19291 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
19292 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 | |
a3828db0 | 19293 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
60ca704f SE |
19294 | |
19295 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19296 | #define HAVE_PT_GETXMMREGS 1 |
bec39cab | 19297 | _ACEOF |
3862412b | 19298 | |
97bf5e38 | 19299 | fi |
3862412b | 19300 | |
eb368090 | 19301 | # Detect which type of /proc is in use, such as for Unixware or Solaris. |
97bf5e38 MK |
19302 | |
19303 | if test "${target}" = "${host}"; then | |
19304 | case "${host}" in | |
97bf5e38 | 19305 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
60ca704f SE |
19306 | |
19307 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19308 | #define NEW_PROC_API 1 |
bec39cab | 19309 | _ACEOF |
97bf5e38 MK |
19310 | |
19311 | ;; | |
0bbc026e | 19312 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]) |
60ca704f SE |
19313 | |
19314 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19315 | #define NEW_PROC_API 1 |
bec39cab | 19316 | _ACEOF |
c960c18f AC |
19317 | |
19318 | ;; | |
19319 | mips-sgi-irix5*) | |
19320 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. | |
60ca704f SE |
19321 | |
19322 | cat >>confdefs.h <<\_ACEOF | |
c960c18f | 19323 | #define _KMEMUSER 1 |
bec39cab | 19324 | _ACEOF |
97bf5e38 MK |
19325 | |
19326 | ;; | |
19327 | esac | |
19328 | fi | |
19329 | ||
19330 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
b4e70030 JB |
19331 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
19332 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19333 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then |
19334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19335 | else | |
19336 | cat >conftest.$ac_ext <<_ACEOF | |
19337 | /* confdefs.h. */ | |
19338 | _ACEOF | |
19339 | cat confdefs.h >>conftest.$ac_ext | |
19340 | cat >>conftest.$ac_ext <<_ACEOF | |
19341 | /* end confdefs.h. */ | |
596c9d4b KB |
19342 | |
19343 | #define _SYSCALL32 | |
19344 | #include <sys/procfs.h> | |
bec39cab AC |
19345 | int |
19346 | main () | |
19347 | { | |
97bf5e38 | 19348 | pstatus_t avar |
bec39cab AC |
19349 | ; |
19350 | return 0; | |
19351 | } | |
19352 | _ACEOF | |
19353 | rm -f conftest.$ac_objext | |
19354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19355 | (eval $ac_compile) 2>conftest.er1 | |
19356 | ac_status=$? | |
19357 | grep -v '^ *+' conftest.er1 >conftest.err | |
19358 | rm -f conftest.er1 | |
19359 | cat conftest.err >&5 | |
19360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19361 | (exit $ac_status); } && | |
b4e70030 JB |
19362 | { ac_try='test -z "$ac_c_werror_flag" |
19363 | || test ! -s conftest.err' | |
bec39cab AC |
19364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19365 | (eval $ac_try) 2>&5 | |
19366 | ac_status=$? | |
19367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19368 | (exit $ac_status); }; } && | |
19369 | { ac_try='test -s conftest.$ac_objext' | |
19370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19371 | (eval $ac_try) 2>&5 | |
19372 | ac_status=$? | |
19373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19374 | (exit $ac_status); }; }; then | |
97bf5e38 | 19375 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
596c9d4b | 19376 | else |
bec39cab AC |
19377 | echo "$as_me: failed program was:" >&5 |
19378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19379 | ||
b4e70030 | 19380 | bfd_cv_have_sys_procfs_type_pstatus_t=no |
bec39cab | 19381 | |
596c9d4b | 19382 | fi |
bec39cab | 19383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
19384 | fi |
19385 | ||
97bf5e38 | 19386 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
bec39cab AC |
19387 | |
19388 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19389 | #define HAVE_PSTATUS_T 1 |
bec39cab | 19390 | _ACEOF |
596c9d4b KB |
19391 | |
19392 | fi | |
b4e70030 JB |
19393 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
19394 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
596c9d4b | 19395 | |
b4e70030 JB |
19396 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
19397 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19398 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then |
19399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 19400 | else |
bec39cab AC |
19401 | cat >conftest.$ac_ext <<_ACEOF |
19402 | /* confdefs.h. */ | |
19403 | _ACEOF | |
19404 | cat confdefs.h >>conftest.$ac_ext | |
19405 | cat >>conftest.$ac_ext <<_ACEOF | |
19406 | /* end confdefs.h. */ | |
596c9d4b KB |
19407 | |
19408 | #define _SYSCALL32 | |
19409 | #include <sys/procfs.h> | |
bec39cab AC |
19410 | int |
19411 | main () | |
19412 | { | |
97bf5e38 | 19413 | prrun_t avar |
bec39cab AC |
19414 | ; |
19415 | return 0; | |
19416 | } | |
19417 | _ACEOF | |
19418 | rm -f conftest.$ac_objext | |
19419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19420 | (eval $ac_compile) 2>conftest.er1 | |
19421 | ac_status=$? | |
19422 | grep -v '^ *+' conftest.er1 >conftest.err | |
19423 | rm -f conftest.er1 | |
19424 | cat conftest.err >&5 | |
19425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19426 | (exit $ac_status); } && | |
b4e70030 JB |
19427 | { ac_try='test -z "$ac_c_werror_flag" |
19428 | || test ! -s conftest.err' | |
bec39cab AC |
19429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19430 | (eval $ac_try) 2>&5 | |
19431 | ac_status=$? | |
19432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19433 | (exit $ac_status); }; } && | |
19434 | { ac_try='test -s conftest.$ac_objext' | |
19435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19436 | (eval $ac_try) 2>&5 | |
19437 | ac_status=$? | |
19438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19439 | (exit $ac_status); }; }; then | |
97bf5e38 | 19440 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
596c9d4b | 19441 | else |
bec39cab AC |
19442 | echo "$as_me: failed program was:" >&5 |
19443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19444 | ||
b4e70030 | 19445 | bfd_cv_have_sys_procfs_type_prrun_t=no |
bec39cab | 19446 | |
596c9d4b | 19447 | fi |
bec39cab | 19448 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
19449 | fi |
19450 | ||
97bf5e38 | 19451 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
bec39cab AC |
19452 | |
19453 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19454 | #define HAVE_PRRUN_T 1 |
bec39cab | 19455 | _ACEOF |
596c9d4b KB |
19456 | |
19457 | fi | |
b4e70030 JB |
19458 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
19459 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 | |
596c9d4b | 19460 | |
b4e70030 JB |
19461 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
19462 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19463 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then |
19464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 19465 | else |
bec39cab AC |
19466 | cat >conftest.$ac_ext <<_ACEOF |
19467 | /* confdefs.h. */ | |
19468 | _ACEOF | |
19469 | cat confdefs.h >>conftest.$ac_ext | |
19470 | cat >>conftest.$ac_ext <<_ACEOF | |
19471 | /* end confdefs.h. */ | |
596c9d4b KB |
19472 | |
19473 | #define _SYSCALL32 | |
19474 | #include <sys/procfs.h> | |
bec39cab AC |
19475 | int |
19476 | main () | |
19477 | { | |
97bf5e38 | 19478 | gregset_t avar |
bec39cab AC |
19479 | ; |
19480 | return 0; | |
19481 | } | |
19482 | _ACEOF | |
19483 | rm -f conftest.$ac_objext | |
19484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19485 | (eval $ac_compile) 2>conftest.er1 | |
19486 | ac_status=$? | |
19487 | grep -v '^ *+' conftest.er1 >conftest.err | |
19488 | rm -f conftest.er1 | |
19489 | cat conftest.err >&5 | |
19490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19491 | (exit $ac_status); } && | |
b4e70030 JB |
19492 | { ac_try='test -z "$ac_c_werror_flag" |
19493 | || test ! -s conftest.err' | |
bec39cab AC |
19494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19495 | (eval $ac_try) 2>&5 | |
19496 | ac_status=$? | |
19497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19498 | (exit $ac_status); }; } && | |
19499 | { ac_try='test -s conftest.$ac_objext' | |
19500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19501 | (eval $ac_try) 2>&5 | |
19502 | ac_status=$? | |
19503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19504 | (exit $ac_status); }; }; then | |
97bf5e38 | 19505 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
596c9d4b | 19506 | else |
bec39cab AC |
19507 | echo "$as_me: failed program was:" >&5 |
19508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19509 | ||
b4e70030 | 19510 | bfd_cv_have_sys_procfs_type_gregset_t=no |
bec39cab | 19511 | |
596c9d4b | 19512 | fi |
bec39cab | 19513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
19514 | fi |
19515 | ||
97bf5e38 | 19516 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
bec39cab AC |
19517 | |
19518 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19519 | #define HAVE_GREGSET_T 1 |
bec39cab | 19520 | _ACEOF |
596c9d4b KB |
19521 | |
19522 | fi | |
b4e70030 JB |
19523 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
19524 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 | |
451928c5 | 19525 | |
b4e70030 JB |
19526 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
19527 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19528 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then |
19529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d84dd0c5 | 19530 | else |
bec39cab AC |
19531 | cat >conftest.$ac_ext <<_ACEOF |
19532 | /* confdefs.h. */ | |
19533 | _ACEOF | |
19534 | cat confdefs.h >>conftest.$ac_ext | |
19535 | cat >>conftest.$ac_ext <<_ACEOF | |
19536 | /* end confdefs.h. */ | |
97bf5e38 MK |
19537 | |
19538 | #define _SYSCALL32 | |
d84dd0c5 | 19539 | #include <sys/procfs.h> |
bec39cab AC |
19540 | int |
19541 | main () | |
19542 | { | |
97bf5e38 | 19543 | fpregset_t avar |
bec39cab AC |
19544 | ; |
19545 | return 0; | |
19546 | } | |
19547 | _ACEOF | |
19548 | rm -f conftest.$ac_objext | |
19549 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19550 | (eval $ac_compile) 2>conftest.er1 | |
19551 | ac_status=$? | |
19552 | grep -v '^ *+' conftest.er1 >conftest.err | |
19553 | rm -f conftest.er1 | |
19554 | cat conftest.err >&5 | |
19555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19556 | (exit $ac_status); } && | |
b4e70030 JB |
19557 | { ac_try='test -z "$ac_c_werror_flag" |
19558 | || test ! -s conftest.err' | |
bec39cab AC |
19559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19560 | (eval $ac_try) 2>&5 | |
19561 | ac_status=$? | |
19562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19563 | (exit $ac_status); }; } && | |
19564 | { ac_try='test -s conftest.$ac_objext' | |
19565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19566 | (eval $ac_try) 2>&5 | |
19567 | ac_status=$? | |
19568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19569 | (exit $ac_status); }; }; then | |
97bf5e38 | 19570 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
d84dd0c5 | 19571 | else |
bec39cab AC |
19572 | echo "$as_me: failed program was:" >&5 |
19573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19574 | ||
b4e70030 | 19575 | bfd_cv_have_sys_procfs_type_fpregset_t=no |
bec39cab | 19576 | |
d84dd0c5 | 19577 | fi |
bec39cab | 19578 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d84dd0c5 MK |
19579 | fi |
19580 | ||
97bf5e38 | 19581 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
bec39cab AC |
19582 | |
19583 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19584 | #define HAVE_FPREGSET_T 1 |
bec39cab | 19585 | _ACEOF |
d84dd0c5 | 19586 | |
97bf5e38 | 19587 | fi |
b4e70030 JB |
19588 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
19589 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 | |
d84dd0c5 | 19590 | |
b4e70030 JB |
19591 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
19592 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19593 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then |
19594 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19595 | else |
bec39cab AC |
19596 | cat >conftest.$ac_ext <<_ACEOF |
19597 | /* confdefs.h. */ | |
19598 | _ACEOF | |
19599 | cat confdefs.h >>conftest.$ac_ext | |
19600 | cat >>conftest.$ac_ext <<_ACEOF | |
19601 | /* end confdefs.h. */ | |
c906108c | 19602 | |
97bf5e38 MK |
19603 | #define _SYSCALL32 |
19604 | #include <sys/procfs.h> | |
bec39cab AC |
19605 | int |
19606 | main () | |
19607 | { | |
97bf5e38 | 19608 | prgregset_t avar |
bec39cab AC |
19609 | ; |
19610 | return 0; | |
19611 | } | |
19612 | _ACEOF | |
19613 | rm -f conftest.$ac_objext | |
19614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19615 | (eval $ac_compile) 2>conftest.er1 | |
19616 | ac_status=$? | |
19617 | grep -v '^ *+' conftest.er1 >conftest.err | |
19618 | rm -f conftest.er1 | |
19619 | cat conftest.err >&5 | |
19620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19621 | (exit $ac_status); } && | |
b4e70030 JB |
19622 | { ac_try='test -z "$ac_c_werror_flag" |
19623 | || test ! -s conftest.err' | |
bec39cab AC |
19624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19625 | (eval $ac_try) 2>&5 | |
19626 | ac_status=$? | |
19627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19628 | (exit $ac_status); }; } && | |
19629 | { ac_try='test -s conftest.$ac_objext' | |
19630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19631 | (eval $ac_try) 2>&5 | |
19632 | ac_status=$? | |
19633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19634 | (exit $ac_status); }; }; then | |
97bf5e38 | 19635 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
c906108c | 19636 | else |
bec39cab AC |
19637 | echo "$as_me: failed program was:" >&5 |
19638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19639 | ||
b4e70030 | 19640 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
bec39cab | 19641 | |
c906108c | 19642 | fi |
bec39cab | 19643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19644 | fi |
19645 | ||
97bf5e38 | 19646 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
bec39cab AC |
19647 | |
19648 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19649 | #define HAVE_PRGREGSET_T 1 |
bec39cab | 19650 | _ACEOF |
c906108c | 19651 | |
97bf5e38 | 19652 | fi |
b4e70030 JB |
19653 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
19654 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 | |
c906108c | 19655 | |
b4e70030 JB |
19656 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
19657 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19658 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then |
19659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19660 | else |
bec39cab AC |
19661 | cat >conftest.$ac_ext <<_ACEOF |
19662 | /* confdefs.h. */ | |
19663 | _ACEOF | |
19664 | cat confdefs.h >>conftest.$ac_ext | |
19665 | cat >>conftest.$ac_ext <<_ACEOF | |
19666 | /* end confdefs.h. */ | |
97bf5e38 MK |
19667 | |
19668 | #define _SYSCALL32 | |
19669 | #include <sys/procfs.h> | |
bec39cab AC |
19670 | int |
19671 | main () | |
19672 | { | |
97bf5e38 | 19673 | prfpregset_t avar |
bec39cab AC |
19674 | ; |
19675 | return 0; | |
19676 | } | |
19677 | _ACEOF | |
19678 | rm -f conftest.$ac_objext | |
19679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19680 | (eval $ac_compile) 2>conftest.er1 | |
19681 | ac_status=$? | |
19682 | grep -v '^ *+' conftest.er1 >conftest.err | |
19683 | rm -f conftest.er1 | |
19684 | cat conftest.err >&5 | |
19685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19686 | (exit $ac_status); } && | |
b4e70030 JB |
19687 | { ac_try='test -z "$ac_c_werror_flag" |
19688 | || test ! -s conftest.err' | |
bec39cab AC |
19689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19690 | (eval $ac_try) 2>&5 | |
19691 | ac_status=$? | |
19692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19693 | (exit $ac_status); }; } && | |
19694 | { ac_try='test -s conftest.$ac_objext' | |
19695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19696 | (eval $ac_try) 2>&5 | |
19697 | ac_status=$? | |
19698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19699 | (exit $ac_status); }; }; then | |
97bf5e38 | 19700 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
d45fe813 | 19701 | else |
bec39cab AC |
19702 | echo "$as_me: failed program was:" >&5 |
19703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19704 | ||
b4e70030 | 19705 | bfd_cv_have_sys_procfs_type_prfpregset_t=no |
bec39cab | 19706 | |
d45fe813 | 19707 | fi |
bec39cab | 19708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19709 | fi |
19710 | ||
97bf5e38 | 19711 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
19712 | |
19713 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19714 | #define HAVE_PRFPREGSET_T 1 |
bec39cab | 19715 | _ACEOF |
d45fe813 | 19716 | |
97bf5e38 | 19717 | fi |
b4e70030 JB |
19718 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
19719 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 | |
d45fe813 | 19720 | |
b4e70030 JB |
19721 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
19722 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19723 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then |
19724 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19725 | else |
bec39cab AC |
19726 | cat >conftest.$ac_ext <<_ACEOF |
19727 | /* confdefs.h. */ | |
19728 | _ACEOF | |
19729 | cat confdefs.h >>conftest.$ac_ext | |
19730 | cat >>conftest.$ac_ext <<_ACEOF | |
19731 | /* end confdefs.h. */ | |
97bf5e38 MK |
19732 | |
19733 | #define _SYSCALL32 | |
19734 | #include <sys/procfs.h> | |
bec39cab AC |
19735 | int |
19736 | main () | |
19737 | { | |
97bf5e38 | 19738 | prgregset32_t avar |
bec39cab AC |
19739 | ; |
19740 | return 0; | |
19741 | } | |
19742 | _ACEOF | |
19743 | rm -f conftest.$ac_objext | |
19744 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19745 | (eval $ac_compile) 2>conftest.er1 | |
19746 | ac_status=$? | |
19747 | grep -v '^ *+' conftest.er1 >conftest.err | |
19748 | rm -f conftest.er1 | |
19749 | cat conftest.err >&5 | |
19750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19751 | (exit $ac_status); } && | |
b4e70030 JB |
19752 | { ac_try='test -z "$ac_c_werror_flag" |
19753 | || test ! -s conftest.err' | |
bec39cab AC |
19754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19755 | (eval $ac_try) 2>&5 | |
19756 | ac_status=$? | |
19757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19758 | (exit $ac_status); }; } && | |
19759 | { ac_try='test -s conftest.$ac_objext' | |
19760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19761 | (eval $ac_try) 2>&5 | |
19762 | ac_status=$? | |
19763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19764 | (exit $ac_status); }; }; then | |
97bf5e38 | 19765 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
d45fe813 | 19766 | else |
bec39cab AC |
19767 | echo "$as_me: failed program was:" >&5 |
19768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19769 | ||
b4e70030 | 19770 | bfd_cv_have_sys_procfs_type_prgregset32_t=no |
bec39cab | 19771 | |
d45fe813 | 19772 | fi |
bec39cab | 19773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19774 | fi |
19775 | ||
97bf5e38 | 19776 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
bec39cab AC |
19777 | |
19778 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19779 | #define HAVE_PRGREGSET32_T 1 |
bec39cab | 19780 | _ACEOF |
d45fe813 | 19781 | |
97bf5e38 | 19782 | fi |
b4e70030 JB |
19783 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
19784 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 | |
d45fe813 | 19785 | |
b4e70030 JB |
19786 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
19787 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19788 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then |
19789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19790 | else |
bec39cab AC |
19791 | cat >conftest.$ac_ext <<_ACEOF |
19792 | /* confdefs.h. */ | |
19793 | _ACEOF | |
19794 | cat confdefs.h >>conftest.$ac_ext | |
19795 | cat >>conftest.$ac_ext <<_ACEOF | |
19796 | /* end confdefs.h. */ | |
97bf5e38 MK |
19797 | |
19798 | #define _SYSCALL32 | |
19799 | #include <sys/procfs.h> | |
bec39cab AC |
19800 | int |
19801 | main () | |
19802 | { | |
97bf5e38 | 19803 | prfpregset32_t avar |
bec39cab AC |
19804 | ; |
19805 | return 0; | |
19806 | } | |
19807 | _ACEOF | |
19808 | rm -f conftest.$ac_objext | |
19809 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19810 | (eval $ac_compile) 2>conftest.er1 | |
19811 | ac_status=$? | |
19812 | grep -v '^ *+' conftest.er1 >conftest.err | |
19813 | rm -f conftest.er1 | |
19814 | cat conftest.err >&5 | |
19815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19816 | (exit $ac_status); } && | |
b4e70030 JB |
19817 | { ac_try='test -z "$ac_c_werror_flag" |
19818 | || test ! -s conftest.err' | |
bec39cab AC |
19819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19820 | (eval $ac_try) 2>&5 | |
19821 | ac_status=$? | |
19822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19823 | (exit $ac_status); }; } && | |
19824 | { ac_try='test -s conftest.$ac_objext' | |
19825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19826 | (eval $ac_try) 2>&5 | |
19827 | ac_status=$? | |
19828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19829 | (exit $ac_status); }; }; then | |
97bf5e38 | 19830 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
d45fe813 | 19831 | else |
bec39cab AC |
19832 | echo "$as_me: failed program was:" >&5 |
19833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19834 | ||
b4e70030 | 19835 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no |
bec39cab | 19836 | |
d45fe813 | 19837 | fi |
bec39cab | 19838 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19839 | fi |
19840 | ||
97bf5e38 | 19841 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
bec39cab AC |
19842 | |
19843 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19844 | #define HAVE_PRFPREGSET32_T 1 |
bec39cab | 19845 | _ACEOF |
d45fe813 | 19846 | |
97bf5e38 | 19847 | fi |
b4e70030 JB |
19848 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
19849 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 | |
d45fe813 | 19850 | |
b4e70030 JB |
19851 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
19852 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19853 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then |
19854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 19855 | else |
bec39cab AC |
19856 | cat >conftest.$ac_ext <<_ACEOF |
19857 | /* confdefs.h. */ | |
19858 | _ACEOF | |
19859 | cat confdefs.h >>conftest.$ac_ext | |
19860 | cat >>conftest.$ac_ext <<_ACEOF | |
19861 | /* end confdefs.h. */ | |
97bf5e38 | 19862 | |
d45fe813 | 19863 | #define _SYSCALL32 |
97bf5e38 | 19864 | #include <sys/procfs.h> |
bec39cab AC |
19865 | int |
19866 | main () | |
19867 | { | |
97bf5e38 | 19868 | lwpid_t avar |
bec39cab AC |
19869 | ; |
19870 | return 0; | |
19871 | } | |
19872 | _ACEOF | |
19873 | rm -f conftest.$ac_objext | |
19874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19875 | (eval $ac_compile) 2>conftest.er1 | |
19876 | ac_status=$? | |
19877 | grep -v '^ *+' conftest.er1 >conftest.err | |
19878 | rm -f conftest.er1 | |
19879 | cat conftest.err >&5 | |
19880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19881 | (exit $ac_status); } && | |
b4e70030 JB |
19882 | { ac_try='test -z "$ac_c_werror_flag" |
19883 | || test ! -s conftest.err' | |
bec39cab AC |
19884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19885 | (eval $ac_try) 2>&5 | |
19886 | ac_status=$? | |
19887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19888 | (exit $ac_status); }; } && | |
19889 | { ac_try='test -s conftest.$ac_objext' | |
19890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19891 | (eval $ac_try) 2>&5 | |
19892 | ac_status=$? | |
19893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19894 | (exit $ac_status); }; }; then | |
97bf5e38 | 19895 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
d45fe813 | 19896 | else |
bec39cab AC |
19897 | echo "$as_me: failed program was:" >&5 |
19898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19899 | ||
b4e70030 | 19900 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
bec39cab | 19901 | |
d45fe813 | 19902 | fi |
bec39cab | 19903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
19904 | fi |
19905 | ||
97bf5e38 | 19906 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
bec39cab AC |
19907 | |
19908 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19909 | #define HAVE_LWPID_T 1 |
bec39cab | 19910 | _ACEOF |
d45fe813 | 19911 | |
97bf5e38 | 19912 | fi |
b4e70030 JB |
19913 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
19914 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 | |
c906108c | 19915 | |
b4e70030 JB |
19916 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
19917 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19918 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then |
19919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19920 | else |
bec39cab AC |
19921 | cat >conftest.$ac_ext <<_ACEOF |
19922 | /* confdefs.h. */ | |
19923 | _ACEOF | |
19924 | cat confdefs.h >>conftest.$ac_ext | |
19925 | cat >>conftest.$ac_ext <<_ACEOF | |
19926 | /* end confdefs.h. */ | |
c906108c | 19927 | |
97bf5e38 MK |
19928 | #define _SYSCALL32 |
19929 | #include <sys/procfs.h> | |
bec39cab AC |
19930 | int |
19931 | main () | |
19932 | { | |
97bf5e38 | 19933 | psaddr_t avar |
bec39cab AC |
19934 | ; |
19935 | return 0; | |
19936 | } | |
19937 | _ACEOF | |
19938 | rm -f conftest.$ac_objext | |
19939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19940 | (eval $ac_compile) 2>conftest.er1 | |
19941 | ac_status=$? | |
19942 | grep -v '^ *+' conftest.er1 >conftest.err | |
19943 | rm -f conftest.er1 | |
19944 | cat conftest.err >&5 | |
19945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19946 | (exit $ac_status); } && | |
b4e70030 JB |
19947 | { ac_try='test -z "$ac_c_werror_flag" |
19948 | || test ! -s conftest.err' | |
bec39cab AC |
19949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19950 | (eval $ac_try) 2>&5 | |
19951 | ac_status=$? | |
19952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19953 | (exit $ac_status); }; } && | |
19954 | { ac_try='test -s conftest.$ac_objext' | |
19955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19956 | (eval $ac_try) 2>&5 | |
19957 | ac_status=$? | |
19958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19959 | (exit $ac_status); }; }; then | |
97bf5e38 | 19960 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
c906108c | 19961 | else |
bec39cab AC |
19962 | echo "$as_me: failed program was:" >&5 |
19963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19964 | ||
b4e70030 | 19965 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
bec39cab | 19966 | |
c906108c | 19967 | fi |
bec39cab | 19968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
19969 | fi |
19970 | ||
97bf5e38 | 19971 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
bec39cab AC |
19972 | |
19973 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19974 | #define HAVE_PSADDR_T 1 |
bec39cab | 19975 | _ACEOF |
c906108c | 19976 | |
97bf5e38 | 19977 | fi |
b4e70030 JB |
19978 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
19979 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 | |
c906108c | 19980 | |
b4e70030 JB |
19981 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
19982 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19983 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then |
19984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 19985 | else |
bec39cab AC |
19986 | cat >conftest.$ac_ext <<_ACEOF |
19987 | /* confdefs.h. */ | |
19988 | _ACEOF | |
19989 | cat confdefs.h >>conftest.$ac_ext | |
19990 | cat >>conftest.$ac_ext <<_ACEOF | |
19991 | /* end confdefs.h. */ | |
c906108c | 19992 | |
97bf5e38 MK |
19993 | #define _SYSCALL32 |
19994 | #include <sys/procfs.h> | |
bec39cab AC |
19995 | int |
19996 | main () | |
19997 | { | |
97bf5e38 | 19998 | prsysent_t avar |
bec39cab AC |
19999 | ; |
20000 | return 0; | |
20001 | } | |
20002 | _ACEOF | |
20003 | rm -f conftest.$ac_objext | |
20004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20005 | (eval $ac_compile) 2>conftest.er1 | |
20006 | ac_status=$? | |
20007 | grep -v '^ *+' conftest.er1 >conftest.err | |
20008 | rm -f conftest.er1 | |
20009 | cat conftest.err >&5 | |
20010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20011 | (exit $ac_status); } && | |
b4e70030 JB |
20012 | { ac_try='test -z "$ac_c_werror_flag" |
20013 | || test ! -s conftest.err' | |
bec39cab AC |
20014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20015 | (eval $ac_try) 2>&5 | |
20016 | ac_status=$? | |
20017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20018 | (exit $ac_status); }; } && | |
20019 | { ac_try='test -s conftest.$ac_objext' | |
20020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20021 | (eval $ac_try) 2>&5 | |
20022 | ac_status=$? | |
20023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20024 | (exit $ac_status); }; }; then | |
97bf5e38 | 20025 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
c906108c | 20026 | else |
bec39cab AC |
20027 | echo "$as_me: failed program was:" >&5 |
20028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20029 | ||
b4e70030 | 20030 | bfd_cv_have_sys_procfs_type_prsysent_t=no |
bec39cab | 20031 | |
c906108c | 20032 | fi |
bec39cab | 20033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20034 | fi |
20035 | ||
97bf5e38 | 20036 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
bec39cab AC |
20037 | |
20038 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20039 | #define HAVE_PRSYSENT_T 1 |
bec39cab | 20040 | _ACEOF |
c906108c | 20041 | |
97bf5e38 | 20042 | fi |
b4e70030 JB |
20043 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
20044 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 | |
c906108c | 20045 | |
b4e70030 JB |
20046 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
20047 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20048 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then |
20049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20050 | else |
bec39cab AC |
20051 | cat >conftest.$ac_ext <<_ACEOF |
20052 | /* confdefs.h. */ | |
20053 | _ACEOF | |
20054 | cat confdefs.h >>conftest.$ac_ext | |
20055 | cat >>conftest.$ac_ext <<_ACEOF | |
20056 | /* end confdefs.h. */ | |
c906108c | 20057 | |
97bf5e38 MK |
20058 | #define _SYSCALL32 |
20059 | #include <sys/procfs.h> | |
bec39cab AC |
20060 | int |
20061 | main () | |
20062 | { | |
97bf5e38 | 20063 | pr_sigset_t avar |
bec39cab AC |
20064 | ; |
20065 | return 0; | |
20066 | } | |
20067 | _ACEOF | |
20068 | rm -f conftest.$ac_objext | |
20069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20070 | (eval $ac_compile) 2>conftest.er1 | |
20071 | ac_status=$? | |
20072 | grep -v '^ *+' conftest.er1 >conftest.err | |
20073 | rm -f conftest.er1 | |
20074 | cat conftest.err >&5 | |
20075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20076 | (exit $ac_status); } && | |
b4e70030 JB |
20077 | { ac_try='test -z "$ac_c_werror_flag" |
20078 | || test ! -s conftest.err' | |
bec39cab AC |
20079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20080 | (eval $ac_try) 2>&5 | |
20081 | ac_status=$? | |
20082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20083 | (exit $ac_status); }; } && | |
20084 | { ac_try='test -s conftest.$ac_objext' | |
20085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20086 | (eval $ac_try) 2>&5 | |
20087 | ac_status=$? | |
20088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20089 | (exit $ac_status); }; }; then | |
97bf5e38 | 20090 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
c906108c | 20091 | else |
bec39cab AC |
20092 | echo "$as_me: failed program was:" >&5 |
20093 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20094 | ||
b4e70030 | 20095 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no |
bec39cab | 20096 | |
c906108c | 20097 | fi |
bec39cab | 20098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20099 | fi |
20100 | ||
97bf5e38 | 20101 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
bec39cab AC |
20102 | |
20103 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20104 | #define HAVE_PR_SIGSET_T 1 |
bec39cab | 20105 | _ACEOF |
c906108c | 20106 | |
97bf5e38 | 20107 | fi |
b4e70030 JB |
20108 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
20109 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 | |
c906108c | 20110 | |
b4e70030 JB |
20111 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
20112 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20113 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then |
20114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20115 | else |
bec39cab AC |
20116 | cat >conftest.$ac_ext <<_ACEOF |
20117 | /* confdefs.h. */ | |
20118 | _ACEOF | |
20119 | cat confdefs.h >>conftest.$ac_ext | |
20120 | cat >>conftest.$ac_ext <<_ACEOF | |
20121 | /* end confdefs.h. */ | |
c906108c | 20122 | |
97bf5e38 MK |
20123 | #define _SYSCALL32 |
20124 | #include <sys/procfs.h> | |
bec39cab AC |
20125 | int |
20126 | main () | |
20127 | { | |
97bf5e38 | 20128 | pr_sigaction64_t avar |
bec39cab AC |
20129 | ; |
20130 | return 0; | |
20131 | } | |
20132 | _ACEOF | |
20133 | rm -f conftest.$ac_objext | |
20134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20135 | (eval $ac_compile) 2>conftest.er1 | |
20136 | ac_status=$? | |
20137 | grep -v '^ *+' conftest.er1 >conftest.err | |
20138 | rm -f conftest.er1 | |
20139 | cat conftest.err >&5 | |
20140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20141 | (exit $ac_status); } && | |
b4e70030 JB |
20142 | { ac_try='test -z "$ac_c_werror_flag" |
20143 | || test ! -s conftest.err' | |
bec39cab AC |
20144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20145 | (eval $ac_try) 2>&5 | |
20146 | ac_status=$? | |
20147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20148 | (exit $ac_status); }; } && | |
20149 | { ac_try='test -s conftest.$ac_objext' | |
20150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20151 | (eval $ac_try) 2>&5 | |
20152 | ac_status=$? | |
20153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20154 | (exit $ac_status); }; }; then | |
97bf5e38 | 20155 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
c906108c | 20156 | else |
bec39cab AC |
20157 | echo "$as_me: failed program was:" >&5 |
20158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20159 | ||
b4e70030 | 20160 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no |
bec39cab | 20161 | |
c906108c | 20162 | fi |
bec39cab | 20163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20164 | fi |
20165 | ||
97bf5e38 | 20166 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
bec39cab AC |
20167 | |
20168 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20169 | #define HAVE_PR_SIGACTION64_T 1 |
bec39cab | 20170 | _ACEOF |
c906108c | 20171 | |
97bf5e38 | 20172 | fi |
b4e70030 JB |
20173 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
20174 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 | |
97bf5e38 | 20175 | |
b4e70030 JB |
20176 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
20177 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20178 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then |
20179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 20180 | else |
bec39cab AC |
20181 | cat >conftest.$ac_ext <<_ACEOF |
20182 | /* confdefs.h. */ | |
20183 | _ACEOF | |
20184 | cat confdefs.h >>conftest.$ac_ext | |
20185 | cat >>conftest.$ac_ext <<_ACEOF | |
20186 | /* end confdefs.h. */ | |
97bf5e38 MK |
20187 | |
20188 | #define _SYSCALL32 | |
20189 | #include <sys/procfs.h> | |
bec39cab AC |
20190 | int |
20191 | main () | |
20192 | { | |
97bf5e38 | 20193 | pr_siginfo64_t avar |
bec39cab AC |
20194 | ; |
20195 | return 0; | |
20196 | } | |
20197 | _ACEOF | |
20198 | rm -f conftest.$ac_objext | |
20199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20200 | (eval $ac_compile) 2>conftest.er1 | |
20201 | ac_status=$? | |
20202 | grep -v '^ *+' conftest.er1 >conftest.err | |
20203 | rm -f conftest.er1 | |
20204 | cat conftest.err >&5 | |
20205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20206 | (exit $ac_status); } && | |
b4e70030 JB |
20207 | { ac_try='test -z "$ac_c_werror_flag" |
20208 | || test ! -s conftest.err' | |
bec39cab AC |
20209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20210 | (eval $ac_try) 2>&5 | |
20211 | ac_status=$? | |
20212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20213 | (exit $ac_status); }; } && | |
20214 | { ac_try='test -s conftest.$ac_objext' | |
20215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20216 | (eval $ac_try) 2>&5 | |
20217 | ac_status=$? | |
20218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20219 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20220 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
20221 | else | |
bec39cab AC |
20222 | echo "$as_me: failed program was:" >&5 |
20223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20224 | ||
b4e70030 | 20225 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no |
bec39cab | 20226 | |
97bf5e38 | 20227 | fi |
bec39cab | 20228 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20229 | fi |
c906108c | 20230 | |
97bf5e38 | 20231 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
bec39cab AC |
20232 | |
20233 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20234 | #define HAVE_PR_SIGINFO64_T 1 |
bec39cab | 20235 | _ACEOF |
c906108c | 20236 | |
97bf5e38 | 20237 | fi |
b4e70030 JB |
20238 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
20239 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 | |
bec39cab AC |
20240 | |
20241 | ||
97bf5e38 MK |
20242 | |
20243 | ||
20244 | ||
97bf5e38 | 20245 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
b4e70030 JB |
20246 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
20247 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 | |
bec39cab AC |
20248 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then |
20249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
20250 | else |
20251 | if test "$cross_compiling" = yes; then | |
97bf5e38 | 20252 | gdb_cv_prfpregset_t_broken=yes |
c906108c | 20253 | else |
bec39cab AC |
20254 | cat >conftest.$ac_ext <<_ACEOF |
20255 | /* confdefs.h. */ | |
20256 | _ACEOF | |
20257 | cat confdefs.h >>conftest.$ac_ext | |
20258 | cat >>conftest.$ac_ext <<_ACEOF | |
20259 | /* end confdefs.h. */ | |
97bf5e38 MK |
20260 | #include <sys/procfs.h> |
20261 | int main () | |
20262 | { | |
20263 | if (sizeof (prfpregset_t) == sizeof (void *)) | |
20264 | return 1; | |
20265 | return 0; | |
20266 | } | |
bec39cab AC |
20267 | _ACEOF |
20268 | rm -f conftest$ac_exeext | |
20269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20270 | (eval $ac_link) 2>&5 | |
20271 | ac_status=$? | |
20272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20273 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20275 | (eval $ac_try) 2>&5 | |
20276 | ac_status=$? | |
20277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20278 | (exit $ac_status); }; }; then | |
97bf5e38 | 20279 | gdb_cv_prfpregset_t_broken=no |
c906108c | 20280 | else |
bec39cab AC |
20281 | echo "$as_me: program exited with status $ac_status" >&5 |
20282 | echo "$as_me: failed program was:" >&5 | |
20283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20284 | ||
20285 | ( exit $ac_status ) | |
20286 | gdb_cv_prfpregset_t_broken=yes | |
c906108c | 20287 | fi |
b4e70030 | 20288 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 20289 | fi |
c906108c SS |
20290 | fi |
20291 | ||
b4e70030 JB |
20292 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
20293 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 | |
97bf5e38 | 20294 | if test $gdb_cv_prfpregset_t_broken = yes; then |
60ca704f SE |
20295 | |
20296 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20297 | #define PRFPREGSET_T_BROKEN 1 |
bec39cab | 20298 | _ACEOF |
c906108c | 20299 | |
97bf5e38 MK |
20300 | fi |
20301 | fi | |
c906108c | 20302 | |
bec39cab | 20303 | |
b4e70030 JB |
20304 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 |
20305 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20306 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then |
20307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20308 | else |
bec39cab AC |
20309 | cat >conftest.$ac_ext <<_ACEOF |
20310 | /* confdefs.h. */ | |
20311 | _ACEOF | |
20312 | cat confdefs.h >>conftest.$ac_ext | |
20313 | cat >>conftest.$ac_ext <<_ACEOF | |
20314 | /* end confdefs.h. */ | |
97bf5e38 MK |
20315 | #include <unistd.h> |
20316 | #include <sys/types.h> | |
20317 | #include <sys/procfs.h> | |
20318 | ||
bec39cab AC |
20319 | int |
20320 | main () | |
20321 | { | |
97bf5e38 MK |
20322 | |
20323 | int dummy;; | |
20324 | dummy = ioctl(0, PIOCSET, &dummy); | |
bec39cab AC |
20325 | |
20326 | ; | |
20327 | return 0; | |
20328 | } | |
20329 | _ACEOF | |
20330 | rm -f conftest.$ac_objext | |
20331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20332 | (eval $ac_compile) 2>conftest.er1 | |
20333 | ac_status=$? | |
20334 | grep -v '^ *+' conftest.er1 >conftest.err | |
20335 | rm -f conftest.er1 | |
20336 | cat conftest.err >&5 | |
20337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20338 | (exit $ac_status); } && | |
b4e70030 JB |
20339 | { ac_try='test -z "$ac_c_werror_flag" |
20340 | || test ! -s conftest.err' | |
bec39cab AC |
20341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20342 | (eval $ac_try) 2>&5 | |
20343 | ac_status=$? | |
20344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20345 | (exit $ac_status); }; } && | |
20346 | { ac_try='test -s conftest.$ac_objext' | |
20347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20348 | (eval $ac_try) 2>&5 | |
20349 | ac_status=$? | |
20350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20351 | (exit $ac_status); }; }; then | |
97bf5e38 | 20352 | gdb_cv_have_procfs_piocset=yes |
c906108c | 20353 | else |
bec39cab AC |
20354 | echo "$as_me: failed program was:" >&5 |
20355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20356 | ||
b4e70030 | 20357 | gdb_cv_have_procfs_piocset=no |
c906108c | 20358 | fi |
bec39cab | 20359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20360 | fi |
97bf5e38 | 20361 | |
b4e70030 JB |
20362 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
20363 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 | |
97bf5e38 | 20364 | if test $gdb_cv_have_procfs_piocset = yes; then |
60ca704f SE |
20365 | |
20366 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20367 | #define HAVE_PROCFS_PIOCSET 1 |
bec39cab | 20368 | _ACEOF |
97bf5e38 MK |
20369 | |
20370 | fi | |
c906108c | 20371 | fi |
c906108c | 20372 | |
97bf5e38 | 20373 | if test ${host} = ${target} ; then |
bec39cab | 20374 | |
b4e70030 JB |
20375 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 |
20376 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
20377 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then |
20378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20379 | else | |
20380 | cat >conftest.$ac_ext <<_ACEOF | |
20381 | /* confdefs.h. */ | |
20382 | _ACEOF | |
20383 | cat confdefs.h >>conftest.$ac_ext | |
20384 | cat >>conftest.$ac_ext <<_ACEOF | |
20385 | /* end confdefs.h. */ | |
97bf5e38 | 20386 | #include <link.h> |
bec39cab AC |
20387 | int |
20388 | main () | |
20389 | { | |
97bf5e38 | 20390 | struct link_map lm; (void) lm.l_addr; |
bec39cab AC |
20391 | ; |
20392 | return 0; | |
20393 | } | |
20394 | _ACEOF | |
20395 | rm -f conftest.$ac_objext | |
20396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20397 | (eval $ac_compile) 2>conftest.er1 | |
20398 | ac_status=$? | |
20399 | grep -v '^ *+' conftest.er1 >conftest.err | |
20400 | rm -f conftest.er1 | |
20401 | cat conftest.err >&5 | |
20402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20403 | (exit $ac_status); } && | |
b4e70030 JB |
20404 | { ac_try='test -z "$ac_c_werror_flag" |
20405 | || test ! -s conftest.err' | |
bec39cab AC |
20406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20407 | (eval $ac_try) 2>&5 | |
20408 | ac_status=$? | |
20409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20410 | (exit $ac_status); }; } && | |
20411 | { ac_try='test -s conftest.$ac_objext' | |
20412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20413 | (eval $ac_try) 2>&5 | |
20414 | ac_status=$? | |
20415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20416 | (exit $ac_status); }; }; then | |
97bf5e38 | 20417 | gdb_cv_have_struct_link_map_with_l_members=yes |
c906108c | 20418 | else |
bec39cab AC |
20419 | echo "$as_me: failed program was:" >&5 |
20420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20421 | ||
b4e70030 | 20422 | gdb_cv_have_struct_link_map_with_l_members=no |
c906108c | 20423 | fi |
bec39cab | 20424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20425 | fi |
20426 | ||
b4e70030 JB |
20427 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
20428 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 | |
97bf5e38 | 20429 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
60ca704f SE |
20430 | |
20431 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20432 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
bec39cab | 20433 | _ACEOF |
97bf5e38 MK |
20434 | |
20435 | fi | |
20436 | ||
bec39cab | 20437 | |
b4e70030 JB |
20438 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 |
20439 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
20440 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then |
20441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20442 | else |
bec39cab AC |
20443 | cat >conftest.$ac_ext <<_ACEOF |
20444 | /* confdefs.h. */ | |
20445 | _ACEOF | |
20446 | cat confdefs.h >>conftest.$ac_ext | |
20447 | cat >>conftest.$ac_ext <<_ACEOF | |
20448 | /* end confdefs.h. */ | |
97bf5e38 MK |
20449 | #include <sys/types.h> |
20450 | #include <link.h> | |
bec39cab AC |
20451 | int |
20452 | main () | |
20453 | { | |
97bf5e38 | 20454 | struct link_map lm; (void) lm.lm_addr; |
bec39cab AC |
20455 | ; |
20456 | return 0; | |
20457 | } | |
20458 | _ACEOF | |
20459 | rm -f conftest.$ac_objext | |
20460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20461 | (eval $ac_compile) 2>conftest.er1 | |
20462 | ac_status=$? | |
20463 | grep -v '^ *+' conftest.er1 >conftest.err | |
20464 | rm -f conftest.er1 | |
20465 | cat conftest.err >&5 | |
20466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20467 | (exit $ac_status); } && | |
b4e70030 JB |
20468 | { ac_try='test -z "$ac_c_werror_flag" |
20469 | || test ! -s conftest.err' | |
bec39cab AC |
20470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20471 | (eval $ac_try) 2>&5 | |
20472 | ac_status=$? | |
20473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20474 | (exit $ac_status); }; } && | |
20475 | { ac_try='test -s conftest.$ac_objext' | |
20476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20477 | (eval $ac_try) 2>&5 | |
20478 | ac_status=$? | |
20479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20480 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20481 | gdb_cv_have_struct_link_map_with_lm_members=yes |
20482 | else | |
bec39cab AC |
20483 | echo "$as_me: failed program was:" >&5 |
20484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20485 | ||
b4e70030 | 20486 | gdb_cv_have_struct_link_map_with_lm_members=no |
97bf5e38 | 20487 | fi |
bec39cab | 20488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20489 | fi |
c906108c | 20490 | |
b4e70030 JB |
20491 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
20492 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 | |
97bf5e38 | 20493 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
60ca704f SE |
20494 | |
20495 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20496 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
bec39cab | 20497 | _ACEOF |
97bf5e38 MK |
20498 | |
20499 | fi | |
20500 | ||
bec39cab | 20501 | |
b4e70030 JB |
20502 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 |
20503 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 | |
bec39cab AC |
20504 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then |
20505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20506 | else |
bec39cab AC |
20507 | cat >conftest.$ac_ext <<_ACEOF |
20508 | /* confdefs.h. */ | |
20509 | _ACEOF | |
20510 | cat confdefs.h >>conftest.$ac_ext | |
20511 | cat >>conftest.$ac_ext <<_ACEOF | |
20512 | /* end confdefs.h. */ | |
97bf5e38 MK |
20513 | #include <sys/types.h> |
20514 | #ifdef HAVE_NLIST_H | |
20515 | #include <nlist.h> | |
20516 | #endif | |
20517 | #include <link.h> | |
bec39cab AC |
20518 | int |
20519 | main () | |
20520 | { | |
97bf5e38 | 20521 | struct so_map lm; (void) lm.som_addr; |
bec39cab AC |
20522 | ; |
20523 | return 0; | |
20524 | } | |
20525 | _ACEOF | |
20526 | rm -f conftest.$ac_objext | |
20527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20528 | (eval $ac_compile) 2>conftest.er1 | |
20529 | ac_status=$? | |
20530 | grep -v '^ *+' conftest.er1 >conftest.err | |
20531 | rm -f conftest.er1 | |
20532 | cat conftest.err >&5 | |
20533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20534 | (exit $ac_status); } && | |
b4e70030 JB |
20535 | { ac_try='test -z "$ac_c_werror_flag" |
20536 | || test ! -s conftest.err' | |
bec39cab AC |
20537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20538 | (eval $ac_try) 2>&5 | |
20539 | ac_status=$? | |
20540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20541 | (exit $ac_status); }; } && | |
20542 | { ac_try='test -s conftest.$ac_objext' | |
20543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20544 | (eval $ac_try) 2>&5 | |
20545 | ac_status=$? | |
20546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20547 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20548 | gdb_cv_have_struct_so_map_with_som_members=yes |
20549 | else | |
bec39cab AC |
20550 | echo "$as_me: failed program was:" >&5 |
20551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20552 | ||
b4e70030 | 20553 | gdb_cv_have_struct_so_map_with_som_members=no |
97bf5e38 | 20554 | fi |
bec39cab | 20555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20556 | fi |
c906108c | 20557 | |
b4e70030 JB |
20558 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
20559 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 | |
97bf5e38 | 20560 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
60ca704f SE |
20561 | |
20562 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20563 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
bec39cab | 20564 | _ACEOF |
c906108c | 20565 | |
97bf5e38 | 20566 | fi |
c906108c | 20567 | |
bec39cab | 20568 | |
b4e70030 JB |
20569 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 |
20570 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 | |
bec39cab AC |
20571 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then |
20572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 20573 | else |
bec39cab AC |
20574 | cat >conftest.$ac_ext <<_ACEOF |
20575 | /* confdefs.h. */ | |
20576 | _ACEOF | |
20577 | cat confdefs.h >>conftest.$ac_ext | |
20578 | cat >>conftest.$ac_ext <<_ACEOF | |
20579 | /* end confdefs.h. */ | |
97bf5e38 MK |
20580 | #define _SYSCALL32 |
20581 | #include <sys/link.h> | |
bec39cab AC |
20582 | int |
20583 | main () | |
20584 | { | |
97bf5e38 | 20585 | struct link_map32 l; |
bec39cab AC |
20586 | ; |
20587 | return 0; | |
20588 | } | |
20589 | _ACEOF | |
20590 | rm -f conftest.$ac_objext | |
20591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20592 | (eval $ac_compile) 2>conftest.er1 | |
20593 | ac_status=$? | |
20594 | grep -v '^ *+' conftest.er1 >conftest.err | |
20595 | rm -f conftest.er1 | |
20596 | cat conftest.err >&5 | |
20597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20598 | (exit $ac_status); } && | |
b4e70030 JB |
20599 | { ac_try='test -z "$ac_c_werror_flag" |
20600 | || test ! -s conftest.err' | |
bec39cab AC |
20601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20602 | (eval $ac_try) 2>&5 | |
20603 | ac_status=$? | |
20604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20605 | (exit $ac_status); }; } && | |
20606 | { ac_try='test -s conftest.$ac_objext' | |
20607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20608 | (eval $ac_try) 2>&5 | |
20609 | ac_status=$? | |
20610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20611 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20612 | gdb_cv_have_struct_link_map32=yes |
20613 | else | |
bec39cab AC |
20614 | echo "$as_me: failed program was:" >&5 |
20615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20616 | ||
b4e70030 | 20617 | gdb_cv_have_struct_link_map32=no |
97bf5e38 | 20618 | fi |
bec39cab | 20619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20620 | fi |
c906108c | 20621 | |
b4e70030 JB |
20622 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
20623 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 | |
97bf5e38 | 20624 | if test $gdb_cv_have_struct_link_map32 = yes; then |
60ca704f SE |
20625 | |
20626 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20627 | #define HAVE_STRUCT_LINK_MAP32 1 |
bec39cab | 20628 | _ACEOF |
c906108c | 20629 | |
60ca704f SE |
20630 | |
20631 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20632 | #define _SYSCALL32 1 |
bec39cab | 20633 | _ACEOF |
c906108c | 20634 | |
97bf5e38 MK |
20635 | fi |
20636 | fi | |
c906108c | 20637 | |
bc8bcb4b | 20638 | # Check if the compiler supports the `long long' type. |
c906108c | 20639 | |
b4e70030 JB |
20640 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
20641 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 | |
bec39cab AC |
20642 | if test "${gdb_cv_c_long_long+set}" = set; then |
20643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 20644 | else |
bec39cab AC |
20645 | cat >conftest.$ac_ext <<_ACEOF |
20646 | /* confdefs.h. */ | |
20647 | _ACEOF | |
20648 | cat confdefs.h >>conftest.$ac_ext | |
20649 | cat >>conftest.$ac_ext <<_ACEOF | |
20650 | /* end confdefs.h. */ | |
bc8bcb4b | 20651 | extern long long foo; |
bec39cab AC |
20652 | int |
20653 | main () | |
20654 | { | |
bc8bcb4b | 20655 | switch (foo & 2) { case 0: return 1; } |
bec39cab AC |
20656 | ; |
20657 | return 0; | |
20658 | } | |
20659 | _ACEOF | |
20660 | rm -f conftest.$ac_objext | |
20661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20662 | (eval $ac_compile) 2>conftest.er1 | |
20663 | ac_status=$? | |
20664 | grep -v '^ *+' conftest.er1 >conftest.err | |
20665 | rm -f conftest.er1 | |
20666 | cat conftest.err >&5 | |
20667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20668 | (exit $ac_status); } && | |
b4e70030 JB |
20669 | { ac_try='test -z "$ac_c_werror_flag" |
20670 | || test ! -s conftest.err' | |
bec39cab AC |
20671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20672 | (eval $ac_try) 2>&5 | |
20673 | ac_status=$? | |
20674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20675 | (exit $ac_status); }; } && | |
20676 | { ac_try='test -s conftest.$ac_objext' | |
20677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20678 | (eval $ac_try) 2>&5 | |
20679 | ac_status=$? | |
20680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20681 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20682 | gdb_cv_c_long_long=yes |
20683 | else | |
bec39cab AC |
20684 | echo "$as_me: failed program was:" >&5 |
20685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20686 | ||
b4e70030 | 20687 | gdb_cv_c_long_long=no |
97bf5e38 | 20688 | fi |
bec39cab | 20689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20690 | fi |
b4e70030 JB |
20691 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
20692 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 | |
97bf5e38 | 20693 | if test $gdb_cv_c_long_long = yes; then |
bc8bcb4b MK |
20694 | |
20695 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20696 | #define CC_HAS_LONG_LONG 1 |
bec39cab | 20697 | _ACEOF |
97bf5e38 MK |
20698 | |
20699 | fi | |
20700 | ||
bc8bcb4b | 20701 | # Check if the compiler and runtime support printing long longs. |
97bf5e38 | 20702 | |
b4e70030 JB |
20703 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
20704 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 | |
bec39cab AC |
20705 | if test "${gdb_cv_printf_has_long_long+set}" = set; then |
20706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
20707 | else |
20708 | if test "$cross_compiling" = yes; then | |
20709 | gdb_cv_printf_has_long_long=no | |
20710 | else | |
bec39cab AC |
20711 | cat >conftest.$ac_ext <<_ACEOF |
20712 | /* confdefs.h. */ | |
20713 | _ACEOF | |
20714 | cat confdefs.h >>conftest.$ac_ext | |
20715 | cat >>conftest.$ac_ext <<_ACEOF | |
20716 | /* end confdefs.h. */ | |
bc8bcb4b MK |
20717 | $ac_includes_default |
20718 | int | |
20719 | main () | |
20720 | { | |
20721 | char buf[32]; | |
97bf5e38 MK |
20722 | long long l = 0; |
20723 | l = (l << 16) + 0x0123; | |
20724 | l = (l << 16) + 0x4567; | |
20725 | l = (l << 16) + 0x89ab; | |
20726 | l = (l << 16) + 0xcdef; | |
20727 | sprintf (buf, "0x%016llx", l); | |
20728 | return (strcmp ("0x0123456789abcdef", buf)); | |
bc8bcb4b MK |
20729 | ; |
20730 | return 0; | |
c906108c | 20731 | } |
bec39cab AC |
20732 | _ACEOF |
20733 | rm -f conftest$ac_exeext | |
20734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20735 | (eval $ac_link) 2>&5 | |
20736 | ac_status=$? | |
20737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20738 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20740 | (eval $ac_try) 2>&5 | |
20741 | ac_status=$? | |
20742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20743 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20744 | gdb_cv_printf_has_long_long=yes |
20745 | else | |
bec39cab AC |
20746 | echo "$as_me: program exited with status $ac_status" >&5 |
20747 | echo "$as_me: failed program was:" >&5 | |
20748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20749 | ||
20750 | ( exit $ac_status ) | |
20751 | gdb_cv_printf_has_long_long=no | |
97bf5e38 | 20752 | fi |
b4e70030 | 20753 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20754 | fi |
97bf5e38 | 20755 | fi |
b4e70030 JB |
20756 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
20757 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 | |
97bf5e38 | 20758 | if test $gdb_cv_printf_has_long_long = yes; then |
bc8bcb4b MK |
20759 | |
20760 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20761 | #define PRINTF_HAS_LONG_LONG 1 |
bec39cab | 20762 | _ACEOF |
97bf5e38 MK |
20763 | |
20764 | fi | |
97bf5e38 | 20765 | |
bc8bcb4b MK |
20766 | # Check if the compiler supports the `long double' type. We can't use |
20767 | # AC_C_LONG_DOUBLE because that one does additional checks on the | |
20768 | # constants defined in <float.h> that fail on some systems, | |
20769 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. | |
97bf5e38 | 20770 | |
b4e70030 JB |
20771 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
20772 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 | |
bc8bcb4b | 20773 | if test "${gdb_cv_c_long_double+set}" = set; then |
bec39cab | 20774 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 20775 | else |
bec39cab AC |
20776 | cat >conftest.$ac_ext <<_ACEOF |
20777 | /* confdefs.h. */ | |
20778 | _ACEOF | |
20779 | cat confdefs.h >>conftest.$ac_ext | |
20780 | cat >>conftest.$ac_ext <<_ACEOF | |
20781 | /* end confdefs.h. */ | |
97bf5e38 | 20782 | long double foo; |
bec39cab AC |
20783 | _ACEOF |
20784 | rm -f conftest.$ac_objext | |
20785 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20786 | (eval $ac_compile) 2>conftest.er1 | |
20787 | ac_status=$? | |
20788 | grep -v '^ *+' conftest.er1 >conftest.err | |
20789 | rm -f conftest.er1 | |
20790 | cat conftest.err >&5 | |
20791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20792 | (exit $ac_status); } && | |
b4e70030 JB |
20793 | { ac_try='test -z "$ac_c_werror_flag" |
20794 | || test ! -s conftest.err' | |
bec39cab AC |
20795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20796 | (eval $ac_try) 2>&5 | |
20797 | ac_status=$? | |
20798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20799 | (exit $ac_status); }; } && | |
20800 | { ac_try='test -s conftest.$ac_objext' | |
20801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20802 | (eval $ac_try) 2>&5 | |
20803 | ac_status=$? | |
20804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20805 | (exit $ac_status); }; }; then | |
bc8bcb4b | 20806 | gdb_cv_c_long_double=yes |
97bf5e38 | 20807 | else |
bec39cab AC |
20808 | echo "$as_me: failed program was:" >&5 |
20809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20810 | ||
b4e70030 | 20811 | gdb_cv_c_long_double=no |
97bf5e38 | 20812 | fi |
bec39cab | 20813 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20814 | fi |
b4e70030 JB |
20815 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
20816 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6 | |
bc8bcb4b | 20817 | if test $gdb_cv_c_long_double = yes; then |
c906108c | 20818 | |
bc8bcb4b | 20819 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 20820 | #define HAVE_LONG_DOUBLE 1 |
bec39cab | 20821 | _ACEOF |
97bf5e38 MK |
20822 | |
20823 | fi | |
20824 | ||
bc8bcb4b | 20825 | # Check if the compiler and runtime support printing long doubles. |
97bf5e38 | 20826 | |
b4e70030 JB |
20827 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
20828 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 | |
bec39cab AC |
20829 | if test "${gdb_cv_printf_has_long_double+set}" = set; then |
20830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
20831 | else |
20832 | if test "$cross_compiling" = yes; then | |
20833 | gdb_cv_printf_has_long_double=no | |
20834 | else | |
bec39cab AC |
20835 | cat >conftest.$ac_ext <<_ACEOF |
20836 | /* confdefs.h. */ | |
20837 | _ACEOF | |
20838 | cat confdefs.h >>conftest.$ac_ext | |
20839 | cat >>conftest.$ac_ext <<_ACEOF | |
20840 | /* end confdefs.h. */ | |
bc8bcb4b MK |
20841 | $ac_includes_default |
20842 | int | |
20843 | main () | |
20844 | { | |
20845 | char buf[16]; | |
97bf5e38 MK |
20846 | long double f = 3.141592653; |
20847 | sprintf (buf, "%Lg", f); | |
20848 | return (strncmp ("3.14159", buf, 7)); | |
bc8bcb4b MK |
20849 | ; |
20850 | return 0; | |
97bf5e38 | 20851 | } |
bec39cab AC |
20852 | _ACEOF |
20853 | rm -f conftest$ac_exeext | |
20854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20855 | (eval $ac_link) 2>&5 | |
20856 | ac_status=$? | |
20857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20858 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20860 | (eval $ac_try) 2>&5 | |
20861 | ac_status=$? | |
20862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20863 | (exit $ac_status); }; }; then | |
97bf5e38 | 20864 | gdb_cv_printf_has_long_double=yes |
c906108c | 20865 | else |
bec39cab AC |
20866 | echo "$as_me: program exited with status $ac_status" >&5 |
20867 | echo "$as_me: failed program was:" >&5 | |
20868 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20869 | ||
20870 | ( exit $ac_status ) | |
20871 | gdb_cv_printf_has_long_double=no | |
c906108c | 20872 | fi |
b4e70030 | 20873 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 20874 | fi |
c906108c | 20875 | fi |
b4e70030 JB |
20876 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
20877 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 | |
97bf5e38 | 20878 | if test $gdb_cv_printf_has_long_double = yes; then |
bc8bcb4b MK |
20879 | |
20880 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20881 | #define PRINTF_HAS_LONG_DOUBLE 1 |
bec39cab | 20882 | _ACEOF |
97bf5e38 MK |
20883 | |
20884 | fi | |
97bf5e38 | 20885 | |
bc8bcb4b | 20886 | # Check if the compiler and runtime support scanning long doubles. |
97bf5e38 | 20887 | |
b4e70030 JB |
20888 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
20889 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 | |
bec39cab AC |
20890 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then |
20891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
20892 | else |
20893 | if test "$cross_compiling" = yes; then | |
20894 | gdb_cv_scanf_has_long_double=no | |
20895 | else | |
bec39cab AC |
20896 | cat >conftest.$ac_ext <<_ACEOF |
20897 | /* confdefs.h. */ | |
20898 | _ACEOF | |
20899 | cat confdefs.h >>conftest.$ac_ext | |
20900 | cat >>conftest.$ac_ext <<_ACEOF | |
20901 | /* end confdefs.h. */ | |
bc8bcb4b MK |
20902 | #include <stdio.h> |
20903 | int | |
20904 | main () | |
20905 | { | |
20906 | char *buf = "3.141592653"; | |
97bf5e38 MK |
20907 | long double f = 0; |
20908 | sscanf (buf, "%Lg", &f); | |
20909 | return !(f > 3.14159 && f < 3.14160); | |
bc8bcb4b MK |
20910 | ; |
20911 | return 0; | |
97bf5e38 | 20912 | } |
bec39cab AC |
20913 | _ACEOF |
20914 | rm -f conftest$ac_exeext | |
20915 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20916 | (eval $ac_link) 2>&5 | |
20917 | ac_status=$? | |
20918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20919 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20921 | (eval $ac_try) 2>&5 | |
20922 | ac_status=$? | |
20923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20924 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20925 | gdb_cv_scanf_has_long_double=yes |
20926 | else | |
bec39cab AC |
20927 | echo "$as_me: program exited with status $ac_status" >&5 |
20928 | echo "$as_me: failed program was:" >&5 | |
20929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20930 | ||
20931 | ( exit $ac_status ) | |
20932 | gdb_cv_scanf_has_long_double=no | |
97bf5e38 | 20933 | fi |
b4e70030 | 20934 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 20935 | fi |
c906108c | 20936 | fi |
b4e70030 JB |
20937 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
20938 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 | |
97bf5e38 | 20939 | if test $gdb_cv_scanf_has_long_double = yes; then |
bc8bcb4b MK |
20940 | |
20941 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20942 | #define SCANF_HAS_LONG_DOUBLE 1 |
bec39cab | 20943 | _ACEOF |
97bf5e38 MK |
20944 | |
20945 | fi | |
c906108c | 20946 | |
438013df AO |
20947 | case ${host_os} in |
20948 | aix*) | |
b4e70030 JB |
20949 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
20950 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
bec39cab AC |
20951 | if test "${gdb_cv_bigtoc+set}" = set; then |
20952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
438013df | 20953 | else |
bec39cab | 20954 | |
438013df AO |
20955 | SAVE_LDFLAGS=$LDFLAGS |
20956 | ||
20957 | case $GCC in | |
20958 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
20959 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
20960 | esac | |
20961 | ||
20962 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
bec39cab AC |
20963 | cat >conftest.$ac_ext <<_ACEOF |
20964 | /* confdefs.h. */ | |
20965 | _ACEOF | |
20966 | cat confdefs.h >>conftest.$ac_ext | |
20967 | cat >>conftest.$ac_ext <<_ACEOF | |
20968 | /* end confdefs.h. */ | |
438013df | 20969 | |
bec39cab AC |
20970 | int |
20971 | main () | |
20972 | { | |
438013df | 20973 | int i; |
bec39cab AC |
20974 | ; |
20975 | return 0; | |
20976 | } | |
20977 | _ACEOF | |
20978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20980 | (eval $ac_link) 2>conftest.er1 | |
20981 | ac_status=$? | |
20982 | grep -v '^ *+' conftest.er1 >conftest.err | |
20983 | rm -f conftest.er1 | |
20984 | cat conftest.err >&5 | |
20985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20986 | (exit $ac_status); } && | |
b4e70030 JB |
20987 | { ac_try='test -z "$ac_c_werror_flag" |
20988 | || test ! -s conftest.err' | |
bec39cab AC |
20989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20990 | (eval $ac_try) 2>&5 | |
20991 | ac_status=$? | |
20992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20993 | (exit $ac_status); }; } && | |
20994 | { ac_try='test -s conftest$ac_exeext' | |
20995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20996 | (eval $ac_try) 2>&5 | |
20997 | ac_status=$? | |
20998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20999 | (exit $ac_status); }; }; then | |
438013df AO |
21000 | : |
21001 | else | |
bec39cab AC |
21002 | echo "$as_me: failed program was:" >&5 |
21003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21004 | ||
b4e70030 | 21005 | gdb_cv_bigtoc= |
438013df | 21006 | fi |
bec39cab AC |
21007 | rm -f conftest.err conftest.$ac_objext \ |
21008 | conftest$ac_exeext conftest.$ac_ext | |
ec76baa5 | 21009 | LDFLAGS="${SAVE_LDFLAGS}" |
438013df | 21010 | |
bec39cab | 21011 | fi |
b4e70030 JB |
21012 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
21013 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
438013df AO |
21014 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
21015 | ;; | |
21016 | esac | |
21017 | ||
c906108c SS |
21018 | |
21019 | ||
21020 | if test ${build} = ${host} -a ${host} = ${target} ; then | |
21021 | case ${host_os} in | |
21022 | hpux*) | |
b4e70030 JB |
21023 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
21024 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 | |
c906108c SS |
21025 | if test -f /usr/include/dce/cma_config.h ; then |
21026 | if test "$GCC" = "yes" ; then | |
b4e70030 JB |
21027 | echo "$as_me:$LINENO: result: yes" >&5 |
21028 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
21029 | |
21030 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 21031 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
bec39cab | 21032 | _ACEOF |
c906108c | 21033 | |
3483b318 | 21034 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
c906108c SS |
21035 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
21036 | else | |
b4e70030 JB |
21037 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
21038 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 | |
c906108c SS |
21039 | fi |
21040 | else | |
b4e70030 JB |
21041 | echo "$as_me:$LINENO: result: no" >&5 |
21042 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
21043 | fi |
21044 | ;; | |
21045 | solaris*) | |
d92419e5 JB |
21046 | # See if thread_db library is around for Solaris thread debugging. |
21047 | # Note that we must explicitly test for version 1 of the library | |
21048 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have | |
21049 | # the same API. | |
b4e70030 JB |
21050 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
21051 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 | |
c906108c | 21052 | if test -f /usr/lib/libthread_db.so.1 ; then |
b4e70030 JB |
21053 | echo "$as_me:$LINENO: result: yes" >&5 |
21054 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
21055 | |
21056 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 21057 | #define HAVE_THREAD_DB_LIB 1 |
bec39cab | 21058 | _ACEOF |
c906108c | 21059 | |
3483b318 | 21060 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
c906108c | 21061 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
bec39cab | 21062 | |
b4e70030 JB |
21063 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
21064 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
bec39cab AC |
21065 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
21066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21067 | else |
bec39cab | 21068 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 21069 | LIBS="-ldl $LIBS" |
bec39cab AC |
21070 | cat >conftest.$ac_ext <<_ACEOF |
21071 | /* confdefs.h. */ | |
21072 | _ACEOF | |
21073 | cat confdefs.h >>conftest.$ac_ext | |
21074 | cat >>conftest.$ac_ext <<_ACEOF | |
21075 | /* end confdefs.h. */ | |
21076 | ||
b4e70030 | 21077 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
21078 | #ifdef __cplusplus |
21079 | extern "C" | |
21080 | #endif | |
b4e70030 JB |
21081 | /* We use char because int might match the return type of a gcc2 |
21082 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
21083 | char dlopen (); |
21084 | int | |
21085 | main () | |
21086 | { | |
b4e70030 | 21087 | dlopen (); |
bec39cab AC |
21088 | ; |
21089 | return 0; | |
21090 | } | |
21091 | _ACEOF | |
21092 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21094 | (eval $ac_link) 2>conftest.er1 | |
21095 | ac_status=$? | |
21096 | grep -v '^ *+' conftest.er1 >conftest.err | |
21097 | rm -f conftest.er1 | |
21098 | cat conftest.err >&5 | |
21099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21100 | (exit $ac_status); } && | |
b4e70030 JB |
21101 | { ac_try='test -z "$ac_c_werror_flag" |
21102 | || test ! -s conftest.err' | |
bec39cab AC |
21103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21104 | (eval $ac_try) 2>&5 | |
21105 | ac_status=$? | |
21106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21107 | (exit $ac_status); }; } && | |
21108 | { ac_try='test -s conftest$ac_exeext' | |
21109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21110 | (eval $ac_try) 2>&5 | |
21111 | ac_status=$? | |
21112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21113 | (exit $ac_status); }; }; then | |
21114 | ac_cv_lib_dl_dlopen=yes | |
21115 | else | |
21116 | echo "$as_me: failed program was:" >&5 | |
21117 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21118 | ||
b4e70030 | 21119 | ac_cv_lib_dl_dlopen=no |
bec39cab AC |
21120 | fi |
21121 | rm -f conftest.err conftest.$ac_objext \ | |
21122 | conftest$ac_exeext conftest.$ac_ext | |
21123 | LIBS=$ac_check_lib_save_LIBS | |
21124 | fi | |
b4e70030 JB |
21125 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
21126 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
bec39cab AC |
21127 | if test $ac_cv_lib_dl_dlopen = yes; then |
21128 | cat >>confdefs.h <<_ACEOF | |
21129 | #define HAVE_LIBDL 1 | |
21130 | _ACEOF | |
c906108c SS |
21131 | |
21132 | LIBS="-ldl $LIBS" | |
21133 | ||
c906108c SS |
21134 | fi |
21135 | ||
21136 | if test "$GCC" = "yes" ; then | |
21137 | # The GNU linker requires the -export-dynamic option to make | |
21138 | # all symbols visible in the dynamic symbol table. | |
21139 | hold_ldflags=$LDFLAGS | |
b4e70030 JB |
21140 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
21141 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 | |
c906108c | 21142 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
bec39cab AC |
21143 | cat >conftest.$ac_ext <<_ACEOF |
21144 | /* confdefs.h. */ | |
21145 | _ACEOF | |
21146 | cat confdefs.h >>conftest.$ac_ext | |
21147 | cat >>conftest.$ac_ext <<_ACEOF | |
21148 | /* end confdefs.h. */ | |
c906108c | 21149 | |
bec39cab AC |
21150 | int |
21151 | main () | |
21152 | { | |
c906108c | 21153 | int i; |
bec39cab AC |
21154 | ; |
21155 | return 0; | |
21156 | } | |
21157 | _ACEOF | |
21158 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21159 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21160 | (eval $ac_link) 2>conftest.er1 | |
21161 | ac_status=$? | |
21162 | grep -v '^ *+' conftest.er1 >conftest.err | |
21163 | rm -f conftest.er1 | |
21164 | cat conftest.err >&5 | |
21165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21166 | (exit $ac_status); } && | |
b4e70030 JB |
21167 | { ac_try='test -z "$ac_c_werror_flag" |
21168 | || test ! -s conftest.err' | |
bec39cab AC |
21169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21170 | (eval $ac_try) 2>&5 | |
21171 | ac_status=$? | |
21172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21173 | (exit $ac_status); }; } && | |
21174 | { ac_try='test -s conftest$ac_exeext' | |
21175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21176 | (eval $ac_try) 2>&5 | |
21177 | ac_status=$? | |
21178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21179 | (exit $ac_status); }; }; then | |
c906108c SS |
21180 | found=yes |
21181 | else | |
bec39cab AC |
21182 | echo "$as_me: failed program was:" >&5 |
21183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21184 | ||
b4e70030 | 21185 | found=no |
c906108c | 21186 | fi |
bec39cab AC |
21187 | rm -f conftest.err conftest.$ac_objext \ |
21188 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 21189 | LDFLAGS=$hold_ldflags |
b4e70030 JB |
21190 | echo "$as_me:$LINENO: result: $found" >&5 |
21191 | echo "${ECHO_T}$found" >&6 | |
c906108c SS |
21192 | if test $found = yes; then |
21193 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" | |
21194 | fi | |
21195 | fi | |
21196 | # Sun randomly tweaked the prototypes in <proc_service.h> | |
21197 | # at one point. | |
b4e70030 JB |
21198 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
21199 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 | |
bec39cab AC |
21200 | if test "${gdb_cv_proc_service_is_old+set}" = set; then |
21201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21202 | else |
bec39cab AC |
21203 | |
21204 | cat >conftest.$ac_ext <<_ACEOF | |
21205 | /* confdefs.h. */ | |
21206 | _ACEOF | |
21207 | cat confdefs.h >>conftest.$ac_ext | |
21208 | cat >>conftest.$ac_ext <<_ACEOF | |
21209 | /* end confdefs.h. */ | |
c906108c SS |
21210 | |
21211 | #include <proc_service.h> | |
21212 | ps_err_e ps_pdwrite | |
21213 | (struct ps_prochandle*, psaddr_t, const void*, size_t); | |
c906108c | 21214 | |
bec39cab AC |
21215 | int |
21216 | main () | |
21217 | { | |
21218 | ||
21219 | ; | |
21220 | return 0; | |
21221 | } | |
21222 | _ACEOF | |
21223 | rm -f conftest.$ac_objext | |
21224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21225 | (eval $ac_compile) 2>conftest.er1 | |
21226 | ac_status=$? | |
21227 | grep -v '^ *+' conftest.er1 >conftest.err | |
21228 | rm -f conftest.er1 | |
21229 | cat conftest.err >&5 | |
21230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21231 | (exit $ac_status); } && | |
b4e70030 JB |
21232 | { ac_try='test -z "$ac_c_werror_flag" |
21233 | || test ! -s conftest.err' | |
bec39cab AC |
21234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21235 | (eval $ac_try) 2>&5 | |
21236 | ac_status=$? | |
21237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21238 | (exit $ac_status); }; } && | |
21239 | { ac_try='test -s conftest.$ac_objext' | |
21240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21241 | (eval $ac_try) 2>&5 | |
21242 | ac_status=$? | |
21243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21244 | (exit $ac_status); }; }; then | |
c906108c SS |
21245 | gdb_cv_proc_service_is_old=no |
21246 | else | |
bec39cab AC |
21247 | echo "$as_me: failed program was:" >&5 |
21248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21249 | ||
b4e70030 | 21250 | gdb_cv_proc_service_is_old=yes |
c906108c | 21251 | fi |
bec39cab AC |
21252 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21253 | ||
c906108c SS |
21254 | fi |
21255 | ||
b4e70030 JB |
21256 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
21257 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 | |
c906108c | 21258 | if test $gdb_cv_proc_service_is_old = yes; then |
60ca704f SE |
21259 | |
21260 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 21261 | #define PROC_SERVICE_IS_OLD 1 |
bec39cab | 21262 | _ACEOF |
c906108c SS |
21263 | |
21264 | fi | |
21265 | else | |
b4e70030 JB |
21266 | echo "$as_me:$LINENO: result: no" >&5 |
21267 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
21268 | fi |
21269 | ;; | |
d92419e5 | 21270 | aix*) |
b4e70030 JB |
21271 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
21272 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 | |
bec39cab AC |
21273 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then |
21274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21275 | else | |
21276 | cat >conftest.$ac_ext <<_ACEOF | |
21277 | /* confdefs.h. */ | |
21278 | _ACEOF | |
21279 | cat confdefs.h >>conftest.$ac_ext | |
21280 | cat >>conftest.$ac_ext <<_ACEOF | |
21281 | /* end confdefs.h. */ | |
d92419e5 | 21282 | #include <sys/pthdebug.h> |
bec39cab AC |
21283 | int |
21284 | main () | |
21285 | { | |
d92419e5 JB |
21286 | #ifndef PTHDB_VERSION_3 |
21287 | #error | |
21288 | #endif | |
bec39cab AC |
21289 | ; |
21290 | return 0; | |
21291 | } | |
21292 | _ACEOF | |
21293 | rm -f conftest.$ac_objext | |
21294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21295 | (eval $ac_compile) 2>conftest.er1 | |
21296 | ac_status=$? | |
21297 | grep -v '^ *+' conftest.er1 >conftest.err | |
21298 | rm -f conftest.er1 | |
21299 | cat conftest.err >&5 | |
21300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21301 | (exit $ac_status); } && | |
b4e70030 JB |
21302 | { ac_try='test -z "$ac_c_werror_flag" |
21303 | || test ! -s conftest.err' | |
bec39cab AC |
21304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21305 | (eval $ac_try) 2>&5 | |
21306 | ac_status=$? | |
21307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21308 | (exit $ac_status); }; } && | |
21309 | { ac_try='test -s conftest.$ac_objext' | |
21310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21311 | (eval $ac_try) 2>&5 | |
21312 | ac_status=$? | |
21313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21314 | (exit $ac_status); }; }; then | |
d92419e5 JB |
21315 | gdb_cv_have_aix_thread_debug=yes |
21316 | else | |
bec39cab AC |
21317 | echo "$as_me: failed program was:" >&5 |
21318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21319 | ||
b4e70030 | 21320 | gdb_cv_have_aix_thread_debug=no |
d92419e5 | 21321 | fi |
bec39cab | 21322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d92419e5 JB |
21323 | fi |
21324 | ||
b4e70030 JB |
21325 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
21326 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 | |
d92419e5 JB |
21327 | if test $gdb_cv_have_aix_thread_debug = yes; then |
21328 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | |
3483b318 | 21329 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
d92419e5 JB |
21330 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
21331 | fi | |
21332 | ;; | |
c906108c | 21333 | esac |
bec39cab | 21334 | |
c906108c SS |
21335 | fi |
21336 | ||
3f47be5c | 21337 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
b4e70030 JB |
21338 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
21339 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 | |
bec39cab AC |
21340 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then |
21341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21342 | else | |
21343 | cat >conftest.$ac_ext <<_ACEOF | |
21344 | /* confdefs.h. */ | |
21345 | _ACEOF | |
21346 | cat confdefs.h >>conftest.$ac_ext | |
21347 | cat >>conftest.$ac_ext <<_ACEOF | |
21348 | /* end confdefs.h. */ | |
3f47be5c | 21349 | #include <thread_db.h> |
bec39cab AC |
21350 | int |
21351 | main () | |
21352 | { | |
3f47be5c | 21353 | int i = TD_NOTALLOC; |
bec39cab AC |
21354 | ; |
21355 | return 0; | |
21356 | } | |
21357 | _ACEOF | |
21358 | rm -f conftest.$ac_objext | |
21359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21360 | (eval $ac_compile) 2>conftest.er1 | |
21361 | ac_status=$? | |
21362 | grep -v '^ *+' conftest.er1 >conftest.err | |
21363 | rm -f conftest.er1 | |
21364 | cat conftest.err >&5 | |
21365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21366 | (exit $ac_status); } && | |
b4e70030 JB |
21367 | { ac_try='test -z "$ac_c_werror_flag" |
21368 | || test ! -s conftest.err' | |
bec39cab AC |
21369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21370 | (eval $ac_try) 2>&5 | |
21371 | ac_status=$? | |
21372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21373 | (exit $ac_status); }; } && | |
21374 | { ac_try='test -s conftest.$ac_objext' | |
21375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21376 | (eval $ac_try) 2>&5 | |
21377 | ac_status=$? | |
21378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21379 | (exit $ac_status); }; }; then | |
3f47be5c EZ |
21380 | gdb_cv_thread_db_h_has_td_notalloc=yes |
21381 | else | |
bec39cab AC |
21382 | echo "$as_me: failed program was:" >&5 |
21383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21384 | ||
b4e70030 | 21385 | gdb_cv_thread_db_h_has_td_notalloc=no |
bec39cab | 21386 | |
3f47be5c | 21387 | fi |
bec39cab | 21388 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f47be5c | 21389 | |
bec39cab | 21390 | fi |
b4e70030 JB |
21391 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 |
21392 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 | |
59f80f10 DJ |
21393 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5 |
21394 | echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6 | |
21395 | if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then | |
21396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21397 | else | |
21398 | cat >conftest.$ac_ext <<_ACEOF | |
21399 | /* confdefs.h. */ | |
21400 | _ACEOF | |
21401 | cat confdefs.h >>conftest.$ac_ext | |
21402 | cat >>conftest.$ac_ext <<_ACEOF | |
21403 | /* end confdefs.h. */ | |
21404 | #include <thread_db.h> | |
21405 | int | |
21406 | main () | |
21407 | { | |
21408 | int i = TD_VERSION; | |
21409 | ; | |
21410 | return 0; | |
21411 | } | |
21412 | _ACEOF | |
21413 | rm -f conftest.$ac_objext | |
21414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21415 | (eval $ac_compile) 2>conftest.er1 | |
21416 | ac_status=$? | |
21417 | grep -v '^ *+' conftest.er1 >conftest.err | |
21418 | rm -f conftest.er1 | |
21419 | cat conftest.err >&5 | |
21420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21421 | (exit $ac_status); } && | |
21422 | { ac_try='test -z "$ac_c_werror_flag" | |
21423 | || test ! -s conftest.err' | |
21424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21425 | (eval $ac_try) 2>&5 | |
21426 | ac_status=$? | |
21427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21428 | (exit $ac_status); }; } && | |
21429 | { ac_try='test -s conftest.$ac_objext' | |
21430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21431 | (eval $ac_try) 2>&5 | |
21432 | ac_status=$? | |
21433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21434 | (exit $ac_status); }; }; then | |
21435 | gdb_cv_thread_db_h_has_td_version=yes | |
21436 | else | |
21437 | echo "$as_me: failed program was:" >&5 | |
21438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21439 | ||
21440 | gdb_cv_thread_db_h_has_td_version=no | |
21441 | ||
21442 | fi | |
21443 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21444 | ||
21445 | fi | |
21446 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5 | |
21447 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6 | |
21448 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5 | |
21449 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6 | |
21450 | if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then | |
21451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21452 | else | |
21453 | cat >conftest.$ac_ext <<_ACEOF | |
21454 | /* confdefs.h. */ | |
21455 | _ACEOF | |
21456 | cat confdefs.h >>conftest.$ac_ext | |
21457 | cat >>conftest.$ac_ext <<_ACEOF | |
21458 | /* end confdefs.h. */ | |
21459 | #include <thread_db.h> | |
21460 | int | |
21461 | main () | |
21462 | { | |
21463 | int i = TD_NOTLS; | |
21464 | ; | |
21465 | return 0; | |
21466 | } | |
21467 | _ACEOF | |
21468 | rm -f conftest.$ac_objext | |
21469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21470 | (eval $ac_compile) 2>conftest.er1 | |
21471 | ac_status=$? | |
21472 | grep -v '^ *+' conftest.er1 >conftest.err | |
21473 | rm -f conftest.er1 | |
21474 | cat conftest.err >&5 | |
21475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21476 | (exit $ac_status); } && | |
21477 | { ac_try='test -z "$ac_c_werror_flag" | |
21478 | || test ! -s conftest.err' | |
21479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21480 | (eval $ac_try) 2>&5 | |
21481 | ac_status=$? | |
21482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21483 | (exit $ac_status); }; } && | |
21484 | { ac_try='test -s conftest.$ac_objext' | |
21485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21486 | (eval $ac_try) 2>&5 | |
21487 | ac_status=$? | |
21488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21489 | (exit $ac_status); }; }; then | |
21490 | gdb_cv_thread_db_h_has_td_notls=yes | |
21491 | else | |
21492 | echo "$as_me: failed program was:" >&5 | |
21493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21494 | ||
21495 | gdb_cv_thread_db_h_has_td_notls=no | |
21496 | ||
21497 | fi | |
21498 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21499 | ||
21500 | fi | |
21501 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5 | |
21502 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6 | |
3f47be5c EZ |
21503 | fi |
21504 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then | |
bec39cab AC |
21505 | |
21506 | cat >>confdefs.h <<\_ACEOF | |
3f47be5c | 21507 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
bec39cab | 21508 | _ACEOF |
3f47be5c | 21509 | |
59f80f10 DJ |
21510 | fi |
21511 | if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then | |
21512 | ||
21513 | cat >>confdefs.h <<\_ACEOF | |
21514 | #define THREAD_DB_HAS_TD_VERSION 1 | |
21515 | _ACEOF | |
21516 | ||
21517 | fi | |
21518 | if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then | |
21519 | ||
21520 | cat >>confdefs.h <<\_ACEOF | |
21521 | #define THREAD_DB_HAS_TD_NOTLS 1 | |
21522 | _ACEOF | |
21523 | ||
3f47be5c EZ |
21524 | fi |
21525 | ||
b757528f | 21526 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
b4e70030 JB |
21527 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
21528 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 | |
bec39cab AC |
21529 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then |
21530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21531 | else | |
21532 | cat >conftest.$ac_ext <<_ACEOF | |
21533 | /* confdefs.h. */ | |
21534 | _ACEOF | |
21535 | cat confdefs.h >>conftest.$ac_ext | |
21536 | cat >>conftest.$ac_ext <<_ACEOF | |
21537 | /* end confdefs.h. */ | |
b757528f | 21538 | #include <sys/syscall.h> |
bec39cab AC |
21539 | int |
21540 | main () | |
21541 | { | |
b757528f | 21542 | int i = __NR_tkill; |
bec39cab AC |
21543 | ; |
21544 | return 0; | |
21545 | } | |
21546 | _ACEOF | |
21547 | rm -f conftest.$ac_objext | |
21548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21549 | (eval $ac_compile) 2>conftest.er1 | |
21550 | ac_status=$? | |
21551 | grep -v '^ *+' conftest.er1 >conftest.err | |
21552 | rm -f conftest.er1 | |
21553 | cat conftest.err >&5 | |
21554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21555 | (exit $ac_status); } && | |
b4e70030 JB |
21556 | { ac_try='test -z "$ac_c_werror_flag" |
21557 | || test ! -s conftest.err' | |
bec39cab AC |
21558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21559 | (eval $ac_try) 2>&5 | |
21560 | ac_status=$? | |
21561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21562 | (exit $ac_status); }; } && | |
21563 | { ac_try='test -s conftest.$ac_objext' | |
21564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21565 | (eval $ac_try) 2>&5 | |
21566 | ac_status=$? | |
21567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21568 | (exit $ac_status); }; }; then | |
b757528f JJ |
21569 | gdb_cv_sys_syscall_h_has_tkill=yes |
21570 | else | |
bec39cab AC |
21571 | echo "$as_me: failed program was:" >&5 |
21572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21573 | ||
b4e70030 | 21574 | gdb_cv_sys_syscall_h_has_tkill=no |
bec39cab | 21575 | |
b757528f | 21576 | fi |
bec39cab | 21577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b757528f | 21578 | |
bec39cab | 21579 | fi |
b4e70030 JB |
21580 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 |
21581 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 | |
b757528f JJ |
21582 | fi |
21583 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then | |
bec39cab AC |
21584 | |
21585 | cat >>confdefs.h <<\_ACEOF | |
b757528f | 21586 | #define HAVE_TKILL_SYSCALL 1 |
bec39cab | 21587 | _ACEOF |
b757528f JJ |
21588 | |
21589 | fi | |
21590 | ||
fb40c209 | 21591 | |
bec39cab | 21592 | |
b4e70030 | 21593 | # Check whether --with-sysroot or --without-sysroot was given. |
030292b7 | 21594 | if test "${with_sysroot+set}" = set; then |
b4e70030 JB |
21595 | withval="$with_sysroot" |
21596 | ||
030292b7 | 21597 | case ${with_sysroot} in |
715d1656 | 21598 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
030292b7 DJ |
21599 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
21600 | esac | |
21601 | ||
21602 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
21603 | ||
07abfebf RS |
21604 | if test "x$prefix" = xNONE; then |
21605 | test_prefix=/usr/local | |
21606 | else | |
21607 | test_prefix=$prefix | |
21608 | fi | |
aa28a74e | 21609 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
07abfebf | 21610 | test_exec_prefix=$test_prefix |
030292b7 | 21611 | else |
07abfebf | 21612 | test_exec_prefix=$exec_prefix |
030292b7 DJ |
21613 | fi |
21614 | case ${TARGET_SYSTEM_ROOT} in | |
715d1656 | 21615 | "${test_prefix}"|"${test_prefix}/"*|\ |
07abfebf RS |
21616 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ |
21617 | '${prefix}'|'${prefix}/'*|\ | |
715d1656 | 21618 | '${exec_prefix}'|'${exec_prefix}/'*) |
030292b7 DJ |
21619 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
21620 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
21621 | ;; | |
21622 | esac | |
21623 | ||
21624 | else | |
bec39cab | 21625 | |
030292b7 DJ |
21626 | TARGET_SYSTEM_ROOT= |
21627 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
21628 | ||
b4e70030 | 21629 | fi; |
030292b7 DJ |
21630 | |
21631 | ||
21632 | ||
b4e70030 | 21633 | # Check whether --enable-werror or --disable-werror was given. |
094a342e | 21634 | if test "${enable_werror+set}" = set; then |
b4e70030 JB |
21635 | enableval="$enable_werror" |
21636 | case "${enableval}" in | |
094a342e MK |
21637 | yes | y) ERROR_ON_WARNING="yes" ;; |
21638 | no | n) ERROR_ON_WARNING="no" ;; | |
21639 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
21640 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
21641 | { (exit 1); exit 1; }; } ;; | |
21642 | esac | |
b4e70030 | 21643 | fi; |
094a342e MK |
21644 | |
21645 | # Enable -Werror by default when using gcc | |
21646 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
21647 | ERROR_ON_WARNING=yes | |
21648 | fi | |
21649 | ||
21650 | WERROR_CFLAGS="" | |
21651 | if test "${ERROR_ON_WARNING}" = yes ; then | |
21652 | WERROR_CFLAGS="-Werror" | |
21653 | fi | |
21654 | ||
aa79a185 DJ |
21655 | # The entries after -Wno-pointer-sign are disabled warnings which may |
21656 | # be enabled in the future, which can not currently be used to build | |
21657 | # GDB. | |
21658 | # NOTE: If you change this list, remember to update | |
3b851bce | 21659 | # gdb/doc/gdbint.texinfo. |
aa79a185 DJ |
21660 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
21661 | -Wformat-nonliteral -Wno-pointer-sign \ | |
58b38ee2 | 21662 | -Wno-unused -Wno-switch -Wno-char-subscripts" |
a3b362c4 | 21663 | |
b4e70030 | 21664 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
c906108c | 21665 | if test "${enable_build_warnings+set}" = set; then |
b4e70030 JB |
21666 | enableval="$enable_build_warnings" |
21667 | case "${enableval}" in | |
c906108c SS |
21668 | yes) ;; |
21669 | no) build_warnings="-w";; | |
21670 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21671 | build_warnings="${build_warnings} ${t}";; | |
21672 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21673 | build_warnings="${t} ${build_warnings}";; | |
21674 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
21675 | esac | |
d4f3574e | 21676 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
746a987d | 21677 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
c906108c | 21678 | fi |
b4e70030 | 21679 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
3b851bce | 21680 | if test "${enable_gdb_build_warnings+set}" = set; then |
b4e70030 JB |
21681 | enableval="$enable_gdb_build_warnings" |
21682 | case "${enableval}" in | |
3b851bce AC |
21683 | yes) ;; |
21684 | no) build_warnings="-w";; | |
21685 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21686 | build_warnings="${build_warnings} ${t}";; | |
21687 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
21688 | build_warnings="${t} ${build_warnings}";; | |
21689 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
21690 | esac | |
21691 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
21692 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
21693 | fi | |
b4e70030 | 21694 | fi; WARN_CFLAGS="" |
c906108c SS |
21695 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
21696 | then | |
b4e70030 JB |
21697 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
21698 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
746a987d AC |
21699 | # Separate out the -Werror flag as some files just cannot be |
21700 | # compiled with it enabled. | |
21701 | for w in ${build_warnings}; do | |
21702 | case $w in | |
21703 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
21704 | *) # Check that GCC accepts it | |
4536bbc6 AC |
21705 | saved_CFLAGS="$CFLAGS" |
21706 | CFLAGS="$CFLAGS $w" | |
bec39cab AC |
21707 | cat >conftest.$ac_ext <<_ACEOF |
21708 | /* confdefs.h. */ | |
21709 | _ACEOF | |
21710 | cat confdefs.h >>conftest.$ac_ext | |
21711 | cat >>conftest.$ac_ext <<_ACEOF | |
21712 | /* end confdefs.h. */ | |
4536bbc6 | 21713 | |
bec39cab AC |
21714 | int |
21715 | main () | |
21716 | { | |
4536bbc6 | 21717 | |
bec39cab AC |
21718 | ; |
21719 | return 0; | |
21720 | } | |
21721 | _ACEOF | |
21722 | rm -f conftest.$ac_objext | |
21723 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21724 | (eval $ac_compile) 2>conftest.er1 | |
21725 | ac_status=$? | |
21726 | grep -v '^ *+' conftest.er1 >conftest.err | |
21727 | rm -f conftest.er1 | |
21728 | cat conftest.err >&5 | |
21729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21730 | (exit $ac_status); } && | |
b4e70030 JB |
21731 | { ac_try='test -z "$ac_c_werror_flag" |
21732 | || test ! -s conftest.err' | |
bec39cab AC |
21733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21734 | (eval $ac_try) 2>&5 | |
21735 | ac_status=$? | |
21736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21737 | (exit $ac_status); }; } && | |
21738 | { ac_try='test -s conftest.$ac_objext' | |
21739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21740 | (eval $ac_try) 2>&5 | |
21741 | ac_status=$? | |
21742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21743 | (exit $ac_status); }; }; then | |
4536bbc6 AC |
21744 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
21745 | else | |
bec39cab AC |
21746 | echo "$as_me: failed program was:" >&5 |
21747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21748 | ||
4536bbc6 | 21749 | fi |
bec39cab | 21750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4536bbc6 | 21751 | CFLAGS="$saved_CFLAGS" |
746a987d AC |
21752 | esac |
21753 | done | |
aa79a185 DJ |
21754 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
21755 | echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6 | |
c906108c SS |
21756 | fi |
21757 | ||
21758 | ||
104c1213 | 21759 | |
7a292a7a | 21760 | # In the Cygwin environment, we need some additional flags. |
b4e70030 JB |
21761 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
21762 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 | |
bec39cab AC |
21763 | if test "${gdb_cv_os_cygwin+set}" = set; then |
21764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21765 | else | |
21766 | cat >conftest.$ac_ext <<_ACEOF | |
21767 | /* confdefs.h. */ | |
21768 | _ACEOF | |
21769 | cat confdefs.h >>conftest.$ac_ext | |
21770 | cat >>conftest.$ac_ext <<_ACEOF | |
21771 | /* end confdefs.h. */ | |
7a292a7a SS |
21772 | |
21773 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) | |
21774 | lose | |
21775 | #endif | |
bec39cab | 21776 | _ACEOF |
7a292a7a | 21777 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 21778 | $EGREP "lose" >/dev/null 2>&1; then |
7a292a7a SS |
21779 | gdb_cv_os_cygwin=yes |
21780 | else | |
7a292a7a SS |
21781 | gdb_cv_os_cygwin=no |
21782 | fi | |
21783 | rm -f conftest* | |
21784 | ||
21785 | fi | |
b4e70030 JB |
21786 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
21787 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 | |
7a292a7a | 21788 | |
aff38e61 | 21789 | |
3eb25fda | 21790 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
aff38e61 | 21791 | case ${host} in |
95cbc983 AC |
21792 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
21793 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; | |
0ea3f30e | 21794 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; |
aff38e61 AC |
21795 | esac |
21796 | ||
21797 | ||
cd0fc7c3 SS |
21798 | # libreadline needs libuser32.a in a cygwin environment |
21799 | WIN32LIBS= | |
21800 | if test x$gdb_cv_os_cygwin = xyes; then | |
c5394b80 JM |
21801 | WIN32LIBS="-luser32" |
21802 | case "${target}" in | |
21803 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" | |
21804 | ;; | |
21805 | esac | |
cd0fc7c3 | 21806 | fi |
c906108c | 21807 | |
b4505029 MM |
21808 | # The ser-tcp.c module requires sockets. |
21809 | case ${host} in | |
21810 | *mingw32*) | |
21811 | ||
21812 | cat >>confdefs.h <<\_ACEOF | |
21813 | #define USE_WIN32API 1 | |
21814 | _ACEOF | |
21815 | ||
21816 | WIN32LIBS="$WIN32LIBS -lws2_32" | |
21817 | ;; | |
21818 | esac | |
21819 | ||
7a292a7a | 21820 | |
31d99776 DJ |
21821 | # Add ELF support to GDB, but only if BFD includes ELF support. |
21822 | OLD_CFLAGS=$CFLAGS | |
21823 | OLD_LDFLAGS=$LDFLAGS | |
21824 | OLD_LIBS=$LIBS | |
cab58a69 | 21825 | CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" |
31d99776 DJ |
21826 | LDFLAGS="$LDFLAGS -L../bfd -L../libiberty" |
21827 | LIBS="$LIBS -lbfd -liberty" | |
21828 | echo "$as_me:$LINENO: checking for ELF support in BFD" >&5 | |
21829 | echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6 | |
21830 | if test "${gdb_cv_var_elf+set}" = set; then | |
21831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21832 | else | |
21833 | cat >conftest.$ac_ext <<_ACEOF | |
21834 | /* confdefs.h. */ | |
21835 | _ACEOF | |
21836 | cat confdefs.h >>conftest.$ac_ext | |
21837 | cat >>conftest.$ac_ext <<_ACEOF | |
21838 | /* end confdefs.h. */ | |
21839 | #include <stdlib.h> | |
21840 | #include "bfd.h" | |
21841 | #include "elf-bfd.h" | |
21842 | ||
21843 | int | |
21844 | main () | |
21845 | { | |
21846 | bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd); | |
21847 | ; | |
21848 | return 0; | |
21849 | } | |
21850 | _ACEOF | |
21851 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21853 | (eval $ac_link) 2>conftest.er1 | |
21854 | ac_status=$? | |
21855 | grep -v '^ *+' conftest.er1 >conftest.err | |
21856 | rm -f conftest.er1 | |
21857 | cat conftest.err >&5 | |
21858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21859 | (exit $ac_status); } && | |
21860 | { ac_try='test -z "$ac_c_werror_flag" | |
21861 | || test ! -s conftest.err' | |
21862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21863 | (eval $ac_try) 2>&5 | |
21864 | ac_status=$? | |
21865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21866 | (exit $ac_status); }; } && | |
21867 | { ac_try='test -s conftest$ac_exeext' | |
21868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21869 | (eval $ac_try) 2>&5 | |
21870 | ac_status=$? | |
21871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21872 | (exit $ac_status); }; }; then | |
21873 | gdb_cv_var_elf=yes | |
21874 | else | |
21875 | echo "$as_me: failed program was:" >&5 | |
21876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21877 | ||
21878 | gdb_cv_var_elf=no | |
21879 | fi | |
21880 | rm -f conftest.err conftest.$ac_objext \ | |
21881 | conftest$ac_exeext conftest.$ac_ext | |
21882 | fi | |
21883 | echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5 | |
21884 | echo "${ECHO_T}$gdb_cv_var_elf" >&6 | |
21885 | if test $gdb_cv_var_elf = yes; then | |
21886 | CONFIG_OBS="$CONFIG_OBS elfread.o" | |
21887 | ||
21888 | cat >>confdefs.h <<\_ACEOF | |
21889 | #define HAVE_ELF 1 | |
21890 | _ACEOF | |
21891 | ||
21892 | fi | |
21893 | CFLAGS=$OLD_CFLAGS | |
21894 | LDFLAGS=$OLD_LDFLAGS | |
21895 | LIBS=$OLD_LIBS | |
21896 | ||
121ce6e5 DJ |
21897 | # Add any host-specific objects to GDB. |
21898 | CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" | |
21899 | ||
3fc11d3e JM |
21900 | LIBGUI="../libgui/src/libgui.a" |
21901 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
21902 | ||
21903 | ||
7a292a7a | 21904 | |
3fc11d3e JM |
21905 | WIN32LDAPP= |
21906 | ||
21907 | ||
21908 | ||
d91670b9 CV |
21909 | case "${host}" in |
21910 | *-*-cygwin*) | |
21911 | configdir="win" | |
21912 | ;; | |
21913 | *) | |
21914 | configdir="unix" | |
21915 | ;; | |
21916 | esac | |
3fc11d3e JM |
21917 | |
21918 | GDBTKLIBS= | |
21919 | if test "${enable_gdbtk}" = "yes"; then | |
21920 | ||
d1c3b63a KS |
21921 | # Gdbtk must have an absolute path to srcdir in order to run |
21922 | # properly when not installed. | |
21923 | here=`pwd` | |
21924 | cd ${srcdir} | |
21925 | GDBTK_SRC_DIR=`pwd` | |
21926 | cd $here | |
21927 | ||
bec39cab | 21928 | |
3fc11d3e JM |
21929 | # |
21930 | # Ok, lets find the tcl configuration | |
bec39cab | 21931 | # First, look for one uninstalled. |
3fc11d3e JM |
21932 | # the alternative search directory is invoked by --with-tclconfig |
21933 | # | |
21934 | ||
21935 | if test x"${no_tcl}" = x ; then | |
21936 | # we reset no_tcl in case something fails here | |
21937 | no_tcl=true | |
bec39cab | 21938 | |
b4e70030 | 21939 | # Check whether --with-tclconfig or --without-tclconfig was given. |
3fc11d3e | 21940 | if test "${with_tclconfig+set}" = set; then |
b4e70030 JB |
21941 | withval="$with_tclconfig" |
21942 | with_tclconfig=${withval} | |
21943 | fi; | |
21944 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 | |
21945 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 | |
bec39cab AC |
21946 | if test "${ac_cv_c_tclconfig+set}" = set; then |
21947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 21948 | else |
bec39cab | 21949 | |
3fc11d3e JM |
21950 | |
21951 | # First check to see if --with-tclconfig was specified. | |
21952 | if test x"${with_tclconfig}" != x ; then | |
21953 | if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
21954 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
21955 | else | |
bec39cab AC |
21956 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
21957 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} | |
21958 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
21959 | fi |
21960 | fi | |
21961 | ||
21962 | # then check for a private Tcl installation | |
21963 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
21964 | for i in \ | |
21965 | ../tcl \ | |
21966 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ | |
21967 | ../../tcl \ | |
21968 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ | |
21969 | ../../../tcl \ | |
21970 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do | |
21971 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
21972 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
21973 | break | |
21974 | fi | |
21975 | done | |
21976 | fi | |
21977 | # check in a few common install locations | |
21978 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
21979 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
21980 | if test -f "$i/tclConfig.sh" ; then | |
21981 | ac_cv_c_tclconfig=`(cd $i; pwd)` | |
21982 | break | |
21983 | fi | |
21984 | done | |
21985 | fi | |
21986 | # check in a few other private locations | |
21987 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
21988 | for i in \ | |
21989 | ${srcdir}/../tcl \ | |
21990 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do | |
21991 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
21992 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
21993 | break | |
21994 | fi | |
21995 | done | |
21996 | fi | |
bec39cab | 21997 | |
3fc11d3e JM |
21998 | fi |
21999 | ||
22000 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22001 | TCLCONFIG="# no Tcl configs found" | |
bec39cab AC |
22002 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
22003 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} | |
3fc11d3e JM |
22004 | else |
22005 | no_tcl= | |
22006 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh | |
b4e70030 JB |
22007 | echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5 |
22008 | echo "${ECHO_T}found $TCLCONFIG" >&6 | |
3fc11d3e JM |
22009 | fi |
22010 | fi | |
22011 | ||
22012 | if test -z "${no_tcl}"; then | |
bec39cab | 22013 | |
3fc11d3e JM |
22014 | . $TCLCONFIG |
22015 | ||
3fc11d3e JM |
22016 | |
22017 | ||
22018 | ||
22019 | ||
3fc11d3e JM |
22020 | |
22021 | ||
22022 | ||
bec39cab AC |
22023 | |
22024 | ||
22025 | ||
22026 | ||
22027 | ||
22028 | ||
22029 | ||
22030 | ||
22031 | ||
22032 | ||
22033 | ||
22034 | ||
22035 | ||
22036 | ||
22037 | ||
22038 | ||
22039 | ||
22040 | ||
22041 | ||
3fc11d3e JM |
22042 | # |
22043 | # Ok, lets find the tk configuration | |
bec39cab | 22044 | # First, look for one uninstalled. |
3fc11d3e JM |
22045 | # the alternative search directory is invoked by --with-tkconfig |
22046 | # | |
22047 | ||
22048 | if test x"${no_tk}" = x ; then | |
22049 | # we reset no_tk in case something fails here | |
22050 | no_tk=true | |
bec39cab | 22051 | |
b4e70030 | 22052 | # Check whether --with-tkconfig or --without-tkconfig was given. |
3fc11d3e | 22053 | if test "${with_tkconfig+set}" = set; then |
b4e70030 JB |
22054 | withval="$with_tkconfig" |
22055 | with_tkconfig=${withval} | |
22056 | fi; | |
22057 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 | |
22058 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 | |
bec39cab AC |
22059 | if test "${ac_cv_c_tkconfig+set}" = set; then |
22060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22061 | else |
bec39cab | 22062 | |
3fc11d3e JM |
22063 | |
22064 | # First check to see if --with-tkconfig was specified. | |
22065 | if test x"${with_tkconfig}" != x ; then | |
22066 | if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
22067 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
22068 | else | |
bec39cab AC |
22069 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
22070 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} | |
22071 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22072 | fi |
22073 | fi | |
22074 | ||
22075 | # then check for a private Tk library | |
22076 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22077 | for i in \ | |
22078 | ../tk \ | |
22079 | `ls -dr ../tk[4-9]* 2>/dev/null` \ | |
22080 | ../../tk \ | |
22081 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ | |
22082 | ../../../tk \ | |
22083 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do | |
22084 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
22085 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
22086 | break | |
22087 | fi | |
22088 | done | |
22089 | fi | |
22090 | # check in a few common install locations | |
22091 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22092 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22093 | if test -f "$i/tkConfig.sh" ; then | |
22094 | ac_cv_c_tkconfig=`(cd $i; pwd)` | |
22095 | break | |
22096 | fi | |
22097 | done | |
22098 | fi | |
22099 | # check in a few other private locations | |
22100 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22101 | for i in \ | |
22102 | ${srcdir}/../tk \ | |
22103 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do | |
22104 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
22105 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
22106 | break | |
22107 | fi | |
22108 | done | |
22109 | fi | |
bec39cab | 22110 | |
3fc11d3e JM |
22111 | fi |
22112 | ||
22113 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22114 | TKCONFIG="# no Tk configs found" | |
bec39cab AC |
22115 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
22116 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} | |
3fc11d3e JM |
22117 | else |
22118 | no_tk= | |
22119 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh | |
b4e70030 JB |
22120 | echo "$as_me:$LINENO: result: found $TKCONFIG" >&5 |
22121 | echo "${ECHO_T}found $TKCONFIG" >&6 | |
3fc11d3e JM |
22122 | fi |
22123 | fi | |
22124 | ||
22125 | ||
22126 | ||
dd2504ab JM |
22127 | # now look for Tcl library stuff |
22128 | ||
d91670b9 | 22129 | tcldir="../tcl/${configdir}/" |
dd2504ab JM |
22130 | |
22131 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" | |
22132 | ||
3fc11d3e JM |
22133 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
22134 | # point to doing Tcl. | |
22135 | if test -z "${no_tk}"; then | |
bec39cab | 22136 | |
3fc11d3e JM |
22137 | if test -f "$TKCONFIG" ; then |
22138 | . $TKCONFIG | |
22139 | fi | |
22140 | ||
3fc11d3e | 22141 | |
3fc11d3e JM |
22142 | |
22143 | ||
3fc11d3e | 22144 | |
bec39cab AC |
22145 | |
22146 | ||
22147 | ||
22148 | ||
22149 | ||
22150 | ||
22151 | ||
22152 | ||
22153 | ||
3fc11d3e JM |
22154 | # |
22155 | # Ok, lets find the tcl source trees so we can use the headers | |
22156 | # Warning: transition of version 9 to 10 will break this algorithm | |
22157 | # because 10 sorts before 9. We also look for just tcl. We have to | |
22158 | # be careful that we don't match stuff like tclX by accident. | |
22159 | # the alternative search directory is involked by --with-tclinclude | |
22160 | # | |
22161 | ||
22162 | no_tcl=true | |
b4e70030 JB |
22163 | echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5 |
22164 | echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6 | |
bec39cab | 22165 | |
b4e70030 | 22166 | # Check whether --with-tclinclude or --without-tclinclude was given. |
3fc11d3e | 22167 | if test "${with_tclinclude+set}" = set; then |
b4e70030 JB |
22168 | withval="$with_tclinclude" |
22169 | with_tclinclude=${withval} | |
22170 | fi; | |
bec39cab AC |
22171 | if test "${ac_cv_c_tclh+set}" = set; then |
22172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22173 | else |
bec39cab | 22174 | |
3fc11d3e JM |
22175 | # first check to see if --with-tclinclude was specified |
22176 | if test x"${with_tclinclude}" != x ; then | |
22177 | if test -f ${with_tclinclude}/tclInt.h ; then | |
22178 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` | |
22179 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then | |
22180 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` | |
22181 | else | |
bec39cab AC |
22182 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5 |
22183 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;} | |
22184 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22185 | fi |
22186 | fi | |
22187 | ||
22188 | # next check if it came with Tcl configuration file | |
22189 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22190 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then | |
22191 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` | |
22192 | fi | |
22193 | fi | |
22194 | ||
22195 | # next check in private source directory | |
22196 | # | |
22197 | # since ls returns lowest version numbers first, reverse its output | |
22198 | if test x"${ac_cv_c_tclh}" = x ; then | |
22199 | for i in \ | |
22200 | ${srcdir}/../tcl \ | |
22201 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ | |
22202 | ${srcdir}/../../tcl \ | |
22203 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ | |
22204 | ${srcdir}/../../../tcl \ | |
22205 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do | |
22206 | if test -f $i/generic/tclInt.h ; then | |
22207 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
22208 | break | |
22209 | fi | |
22210 | done | |
22211 | fi | |
22212 | # finally check in a few common install locations | |
22213 | # | |
22214 | # since ls returns lowest version numbers first, reverse its output | |
22215 | if test x"${ac_cv_c_tclh}" = x ; then | |
22216 | for i in \ | |
22217 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ | |
22218 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ | |
22219 | /usr/local/src/tcl \ | |
22220 | /usr/local/lib/tcl \ | |
22221 | ${prefix}/include ; do | |
22222 | if test -f $i/generic/tclInt.h ; then | |
22223 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
22224 | break | |
22225 | fi | |
22226 | done | |
22227 | fi | |
22228 | # see if one is installed | |
22229 | if test x"${ac_cv_c_tclh}" = x ; then | |
bec39cab | 22230 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
b4e70030 JB |
22231 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
22232 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
bec39cab AC |
22233 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
22234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22235 | fi | |
b4e70030 JB |
22236 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
22237 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
bec39cab AC |
22238 | else |
22239 | # Is the header compilable? | |
b4e70030 JB |
22240 | echo "$as_me:$LINENO: checking tclInt.h usability" >&5 |
22241 | echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6 | |
bec39cab AC |
22242 | cat >conftest.$ac_ext <<_ACEOF |
22243 | /* confdefs.h. */ | |
22244 | _ACEOF | |
22245 | cat confdefs.h >>conftest.$ac_ext | |
22246 | cat >>conftest.$ac_ext <<_ACEOF | |
22247 | /* end confdefs.h. */ | |
22248 | $ac_includes_default | |
22249 | #include <tclInt.h> | |
22250 | _ACEOF | |
22251 | rm -f conftest.$ac_objext | |
22252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22253 | (eval $ac_compile) 2>conftest.er1 | |
22254 | ac_status=$? | |
22255 | grep -v '^ *+' conftest.er1 >conftest.err | |
22256 | rm -f conftest.er1 | |
22257 | cat conftest.err >&5 | |
22258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22259 | (exit $ac_status); } && | |
b4e70030 JB |
22260 | { ac_try='test -z "$ac_c_werror_flag" |
22261 | || test ! -s conftest.err' | |
bec39cab AC |
22262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22263 | (eval $ac_try) 2>&5 | |
22264 | ac_status=$? | |
22265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22266 | (exit $ac_status); }; } && | |
22267 | { ac_try='test -s conftest.$ac_objext' | |
22268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22269 | (eval $ac_try) 2>&5 | |
22270 | ac_status=$? | |
22271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22272 | (exit $ac_status); }; }; then | |
22273 | ac_header_compiler=yes | |
22274 | else | |
22275 | echo "$as_me: failed program was:" >&5 | |
22276 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22277 | ||
b4e70030 | 22278 | ac_header_compiler=no |
bec39cab AC |
22279 | fi |
22280 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
22281 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22282 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
22283 | |
22284 | # Is the header present? | |
b4e70030 JB |
22285 | echo "$as_me:$LINENO: checking tclInt.h presence" >&5 |
22286 | echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6 | |
bec39cab AC |
22287 | cat >conftest.$ac_ext <<_ACEOF |
22288 | /* confdefs.h. */ | |
22289 | _ACEOF | |
22290 | cat confdefs.h >>conftest.$ac_ext | |
22291 | cat >>conftest.$ac_ext <<_ACEOF | |
22292 | /* end confdefs.h. */ | |
3fc11d3e | 22293 | #include <tclInt.h> |
bec39cab AC |
22294 | _ACEOF |
22295 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22296 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22297 | ac_status=$? | |
22298 | grep -v '^ *+' conftest.er1 >conftest.err | |
22299 | rm -f conftest.er1 | |
22300 | cat conftest.err >&5 | |
22301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22302 | (exit $ac_status); } >/dev/null; then | |
22303 | if test -s conftest.err; then | |
22304 | ac_cpp_err=$ac_c_preproc_warn_flag | |
22305 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
22306 | else | |
22307 | ac_cpp_err= | |
22308 | fi | |
22309 | else | |
22310 | ac_cpp_err=yes | |
3fc11d3e | 22311 | fi |
bec39cab AC |
22312 | if test -z "$ac_cpp_err"; then |
22313 | ac_header_preproc=yes | |
22314 | else | |
22315 | echo "$as_me: failed program was:" >&5 | |
22316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22317 | ||
22318 | ac_header_preproc=no | |
3fc11d3e | 22319 | fi |
bec39cab | 22320 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
22321 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22322 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
22323 | |
22324 | # So? What about this header? | |
22325 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22326 | yes:no: ) | |
22327 | { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22328 | echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22329 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5 | |
22330 | echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;} | |
22331 | ac_header_preproc=yes | |
22332 | ;; | |
22333 | no:yes:* ) | |
22334 | { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5 | |
22335 | echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;} | |
22336 | { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5 | |
22337 | echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;} | |
22338 | { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5 | |
22339 | echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;} | |
22340 | { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22341 | echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
22342 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5 | |
22343 | echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;} | |
22344 | { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5 | |
22345 | echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
22346 | ( |
22347 | cat <<\_ASBOX | |
22348 | ## ------------------------------------------ ## | |
22349 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
22350 | ## ------------------------------------------ ## | |
22351 | _ASBOX | |
22352 | ) | | |
22353 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
22354 | ;; |
22355 | esac | |
b4e70030 JB |
22356 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
22357 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
bec39cab AC |
22358 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
22359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22360 | else | |
22361 | ac_cv_header_tclInt_h=$ac_header_preproc | |
22362 | fi | |
b4e70030 JB |
22363 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
22364 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
bec39cab AC |
22365 | |
22366 | fi | |
22367 | if test $ac_cv_header_tclInt_h = yes; then | |
3fc11d3e JM |
22368 | ac_cv_c_tclh=installed |
22369 | else | |
bec39cab | 22370 | ac_cv_c_tclh="" |
3fc11d3e JM |
22371 | fi |
22372 | ||
bec39cab | 22373 | |
3fc11d3e JM |
22374 | fi |
22375 | ||
22376 | fi | |
22377 | ||
22378 | if test x"${ac_cv_c_tclh}" = x ; then | |
22379 | TCLHDIR="# no Tcl private headers found" | |
bec39cab AC |
22380 | { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5 |
22381 | echo "$as_me: error: Can't find Tcl private headers" >&2;} | |
22382 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22383 | fi |
22384 | if test x"${ac_cv_c_tclh}" != x ; then | |
22385 | no_tcl="" | |
22386 | if test x"${ac_cv_c_tclh}" = x"installed" ; then | |
b4e70030 JB |
22387 | echo "$as_me:$LINENO: result: is installed" >&5 |
22388 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
22389 | TCLHDIR="" |
22390 | else | |
b4e70030 JB |
22391 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5 |
22392 | echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6 | |
3fc11d3e JM |
22393 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
22394 | TCLHDIR="-I${ac_cv_c_tclh}" | |
22395 | fi | |
22396 | fi | |
22397 | ||
22398 | ||
22399 | ||
bec39cab | 22400 | |
3fc11d3e JM |
22401 | # |
22402 | # Ok, lets find the tk source trees so we can use the headers | |
22403 | # If the directory (presumably symlink) named "tk" exists, use that one | |
22404 | # in preference to any others. Same logic is used when choosing library | |
22405 | # and again with Tcl. The search order is the best place to look first, then in | |
22406 | # decreasing significance. The loop breaks if the trigger file is found. | |
22407 | # Note the gross little conversion here of srcdir by cd'ing to the found | |
22408 | # directory. This converts the path from a relative to an absolute, so | |
22409 | # recursive cache variables for the path will work right. We check all | |
22410 | # the possible paths in one loop rather than many seperate loops to speed | |
22411 | # things up. | |
22412 | # the alternative search directory is involked by --with-tkinclude | |
22413 | # | |
22414 | no_tk=true | |
b4e70030 JB |
22415 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
22416 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 | |
bec39cab | 22417 | |
b4e70030 | 22418 | # Check whether --with-tkinclude or --without-tkinclude was given. |
3fc11d3e | 22419 | if test "${with_tkinclude+set}" = set; then |
b4e70030 JB |
22420 | withval="$with_tkinclude" |
22421 | with_tkinclude=${withval} | |
22422 | fi; | |
bec39cab AC |
22423 | if test "${ac_cv_c_tkh+set}" = set; then |
22424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22425 | else |
bec39cab | 22426 | |
3fc11d3e JM |
22427 | # first check to see if --with-tkinclude was specified |
22428 | if test x"${with_tkinclude}" != x ; then | |
22429 | if test -f ${with_tkinclude}/tk.h ; then | |
22430 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` | |
22431 | elif test -f ${with_tkinclude}/generic/tk.h ; then | |
22432 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` | |
22433 | else | |
bec39cab AC |
22434 | { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5 |
22435 | echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;} | |
22436 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22437 | fi |
22438 | fi | |
22439 | ||
22440 | # next check if it came with Tk configuration file | |
22441 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22442 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then | |
22443 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` | |
22444 | fi | |
22445 | fi | |
22446 | ||
22447 | # next check in private source directory | |
22448 | # | |
22449 | # since ls returns lowest version numbers first, reverse its output | |
22450 | if test x"${ac_cv_c_tkh}" = x ; then | |
22451 | for i in \ | |
22452 | ${srcdir}/../tk \ | |
22453 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ | |
22454 | ${srcdir}/../../tk \ | |
22455 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ | |
22456 | ${srcdir}/../../../tk \ | |
22457 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do | |
22458 | if test -f $i/generic/tk.h ; then | |
22459 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
22460 | break | |
22461 | fi | |
22462 | done | |
22463 | fi | |
22464 | # finally check in a few common install locations | |
22465 | # | |
22466 | # since ls returns lowest version numbers first, reverse its output | |
22467 | if test x"${ac_cv_c_tkh}" = x ; then | |
22468 | for i in \ | |
22469 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ | |
22470 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ | |
22471 | /usr/local/src/tk \ | |
22472 | /usr/local/lib/tk \ | |
22473 | ${prefix}/include ; do | |
22474 | if test -f $i/generic/tk.h ; then | |
22475 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
22476 | break | |
22477 | fi | |
22478 | done | |
22479 | fi | |
22480 | # see if one is installed | |
22481 | if test x"${ac_cv_c_tkh}" = x ; then | |
bec39cab | 22482 | if test "${ac_cv_header_tk_h+set}" = set; then |
b4e70030 JB |
22483 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
22484 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
bec39cab AC |
22485 | if test "${ac_cv_header_tk_h+set}" = set; then |
22486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22487 | fi | |
b4e70030 JB |
22488 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
22489 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
bec39cab AC |
22490 | else |
22491 | # Is the header compilable? | |
b4e70030 JB |
22492 | echo "$as_me:$LINENO: checking tk.h usability" >&5 |
22493 | echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6 | |
bec39cab AC |
22494 | cat >conftest.$ac_ext <<_ACEOF |
22495 | /* confdefs.h. */ | |
22496 | _ACEOF | |
22497 | cat confdefs.h >>conftest.$ac_ext | |
22498 | cat >>conftest.$ac_ext <<_ACEOF | |
22499 | /* end confdefs.h. */ | |
22500 | $ac_includes_default | |
3fc11d3e | 22501 | #include <tk.h> |
bec39cab AC |
22502 | _ACEOF |
22503 | rm -f conftest.$ac_objext | |
22504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22505 | (eval $ac_compile) 2>conftest.er1 | |
22506 | ac_status=$? | |
22507 | grep -v '^ *+' conftest.er1 >conftest.err | |
22508 | rm -f conftest.er1 | |
22509 | cat conftest.err >&5 | |
22510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22511 | (exit $ac_status); } && | |
b4e70030 JB |
22512 | { ac_try='test -z "$ac_c_werror_flag" |
22513 | || test ! -s conftest.err' | |
bec39cab AC |
22514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22515 | (eval $ac_try) 2>&5 | |
22516 | ac_status=$? | |
22517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22518 | (exit $ac_status); }; } && | |
22519 | { ac_try='test -s conftest.$ac_objext' | |
22520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22521 | (eval $ac_try) 2>&5 | |
22522 | ac_status=$? | |
22523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22524 | (exit $ac_status); }; }; then | |
22525 | ac_header_compiler=yes | |
22526 | else | |
22527 | echo "$as_me: failed program was:" >&5 | |
22528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22529 | ||
b4e70030 | 22530 | ac_header_compiler=no |
bec39cab AC |
22531 | fi |
22532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
22533 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22534 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
22535 | |
22536 | # Is the header present? | |
b4e70030 JB |
22537 | echo "$as_me:$LINENO: checking tk.h presence" >&5 |
22538 | echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6 | |
bec39cab AC |
22539 | cat >conftest.$ac_ext <<_ACEOF |
22540 | /* confdefs.h. */ | |
22541 | _ACEOF | |
22542 | cat confdefs.h >>conftest.$ac_ext | |
22543 | cat >>conftest.$ac_ext <<_ACEOF | |
22544 | /* end confdefs.h. */ | |
22545 | #include <tk.h> | |
22546 | _ACEOF | |
22547 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22548 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22549 | ac_status=$? | |
22550 | grep -v '^ *+' conftest.er1 >conftest.err | |
22551 | rm -f conftest.er1 | |
22552 | cat conftest.err >&5 | |
22553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22554 | (exit $ac_status); } >/dev/null; then | |
22555 | if test -s conftest.err; then | |
22556 | ac_cpp_err=$ac_c_preproc_warn_flag | |
22557 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
22558 | else | |
22559 | ac_cpp_err= | |
22560 | fi | |
22561 | else | |
22562 | ac_cpp_err=yes | |
3fc11d3e | 22563 | fi |
bec39cab AC |
22564 | if test -z "$ac_cpp_err"; then |
22565 | ac_header_preproc=yes | |
22566 | else | |
22567 | echo "$as_me: failed program was:" >&5 | |
22568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22569 | ||
22570 | ac_header_preproc=no | |
22571 | fi | |
22572 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
22573 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22574 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
22575 | |
22576 | # So? What about this header? | |
22577 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22578 | yes:no: ) | |
22579 | { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22580 | echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22581 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5 | |
22582 | echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;} | |
22583 | ac_header_preproc=yes | |
22584 | ;; | |
22585 | no:yes:* ) | |
22586 | { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5 | |
22587 | echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;} | |
22588 | { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5 | |
22589 | echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;} | |
22590 | { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5 | |
22591 | echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;} | |
22592 | { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5 | |
22593 | echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
22594 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5 | |
22595 | echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;} | |
22596 | { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5 | |
22597 | echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
22598 | ( |
22599 | cat <<\_ASBOX | |
22600 | ## ------------------------------------------ ## | |
22601 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
22602 | ## ------------------------------------------ ## | |
22603 | _ASBOX | |
22604 | ) | | |
22605 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
22606 | ;; |
22607 | esac | |
b4e70030 JB |
22608 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
22609 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
bec39cab AC |
22610 | if test "${ac_cv_header_tk_h+set}" = set; then |
22611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22612 | else | |
22613 | ac_cv_header_tk_h=$ac_header_preproc | |
22614 | fi | |
b4e70030 JB |
22615 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
22616 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
bec39cab | 22617 | |
3fc11d3e | 22618 | fi |
bec39cab | 22619 | if test $ac_cv_header_tk_h = yes; then |
3fc11d3e JM |
22620 | ac_cv_c_tkh=installed |
22621 | else | |
bec39cab | 22622 | ac_cv_c_tkh="" |
3fc11d3e JM |
22623 | fi |
22624 | ||
bec39cab | 22625 | |
3fc11d3e JM |
22626 | fi |
22627 | ||
22628 | fi | |
22629 | ||
22630 | if test x"${ac_cv_c_tkh}" != x ; then | |
22631 | no_tk="" | |
22632 | if test x"${ac_cv_c_tkh}" = x"installed" ; then | |
b4e70030 JB |
22633 | echo "$as_me:$LINENO: result: is installed" >&5 |
22634 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
22635 | TKHDIR="" |
22636 | else | |
b4e70030 JB |
22637 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5 |
22638 | echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6 | |
3fc11d3e JM |
22639 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
22640 | TKHDIR="-I${ac_cv_c_tkh}" | |
22641 | fi | |
22642 | else | |
22643 | TKHDIR="# no Tk directory found" | |
bec39cab AC |
22644 | { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5 |
22645 | echo "$as_me: WARNING: Can't find Tk private headers" >&2;} | |
3fc11d3e JM |
22646 | no_tk=true |
22647 | fi | |
22648 | ||
22649 | ||
22650 | ||
bec39cab | 22651 | |
b4e70030 JB |
22652 | echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5 |
22653 | echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
22654 | if test x"${ac_cv_c_itclh}" = x ; then |
22655 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do | |
22656 | if test -f $i/generic/itcl.h ; then | |
22657 | ac_cv_c_itclh=`(cd $i/generic; pwd)` | |
22658 | break | |
22659 | fi | |
22660 | done | |
22661 | fi | |
22662 | if test x"${ac_cv_c_itclh}" = x ; then | |
22663 | ITCLHDIR="# no Itcl private headers found" | |
bec39cab AC |
22664 | { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5 |
22665 | echo "$as_me: error: Can't find Itcl private headers" >&2;} | |
22666 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22667 | fi |
22668 | if test x"${ac_cv_c_itclh}" != x ; then | |
22669 | ITCLHDIR="-I${ac_cv_c_itclh}" | |
22670 | fi | |
22671 | # should always be here | |
22672 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" | |
22673 | ||
22674 | #AC_SUBST(ITCLLIB) | |
22675 | ||
bec39cab | 22676 | |
b4e70030 JB |
22677 | echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5 |
22678 | echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
22679 | if test x"${ac_cv_c_itkh}" = x ; then |
22680 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do | |
22681 | if test -f $i/generic/itk.h ; then | |
22682 | ac_cv_c_itkh=`(cd $i/generic; pwd)` | |
22683 | break | |
22684 | fi | |
22685 | done | |
22686 | fi | |
22687 | if test x"${ac_cv_c_itkh}" = x ; then | |
22688 | ITKHDIR="# no Itk private headers found" | |
bec39cab AC |
22689 | { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5 |
22690 | echo "$as_me: error: Can't find Itk private headers" >&2;} | |
22691 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22692 | fi |
22693 | if test x"${ac_cv_c_itkh}" != x ; then | |
22694 | ITKHDIR="-I${ac_cv_c_itkh}" | |
22695 | fi | |
22696 | # should always be here | |
22697 | # ITKLIB="../itcl/itk/unix/libitk.a" | |
22698 | ||
22699 | #AC_SUBST(ITKLIB) | |
22700 | ||
3fc11d3e | 22701 | |
dd2504ab JM |
22702 | |
22703 | # now look for Tk library stuff | |
22704 | ||
d91670b9 | 22705 | tkdir="../tk/${configdir}/" |
dd2504ab JM |
22706 | |
22707 | TK_DEPS="${tkdir}${TK_LIB_FILE}" | |
22708 | ||
3fc11d3e JM |
22709 | # now look for Itcl library stuff |
22710 | ||
bec39cab | 22711 | |
3fc11d3e JM |
22712 | # |
22713 | # Ok, lets find the itcl configuration | |
bec39cab | 22714 | # First, look for one uninstalled. |
3fc11d3e JM |
22715 | # the alternative search directory is invoked by --with-itclconfig |
22716 | # | |
22717 | ||
22718 | if test x"${no_itcl}" = x ; then | |
22719 | # we reset no_itcl in case something fails here | |
22720 | no_itcl=true | |
bec39cab | 22721 | |
b4e70030 | 22722 | # Check whether --with-itclconfig or --without-itclconfig was given. |
3fc11d3e | 22723 | if test "${with_itclconfig+set}" = set; then |
b4e70030 JB |
22724 | withval="$with_itclconfig" |
22725 | with_itclconfig=${withval} | |
22726 | fi; | |
22727 | echo "$as_me:$LINENO: checking for Itcl configuration" >&5 | |
22728 | echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6 | |
bec39cab AC |
22729 | if test "${ac_cv_c_itclconfig+set}" = set; then |
22730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22731 | else |
bec39cab | 22732 | |
3fc11d3e JM |
22733 | |
22734 | # First check to see if --with-itclconfig was specified. | |
22735 | if test x"${with_itclconfig}" != x ; then | |
22736 | if test -f "${with_itclconfig}/itclConfig.sh" ; then | |
22737 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` | |
22738 | else | |
bec39cab AC |
22739 | { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 |
22740 | echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} | |
22741 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22742 | fi |
22743 | fi | |
22744 | ||
22745 | # then check for a private Itcl library | |
22746 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22747 | for i in \ | |
22748 | ../itcl/itcl \ | |
22749 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ | |
22750 | ../../itcl \ | |
22751 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ | |
22752 | ../../../itcl \ | |
22753 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do | |
22754 | if test -f "$i/itclConfig.sh" ; then | |
22755 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
22756 | break | |
22757 | fi | |
22758 | done | |
22759 | fi | |
22760 | # check in a few common install locations | |
22761 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22762 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22763 | if test -f "$i/itclConfig.sh" ; then | |
22764 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
22765 | break | |
22766 | fi | |
22767 | done | |
22768 | fi | |
22769 | # check in a few other private locations | |
22770 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22771 | for i in \ | |
22772 | ${srcdir}/../itcl/itcl \ | |
22773 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do | |
22774 | if test -f "$i/itclConfig.sh" ; then | |
22775 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
22776 | break | |
22777 | fi | |
22778 | done | |
22779 | fi | |
bec39cab | 22780 | |
3fc11d3e JM |
22781 | fi |
22782 | ||
22783 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
22784 | ITCLCONFIG="# no Itcl configs found" | |
bec39cab AC |
22785 | { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5 |
22786 | echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;} | |
3fc11d3e JM |
22787 | else |
22788 | no_itcl= | |
22789 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh | |
b4e70030 JB |
22790 | echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5 |
22791 | echo "${ECHO_T}found $ITCLCONFIG" >&6 | |
3fc11d3e JM |
22792 | fi |
22793 | fi | |
22794 | ||
22795 | if test -z "${no_itcl}"; then | |
bec39cab | 22796 | |
3fc11d3e JM |
22797 | if test -f "$ITCLCONFIG" ; then |
22798 | . $ITCLCONFIG | |
22799 | fi | |
22800 | ||
3fc11d3e | 22801 | |
3fc11d3e JM |
22802 | |
22803 | ||
bec39cab AC |
22804 | |
22805 | ||
22806 | ||
22807 | ||
22808 | ||
22809 | ||
22810 | ||
3fc11d3e JM |
22811 | |
22812 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" | |
b381d62d | 22813 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
3fc11d3e JM |
22814 | fi |
22815 | ||
bec39cab | 22816 | |
3fc11d3e | 22817 | # now look for Itk library stuff |
bec39cab | 22818 | |
3fc11d3e JM |
22819 | # |
22820 | # Ok, lets find the itk configuration | |
bec39cab | 22821 | # First, look for one uninstalled. |
3fc11d3e JM |
22822 | # the alternative search directory is invoked by --with-itkconfig |
22823 | # | |
22824 | ||
22825 | if test x"${no_itk}" = x ; then | |
22826 | # we reset no_itk in case something fails here | |
22827 | no_itk=true | |
bec39cab | 22828 | |
b4e70030 | 22829 | # Check whether --with-itkconfig or --without-itkconfig was given. |
3fc11d3e | 22830 | if test "${with_itkconfig+set}" = set; then |
b4e70030 JB |
22831 | withval="$with_itkconfig" |
22832 | with_itkconfig=${withval} | |
22833 | fi; | |
22834 | echo "$as_me:$LINENO: checking for Itk configuration" >&5 | |
22835 | echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6 | |
bec39cab AC |
22836 | if test "${ac_cv_c_itkconfig+set}" = set; then |
22837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22838 | else |
bec39cab | 22839 | |
3fc11d3e JM |
22840 | |
22841 | # First check to see if --with-itkconfig was specified. | |
22842 | if test x"${with_itkconfig}" != x ; then | |
22843 | if test -f "${with_itkconfig}/itkConfig.sh" ; then | |
22844 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` | |
22845 | else | |
bec39cab AC |
22846 | { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5 |
22847 | echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;} | |
22848 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22849 | fi |
22850 | fi | |
22851 | ||
22852 | # then check for a private Itk library | |
22853 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22854 | for i in \ | |
22855 | ../itcl/itk \ | |
22856 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ | |
22857 | ../../itk \ | |
22858 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ | |
22859 | ../../../itk \ | |
22860 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do | |
22861 | if test -f "$i/itkConfig.sh" ; then | |
22862 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
22863 | break | |
22864 | fi | |
22865 | done | |
22866 | fi | |
22867 | # check in a few common install locations | |
22868 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22869 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22870 | if test -f "$i/itkConfig.sh" ; then | |
22871 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
22872 | break | |
22873 | fi | |
22874 | done | |
22875 | fi | |
22876 | # check in a few other private locations | |
22877 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22878 | for i in \ | |
22879 | ${srcdir}/../itcl/itk \ | |
22880 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do | |
22881 | if test -f "$i/itkConfig.sh" ; then | |
22882 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
22883 | break | |
22884 | fi | |
22885 | done | |
22886 | fi | |
bec39cab | 22887 | |
3fc11d3e JM |
22888 | fi |
22889 | ||
22890 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
22891 | ITKCONFIG="# no Itk configs found" | |
bec39cab AC |
22892 | { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5 |
22893 | echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;} | |
3fc11d3e JM |
22894 | else |
22895 | no_itk= | |
22896 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh | |
b4e70030 JB |
22897 | echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5 |
22898 | echo "${ECHO_T}found $ITKCONFIG" >&6 | |
3fc11d3e JM |
22899 | fi |
22900 | fi | |
22901 | ||
22902 | ||
bec39cab AC |
22903 | if test -z "${no_itcl}"; then |
22904 | ||
22905 | if test -f "$ITKCONFIG" ; then | |
22906 | . $ITKCONFIG | |
22907 | fi | |
22908 | ||
22909 | ||
22910 | ||
22911 | ||
22912 | ||
22913 | ||
3fc11d3e | 22914 | |
3fc11d3e | 22915 | |
3fc11d3e JM |
22916 | |
22917 | ||
3fc11d3e JM |
22918 | |
22919 | ||
3fc11d3e | 22920 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
b381d62d | 22921 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
3fc11d3e JM |
22922 | fi |
22923 | ||
4226a5a5 | 22924 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
3fc11d3e JM |
22925 | |
22926 | # Include some libraries that Tcl and Tk want. | |
b2a1bd4f | 22927 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
3fc11d3e JM |
22928 | # Yes, the ordering seems wrong here. But it isn't. |
22929 | # TK_LIBS is the list of libraries that need to be linked | |
22930 | # after Tcl/Tk. Note that this isn't put into LIBS. If it | |
22931 | # were in LIBS then any link tests after this point would | |
22932 | # try to include things like `$(LIBGUI)', which wouldn't work. | |
22933 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
4226a5a5 FN |
22934 | |
22935 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" | |
22936 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" | |
22937 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" | |
33f8ca73 AC |
22938 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
22939 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" | |
22940 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" | |
22941 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" | |
3fc11d3e JM |
22942 | |
22943 | if test x$gdb_cv_os_cygwin = xyes; then | |
22944 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" | |
22945 | WIN32LDAPP="-Wl,--subsystem,console" | |
22946 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" | |
22947 | fi | |
22948 | fi | |
22949 | fi | |
ffc6a242 | 22950 | |
b4e70030 JB |
22951 | |
22952 | ||
22953 | subdirs="$subdirs gdbtk" | |
3ace7edb | 22954 | |
3fc11d3e JM |
22955 | fi |
22956 | ||
22957 | ||
22958 | ||
22959 | ||
22960 | ||
22961 | ||
22962 | ||
22963 | ||
22964 | ||
22965 | ||
22966 | ||
22967 | ||
22968 | ||
dd2504ab | 22969 | |
b4e70030 JB |
22970 | echo "$as_me:$LINENO: checking for X" >&5 |
22971 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
bec39cab | 22972 | |
c906108c | 22973 | |
b4e70030 | 22974 | # Check whether --with-x or --without-x was given. |
c906108c | 22975 | if test "${with_x+set}" = set; then |
b4e70030 | 22976 | withval="$with_x" |
c906108c | 22977 | |
b4e70030 | 22978 | fi; |
c906108c SS |
22979 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
22980 | if test "x$with_x" = xno; then | |
22981 | # The user explicitly disabled X. | |
22982 | have_x=disabled | |
22983 | else | |
22984 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
22985 | # Both variables are already set. | |
22986 | have_x=yes | |
22987 | else | |
bec39cab AC |
22988 | if test "${ac_cv_have_x+set}" = set; then |
22989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
22990 | else |
22991 | # One or both of the vars are not set, and there is no cached value. | |
bec39cab | 22992 | ac_x_includes=no ac_x_libraries=no |
b4e70030 | 22993 | rm -fr conftest.dir |
bec39cab AC |
22994 | if mkdir conftest.dir; then |
22995 | cd conftest.dir | |
c906108c | 22996 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
bec39cab | 22997 | cat >Imakefile <<'_ACEOF' |
c906108c SS |
22998 | acfindx: |
22999 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
bec39cab | 23000 | _ACEOF |
b4e70030 | 23001 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
c906108c SS |
23002 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
23003 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
23004 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
23005 | for ac_extension in a so sl; do | |
23006 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
bec39cab AC |
23007 | test -f $ac_im_libdir/libX11.$ac_extension; then |
23008 | ac_im_usrlibdir=$ac_im_libdir; break | |
c906108c SS |
23009 | fi |
23010 | done | |
23011 | # Screen out bogus values from the imake configuration. They are | |
23012 | # bogus both because they are the default anyway, and because | |
23013 | # using them would break gcc on systems where it needs fixed includes. | |
bec39cab | 23014 | case $ac_im_incroot in |
b4e70030 | 23015 | /usr/include) ;; |
bec39cab | 23016 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
c906108c | 23017 | esac |
bec39cab | 23018 | case $ac_im_usrlibdir in |
c906108c | 23019 | /usr/lib | /lib) ;; |
bec39cab | 23020 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
c906108c SS |
23021 | esac |
23022 | fi | |
23023 | cd .. | |
b4e70030 | 23024 | rm -fr conftest.dir |
c906108c SS |
23025 | fi |
23026 | ||
bec39cab AC |
23027 | # Standard set of common directories for X headers. |
23028 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
23029 | ac_x_header_dirs=' | |
23030 | /usr/X11/include | |
23031 | /usr/X11R6/include | |
23032 | /usr/X11R5/include | |
23033 | /usr/X11R4/include | |
23034 | ||
23035 | /usr/include/X11 | |
23036 | /usr/include/X11R6 | |
23037 | /usr/include/X11R5 | |
23038 | /usr/include/X11R4 | |
23039 | ||
23040 | /usr/local/X11/include | |
23041 | /usr/local/X11R6/include | |
23042 | /usr/local/X11R5/include | |
23043 | /usr/local/X11R4/include | |
23044 | ||
23045 | /usr/local/include/X11 | |
23046 | /usr/local/include/X11R6 | |
23047 | /usr/local/include/X11R5 | |
23048 | /usr/local/include/X11R4 | |
23049 | ||
23050 | /usr/X386/include | |
23051 | /usr/x386/include | |
23052 | /usr/XFree86/include/X11 | |
23053 | ||
23054 | /usr/include | |
23055 | /usr/local/include | |
23056 | /usr/unsupported/include | |
23057 | /usr/athena/include | |
23058 | /usr/local/x11r5/include | |
23059 | /usr/lpp/Xamples/include | |
23060 | ||
23061 | /usr/openwin/include | |
23062 | /usr/openwin/share/include' | |
23063 | ||
23064 | if test "$ac_x_includes" = no; then | |
59f80f10 | 23065 | # Guess where to find include files, by looking for Intrinsic.h. |
c906108c | 23066 | # First, try using that file with no special directory specified. |
bec39cab AC |
23067 | cat >conftest.$ac_ext <<_ACEOF |
23068 | /* confdefs.h. */ | |
23069 | _ACEOF | |
23070 | cat confdefs.h >>conftest.$ac_ext | |
23071 | cat >>conftest.$ac_ext <<_ACEOF | |
23072 | /* end confdefs.h. */ | |
59f80f10 | 23073 | #include <X11/Intrinsic.h> |
bec39cab AC |
23074 | _ACEOF |
23075 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23076 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23077 | ac_status=$? | |
23078 | grep -v '^ *+' conftest.er1 >conftest.err | |
23079 | rm -f conftest.er1 | |
23080 | cat conftest.err >&5 | |
23081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23082 | (exit $ac_status); } >/dev/null; then | |
23083 | if test -s conftest.err; then | |
23084 | ac_cpp_err=$ac_c_preproc_warn_flag | |
23085 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
23086 | else | |
23087 | ac_cpp_err= | |
23088 | fi | |
23089 | else | |
23090 | ac_cpp_err=yes | |
23091 | fi | |
23092 | if test -z "$ac_cpp_err"; then | |
c906108c SS |
23093 | # We can compile using X headers with no special include directory. |
23094 | ac_x_includes= | |
23095 | else | |
bec39cab AC |
23096 | echo "$as_me: failed program was:" >&5 |
23097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23098 | ||
23099 | for ac_dir in $ac_x_header_dirs; do | |
59f80f10 | 23100 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
bec39cab AC |
23101 | ac_x_includes=$ac_dir |
23102 | break | |
23103 | fi | |
23104 | done | |
c906108c | 23105 | fi |
bec39cab AC |
23106 | rm -f conftest.err conftest.$ac_ext |
23107 | fi # $ac_x_includes = no | |
c906108c | 23108 | |
bec39cab | 23109 | if test "$ac_x_libraries" = no; then |
c906108c | 23110 | # Check for the libraries. |
c906108c SS |
23111 | # See if we find them without any special options. |
23112 | # Don't add to $LIBS permanently. | |
bec39cab | 23113 | ac_save_LIBS=$LIBS |
4e8d927d | 23114 | LIBS="-lXt $LIBS" |
bec39cab AC |
23115 | cat >conftest.$ac_ext <<_ACEOF |
23116 | /* confdefs.h. */ | |
23117 | _ACEOF | |
23118 | cat confdefs.h >>conftest.$ac_ext | |
23119 | cat >>conftest.$ac_ext <<_ACEOF | |
23120 | /* end confdefs.h. */ | |
59f80f10 | 23121 | #include <X11/Intrinsic.h> |
bec39cab AC |
23122 | int |
23123 | main () | |
23124 | { | |
59f80f10 | 23125 | XtMalloc (0) |
bec39cab AC |
23126 | ; |
23127 | return 0; | |
23128 | } | |
23129 | _ACEOF | |
23130 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23132 | (eval $ac_link) 2>conftest.er1 | |
23133 | ac_status=$? | |
23134 | grep -v '^ *+' conftest.er1 >conftest.err | |
23135 | rm -f conftest.er1 | |
23136 | cat conftest.err >&5 | |
23137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23138 | (exit $ac_status); } && | |
b4e70030 JB |
23139 | { ac_try='test -z "$ac_c_werror_flag" |
23140 | || test ! -s conftest.err' | |
bec39cab AC |
23141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23142 | (eval $ac_try) 2>&5 | |
23143 | ac_status=$? | |
23144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23145 | (exit $ac_status); }; } && | |
23146 | { ac_try='test -s conftest$ac_exeext' | |
23147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23148 | (eval $ac_try) 2>&5 | |
23149 | ac_status=$? | |
23150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23151 | (exit $ac_status); }; }; then | |
23152 | LIBS=$ac_save_LIBS | |
c906108c SS |
23153 | # We can link X programs with no special library path. |
23154 | ac_x_libraries= | |
23155 | else | |
bec39cab AC |
23156 | echo "$as_me: failed program was:" >&5 |
23157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23158 | ||
b4e70030 | 23159 | LIBS=$ac_save_LIBS |
bec39cab | 23160 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
c906108c | 23161 | do |
bec39cab | 23162 | # Don't even attempt the hair of trying to link an X program! |
c906108c | 23163 | for ac_extension in a so sl; do |
b4e70030 | 23164 | if test -r $ac_dir/libXt.$ac_extension; then |
c906108c SS |
23165 | ac_x_libraries=$ac_dir |
23166 | break 2 | |
23167 | fi | |
23168 | done | |
23169 | done | |
23170 | fi | |
bec39cab AC |
23171 | rm -f conftest.err conftest.$ac_objext \ |
23172 | conftest$ac_exeext conftest.$ac_ext | |
23173 | fi # $ac_x_libraries = no | |
c906108c | 23174 | |
bec39cab | 23175 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
c906108c SS |
23176 | # Didn't find X anywhere. Cache the known absence of X. |
23177 | ac_cv_have_x="have_x=no" | |
23178 | else | |
23179 | # Record where we found X for the cache. | |
23180 | ac_cv_have_x="have_x=yes \ | |
bec39cab | 23181 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
c906108c SS |
23182 | fi |
23183 | fi | |
bec39cab | 23184 | |
c906108c SS |
23185 | fi |
23186 | eval "$ac_cv_have_x" | |
23187 | fi # $with_x != no | |
23188 | ||
23189 | if test "$have_x" != yes; then | |
b4e70030 JB |
23190 | echo "$as_me:$LINENO: result: $have_x" >&5 |
23191 | echo "${ECHO_T}$have_x" >&6 | |
c906108c SS |
23192 | no_x=yes |
23193 | else | |
23194 | # If each of the values was on the command line, it overrides each guess. | |
23195 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
23196 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
23197 | # Update the cache value to reflect the command line values. | |
23198 | ac_cv_have_x="have_x=yes \ | |
23199 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
b4e70030 JB |
23200 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
23201 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
c906108c SS |
23202 | fi |
23203 | ||
23204 | ||
9cc52bde MK |
23205 | # Check whether we should enable the TUI, but only do so if we really |
23206 | # can. | |
23207 | if test x"$enable_tui" = xyes; then | |
23208 | if test -d $srcdir/tui; then | |
23209 | if test "$ac_cv_search_waddstr" != no; then | |
23210 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" | |
23211 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | |
23212 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | |
23213 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" | |
23214 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" | |
23215 | CONFIG_ALL="${CONFIG_ALL} all-tui" | |
23216 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
23217 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
23218 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
23219 | else | |
bec39cab AC |
23220 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
23221 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} | |
9cc52bde MK |
23222 | fi |
23223 | fi | |
23224 | fi | |
23225 | ||
bec39cab AC |
23226 | # Unlike the sim directory, whether a simulator is linked is controlled by |
23227 | # presence of a SIM= and a SIM_OBS= definition in the target '.mt' file. | |
7a292a7a SS |
23228 | # This code just checks for a few cases where we'd like to ignore those |
23229 | # definitions, even when they're present in the '.mt' file. These cases | |
23230 | # are when --disable-sim is specified, or if the simulator directory is | |
6c5cfe5b | 23231 | # not part of the source tree. |
7a292a7a | 23232 | # |
b4e70030 | 23233 | # Check whether --enable-sim or --disable-sim was given. |
7a292a7a | 23234 | if test "${enable_sim+set}" = set; then |
b4e70030 JB |
23235 | enableval="$enable_sim" |
23236 | echo "enable_sim = $enable_sim"; | |
7a292a7a SS |
23237 | echo "enableval = ${enableval}"; |
23238 | case "${enableval}" in | |
23239 | yes) ignore_sim=false ;; | |
23240 | no) ignore_sim=true ;; | |
23241 | *) ignore_sim=false ;; | |
23242 | esac | |
23243 | else | |
23244 | ignore_sim=false | |
b4e70030 | 23245 | fi; |
7a292a7a SS |
23246 | |
23247 | if test ! -d "${srcdir}/../sim"; then | |
23248 | ignore_sim=true | |
23249 | fi | |
23250 | ||
23251 | if test "${ignore_sim}" = "true"; then | |
23252 | IGNORE_SIM="SIM=" | |
23253 | IGNORE_SIM_OBS="SIM_OBS=" | |
23254 | else | |
23255 | IGNORE_SIM="" | |
23256 | IGNORE_SIM_OBS="" | |
60ca704f SE |
23257 | |
23258 | cat >>confdefs.h <<\_ACEOF | |
7a292a7a | 23259 | #define WITH_SIM 1 |
bec39cab | 23260 | _ACEOF |
7a292a7a SS |
23261 | |
23262 | fi | |
23263 | ||
23264 | ||
23265 | ||
c906108c SS |
23266 | |
23267 | ||
23268 | ||
23269 | ||
23270 | ||
23271 | ||
dfcd3bfb | 23272 | |
e56ac5c3 AC |
23273 | |
23274 | ||
b3a90332 AC |
23275 | |
23276 | ||
c35f4ffc | 23277 | # List of host floatformats. |
bec39cab AC |
23278 | |
23279 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 23280 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
bec39cab | 23281 | _ACEOF |
c35f4ffc | 23282 | |
bec39cab AC |
23283 | |
23284 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 23285 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
bec39cab AC |
23286 | _ACEOF |
23287 | ||
c35f4ffc | 23288 | |
bec39cab | 23289 | cat >>confdefs.h <<_ACEOF |
c35f4ffc | 23290 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
bec39cab | 23291 | _ACEOF |
c35f4ffc AC |
23292 | |
23293 | ||
c906108c SS |
23294 | # target_subdir is used by the testsuite to find the target libraries. |
23295 | target_subdir= | |
23296 | if test "${host}" != "${target}"; then | |
23297 | target_subdir="${target_alias}/" | |
23298 | fi | |
23299 | ||
23300 | ||
23301 | frags= | |
771b4502 | 23302 | if test "${gdb_native}" = "yes"; then |
0dad8a66 MK |
23303 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
23304 | if test ! -f ${host_makefile_frag}; then | |
bec39cab AC |
23305 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
23306 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} | |
23307 | { (exit 1); exit 1; }; } | |
0dad8a66 MK |
23308 | fi |
23309 | frags="$frags $host_makefile_frag" | |
23310 | else | |
23311 | host_makefile_frag=/dev/null | |
c906108c | 23312 | fi |
c906108c SS |
23313 | |
23314 | target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt | |
23315 | if test ! -f ${target_makefile_frag}; then | |
bec39cab AC |
23316 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5 |
23317 | echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;} | |
23318 | { (exit 1); exit 1; }; } | |
c906108c SS |
23319 | fi |
23320 | frags="$frags $target_makefile_frag" | |
23321 | ||
23322 | ||
23323 | ||
23324 | ||
23325 | ||
23326 | hostfile=`sed -n ' | |
23327 | s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
23328 | ' ${host_makefile_frag}` | |
23329 | ||
23330 | targetfile=`sed -n ' | |
b523a1fd | 23331 | s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p |
c906108c SS |
23332 | ' ${target_makefile_frag}` |
23333 | ||
771b4502 | 23334 | if test "${gdb_native}" = "yes"; then |
a85f51e7 DJ |
23335 | # We pick this up from the host configuration file (.mh) because we |
23336 | # do not have a native configuration Makefile fragment. | |
c906108c SS |
23337 | nativefile=`sed -n ' |
23338 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
23339 | ' ${host_makefile_frag}` | |
c906108c SS |
23340 | fi |
23341 | ||
23342 | ||
b00a8037 | 23343 | if test x"${gdb_osabi}" != x ; then |
bec39cab AC |
23344 | |
23345 | cat >>confdefs.h <<_ACEOF | |
b00a8037 | 23346 | #define GDB_OSABI_DEFAULT $gdb_osabi |
bec39cab | 23347 | _ACEOF |
b00a8037 DJ |
23348 | |
23349 | fi | |
23350 | ||
8dcde887 | 23351 | # Enable multi-ice-gdb-server. |
b4e70030 | 23352 | # Check whether --enable-multi-ice or --disable-multi-ice was given. |
8dcde887 | 23353 | if test "${enable_multi_ice+set}" = set; then |
b4e70030 JB |
23354 | enableval="$enable_multi_ice" |
23355 | case $enableval in | |
8dcde887 MK |
23356 | yes | no) |
23357 | ;; | |
bec39cab AC |
23358 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
23359 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} | |
23360 | { (exit 1); exit 1; }; } ;; | |
8dcde887 | 23361 | esac |
b4e70030 | 23362 | fi; |
4e8d927d | 23363 | if test "x$enable_multi_ice" = xyes; then |
b4e70030 JB |
23364 | |
23365 | ||
23366 | subdirs="$subdirs multi-ice" | |
3ace7edb | 23367 | |
a85f51e7 DJ |
23368 | fi |
23369 | ||
a13e2c95 UW |
23370 | # We only build gdbserver automatically in a native configuration. |
23371 | if test "$gdb_native" = "yes"; then | |
b4e70030 JB |
23372 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
23373 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 | |
8dcde887 | 23374 | if test "x$build_gdbserver" = xyes; then |
b4e70030 JB |
23375 | echo "$as_me:$LINENO: result: yes" >&5 |
23376 | echo "${ECHO_T}yes" >&6 | |
23377 | ||
23378 | ||
23379 | subdirs="$subdirs gdbserver" | |
3ace7edb | 23380 | |
8dcde887 | 23381 | else |
b4e70030 JB |
23382 | echo "$as_me:$LINENO: result: no" >&5 |
23383 | echo "${ECHO_T}no" >&6 | |
8dcde887 MK |
23384 | fi |
23385 | fi | |
23386 | ||
2c0fc042 AC |
23387 | # If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or |
23388 | # nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link | |
23389 | # to an empty version. | |
c906108c SS |
23390 | |
23391 | files= | |
23392 | links= | |
5a2402b8 | 23393 | |
c906108c | 23394 | rm -f xm.h |
5a2402b8 | 23395 | xm_h="" |
c906108c | 23396 | if test "${hostfile}" != ""; then |
5a2402b8 | 23397 | xm_h=xm.h |
0f475e27 AC |
23398 | case "${hostfile}" in |
23399 | xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;; | |
23400 | * ) GDB_XM_FILE="${hostfile}" | |
23401 | esac | |
5a2402b8 AC |
23402 | files="${files} ${GDB_XM_FILE}" |
23403 | links="${links} xm.h" | |
60ca704f SE |
23404 | |
23405 | cat >>confdefs.h <<_ACEOF | |
b78960be | 23406 | #define GDB_XM_FILE "${GDB_XM_FILE}" |
bec39cab | 23407 | _ACEOF |
5a2402b8 | 23408 | |
c906108c | 23409 | fi |
5a2402b8 AC |
23410 | |
23411 | ||
c906108c | 23412 | rm -f tm.h |
5a2402b8 | 23413 | tm_h="" |
c906108c | 23414 | if test "${targetfile}" != ""; then |
5a2402b8 | 23415 | tm_h=tm.h |
0f475e27 | 23416 | case "${targetfile}" in |
b8c4aece | 23417 | tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;; |
0f475e27 AC |
23418 | * ) GDB_TM_FILE="${targetfile}" |
23419 | esac | |
5a2402b8 AC |
23420 | files="${files} ${GDB_TM_FILE}" |
23421 | links="${links} tm.h" | |
60ca704f SE |
23422 | |
23423 | cat >>confdefs.h <<_ACEOF | |
b78960be | 23424 | #define GDB_TM_FILE "${GDB_TM_FILE}" |
bec39cab | 23425 | _ACEOF |
5a2402b8 | 23426 | |
c906108c | 23427 | fi |
5a2402b8 AC |
23428 | |
23429 | ||
c906108c | 23430 | rm -f nm.h |
5a2402b8 | 23431 | nm_h="" |
c906108c | 23432 | if test "${nativefile}" != ""; then |
5a2402b8 | 23433 | nm_h=nm.h |
0f475e27 AC |
23434 | case "${nativefile}" in |
23435 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; | |
23436 | * ) GDB_NM_FILE="${nativefile}" | |
23437 | esac | |
5a2402b8 AC |
23438 | files="${files} ${GDB_NM_FILE}" |
23439 | links="${links} nm.h" | |
60ca704f SE |
23440 | |
23441 | cat >>confdefs.h <<_ACEOF | |
b78960be | 23442 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
bec39cab | 23443 | _ACEOF |
5a2402b8 | 23444 | |
c906108c | 23445 | fi |
5a2402b8 AC |
23446 | |
23447 | ||
bec39cab AC |
23448 | ac_sources="$files" |
23449 | ac_dests="$links" | |
23450 | while test -n "$ac_sources"; do | |
23451 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
23452 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
23453 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
23454 | done | |
b4e70030 | 23455 | ac_config_links="$ac_config_links $ac_config_links_1" |
c906108c SS |
23456 | |
23457 | ||
c906108c SS |
23458 | |
23459 | ||
c906108c | 23460 | |
c906108c | 23461 | |
bec39cab AC |
23462 | cat >>confdefs.h <<\_ACEOF |
23463 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" | |
23464 | _ACEOF | |
c906108c | 23465 | |
234b45d4 | 23466 | |
234b45d4 KB |
23467 | |
23468 | ||
23469 | ||
b4e70030 | 23470 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
234b45d4 | 23471 | if test "${with_libiconv_prefix+set}" = set; then |
b4e70030 JB |
23472 | withval="$with_libiconv_prefix" |
23473 | ||
234b45d4 KB |
23474 | for dir in `echo "$withval" | tr : ' '`; do |
23475 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
23476 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
23477 | done | |
234b45d4 | 23478 | |
b4e70030 | 23479 | fi; |
234b45d4 | 23480 | |
b4e70030 JB |
23481 | echo "$as_me:$LINENO: checking for iconv" >&5 |
23482 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
bec39cab AC |
23483 | if test "${am_cv_func_iconv+set}" = set; then |
23484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
234b45d4 | 23485 | else |
bec39cab | 23486 | |
234b45d4 KB |
23487 | am_cv_func_iconv="no, consider installing GNU libiconv" |
23488 | am_cv_lib_iconv=no | |
bec39cab AC |
23489 | cat >conftest.$ac_ext <<_ACEOF |
23490 | /* confdefs.h. */ | |
23491 | _ACEOF | |
23492 | cat confdefs.h >>conftest.$ac_ext | |
23493 | cat >>conftest.$ac_ext <<_ACEOF | |
23494 | /* end confdefs.h. */ | |
234b45d4 KB |
23495 | #include <stdlib.h> |
23496 | #include <iconv.h> | |
bec39cab AC |
23497 | int |
23498 | main () | |
23499 | { | |
234b45d4 KB |
23500 | iconv_t cd = iconv_open("",""); |
23501 | iconv(cd,NULL,NULL,NULL,NULL); | |
23502 | iconv_close(cd); | |
bec39cab AC |
23503 | ; |
23504 | return 0; | |
23505 | } | |
23506 | _ACEOF | |
23507 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23509 | (eval $ac_link) 2>conftest.er1 | |
23510 | ac_status=$? | |
23511 | grep -v '^ *+' conftest.er1 >conftest.err | |
23512 | rm -f conftest.er1 | |
23513 | cat conftest.err >&5 | |
23514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23515 | (exit $ac_status); } && | |
b4e70030 JB |
23516 | { ac_try='test -z "$ac_c_werror_flag" |
23517 | || test ! -s conftest.err' | |
bec39cab AC |
23518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23519 | (eval $ac_try) 2>&5 | |
23520 | ac_status=$? | |
23521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23522 | (exit $ac_status); }; } && | |
23523 | { ac_try='test -s conftest$ac_exeext' | |
23524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23525 | (eval $ac_try) 2>&5 | |
23526 | ac_status=$? | |
23527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23528 | (exit $ac_status); }; }; then | |
234b45d4 KB |
23529 | am_cv_func_iconv=yes |
23530 | else | |
bec39cab AC |
23531 | echo "$as_me: failed program was:" >&5 |
23532 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23533 | ||
234b45d4 | 23534 | fi |
bec39cab AC |
23535 | rm -f conftest.err conftest.$ac_objext \ |
23536 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
23537 | if test "$am_cv_func_iconv" != yes; then |
23538 | am_save_LIBS="$LIBS" | |
23539 | LIBS="$LIBS -liconv" | |
bec39cab AC |
23540 | cat >conftest.$ac_ext <<_ACEOF |
23541 | /* confdefs.h. */ | |
23542 | _ACEOF | |
23543 | cat confdefs.h >>conftest.$ac_ext | |
23544 | cat >>conftest.$ac_ext <<_ACEOF | |
23545 | /* end confdefs.h. */ | |
234b45d4 KB |
23546 | #include <stdlib.h> |
23547 | #include <iconv.h> | |
bec39cab AC |
23548 | int |
23549 | main () | |
23550 | { | |
234b45d4 KB |
23551 | iconv_t cd = iconv_open("",""); |
23552 | iconv(cd,NULL,NULL,NULL,NULL); | |
23553 | iconv_close(cd); | |
bec39cab AC |
23554 | ; |
23555 | return 0; | |
23556 | } | |
23557 | _ACEOF | |
23558 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23560 | (eval $ac_link) 2>conftest.er1 | |
23561 | ac_status=$? | |
23562 | grep -v '^ *+' conftest.er1 >conftest.err | |
23563 | rm -f conftest.er1 | |
23564 | cat conftest.err >&5 | |
23565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23566 | (exit $ac_status); } && | |
b4e70030 JB |
23567 | { ac_try='test -z "$ac_c_werror_flag" |
23568 | || test ! -s conftest.err' | |
bec39cab AC |
23569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23570 | (eval $ac_try) 2>&5 | |
23571 | ac_status=$? | |
23572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23573 | (exit $ac_status); }; } && | |
23574 | { ac_try='test -s conftest$ac_exeext' | |
23575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23576 | (eval $ac_try) 2>&5 | |
23577 | ac_status=$? | |
23578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23579 | (exit $ac_status); }; }; then | |
234b45d4 KB |
23580 | am_cv_lib_iconv=yes |
23581 | am_cv_func_iconv=yes | |
23582 | else | |
bec39cab AC |
23583 | echo "$as_me: failed program was:" >&5 |
23584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23585 | ||
234b45d4 | 23586 | fi |
bec39cab AC |
23587 | rm -f conftest.err conftest.$ac_objext \ |
23588 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
23589 | LIBS="$am_save_LIBS" |
23590 | fi | |
bec39cab AC |
23591 | |
23592 | fi | |
b4e70030 JB |
23593 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
23594 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
bec39cab AC |
23595 | if test "$am_cv_func_iconv" = yes; then |
23596 | ||
23597 | cat >>confdefs.h <<\_ACEOF | |
23598 | #define HAVE_ICONV 1 | |
23599 | _ACEOF | |
23600 | ||
b4e70030 JB |
23601 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
23602 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
bec39cab AC |
23603 | if test "${am_cv_proto_iconv+set}" = set; then |
23604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23605 | else | |
23606 | ||
23607 | cat >conftest.$ac_ext <<_ACEOF | |
23608 | /* confdefs.h. */ | |
23609 | _ACEOF | |
23610 | cat confdefs.h >>conftest.$ac_ext | |
23611 | cat >>conftest.$ac_ext <<_ACEOF | |
23612 | /* end confdefs.h. */ | |
23613 | ||
23614 | #include <stdlib.h> | |
23615 | #include <iconv.h> | |
23616 | extern | |
23617 | #ifdef __cplusplus | |
23618 | "C" | |
23619 | #endif | |
23620 | #if defined(__STDC__) || defined(__cplusplus) | |
23621 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
23622 | #else | |
23623 | size_t iconv(); | |
23624 | #endif | |
23625 | ||
23626 | int | |
23627 | main () | |
23628 | { | |
23629 | ||
23630 | ; | |
23631 | return 0; | |
23632 | } | |
23633 | _ACEOF | |
23634 | rm -f conftest.$ac_objext | |
23635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23636 | (eval $ac_compile) 2>conftest.er1 | |
23637 | ac_status=$? | |
23638 | grep -v '^ *+' conftest.er1 >conftest.err | |
23639 | rm -f conftest.er1 | |
23640 | cat conftest.err >&5 | |
23641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23642 | (exit $ac_status); } && | |
b4e70030 JB |
23643 | { ac_try='test -z "$ac_c_werror_flag" |
23644 | || test ! -s conftest.err' | |
bec39cab AC |
23645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23646 | (eval $ac_try) 2>&5 | |
23647 | ac_status=$? | |
23648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23649 | (exit $ac_status); }; } && | |
23650 | { ac_try='test -s conftest.$ac_objext' | |
23651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23652 | (eval $ac_try) 2>&5 | |
23653 | ac_status=$? | |
23654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23655 | (exit $ac_status); }; }; then | |
23656 | am_cv_proto_iconv_arg1="" | |
23657 | else | |
23658 | echo "$as_me: failed program was:" >&5 | |
23659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23660 | ||
b4e70030 | 23661 | am_cv_proto_iconv_arg1="const" |
bec39cab AC |
23662 | fi |
23663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
23664 | 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);" | |
23665 | fi | |
23666 | ||
23667 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
b4e70030 | 23668 | echo "$as_me:$LINENO: result: ${ac_t:- |
bec39cab AC |
23669 | }$am_cv_proto_iconv" >&5 |
23670 | echo "${ECHO_T}${ac_t:- | |
b4e70030 | 23671 | }$am_cv_proto_iconv" >&6 |
bec39cab AC |
23672 | |
23673 | cat >>confdefs.h <<_ACEOF | |
23674 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
23675 | _ACEOF | |
23676 | ||
23677 | fi | |
23678 | LIBICONV= | |
23679 | if test "$am_cv_lib_iconv" = yes; then | |
23680 | LIBICONV="-liconv" | |
23681 | fi | |
23682 | ||
23683 | ||
23684 | ||
b4e70030 JB |
23685 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in" |
23686 | ac_config_commands="$ac_config_commands default" | |
bec39cab AC |
23687 | cat >confcache <<\_ACEOF |
23688 | # This file is a shell script that caches the results of configure | |
23689 | # tests run on this system so they can be shared between configure | |
23690 | # scripts and configure runs, see configure's option --config-cache. | |
23691 | # It is not useful on other systems. If it contains results you don't | |
23692 | # want to keep, you may remove or edit it. | |
23693 | # | |
23694 | # config.status only pays attention to the cache file if you give it | |
23695 | # the --recheck option to rerun configure. | |
23696 | # | |
23697 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
23698 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
23699 | # following values. | |
23700 | ||
23701 | _ACEOF | |
23702 | ||
23703 | # The following way of writing the cache mishandles newlines in values, | |
23704 | # but we know of no workaround that is simple, portable, and efficient. | |
b4e70030 | 23705 | # So, don't put newlines in cache variables' values. |
bec39cab AC |
23706 | # Ultrix sh set writes to stderr and can't be redirected directly, |
23707 | # and sets the high bit in the cache file unless we assign to the vars. | |
b4e70030 | 23708 | { |
bec39cab | 23709 | (set) 2>&1 | |
b4e70030 JB |
23710 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
23711 | *ac_space=\ *) | |
bec39cab AC |
23712 | # `set' does not quote correctly, so add quotes (double-quote |
23713 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
23714 | sed -n \ | |
23715 | "s/'/'\\\\''/g; | |
23716 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
b4e70030 | 23717 | ;; |
bec39cab AC |
23718 | *) |
23719 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
b4e70030 JB |
23720 | sed -n \ |
23721 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 23722 | ;; |
b4e70030 JB |
23723 | esac; |
23724 | } | | |
bec39cab AC |
23725 | sed ' |
23726 | t clear | |
b4e70030 | 23727 | : clear |
bec39cab AC |
23728 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
23729 | t end | |
b4e70030 JB |
23730 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
23731 | : end' >>confcache | |
bec39cab AC |
23732 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
23733 | if test -w $cache_file; then | |
b4e70030 | 23734 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
bec39cab AC |
23735 | cat confcache >$cache_file |
23736 | else | |
b4e70030 | 23737 | echo "not updating unwritable cache $cache_file" |
bec39cab AC |
23738 | fi |
23739 | fi | |
23740 | rm -f confcache | |
23741 | ||
23742 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
23743 | # Let make expand exec_prefix. | |
23744 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
23745 | ||
b4e70030 JB |
23746 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
23747 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
23748 | # trailing colons and then remove the whole line if VPATH becomes empty | |
23749 | # (actually we leave an empty line to preserve line numbers). | |
23750 | if test "x$srcdir" = x.; then | |
23751 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
23752 | s/:*\$(srcdir):*/:/; | |
23753 | s/:*\${srcdir}:*/:/; | |
23754 | s/:*@srcdir@:*/:/; | |
23755 | s/^\([^=]*=[ ]*\):*/\1/; | |
23756 | s/:*$//; | |
23757 | s/^[^=]*=[ ]*$//; | |
23758 | }' | |
23759 | fi | |
23760 | ||
bec39cab AC |
23761 | DEFS=-DHAVE_CONFIG_H |
23762 | ||
23763 | ac_libobjs= | |
23764 | ac_ltlibobjs= | |
23765 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
23766 | # 1. Remove the extension, and $U if already installed. | |
b4e70030 JB |
23767 | ac_i=`echo "$ac_i" | |
23768 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
23769 | # 2. Add them. | |
23770 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
23771 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
bec39cab AC |
23772 | done |
23773 | LIBOBJS=$ac_libobjs | |
23774 | ||
23775 | LTLIBOBJS=$ac_ltlibobjs | |
23776 | ||
23777 | ||
85981d60 AC |
23778 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
23779 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
23780 | Usually this means the macro was only invoked conditionally." >&5 | |
23781 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
23782 | Usually this means the macro was only invoked conditionally." >&2;} | |
23783 | { (exit 1); exit 1; }; } | |
23784 | fi | |
bec39cab AC |
23785 | |
23786 | : ${CONFIG_STATUS=./config.status} | |
23787 | ac_clean_files_save=$ac_clean_files | |
23788 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
23789 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
23790 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
23791 | cat >$CONFIG_STATUS <<_ACEOF | |
23792 | #! $SHELL | |
23793 | # Generated by $as_me. | |
23794 | # Run this file to recreate the current configuration. | |
23795 | # Compiler output produced by configure, useful for debugging | |
23796 | # configure, is in config.log if it exists. | |
23797 | ||
23798 | debug=false | |
23799 | ac_cs_recheck=false | |
23800 | ac_cs_silent=false | |
23801 | SHELL=\${CONFIG_SHELL-$SHELL} | |
23802 | _ACEOF | |
23803 | ||
23804 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23805 | ## --------------------- ## | |
23806 | ## M4sh Initialization. ## | |
23807 | ## --------------------- ## | |
23808 | ||
23809 | # Be Bourne compatible | |
23810 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
23811 | emulate sh | |
23812 | NULLCMD=: | |
23813 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
23814 | # is contrary to our usage. Disable this feature. | |
23815 | alias -g '${1+"$@"}'='"$@"' | |
b4e70030 JB |
23816 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
23817 | set -o posix | |
bec39cab AC |
23818 | fi |
23819 | DUALCASE=1; export DUALCASE # for MKS sh | |
23820 | ||
23821 | # Support unset when possible. | |
23822 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
23823 | as_unset=unset | |
23824 | else | |
23825 | as_unset=false | |
23826 | fi | |
23827 | ||
23828 | ||
23829 | # Work around bugs in pre-3.0 UWIN ksh. | |
b4e70030 | 23830 | $as_unset ENV MAIL MAILPATH |
bec39cab AC |
23831 | PS1='$ ' |
23832 | PS2='> ' | |
23833 | PS4='+ ' | |
23834 | ||
23835 | # NLS nuisances. | |
23836 | for as_var in \ | |
23837 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
23838 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
23839 | LC_TELEPHONE LC_TIME | |
23840 | do | |
23841 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
23842 | eval $as_var=C; export $as_var | |
23843 | else | |
b4e70030 | 23844 | $as_unset $as_var |
bec39cab AC |
23845 | fi |
23846 | done | |
23847 | ||
23848 | # Required to use basename. | |
b4e70030 | 23849 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
23850 | as_expr=expr |
23851 | else | |
23852 | as_expr=false | |
23853 | fi | |
23854 | ||
b4e70030 | 23855 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
bec39cab AC |
23856 | as_basename=basename |
23857 | else | |
23858 | as_basename=false | |
23859 | fi | |
23860 | ||
23861 | ||
23862 | # Name of the executable. | |
b4e70030 | 23863 | as_me=`$as_basename "$0" || |
bec39cab AC |
23864 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
23865 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
23866 | X"$0" : 'X\(/\)$' \| \ |
23867 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 23868 | echo X/"$0" | |
b4e70030 JB |
23869 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
23870 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
23871 | /^X\/\(\/\).*/{ s//\1/; q; } | |
23872 | s/.*/./; q'` | |
bec39cab | 23873 | |
b4e70030 JB |
23874 | |
23875 | # PATH needs CR, and LINENO needs CR and PATH. | |
23876 | # Avoid depending upon Character Ranges. | |
23877 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
23878 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
23879 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
23880 | as_cr_digits='0123456789' | |
23881 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
23882 | ||
23883 | # The user is always right. | |
23884 | if test "${PATH_SEPARATOR+set}" != set; then | |
23885 | echo "#! /bin/sh" >conf$$.sh | |
23886 | echo "exit 0" >>conf$$.sh | |
23887 | chmod +x conf$$.sh | |
23888 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
23889 | PATH_SEPARATOR=';' | |
23890 | else | |
23891 | PATH_SEPARATOR=: | |
23892 | fi | |
23893 | rm -f conf$$.sh | |
23894 | fi | |
bec39cab AC |
23895 | |
23896 | ||
b4e70030 JB |
23897 | as_lineno_1=$LINENO |
23898 | as_lineno_2=$LINENO | |
23899 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
23900 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
23901 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
23902 | # Find who we are. Look in the path if we contain no path at all | |
23903 | # relative or not. | |
23904 | case $0 in | |
23905 | *[\\/]* ) as_myself=$0 ;; | |
23906 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23907 | for as_dir in $PATH | |
23908 | do | |
23909 | IFS=$as_save_IFS | |
23910 | test -z "$as_dir" && as_dir=. | |
23911 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
23912 | done | |
bec39cab | 23913 | |
b4e70030 JB |
23914 | ;; |
23915 | esac | |
23916 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
23917 | # in which case we are not to be found in the path. | |
23918 | if test "x$as_myself" = x; then | |
23919 | as_myself=$0 | |
23920 | fi | |
23921 | if test ! -f "$as_myself"; then | |
23922 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
23923 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
23924 | { (exit 1); exit 1; }; } | |
23925 | fi | |
23926 | case $CONFIG_SHELL in | |
23927 | '') | |
23928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23929 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
23930 | do | |
23931 | IFS=$as_save_IFS | |
23932 | test -z "$as_dir" && as_dir=. | |
23933 | for as_base in sh bash ksh sh5; do | |
23934 | case $as_dir in | |
23935 | /*) | |
23936 | if ("$as_dir/$as_base" -c ' | |
bec39cab AC |
23937 | as_lineno_1=$LINENO |
23938 | as_lineno_2=$LINENO | |
b4e70030 | 23939 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
bec39cab | 23940 | test "x$as_lineno_1" != "x$as_lineno_2" && |
b4e70030 JB |
23941 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
23942 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
23943 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
23944 | CONFIG_SHELL=$as_dir/$as_base | |
23945 | export CONFIG_SHELL | |
23946 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
23947 | fi;; | |
23948 | esac | |
23949 | done | |
23950 | done | |
23951 | ;; | |
23952 | esac | |
bec39cab AC |
23953 | |
23954 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
23955 | # uniformly replaced by the line number. The first 'sed' inserts a | |
b4e70030 JB |
23956 | # line-number line before each line; the second 'sed' does the real |
23957 | # work. The second script uses 'N' to pair each line-number line | |
23958 | # with the numbered line, and appends trailing '-' during | |
23959 | # substitution so that $LINENO is not a special case at line end. | |
bec39cab | 23960 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
b4e70030 JB |
23961 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
23962 | sed '=' <$as_myself | | |
bec39cab AC |
23963 | sed ' |
23964 | N | |
b4e70030 JB |
23965 | s,$,-, |
23966 | : loop | |
23967 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
bec39cab | 23968 | t loop |
b4e70030 JB |
23969 | s,-$,, |
23970 | s,^['$as_cr_digits']*\n,, | |
bec39cab | 23971 | ' >$as_me.lineno && |
b4e70030 JB |
23972 | chmod +x $as_me.lineno || |
23973 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
23974 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
bec39cab AC |
23975 | { (exit 1); exit 1; }; } |
23976 | ||
23977 | # Don't try to exec as it changes $[0], causing all sort of problems | |
23978 | # (the dirname of $[0] is not the place where we might find the | |
b4e70030 JB |
23979 | # original and so on. Autoconf is especially sensible to this). |
23980 | . ./$as_me.lineno | |
bec39cab AC |
23981 | # Exit status is that of the last command. |
23982 | exit | |
23983 | } | |
23984 | ||
23985 | ||
b4e70030 JB |
23986 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
23987 | *c*,-n*) ECHO_N= ECHO_C=' | |
23988 | ' ECHO_T=' ' ;; | |
23989 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
23990 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
bec39cab AC |
23991 | esac |
23992 | ||
b4e70030 | 23993 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
23994 | as_expr=expr |
23995 | else | |
23996 | as_expr=false | |
23997 | fi | |
23998 | ||
23999 | rm -f conf$$ conf$$.exe conf$$.file | |
24000 | echo >conf$$.file | |
24001 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b4e70030 JB |
24002 | # We could just check for DJGPP; but this test a) works b) is more generic |
24003 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
24004 | if test -f conf$$.exe; then | |
24005 | # Don't use ln at all; we don't have any links | |
bec39cab | 24006 | as_ln_s='cp -p' |
b4e70030 JB |
24007 | else |
24008 | as_ln_s='ln -s' | |
24009 | fi | |
bec39cab AC |
24010 | elif ln conf$$.file conf$$ 2>/dev/null; then |
24011 | as_ln_s=ln | |
24012 | else | |
24013 | as_ln_s='cp -p' | |
24014 | fi | |
b4e70030 | 24015 | rm -f conf$$ conf$$.exe conf$$.file |
bec39cab AC |
24016 | |
24017 | if mkdir -p . 2>/dev/null; then | |
24018 | as_mkdir_p=: | |
24019 | else | |
24020 | test -d ./-p && rmdir ./-p | |
24021 | as_mkdir_p=false | |
24022 | fi | |
24023 | ||
b4e70030 | 24024 | as_executable_p="test -f" |
bec39cab AC |
24025 | |
24026 | # Sed expression to map a string onto a valid CPP name. | |
24027 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
24028 | ||
24029 | # Sed expression to map a string onto a valid variable name. | |
24030 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
24031 | ||
24032 | ||
b4e70030 JB |
24033 | # IFS |
24034 | # We need space, tab and new line, in precisely that order. | |
24035 | as_nl=' | |
24036 | ' | |
24037 | IFS=" $as_nl" | |
24038 | ||
24039 | # CDPATH. | |
24040 | $as_unset CDPATH | |
24041 | ||
bec39cab AC |
24042 | exec 6>&1 |
24043 | ||
b4e70030 | 24044 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
bec39cab | 24045 | # report actual input values of CONFIG_FILES etc. instead of their |
b4e70030 JB |
24046 | # values after options handling. Logging --version etc. is OK. |
24047 | exec 5>>config.log | |
24048 | { | |
24049 | echo | |
24050 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
24051 | ## Running $as_me. ## | |
24052 | _ASBOX | |
24053 | } >&5 | |
24054 | cat >&5 <<_CSEOF | |
24055 | ||
bec39cab | 24056 | This file was extended by $as_me, which was |
b4e70030 | 24057 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
24058 | |
24059 | CONFIG_FILES = $CONFIG_FILES | |
24060 | CONFIG_HEADERS = $CONFIG_HEADERS | |
24061 | CONFIG_LINKS = $CONFIG_LINKS | |
24062 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
24063 | $ $0 $@ | |
24064 | ||
b4e70030 JB |
24065 | _CSEOF |
24066 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
24067 | echo >&5 | |
bec39cab AC |
24068 | _ACEOF |
24069 | ||
24070 | # Files that config.status was made for. | |
b4e70030 JB |
24071 | if test -n "$ac_config_files"; then |
24072 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
24073 | fi | |
234b45d4 | 24074 | |
b4e70030 JB |
24075 | if test -n "$ac_config_headers"; then |
24076 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
24077 | fi | |
24078 | ||
24079 | if test -n "$ac_config_links"; then | |
24080 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
24081 | fi | |
24082 | ||
24083 | if test -n "$ac_config_commands"; then | |
24084 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
24085 | fi | |
234b45d4 | 24086 | |
bec39cab | 24087 | cat >>$CONFIG_STATUS <<\_ACEOF |
b4e70030 | 24088 | |
bec39cab AC |
24089 | ac_cs_usage="\ |
24090 | \`$as_me' instantiates files from templates according to the | |
24091 | current configuration. | |
234b45d4 | 24092 | |
bec39cab | 24093 | Usage: $0 [OPTIONS] [FILE]... |
234b45d4 | 24094 | |
bec39cab AC |
24095 | -h, --help print this help, then exit |
24096 | -V, --version print version number, then exit | |
24097 | -q, --quiet do not print progress messages | |
24098 | -d, --debug don't remove temporary files | |
24099 | --recheck update $as_me by reconfiguring in the same conditions | |
24100 | --file=FILE[:TEMPLATE] | |
24101 | instantiate the configuration file FILE | |
24102 | --header=FILE[:TEMPLATE] | |
24103 | instantiate the configuration header FILE | |
234b45d4 | 24104 | |
bec39cab AC |
24105 | Configuration files: |
24106 | $config_files | |
234b45d4 | 24107 | |
bec39cab AC |
24108 | Configuration headers: |
24109 | $config_headers | |
234b45d4 | 24110 | |
bec39cab AC |
24111 | Configuration links: |
24112 | $config_links | |
234b45d4 | 24113 | |
bec39cab AC |
24114 | Configuration commands: |
24115 | $config_commands | |
24116 | ||
24117 | Report bugs to <bug-autoconf@gnu.org>." | |
4e8d927d | 24118 | _ACEOF |
b4e70030 | 24119 | |
bec39cab AC |
24120 | cat >>$CONFIG_STATUS <<_ACEOF |
24121 | ac_cs_version="\\ | |
24122 | config.status | |
b4e70030 | 24123 | configured by $0, generated by GNU Autoconf 2.59, |
bec39cab AC |
24124 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
24125 | ||
b4e70030 | 24126 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
24127 | This config.status script is free software; the Free Software Foundation |
24128 | gives unlimited permission to copy, distribute and modify it." | |
b4e70030 JB |
24129 | srcdir=$srcdir |
24130 | INSTALL="$INSTALL" | |
bec39cab AC |
24131 | _ACEOF |
24132 | ||
24133 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24134 | # If no file are specified by the user, then we need to provide default | |
24135 | # value. By we need to know if files were specified by the user. | |
24136 | ac_need_defaults=: | |
24137 | while test $# != 0 | |
24138 | do | |
24139 | case $1 in | |
24140 | --*=*) | |
b4e70030 JB |
24141 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
24142 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
bec39cab | 24143 | ac_shift=: |
c906108c | 24144 | ;; |
b4e70030 | 24145 | -*) |
bec39cab AC |
24146 | ac_option=$1 |
24147 | ac_optarg=$2 | |
24148 | ac_shift=shift | |
c906108c | 24149 | ;; |
b4e70030 JB |
24150 | *) # This is not an option, so the user has probably given explicit |
24151 | # arguments. | |
24152 | ac_option=$1 | |
24153 | ac_need_defaults=false;; | |
bec39cab | 24154 | esac |
c906108c | 24155 | |
bec39cab AC |
24156 | case $ac_option in |
24157 | # Handling of the options. | |
b4e70030 JB |
24158 | _ACEOF |
24159 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab AC |
24160 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
24161 | ac_cs_recheck=: ;; | |
b4e70030 JB |
24162 | --version | --vers* | -V ) |
24163 | echo "$ac_cs_version"; exit 0 ;; | |
24164 | --he | --h) | |
24165 | # Conflict between --help and --header | |
24166 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
24167 | Try \`$0 --help' for more information." >&5 | |
24168 | echo "$as_me: error: ambiguous option: $1 | |
24169 | Try \`$0 --help' for more information." >&2;} | |
24170 | { (exit 1); exit 1; }; };; | |
24171 | --help | --hel | -h ) | |
24172 | echo "$ac_cs_usage"; exit 0 ;; | |
24173 | --debug | --d* | -d ) | |
bec39cab AC |
24174 | debug=: ;; |
24175 | --file | --fil | --fi | --f ) | |
24176 | $ac_shift | |
24177 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
24178 | ac_need_defaults=false;; | |
24179 | --header | --heade | --head | --hea ) | |
24180 | $ac_shift | |
24181 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
24182 | ac_need_defaults=false;; | |
24183 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
24184 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
24185 | ac_cs_silent=: ;; | |
c906108c | 24186 | |
bec39cab | 24187 | # This is an error. |
b4e70030 JB |
24188 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
24189 | Try \`$0 --help' for more information." >&5 | |
24190 | echo "$as_me: error: unrecognized option: $1 | |
24191 | Try \`$0 --help' for more information." >&2;} | |
bec39cab | 24192 | { (exit 1); exit 1; }; } ;; |
c906108c | 24193 | |
b4e70030 | 24194 | *) ac_config_targets="$ac_config_targets $1" ;; |
c906108c | 24195 | |
bec39cab AC |
24196 | esac |
24197 | shift | |
24198 | done | |
c906108c | 24199 | |
bec39cab | 24200 | ac_configure_extra_args= |
c906108c | 24201 | |
bec39cab AC |
24202 | if $ac_cs_silent; then |
24203 | exec 6>/dev/null | |
24204 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
24205 | fi | |
c906108c | 24206 | |
bec39cab AC |
24207 | _ACEOF |
24208 | cat >>$CONFIG_STATUS <<_ACEOF | |
24209 | if \$ac_cs_recheck; then | |
b4e70030 JB |
24210 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
24211 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
bec39cab AC |
24212 | fi |
24213 | ||
24214 | _ACEOF | |
24215 | ||
24216 | cat >>$CONFIG_STATUS <<_ACEOF | |
c906108c | 24217 | # |
b4e70030 | 24218 | # INIT-COMMANDS section. |
c906108c | 24219 | # |
c906108c | 24220 | |
b4e70030 | 24221 | |
4e8d927d DJ |
24222 | GCC="$GCC" |
24223 | CC="$CC" | |
24224 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
24225 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
24226 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
24227 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
24228 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
24229 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
24230 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
24231 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
24232 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
24233 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
24234 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
24235 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
24236 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
24237 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
24238 | ||
bec39cab AC |
24239 | |
24240 | gdb_host_cpu=$gdb_host_cpu | |
24241 | gdb_target_cpu=$gdb_target_cpu | |
24242 | nativefile=$nativefile | |
24243 | ||
24244 | ||
24245 | _ACEOF | |
24246 | ||
4e8d927d | 24247 | |
b4e70030 JB |
24248 | |
24249 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab | 24250 | for ac_config_target in $ac_config_targets |
c906108c | 24251 | do |
b4e70030 JB |
24252 | case "$ac_config_target" in |
24253 | # Handling of arguments. | |
24254 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
24255 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
24256 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
24257 | "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;; | |
24258 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
24259 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
bec39cab AC |
24260 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
24261 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
24262 | { (exit 1); exit 1; }; };; | |
c906108c SS |
24263 | esac |
24264 | done | |
24265 | ||
bec39cab AC |
24266 | # If the user did not use the arguments to specify the items to instantiate, |
24267 | # then the envvar interface is used. Set only those that are not. | |
24268 | # We use the long form for the default assignment because of an extremely | |
24269 | # bizarre bug on SunOS 4.1.3. | |
24270 | if $ac_need_defaults; then | |
24271 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
24272 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
24273 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
24274 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
24275 | fi | |
24276 | ||
b4e70030 JB |
24277 | # Have a temporary directory for convenience. Make it in the build tree |
24278 | # simply because there is no reason to put it here, and in addition, | |
24279 | # creating and moving files from /tmp can sometimes cause problems. | |
24280 | # Create a temporary directory, and hook for its removal unless debugging. | |
24281 | $debug || | |
24282 | { | |
24283 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
24284 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
24285 | } | |
4e8d927d | 24286 | |
b4e70030 | 24287 | # Create a (secure) tmp directory for tmp files. |
4e8d927d | 24288 | |
b4e70030 JB |
24289 | { |
24290 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
24291 | test -n "$tmp" && test -d "$tmp" | |
24292 | } || | |
24293 | { | |
24294 | tmp=./confstat$$-$RANDOM | |
24295 | (umask 077 && mkdir $tmp) | |
24296 | } || | |
24297 | { | |
24298 | echo "$me: cannot create a temporary directory in ." >&2 | |
24299 | { (exit 1); exit 1; } | |
24300 | } | |
4e8d927d | 24301 | |
b4e70030 | 24302 | _ACEOF |
4e8d927d | 24303 | |
b4e70030 | 24304 | cat >>$CONFIG_STATUS <<_ACEOF |
4e8d927d | 24305 | |
b4e70030 JB |
24306 | # |
24307 | # CONFIG_FILES section. | |
24308 | # | |
4e8d927d | 24309 | |
b4e70030 JB |
24310 | # No need to generate the scripts if there are no CONFIG_FILES. |
24311 | # This happens for instance when ./config.status config.h | |
24312 | if test -n "\$CONFIG_FILES"; then | |
24313 | # Protect against being on the right side of a sed subst in config.status. | |
24314 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
24315 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
24316 | s,@SHELL@,$SHELL,;t t | |
24317 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
24318 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
24319 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
24320 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
24321 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
24322 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
24323 | s,@exec_prefix@,$exec_prefix,;t t | |
24324 | s,@prefix@,$prefix,;t t | |
24325 | s,@program_transform_name@,$program_transform_name,;t t | |
24326 | s,@bindir@,$bindir,;t t | |
24327 | s,@sbindir@,$sbindir,;t t | |
24328 | s,@libexecdir@,$libexecdir,;t t | |
24329 | s,@datadir@,$datadir,;t t | |
24330 | s,@sysconfdir@,$sysconfdir,;t t | |
24331 | s,@sharedstatedir@,$sharedstatedir,;t t | |
24332 | s,@localstatedir@,$localstatedir,;t t | |
24333 | s,@libdir@,$libdir,;t t | |
24334 | s,@includedir@,$includedir,;t t | |
24335 | s,@oldincludedir@,$oldincludedir,;t t | |
24336 | s,@infodir@,$infodir,;t t | |
24337 | s,@mandir@,$mandir,;t t | |
24338 | s,@build_alias@,$build_alias,;t t | |
24339 | s,@host_alias@,$host_alias,;t t | |
24340 | s,@target_alias@,$target_alias,;t t | |
24341 | s,@DEFS@,$DEFS,;t t | |
24342 | s,@ECHO_C@,$ECHO_C,;t t | |
24343 | s,@ECHO_N@,$ECHO_N,;t t | |
24344 | s,@ECHO_T@,$ECHO_T,;t t | |
24345 | s,@LIBS@,$LIBS,;t t | |
24346 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
24347 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
24348 | s,@MAINT@,$MAINT,;t t | |
24349 | s,@CC@,$CC,;t t | |
24350 | s,@CFLAGS@,$CFLAGS,;t t | |
24351 | s,@LDFLAGS@,$LDFLAGS,;t t | |
24352 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
24353 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
24354 | s,@EXEEXT@,$EXEEXT,;t t | |
24355 | s,@OBJEXT@,$OBJEXT,;t t | |
24356 | s,@CPP@,$CPP,;t t | |
24357 | s,@EGREP@,$EGREP,;t t | |
24358 | s,@build@,$build,;t t | |
24359 | s,@build_cpu@,$build_cpu,;t t | |
24360 | s,@build_vendor@,$build_vendor,;t t | |
24361 | s,@build_os@,$build_os,;t t | |
24362 | s,@host@,$host,;t t | |
24363 | s,@host_cpu@,$host_cpu,;t t | |
24364 | s,@host_vendor@,$host_vendor,;t t | |
24365 | s,@host_os@,$host_os,;t t | |
24366 | s,@target@,$target,;t t | |
24367 | s,@target_cpu@,$target_cpu,;t t | |
24368 | s,@target_vendor@,$target_vendor,;t t | |
24369 | s,@target_os@,$target_os,;t t | |
b4e70030 | 24370 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
24371 | s,@LIBINTL@,$LIBINTL,;t t |
24372 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
24373 | s,@INCINTL@,$INCINTL,;t t | |
b4e70030 | 24374 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
24375 | s,@GMSGFMT@,$GMSGFMT,;t t |
24376 | s,@POSUB@,$POSUB,;t t | |
b4e70030 | 24377 | s,@CATALOGS@,$CATALOGS,;t t |
b4e70030 | 24378 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
b4e70030 | 24379 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
24380 | s,@GENCAT@,$GENCAT,;t t |
24381 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
b4e70030 JB |
24382 | s,@localedir@,$localedir,;t t |
24383 | s,@PACKAGE@,$PACKAGE,;t t | |
24384 | s,@subdirs@,$subdirs,;t t | |
24385 | s,@AWK@,$AWK,;t t | |
24386 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
24387 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
24388 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
24389 | s,@LN_S@,$LN_S,;t t | |
20e95c23 DJ |
24390 | s,@RANLIB@,$RANLIB,;t t |
24391 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
b4e70030 JB |
24392 | s,@YACC@,$YACC,;t t |
24393 | s,@AR@,$AR,;t t | |
24394 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
24395 | s,@DLLTOOL@,$DLLTOOL,;t t | |
24396 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
24397 | s,@WINDRES@,$WINDRES,;t t | |
24398 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
24399 | s,@MIG@,$MIG,;t t | |
24400 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t | |
6a30b0a5 AS |
24401 | s,@READLINE@,$READLINE,;t t |
24402 | s,@READLINE_DEPS@,$READLINE_DEPS,;t t | |
24403 | s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t | |
3841debe DJ |
24404 | s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t |
24405 | s,@LIBEXPAT@,$LIBEXPAT,;t t | |
24406 | s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t | |
20e95c23 | 24407 | s,@ALLOCA@,$ALLOCA,;t t |
b4e70030 JB |
24408 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t |
24409 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t | |
24410 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t | |
24411 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
24412 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
24413 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t | |
24414 | s,@WIN32LIBS@,$WIN32LIBS,;t t | |
24415 | s,@LIBGUI@,$LIBGUI,;t t | |
24416 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t | |
24417 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t | |
24418 | s,@TCL_VERSION@,$TCL_VERSION,;t t | |
24419 | s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t | |
24420 | s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t | |
24421 | s,@TCL_CC@,$TCL_CC,;t t | |
24422 | s,@TCL_DEFS@,$TCL_DEFS,;t t | |
24423 | s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t | |
24424 | s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t | |
24425 | s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t | |
24426 | s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t | |
24427 | s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t | |
24428 | s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t | |
24429 | s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t | |
24430 | s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t | |
24431 | s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t | |
24432 | s,@TCL_RANLIB@,$TCL_RANLIB,;t t | |
24433 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t | |
24434 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t | |
24435 | s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t | |
24436 | s,@TK_VERSION@,$TK_VERSION,;t t | |
24437 | s,@TK_DEFS@,$TK_DEFS,;t t | |
24438 | s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t | |
24439 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t | |
24440 | s,@TK_XLIBSW@,$TK_XLIBSW,;t t | |
24441 | s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t | |
24442 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t | |
24443 | s,@TCLHDIR@,$TCLHDIR,;t t | |
24444 | s,@TKHDIR@,$TKHDIR,;t t | |
24445 | s,@ITCLHDIR@,$ITCLHDIR,;t t | |
24446 | s,@ITKHDIR@,$ITKHDIR,;t t | |
24447 | s,@ITCL_VERSION@,$ITCL_VERSION,;t t | |
24448 | s,@ITCL_DEFS@,$ITCL_DEFS,;t t | |
24449 | s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t | |
24450 | s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t | |
24451 | s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t | |
24452 | s,@ITK_VERSION@,$ITK_VERSION,;t t | |
24453 | s,@ITK_DEFS@,$ITK_DEFS,;t t | |
24454 | s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t | |
24455 | s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t | |
24456 | s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t | |
24457 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
24458 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t | |
24459 | s,@X_LIBS@,$X_LIBS,;t t | |
24460 | s,@TCL_DEPS@,$TCL_DEPS,;t t | |
24461 | s,@TK_DEPS@,$TK_DEPS,;t t | |
24462 | s,@ITCLLIB@,$ITCLLIB,;t t | |
24463 | s,@ITCL_DEPS@,$ITCL_DEPS,;t t | |
24464 | s,@ITKLIB@,$ITKLIB,;t t | |
24465 | s,@ITK_DEPS@,$ITK_DEPS,;t t | |
24466 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t | |
24467 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t | |
24468 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t | |
24469 | s,@IGNORE_SIM@,$IGNORE_SIM,;t t | |
24470 | s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t | |
24471 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t | |
24472 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t | |
24473 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t | |
24474 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t | |
24475 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t | |
24476 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t | |
24477 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t | |
24478 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t | |
24479 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t | |
24480 | s,@target_subdir@,$target_subdir,;t t | |
24481 | s,@frags@,$frags,;t t | |
24482 | s,@xm_h@,$xm_h,;t t | |
24483 | s,@tm_h@,$tm_h,;t t | |
24484 | s,@nm_h@,$nm_h,;t t | |
24485 | s,@LIBICONV@,$LIBICONV,;t t | |
24486 | s,@LIBOBJS@,$LIBOBJS,;t t | |
24487 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
24488 | /@host_makefile_frag@/r $host_makefile_frag | |
24489 | s,@host_makefile_frag@,,;t t | |
24490 | /@target_makefile_frag@/r $target_makefile_frag | |
24491 | s,@target_makefile_frag@,,;t t | |
24492 | CEOF | |
24493 | ||
24494 | _ACEOF | |
24495 | ||
24496 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24497 | # Split the substitutions into bite-sized pieces for seds with | |
24498 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
24499 | ac_max_sed_lines=48 | |
24500 | ac_sed_frag=1 # Number of current file. | |
24501 | ac_beg=1 # First line for current file. | |
24502 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
24503 | ac_more_lines=: | |
24504 | ac_sed_cmds= | |
24505 | while $ac_more_lines; do | |
24506 | if test $ac_beg -gt 1; then | |
24507 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
24508 | else | |
24509 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
4e8d927d | 24510 | fi |
b4e70030 JB |
24511 | if test ! -s $tmp/subs.frag; then |
24512 | ac_more_lines=false | |
24513 | else | |
24514 | # The purpose of the label and of the branching condition is to | |
24515 | # speed up the sed processing (if there are no `@' at all, there | |
24516 | # is no need to browse any of the substitutions). | |
24517 | # These are the two extra sed commands mentioned above. | |
24518 | (echo ':t | |
24519 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
24520 | if test -z "$ac_sed_cmds"; then | |
24521 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
24522 | else | |
24523 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
24524 | fi | |
24525 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
24526 | ac_beg=$ac_end | |
24527 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
24528 | fi | |
24529 | done | |
24530 | if test -z "$ac_sed_cmds"; then | |
24531 | ac_sed_cmds=cat | |
24532 | fi | |
24533 | fi # test -n "$CONFIG_FILES" | |
4e8d927d | 24534 | |
b4e70030 JB |
24535 | _ACEOF |
24536 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24537 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
24538 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
24539 | case $ac_file in | |
24540 | - | *:- | *:-:* ) # input from stdin | |
24541 | cat >$tmp/stdin | |
24542 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24543 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24544 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24545 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24546 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
24547 | esac |
24548 | ||
b4e70030 JB |
24549 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
24550 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
bec39cab AC |
24551 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
24552 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
24553 | X"$ac_file" : 'X\(//\)$' \| \ | |
b4e70030 JB |
24554 | X"$ac_file" : 'X\(/\)' \| \ |
24555 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 24556 | echo X"$ac_file" | |
b4e70030 JB |
24557 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
24558 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24559 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24560 | /^X\(\/\).*/{ s//\1/; q; } | |
24561 | s/.*/./; q'` | |
24562 | { if $as_mkdir_p; then | |
24563 | mkdir -p "$ac_dir" | |
24564 | else | |
24565 | as_dir="$ac_dir" | |
bec39cab | 24566 | as_dirs= |
b4e70030 JB |
24567 | while test ! -d "$as_dir"; do |
24568 | as_dirs="$as_dir $as_dirs" | |
24569 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
24570 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
24571 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24572 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
24573 | X"$as_dir" : 'X\(/\)' \| \ |
24574 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 24575 | echo X"$as_dir" | |
b4e70030 JB |
24576 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
24577 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24578 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24579 | /^X\(\/\).*/{ s//\1/; q; } | |
24580 | s/.*/./; q'` | |
bec39cab | 24581 | done |
b4e70030 JB |
24582 | test ! -n "$as_dirs" || mkdir $as_dirs |
24583 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
24584 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 24585 | { (exit 1); exit 1; }; }; } |
b4e70030 | 24586 | |
bec39cab AC |
24587 | ac_builddir=. |
24588 | ||
b4e70030 | 24589 | if test "$ac_dir" != .; then |
bec39cab | 24590 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
24591 | # A "../" for each directory in $ac_dir_suffix. |
24592 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
24593 | else | |
24594 | ac_dir_suffix= ac_top_builddir= | |
24595 | fi | |
bec39cab AC |
24596 | |
24597 | case $srcdir in | |
b4e70030 | 24598 | .) # No --srcdir option. We are building in place. |
bec39cab | 24599 | ac_srcdir=. |
b4e70030 JB |
24600 | if test -z "$ac_top_builddir"; then |
24601 | ac_top_srcdir=. | |
24602 | else | |
24603 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
24604 | fi ;; | |
24605 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 24606 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
24607 | ac_top_srcdir=$srcdir ;; |
24608 | *) # Relative path. | |
24609 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
24610 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
bec39cab AC |
24611 | esac |
24612 | ||
b4e70030 JB |
24613 | # Do not use `cd foo && pwd` to compute absolute paths, because |
24614 | # the directories may not exist. | |
24615 | case `pwd` in | |
24616 | .) ac_abs_builddir="$ac_dir";; | |
24617 | *) | |
24618 | case "$ac_dir" in | |
24619 | .) ac_abs_builddir=`pwd`;; | |
24620 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
24621 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
24622 | esac;; | |
24623 | esac | |
24624 | case $ac_abs_builddir in | |
24625 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24626 | *) | |
24627 | case ${ac_top_builddir}. in | |
24628 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
24629 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24630 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
24631 | esac;; | |
24632 | esac | |
24633 | case $ac_abs_builddir in | |
24634 | .) ac_abs_srcdir=$ac_srcdir;; | |
24635 | *) | |
24636 | case $ac_srcdir in | |
24637 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
24638 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
24639 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
24640 | esac;; | |
24641 | esac | |
24642 | case $ac_abs_builddir in | |
24643 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24644 | *) | |
24645 | case $ac_top_srcdir in | |
24646 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
24647 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24648 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
24649 | esac;; | |
24650 | esac | |
c906108c | 24651 | |
c906108c | 24652 | |
bec39cab AC |
24653 | case $INSTALL in |
24654 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
b4e70030 | 24655 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
c906108c | 24656 | esac |
121ce6e5 | 24657 | |
b4e70030 JB |
24658 | if test x"$ac_file" != x-; then |
24659 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
24660 | echo "$as_me: creating $ac_file" >&6;} | |
24661 | rm -f "$ac_file" | |
24662 | fi | |
24663 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
24664 | # use $as_me), people would be surprised to read: | |
24665 | # /* config.h. Generated by config.status. */ | |
24666 | if test x"$ac_file" = x-; then | |
24667 | configure_input= | |
24668 | else | |
24669 | configure_input="$ac_file. " | |
24670 | fi | |
24671 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
24672 | sed 's,.*/,,'` by configure." | |
24673 | ||
24674 | # First look for the input files in the build tree, otherwise in the | |
24675 | # src tree. | |
24676 | ac_file_inputs=`IFS=: | |
24677 | for f in $ac_file_in; do | |
24678 | case $f in | |
24679 | -) echo $tmp/stdin ;; | |
24680 | [\\/$]*) | |
24681 | # Absolute (can't be DOS-style, as IFS=:) | |
24682 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24683 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24684 | { (exit 1); exit 1; }; } | |
24685 | echo "$f";; | |
24686 | *) # Relative | |
24687 | if test -f "$f"; then | |
24688 | # Build tree | |
24689 | echo "$f" | |
24690 | elif test -f "$srcdir/$f"; then | |
24691 | # Source tree | |
24692 | echo "$srcdir/$f" | |
24693 | else | |
24694 | # /dev/null tree | |
24695 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24696 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24697 | { (exit 1); exit 1; }; } | |
24698 | fi;; | |
24699 | esac | |
24700 | done` || { (exit 1); exit 1; } | |
4e8d927d | 24701 | _ACEOF |
bec39cab AC |
24702 | cat >>$CONFIG_STATUS <<_ACEOF |
24703 | sed "$ac_vpsub | |
24704 | $extrasub | |
24705 | _ACEOF | |
24706 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24707 | :t | |
24708 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
b4e70030 JB |
24709 | s,@configure_input@,$configure_input,;t t |
24710 | s,@srcdir@,$ac_srcdir,;t t | |
24711 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
24712 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
24713 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
24714 | s,@builddir@,$ac_builddir,;t t | |
24715 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
24716 | s,@top_builddir@,$ac_top_builddir,;t t | |
24717 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
24718 | s,@INSTALL@,$ac_INSTALL,;t t | |
24719 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
24720 | rm -f $tmp/stdin | |
24721 | if test x"$ac_file" != x-; then | |
24722 | mv $tmp/out $ac_file | |
24723 | else | |
24724 | cat $tmp/out | |
24725 | rm -f $tmp/out | |
24726 | fi | |
24727 | ||
24728 | done | |
24729 | _ACEOF | |
24730 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24731 | ||
24732 | # | |
24733 | # CONFIG_HEADER section. | |
24734 | # | |
24735 | ||
24736 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
24737 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
24738 | # | |
24739 | # ac_d sets the value in "#define NAME VALUE" lines. | |
24740 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
24741 | ac_dB='[ ].*$,\1#\2' | |
24742 | ac_dC=' ' | |
24743 | ac_dD=',;t' | |
24744 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
24745 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
24746 | ac_uB='$,\1#\2define\3' | |
24747 | ac_uC=' ' | |
24748 | ac_uD=',;t' | |
24749 | ||
24750 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
24751 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
bec39cab | 24752 | case $ac_file in |
b4e70030 JB |
24753 | - | *:- | *:-:* ) # input from stdin |
24754 | cat >$tmp/stdin | |
24755 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24756 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24757 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24758 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
24759 | * ) ac_file_in=$ac_file.in ;; | |
c906108c | 24760 | esac |
b4e70030 JB |
24761 | |
24762 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
24763 | echo "$as_me: creating $ac_file" >&6;} | |
24764 | ||
24765 | # First look for the input files in the build tree, otherwise in the | |
24766 | # src tree. | |
24767 | ac_file_inputs=`IFS=: | |
24768 | for f in $ac_file_in; do | |
24769 | case $f in | |
24770 | -) echo $tmp/stdin ;; | |
24771 | [\\/$]*) | |
24772 | # Absolute (can't be DOS-style, as IFS=:) | |
24773 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24774 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24775 | { (exit 1); exit 1; }; } | |
24776 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
24777 | echo "$f";; | |
24778 | *) # Relative | |
24779 | if test -f "$f"; then | |
24780 | # Build tree | |
24781 | echo "$f" | |
24782 | elif test -f "$srcdir/$f"; then | |
24783 | # Source tree | |
24784 | echo "$srcdir/$f" | |
24785 | else | |
24786 | # /dev/null tree | |
24787 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
24788 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
24789 | { (exit 1); exit 1; }; } | |
24790 | fi;; | |
24791 | esac | |
24792 | done` || { (exit 1); exit 1; } | |
24793 | # Remove the trailing spaces. | |
24794 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
24795 | ||
24796 | _ACEOF | |
24797 | ||
24798 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
24799 | # `conftest.undefs', that substitutes the proper values into | |
24800 | # config.h.in to produce config.h. The first handles `#define' | |
24801 | # templates, and the second `#undef' templates. | |
24802 | # And first: Protect against being on the right side of a sed subst in | |
24803 | # config.status. Protect against being in an unquoted here document | |
24804 | # in config.status. | |
24805 | rm -f conftest.defines conftest.undefs | |
24806 | # Using a here document instead of a string reduces the quoting nightmare. | |
24807 | # Putting comments in sed scripts is not portable. | |
24808 | # | |
24809 | # `end' is used to avoid that the second main sed command (meant for | |
24810 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
24811 | # See the Autoconf documentation for `clear'. | |
24812 | cat >confdef2sed.sed <<\_ACEOF | |
24813 | s/[\\&,]/\\&/g | |
24814 | s,[\\$`],\\&,g | |
24815 | t clear | |
24816 | : clear | |
24817 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
24818 | t end | |
24819 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
24820 | : end | |
24821 | _ACEOF | |
24822 | # If some macros were called several times there might be several times | |
24823 | # the same #defines, which is useless. Nevertheless, we may not want to | |
24824 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
24825 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
24826 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
24827 | rm -f confdef2sed.sed | |
24828 | ||
24829 | # This sed command replaces #undef with comments. This is necessary, for | |
c906108c SS |
24830 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
24831 | # on some systems where configure will not decide to define it. | |
b4e70030 JB |
24832 | cat >>conftest.undefs <<\_ACEOF |
24833 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
24834 | _ACEOF | |
24835 | ||
24836 | # Break up conftest.defines because some shells have a limit on the size | |
24837 | # of here documents, and old seds have small limits too (100 cmds). | |
24838 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
24839 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
24840 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
24841 | echo ' :' >>$CONFIG_STATUS | |
24842 | rm -f conftest.tail | |
24843 | while grep . conftest.defines >/dev/null | |
bec39cab | 24844 | do |
b4e70030 JB |
24845 | # Write a limited-size here document to $tmp/defines.sed. |
24846 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
24847 | # Speed up: don't consider the non `#define' lines. | |
24848 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
24849 | # Work around the forget-to-reset-the-flag bug. | |
24850 | echo 't clr' >>$CONFIG_STATUS | |
24851 | echo ': clr' >>$CONFIG_STATUS | |
24852 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
bec39cab | 24853 | echo 'CEOF |
b4e70030 JB |
24854 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
24855 | rm -f $tmp/in | |
24856 | mv $tmp/out $tmp/in | |
24857 | ' >>$CONFIG_STATUS | |
24858 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
bec39cab AC |
24859 | rm -f conftest.defines |
24860 | mv conftest.tail conftest.defines | |
24861 | done | |
b4e70030 JB |
24862 | rm -f conftest.defines |
24863 | echo ' fi # grep' >>$CONFIG_STATUS | |
24864 | echo >>$CONFIG_STATUS | |
24865 | ||
24866 | # Break up conftest.undefs because some shells have a limit on the size | |
24867 | # of here documents, and old seds have small limits too (100 cmds). | |
24868 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
24869 | rm -f conftest.tail | |
24870 | while grep . conftest.undefs >/dev/null | |
24871 | do | |
24872 | # Write a limited-size here document to $tmp/undefs.sed. | |
24873 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
24874 | # Speed up: don't consider the non `#undef' | |
24875 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
24876 | # Work around the forget-to-reset-the-flag bug. | |
24877 | echo 't clr' >>$CONFIG_STATUS | |
24878 | echo ': clr' >>$CONFIG_STATUS | |
24879 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
24880 | echo 'CEOF | |
24881 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
24882 | rm -f $tmp/in | |
24883 | mv $tmp/out $tmp/in | |
24884 | ' >>$CONFIG_STATUS | |
24885 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
24886 | rm -f conftest.undefs | |
24887 | mv conftest.tail conftest.undefs | |
24888 | done | |
24889 | rm -f conftest.undefs | |
bec39cab AC |
24890 | |
24891 | cat >>$CONFIG_STATUS <<\_ACEOF | |
b4e70030 JB |
24892 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
24893 | # use $as_me), people would be surprised to read: | |
24894 | # /* config.h. Generated by config.status. */ | |
24895 | if test x"$ac_file" = x-; then | |
24896 | echo "/* Generated by configure. */" >$tmp/config.h | |
24897 | else | |
24898 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
24899 | fi | |
24900 | cat $tmp/in >>$tmp/config.h | |
24901 | rm -f $tmp/in | |
bec39cab | 24902 | if test x"$ac_file" != x-; then |
b4e70030 | 24903 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
bec39cab AC |
24904 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
24905 | echo "$as_me: $ac_file is unchanged" >&6;} | |
24906 | else | |
b4e70030 JB |
24907 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
24908 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24909 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
24910 | X"$ac_file" : 'X\(//\)$' \| \ | |
24911 | X"$ac_file" : 'X\(/\)' \| \ | |
24912 | . : '\(.\)' 2>/dev/null || | |
24913 | echo X"$ac_file" | | |
24914 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24915 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24916 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24917 | /^X\(\/\).*/{ s//\1/; q; } | |
24918 | s/.*/./; q'` | |
24919 | { if $as_mkdir_p; then | |
24920 | mkdir -p "$ac_dir" | |
24921 | else | |
24922 | as_dir="$ac_dir" | |
24923 | as_dirs= | |
24924 | while test ! -d "$as_dir"; do | |
24925 | as_dirs="$as_dir $as_dirs" | |
24926 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
24927 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24928 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24929 | X"$as_dir" : 'X\(//\)$' \| \ | |
24930 | X"$as_dir" : 'X\(/\)' \| \ | |
24931 | . : '\(.\)' 2>/dev/null || | |
24932 | echo X"$as_dir" | | |
24933 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24934 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24935 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24936 | /^X\(\/\).*/{ s//\1/; q; } | |
24937 | s/.*/./; q'` | |
24938 | done | |
24939 | test ! -n "$as_dirs" || mkdir $as_dirs | |
24940 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
24941 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
24942 | { (exit 1); exit 1; }; }; } | |
24943 | ||
bec39cab | 24944 | rm -f $ac_file |
b4e70030 | 24945 | mv $tmp/config.h $ac_file |
bec39cab AC |
24946 | fi |
24947 | else | |
b4e70030 JB |
24948 | cat $tmp/config.h |
24949 | rm -f $tmp/config.h | |
bec39cab | 24950 | fi |
b4e70030 JB |
24951 | done |
24952 | _ACEOF | |
24953 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24954 | ||
24955 | # | |
24956 | # CONFIG_LINKS section. | |
24957 | # | |
24958 | ||
24959 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue | |
24960 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
24961 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 24962 | |
b4e70030 JB |
24963 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
24964 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
24965 | |
24966 | if test ! -r $srcdir/$ac_source; then | |
bec39cab AC |
24967 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
24968 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
24969 | { (exit 1); exit 1; }; } | |
c906108c | 24970 | fi |
b4e70030 JB |
24971 | rm -f $ac_dest |
24972 | ||
24973 | # Make relative symlinks. | |
24974 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || | |
24975 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24976 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
24977 | X"$ac_dest" : 'X\(//\)$' \| \ | |
24978 | X"$ac_dest" : 'X\(/\)' \| \ | |
24979 | . : '\(.\)' 2>/dev/null || | |
24980 | echo X"$ac_dest" | | |
24981 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24982 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24983 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24984 | /^X\(\/\).*/{ s//\1/; q; } | |
24985 | s/.*/./; q'` | |
24986 | { if $as_mkdir_p; then | |
24987 | mkdir -p "$ac_dest_dir" | |
24988 | else | |
24989 | as_dir="$ac_dest_dir" | |
24990 | as_dirs= | |
24991 | while test ! -d "$as_dir"; do | |
24992 | as_dirs="$as_dir $as_dirs" | |
24993 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
24994 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24995 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24996 | X"$as_dir" : 'X\(//\)$' \| \ | |
24997 | X"$as_dir" : 'X\(/\)' \| \ | |
24998 | . : '\(.\)' 2>/dev/null || | |
24999 | echo X"$as_dir" | | |
25000 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25001 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25002 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25003 | /^X\(\/\).*/{ s//\1/; q; } | |
25004 | s/.*/./; q'` | |
25005 | done | |
25006 | test ! -n "$as_dirs" || mkdir $as_dirs | |
25007 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
25008 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
25009 | { (exit 1); exit 1; }; }; } | |
25010 | ||
25011 | ac_builddir=. | |
25012 | ||
25013 | if test "$ac_dest_dir" != .; then | |
25014 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
25015 | # A "../" for each directory in $ac_dir_suffix. | |
25016 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25017 | else | |
25018 | ac_dir_suffix= ac_top_builddir= | |
25019 | fi | |
25020 | ||
25021 | case $srcdir in | |
25022 | .) # No --srcdir option. We are building in place. | |
25023 | ac_srcdir=. | |
25024 | if test -z "$ac_top_builddir"; then | |
25025 | ac_top_srcdir=. | |
25026 | else | |
25027 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25028 | fi ;; | |
25029 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
25030 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25031 | ac_top_srcdir=$srcdir ;; | |
25032 | *) # Relative path. | |
25033 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25034 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25035 | esac | |
25036 | ||
25037 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
25038 | # the directories may not exist. | |
25039 | case `pwd` in | |
25040 | .) ac_abs_builddir="$ac_dest_dir";; | |
25041 | *) | |
25042 | case "$ac_dest_dir" in | |
25043 | .) ac_abs_builddir=`pwd`;; | |
25044 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
25045 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
25046 | esac;; | |
25047 | esac | |
25048 | case $ac_abs_builddir in | |
25049 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25050 | *) | |
25051 | case ${ac_top_builddir}. in | |
25052 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25053 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25054 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25055 | esac;; | |
25056 | esac | |
25057 | case $ac_abs_builddir in | |
25058 | .) ac_abs_srcdir=$ac_srcdir;; | |
25059 | *) | |
25060 | case $ac_srcdir in | |
25061 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25062 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25063 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25064 | esac;; | |
25065 | esac | |
25066 | case $ac_abs_builddir in | |
25067 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25068 | *) | |
25069 | case $ac_top_srcdir in | |
25070 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25071 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25072 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25073 | esac;; | |
25074 | esac | |
25075 | ||
bec39cab AC |
25076 | |
25077 | case $srcdir in | |
25078 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
b4e70030 | 25079 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
c906108c | 25080 | esac |
b4e70030 JB |
25081 | |
25082 | # Try a symlink, then a hard link, then a copy. | |
25083 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
25084 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
25085 | cp -p $srcdir/$ac_source $ac_dest || | |
25086 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
25087 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
bec39cab | 25088 | { (exit 1); exit 1; }; } |
b4e70030 JB |
25089 | done |
25090 | _ACEOF | |
25091 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25092 | ||
25093 | # | |
25094 | # CONFIG_COMMANDS section. | |
25095 | # | |
25096 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
25097 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
25098 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25099 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
25100 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25101 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
25102 | X"$ac_dest" : 'X\(//\)$' \| \ | |
25103 | X"$ac_dest" : 'X\(/\)' \| \ | |
25104 | . : '\(.\)' 2>/dev/null || | |
25105 | echo X"$ac_dest" | | |
25106 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25107 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25108 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25109 | /^X\(\/\).*/{ s//\1/; q; } | |
25110 | s/.*/./; q'` | |
25111 | { if $as_mkdir_p; then | |
25112 | mkdir -p "$ac_dir" | |
25113 | else | |
25114 | as_dir="$ac_dir" | |
25115 | as_dirs= | |
25116 | while test ! -d "$as_dir"; do | |
25117 | as_dirs="$as_dir $as_dirs" | |
25118 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25119 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25120 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25121 | X"$as_dir" : 'X\(//\)$' \| \ | |
25122 | X"$as_dir" : 'X\(/\)' \| \ | |
25123 | . : '\(.\)' 2>/dev/null || | |
25124 | echo X"$as_dir" | | |
25125 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25126 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25127 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25128 | /^X\(\/\).*/{ s//\1/; q; } | |
25129 | s/.*/./; q'` | |
25130 | done | |
25131 | test ! -n "$as_dirs" || mkdir $as_dirs | |
25132 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25133 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
25134 | { (exit 1); exit 1; }; }; } | |
25135 | ||
25136 | ac_builddir=. | |
25137 | ||
25138 | if test "$ac_dir" != .; then | |
25139 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
25140 | # A "../" for each directory in $ac_dir_suffix. | |
25141 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25142 | else | |
25143 | ac_dir_suffix= ac_top_builddir= | |
25144 | fi | |
25145 | ||
25146 | case $srcdir in | |
25147 | .) # No --srcdir option. We are building in place. | |
25148 | ac_srcdir=. | |
25149 | if test -z "$ac_top_builddir"; then | |
25150 | ac_top_srcdir=. | |
25151 | else | |
25152 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25153 | fi ;; | |
25154 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
25155 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25156 | ac_top_srcdir=$srcdir ;; | |
25157 | *) # Relative path. | |
25158 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25159 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25160 | esac | |
25161 | ||
25162 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
25163 | # the directories may not exist. | |
25164 | case `pwd` in | |
25165 | .) ac_abs_builddir="$ac_dir";; | |
25166 | *) | |
25167 | case "$ac_dir" in | |
25168 | .) ac_abs_builddir=`pwd`;; | |
25169 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
25170 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
25171 | esac;; | |
25172 | esac | |
25173 | case $ac_abs_builddir in | |
25174 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25175 | *) | |
25176 | case ${ac_top_builddir}. in | |
25177 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25178 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25179 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25180 | esac;; | |
25181 | esac | |
25182 | case $ac_abs_builddir in | |
25183 | .) ac_abs_srcdir=$ac_srcdir;; | |
25184 | *) | |
25185 | case $ac_srcdir in | |
25186 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25187 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25188 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25189 | esac;; | |
25190 | esac | |
25191 | case $ac_abs_builddir in | |
25192 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25193 | *) | |
25194 | case $ac_top_srcdir in | |
25195 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25196 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25197 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25198 | esac;; | |
25199 | esac | |
bec39cab | 25200 | |
bec39cab | 25201 | |
b4e70030 JB |
25202 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
25203 | echo "$as_me: executing $ac_dest commands" >&6;} | |
25204 | case $ac_dest in | |
25205 | gdb_stdint.h ) | |
4e8d927d DJ |
25206 | if test "$GCC" = yes; then |
25207 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
25208 | else | |
25209 | echo "/* generated for $CC */" > tmp-stdint.h | |
25210 | fi | |
25211 | ||
25212 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25213 | ||
25214 | #ifndef GCC_GENERATED_STDINT_H | |
25215 | #define GCC_GENERATED_STDINT_H 1 | |
25216 | ||
25217 | #include <sys/types.h> | |
25218 | EOF | |
25219 | ||
25220 | if test "$acx_cv_header_stdint" != stdint.h; then | |
25221 | echo "#include <stddef.h>" >> tmp-stdint.h | |
25222 | fi | |
25223 | if test "$acx_cv_header_stdint" != stddef.h; then | |
25224 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
25225 | fi | |
25226 | ||
25227 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25228 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
25229 | #ifdef __int8_t_defined | |
25230 | #define _INT8_T | |
25231 | #define _INT16_T | |
25232 | #define _INT32_T | |
25233 | #endif | |
25234 | #ifdef __uint32_t_defined | |
25235 | #define _UINT32_T | |
25236 | #endif | |
25237 | ||
25238 | EOF | |
25239 | ||
25240 | # ----------------- done header, emit basic int types ------------- | |
25241 | if test "$acx_cv_header_stdint" = stddef.h; then | |
25242 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25243 | ||
25244 | #ifndef _UINT8_T | |
25245 | #define _UINT8_T | |
07abfebf RS |
25246 | #ifndef __uint8_t_defined |
25247 | #define __uint8_t_defined | |
4e8d927d DJ |
25248 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
25249 | #endif | |
07abfebf | 25250 | #endif |
4e8d927d DJ |
25251 | |
25252 | #ifndef _UINT16_T | |
25253 | #define _UINT16_T | |
07abfebf RS |
25254 | #ifndef __uint16_t_defined |
25255 | #define __uint16_t_defined | |
4e8d927d DJ |
25256 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
25257 | #endif | |
07abfebf | 25258 | #endif |
4e8d927d DJ |
25259 | |
25260 | #ifndef _UINT32_T | |
25261 | #define _UINT32_T | |
07abfebf RS |
25262 | #ifndef __uint32_t_defined |
25263 | #define __uint32_t_defined | |
4e8d927d DJ |
25264 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
25265 | #endif | |
07abfebf | 25266 | #endif |
4e8d927d DJ |
25267 | |
25268 | #ifndef _INT8_T | |
25269 | #define _INT8_T | |
07abfebf RS |
25270 | #ifndef __int8_t_defined |
25271 | #define __int8_t_defined | |
4e8d927d DJ |
25272 | typedef $acx_cv_type_int8_t int8_t; |
25273 | #endif | |
07abfebf | 25274 | #endif |
4e8d927d DJ |
25275 | |
25276 | #ifndef _INT16_T | |
25277 | #define _INT16_T | |
07abfebf RS |
25278 | #ifndef __int16_t_defined |
25279 | #define __int16_t_defined | |
4e8d927d DJ |
25280 | typedef $acx_cv_type_int16_t int16_t; |
25281 | #endif | |
07abfebf | 25282 | #endif |
4e8d927d DJ |
25283 | |
25284 | #ifndef _INT32_T | |
25285 | #define _INT32_T | |
07abfebf RS |
25286 | #ifndef __int32_t_defined |
25287 | #define __int32_t_defined | |
4e8d927d DJ |
25288 | typedef $acx_cv_type_int32_t int32_t; |
25289 | #endif | |
07abfebf | 25290 | #endif |
4e8d927d DJ |
25291 | EOF |
25292 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
25293 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25294 | ||
25295 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
25296 | #ifndef _INT8_T | |
25297 | #define _INT8_T | |
25298 | #endif | |
25299 | #ifndef _INT16_T | |
25300 | #define _INT16_T | |
25301 | #endif | |
25302 | #ifndef _INT32_T | |
25303 | #define _INT32_T | |
25304 | #endif | |
25305 | ||
25306 | #ifndef _UINT8_T | |
25307 | #define _UINT8_T | |
07abfebf RS |
25308 | #ifndef __uint8_t_defined |
25309 | #define __uint8_t_defined | |
4e8d927d DJ |
25310 | typedef u_int8_t uint8_t; |
25311 | #endif | |
07abfebf | 25312 | #endif |
4e8d927d DJ |
25313 | |
25314 | #ifndef _UINT16_T | |
25315 | #define _UINT16_T | |
07abfebf RS |
25316 | #ifndef __uint16_t_defined |
25317 | #define __uint16_t_defined | |
4e8d927d DJ |
25318 | typedef u_int16_t uint16_t; |
25319 | #endif | |
07abfebf | 25320 | #endif |
4e8d927d DJ |
25321 | |
25322 | #ifndef _UINT32_T | |
25323 | #define _UINT32_T | |
07abfebf RS |
25324 | #ifndef __uint32_t_defined |
25325 | #define __uint32_t_defined | |
4e8d927d DJ |
25326 | typedef u_int32_t uint32_t; |
25327 | #endif | |
07abfebf | 25328 | #endif |
4e8d927d DJ |
25329 | EOF |
25330 | else | |
25331 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25332 | ||
25333 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
25334 | #ifndef _INT8_T | |
25335 | #define _INT8_T | |
25336 | #endif | |
25337 | #ifndef _INT16_T | |
25338 | #define _INT16_T | |
25339 | #endif | |
25340 | #ifndef _INT32_T | |
25341 | #define _INT32_T | |
25342 | #endif | |
25343 | #ifndef _UINT8_T | |
25344 | #define _UINT8_T | |
25345 | #endif | |
25346 | #ifndef _UINT16_T | |
25347 | #define _UINT16_T | |
25348 | #endif | |
25349 | #ifndef _UINT32_T | |
25350 | #define _UINT32_T | |
25351 | #endif | |
25352 | EOF | |
25353 | fi | |
25354 | ||
25355 | # ------------- done basic int types, emit int64_t types ------------ | |
25356 | if test "$ac_cv_type_uint64_t" = yes; then | |
25357 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25358 | ||
25359 | /* system headers have good uint64_t and int64_t */ | |
25360 | #ifndef _INT64_T | |
25361 | #define _INT64_T | |
25362 | #endif | |
25363 | #ifndef _UINT64_T | |
25364 | #define _UINT64_T | |
25365 | #endif | |
25366 | EOF | |
25367 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
25368 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25369 | ||
25370 | /* system headers have an u_int64_t (and int64_t) */ | |
25371 | #ifndef _INT64_T | |
25372 | #define _INT64_T | |
25373 | #endif | |
25374 | #ifndef _UINT64_T | |
25375 | #define _UINT64_T | |
07abfebf RS |
25376 | #ifndef __uint64_t_defined |
25377 | #define __uint64_t_defined | |
4e8d927d DJ |
25378 | typedef u_int64_t uint64_t; |
25379 | #endif | |
07abfebf | 25380 | #endif |
4e8d927d DJ |
25381 | EOF |
25382 | elif test -n "$acx_cv_type_int64_t"; then | |
25383 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25384 | ||
25385 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
25386 | #ifndef _INT64_T | |
25387 | #define _INT64_T | |
25388 | typedef $acx_cv_type_int64_t int64_t; | |
25389 | #endif | |
25390 | #ifndef _UINT64_T | |
25391 | #define _UINT64_T | |
07abfebf RS |
25392 | #ifndef __uint64_t_defined |
25393 | #define __uint64_t_defined | |
4e8d927d DJ |
25394 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
25395 | #endif | |
07abfebf | 25396 | #endif |
4e8d927d DJ |
25397 | EOF |
25398 | else | |
25399 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25400 | ||
25401 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
25402 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
25403 | #ifndef _INT64_T | |
25404 | #define _INT64_T | |
07abfebf | 25405 | #ifndef __int64_t_defined |
4e8d927d DJ |
25406 | typedef long long int64_t; |
25407 | #endif | |
07abfebf | 25408 | #endif |
4e8d927d DJ |
25409 | #ifndef _UINT64_T |
25410 | #define _UINT64_T | |
25411 | typedef unsigned long long uint64_t; | |
25412 | #endif | |
25413 | ||
25414 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
25415 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
25416 | does not implement __extension__. But that compiler doesn't define | |
25417 | __GNUC_MINOR__. */ | |
25418 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
25419 | # define __extension__ | |
25420 | # endif | |
25421 | ||
25422 | # ifndef _INT64_T | |
25423 | # define _INT64_T | |
25424 | __extension__ typedef long long int64_t; | |
25425 | # endif | |
25426 | # ifndef _UINT64_T | |
25427 | # define _UINT64_T | |
25428 | __extension__ typedef unsigned long long uint64_t; | |
25429 | # endif | |
25430 | ||
25431 | #elif !defined __STRICT_ANSI__ | |
25432 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
25433 | ||
25434 | # ifndef _INT64_T | |
25435 | # define _INT64_T | |
25436 | typedef __int64 int64_t; | |
25437 | # endif | |
25438 | # ifndef _UINT64_T | |
25439 | # define _UINT64_T | |
25440 | typedef unsigned __int64 uint64_t; | |
25441 | # endif | |
25442 | # endif /* compiler */ | |
25443 | ||
25444 | #endif /* ANSI version */ | |
25445 | EOF | |
25446 | fi | |
25447 | ||
25448 | # ------------- done int64_t types, emit intptr types ------------ | |
25449 | if test "$ac_cv_type_uintptr_t" != yes; then | |
25450 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25451 | ||
25452 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
07abfebf | 25453 | #ifndef __uintptr_t_defined |
4e8d927d | 25454 | typedef u$acx_cv_type_intptr_t uintptr_t; |
07abfebf RS |
25455 | #endif |
25456 | #ifndef __intptr_t_defined | |
4e8d927d | 25457 | typedef $acx_cv_type_intptr_t intptr_t; |
07abfebf | 25458 | #endif |
4e8d927d DJ |
25459 | EOF |
25460 | fi | |
25461 | ||
25462 | # ------------- done intptr types, emit int_least types ------------ | |
25463 | if test "$ac_cv_type_int_least32_t" != yes; then | |
25464 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25465 | ||
25466 | /* Define int_least types */ | |
25467 | typedef int8_t int_least8_t; | |
25468 | typedef int16_t int_least16_t; | |
25469 | typedef int32_t int_least32_t; | |
25470 | #ifdef _INT64_T | |
25471 | typedef int64_t int_least64_t; | |
25472 | #endif | |
25473 | ||
25474 | typedef uint8_t uint_least8_t; | |
25475 | typedef uint16_t uint_least16_t; | |
25476 | typedef uint32_t uint_least32_t; | |
25477 | #ifdef _UINT64_T | |
25478 | typedef uint64_t uint_least64_t; | |
25479 | #endif | |
25480 | EOF | |
25481 | fi | |
25482 | ||
25483 | # ------------- done intptr types, emit int_fast types ------------ | |
25484 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
25485 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25486 | ||
25487 | /* Define int_fast types. short is often slow */ | |
25488 | typedef int8_t int_fast8_t; | |
25489 | typedef int int_fast16_t; | |
25490 | typedef int32_t int_fast32_t; | |
25491 | #ifdef _INT64_T | |
25492 | typedef int64_t int_fast64_t; | |
25493 | #endif | |
25494 | ||
25495 | typedef uint8_t uint_fast8_t; | |
25496 | typedef unsigned int uint_fast16_t; | |
25497 | typedef uint32_t uint_fast32_t; | |
25498 | #ifdef _UINT64_T | |
25499 | typedef uint64_t uint_fast64_t; | |
25500 | #endif | |
25501 | EOF | |
25502 | fi | |
25503 | ||
25504 | if test "$ac_cv_type_uintmax_t" != yes; then | |
25505 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25506 | ||
25507 | /* Define intmax based on what we found */ | |
25508 | #ifdef _INT64_T | |
25509 | typedef int64_t intmax_t; | |
25510 | #else | |
25511 | typedef long intmax_t; | |
25512 | #endif | |
25513 | #ifdef _UINT64_T | |
25514 | typedef uint64_t uintmax_t; | |
25515 | #else | |
25516 | typedef unsigned long uintmax_t; | |
25517 | #endif | |
25518 | EOF | |
25519 | fi | |
25520 | ||
25521 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25522 | ||
25523 | #endif /* GCC_GENERATED_STDINT_H */ | |
25524 | EOF | |
25525 | ||
25526 | if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then | |
25527 | rm -f tmp-stdint.h | |
25528 | else | |
25529 | mv -f tmp-stdint.h gdb_stdint.h | |
bec39cab AC |
25530 | fi |
25531 | ||
4e8d927d | 25532 | ;; |
b4e70030 | 25533 | default ) |
c906108c | 25534 | |
2c0fc042 | 25535 | sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/, |
c906108c SS |
25536 | /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/, |
25537 | /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp | |
25538 | mv -f Makefile.tmp Makefile | |
25539 | ||
2acceee2 | 25540 | |
c906108c SS |
25541 | case x$CONFIG_HEADERS in |
25542 | xconfig.h:config.in) | |
25543 | echo > stamp-h ;; | |
25544 | esac | |
bec39cab AC |
25545 | ;; |
25546 | esac | |
b4e70030 JB |
25547 | done |
25548 | _ACEOF | |
c906108c | 25549 | |
b4e70030 | 25550 | cat >>$CONFIG_STATUS <<\_ACEOF |
bec39cab AC |
25551 | |
25552 | { (exit 0); exit 0; } | |
25553 | _ACEOF | |
c906108c | 25554 | chmod +x $CONFIG_STATUS |
bec39cab AC |
25555 | ac_clean_files=$ac_clean_files_save |
25556 | ||
25557 | ||
25558 | # configure is writing to config.log, and then calls config.status. | |
25559 | # config.status does its own redirection, appending to config.log. | |
25560 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
25561 | # by configure, so config.status won't be able to write to it; its | |
25562 | # output is simply discarded. So we exec the FD to /dev/null, | |
25563 | # effectively closing config.log, so it can be properly (re)opened and | |
25564 | # appended to by config.status. When coming back to configure, we | |
25565 | # need to make the FD available again. | |
25566 | if test "$no_create" != yes; then | |
25567 | ac_cs_success=: | |
25568 | ac_config_status_args= | |
25569 | test "$silent" = yes && | |
25570 | ac_config_status_args="$ac_config_status_args --quiet" | |
25571 | exec 5>/dev/null | |
25572 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
25573 | exec 5>>config.log | |
25574 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
25575 | # would make configure fail if this is the last instruction. | |
25576 | $ac_cs_success || { (exit 1); exit 1; } | |
25577 | fi | |
c906108c | 25578 | |
bec39cab AC |
25579 | # |
25580 | # CONFIG_SUBDIRS section. | |
25581 | # | |
c906108c SS |
25582 | if test "$no_recursion" != yes; then |
25583 | ||
25584 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
25585 | ac_sub_configure_args= | |
25586 | ac_prev= | |
b4e70030 | 25587 | for ac_arg in $ac_configure_args; do |
c906108c SS |
25588 | if test -n "$ac_prev"; then |
25589 | ac_prev= | |
25590 | continue | |
25591 | fi | |
bec39cab | 25592 | case $ac_arg in |
c906108c SS |
25593 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
25594 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
25595 | ac_prev=cache_file ;; | |
25596 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
bec39cab AC |
25597 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
25598 | | --c=*) | |
25599 | ;; | |
25600 | --config-cache | -C) | |
c906108c SS |
25601 | ;; |
25602 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
25603 | ac_prev=srcdir ;; | |
25604 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
25605 | ;; | |
bec39cab AC |
25606 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
25607 | ac_prev=prefix ;; | |
25608 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
25609 | ;; | |
b4e70030 | 25610 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
c906108c SS |
25611 | esac |
25612 | done | |
25613 | ||
bec39cab AC |
25614 | # Always prepend --prefix to ensure using the same prefix |
25615 | # in subdir configurations. | |
25616 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
25617 | ||
b4e70030 | 25618 | ac_popdir=`pwd` |
bec39cab | 25619 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
c906108c SS |
25620 | |
25621 | # Do not complain, so a configure script can configure whichever | |
25622 | # parts of a large source tree are present. | |
bec39cab | 25623 | test -d $srcdir/$ac_dir || continue |
c906108c | 25624 | |
b4e70030 JB |
25625 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
25626 | echo "$as_me: configuring in $ac_dir" >&6;} | |
25627 | { if $as_mkdir_p; then | |
25628 | mkdir -p "$ac_dir" | |
25629 | else | |
25630 | as_dir="$ac_dir" | |
bec39cab | 25631 | as_dirs= |
b4e70030 JB |
25632 | while test ! -d "$as_dir"; do |
25633 | as_dirs="$as_dir $as_dirs" | |
25634 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
25635 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
25636 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25637 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
25638 | X"$as_dir" : 'X\(/\)' \| \ |
25639 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 25640 | echo X"$as_dir" | |
b4e70030 JB |
25641 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
25642 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25643 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25644 | /^X\(\/\).*/{ s//\1/; q; } | |
25645 | s/.*/./; q'` | |
bec39cab | 25646 | done |
b4e70030 JB |
25647 | test ! -n "$as_dirs" || mkdir $as_dirs |
25648 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25649 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 25650 | { (exit 1); exit 1; }; }; } |
b4e70030 | 25651 | |
bec39cab AC |
25652 | ac_builddir=. |
25653 | ||
b4e70030 | 25654 | if test "$ac_dir" != .; then |
bec39cab | 25655 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
25656 | # A "../" for each directory in $ac_dir_suffix. |
25657 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25658 | else | |
25659 | ac_dir_suffix= ac_top_builddir= | |
25660 | fi | |
bec39cab AC |
25661 | |
25662 | case $srcdir in | |
b4e70030 | 25663 | .) # No --srcdir option. We are building in place. |
bec39cab | 25664 | ac_srcdir=. |
b4e70030 JB |
25665 | if test -z "$ac_top_builddir"; then |
25666 | ac_top_srcdir=. | |
25667 | else | |
25668 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25669 | fi ;; | |
25670 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 25671 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
25672 | ac_top_srcdir=$srcdir ;; |
25673 | *) # Relative path. | |
25674 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25675 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25676 | esac | |
25677 | ||
25678 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
25679 | # the directories may not exist. | |
25680 | case `pwd` in | |
25681 | .) ac_abs_builddir="$ac_dir";; | |
25682 | *) | |
25683 | case "$ac_dir" in | |
25684 | .) ac_abs_builddir=`pwd`;; | |
25685 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
25686 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
25687 | esac;; | |
25688 | esac | |
25689 | case $ac_abs_builddir in | |
25690 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25691 | *) | |
25692 | case ${ac_top_builddir}. in | |
25693 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25694 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25695 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25696 | esac;; | |
25697 | esac | |
25698 | case $ac_abs_builddir in | |
25699 | .) ac_abs_srcdir=$ac_srcdir;; | |
25700 | *) | |
25701 | case $ac_srcdir in | |
25702 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25703 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25704 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25705 | esac;; | |
25706 | esac | |
25707 | case $ac_abs_builddir in | |
25708 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25709 | *) | |
25710 | case $ac_top_srcdir in | |
25711 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25712 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25713 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25714 | esac;; | |
bec39cab | 25715 | esac |
c906108c | 25716 | |
c906108c | 25717 | |
b4e70030 | 25718 | cd $ac_dir |
c906108c SS |
25719 | |
25720 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab AC |
25721 | if test -f $ac_srcdir/configure.gnu; then |
25722 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
25723 | elif test -f $ac_srcdir/configure; then | |
25724 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
25725 | elif test -f $ac_srcdir/configure.in; then | |
c906108c SS |
25726 | ac_sub_configure=$ac_configure |
25727 | else | |
bec39cab AC |
25728 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
25729 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
25730 | ac_sub_configure= |
25731 | fi | |
25732 | ||
25733 | # The recursion is here. | |
25734 | if test -n "$ac_sub_configure"; then | |
c906108c | 25735 | # Make the cache file name correct relative to the subdirectory. |
bec39cab AC |
25736 | case $cache_file in |
25737 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
b4e70030 JB |
25738 | *) # Relative path. |
25739 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
c906108c | 25740 | esac |
c906108c | 25741 | |
bec39cab AC |
25742 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
25743 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 25744 | # The eval makes quoting arguments work. |
b4e70030 JB |
25745 | eval $ac_sub_configure $ac_sub_configure_args \ |
25746 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
bec39cab AC |
25747 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
25748 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
25749 | { (exit 1); exit 1; }; } | |
c906108c SS |
25750 | fi |
25751 | ||
b4e70030 | 25752 | cd $ac_popdir |
c906108c SS |
25753 | done |
25754 | fi | |
25755 | ||
25756 | ||
25757 | exit 0 |