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" | |
a4ce5b0d UW |
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 TARGET_OBS 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 SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS' |
317 | ac_subst_files='host_makefile_frag' | |
c906108c SS |
318 | |
319 | # Initialize some variables set by options. | |
bec39cab AC |
320 | ac_init_help= |
321 | ac_init_version=false | |
c906108c SS |
322 | # The variables have the same names as the options, with |
323 | # dashes changed to underlines. | |
bec39cab | 324 | cache_file=/dev/null |
c906108c | 325 | exec_prefix=NONE |
c906108c | 326 | no_create= |
c906108c SS |
327 | no_recursion= |
328 | prefix=NONE | |
329 | program_prefix=NONE | |
330 | program_suffix=NONE | |
331 | program_transform_name=s,x,x, | |
332 | silent= | |
333 | site= | |
334 | srcdir= | |
c906108c SS |
335 | verbose= |
336 | x_includes=NONE | |
337 | x_libraries=NONE | |
bec39cab AC |
338 | |
339 | # Installation directory options. | |
340 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
341 | # and all the variables that are supposed to be based on exec_prefix | |
342 | # by default will actually change. | |
343 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
c906108c SS |
344 | bindir='${exec_prefix}/bin' |
345 | sbindir='${exec_prefix}/sbin' | |
346 | libexecdir='${exec_prefix}/libexec' | |
b4e70030 | 347 | datadir='${prefix}/share' |
c906108c SS |
348 | sysconfdir='${prefix}/etc' |
349 | sharedstatedir='${prefix}/com' | |
350 | localstatedir='${prefix}/var' | |
b4e70030 | 351 | libdir='${exec_prefix}/lib' |
c906108c SS |
352 | includedir='${prefix}/include' |
353 | oldincludedir='/usr/include' | |
b4e70030 JB |
354 | infodir='${prefix}/info' |
355 | mandir='${prefix}/man' | |
c906108c | 356 | |
c906108c SS |
357 | ac_prev= |
358 | for ac_option | |
359 | do | |
c906108c SS |
360 | # If the previous option needs an argument, assign it. |
361 | if test -n "$ac_prev"; then | |
b4e70030 | 362 | eval "$ac_prev=\$ac_option" |
c906108c SS |
363 | ac_prev= |
364 | continue | |
365 | fi | |
366 | ||
b4e70030 | 367 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
368 | |
369 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
370 | ||
b4e70030 | 371 | case $ac_option in |
c906108c SS |
372 | |
373 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
374 | ac_prev=bindir ;; | |
375 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
bec39cab | 376 | bindir=$ac_optarg ;; |
c906108c SS |
377 | |
378 | -build | --build | --buil | --bui | --bu) | |
bec39cab | 379 | ac_prev=build_alias ;; |
c906108c | 380 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
bec39cab | 381 | build_alias=$ac_optarg ;; |
c906108c SS |
382 | |
383 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
384 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
385 | ac_prev=cache_file ;; | |
386 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
387 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
bec39cab AC |
388 | cache_file=$ac_optarg ;; |
389 | ||
390 | --config-cache | -C) | |
391 | cache_file=config.cache ;; | |
c906108c | 392 | |
b4e70030 | 393 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
c906108c | 394 | ac_prev=datadir ;; |
b4e70030 JB |
395 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
396 | | --da=*) | |
bec39cab | 397 | datadir=$ac_optarg ;; |
c906108c SS |
398 | |
399 | -disable-* | --disable-*) | |
bec39cab | 400 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 401 | # Reject names that are not valid shell variable names. |
bec39cab AC |
402 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
403 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
404 | { (exit 1); exit 1; }; } | |
405 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
b4e70030 | 406 | eval "enable_$ac_feature=no" ;; |
c906108c SS |
407 | |
408 | -enable-* | --enable-*) | |
bec39cab | 409 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 410 | # Reject names that are not valid shell variable names. |
bec39cab AC |
411 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
412 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
413 | { (exit 1); exit 1; }; } | |
414 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
b4e70030 JB |
415 | case $ac_option in |
416 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
417 | *) ac_optarg=yes ;; | |
418 | esac | |
419 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
c906108c SS |
420 | |
421 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
422 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
423 | | --exec | --exe | --ex) | |
424 | ac_prev=exec_prefix ;; | |
425 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
426 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
427 | | --exec=* | --exe=* | --ex=*) | |
bec39cab | 428 | exec_prefix=$ac_optarg ;; |
c906108c SS |
429 | |
430 | -gas | --gas | --ga | --g) | |
431 | # Obsolete; use --with-gas. | |
432 | with_gas=yes ;; | |
433 | ||
bec39cab AC |
434 | -help | --help | --hel | --he | -h) |
435 | ac_init_help=long ;; | |
436 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
437 | ac_init_help=recursive ;; | |
438 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
439 | ac_init_help=short ;; | |
c906108c SS |
440 | |
441 | -host | --host | --hos | --ho) | |
bec39cab | 442 | ac_prev=host_alias ;; |
c906108c | 443 | -host=* | --host=* | --hos=* | --ho=*) |
bec39cab | 444 | host_alias=$ac_optarg ;; |
c906108c SS |
445 | |
446 | -includedir | --includedir | --includedi | --included | --include \ | |
447 | | --includ | --inclu | --incl | --inc) | |
448 | ac_prev=includedir ;; | |
449 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
450 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
bec39cab | 451 | includedir=$ac_optarg ;; |
c906108c SS |
452 | |
453 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
454 | ac_prev=infodir ;; | |
455 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
bec39cab | 456 | infodir=$ac_optarg ;; |
c906108c SS |
457 | |
458 | -libdir | --libdir | --libdi | --libd) | |
459 | ac_prev=libdir ;; | |
460 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
bec39cab | 461 | libdir=$ac_optarg ;; |
c906108c SS |
462 | |
463 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
464 | | --libexe | --libex | --libe) | |
465 | ac_prev=libexecdir ;; | |
466 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
467 | | --libexe=* | --libex=* | --libe=*) | |
bec39cab | 468 | libexecdir=$ac_optarg ;; |
c906108c SS |
469 | |
470 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
b4e70030 JB |
471 | | --localstate | --localstat | --localsta | --localst \ |
472 | | --locals | --local | --loca | --loc | --lo) | |
c906108c SS |
473 | ac_prev=localstatedir ;; |
474 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
b4e70030 JB |
475 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
476 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
bec39cab | 477 | localstatedir=$ac_optarg ;; |
c906108c SS |
478 | |
479 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
480 | ac_prev=mandir ;; | |
481 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
bec39cab | 482 | mandir=$ac_optarg ;; |
c906108c SS |
483 | |
484 | -nfp | --nfp | --nf) | |
485 | # Obsolete; use --without-fp. | |
486 | with_fp=no ;; | |
487 | ||
488 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
bec39cab | 489 | | --no-cr | --no-c | -n) |
c906108c SS |
490 | no_create=yes ;; |
491 | ||
492 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
493 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
494 | no_recursion=yes ;; | |
495 | ||
496 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
497 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
498 | | --oldin | --oldi | --old | --ol | --o) | |
499 | ac_prev=oldincludedir ;; | |
500 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
501 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
502 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
bec39cab | 503 | oldincludedir=$ac_optarg ;; |
c906108c SS |
504 | |
505 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
506 | ac_prev=prefix ;; | |
507 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
bec39cab | 508 | prefix=$ac_optarg ;; |
c906108c SS |
509 | |
510 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
511 | | --program-pre | --program-pr | --program-p) | |
512 | ac_prev=program_prefix ;; | |
513 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
514 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
bec39cab | 515 | program_prefix=$ac_optarg ;; |
c906108c SS |
516 | |
517 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
518 | | --program-suf | --program-su | --program-s) | |
519 | ac_prev=program_suffix ;; | |
520 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
521 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
bec39cab | 522 | program_suffix=$ac_optarg ;; |
c906108c SS |
523 | |
524 | -program-transform-name | --program-transform-name \ | |
525 | | --program-transform-nam | --program-transform-na \ | |
526 | | --program-transform-n | --program-transform- \ | |
527 | | --program-transform | --program-transfor \ | |
528 | | --program-transfo | --program-transf \ | |
529 | | --program-trans | --program-tran \ | |
530 | | --progr-tra | --program-tr | --program-t) | |
531 | ac_prev=program_transform_name ;; | |
532 | -program-transform-name=* | --program-transform-name=* \ | |
533 | | --program-transform-nam=* | --program-transform-na=* \ | |
534 | | --program-transform-n=* | --program-transform-=* \ | |
535 | | --program-transform=* | --program-transfor=* \ | |
536 | | --program-transfo=* | --program-transf=* \ | |
537 | | --program-trans=* | --program-tran=* \ | |
538 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
bec39cab | 539 | program_transform_name=$ac_optarg ;; |
c906108c SS |
540 | |
541 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
542 | | -silent | --silent | --silen | --sile | --sil) | |
543 | silent=yes ;; | |
544 | ||
545 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
546 | ac_prev=sbindir ;; | |
547 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
548 | | --sbi=* | --sb=*) | |
bec39cab | 549 | sbindir=$ac_optarg ;; |
c906108c SS |
550 | |
551 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
552 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
553 | | --sharedst | --shareds | --shared | --share | --shar \ | |
554 | | --sha | --sh) | |
555 | ac_prev=sharedstatedir ;; | |
556 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
557 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
558 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
559 | | --sha=* | --sh=*) | |
bec39cab | 560 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
561 | |
562 | -site | --site | --sit) | |
563 | ac_prev=site ;; | |
564 | -site=* | --site=* | --sit=*) | |
bec39cab | 565 | site=$ac_optarg ;; |
3ace7edb | 566 | |
c906108c SS |
567 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
568 | ac_prev=srcdir ;; | |
569 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
bec39cab | 570 | srcdir=$ac_optarg ;; |
c906108c SS |
571 | |
572 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
573 | | --syscon | --sysco | --sysc | --sys | --sy) | |
574 | ac_prev=sysconfdir ;; | |
575 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
576 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
bec39cab | 577 | sysconfdir=$ac_optarg ;; |
c906108c SS |
578 | |
579 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
bec39cab | 580 | ac_prev=target_alias ;; |
c906108c | 581 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
bec39cab | 582 | target_alias=$ac_optarg ;; |
c906108c SS |
583 | |
584 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
585 | verbose=yes ;; | |
586 | ||
bec39cab AC |
587 | -version | --version | --versio | --versi | --vers | -V) |
588 | ac_init_version=: ;; | |
c906108c SS |
589 | |
590 | -with-* | --with-*) | |
bec39cab | 591 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 592 | # Reject names that are not valid shell variable names. |
bec39cab AC |
593 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
594 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
595 | { (exit 1); exit 1; }; } | |
c906108c | 596 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
b4e70030 JB |
597 | case $ac_option in |
598 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
599 | *) ac_optarg=yes ;; | |
600 | esac | |
601 | eval "with_$ac_package='$ac_optarg'" ;; | |
c906108c SS |
602 | |
603 | -without-* | --without-*) | |
bec39cab | 604 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 605 | # Reject names that are not valid shell variable names. |
bec39cab AC |
606 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
607 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
608 | { (exit 1); exit 1; }; } | |
609 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
b4e70030 | 610 | eval "with_$ac_package=no" ;; |
c906108c SS |
611 | |
612 | --x) | |
613 | # Obsolete; use --with-x. | |
614 | with_x=yes ;; | |
615 | ||
616 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
617 | | --x-incl | --x-inc | --x-in | --x-i) | |
618 | ac_prev=x_includes ;; | |
619 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
620 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
bec39cab | 621 | x_includes=$ac_optarg ;; |
c906108c SS |
622 | |
623 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
624 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
625 | ac_prev=x_libraries ;; | |
626 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
627 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
bec39cab | 628 | x_libraries=$ac_optarg ;; |
c906108c | 629 | |
bec39cab AC |
630 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
631 | Try \`$0 --help' for more information." >&2 | |
632 | { (exit 1); exit 1; }; } | |
c906108c SS |
633 | ;; |
634 | ||
bec39cab AC |
635 | *=*) |
636 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
637 | # Reject names that are not valid shell variable names. | |
638 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
639 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
640 | { (exit 1); exit 1; }; } | |
b4e70030 JB |
641 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
642 | eval "$ac_envvar='$ac_optarg'" | |
bec39cab AC |
643 | export $ac_envvar ;; |
644 | ||
c906108c | 645 | *) |
bec39cab AC |
646 | # FIXME: should be removed in autoconf 3.0. |
647 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
648 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
649 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
650 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
c906108c SS |
651 | ;; |
652 | ||
653 | esac | |
654 | done | |
655 | ||
656 | if test -n "$ac_prev"; then | |
bec39cab AC |
657 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
658 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
659 | { (exit 1); exit 1; }; } | |
c906108c | 660 | fi |
c906108c | 661 | |
b4e70030 JB |
662 | # Be sure to have absolute paths. |
663 | for ac_var in exec_prefix prefix | |
c906108c | 664 | do |
b4e70030 | 665 | eval ac_val=$`echo $ac_var` |
bec39cab | 666 | case $ac_val in |
b4e70030 JB |
667 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
668 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
669 | { (exit 1); exit 1; }; };; | |
670 | esac | |
671 | done | |
672 | ||
673 | # Be sure to have absolute paths. | |
674 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
675 | localstatedir libdir includedir oldincludedir infodir mandir | |
676 | do | |
677 | eval ac_val=$`echo $ac_var` | |
678 | case $ac_val in | |
679 | [\\/$]* | ?:[\\/]* ) ;; | |
680 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
681 | { (exit 1); exit 1; }; };; | |
c906108c SS |
682 | esac |
683 | done | |
684 | ||
bec39cab AC |
685 | # There might be people who depend on the old broken behavior: `$host' |
686 | # used to hold the argument of --host etc. | |
687 | # FIXME: To remove some day. | |
688 | build=$build_alias | |
689 | host=$host_alias | |
690 | target=$target_alias | |
691 | ||
692 | # FIXME: To remove some day. | |
693 | if test "x$host_alias" != x; then | |
694 | if test "x$build_alias" = x; then | |
695 | cross_compiling=maybe | |
696 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
697 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
698 | elif test "x$build_alias" != "x$host_alias"; then | |
699 | cross_compiling=yes | |
700 | fi | |
701 | fi | |
c906108c | 702 | |
bec39cab AC |
703 | ac_tool_prefix= |
704 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705 | ||
706 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 707 | |
c906108c SS |
708 | |
709 | # Find the source files, if location was not specified. | |
710 | if test -z "$srcdir"; then | |
711 | ac_srcdir_defaulted=yes | |
b4e70030 JB |
712 | # Try the directory containing this script, then its parent. |
713 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
bec39cab AC |
714 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
715 | X"$0" : 'X\(//\)[^/]' \| \ | |
716 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
717 | X"$0" : 'X\(/\)' \| \ |
718 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 719 | echo X"$0" | |
b4e70030 JB |
720 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
721 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
722 | /^X\(\/\/\)$/{ s//\1/; q; } | |
723 | /^X\(\/\).*/{ s//\1/; q; } | |
724 | s/.*/./; q'` | |
c906108c | 725 | srcdir=$ac_confdir |
b4e70030 | 726 | if test ! -r $srcdir/$ac_unique_file; then |
c906108c SS |
727 | srcdir=.. |
728 | fi | |
729 | else | |
730 | ac_srcdir_defaulted=no | |
731 | fi | |
b4e70030 JB |
732 | if test ! -r $srcdir/$ac_unique_file; then |
733 | if test "$ac_srcdir_defaulted" = yes; then | |
734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
735 | { (exit 1); exit 1; }; } | |
736 | else | |
737 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
bec39cab | 738 | { (exit 1); exit 1; }; } |
b4e70030 | 739 | fi |
c906108c | 740 | fi |
b4e70030 JB |
741 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
742 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
bec39cab | 743 | { (exit 1); exit 1; }; } |
b4e70030 JB |
744 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
745 | ac_env_build_alias_set=${build_alias+set} | |
746 | ac_env_build_alias_value=$build_alias | |
747 | ac_cv_env_build_alias_set=${build_alias+set} | |
748 | ac_cv_env_build_alias_value=$build_alias | |
749 | ac_env_host_alias_set=${host_alias+set} | |
750 | ac_env_host_alias_value=$host_alias | |
751 | ac_cv_env_host_alias_set=${host_alias+set} | |
752 | ac_cv_env_host_alias_value=$host_alias | |
753 | ac_env_target_alias_set=${target_alias+set} | |
754 | ac_env_target_alias_value=$target_alias | |
755 | ac_cv_env_target_alias_set=${target_alias+set} | |
756 | ac_cv_env_target_alias_value=$target_alias | |
757 | ac_env_CC_set=${CC+set} | |
758 | ac_env_CC_value=$CC | |
759 | ac_cv_env_CC_set=${CC+set} | |
760 | ac_cv_env_CC_value=$CC | |
761 | ac_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_env_CFLAGS_value=$CFLAGS | |
763 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
764 | ac_cv_env_CFLAGS_value=$CFLAGS | |
765 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
768 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
769 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
772 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
773 | ac_env_CPP_set=${CPP+set} | |
774 | ac_env_CPP_value=$CPP | |
775 | ac_cv_env_CPP_set=${CPP+set} | |
776 | ac_cv_env_CPP_value=$CPP | |
c906108c | 777 | |
bec39cab AC |
778 | # |
779 | # Report the --help message. | |
780 | # | |
781 | if test "$ac_init_help" = "long"; then | |
782 | # Omit some internal or obsolete options to make the list less imposing. | |
783 | # This message is too long to be a string in the A/UX 3.1 sh. | |
784 | cat <<_ACEOF | |
785 | \`configure' configures this package to adapt to many kinds of systems. | |
786 | ||
787 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
788 | ||
789 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
790 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
791 | ||
792 | Defaults for the options are specified in brackets. | |
793 | ||
794 | Configuration: | |
795 | -h, --help display this help and exit | |
796 | --help=short display options specific to this package | |
797 | --help=recursive display the short help of all the included packages | |
798 | -V, --version display version information and exit | |
799 | -q, --quiet, --silent do not print \`checking...' messages | |
800 | --cache-file=FILE cache test results in FILE [disabled] | |
801 | -C, --config-cache alias for \`--cache-file=config.cache' | |
802 | -n, --no-create do not create output files | |
803 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
804 | ||
b4e70030 JB |
805 | _ACEOF |
806 | ||
807 | cat <<_ACEOF | |
bec39cab AC |
808 | Installation directories: |
809 | --prefix=PREFIX install architecture-independent files in PREFIX | |
810 | [$ac_default_prefix] | |
811 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
812 | [PREFIX] | |
813 | ||
814 | By default, \`make install' will install all the files in | |
815 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
816 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
817 | for instance \`--prefix=\$HOME'. | |
818 | ||
819 | For better control, use the options below. | |
820 | ||
821 | Fine tuning of the installation directories: | |
822 | --bindir=DIR user executables [EPREFIX/bin] | |
823 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
824 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
b4e70030 | 825 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
bec39cab AC |
826 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
827 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
828 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
829 | --libdir=DIR object code libraries [EPREFIX/lib] | |
830 | --includedir=DIR C header files [PREFIX/include] | |
831 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
b4e70030 JB |
832 | --infodir=DIR info documentation [PREFIX/info] |
833 | --mandir=DIR man documentation [PREFIX/man] | |
bec39cab AC |
834 | _ACEOF |
835 | ||
836 | cat <<\_ACEOF | |
837 | ||
838 | Program names: | |
839 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
840 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
841 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
842 | ||
843 | X features: | |
844 | --x-includes=DIR X include files are in DIR | |
845 | --x-libraries=DIR X library files are in DIR | |
846 | ||
847 | System types: | |
848 | --build=BUILD configure for building on BUILD [guessed] | |
849 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
850 | --target=TARGET configure for building compilers for TARGET [HOST] | |
851 | _ACEOF | |
852 | fi | |
853 | ||
854 | if test -n "$ac_init_help"; then | |
855 | ||
856 | cat <<\_ACEOF | |
857 | ||
858 | Optional Features: | |
859 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
860 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
85981d60 AC |
861 | --enable-maintainer-mode enable make rules and dependencies not useful |
862 | (and sometimes confusing) to the casual installer | |
bec39cab AC |
863 | --disable-gdbcli disable command-line interface (CLI) |
864 | --disable-gdbmi disable machine-interface (MI) | |
865 | --enable-tui enable full-screen terminal user interface (TUI) | |
866 | --enable-gdbtk enable gdbtk graphical user interface (GUI) | |
867 | --enable-profiling enable profiling of GDB | |
3841debe | 868 | --disable-rpath do not hardcode runtime library paths |
094a342e | 869 | --enable-werror treat compile warnings as errors |
bec39cab AC |
870 | --enable-build-warnings Enable build-time compiler warnings if gcc is used |
871 | --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used | |
872 | --enable-sim Link gdb with simulator | |
873 | --enable-multi-ice build the multi-ice-gdb-server | |
874 | ||
875 | Optional Packages: | |
876 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
877 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
bec39cab AC |
878 | --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug |
879 | --with-libunwind Use libunwind frame unwinding support | |
6a30b0a5 | 880 | --with-system-readline use installed readline library |
5c39566f | 881 | --with-expat include expat support (auto/yes/no) |
3841debe DJ |
882 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
883 | --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib | |
884 | --without-libexpat-prefix don't search for libexpat in includedir and libdir | |
bec39cab AC |
885 | --without-included-regex don't use included regex; this is the default |
886 | on systems with version 2 of the GNU C library | |
887 | (use with caution on other system) | |
888 | --with-sysroot=DIR Search for usr/lib et al within DIR. | |
889 | --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh) | |
890 | --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh) | |
891 | --with-tclinclude=DIR Directory where tcl private headers are | |
892 | --with-tkinclude=DIR Directory where tk private headers are | |
893 | --with-itclconfig Directory containing itcl configuration (itclConfig.sh) | |
894 | --with-itkconfig Directory containing itk configuration (itkConfig.sh) | |
895 | --with-x use the X Window System | |
896 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
897 | ||
898 | Some influential environment variables: | |
899 | CC C compiler command | |
900 | CFLAGS C compiler flags | |
901 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
902 | nonstandard directory <lib dir> | |
b4e70030 JB |
903 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
904 | headers in a nonstandard directory <include dir> | |
bec39cab AC |
905 | CPP C preprocessor |
906 | ||
907 | Use these variables to override the choices made by `configure' or to help | |
908 | it to find libraries and programs with nonstandard names/locations. | |
909 | ||
910 | _ACEOF | |
911 | fi | |
912 | ||
913 | if test "$ac_init_help" = "recursive"; then | |
914 | # If there are subdirs, report their specific --help. | |
b4e70030 | 915 | ac_popdir=`pwd` |
bec39cab AC |
916 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
917 | test -d $ac_dir || continue | |
918 | ac_builddir=. | |
919 | ||
b4e70030 | 920 | if test "$ac_dir" != .; then |
bec39cab | 921 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
922 | # A "../" for each directory in $ac_dir_suffix. |
923 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
924 | else | |
925 | ac_dir_suffix= ac_top_builddir= | |
926 | fi | |
bec39cab AC |
927 | |
928 | case $srcdir in | |
b4e70030 | 929 | .) # No --srcdir option. We are building in place. |
bec39cab | 930 | ac_srcdir=. |
b4e70030 JB |
931 | if test -z "$ac_top_builddir"; then |
932 | ac_top_srcdir=. | |
933 | else | |
934 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
935 | fi ;; | |
936 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 937 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
938 | ac_top_srcdir=$srcdir ;; |
939 | *) # Relative path. | |
940 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
941 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
942 | esac | |
943 | ||
944 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
945 | # the directories may not exist. | |
946 | case `pwd` in | |
947 | .) ac_abs_builddir="$ac_dir";; | |
948 | *) | |
949 | case "$ac_dir" in | |
950 | .) ac_abs_builddir=`pwd`;; | |
951 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
952 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
953 | esac;; | |
954 | esac | |
955 | case $ac_abs_builddir in | |
956 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
957 | *) | |
958 | case ${ac_top_builddir}. in | |
959 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
960 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
961 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
962 | esac;; | |
963 | esac | |
964 | case $ac_abs_builddir in | |
965 | .) ac_abs_srcdir=$ac_srcdir;; | |
966 | *) | |
967 | case $ac_srcdir in | |
968 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
969 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
970 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
971 | esac;; | |
972 | esac | |
973 | case $ac_abs_builddir in | |
974 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
975 | *) | |
976 | case $ac_top_srcdir in | |
977 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
978 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
979 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
980 | esac;; | |
bec39cab AC |
981 | esac |
982 | ||
b4e70030 JB |
983 | cd $ac_dir |
984 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab | 985 | if test -f $ac_srcdir/configure.gnu; then |
b4e70030 | 986 | echo |
bec39cab AC |
987 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
988 | elif test -f $ac_srcdir/configure; then | |
b4e70030 | 989 | echo |
bec39cab | 990 | $SHELL $ac_srcdir/configure --help=recursive |
b4e70030 JB |
991 | elif test -f $ac_srcdir/configure.ac || |
992 | test -f $ac_srcdir/configure.in; then | |
993 | echo | |
994 | $ac_configure --help | |
3ace7edb | 995 | else |
bec39cab | 996 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
b4e70030 JB |
997 | fi |
998 | cd $ac_popdir | |
bec39cab AC |
999 | done |
1000 | fi | |
1001 | ||
b4e70030 | 1002 | test -n "$ac_init_help" && exit 0 |
bec39cab AC |
1003 | if $ac_init_version; then |
1004 | cat <<\_ACEOF | |
1005 | ||
b4e70030 | 1006 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
1007 | This configure script is free software; the Free Software Foundation |
1008 | gives unlimited permission to copy, distribute and modify it. | |
1009 | _ACEOF | |
b4e70030 | 1010 | exit 0 |
bec39cab | 1011 | fi |
b4e70030 JB |
1012 | exec 5>config.log |
1013 | cat >&5 <<_ACEOF | |
bec39cab AC |
1014 | This file contains any messages produced by compilers while |
1015 | running configure, to aid debugging if configure makes a mistake. | |
1016 | ||
1017 | It was created by $as_me, which was | |
b4e70030 | 1018 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
1019 | |
1020 | $ $0 $@ | |
1021 | ||
1022 | _ACEOF | |
1023 | { | |
1024 | cat <<_ASUNAME | |
1025 | ## --------- ## | |
1026 | ## Platform. ## | |
1027 | ## --------- ## | |
1028 | ||
1029 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1030 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1031 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1032 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1033 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1034 | ||
1035 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1036 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1037 | ||
1038 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1039 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1040 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
b4e70030 | 1041 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
bec39cab AC |
1042 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1043 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1044 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1045 | ||
1046 | _ASUNAME | |
1047 | ||
1048 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1049 | for as_dir in $PATH | |
1050 | do | |
1051 | IFS=$as_save_IFS | |
1052 | test -z "$as_dir" && as_dir=. | |
1053 | echo "PATH: $as_dir" | |
1054 | done | |
1055 | ||
1056 | } >&5 | |
1057 | ||
1058 | cat >&5 <<_ACEOF | |
1059 | ||
1060 | ||
1061 | ## ----------- ## | |
1062 | ## Core tests. ## | |
1063 | ## ----------- ## | |
1064 | ||
1065 | _ACEOF | |
1066 | ||
1067 | ||
1068 | # Keep a trace of the command line. | |
1069 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1070 | # Strip out --silent because we don't want to record it for future runs. | |
1071 | # Also quote any args containing shell meta-characters. | |
1072 | # Make two passes to allow for proper duplicate-argument suppression. | |
1073 | ac_configure_args= | |
1074 | ac_configure_args0= | |
1075 | ac_configure_args1= | |
1076 | ac_sep= | |
1077 | ac_must_keep_next=false | |
1078 | for ac_pass in 1 2 | |
1079 | do | |
1080 | for ac_arg | |
1081 | do | |
1082 | case $ac_arg in | |
1083 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1084 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1085 | | -silent | --silent | --silen | --sile | --sil) | |
1086 | continue ;; | |
b4e70030 | 1087 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
bec39cab AC |
1088 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1089 | esac | |
1090 | case $ac_pass in | |
1091 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1092 | 2) | |
1093 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1094 | if test $ac_must_keep_next = true; then | |
1095 | ac_must_keep_next=false # Got value, back to normal. | |
1096 | else | |
1097 | case $ac_arg in | |
1098 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1099 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1100 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1101 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1102 | case "$ac_configure_args0 " in | |
1103 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1104 | esac | |
1105 | ;; | |
1106 | -* ) ac_must_keep_next=true ;; | |
1107 | esac | |
1108 | fi | |
1109 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1110 | # Get rid of the leading space. | |
1111 | ac_sep=" " | |
1112 | ;; | |
1113 | esac | |
1114 | done | |
1115 | done | |
1116 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1117 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1118 | ||
1119 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1120 | # config.log. We remove comments because anyway the quotes in there | |
1121 | # would cause problems or look ugly. | |
b4e70030 JB |
1122 | # WARNING: Be sure not to use single quotes in there, as some shells, |
1123 | # such as our DU 5.0 friend, will then `close' the trap. | |
bec39cab AC |
1124 | trap 'exit_status=$? |
1125 | # Save into config.log some information that might help in debugging. | |
1126 | { | |
1127 | echo | |
1128 | ||
1129 | cat <<\_ASBOX | |
1130 | ## ---------------- ## | |
1131 | ## Cache variables. ## | |
1132 | ## ---------------- ## | |
1133 | _ASBOX | |
1134 | echo | |
1135 | # The following way of writing the cache mishandles newlines in values, | |
b4e70030 | 1136 | { |
bec39cab | 1137 | (set) 2>&1 | |
b4e70030 JB |
1138 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
1139 | *ac_space=\ *) | |
bec39cab | 1140 | sed -n \ |
b4e70030 JB |
1141 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1142 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1143 | ;; | |
bec39cab | 1144 | *) |
b4e70030 JB |
1145 | sed -n \ |
1146 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 1147 | ;; |
b4e70030 JB |
1148 | esac; |
1149 | } | |
bec39cab AC |
1150 | echo |
1151 | ||
1152 | cat <<\_ASBOX | |
1153 | ## ----------------- ## | |
1154 | ## Output variables. ## | |
1155 | ## ----------------- ## | |
1156 | _ASBOX | |
1157 | echo | |
1158 | for ac_var in $ac_subst_vars | |
1159 | do | |
b4e70030 JB |
1160 | eval ac_val=$`echo $ac_var` |
1161 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1162 | done | sort |
1163 | echo | |
1164 | ||
1165 | if test -n "$ac_subst_files"; then | |
1166 | cat <<\_ASBOX | |
b4e70030 JB |
1167 | ## ------------- ## |
1168 | ## Output files. ## | |
1169 | ## ------------- ## | |
bec39cab AC |
1170 | _ASBOX |
1171 | echo | |
1172 | for ac_var in $ac_subst_files | |
1173 | do | |
b4e70030 JB |
1174 | eval ac_val=$`echo $ac_var` |
1175 | echo "$ac_var='"'"'$ac_val'"'"'" | |
bec39cab AC |
1176 | done | sort |
1177 | echo | |
1178 | fi | |
1179 | ||
1180 | if test -s confdefs.h; then | |
1181 | cat <<\_ASBOX | |
1182 | ## ----------- ## | |
1183 | ## confdefs.h. ## | |
1184 | ## ----------- ## | |
1185 | _ASBOX | |
1186 | echo | |
b4e70030 | 1187 | sed "/^$/d" confdefs.h | sort |
bec39cab | 1188 | echo |
3ace7edb | 1189 | fi |
bec39cab AC |
1190 | test "$ac_signal" != 0 && |
1191 | echo "$as_me: caught signal $ac_signal" | |
1192 | echo "$as_me: exit $exit_status" | |
1193 | } >&5 | |
b4e70030 JB |
1194 | rm -f core *.core && |
1195 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
bec39cab | 1196 | exit $exit_status |
b4e70030 | 1197 | ' 0 |
bec39cab AC |
1198 | for ac_signal in 1 2 13 15; do |
1199 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1200 | done | |
1201 | ac_signal=0 | |
1202 | ||
1203 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
b4e70030 JB |
1204 | rm -rf conftest* confdefs.h |
1205 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1206 | echo >confdefs.h | |
bec39cab AC |
1207 | |
1208 | # Predefined preprocessor variables. | |
1209 | ||
1210 | cat >>confdefs.h <<_ACEOF | |
1211 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1212 | _ACEOF | |
1213 | ||
1214 | ||
1215 | cat >>confdefs.h <<_ACEOF | |
1216 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1217 | _ACEOF | |
1218 | ||
1219 | ||
1220 | cat >>confdefs.h <<_ACEOF | |
1221 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1222 | _ACEOF | |
1223 | ||
1224 | ||
1225 | cat >>confdefs.h <<_ACEOF | |
1226 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1227 | _ACEOF | |
1228 | ||
1229 | ||
1230 | cat >>confdefs.h <<_ACEOF | |
1231 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1232 | _ACEOF | |
1233 | ||
1234 | ||
1235 | # Let the site file select an alternate cache file if it wants to. | |
1236 | # Prefer explicitly selected file to automatically selected ones. | |
b4e70030 JB |
1237 | if test -z "$CONFIG_SITE"; then |
1238 | if test "x$prefix" != xNONE; then | |
1239 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1240 | else | |
1241 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1242 | fi | |
c906108c | 1243 | fi |
b4e70030 | 1244 | for ac_site_file in $CONFIG_SITE; do |
c906108c | 1245 | if test -r "$ac_site_file"; then |
bec39cab AC |
1246 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1247 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1248 | sed 's/^/| /' "$ac_site_file" >&5 | |
c906108c SS |
1249 | . "$ac_site_file" |
1250 | fi | |
1251 | done | |
1252 | ||
1253 | if test -r "$cache_file"; then | |
bec39cab AC |
1254 | # Some versions of bash will fail to source /dev/null (special |
1255 | # files actually), so we avoid doing that. | |
1256 | if test -f "$cache_file"; then | |
1257 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1258 | echo "$as_me: loading cache $cache_file" >&6;} | |
1259 | case $cache_file in | |
1260 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1261 | *) . ./$cache_file;; | |
1262 | esac | |
1263 | fi | |
c906108c | 1264 | else |
bec39cab AC |
1265 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1266 | echo "$as_me: creating cache $cache_file" >&6;} | |
1267 | >$cache_file | |
1268 | fi | |
1269 | ||
1270 | # Check that the precious variables saved in the cache have kept the same | |
1271 | # value. | |
1272 | ac_cache_corrupted=false | |
b4e70030 JB |
1273 | for ac_var in `(set) 2>&1 | |
1274 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
bec39cab AC |
1275 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1276 | eval ac_new_set=\$ac_env_${ac_var}_set | |
b4e70030 JB |
1277 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
1278 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
bec39cab AC |
1279 | case $ac_old_set,$ac_new_set in |
1280 | set,) | |
1281 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1282 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1283 | ac_cache_corrupted=: ;; | |
1284 | ,set) | |
1285 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1286 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1287 | ac_cache_corrupted=: ;; | |
1288 | ,);; | |
1289 | *) | |
1290 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1291 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1292 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1293 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1294 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1295 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1296 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1297 | ac_cache_corrupted=: | |
1298 | fi;; | |
1299 | esac | |
1300 | # Pass precious variables to config.status. | |
1301 | if test "$ac_new_set" = set; then | |
1302 | case $ac_new_val in | |
b4e70030 JB |
1303 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
1304 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
bec39cab AC |
1305 | *) ac_arg=$ac_var=$ac_new_val ;; |
1306 | esac | |
1307 | case " $ac_configure_args " in | |
1308 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1309 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1310 | esac | |
1311 | fi | |
1312 | done | |
1313 | if $ac_cache_corrupted; then | |
1314 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1315 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1316 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1317 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1318 | { (exit 1); exit 1; }; } | |
c906108c SS |
1319 | fi |
1320 | ||
b4e70030 JB |
1321 | ac_ext=c |
1322 | ac_cpp='$CPP $CPPFLAGS' | |
1323 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1324 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1325 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c SS |
1326 | |
1327 | ||
bec39cab AC |
1328 | |
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | ||
1338 | ||
1339 | ||
1340 | ||
1341 | ||
1342 | ||
1343 | ||
bec39cab | 1344 | |
b4e70030 JB |
1345 | ac_config_headers="$ac_config_headers config.h:config.in" |
1346 | ||
1347 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1348 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1349 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
413ccac7 | 1350 | if test "${enable_maintainer_mode+set}" = set; then |
b4e70030 JB |
1351 | enableval="$enable_maintainer_mode" |
1352 | USE_MAINTAINER_MODE=$enableval | |
413ccac7 AC |
1353 | else |
1354 | USE_MAINTAINER_MODE=no | |
b4e70030 JB |
1355 | fi; |
1356 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1357 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
413ccac7 | 1358 | |
413ccac7 AC |
1359 | |
1360 | if test $USE_MAINTAINER_MODE = yes; then | |
1361 | MAINTAINER_MODE_TRUE= | |
1362 | MAINTAINER_MODE_FALSE='#' | |
1363 | else | |
1364 | MAINTAINER_MODE_TRUE='#' | |
1365 | MAINTAINER_MODE_FALSE= | |
1366 | fi | |
85981d60 | 1367 | |
413ccac7 | 1368 | MAINT=$MAINTAINER_MODE_TRUE |
413ccac7 | 1369 | |
c906108c | 1370 | |
bec39cab AC |
1371 | |
1372 | ac_ext=c | |
1373 | ac_cpp='$CPP $CPPFLAGS' | |
1374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1377 | if test -n "$ac_tool_prefix"; then | |
1378 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1379 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
b4e70030 JB |
1380 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1382 | if test "${ac_cv_prog_CC+set}" = set; then |
1383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1384 | else | |
1385 | if test -n "$CC"; then | |
1386 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1387 | else | |
1388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1389 | for as_dir in $PATH | |
1390 | do | |
1391 | IFS=$as_save_IFS | |
1392 | test -z "$as_dir" && as_dir=. | |
1393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1394 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1395 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
1396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1397 | break 2 | |
1398 | fi | |
1399 | done | |
1400 | done | |
1401 | ||
1402 | fi | |
1403 | fi | |
1404 | CC=$ac_cv_prog_CC | |
1405 | if test -n "$CC"; then | |
b4e70030 JB |
1406 | echo "$as_me:$LINENO: result: $CC" >&5 |
1407 | echo "${ECHO_T}$CC" >&6 | |
bec39cab | 1408 | else |
b4e70030 JB |
1409 | echo "$as_me:$LINENO: result: no" >&5 |
1410 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1411 | fi |
1412 | ||
1413 | fi | |
1414 | if test -z "$ac_cv_prog_CC"; then | |
1415 | ac_ct_CC=$CC | |
1416 | # Extract the first word of "gcc", so it can be a program name with args. | |
c906108c | 1417 | set dummy gcc; ac_word=$2 |
b4e70030 JB |
1418 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1420 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1422 | else | |
1423 | if test -n "$ac_ct_CC"; then | |
1424 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1425 | else | |
1426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1427 | for as_dir in $PATH | |
1428 | do | |
1429 | IFS=$as_save_IFS | |
1430 | test -z "$as_dir" && as_dir=. | |
1431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1433 | ac_cv_prog_ac_ct_CC="gcc" |
1434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1435 | break 2 | |
1436 | fi | |
1437 | done | |
1438 | done | |
1439 | ||
1440 | fi | |
1441 | fi | |
1442 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1443 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1444 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1445 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1446 | else |
b4e70030 JB |
1447 | echo "$as_me:$LINENO: result: no" >&5 |
1448 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
1449 | fi |
1450 | ||
b4e70030 | 1451 | CC=$ac_ct_CC |
bec39cab AC |
1452 | else |
1453 | CC="$ac_cv_prog_CC" | |
1454 | fi | |
1455 | ||
1456 | if test -z "$CC"; then | |
b4e70030 JB |
1457 | if test -n "$ac_tool_prefix"; then |
1458 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
bec39cab | 1459 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
b4e70030 JB |
1460 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1462 | if test "${ac_cv_prog_CC+set}" = set; then |
1463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1464 | else |
1465 | if test -n "$CC"; then | |
1466 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1467 | else | |
bec39cab AC |
1468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1469 | for as_dir in $PATH | |
1470 | do | |
1471 | IFS=$as_save_IFS | |
1472 | test -z "$as_dir" && as_dir=. | |
1473 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1474 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1475 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
1476 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1477 | break 2 | |
1478 | fi | |
1479 | done | |
1480 | done | |
1481 | ||
c906108c SS |
1482 | fi |
1483 | fi | |
bec39cab | 1484 | CC=$ac_cv_prog_CC |
c906108c | 1485 | if test -n "$CC"; then |
b4e70030 JB |
1486 | echo "$as_me:$LINENO: result: $CC" >&5 |
1487 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1488 | else |
b4e70030 JB |
1489 | echo "$as_me:$LINENO: result: no" >&5 |
1490 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1491 | fi |
1492 | ||
b4e70030 JB |
1493 | fi |
1494 | if test -z "$ac_cv_prog_CC"; then | |
1495 | ac_ct_CC=$CC | |
1496 | # Extract the first word of "cc", so it can be a program name with args. | |
1497 | set dummy cc; ac_word=$2 | |
1498 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1500 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1502 | else | |
1503 | if test -n "$ac_ct_CC"; then | |
1504 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1505 | else | |
1506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1507 | for as_dir in $PATH | |
1508 | do | |
1509 | IFS=$as_save_IFS | |
1510 | test -z "$as_dir" && as_dir=. | |
1511 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1512 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1513 | ac_cv_prog_ac_ct_CC="cc" | |
1514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1515 | break 2 | |
4e8d927d | 1516 | fi |
b4e70030 JB |
1517 | done |
1518 | done | |
1519 | ||
1520 | fi | |
1521 | fi | |
1522 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1523 | if test -n "$ac_ct_CC"; then | |
1524 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1525 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1526 | else | |
1527 | echo "$as_me:$LINENO: result: no" >&5 | |
1528 | echo "${ECHO_T}no" >&6 | |
1529 | fi | |
1530 | ||
1531 | CC=$ac_ct_CC | |
1532 | else | |
1533 | CC="$ac_cv_prog_CC" | |
1534 | fi | |
1535 | ||
bec39cab | 1536 | fi |
c906108c SS |
1537 | if test -z "$CC"; then |
1538 | # Extract the first word of "cc", so it can be a program name with args. | |
1539 | set dummy cc; ac_word=$2 | |
b4e70030 JB |
1540 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1542 | if test "${ac_cv_prog_CC+set}" = set; then |
1543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1544 | else |
1545 | if test -n "$CC"; then | |
1546 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1547 | else | |
c906108c | 1548 | ac_prog_rejected=no |
bec39cab AC |
1549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1550 | for as_dir in $PATH | |
1551 | do | |
1552 | IFS=$as_save_IFS | |
1553 | test -z "$as_dir" && as_dir=. | |
1554 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1555 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1556 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
1557 | ac_prog_rejected=yes | |
1558 | continue | |
1559 | fi | |
1560 | ac_cv_prog_CC="cc" | |
1561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1562 | break 2 | |
1563 | fi | |
1564 | done | |
1565 | done | |
1566 | ||
c906108c SS |
1567 | if test $ac_prog_rejected = yes; then |
1568 | # We found a bogon in the path, so make sure we never use it. | |
1569 | set dummy $ac_cv_prog_CC | |
1570 | shift | |
bec39cab | 1571 | if test $# != 0; then |
c906108c SS |
1572 | # We chose a different compiler from the bogus one. |
1573 | # However, it has the same basename, so the bogon will be chosen | |
1574 | # first if we set CC to just the basename; use the full file name. | |
1575 | shift | |
bec39cab | 1576 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
1577 | fi |
1578 | fi | |
1579 | fi | |
1580 | fi | |
bec39cab | 1581 | CC=$ac_cv_prog_CC |
c906108c | 1582 | if test -n "$CC"; then |
b4e70030 JB |
1583 | echo "$as_me:$LINENO: result: $CC" >&5 |
1584 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1585 | else |
b4e70030 JB |
1586 | echo "$as_me:$LINENO: result: no" >&5 |
1587 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1588 | fi |
1589 | ||
bec39cab AC |
1590 | fi |
1591 | if test -z "$CC"; then | |
1592 | if test -n "$ac_tool_prefix"; then | |
b4e70030 | 1593 | for ac_prog in cl |
bec39cab AC |
1594 | do |
1595 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1596 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
b4e70030 JB |
1597 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1599 | if test "${ac_cv_prog_CC+set}" = set; then |
1600 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1601 | else |
1602 | if test -n "$CC"; then | |
1603 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1604 | else | |
bec39cab AC |
1605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1606 | for as_dir in $PATH | |
1607 | do | |
1608 | IFS=$as_save_IFS | |
1609 | test -z "$as_dir" && as_dir=. | |
1610 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1611 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1612 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
1613 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1614 | break 2 | |
1615 | fi | |
1616 | done | |
1617 | done | |
1618 | ||
c906108c SS |
1619 | fi |
1620 | fi | |
bec39cab | 1621 | CC=$ac_cv_prog_CC |
c906108c | 1622 | if test -n "$CC"; then |
b4e70030 JB |
1623 | echo "$as_me:$LINENO: result: $CC" >&5 |
1624 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1625 | else |
b4e70030 JB |
1626 | echo "$as_me:$LINENO: result: no" >&5 |
1627 | echo "${ECHO_T}no" >&6 | |
c906108c | 1628 | fi |
bec39cab AC |
1629 | |
1630 | test -n "$CC" && break | |
1631 | done | |
1632 | fi | |
1633 | if test -z "$CC"; then | |
1634 | ac_ct_CC=$CC | |
b4e70030 | 1635 | for ac_prog in cl |
bec39cab AC |
1636 | do |
1637 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1638 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
1639 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1640 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
1641 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
1642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1643 | else | |
1644 | if test -n "$ac_ct_CC"; then | |
1645 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1646 | else | |
1647 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1648 | for as_dir in $PATH | |
1649 | do | |
1650 | IFS=$as_save_IFS | |
1651 | test -z "$as_dir" && as_dir=. | |
1652 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 1653 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
1654 | ac_cv_prog_ac_ct_CC="$ac_prog" |
1655 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1656 | break 2 | |
c906108c | 1657 | fi |
bec39cab AC |
1658 | done |
1659 | done | |
1660 | ||
1661 | fi | |
1662 | fi | |
1663 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1664 | if test -n "$ac_ct_CC"; then | |
b4e70030 JB |
1665 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
1666 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
bec39cab | 1667 | else |
b4e70030 JB |
1668 | echo "$as_me:$LINENO: result: no" >&5 |
1669 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1670 | fi |
1671 | ||
bec39cab AC |
1672 | test -n "$ac_ct_CC" && break |
1673 | done | |
c906108c | 1674 | |
b4e70030 | 1675 | CC=$ac_ct_CC |
bec39cab AC |
1676 | fi |
1677 | ||
1678 | fi | |
1679 | ||
1680 | ||
1681 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1682 | See \`config.log' for more details." >&5 | |
1683 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1684 | See \`config.log' for more details." >&2;} | |
1685 | { (exit 1); exit 1; }; } | |
1686 | ||
1687 | # Provide some information about the compiler. | |
b4e70030 JB |
1688 | echo "$as_me:$LINENO:" \ |
1689 | "checking for C compiler version" >&5 | |
bec39cab | 1690 | ac_compiler=`set X $ac_compile; echo $2` |
b4e70030 JB |
1691 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
1692 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
bec39cab AC |
1693 | ac_status=$? |
1694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1695 | (exit $ac_status); } | |
b4e70030 JB |
1696 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
1697 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
bec39cab AC |
1698 | ac_status=$? |
1699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1700 | (exit $ac_status); } | |
b4e70030 JB |
1701 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
1702 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
bec39cab AC |
1703 | ac_status=$? |
1704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1705 | (exit $ac_status); } | |
1706 | ||
1707 | cat >conftest.$ac_ext <<_ACEOF | |
1708 | /* confdefs.h. */ | |
1709 | _ACEOF | |
1710 | cat confdefs.h >>conftest.$ac_ext | |
1711 | cat >>conftest.$ac_ext <<_ACEOF | |
1712 | /* end confdefs.h. */ | |
1713 | ||
1714 | int | |
1715 | main () | |
1716 | { | |
1717 | ||
1718 | ; | |
1719 | return 0; | |
1720 | } | |
1721 | _ACEOF | |
1722 | ac_clean_files_save=$ac_clean_files | |
b4e70030 | 1723 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
bec39cab AC |
1724 | # Try to create an executable without -o first, disregard a.out. |
1725 | # It will help us diagnose broken compilers, and finding out an intuition | |
1726 | # of exeext. | |
b4e70030 JB |
1727 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
1728 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
bec39cab AC |
1729 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
1730 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1731 | (eval $ac_link_default) 2>&5 | |
1732 | ac_status=$? | |
1733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1734 | (exit $ac_status); }; then | |
b4e70030 JB |
1735 | # Find the output, starting from the most likely. This scheme is |
1736 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1737 | # resort. | |
1738 | ||
1739 | # Be careful to initialize this variable, since it used to be cached. | |
1740 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1741 | ac_cv_exeext= | |
1742 | # b.out is created by i960 compilers. | |
1743 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
bec39cab AC |
1744 | do |
1745 | test -f "$ac_file" || continue | |
1746 | case $ac_file in | |
b4e70030 JB |
1747 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
1748 | ;; | |
1749 | conftest.$ac_ext ) | |
1750 | # This is the source file. | |
1751 | ;; | |
1752 | [ab].out ) | |
1753 | # We found the default executable, but exeext='' is most | |
1754 | # certainly right. | |
1755 | break;; | |
1756 | *.* ) | |
1757 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1758 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1759 | # but it would be cool to find out if it's true. Does anybody | |
1760 | # maintain Libtool? --akim. | |
1761 | export ac_cv_exeext | |
1762 | break;; | |
1763 | * ) | |
1764 | break;; | |
bec39cab AC |
1765 | esac |
1766 | done | |
1767 | else | |
1768 | echo "$as_me: failed program was:" >&5 | |
1769 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1770 | ||
1771 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1772 | See \`config.log' for more details." >&5 | |
1773 | echo "$as_me: error: C compiler cannot create executables | |
1774 | See \`config.log' for more details." >&2;} | |
1775 | { (exit 77); exit 77; }; } | |
1776 | fi | |
1777 | ||
b4e70030 JB |
1778 | ac_exeext=$ac_cv_exeext |
1779 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1780 | echo "${ECHO_T}$ac_file" >&6 | |
1781 | ||
1782 | # Check the compiler produces executables we can run. If not, either | |
bec39cab | 1783 | # the compiler is broken, or we cross compile. |
b4e70030 JB |
1784 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
1785 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
bec39cab AC |
1786 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
1787 | # If not cross compiling, check that we can run a simple program. | |
1788 | if test "$cross_compiling" != yes; then | |
1789 | if { ac_try='./$ac_file' | |
1790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1791 | (eval $ac_try) 2>&5 | |
1792 | ac_status=$? | |
1793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1794 | (exit $ac_status); }; }; then | |
1795 | cross_compiling=no | |
c906108c | 1796 | else |
bec39cab AC |
1797 | if test "$cross_compiling" = maybe; then |
1798 | cross_compiling=yes | |
1799 | else | |
1800 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1801 | If you meant to cross compile, use \`--host'. | |
1802 | See \`config.log' for more details." >&5 | |
1803 | echo "$as_me: error: cannot run C compiled programs. | |
1804 | If you meant to cross compile, use \`--host'. | |
1805 | See \`config.log' for more details." >&2;} | |
1806 | { (exit 1); exit 1; }; } | |
1807 | fi | |
c906108c | 1808 | fi |
bec39cab | 1809 | fi |
b4e70030 JB |
1810 | echo "$as_me:$LINENO: result: yes" >&5 |
1811 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 1812 | |
b4e70030 JB |
1813 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1814 | ac_clean_files=$ac_clean_files_save | |
1815 | # Check the compiler produces executables we can run. If not, either | |
1816 | # the compiler is broken, or we cross compile. | |
1817 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1818 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1819 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1820 | echo "${ECHO_T}$cross_compiling" >&6 | |
4e8d927d | 1821 | |
b4e70030 JB |
1822 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1823 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
bec39cab AC |
1825 | (eval $ac_link) 2>&5 |
1826 | ac_status=$? | |
1827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1828 | (exit $ac_status); }; then | |
b4e70030 JB |
1829 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
1830 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1831 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1832 | # `rm'. | |
1833 | for ac_file in conftest.exe conftest conftest.*; do | |
1834 | test -f "$ac_file" || continue | |
1835 | case $ac_file in | |
1836 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1837 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1838 | export ac_cv_exeext | |
1839 | break;; | |
1840 | * ) break;; | |
1841 | esac | |
1842 | done | |
c906108c | 1843 | else |
bec39cab AC |
1844 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1845 | See \`config.log' for more details." >&5 | |
1846 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1847 | See \`config.log' for more details." >&2;} | |
1848 | { (exit 1); exit 1; }; } | |
c906108c | 1849 | fi |
c906108c | 1850 | |
b4e70030 JB |
1851 | rm -f conftest$ac_cv_exeext |
1852 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1853 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 1854 | |
b4e70030 | 1855 | rm -f conftest.$ac_ext |
bec39cab AC |
1856 | EXEEXT=$ac_cv_exeext |
1857 | ac_exeext=$EXEEXT | |
b4e70030 JB |
1858 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
1859 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
bec39cab AC |
1860 | if test "${ac_cv_objext+set}" = set; then |
1861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1862 | else | |
b4e70030 JB |
1863 | cat >conftest.$ac_ext <<_ACEOF |
1864 | /* confdefs.h. */ | |
1865 | _ACEOF | |
1866 | cat confdefs.h >>conftest.$ac_ext | |
1867 | cat >>conftest.$ac_ext <<_ACEOF | |
1868 | /* end confdefs.h. */ | |
1869 | ||
1870 | int | |
1871 | main () | |
1872 | { | |
1873 | ||
1874 | ; | |
1875 | return 0; | |
1876 | } | |
1877 | _ACEOF | |
1878 | rm -f conftest.o conftest.obj | |
bec39cab AC |
1879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
1880 | (eval $ac_compile) 2>&5 | |
1881 | ac_status=$? | |
1882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1883 | (exit $ac_status); }; then | |
b4e70030 | 1884 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
bec39cab | 1885 | case $ac_file in |
b4e70030 | 1886 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
bec39cab AC |
1887 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
1888 | break;; | |
1889 | esac | |
1890 | done | |
c906108c | 1891 | else |
bec39cab AC |
1892 | echo "$as_me: failed program was:" >&5 |
1893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1894 | ||
1895 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1896 | See \`config.log' for more details." >&5 | |
1897 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1898 | See \`config.log' for more details." >&2;} | |
1899 | { (exit 1); exit 1; }; } | |
c906108c SS |
1900 | fi |
1901 | ||
b4e70030 | 1902 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
bec39cab | 1903 | fi |
b4e70030 JB |
1904 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1905 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
bec39cab AC |
1906 | OBJEXT=$ac_cv_objext |
1907 | ac_objext=$OBJEXT | |
b4e70030 JB |
1908 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
1909 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
bec39cab AC |
1910 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
1911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1912 | else |
bec39cab AC |
1913 | cat >conftest.$ac_ext <<_ACEOF |
1914 | /* confdefs.h. */ | |
1915 | _ACEOF | |
1916 | cat confdefs.h >>conftest.$ac_ext | |
1917 | cat >>conftest.$ac_ext <<_ACEOF | |
1918 | /* end confdefs.h. */ | |
1919 | ||
1920 | int | |
1921 | main () | |
1922 | { | |
1923 | #ifndef __GNUC__ | |
1924 | choke me | |
1925 | #endif | |
1926 | ||
1927 | ; | |
1928 | return 0; | |
1929 | } | |
1930 | _ACEOF | |
1931 | rm -f conftest.$ac_objext | |
1932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1933 | (eval $ac_compile) 2>conftest.er1 | |
1934 | ac_status=$? | |
1935 | grep -v '^ *+' conftest.er1 >conftest.err | |
1936 | rm -f conftest.er1 | |
1937 | cat conftest.err >&5 | |
1938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1939 | (exit $ac_status); } && | |
b4e70030 JB |
1940 | { ac_try='test -z "$ac_c_werror_flag" |
1941 | || test ! -s conftest.err' | |
bec39cab AC |
1942 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
1943 | (eval $ac_try) 2>&5 | |
1944 | ac_status=$? | |
1945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1946 | (exit $ac_status); }; } && | |
1947 | { ac_try='test -s conftest.$ac_objext' | |
1948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1949 | (eval $ac_try) 2>&5 | |
1950 | ac_status=$? | |
1951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1952 | (exit $ac_status); }; }; then | |
1953 | ac_compiler_gnu=yes | |
1954 | else | |
1955 | echo "$as_me: failed program was:" >&5 | |
1956 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1957 | ||
b4e70030 | 1958 | ac_compiler_gnu=no |
bec39cab AC |
1959 | fi |
1960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
1961 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1962 | ||
1963 | fi | |
b4e70030 JB |
1964 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
1965 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
bec39cab AC |
1966 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
1967 | ac_test_CFLAGS=${CFLAGS+set} | |
1968 | ac_save_CFLAGS=$CFLAGS | |
b4e70030 JB |
1969 | CFLAGS="-g" |
1970 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1971 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
bec39cab AC |
1972 | if test "${ac_cv_prog_cc_g+set}" = set; then |
1973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1974 | else | |
b4e70030 | 1975 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
1976 | /* confdefs.h. */ |
1977 | _ACEOF | |
1978 | cat confdefs.h >>conftest.$ac_ext | |
1979 | cat >>conftest.$ac_ext <<_ACEOF | |
1980 | /* end confdefs.h. */ | |
1981 | ||
1982 | int | |
1983 | main () | |
1984 | { | |
1985 | ||
1986 | ; | |
1987 | return 0; | |
1988 | } | |
1989 | _ACEOF | |
1990 | rm -f conftest.$ac_objext | |
1991 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1992 | (eval $ac_compile) 2>conftest.er1 | |
1993 | ac_status=$? | |
1994 | grep -v '^ *+' conftest.er1 >conftest.err | |
1995 | rm -f conftest.er1 | |
1996 | cat conftest.err >&5 | |
1997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1998 | (exit $ac_status); } && | |
b4e70030 JB |
1999 | { ac_try='test -z "$ac_c_werror_flag" |
2000 | || test ! -s conftest.err' | |
bec39cab AC |
2001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2002 | (eval $ac_try) 2>&5 | |
2003 | ac_status=$? | |
2004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2005 | (exit $ac_status); }; } && | |
2006 | { ac_try='test -s conftest.$ac_objext' | |
2007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2008 | (eval $ac_try) 2>&5 | |
2009 | ac_status=$? | |
2010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2011 | (exit $ac_status); }; }; then | |
c906108c SS |
2012 | ac_cv_prog_cc_g=yes |
2013 | else | |
bec39cab AC |
2014 | echo "$as_me: failed program was:" >&5 |
2015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2016 | |
b4e70030 | 2017 | ac_cv_prog_cc_g=no |
4e8d927d | 2018 | fi |
bec39cab AC |
2019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2020 | fi | |
b4e70030 JB |
2021 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2022 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 2023 | if test "$ac_test_CFLAGS" = set; then |
bec39cab | 2024 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
2025 | elif test $ac_cv_prog_cc_g = yes; then |
2026 | if test "$GCC" = yes; then | |
2027 | CFLAGS="-g -O2" | |
2028 | else | |
2029 | CFLAGS="-g" | |
2030 | fi | |
2031 | else | |
2032 | if test "$GCC" = yes; then | |
2033 | CFLAGS="-O2" | |
2034 | else | |
2035 | CFLAGS= | |
2036 | fi | |
2037 | fi | |
b4e70030 JB |
2038 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2039 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2040 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
bec39cab AC |
2041 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2042 | else | |
b4e70030 | 2043 | ac_cv_prog_cc_stdc=no |
bec39cab AC |
2044 | ac_save_CC=$CC |
2045 | cat >conftest.$ac_ext <<_ACEOF | |
2046 | /* confdefs.h. */ | |
2047 | _ACEOF | |
2048 | cat confdefs.h >>conftest.$ac_ext | |
2049 | cat >>conftest.$ac_ext <<_ACEOF | |
2050 | /* end confdefs.h. */ | |
c906108c SS |
2051 | #include <stdarg.h> |
2052 | #include <stdio.h> | |
2053 | #include <sys/types.h> | |
2054 | #include <sys/stat.h> | |
2055 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2056 | struct buf { int x; }; | |
2057 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2058 | static char *e (p, i) | |
2059 | char **p; | |
2060 | int i; | |
2061 | { | |
2062 | return p[i]; | |
2063 | } | |
2064 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2065 | { | |
2066 | char *s; | |
2067 | va_list v; | |
2068 | va_start (v,p); | |
2069 | s = g (p, va_arg (v,int)); | |
2070 | va_end (v); | |
2071 | return s; | |
2072 | } | |
bec39cab AC |
2073 | |
2074 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2075 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2076 | These don't provoke an error unfortunately, instead are silently treated | |
b4e70030 | 2077 | as 'x'. The following induces an error, until -std1 is added to get |
bec39cab AC |
2078 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
2079 | array size at least. It's necessary to write '\x00'==0 to get something | |
b4e70030 | 2080 | that's true only with -std1. */ |
bec39cab AC |
2081 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
2082 | ||
c906108c SS |
2083 | int test (int i, double x); |
2084 | struct s1 {int (*f) (int a);}; | |
2085 | struct s2 {int (*f) (double a);}; | |
2086 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2087 | int argc; | |
2088 | char **argv; | |
bec39cab AC |
2089 | int |
2090 | main () | |
2091 | { | |
c906108c | 2092 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
bec39cab AC |
2093 | ; |
2094 | return 0; | |
2095 | } | |
2096 | _ACEOF | |
b4e70030 JB |
2097 | # Don't try gcc -ansi; that turns off useful extensions and |
2098 | # breaks some systems' header files. | |
2099 | # AIX -qlanglvl=ansi | |
2100 | # Ultrix and OSF/1 -std1 | |
2101 | # HP-UX 10.20 and later -Ae | |
2102 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2103 | # SVR4 -Xc -D__EXTENSIONS__ | |
2104 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
bec39cab AC |
2105 | do |
2106 | CC="$ac_save_CC $ac_arg" | |
2107 | rm -f conftest.$ac_objext | |
2108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2109 | (eval $ac_compile) 2>conftest.er1 | |
2110 | ac_status=$? | |
2111 | grep -v '^ *+' conftest.er1 >conftest.err | |
2112 | rm -f conftest.er1 | |
2113 | cat conftest.err >&5 | |
2114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2115 | (exit $ac_status); } && | |
b4e70030 JB |
2116 | { ac_try='test -z "$ac_c_werror_flag" |
2117 | || test ! -s conftest.err' | |
bec39cab AC |
2118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2119 | (eval $ac_try) 2>&5 | |
2120 | ac_status=$? | |
2121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2122 | (exit $ac_status); }; } && | |
2123 | { ac_try='test -s conftest.$ac_objext' | |
2124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2125 | (eval $ac_try) 2>&5 | |
2126 | ac_status=$? | |
2127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2128 | (exit $ac_status); }; }; then | |
b4e70030 JB |
2129 | ac_cv_prog_cc_stdc=$ac_arg |
2130 | break | |
c906108c | 2131 | else |
bec39cab AC |
2132 | echo "$as_me: failed program was:" >&5 |
2133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2134 | ||
c906108c | 2135 | fi |
bec39cab | 2136 | rm -f conftest.err conftest.$ac_objext |
c906108c | 2137 | done |
b4e70030 | 2138 | rm -f conftest.$ac_ext conftest.$ac_objext |
bec39cab | 2139 | CC=$ac_save_CC |
c906108c SS |
2140 | |
2141 | fi | |
b4e70030 JB |
2142 | |
2143 | case "x$ac_cv_prog_cc_stdc" in | |
2144 | x|xno) | |
2145 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2146 | echo "${ECHO_T}none needed" >&6 ;; | |
bec39cab | 2147 | *) |
b4e70030 JB |
2148 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
2149 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2150 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
c906108c SS |
2151 | esac |
2152 | ||
b4e70030 JB |
2153 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2154 | # in C++ we need to declare it. In case someone uses the same compiler | |
2155 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2156 | # the declaration of exit, since it's the most demanding environment. | |
2157 | cat >conftest.$ac_ext <<_ACEOF | |
2158 | #ifndef __cplusplus | |
2159 | choke me | |
2160 | #endif | |
2161 | _ACEOF | |
2162 | rm -f conftest.$ac_objext | |
2163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2164 | (eval $ac_compile) 2>conftest.er1 | |
2165 | ac_status=$? | |
2166 | grep -v '^ *+' conftest.er1 >conftest.err | |
2167 | rm -f conftest.er1 | |
2168 | cat conftest.err >&5 | |
2169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2170 | (exit $ac_status); } && | |
2171 | { ac_try='test -z "$ac_c_werror_flag" | |
2172 | || test ! -s conftest.err' | |
2173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2174 | (eval $ac_try) 2>&5 | |
2175 | ac_status=$? | |
2176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2177 | (exit $ac_status); }; } && | |
2178 | { ac_try='test -s conftest.$ac_objext' | |
2179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2180 | (eval $ac_try) 2>&5 | |
2181 | ac_status=$? | |
2182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2183 | (exit $ac_status); }; }; then | |
2184 | for ac_declaration in \ | |
2185 | '' \ | |
2186 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2187 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2188 | 'extern "C" void exit (int) throw ();' \ | |
2189 | 'extern "C" void exit (int);' \ | |
2190 | 'void exit (int);' | |
2191 | do | |
2192 | cat >conftest.$ac_ext <<_ACEOF | |
2193 | /* confdefs.h. */ | |
2194 | _ACEOF | |
2195 | cat confdefs.h >>conftest.$ac_ext | |
2196 | cat >>conftest.$ac_ext <<_ACEOF | |
2197 | /* end confdefs.h. */ | |
2198 | $ac_declaration | |
2199 | #include <stdlib.h> | |
2200 | int | |
2201 | main () | |
2202 | { | |
2203 | exit (42); | |
2204 | ; | |
2205 | return 0; | |
2206 | } | |
2207 | _ACEOF | |
2208 | rm -f conftest.$ac_objext | |
2209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2210 | (eval $ac_compile) 2>conftest.er1 | |
2211 | ac_status=$? | |
2212 | grep -v '^ *+' conftest.er1 >conftest.err | |
2213 | rm -f conftest.er1 | |
2214 | cat conftest.err >&5 | |
2215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2216 | (exit $ac_status); } && | |
2217 | { ac_try='test -z "$ac_c_werror_flag" | |
2218 | || test ! -s conftest.err' | |
2219 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2220 | (eval $ac_try) 2>&5 | |
2221 | ac_status=$? | |
2222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2223 | (exit $ac_status); }; } && | |
2224 | { ac_try='test -s conftest.$ac_objext' | |
2225 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2226 | (eval $ac_try) 2>&5 | |
2227 | ac_status=$? | |
2228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2229 | (exit $ac_status); }; }; then | |
2230 | : | |
2231 | else | |
2232 | echo "$as_me: failed program was:" >&5 | |
2233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2234 | ||
2235 | continue | |
2236 | fi | |
2237 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2238 | cat >conftest.$ac_ext <<_ACEOF | |
2239 | /* confdefs.h. */ | |
2240 | _ACEOF | |
2241 | cat confdefs.h >>conftest.$ac_ext | |
2242 | cat >>conftest.$ac_ext <<_ACEOF | |
2243 | /* end confdefs.h. */ | |
2244 | $ac_declaration | |
2245 | int | |
2246 | main () | |
2247 | { | |
2248 | exit (42); | |
2249 | ; | |
2250 | return 0; | |
2251 | } | |
2252 | _ACEOF | |
2253 | rm -f conftest.$ac_objext | |
2254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2255 | (eval $ac_compile) 2>conftest.er1 | |
2256 | ac_status=$? | |
2257 | grep -v '^ *+' conftest.er1 >conftest.err | |
2258 | rm -f conftest.er1 | |
2259 | cat conftest.err >&5 | |
2260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2261 | (exit $ac_status); } && | |
2262 | { ac_try='test -z "$ac_c_werror_flag" | |
2263 | || test ! -s conftest.err' | |
2264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2265 | (eval $ac_try) 2>&5 | |
2266 | ac_status=$? | |
2267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2268 | (exit $ac_status); }; } && | |
2269 | { ac_try='test -s conftest.$ac_objext' | |
2270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2271 | (eval $ac_try) 2>&5 | |
2272 | ac_status=$? | |
2273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2274 | (exit $ac_status); }; }; then | |
2275 | break | |
2276 | else | |
2277 | echo "$as_me: failed program was:" >&5 | |
2278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2279 | ||
2280 | fi | |
2281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2282 | done | |
2283 | rm -f conftest* | |
2284 | if test -n "$ac_declaration"; then | |
2285 | echo '#ifdef __cplusplus' >>confdefs.h | |
2286 | echo $ac_declaration >>confdefs.h | |
2287 | echo '#endif' >>confdefs.h | |
2288 | fi | |
2289 | ||
2290 | else | |
2291 | echo "$as_me: failed program was:" >&5 | |
2292 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2293 | |
b4e70030 JB |
2294 | fi |
2295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab AC |
2296 | ac_ext=c |
2297 | ac_cpp='$CPP $CPPFLAGS' | |
2298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
c906108c | 2301 | |
60ca704f | 2302 | |
bec39cab AC |
2303 | cat >>confdefs.h <<\_ACEOF |
2304 | #define _GNU_SOURCE 1 | |
2305 | _ACEOF | |
c906108c SS |
2306 | |
2307 | ||
8bb2c122 | 2308 | |
bec39cab AC |
2309 | ac_ext=c |
2310 | ac_cpp='$CPP $CPPFLAGS' | |
2311 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2312 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2313 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b4e70030 JB |
2314 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
2315 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
bec39cab AC |
2316 | # On Suns, sometimes $CPP names a directory. |
2317 | if test -n "$CPP" && test -d "$CPP"; then | |
2318 | CPP= | |
8bb2c122 | 2319 | fi |
bec39cab AC |
2320 | if test -z "$CPP"; then |
2321 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2322 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2323 | else | |
2324 | # Double quotes because CPP needs to be expanded | |
2325 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2326 | do | |
2327 | ac_preproc_ok=false | |
2328 | for ac_c_preproc_warn_flag in '' yes | |
2329 | do | |
2330 | # Use a header file that comes with gcc, so configuring glibc | |
2331 | # with a fresh cross-compiler works. | |
2332 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2333 | # <limits.h> exists even on freestanding compilers. | |
2334 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2335 | # not just through cpp. "Syntax error" is here to catch this case. | |
2336 | cat >conftest.$ac_ext <<_ACEOF | |
2337 | /* confdefs.h. */ | |
2338 | _ACEOF | |
2339 | cat confdefs.h >>conftest.$ac_ext | |
2340 | cat >>conftest.$ac_ext <<_ACEOF | |
2341 | /* end confdefs.h. */ | |
2342 | #ifdef __STDC__ | |
2343 | # include <limits.h> | |
2344 | #else | |
2345 | # include <assert.h> | |
2346 | #endif | |
2347 | Syntax error | |
2348 | _ACEOF | |
2349 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2350 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2351 | ac_status=$? | |
2352 | grep -v '^ *+' conftest.er1 >conftest.err | |
2353 | rm -f conftest.er1 | |
2354 | cat conftest.err >&5 | |
2355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2356 | (exit $ac_status); } >/dev/null; then | |
2357 | if test -s conftest.err; then | |
2358 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2359 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2360 | else | |
2361 | ac_cpp_err= | |
2362 | fi | |
8bb2c122 | 2363 | else |
bec39cab | 2364 | ac_cpp_err=yes |
8bb2c122 | 2365 | fi |
bec39cab AC |
2366 | if test -z "$ac_cpp_err"; then |
2367 | : | |
8bb2c122 | 2368 | else |
bec39cab AC |
2369 | echo "$as_me: failed program was:" >&5 |
2370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2371 | ||
2372 | # Broken: fails on valid input. | |
2373 | continue | |
2374 | fi | |
2375 | rm -f conftest.err conftest.$ac_ext | |
2376 | ||
b4e70030 | 2377 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2378 | # can be detected and how. |
2379 | cat >conftest.$ac_ext <<_ACEOF | |
2380 | /* confdefs.h. */ | |
2381 | _ACEOF | |
2382 | cat confdefs.h >>conftest.$ac_ext | |
2383 | cat >>conftest.$ac_ext <<_ACEOF | |
2384 | /* end confdefs.h. */ | |
2385 | #include <ac_nonexistent.h> | |
2386 | _ACEOF | |
2387 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2388 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2389 | ac_status=$? | |
2390 | grep -v '^ *+' conftest.er1 >conftest.err | |
2391 | rm -f conftest.er1 | |
2392 | cat conftest.err >&5 | |
2393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2394 | (exit $ac_status); } >/dev/null; then | |
2395 | if test -s conftest.err; then | |
2396 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2397 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2398 | else | |
2399 | ac_cpp_err= | |
2400 | fi | |
8bb2c122 | 2401 | else |
bec39cab | 2402 | ac_cpp_err=yes |
8bb2c122 | 2403 | fi |
bec39cab AC |
2404 | if test -z "$ac_cpp_err"; then |
2405 | # Broken: success on invalid input. | |
2406 | continue | |
8bb2c122 | 2407 | else |
bec39cab AC |
2408 | echo "$as_me: failed program was:" >&5 |
2409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 2410 | |
bec39cab AC |
2411 | # Passes both tests. |
2412 | ac_preproc_ok=: | |
2413 | break | |
8bb2c122 | 2414 | fi |
bec39cab | 2415 | rm -f conftest.err conftest.$ac_ext |
8bb2c122 | 2416 | |
bec39cab AC |
2417 | done |
2418 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2419 | rm -f conftest.err conftest.$ac_ext | |
2420 | if $ac_preproc_ok; then | |
2421 | break | |
2422 | fi | |
8bb2c122 | 2423 | |
bec39cab AC |
2424 | done |
2425 | ac_cv_prog_CPP=$CPP | |
ddc9cd0f | 2426 | |
c906108c | 2427 | fi |
bec39cab AC |
2428 | CPP=$ac_cv_prog_CPP |
2429 | else | |
2430 | ac_cv_prog_CPP=$CPP | |
c906108c | 2431 | fi |
b4e70030 JB |
2432 | echo "$as_me:$LINENO: result: $CPP" >&5 |
2433 | echo "${ECHO_T}$CPP" >&6 | |
bec39cab AC |
2434 | ac_preproc_ok=false |
2435 | for ac_c_preproc_warn_flag in '' yes | |
2436 | do | |
2437 | # Use a header file that comes with gcc, so configuring glibc | |
2438 | # with a fresh cross-compiler works. | |
2439 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2440 | # <limits.h> exists even on freestanding compilers. | |
2441 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2442 | # not just through cpp. "Syntax error" is here to catch this case. | |
2443 | cat >conftest.$ac_ext <<_ACEOF | |
2444 | /* confdefs.h. */ | |
2445 | _ACEOF | |
2446 | cat confdefs.h >>conftest.$ac_ext | |
2447 | cat >>conftest.$ac_ext <<_ACEOF | |
2448 | /* end confdefs.h. */ | |
2449 | #ifdef __STDC__ | |
2450 | # include <limits.h> | |
2451 | #else | |
2452 | # include <assert.h> | |
2453 | #endif | |
2454 | Syntax error | |
2455 | _ACEOF | |
2456 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2457 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2458 | ac_status=$? | |
2459 | grep -v '^ *+' conftest.er1 >conftest.err | |
2460 | rm -f conftest.er1 | |
2461 | cat conftest.err >&5 | |
2462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2463 | (exit $ac_status); } >/dev/null; then | |
2464 | if test -s conftest.err; then | |
2465 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2466 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2467 | else | |
2468 | ac_cpp_err= | |
2469 | fi | |
c906108c | 2470 | else |
bec39cab | 2471 | ac_cpp_err=yes |
c906108c | 2472 | fi |
bec39cab AC |
2473 | if test -z "$ac_cpp_err"; then |
2474 | : | |
c906108c | 2475 | else |
bec39cab AC |
2476 | echo "$as_me: failed program was:" >&5 |
2477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2478 | ||
2479 | # Broken: fails on valid input. | |
2480 | continue | |
2481 | fi | |
2482 | rm -f conftest.err conftest.$ac_ext | |
2483 | ||
b4e70030 | 2484 | # OK, works on sane cases. Now check whether non-existent headers |
bec39cab AC |
2485 | # can be detected and how. |
2486 | cat >conftest.$ac_ext <<_ACEOF | |
2487 | /* confdefs.h. */ | |
2488 | _ACEOF | |
2489 | cat confdefs.h >>conftest.$ac_ext | |
2490 | cat >>conftest.$ac_ext <<_ACEOF | |
2491 | /* end confdefs.h. */ | |
2492 | #include <ac_nonexistent.h> | |
2493 | _ACEOF | |
2494 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2495 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2496 | ac_status=$? | |
2497 | grep -v '^ *+' conftest.er1 >conftest.err | |
2498 | rm -f conftest.er1 | |
2499 | cat conftest.err >&5 | |
2500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2501 | (exit $ac_status); } >/dev/null; then | |
2502 | if test -s conftest.err; then | |
2503 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2504 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2505 | else | |
2506 | ac_cpp_err= | |
2507 | fi | |
c906108c | 2508 | else |
bec39cab | 2509 | ac_cpp_err=yes |
c906108c | 2510 | fi |
bec39cab AC |
2511 | if test -z "$ac_cpp_err"; then |
2512 | # Broken: success on invalid input. | |
2513 | continue | |
c906108c | 2514 | else |
bec39cab AC |
2515 | echo "$as_me: failed program was:" >&5 |
2516 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2517 | |
bec39cab AC |
2518 | # Passes both tests. |
2519 | ac_preproc_ok=: | |
2520 | break | |
c906108c | 2521 | fi |
bec39cab | 2522 | rm -f conftest.err conftest.$ac_ext |
c906108c | 2523 | |
bec39cab AC |
2524 | done |
2525 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2526 | rm -f conftest.err conftest.$ac_ext | |
2527 | if $ac_preproc_ok; then | |
c906108c SS |
2528 | : |
2529 | else | |
bec39cab AC |
2530 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
2531 | See \`config.log' for more details." >&5 | |
2532 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2533 | See \`config.log' for more details." >&2;} | |
2534 | { (exit 1); exit 1; }; } | |
c906108c | 2535 | fi |
c906108c | 2536 | |
bec39cab AC |
2537 | ac_ext=c |
2538 | ac_cpp='$CPP $CPPFLAGS' | |
2539 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2540 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2541 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2542 | ||
2543 | ||
b4e70030 JB |
2544 | echo "$as_me:$LINENO: checking for egrep" >&5 |
2545 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2546 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4e8d927d DJ |
2547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2548 | else | |
b4e70030 JB |
2549 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
2550 | then ac_cv_prog_egrep='grep -E' | |
2551 | else ac_cv_prog_egrep='egrep' | |
bec39cab | 2552 | fi |
4e8d927d | 2553 | fi |
b4e70030 JB |
2554 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2555 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2556 | EGREP=$ac_cv_prog_egrep | |
c906108c | 2557 | |
bec39cab AC |
2558 | |
2559 | ||
b4e70030 JB |
2560 | echo "$as_me:$LINENO: checking for AIX" >&5 |
2561 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6 | |
bec39cab AC |
2562 | cat >conftest.$ac_ext <<_ACEOF |
2563 | /* confdefs.h. */ | |
2564 | _ACEOF | |
2565 | cat confdefs.h >>conftest.$ac_ext | |
2566 | cat >>conftest.$ac_ext <<_ACEOF | |
2567 | /* end confdefs.h. */ | |
2568 | #ifdef _AIX | |
2569 | yes | |
2570 | #endif | |
2571 | ||
2572 | _ACEOF | |
c906108c | 2573 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 2574 | $EGREP "yes" >/dev/null 2>&1; then |
b4e70030 JB |
2575 | echo "$as_me:$LINENO: result: yes" >&5 |
2576 | echo "${ECHO_T}yes" >&6 | |
bec39cab AC |
2577 | cat >>confdefs.h <<\_ACEOF |
2578 | #define _ALL_SOURCE 1 | |
2579 | _ACEOF | |
2580 | ||
c906108c | 2581 | else |
b4e70030 JB |
2582 | echo "$as_me:$LINENO: result: no" >&5 |
2583 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2584 | fi |
2585 | rm -f conftest* | |
2586 | ||
c906108c | 2587 | |
b4e70030 JB |
2588 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2589 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
bec39cab AC |
2590 | if test "${ac_cv_search_strerror+set}" = set; then |
2591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2592 | else |
bec39cab | 2593 | ac_func_search_save_LIBS=$LIBS |
b4e70030 | 2594 | ac_cv_search_strerror=no |
bec39cab AC |
2595 | cat >conftest.$ac_ext <<_ACEOF |
2596 | /* confdefs.h. */ | |
2597 | _ACEOF | |
2598 | cat confdefs.h >>conftest.$ac_ext | |
2599 | cat >>conftest.$ac_ext <<_ACEOF | |
2600 | /* end confdefs.h. */ | |
c906108c | 2601 | |
b4e70030 | 2602 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
2603 | #ifdef __cplusplus |
2604 | extern "C" | |
2605 | #endif | |
b4e70030 JB |
2606 | /* We use char because int might match the return type of a gcc2 |
2607 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
2608 | char strerror (); |
2609 | int | |
2610 | main () | |
2611 | { | |
b4e70030 | 2612 | strerror (); |
bec39cab AC |
2613 | ; |
2614 | return 0; | |
2615 | } | |
2616 | _ACEOF | |
b4e70030 | 2617 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
2618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
2619 | (eval $ac_link) 2>conftest.er1 | |
2620 | ac_status=$? | |
2621 | grep -v '^ *+' conftest.er1 >conftest.err | |
2622 | rm -f conftest.er1 | |
2623 | cat conftest.err >&5 | |
2624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2625 | (exit $ac_status); } && | |
b4e70030 JB |
2626 | { ac_try='test -z "$ac_c_werror_flag" |
2627 | || test ! -s conftest.err' | |
bec39cab AC |
2628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2629 | (eval $ac_try) 2>&5 | |
2630 | ac_status=$? | |
2631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2632 | (exit $ac_status); }; } && | |
2633 | { ac_try='test -s conftest$ac_exeext' | |
2634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2635 | (eval $ac_try) 2>&5 | |
2636 | ac_status=$? | |
2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2638 | (exit $ac_status); }; }; then | |
b4e70030 | 2639 | ac_cv_search_strerror="none required" |
c906108c | 2640 | else |
bec39cab AC |
2641 | echo "$as_me: failed program was:" >&5 |
2642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2643 | |
2644 | fi | |
bec39cab | 2645 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
2646 | conftest$ac_exeext conftest.$ac_ext |
2647 | if test "$ac_cv_search_strerror" = no; then | |
2648 | for ac_lib in cposix; do | |
2649 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2650 | cat >conftest.$ac_ext <<_ACEOF | |
2651 | /* confdefs.h. */ | |
2652 | _ACEOF | |
2653 | cat confdefs.h >>conftest.$ac_ext | |
2654 | cat >>conftest.$ac_ext <<_ACEOF | |
2655 | /* end confdefs.h. */ | |
2656 | ||
2657 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2658 | #ifdef __cplusplus | |
2659 | extern "C" | |
2660 | #endif | |
2661 | /* We use char because int might match the return type of a gcc2 | |
2662 | builtin and then its argument prototype would still apply. */ | |
2663 | char strerror (); | |
2664 | int | |
2665 | main () | |
2666 | { | |
2667 | strerror (); | |
2668 | ; | |
2669 | return 0; | |
2670 | } | |
2671 | _ACEOF | |
2672 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2674 | (eval $ac_link) 2>conftest.er1 | |
2675 | ac_status=$? | |
2676 | grep -v '^ *+' conftest.er1 >conftest.err | |
2677 | rm -f conftest.er1 | |
2678 | cat conftest.err >&5 | |
2679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2680 | (exit $ac_status); } && | |
2681 | { ac_try='test -z "$ac_c_werror_flag" | |
2682 | || test ! -s conftest.err' | |
2683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2684 | (eval $ac_try) 2>&5 | |
2685 | ac_status=$? | |
2686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2687 | (exit $ac_status); }; } && | |
2688 | { ac_try='test -s conftest$ac_exeext' | |
2689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2690 | (eval $ac_try) 2>&5 | |
2691 | ac_status=$? | |
2692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2693 | (exit $ac_status); }; }; then | |
2694 | ac_cv_search_strerror="-l$ac_lib" | |
2695 | break | |
4e8d927d | 2696 | else |
b4e70030 JB |
2697 | echo "$as_me: failed program was:" >&5 |
2698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2699 | ||
2700 | fi | |
2701 | rm -f conftest.err conftest.$ac_objext \ | |
2702 | conftest$ac_exeext conftest.$ac_ext | |
2703 | done | |
c906108c | 2704 | fi |
bec39cab | 2705 | LIBS=$ac_func_search_save_LIBS |
c906108c | 2706 | fi |
b4e70030 JB |
2707 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 |
2708 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2709 | if test "$ac_cv_search_strerror" != no; then | |
2710 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
bec39cab | 2711 | |
c906108c SS |
2712 | fi |
2713 | ||
c906108c | 2714 | |
c906108c | 2715 | |
bec39cab | 2716 | |
b4e70030 JB |
2717 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 |
2718 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 | |
bec39cab AC |
2719 | if test "${am_cv_prog_cc_stdc+set}" = set; then |
2720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2721 | else |
bec39cab AC |
2722 | am_cv_prog_cc_stdc=no |
2723 | ac_save_CC="$CC" | |
2724 | # Don't try gcc -ansi; that turns off useful extensions and | |
2725 | # breaks some systems' header files. | |
2726 | # AIX -qlanglvl=ansi | |
2727 | # Ultrix and OSF/1 -std1 | |
2728 | # HP-UX 10.20 and later -Ae | |
2729 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2730 | # SVR4 -Xc -D__EXTENSIONS__ | |
2731 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2732 | do | |
2733 | CC="$ac_save_CC $ac_arg" | |
2734 | cat >conftest.$ac_ext <<_ACEOF | |
2735 | /* confdefs.h. */ | |
2736 | _ACEOF | |
2737 | cat confdefs.h >>conftest.$ac_ext | |
2738 | cat >>conftest.$ac_ext <<_ACEOF | |
2739 | /* end confdefs.h. */ | |
2740 | #include <stdarg.h> | |
2741 | #include <stdio.h> | |
2742 | #include <sys/types.h> | |
2743 | #include <sys/stat.h> | |
2744 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2745 | struct buf { int x; }; | |
2746 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2747 | static char *e (p, i) | |
2748 | char **p; | |
2749 | int i; | |
2750 | { | |
2751 | return p[i]; | |
2752 | } | |
2753 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2754 | { | |
2755 | char *s; | |
2756 | va_list v; | |
2757 | va_start (v,p); | |
2758 | s = g (p, va_arg (v,int)); | |
2759 | va_end (v); | |
2760 | return s; | |
2761 | } | |
2762 | int test (int i, double x); | |
2763 | struct s1 {int (*f) (int a);}; | |
2764 | struct s2 {int (*f) (double a);}; | |
2765 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2766 | int argc; | |
2767 | char **argv; | |
c906108c | 2768 | |
bec39cab AC |
2769 | int |
2770 | main () | |
2771 | { | |
c906108c | 2772 | |
bec39cab | 2773 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
c906108c | 2774 | |
bec39cab AC |
2775 | ; |
2776 | return 0; | |
2777 | } | |
2778 | _ACEOF | |
2779 | rm -f conftest.$ac_objext | |
2780 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2781 | (eval $ac_compile) 2>conftest.er1 | |
2782 | ac_status=$? | |
2783 | grep -v '^ *+' conftest.er1 >conftest.err | |
2784 | rm -f conftest.er1 | |
2785 | cat conftest.err >&5 | |
2786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2787 | (exit $ac_status); } && | |
b4e70030 JB |
2788 | { ac_try='test -z "$ac_c_werror_flag" |
2789 | || test ! -s conftest.err' | |
bec39cab AC |
2790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2791 | (eval $ac_try) 2>&5 | |
2792 | ac_status=$? | |
2793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2794 | (exit $ac_status); }; } && | |
2795 | { ac_try='test -s conftest.$ac_objext' | |
2796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2797 | (eval $ac_try) 2>&5 | |
2798 | ac_status=$? | |
2799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2800 | (exit $ac_status); }; }; then | |
2801 | am_cv_prog_cc_stdc="$ac_arg"; break | |
c906108c | 2802 | else |
bec39cab AC |
2803 | echo "$as_me: failed program was:" >&5 |
2804 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c SS |
2805 | |
2806 | fi | |
bec39cab AC |
2807 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2808 | done | |
2809 | CC="$ac_save_CC" | |
c906108c SS |
2810 | |
2811 | fi | |
2812 | ||
bec39cab | 2813 | if test -z "$am_cv_prog_cc_stdc"; then |
b4e70030 JB |
2814 | echo "$as_me:$LINENO: result: none needed" >&5 |
2815 | echo "${ECHO_T}none needed" >&6 | |
c906108c | 2816 | else |
b4e70030 JB |
2817 | echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
2818 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 | |
c906108c | 2819 | fi |
bec39cab AC |
2820 | case "x$am_cv_prog_cc_stdc" in |
2821 | x|xno) ;; | |
2822 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
2823 | esac | |
c906108c | 2824 | |
c906108c | 2825 | |
bec39cab AC |
2826 | ac_aux_dir= |
2827 | for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do | |
2828 | if test -f $ac_dir/install-sh; then | |
2829 | ac_aux_dir=$ac_dir | |
2830 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2831 | break | |
2832 | elif test -f $ac_dir/install.sh; then | |
2833 | ac_aux_dir=$ac_dir | |
2834 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2835 | break | |
2836 | elif test -f $ac_dir/shtool; then | |
2837 | ac_aux_dir=$ac_dir | |
2838 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2839 | break | |
2840 | fi | |
2841 | done | |
2842 | if test -z "$ac_aux_dir"; then | |
2843 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5 | |
2844 | echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;} | |
2845 | { (exit 1); exit 1; }; } | |
c906108c | 2846 | fi |
bec39cab AC |
2847 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
2848 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
2849 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
c906108c | 2850 | |
bec39cab AC |
2851 | # Make sure we can run config.sub. |
2852 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
2853 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
2854 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
2855 | { (exit 1); exit 1; }; } | |
2856 | ||
b4e70030 JB |
2857 | echo "$as_me:$LINENO: checking build system type" >&5 |
2858 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
bec39cab AC |
2859 | if test "${ac_cv_build+set}" = set; then |
2860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2861 | else | |
b4e70030 JB |
2862 | ac_cv_build_alias=$build_alias |
2863 | test -z "$ac_cv_build_alias" && | |
2864 | ac_cv_build_alias=`$ac_config_guess` | |
2865 | test -z "$ac_cv_build_alias" && | |
bec39cab AC |
2866 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2867 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2868 | { (exit 1); exit 1; }; } | |
b4e70030 JB |
2869 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
2870 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
2871 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
bec39cab AC |
2872 | { (exit 1); exit 1; }; } |
2873 | ||
2874 | fi | |
b4e70030 JB |
2875 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2876 | echo "${ECHO_T}$ac_cv_build" >&6 | |
bec39cab | 2877 | build=$ac_cv_build |
b4e70030 JB |
2878 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2879 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2880 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
bec39cab AC |
2881 | |
2882 | ||
b4e70030 JB |
2883 | echo "$as_me:$LINENO: checking host system type" >&5 |
2884 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
bec39cab AC |
2885 | if test "${ac_cv_host+set}" = set; then |
2886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2887 | else | |
b4e70030 JB |
2888 | ac_cv_host_alias=$host_alias |
2889 | test -z "$ac_cv_host_alias" && | |
2890 | ac_cv_host_alias=$ac_cv_build_alias | |
2891 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
2892 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
2893 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
bec39cab AC |
2894 | { (exit 1); exit 1; }; } |
2895 | ||
2896 | fi | |
b4e70030 JB |
2897 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2898 | echo "${ECHO_T}$ac_cv_host" >&6 | |
bec39cab | 2899 | host=$ac_cv_host |
b4e70030 JB |
2900 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2901 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2902 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
bec39cab AC |
2903 | |
2904 | ||
b4e70030 JB |
2905 | echo "$as_me:$LINENO: checking target system type" >&5 |
2906 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
bec39cab AC |
2907 | if test "${ac_cv_target+set}" = set; then |
2908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2909 | else | |
b4e70030 JB |
2910 | ac_cv_target_alias=$target_alias |
2911 | test "x$ac_cv_target_alias" = "x" && | |
2912 | ac_cv_target_alias=$ac_cv_host_alias | |
2913 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
2914 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
2915 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
bec39cab AC |
2916 | { (exit 1); exit 1; }; } |
2917 | ||
2918 | fi | |
b4e70030 JB |
2919 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2920 | echo "${ECHO_T}$ac_cv_target" >&6 | |
bec39cab | 2921 | target=$ac_cv_target |
b4e70030 JB |
2922 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
2923 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
2924 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
c906108c | 2925 | |
c906108c | 2926 | |
bec39cab AC |
2927 | # The aliases save the names the user supplied, while $host etc. |
2928 | # will get canonicalized. | |
2929 | test -n "$target_alias" && | |
2930 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2931 | NONENONEs,x,x, && | |
2932 | program_prefix=${target_alias}- | |
c906108c | 2933 | |
c906108c | 2934 | |
bec39cab AC |
2935 | CONFIG_OBS= |
2936 | CONFIG_DEPS= | |
2937 | CONFIG_SRCS= | |
2938 | ENABLE_CFLAGS= | |
c906108c | 2939 | |
bec39cab AC |
2940 | CONFIG_ALL= |
2941 | CONFIG_CLEAN= | |
2942 | CONFIG_INSTALL= | |
2943 | CONFIG_UNINSTALL= | |
2944 | ||
20e95c23 DJ |
2945 | # If we haven't got the data from the intl directory, |
2946 | # assume NLS is disabled. | |
2947 | USE_NLS=no | |
2948 | LIBINTL= | |
2949 | LIBINTL_DEP= | |
2950 | INCINTL= | |
2951 | XGETTEXT= | |
2952 | GMSGFMT= | |
2953 | POSUB= | |
3841debe DJ |
2954 | |
2955 | if test -f ../intl/config.intl; then | |
2956 | . ../intl/config.intl | |
20e95c23 DJ |
2957 | fi |
2958 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
2959 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
2960 | if test x"$USE_NLS" != xyes; then | |
b4e70030 JB |
2961 | echo "$as_me:$LINENO: result: no" >&5 |
2962 | echo "${ECHO_T}no" >&6 | |
c906108c | 2963 | else |
20e95c23 DJ |
2964 | echo "$as_me:$LINENO: result: yes" >&5 |
2965 | echo "${ECHO_T}yes" >&6 | |
c906108c | 2966 | |
20e95c23 DJ |
2967 | cat >>confdefs.h <<\_ACEOF |
2968 | #define ENABLE_NLS 1 | |
bec39cab | 2969 | _ACEOF |
c906108c | 2970 | |
c906108c | 2971 | |
20e95c23 DJ |
2972 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
2973 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
2974 | # Look for .po and .gmo files in the source directory. | |
2975 | CATALOGS= | |
2976 | XLINGUAS= | |
2977 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
2978 | # If there aren't any .gmo files the shell will give us the | |
2979 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
2980 | # weeded out. | |
2981 | case "$cat" in *\**) | |
2982 | continue;; | |
2983 | esac | |
2984 | # The quadruple backslash is collapsed to a double backslash | |
2985 | # by the backticks, then collapsed again by the double quotes, | |
2986 | # leaving us with one backslash in the sed expression (right | |
2987 | # before the dot that mustn't act as a wildcard). | |
2988 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
2989 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
2990 | # The user is allowed to set LINGUAS to a list of languages to | |
2991 | # install catalogs for. If it's empty that means "all of them." | |
2992 | if test "x$LINGUAS" = x; then | |
2993 | CATALOGS="$CATALOGS $cat" | |
2994 | XLINGUAS="$XLINGUAS $lang" | |
2995 | else | |
2996 | case "$LINGUAS" in *$lang*) | |
2997 | CATALOGS="$CATALOGS $cat" | |
2998 | XLINGUAS="$XLINGUAS $lang" | |
2999 | ;; | |
3000 | esac | |
3001 | fi | |
3002 | done | |
3003 | LINGUAS="$XLINGUAS" | |
3004 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
3005 | echo "${ECHO_T}$LINGUAS" >&6 | |
c906108c | 3006 | |
c906108c | 3007 | |
20e95c23 | 3008 | DATADIRNAME=share |
c906108c | 3009 | |
20e95c23 | 3010 | INSTOBJEXT=.mo |
c906108c | 3011 | |
20e95c23 DJ |
3012 | GENCAT=gencat |
3013 | ||
3014 | CATOBJEXT=.gmo | |
3015 | ||
3016 | fi | |
3017 | ||
3018 | localedir='${datadir}/locale' | |
c906108c | 3019 | |
bec39cab | 3020 | |
20e95c23 | 3021 | if test x"$USE_NLS" = xyes; then |
bec39cab AC |
3022 | CONFIG_ALL="$CONFIG_ALL all-po" |
3023 | CONFIG_CLEAN="$CONFIG_CLEAN clean-po" | |
3024 | CONFIG_INSTALL="$CONFIG_INSTALL install-po" | |
3025 | CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po" | |
3026 | fi | |
3027 | ||
3028 | PACKAGE=gdb | |
3029 | ||
3030 | cat >>confdefs.h <<_ACEOF | |
3031 | #define PACKAGE "$PACKAGE" | |
3032 | _ACEOF | |
3033 | ||
3034 | ||
3035 | ||
3036 | debugdir=${libdir}/debug | |
3037 | ||
3038 | ||
b4e70030 | 3039 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. |
bec39cab | 3040 | if test "${with_separate_debug_dir+set}" = set; then |
b4e70030 JB |
3041 | withval="$with_separate_debug_dir" |
3042 | debugdir="${withval}" | |
3043 | fi; | |
bec39cab AC |
3044 | |
3045 | ||
3046 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | |
3047 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3048 | ac_define_dir=`eval echo $debugdir` | |
3049 | ac_define_dir=`eval echo $ac_define_dir` | |
3050 | ||
3051 | cat >>confdefs.h <<_ACEOF | |
3052 | #define DEBUGDIR "$ac_define_dir" | |
3053 | _ACEOF | |
3054 | ||
3055 | ||
3056 | #AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"), | |
3057 | ||
aa28a74e DJ |
3058 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
3059 | if test "x$prefix" = xNONE; then | |
3060 | test_prefix=/usr/local | |
3061 | else | |
3062 | test_prefix=$prefix | |
3063 | fi | |
3064 | else | |
3065 | test_prefix=$exec_prefix | |
3066 | fi | |
3067 | case ${debugdir} in | |
3068 | "${test_prefix}"|"${test_prefix}/"*|\ | |
3069 | '${exec_prefix}'|'${exec_prefix}/'*) | |
3070 | ||
3071 | cat >>confdefs.h <<\_ACEOF | |
3072 | #define DEBUGDIR_RELOCATABLE 1 | |
3073 | _ACEOF | |
3074 | ||
3075 | ;; | |
3076 | esac | |
3077 | ||
b4e70030 JB |
3078 | |
3079 | ||
bec39cab AC |
3080 | subdirs="$subdirs doc testsuite" |
3081 | ||
3082 | ||
121ce6e5 DJ |
3083 | # Provide defaults for some variables set by the per-host and per-target |
3084 | # configuration. | |
3085 | gdb_host_obs=posix-hdep.o | |
3086 | ||
771b4502 UW |
3087 | if test "${target}" = "${host}"; then |
3088 | gdb_native=yes | |
3089 | else | |
3090 | gdb_native=no | |
3091 | fi | |
3092 | ||
bec39cab AC |
3093 | . $srcdir/configure.host |
3094 | ||
3095 | . $srcdir/configure.tgt | |
3096 | ||
3097 | # Fetch the default architecture and default target vector from BFD. | |
3098 | targ=$target; . $srcdir/../bfd/config.bfd | |
3099 | ||
3100 | # We only want the first architecture, so strip off the others if | |
3101 | # there is more than one. | |
3102 | targ_archs=`echo $targ_archs | sed 's/ .*//'` | |
3103 | ||
3104 | if test "x$targ_archs" != x; then | |
3105 | ||
3106 | cat >>confdefs.h <<_ACEOF | |
3107 | #define DEFAULT_BFD_ARCH $targ_archs | |
3108 | _ACEOF | |
3109 | ||
3110 | fi | |
3111 | if test "x$targ_defvec" != x; then | |
3112 | ||
3113 | cat >>confdefs.h <<_ACEOF | |
3114 | #define DEFAULT_BFD_VEC $targ_defvec | |
3115 | _ACEOF | |
3116 | ||
3117 | fi | |
3118 | ||
a4ce5b0d UW |
3119 | TARGET_OBS="${gdb_target_obs}" |
3120 | ||
3121 | ||
bec39cab | 3122 | test "$program_prefix" != NONE && |
b4e70030 | 3123 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
bec39cab AC |
3124 | # Use a double $ so make ignores it. |
3125 | test "$program_suffix" != NONE && | |
b4e70030 | 3126 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
bec39cab AC |
3127 | # Double any \ or $. echo might interpret backslashes. |
3128 | # By default was `s,x,x', remove it if useless. | |
3129 | cat <<\_ACEOF >conftest.sed | |
3130 | s/[\\$]/&&/g;s/;s,x,x,$// | |
3131 | _ACEOF | |
3132 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
b4e70030 | 3133 | rm conftest.sed |
bec39cab AC |
3134 | |
3135 | ||
3136 | # The CLI cannot be disabled yet, but may be in the future. | |
3137 | ||
3138 | # Enable CLI. | |
b4e70030 | 3139 | # Check whether --enable-gdbcli or --disable-gdbcli was given. |
bec39cab | 3140 | if test "${enable_gdbcli+set}" = set; then |
b4e70030 JB |
3141 | enableval="$enable_gdbcli" |
3142 | case $enableval in | |
bec39cab AC |
3143 | yes) |
3144 | ;; | |
3145 | no) | |
3146 | { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5 | |
3147 | echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;} | |
3148 | { (exit 1); exit 1; }; } ;; | |
3149 | *) | |
3150 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5 | |
3151 | echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;} | |
3152 | { (exit 1); exit 1; }; } ;; | |
3153 | esac | |
3154 | else | |
3155 | enable_gdbcli=yes | |
b4e70030 | 3156 | fi; |
bec39cab AC |
3157 | if test x"$enable_gdbcli" = xyes; then |
3158 | if test -d $srcdir/cli; then | |
3159 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)" | |
3160 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)" | |
3161 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)" | |
3162 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)" | |
3163 | fi | |
3164 | fi | |
3165 | ||
3166 | # Enable MI. | |
b4e70030 | 3167 | # Check whether --enable-gdbmi or --disable-gdbmi was given. |
bec39cab | 3168 | if test "${enable_gdbmi+set}" = set; then |
b4e70030 JB |
3169 | enableval="$enable_gdbmi" |
3170 | case $enableval in | |
bec39cab AC |
3171 | yes | no) |
3172 | ;; | |
3173 | *) | |
3174 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5 | |
3175 | echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;} | |
3176 | { (exit 1); exit 1; }; } ;; | |
3177 | esac | |
3178 | else | |
3179 | enable_gdbmi=yes | |
b4e70030 | 3180 | fi; |
bec39cab AC |
3181 | if test x"$enable_gdbmi" = xyes; then |
3182 | if test -d $srcdir/mi; then | |
3183 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)" | |
3184 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)" | |
3185 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)" | |
3186 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)" | |
3187 | fi | |
3188 | fi | |
3189 | ||
3190 | # Enable TUI. | |
b4e70030 | 3191 | # Check whether --enable-tui or --disable-tui was given. |
bec39cab | 3192 | if test "${enable_tui+set}" = set; then |
b4e70030 JB |
3193 | enableval="$enable_tui" |
3194 | case $enableval in | |
bec39cab AC |
3195 | yes | no) |
3196 | ;; | |
3197 | *) | |
3198 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5 | |
3199 | echo "$as_me: error: bad value $enableval for --enable-tui" >&2;} | |
3200 | { (exit 1); exit 1; }; } ;; | |
3201 | esac | |
3202 | else | |
3203 | enable_tui=yes | |
b4e70030 | 3204 | fi; |
bec39cab AC |
3205 | |
3206 | # Enable gdbtk. | |
b4e70030 | 3207 | # Check whether --enable-gdbtk or --disable-gdbtk was given. |
bec39cab | 3208 | if test "${enable_gdbtk+set}" = set; then |
b4e70030 JB |
3209 | enableval="$enable_gdbtk" |
3210 | case $enableval in | |
bec39cab AC |
3211 | yes | no) |
3212 | ;; | |
3213 | *) | |
3214 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5 | |
3215 | echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;} | |
3216 | { (exit 1); exit 1; }; } ;; | |
3217 | esac | |
3218 | else | |
04ac69aa | 3219 | if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then |
bec39cab AC |
3220 | enable_gdbtk=yes |
3221 | else | |
3222 | enable_gdbtk=no | |
3223 | fi | |
b4e70030 | 3224 | fi; |
bec39cab AC |
3225 | # We unconditionally disable gdbtk tests on selected platforms. |
3226 | case $host_os in | |
3227 | go32* | windows*) | |
3228 | { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5 | |
3229 | echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;} | |
3230 | enable_gdbtk=no ;; | |
3231 | esac | |
3232 | ||
3233 | # Libunwind support. | |
20e95c23 DJ |
3234 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
3235 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3236 | if test "${ac_cv_header_stdc+set}" = set; then | |
3237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3238 | else | |
3239 | cat >conftest.$ac_ext <<_ACEOF | |
3240 | /* confdefs.h. */ | |
3241 | _ACEOF | |
3242 | cat confdefs.h >>conftest.$ac_ext | |
3243 | cat >>conftest.$ac_ext <<_ACEOF | |
3244 | /* end confdefs.h. */ | |
3245 | #include <stdlib.h> | |
3246 | #include <stdarg.h> | |
3247 | #include <string.h> | |
3248 | #include <float.h> | |
3249 | ||
3250 | int | |
3251 | main () | |
3252 | { | |
3253 | ||
3254 | ; | |
3255 | return 0; | |
3256 | } | |
3257 | _ACEOF | |
3258 | rm -f conftest.$ac_objext | |
3259 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3260 | (eval $ac_compile) 2>conftest.er1 | |
3261 | ac_status=$? | |
3262 | grep -v '^ *+' conftest.er1 >conftest.err | |
3263 | rm -f conftest.er1 | |
3264 | cat conftest.err >&5 | |
3265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3266 | (exit $ac_status); } && | |
3267 | { ac_try='test -z "$ac_c_werror_flag" | |
3268 | || test ! -s conftest.err' | |
3269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3270 | (eval $ac_try) 2>&5 | |
3271 | ac_status=$? | |
3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3273 | (exit $ac_status); }; } && | |
3274 | { ac_try='test -s conftest.$ac_objext' | |
3275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3276 | (eval $ac_try) 2>&5 | |
3277 | ac_status=$? | |
3278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3279 | (exit $ac_status); }; }; then | |
3280 | ac_cv_header_stdc=yes | |
3281 | else | |
3282 | echo "$as_me: failed program was:" >&5 | |
3283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3284 | ||
3285 | ac_cv_header_stdc=no | |
3286 | fi | |
3287 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3288 | ||
3289 | if test $ac_cv_header_stdc = yes; then | |
3290 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3291 | cat >conftest.$ac_ext <<_ACEOF | |
3292 | /* confdefs.h. */ | |
3293 | _ACEOF | |
3294 | cat confdefs.h >>conftest.$ac_ext | |
3295 | cat >>conftest.$ac_ext <<_ACEOF | |
3296 | /* end confdefs.h. */ | |
3297 | #include <string.h> | |
3298 | ||
3299 | _ACEOF | |
3300 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3301 | $EGREP "memchr" >/dev/null 2>&1; then | |
3302 | : | |
3303 | else | |
3304 | ac_cv_header_stdc=no | |
3305 | fi | |
3306 | rm -f conftest* | |
3307 | ||
3308 | fi | |
3309 | ||
3310 | if test $ac_cv_header_stdc = yes; then | |
3311 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3312 | cat >conftest.$ac_ext <<_ACEOF | |
3313 | /* confdefs.h. */ | |
3314 | _ACEOF | |
3315 | cat confdefs.h >>conftest.$ac_ext | |
3316 | cat >>conftest.$ac_ext <<_ACEOF | |
3317 | /* end confdefs.h. */ | |
3318 | #include <stdlib.h> | |
3319 | ||
3320 | _ACEOF | |
3321 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3322 | $EGREP "free" >/dev/null 2>&1; then | |
3323 | : | |
3324 | else | |
3325 | ac_cv_header_stdc=no | |
3326 | fi | |
3327 | rm -f conftest* | |
3328 | ||
3329 | fi | |
3330 | ||
3331 | if test $ac_cv_header_stdc = yes; then | |
3332 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3333 | if test "$cross_compiling" = yes; then | |
3334 | : | |
3335 | else | |
3336 | cat >conftest.$ac_ext <<_ACEOF | |
3337 | /* confdefs.h. */ | |
3338 | _ACEOF | |
3339 | cat confdefs.h >>conftest.$ac_ext | |
3340 | cat >>conftest.$ac_ext <<_ACEOF | |
3341 | /* end confdefs.h. */ | |
3342 | #include <ctype.h> | |
3343 | #if ((' ' & 0x0FF) == 0x020) | |
3344 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3345 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3346 | #else | |
3347 | # define ISLOWER(c) \ | |
3348 | (('a' <= (c) && (c) <= 'i') \ | |
3349 | || ('j' <= (c) && (c) <= 'r') \ | |
3350 | || ('s' <= (c) && (c) <= 'z')) | |
3351 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3352 | #endif | |
3353 | ||
3354 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3355 | int | |
3356 | main () | |
3357 | { | |
3358 | int i; | |
3359 | for (i = 0; i < 256; i++) | |
3360 | if (XOR (islower (i), ISLOWER (i)) | |
3361 | || toupper (i) != TOUPPER (i)) | |
3362 | exit(2); | |
3363 | exit (0); | |
3364 | } | |
3365 | _ACEOF | |
3366 | rm -f conftest$ac_exeext | |
3367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3368 | (eval $ac_link) 2>&5 | |
3369 | ac_status=$? | |
3370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3371 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3373 | (eval $ac_try) 2>&5 | |
3374 | ac_status=$? | |
3375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3376 | (exit $ac_status); }; }; then | |
3377 | : | |
3378 | else | |
3379 | echo "$as_me: program exited with status $ac_status" >&5 | |
3380 | echo "$as_me: failed program was:" >&5 | |
3381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3382 | ||
3383 | ( exit $ac_status ) | |
3384 | ac_cv_header_stdc=no | |
3385 | fi | |
3386 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3387 | fi | |
3388 | fi | |
3389 | fi | |
3390 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3391 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3392 | if test $ac_cv_header_stdc = yes; then | |
3393 | ||
3394 | cat >>confdefs.h <<\_ACEOF | |
3395 | #define STDC_HEADERS 1 | |
3396 | _ACEOF | |
3397 | ||
3398 | fi | |
3399 | ||
3400 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3401 | ||
3402 | ||
3403 | ||
3404 | ||
3405 | ||
3406 | ||
3407 | ||
3408 | ||
3409 | ||
3410 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3411 | inttypes.h stdint.h unistd.h | |
3412 | do | |
3413 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3414 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3418 | else | |
3419 | cat >conftest.$ac_ext <<_ACEOF | |
3420 | /* confdefs.h. */ | |
3421 | _ACEOF | |
3422 | cat confdefs.h >>conftest.$ac_ext | |
3423 | cat >>conftest.$ac_ext <<_ACEOF | |
3424 | /* end confdefs.h. */ | |
3425 | $ac_includes_default | |
3426 | ||
3427 | #include <$ac_header> | |
3428 | _ACEOF | |
3429 | rm -f conftest.$ac_objext | |
3430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3431 | (eval $ac_compile) 2>conftest.er1 | |
3432 | ac_status=$? | |
3433 | grep -v '^ *+' conftest.er1 >conftest.err | |
3434 | rm -f conftest.er1 | |
3435 | cat conftest.err >&5 | |
3436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3437 | (exit $ac_status); } && | |
3438 | { ac_try='test -z "$ac_c_werror_flag" | |
3439 | || test ! -s conftest.err' | |
3440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3441 | (eval $ac_try) 2>&5 | |
3442 | ac_status=$? | |
3443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3444 | (exit $ac_status); }; } && | |
3445 | { ac_try='test -s conftest.$ac_objext' | |
3446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3447 | (eval $ac_try) 2>&5 | |
3448 | ac_status=$? | |
3449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3450 | (exit $ac_status); }; }; then | |
3451 | eval "$as_ac_Header=yes" | |
3452 | else | |
3453 | echo "$as_me: failed program was:" >&5 | |
3454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3455 | ||
3456 | eval "$as_ac_Header=no" | |
3457 | fi | |
3458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3459 | fi | |
3460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3461 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3462 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3463 | cat >>confdefs.h <<_ACEOF | |
3464 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3465 | _ACEOF | |
3466 | ||
3467 | fi | |
3468 | ||
3469 | done | |
3470 | ||
3471 | ||
bec39cab | 3472 | |
b4e70030 | 3473 | # Check whether --with-libunwind or --without-libunwind was given. |
bec39cab | 3474 | if test "${with_libunwind+set}" = set; then |
b4e70030 JB |
3475 | withval="$with_libunwind" |
3476 | case "${withval}" in | |
bec39cab AC |
3477 | yes) enable_libunwind=yes ;; |
3478 | no) enable_libunwind=no ;; | |
3479 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5 | |
3480 | echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;} | |
3481 | { (exit 1); exit 1; }; } ;; | |
3482 | esac | |
3483 | else | |
3484 | ||
3485 | ||
3486 | for ac_header in libunwind.h | |
3487 | do | |
3488 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3489 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3490 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3491 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3492 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3494 | fi | |
b4e70030 JB |
3495 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3496 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3497 | else |
3498 | # Is the header compilable? | |
b4e70030 JB |
3499 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3500 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3501 | cat >conftest.$ac_ext <<_ACEOF |
3502 | /* confdefs.h. */ | |
3503 | _ACEOF | |
3504 | cat confdefs.h >>conftest.$ac_ext | |
3505 | cat >>conftest.$ac_ext <<_ACEOF | |
3506 | /* end confdefs.h. */ | |
3507 | $ac_includes_default | |
3508 | #include <$ac_header> | |
3509 | _ACEOF | |
3510 | rm -f conftest.$ac_objext | |
3511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3512 | (eval $ac_compile) 2>conftest.er1 | |
3513 | ac_status=$? | |
3514 | grep -v '^ *+' conftest.er1 >conftest.err | |
3515 | rm -f conftest.er1 | |
3516 | cat conftest.err >&5 | |
3517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3518 | (exit $ac_status); } && | |
b4e70030 JB |
3519 | { ac_try='test -z "$ac_c_werror_flag" |
3520 | || test ! -s conftest.err' | |
bec39cab AC |
3521 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3522 | (eval $ac_try) 2>&5 | |
3523 | ac_status=$? | |
3524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3525 | (exit $ac_status); }; } && | |
3526 | { ac_try='test -s conftest.$ac_objext' | |
3527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3528 | (eval $ac_try) 2>&5 | |
3529 | ac_status=$? | |
3530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3531 | (exit $ac_status); }; }; then | |
3532 | ac_header_compiler=yes | |
3533 | else | |
3534 | echo "$as_me: failed program was:" >&5 | |
3535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3536 | ||
b4e70030 | 3537 | ac_header_compiler=no |
bec39cab AC |
3538 | fi |
3539 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3540 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3541 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3542 | |
3543 | # Is the header present? | |
b4e70030 JB |
3544 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3545 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3546 | cat >conftest.$ac_ext <<_ACEOF |
3547 | /* confdefs.h. */ | |
3548 | _ACEOF | |
3549 | cat confdefs.h >>conftest.$ac_ext | |
3550 | cat >>conftest.$ac_ext <<_ACEOF | |
3551 | /* end confdefs.h. */ | |
3552 | #include <$ac_header> | |
3553 | _ACEOF | |
3554 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3555 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3556 | ac_status=$? | |
3557 | grep -v '^ *+' conftest.er1 >conftest.err | |
3558 | rm -f conftest.er1 | |
3559 | cat conftest.err >&5 | |
3560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3561 | (exit $ac_status); } >/dev/null; then | |
3562 | if test -s conftest.err; then | |
3563 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3564 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3565 | else | |
3566 | ac_cpp_err= | |
3567 | fi | |
3568 | else | |
3569 | ac_cpp_err=yes | |
3570 | fi | |
3571 | if test -z "$ac_cpp_err"; then | |
3572 | ac_header_preproc=yes | |
3573 | else | |
3574 | echo "$as_me: failed program was:" >&5 | |
3575 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3576 | ||
3577 | ac_header_preproc=no | |
3578 | fi | |
3579 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
3580 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3581 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3582 | |
3583 | # So? What about this header? | |
3584 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3585 | yes:no: ) | |
3586 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3587 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3588 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3589 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3590 | ac_header_preproc=yes | |
3591 | ;; | |
3592 | no:yes:* ) | |
3593 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3594 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3595 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3596 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3597 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3598 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3599 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3600 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3601 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3602 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3603 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3604 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
3605 | ( |
3606 | cat <<\_ASBOX | |
3607 | ## ------------------------------------------ ## | |
3608 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3609 | ## ------------------------------------------ ## | |
3610 | _ASBOX | |
3611 | ) | | |
3612 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3613 | ;; |
3614 | esac | |
b4e70030 JB |
3615 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3616 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3617 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3618 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3619 | else | |
3620 | eval "$as_ac_Header=\$ac_header_preproc" | |
3621 | fi | |
b4e70030 JB |
3622 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3623 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3624 | |
3625 | fi | |
3626 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3627 | cat >>confdefs.h <<_ACEOF | |
3628 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3629 | _ACEOF | |
3630 | ||
3631 | fi | |
3632 | ||
3633 | done | |
3634 | ||
3635 | ||
3636 | for ac_header in libunwind-ia64.h | |
3637 | do | |
3638 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3639 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3640 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3641 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3642 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3644 | fi | |
b4e70030 JB |
3645 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3646 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3647 | else |
3648 | # Is the header compilable? | |
b4e70030 JB |
3649 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3650 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3651 | cat >conftest.$ac_ext <<_ACEOF |
3652 | /* confdefs.h. */ | |
3653 | _ACEOF | |
3654 | cat confdefs.h >>conftest.$ac_ext | |
3655 | cat >>conftest.$ac_ext <<_ACEOF | |
3656 | /* end confdefs.h. */ | |
3657 | $ac_includes_default | |
3658 | #include <$ac_header> | |
3659 | _ACEOF | |
3660 | rm -f conftest.$ac_objext | |
3661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3662 | (eval $ac_compile) 2>conftest.er1 | |
3663 | ac_status=$? | |
3664 | grep -v '^ *+' conftest.er1 >conftest.err | |
3665 | rm -f conftest.er1 | |
3666 | cat conftest.err >&5 | |
3667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3668 | (exit $ac_status); } && | |
b4e70030 JB |
3669 | { ac_try='test -z "$ac_c_werror_flag" |
3670 | || test ! -s conftest.err' | |
bec39cab AC |
3671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3672 | (eval $ac_try) 2>&5 | |
3673 | ac_status=$? | |
3674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3675 | (exit $ac_status); }; } && | |
3676 | { ac_try='test -s conftest.$ac_objext' | |
3677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3678 | (eval $ac_try) 2>&5 | |
3679 | ac_status=$? | |
3680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3681 | (exit $ac_status); }; }; then | |
3682 | ac_header_compiler=yes | |
3683 | else | |
3684 | echo "$as_me: failed program was:" >&5 | |
3685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3686 | ||
b4e70030 | 3687 | ac_header_compiler=no |
bec39cab AC |
3688 | fi |
3689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3690 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3691 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3692 | |
3693 | # Is the header present? | |
b4e70030 JB |
3694 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3695 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3696 | cat >conftest.$ac_ext <<_ACEOF |
3697 | /* confdefs.h. */ | |
3698 | _ACEOF | |
3699 | cat confdefs.h >>conftest.$ac_ext | |
3700 | cat >>conftest.$ac_ext <<_ACEOF | |
3701 | /* end confdefs.h. */ | |
3702 | #include <$ac_header> | |
3703 | _ACEOF | |
3704 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3705 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3706 | ac_status=$? | |
3707 | grep -v '^ *+' conftest.er1 >conftest.err | |
3708 | rm -f conftest.er1 | |
3709 | cat conftest.err >&5 | |
3710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3711 | (exit $ac_status); } >/dev/null; then | |
3712 | if test -s conftest.err; then | |
3713 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3714 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3715 | else | |
3716 | ac_cpp_err= | |
3717 | fi | |
3718 | else | |
3719 | ac_cpp_err=yes | |
3720 | fi | |
3721 | if test -z "$ac_cpp_err"; then | |
3722 | ac_header_preproc=yes | |
3723 | else | |
3724 | echo "$as_me: failed program was:" >&5 | |
3725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3726 | ||
3727 | ac_header_preproc=no | |
3728 | fi | |
3729 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
3730 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3731 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3732 | |
3733 | # So? What about this header? | |
3734 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3735 | yes:no: ) | |
3736 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3737 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3738 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3739 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3740 | ac_header_preproc=yes | |
3741 | ;; | |
3742 | no:yes:* ) | |
3743 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3744 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3745 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3746 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3747 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3748 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3749 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3750 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3751 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3752 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3753 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3754 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
3755 | ( |
3756 | cat <<\_ASBOX | |
3757 | ## ------------------------------------------ ## | |
3758 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3759 | ## ------------------------------------------ ## | |
3760 | _ASBOX | |
3761 | ) | | |
3762 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3763 | ;; |
3764 | esac | |
b4e70030 JB |
3765 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3766 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3767 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3769 | else | |
3770 | eval "$as_ac_Header=\$ac_header_preproc" | |
3771 | fi | |
b4e70030 JB |
3772 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3773 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3774 | |
3775 | fi | |
3776 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3777 | cat >>confdefs.h <<_ACEOF | |
3778 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3779 | _ACEOF | |
3780 | ||
3781 | fi | |
3782 | ||
3783 | done | |
3784 | ||
3785 | if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then | |
3786 | enable_libunwind=yes; | |
3787 | fi | |
3788 | ||
b4e70030 | 3789 | fi; |
bec39cab AC |
3790 | |
3791 | if test x"$enable_libunwind" = xyes; then | |
3792 | ||
3793 | for ac_header in libunwind.h | |
3794 | do | |
3795 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3797 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3798 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3799 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3801 | fi | |
b4e70030 JB |
3802 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3803 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3804 | else |
3805 | # Is the header compilable? | |
b4e70030 JB |
3806 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3807 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3808 | cat >conftest.$ac_ext <<_ACEOF |
3809 | /* confdefs.h. */ | |
3810 | _ACEOF | |
3811 | cat confdefs.h >>conftest.$ac_ext | |
3812 | cat >>conftest.$ac_ext <<_ACEOF | |
3813 | /* end confdefs.h. */ | |
3814 | $ac_includes_default | |
3815 | #include <$ac_header> | |
3816 | _ACEOF | |
3817 | rm -f conftest.$ac_objext | |
3818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3819 | (eval $ac_compile) 2>conftest.er1 | |
3820 | ac_status=$? | |
3821 | grep -v '^ *+' conftest.er1 >conftest.err | |
3822 | rm -f conftest.er1 | |
3823 | cat conftest.err >&5 | |
3824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3825 | (exit $ac_status); } && | |
b4e70030 JB |
3826 | { ac_try='test -z "$ac_c_werror_flag" |
3827 | || test ! -s conftest.err' | |
bec39cab AC |
3828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3829 | (eval $ac_try) 2>&5 | |
3830 | ac_status=$? | |
3831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3832 | (exit $ac_status); }; } && | |
3833 | { ac_try='test -s conftest.$ac_objext' | |
3834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3835 | (eval $ac_try) 2>&5 | |
3836 | ac_status=$? | |
3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3838 | (exit $ac_status); }; }; then | |
3839 | ac_header_compiler=yes | |
3840 | else | |
3841 | echo "$as_me: failed program was:" >&5 | |
3842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3843 | ||
b4e70030 | 3844 | ac_header_compiler=no |
bec39cab AC |
3845 | fi |
3846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3847 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3848 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3849 | |
3850 | # Is the header present? | |
b4e70030 JB |
3851 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
3852 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
3853 | cat >conftest.$ac_ext <<_ACEOF |
3854 | /* confdefs.h. */ | |
3855 | _ACEOF | |
3856 | cat confdefs.h >>conftest.$ac_ext | |
3857 | cat >>conftest.$ac_ext <<_ACEOF | |
3858 | /* end confdefs.h. */ | |
3859 | #include <$ac_header> | |
3860 | _ACEOF | |
3861 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3862 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3863 | ac_status=$? | |
3864 | grep -v '^ *+' conftest.er1 >conftest.err | |
3865 | rm -f conftest.er1 | |
3866 | cat conftest.err >&5 | |
3867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3868 | (exit $ac_status); } >/dev/null; then | |
3869 | if test -s conftest.err; then | |
3870 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3871 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3872 | else | |
3873 | ac_cpp_err= | |
3874 | fi | |
3875 | else | |
3876 | ac_cpp_err=yes | |
3877 | fi | |
3878 | if test -z "$ac_cpp_err"; then | |
3879 | ac_header_preproc=yes | |
3880 | else | |
3881 | echo "$as_me: failed program was:" >&5 | |
3882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3883 | ||
3884 | ac_header_preproc=no | |
3885 | fi | |
3886 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
3887 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
3888 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
3889 | |
3890 | # So? What about this header? | |
3891 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3892 | yes:no: ) | |
3893 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3894 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3895 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3896 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3897 | ac_header_preproc=yes | |
3898 | ;; | |
3899 | no:yes:* ) | |
3900 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3901 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3902 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3903 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3904 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3905 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3906 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3907 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3908 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3909 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3910 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3911 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
3912 | ( |
3913 | cat <<\_ASBOX | |
3914 | ## ------------------------------------------ ## | |
3915 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3916 | ## ------------------------------------------ ## | |
3917 | _ASBOX | |
3918 | ) | | |
3919 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
3920 | ;; |
3921 | esac | |
b4e70030 JB |
3922 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
3923 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3924 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3926 | else | |
3927 | eval "$as_ac_Header=\$ac_header_preproc" | |
3928 | fi | |
b4e70030 JB |
3929 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3930 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3931 | |
3932 | fi | |
3933 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3934 | cat >>confdefs.h <<_ACEOF | |
3935 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3936 | _ACEOF | |
3937 | ||
3938 | fi | |
3939 | ||
3940 | done | |
3941 | ||
3942 | ||
3943 | for ac_header in libunwind-ia64.h | |
3944 | do | |
3945 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
3946 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
3947 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3949 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
3950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3951 | fi | |
b4e70030 JB |
3952 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
3953 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
3954 | else |
3955 | # Is the header compilable? | |
b4e70030 JB |
3956 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
3957 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
3958 | cat >conftest.$ac_ext <<_ACEOF |
3959 | /* confdefs.h. */ | |
3960 | _ACEOF | |
3961 | cat confdefs.h >>conftest.$ac_ext | |
3962 | cat >>conftest.$ac_ext <<_ACEOF | |
3963 | /* end confdefs.h. */ | |
3964 | $ac_includes_default | |
3965 | #include <$ac_header> | |
3966 | _ACEOF | |
3967 | rm -f conftest.$ac_objext | |
3968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3969 | (eval $ac_compile) 2>conftest.er1 | |
3970 | ac_status=$? | |
3971 | grep -v '^ *+' conftest.er1 >conftest.err | |
3972 | rm -f conftest.er1 | |
3973 | cat conftest.err >&5 | |
3974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3975 | (exit $ac_status); } && | |
b4e70030 JB |
3976 | { ac_try='test -z "$ac_c_werror_flag" |
3977 | || test ! -s conftest.err' | |
bec39cab AC |
3978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3979 | (eval $ac_try) 2>&5 | |
3980 | ac_status=$? | |
3981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3982 | (exit $ac_status); }; } && | |
3983 | { ac_try='test -s conftest.$ac_objext' | |
3984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3985 | (eval $ac_try) 2>&5 | |
3986 | ac_status=$? | |
3987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3988 | (exit $ac_status); }; }; then | |
3989 | ac_header_compiler=yes | |
3990 | else | |
3991 | echo "$as_me: failed program was:" >&5 | |
3992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3993 | ||
b4e70030 | 3994 | ac_header_compiler=no |
bec39cab AC |
3995 | fi |
3996 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
3997 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3998 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
3999 | |
4000 | # Is the header present? | |
b4e70030 JB |
4001 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
4002 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
4003 | cat >conftest.$ac_ext <<_ACEOF |
4004 | /* confdefs.h. */ | |
4005 | _ACEOF | |
4006 | cat confdefs.h >>conftest.$ac_ext | |
4007 | cat >>conftest.$ac_ext <<_ACEOF | |
4008 | /* end confdefs.h. */ | |
4009 | #include <$ac_header> | |
4010 | _ACEOF | |
4011 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4012 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4013 | ac_status=$? | |
4014 | grep -v '^ *+' conftest.er1 >conftest.err | |
4015 | rm -f conftest.er1 | |
4016 | cat conftest.err >&5 | |
4017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4018 | (exit $ac_status); } >/dev/null; then | |
4019 | if test -s conftest.err; then | |
4020 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4021 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4022 | else | |
4023 | ac_cpp_err= | |
4024 | fi | |
4025 | else | |
4026 | ac_cpp_err=yes | |
4027 | fi | |
4028 | if test -z "$ac_cpp_err"; then | |
4029 | ac_header_preproc=yes | |
4030 | else | |
4031 | echo "$as_me: failed program was:" >&5 | |
4032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4033 | ||
4034 | ac_header_preproc=no | |
4035 | fi | |
4036 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
4037 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
4038 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
4039 | |
4040 | # So? What about this header? | |
4041 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4042 | yes:no: ) | |
4043 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4044 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4045 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4046 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4047 | ac_header_preproc=yes | |
4048 | ;; | |
4049 | no:yes:* ) | |
4050 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4051 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4052 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4053 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4054 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4055 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4056 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4057 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4058 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4059 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4060 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4061 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
4062 | ( |
4063 | cat <<\_ASBOX | |
4064 | ## ------------------------------------------ ## | |
4065 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4066 | ## ------------------------------------------ ## | |
4067 | _ASBOX | |
4068 | ) | | |
4069 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
4070 | ;; |
4071 | esac | |
b4e70030 JB |
4072 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4073 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4074 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
4075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4076 | else | |
4077 | eval "$as_ac_Header=\$ac_header_preproc" | |
4078 | fi | |
b4e70030 JB |
4079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4080 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
4081 | |
4082 | fi | |
4083 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4084 | cat >>confdefs.h <<_ACEOF | |
4085 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4086 | _ACEOF | |
4087 | ||
4088 | fi | |
4089 | ||
4090 | done | |
4091 | ||
60ca704f SE |
4092 | |
4093 | cat >>confdefs.h <<\_ACEOF | |
bec39cab AC |
4094 | #define HAVE_LIBUNWIND 1 |
4095 | _ACEOF | |
4096 | ||
4097 | CONFIG_OBS="$CONFIG_OBS libunwind-frame.o" | |
4098 | CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o" | |
4099 | CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c" | |
4100 | fi | |
4101 | ||
4102 | # Profiling support. | |
b4e70030 | 4103 | # Check whether --enable-profiling or --disable-profiling was given. |
bec39cab | 4104 | if test "${enable_profiling+set}" = set; then |
b4e70030 JB |
4105 | enableval="$enable_profiling" |
4106 | case $enableval in | |
bec39cab AC |
4107 | yes | no) |
4108 | ;; | |
4109 | *) | |
4110 | { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5 | |
4111 | echo "$as_me: error: bad value $enableval for --enable-profile" >&2;} | |
4112 | { (exit 1); exit 1; }; } ;; | |
4113 | esac | |
4114 | else | |
4115 | enable_profiling=no | |
b4e70030 | 4116 | fi; |
bec39cab AC |
4117 | |
4118 | ||
4119 | ||
4120 | for ac_func in monstartup _mcleanup | |
4121 | do | |
4122 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
4123 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4124 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4125 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
4126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4127 | else | |
4128 | cat >conftest.$ac_ext <<_ACEOF | |
4129 | /* confdefs.h. */ | |
4130 | _ACEOF | |
4131 | cat confdefs.h >>conftest.$ac_ext | |
4132 | cat >>conftest.$ac_ext <<_ACEOF | |
4133 | /* end confdefs.h. */ | |
4134 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4135 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4136 | #define $ac_func innocuous_$ac_func | |
4137 | ||
4138 | /* System header to define __stub macros and hopefully few prototypes, | |
4139 | which can conflict with char $ac_func (); below. | |
4140 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4141 | <limits.h> exists even on freestanding compilers. */ | |
4142 | ||
4143 | #ifdef __STDC__ | |
4144 | # include <limits.h> | |
4145 | #else | |
4146 | # include <assert.h> | |
4147 | #endif | |
4148 | ||
4149 | #undef $ac_func | |
4150 | ||
b4e70030 | 4151 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
4152 | #ifdef __cplusplus |
4153 | extern "C" | |
b4e70030 | 4154 | { |
bec39cab | 4155 | #endif |
b4e70030 JB |
4156 | /* We use char because int might match the return type of a gcc2 |
4157 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
4158 | char $ac_func (); |
4159 | /* The GNU C library defines this for functions which it implements | |
4160 | to always fail with ENOSYS. Some functions are actually named | |
4161 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 4162 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bec39cab | 4163 | choke me |
b4e70030 JB |
4164 | #else |
4165 | char (*f) () = $ac_func; | |
4166 | #endif | |
4167 | #ifdef __cplusplus | |
4168 | } | |
bec39cab AC |
4169 | #endif |
4170 | ||
4171 | int | |
4172 | main () | |
4173 | { | |
b4e70030 | 4174 | return f != $ac_func; |
bec39cab AC |
4175 | ; |
4176 | return 0; | |
4177 | } | |
4178 | _ACEOF | |
4179 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4181 | (eval $ac_link) 2>conftest.er1 | |
4182 | ac_status=$? | |
4183 | grep -v '^ *+' conftest.er1 >conftest.err | |
4184 | rm -f conftest.er1 | |
4185 | cat conftest.err >&5 | |
4186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4187 | (exit $ac_status); } && | |
b4e70030 JB |
4188 | { ac_try='test -z "$ac_c_werror_flag" |
4189 | || test ! -s conftest.err' | |
bec39cab AC |
4190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4191 | (eval $ac_try) 2>&5 | |
4192 | ac_status=$? | |
4193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4194 | (exit $ac_status); }; } && | |
4195 | { ac_try='test -s conftest$ac_exeext' | |
4196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4197 | (eval $ac_try) 2>&5 | |
4198 | ac_status=$? | |
4199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4200 | (exit $ac_status); }; }; then | |
4201 | eval "$as_ac_var=yes" | |
4202 | else | |
4203 | echo "$as_me: failed program was:" >&5 | |
4204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4205 | ||
b4e70030 | 4206 | eval "$as_ac_var=no" |
bec39cab AC |
4207 | fi |
4208 | rm -f conftest.err conftest.$ac_objext \ | |
4209 | conftest$ac_exeext conftest.$ac_ext | |
4210 | fi | |
b4e70030 JB |
4211 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4212 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
4213 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
4214 | cat >>confdefs.h <<_ACEOF | |
4215 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4216 | _ACEOF | |
4217 | ||
4218 | fi | |
4219 | done | |
4220 | ||
b4e70030 JB |
4221 | echo "$as_me:$LINENO: checking for _etext" >&5 |
4222 | echo $ECHO_N "checking for _etext... $ECHO_C" >&6 | |
bec39cab AC |
4223 | if test "${ac_cv_var__etext+set}" = set; then |
4224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4225 | else | |
4226 | cat >conftest.$ac_ext <<_ACEOF | |
4227 | /* confdefs.h. */ | |
4228 | _ACEOF | |
4229 | cat confdefs.h >>conftest.$ac_ext | |
4230 | cat >>conftest.$ac_ext <<_ACEOF | |
4231 | /* end confdefs.h. */ | |
4232 | #include <stdlib.h> | |
4233 | extern char _etext; | |
4234 | ||
4235 | int | |
4236 | main () | |
4237 | { | |
4238 | free (&_etext); | |
4239 | ; | |
4240 | return 0; | |
4241 | } | |
4242 | _ACEOF | |
4243 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4244 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4245 | (eval $ac_link) 2>conftest.er1 | |
4246 | ac_status=$? | |
4247 | grep -v '^ *+' conftest.er1 >conftest.err | |
4248 | rm -f conftest.er1 | |
4249 | cat conftest.err >&5 | |
4250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4251 | (exit $ac_status); } && | |
b4e70030 JB |
4252 | { ac_try='test -z "$ac_c_werror_flag" |
4253 | || test ! -s conftest.err' | |
bec39cab AC |
4254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4255 | (eval $ac_try) 2>&5 | |
4256 | ac_status=$? | |
4257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4258 | (exit $ac_status); }; } && | |
4259 | { ac_try='test -s conftest$ac_exeext' | |
4260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4261 | (eval $ac_try) 2>&5 | |
4262 | ac_status=$? | |
4263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4264 | (exit $ac_status); }; }; then | |
4265 | ac_cv_var__etext=yes | |
4266 | else | |
4267 | echo "$as_me: failed program was:" >&5 | |
4268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4269 | ||
b4e70030 | 4270 | ac_cv_var__etext=no |
bec39cab AC |
4271 | fi |
4272 | rm -f conftest.err conftest.$ac_objext \ | |
4273 | conftest$ac_exeext conftest.$ac_ext | |
4274 | fi | |
b4e70030 JB |
4275 | echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5 |
4276 | echo "${ECHO_T}$ac_cv_var__etext" >&6 | |
bec39cab AC |
4277 | if test $ac_cv_var__etext = yes; then |
4278 | ||
4279 | cat >>confdefs.h <<\_ACEOF | |
4280 | #define HAVE__ETEXT 1 | |
4281 | _ACEOF | |
4282 | ||
01fe12f6 JB |
4283 | fi |
4284 | echo "$as_me:$LINENO: checking for etext" >&5 | |
4285 | echo $ECHO_N "checking for etext... $ECHO_C" >&6 | |
4286 | if test "${ac_cv_var_etext+set}" = set; then | |
4287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4288 | else | |
4289 | cat >conftest.$ac_ext <<_ACEOF | |
4290 | /* confdefs.h. */ | |
4291 | _ACEOF | |
4292 | cat confdefs.h >>conftest.$ac_ext | |
4293 | cat >>conftest.$ac_ext <<_ACEOF | |
4294 | /* end confdefs.h. */ | |
4295 | #include <stdlib.h> | |
4296 | extern char etext; | |
4297 | ||
4298 | int | |
4299 | main () | |
4300 | { | |
4301 | free (&etext); | |
4302 | ; | |
4303 | return 0; | |
4304 | } | |
4305 | _ACEOF | |
4306 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4307 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4308 | (eval $ac_link) 2>conftest.er1 | |
4309 | ac_status=$? | |
4310 | grep -v '^ *+' conftest.er1 >conftest.err | |
4311 | rm -f conftest.er1 | |
4312 | cat conftest.err >&5 | |
4313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4314 | (exit $ac_status); } && | |
4315 | { ac_try='test -z "$ac_c_werror_flag" | |
4316 | || test ! -s conftest.err' | |
4317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4318 | (eval $ac_try) 2>&5 | |
4319 | ac_status=$? | |
4320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4321 | (exit $ac_status); }; } && | |
4322 | { ac_try='test -s conftest$ac_exeext' | |
4323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4324 | (eval $ac_try) 2>&5 | |
4325 | ac_status=$? | |
4326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4327 | (exit $ac_status); }; }; then | |
4328 | ac_cv_var_etext=yes | |
4329 | else | |
4330 | echo "$as_me: failed program was:" >&5 | |
4331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4332 | ||
4333 | ac_cv_var_etext=no | |
4334 | fi | |
4335 | rm -f conftest.err conftest.$ac_objext \ | |
4336 | conftest$ac_exeext conftest.$ac_ext | |
4337 | fi | |
4338 | echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5 | |
4339 | echo "${ECHO_T}$ac_cv_var_etext" >&6 | |
4340 | if test $ac_cv_var_etext = yes; then | |
4341 | ||
4342 | cat >>confdefs.h <<\_ACEOF | |
4343 | #define HAVE_ETEXT 1 | |
4344 | _ACEOF | |
4345 | ||
bec39cab AC |
4346 | fi |
4347 | if test "$enable_profiling" = yes ; then | |
4348 | if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then | |
4349 | { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5 | |
4350 | echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;} | |
4351 | { (exit 1); exit 1; }; } | |
4352 | fi | |
4353 | PROFILE_CFLAGS=-pg | |
4354 | OLD_CFLAGS="$CFLAGS" | |
4355 | CFLAGS="$CFLAGS $PROFILE_CFLAGS" | |
4356 | ||
b4e70030 JB |
4357 | echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5 |
4358 | echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6 | |
bec39cab AC |
4359 | if test "${ac_cv_cc_supports_pg+set}" = set; then |
4360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4361 | else |
bec39cab AC |
4362 | cat >conftest.$ac_ext <<_ACEOF |
4363 | /* confdefs.h. */ | |
4364 | _ACEOF | |
4365 | cat confdefs.h >>conftest.$ac_ext | |
4366 | cat >>conftest.$ac_ext <<_ACEOF | |
4367 | /* end confdefs.h. */ | |
4368 | ||
4369 | int | |
4370 | main () | |
4371 | { | |
4372 | int x; | |
4373 | ; | |
4374 | return 0; | |
4375 | } | |
4376 | _ACEOF | |
4377 | rm -f conftest.$ac_objext | |
4378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4379 | (eval $ac_compile) 2>conftest.er1 | |
4380 | ac_status=$? | |
4381 | grep -v '^ *+' conftest.er1 >conftest.err | |
4382 | rm -f conftest.er1 | |
4383 | cat conftest.err >&5 | |
4384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4385 | (exit $ac_status); } && | |
b4e70030 JB |
4386 | { ac_try='test -z "$ac_c_werror_flag" |
4387 | || test ! -s conftest.err' | |
bec39cab AC |
4388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4389 | (eval $ac_try) 2>&5 | |
4390 | ac_status=$? | |
4391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4392 | (exit $ac_status); }; } && | |
4393 | { ac_try='test -s conftest.$ac_objext' | |
4394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4395 | (eval $ac_try) 2>&5 | |
4396 | ac_status=$? | |
4397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4398 | (exit $ac_status); }; }; then | |
4399 | ac_cv_cc_supports_pg=yes | |
4400 | else | |
4401 | echo "$as_me: failed program was:" >&5 | |
4402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4403 | ||
b4e70030 | 4404 | ac_cv_cc_supports_pg=no |
bec39cab AC |
4405 | fi |
4406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4407 | fi | |
b4e70030 JB |
4408 | echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5 |
4409 | echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6 | |
bec39cab AC |
4410 | |
4411 | if test $ac_cv_cc_supports_pg = no; then | |
4412 | { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5 | |
4413 | echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;} | |
4414 | { (exit 1); exit 1; }; } | |
4415 | fi | |
4416 | ||
4417 | CFLAGS="$OLD_CFLAGS" | |
4418 | fi | |
4419 | ||
4420 | # --------------------- # | |
4421 | # Checks for programs. # | |
4422 | # --------------------- # | |
4423 | ||
4424 | for ac_prog in gawk mawk nawk awk | |
4425 | do | |
4426 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4427 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
4428 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4430 | if test "${ac_cv_prog_AWK+set}" = set; then |
4431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4432 | else | |
4433 | if test -n "$AWK"; then | |
4434 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4435 | else | |
4436 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4437 | for as_dir in $PATH | |
4438 | do | |
4439 | IFS=$as_save_IFS | |
4440 | test -z "$as_dir" && as_dir=. | |
4441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4442 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4443 | ac_cv_prog_AWK="$ac_prog" |
4444 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4445 | break 2 | |
4446 | fi | |
4447 | done | |
4448 | done | |
4449 | ||
4450 | fi | |
4451 | fi | |
4452 | AWK=$ac_cv_prog_AWK | |
4453 | if test -n "$AWK"; then | |
b4e70030 JB |
4454 | echo "$as_me:$LINENO: result: $AWK" >&5 |
4455 | echo "${ECHO_T}$AWK" >&6 | |
bec39cab | 4456 | else |
b4e70030 JB |
4457 | echo "$as_me:$LINENO: result: no" >&5 |
4458 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4459 | fi |
4460 | ||
4461 | test -n "$AWK" && break | |
4462 | done | |
4463 | ||
4464 | # Find a good install program. We prefer a C program (faster), | |
4465 | # so one script is as good as another. But avoid the broken or | |
4466 | # incompatible versions: | |
4467 | # SysV /etc/install, /usr/sbin/install | |
4468 | # SunOS /usr/etc/install | |
4469 | # IRIX /sbin/install | |
4470 | # AIX /bin/install | |
4471 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4472 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4473 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4474 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4475 | # OS/2's system install, which has a completely different semantic | |
4476 | # ./install, which can be erroneously created by make from ./install.sh. | |
b4e70030 JB |
4477 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
4478 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
bec39cab AC |
4479 | if test -z "$INSTALL"; then |
4480 | if test "${ac_cv_path_install+set}" = set; then | |
4481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4482 | else | |
4483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4484 | for as_dir in $PATH | |
4485 | do | |
4486 | IFS=$as_save_IFS | |
4487 | test -z "$as_dir" && as_dir=. | |
4488 | # Account for people who put trailing slashes in PATH elements. | |
4489 | case $as_dir/ in | |
4490 | ./ | .// | /cC/* | \ | |
4491 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4492 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4493 | /usr/ucb/* ) ;; | |
c906108c | 4494 | *) |
bec39cab AC |
4495 | # OSF1 and SCO ODT 3.0 have their own names for install. |
4496 | # Don't use installbsd from OSF since it installs stuff as root | |
4497 | # by default. | |
4498 | for ac_prog in ginstall scoinst install; do | |
4499 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4500 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
bec39cab AC |
4501 | if test $ac_prog = install && |
4502 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4503 | # AIX install. It has an incompatible calling convention. | |
4504 | : | |
4505 | elif test $ac_prog = install && | |
4506 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4507 | # program-specific install script used by HP pwplus--don't use. | |
4508 | : | |
4509 | else | |
4510 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4511 | break 3 | |
4512 | fi | |
4513 | fi | |
4514 | done | |
4515 | done | |
4516 | ;; | |
c906108c | 4517 | esac |
bec39cab AC |
4518 | done |
4519 | ||
4520 | ||
4521 | fi | |
4522 | if test "${ac_cv_path_install+set}" = set; then | |
4523 | INSTALL=$ac_cv_path_install | |
4524 | else | |
b4e70030 JB |
4525 | # As a last resort, use the slow shell script. We don't cache a |
4526 | # path for INSTALL within a source directory, because that will | |
bec39cab | 4527 | # break other packages using the cache if that directory is |
b4e70030 | 4528 | # removed, or if the path is relative. |
bec39cab AC |
4529 | INSTALL=$ac_install_sh |
4530 | fi | |
4531 | fi | |
b4e70030 JB |
4532 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
4533 | echo "${ECHO_T}$INSTALL" >&6 | |
bec39cab AC |
4534 | |
4535 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4536 | # It thinks the first close brace ends the variable substitution. | |
4537 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4538 | ||
4539 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4540 | ||
4541 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4542 | ||
b4e70030 JB |
4543 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4544 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
bec39cab AC |
4545 | LN_S=$as_ln_s |
4546 | if test "$LN_S" = "ln -s"; then | |
b4e70030 JB |
4547 | echo "$as_me:$LINENO: result: yes" >&5 |
4548 | echo "${ECHO_T}yes" >&6 | |
bec39cab | 4549 | else |
b4e70030 JB |
4550 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4551 | echo "${ECHO_T}no, using $LN_S" >&6 | |
bec39cab AC |
4552 | fi |
4553 | ||
4554 | if test -n "$ac_tool_prefix"; then | |
4555 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4556 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
b4e70030 JB |
4557 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4558 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4559 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
4560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4561 | else | |
4562 | if test -n "$RANLIB"; then | |
4563 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4564 | else | |
4565 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4566 | for as_dir in $PATH | |
4567 | do | |
4568 | IFS=$as_save_IFS | |
4569 | test -z "$as_dir" && as_dir=. | |
4570 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4571 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4572 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
4573 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4574 | break 2 | |
4575 | fi | |
4576 | done | |
4577 | done | |
4578 | ||
4579 | fi | |
4580 | fi | |
4581 | RANLIB=$ac_cv_prog_RANLIB | |
4582 | if test -n "$RANLIB"; then | |
b4e70030 JB |
4583 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
4584 | echo "${ECHO_T}$RANLIB" >&6 | |
bec39cab | 4585 | else |
b4e70030 JB |
4586 | echo "$as_me:$LINENO: result: no" >&5 |
4587 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4588 | fi |
4589 | ||
4590 | fi | |
4591 | if test -z "$ac_cv_prog_RANLIB"; then | |
4592 | ac_ct_RANLIB=$RANLIB | |
4593 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4594 | set dummy ranlib; ac_word=$2 | |
b4e70030 JB |
4595 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4596 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4597 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
4598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4599 | else | |
4600 | if test -n "$ac_ct_RANLIB"; then | |
4601 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4602 | else | |
4603 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4604 | for as_dir in $PATH | |
4605 | do | |
4606 | IFS=$as_save_IFS | |
4607 | test -z "$as_dir" && as_dir=. | |
4608 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4609 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4610 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
4611 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4612 | break 2 | |
4613 | fi | |
4614 | done | |
4615 | done | |
4616 | ||
b4e70030 | 4617 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
bec39cab AC |
4618 | fi |
4619 | fi | |
4620 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4621 | if test -n "$ac_ct_RANLIB"; then | |
b4e70030 JB |
4622 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
4623 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
bec39cab | 4624 | else |
b4e70030 JB |
4625 | echo "$as_me:$LINENO: result: no" >&5 |
4626 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4627 | fi |
4628 | ||
b4e70030 | 4629 | RANLIB=$ac_ct_RANLIB |
bec39cab AC |
4630 | else |
4631 | RANLIB="$ac_cv_prog_RANLIB" | |
4632 | fi | |
4633 | ||
4634 | for ac_prog in 'bison -y' byacc | |
4635 | do | |
4636 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4637 | set dummy $ac_prog; ac_word=$2 | |
b4e70030 JB |
4638 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4639 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4640 | if test "${ac_cv_prog_YACC+set}" = set; then |
4641 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4642 | else | |
4643 | if test -n "$YACC"; then | |
4644 | ac_cv_prog_YACC="$YACC" # Let the user override the test. | |
4645 | else | |
4646 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4647 | for as_dir in $PATH | |
4648 | do | |
4649 | IFS=$as_save_IFS | |
4650 | test -z "$as_dir" && as_dir=. | |
4651 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4652 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4653 | ac_cv_prog_YACC="$ac_prog" |
4654 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4655 | break 2 | |
4656 | fi | |
4657 | done | |
4658 | done | |
4659 | ||
4660 | fi | |
4661 | fi | |
4662 | YACC=$ac_cv_prog_YACC | |
4663 | if test -n "$YACC"; then | |
b4e70030 JB |
4664 | echo "$as_me:$LINENO: result: $YACC" >&5 |
4665 | echo "${ECHO_T}$YACC" >&6 | |
bec39cab | 4666 | else |
b4e70030 JB |
4667 | echo "$as_me:$LINENO: result: no" >&5 |
4668 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4669 | fi |
4670 | ||
4671 | test -n "$YACC" && break | |
4672 | done | |
4673 | test -n "$YACC" || YACC="yacc" | |
4674 | ||
4675 | ||
4676 | if test -n "$ac_tool_prefix"; then | |
4677 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4678 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
b4e70030 JB |
4679 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4680 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4681 | if test "${ac_cv_prog_AR+set}" = set; then |
4682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4683 | else | |
4684 | if test -n "$AR"; then | |
4685 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4686 | else | |
4687 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4688 | for as_dir in $PATH | |
4689 | do | |
4690 | IFS=$as_save_IFS | |
4691 | test -z "$as_dir" && as_dir=. | |
4692 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4693 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4694 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
4695 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4696 | break 2 | |
4697 | fi | |
4698 | done | |
4699 | done | |
4700 | ||
4701 | fi | |
4702 | fi | |
4703 | AR=$ac_cv_prog_AR | |
4704 | if test -n "$AR"; then | |
b4e70030 JB |
4705 | echo "$as_me:$LINENO: result: $AR" >&5 |
4706 | echo "${ECHO_T}$AR" >&6 | |
bec39cab | 4707 | else |
b4e70030 JB |
4708 | echo "$as_me:$LINENO: result: no" >&5 |
4709 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4710 | fi |
4711 | ||
4712 | fi | |
4713 | if test -z "$ac_cv_prog_AR"; then | |
4714 | ac_ct_AR=$AR | |
4715 | # Extract the first word of "ar", so it can be a program name with args. | |
4716 | set dummy ar; ac_word=$2 | |
b4e70030 JB |
4717 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4719 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
4720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4721 | else | |
4722 | if test -n "$ac_ct_AR"; then | |
4723 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4724 | else | |
4725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4726 | for as_dir in $PATH | |
4727 | do | |
4728 | IFS=$as_save_IFS | |
4729 | test -z "$as_dir" && as_dir=. | |
4730 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4731 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4732 | ac_cv_prog_ac_ct_AR="ar" |
4733 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4734 | break 2 | |
4735 | fi | |
4736 | done | |
4737 | done | |
4738 | ||
4739 | fi | |
4740 | fi | |
4741 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4742 | if test -n "$ac_ct_AR"; then | |
b4e70030 JB |
4743 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
4744 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
bec39cab | 4745 | else |
b4e70030 JB |
4746 | echo "$as_me:$LINENO: result: no" >&5 |
4747 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4748 | fi |
4749 | ||
b4e70030 | 4750 | AR=$ac_ct_AR |
bec39cab AC |
4751 | else |
4752 | AR="$ac_cv_prog_AR" | |
4753 | fi | |
4754 | ||
4755 | if test -n "$ac_tool_prefix"; then | |
4756 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
4757 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
b4e70030 JB |
4758 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4759 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4760 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then |
4761 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4762 | else | |
4763 | if test -n "$DLLTOOL"; then | |
4764 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
4765 | else | |
4766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4767 | for as_dir in $PATH | |
4768 | do | |
4769 | IFS=$as_save_IFS | |
4770 | test -z "$as_dir" && as_dir=. | |
4771 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4772 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4773 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" |
4774 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4775 | break 2 | |
4776 | fi | |
4777 | done | |
4778 | done | |
4779 | ||
4780 | fi | |
4781 | fi | |
4782 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
4783 | if test -n "$DLLTOOL"; then | |
b4e70030 JB |
4784 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 |
4785 | echo "${ECHO_T}$DLLTOOL" >&6 | |
bec39cab | 4786 | else |
b4e70030 JB |
4787 | echo "$as_me:$LINENO: result: no" >&5 |
4788 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4789 | fi |
4790 | ||
4791 | fi | |
4792 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
4793 | ac_ct_DLLTOOL=$DLLTOOL | |
4794 | # Extract the first word of "dlltool", so it can be a program name with args. | |
4795 | set dummy dlltool; ac_word=$2 | |
b4e70030 JB |
4796 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4797 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4798 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then |
4799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4800 | else | |
4801 | if test -n "$ac_ct_DLLTOOL"; then | |
4802 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
4803 | else | |
4804 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4805 | for as_dir in $PATH | |
4806 | do | |
4807 | IFS=$as_save_IFS | |
4808 | test -z "$as_dir" && as_dir=. | |
4809 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4810 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4811 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" |
4812 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4813 | break 2 | |
4814 | fi | |
4815 | done | |
4816 | done | |
4817 | ||
4818 | fi | |
4819 | fi | |
4820 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
4821 | if test -n "$ac_ct_DLLTOOL"; then | |
b4e70030 JB |
4822 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 |
4823 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | |
bec39cab | 4824 | else |
b4e70030 JB |
4825 | echo "$as_me:$LINENO: result: no" >&5 |
4826 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4827 | fi |
4828 | ||
b4e70030 | 4829 | DLLTOOL=$ac_ct_DLLTOOL |
bec39cab AC |
4830 | else |
4831 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
4832 | fi | |
4833 | ||
4834 | if test -n "$ac_tool_prefix"; then | |
4835 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
4836 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
b4e70030 JB |
4837 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4839 | if test "${ac_cv_prog_WINDRES+set}" = set; then |
4840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4841 | else | |
4842 | if test -n "$WINDRES"; then | |
4843 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
4844 | else | |
4845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4846 | for as_dir in $PATH | |
4847 | do | |
4848 | IFS=$as_save_IFS | |
4849 | test -z "$as_dir" && as_dir=. | |
4850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4851 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4852 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" |
4853 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4854 | break 2 | |
4855 | fi | |
4856 | done | |
4857 | done | |
4858 | ||
4859 | fi | |
4860 | fi | |
4861 | WINDRES=$ac_cv_prog_WINDRES | |
4862 | if test -n "$WINDRES"; then | |
b4e70030 JB |
4863 | echo "$as_me:$LINENO: result: $WINDRES" >&5 |
4864 | echo "${ECHO_T}$WINDRES" >&6 | |
bec39cab | 4865 | else |
b4e70030 JB |
4866 | echo "$as_me:$LINENO: result: no" >&5 |
4867 | echo "${ECHO_T}no" >&6 | |
bec39cab AC |
4868 | fi |
4869 | ||
4870 | fi | |
4871 | if test -z "$ac_cv_prog_WINDRES"; then | |
4872 | ac_ct_WINDRES=$WINDRES | |
4873 | # Extract the first word of "windres", so it can be a program name with args. | |
4874 | set dummy windres; ac_word=$2 | |
b4e70030 JB |
4875 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4876 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4877 | if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then |
4878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4879 | else | |
4880 | if test -n "$ac_ct_WINDRES"; then | |
4881 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
4882 | else | |
4883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4884 | for as_dir in $PATH | |
4885 | do | |
4886 | IFS=$as_save_IFS | |
4887 | test -z "$as_dir" && as_dir=. | |
4888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4889 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4890 | ac_cv_prog_ac_ct_WINDRES="windres" |
4891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4892 | break 2 | |
4893 | fi | |
4894 | done | |
4895 | done | |
4896 | ||
4897 | fi | |
4898 | fi | |
4899 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
4900 | if test -n "$ac_ct_WINDRES"; then | |
b4e70030 JB |
4901 | echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5 |
4902 | echo "${ECHO_T}$ac_ct_WINDRES" >&6 | |
bec39cab | 4903 | else |
b4e70030 JB |
4904 | echo "$as_me:$LINENO: result: no" >&5 |
4905 | echo "${ECHO_T}no" >&6 | |
c906108c | 4906 | fi |
bec39cab | 4907 | |
b4e70030 | 4908 | WINDRES=$ac_ct_WINDRES |
c906108c | 4909 | else |
bec39cab | 4910 | WINDRES="$ac_cv_prog_WINDRES" |
c906108c SS |
4911 | fi |
4912 | ||
bec39cab AC |
4913 | |
4914 | # Needed for GNU/Hurd. | |
4915 | if test -n "$ac_tool_prefix"; then | |
4916 | # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args. | |
4917 | set dummy ${ac_tool_prefix}mig; ac_word=$2 | |
b4e70030 JB |
4918 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4919 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4920 | if test "${ac_cv_prog_MIG+set}" = set; then |
4921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4922 | else |
bec39cab AC |
4923 | if test -n "$MIG"; then |
4924 | ac_cv_prog_MIG="$MIG" # Let the user override the test. | |
4925 | else | |
4926 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4927 | for as_dir in $PATH | |
4928 | do | |
4929 | IFS=$as_save_IFS | |
4930 | test -z "$as_dir" && as_dir=. | |
4931 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4932 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4933 | ac_cv_prog_MIG="${ac_tool_prefix}mig" |
4934 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4935 | break 2 | |
4936 | fi | |
4937 | done | |
4938 | done | |
4939 | ||
c906108c | 4940 | fi |
bec39cab AC |
4941 | fi |
4942 | MIG=$ac_cv_prog_MIG | |
4943 | if test -n "$MIG"; then | |
b4e70030 JB |
4944 | echo "$as_me:$LINENO: result: $MIG" >&5 |
4945 | echo "${ECHO_T}$MIG" >&6 | |
c906108c | 4946 | else |
b4e70030 JB |
4947 | echo "$as_me:$LINENO: result: no" >&5 |
4948 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
4949 | fi |
4950 | ||
bec39cab AC |
4951 | fi |
4952 | if test -z "$ac_cv_prog_MIG"; then | |
4953 | ac_ct_MIG=$MIG | |
4954 | # Extract the first word of "mig", so it can be a program name with args. | |
4955 | set dummy mig; ac_word=$2 | |
b4e70030 JB |
4956 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
4957 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
bec39cab AC |
4958 | if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then |
4959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4960 | else | |
4961 | if test -n "$ac_ct_MIG"; then | |
4962 | ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test. | |
4963 | else | |
4964 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4965 | for as_dir in $PATH | |
4966 | do | |
4967 | IFS=$as_save_IFS | |
4968 | test -z "$as_dir" && as_dir=. | |
4969 | for ac_exec_ext in '' $ac_executable_extensions; do | |
b4e70030 | 4970 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
bec39cab AC |
4971 | ac_cv_prog_ac_ct_MIG="mig" |
4972 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4973 | break 2 | |
4974 | fi | |
4975 | done | |
4976 | done | |
c906108c | 4977 | |
bec39cab AC |
4978 | fi |
4979 | fi | |
4980 | ac_ct_MIG=$ac_cv_prog_ac_ct_MIG | |
4981 | if test -n "$ac_ct_MIG"; then | |
b4e70030 JB |
4982 | echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5 |
4983 | echo "${ECHO_T}$ac_ct_MIG" >&6 | |
bec39cab | 4984 | else |
b4e70030 JB |
4985 | echo "$as_me:$LINENO: result: no" >&5 |
4986 | echo "${ECHO_T}no" >&6 | |
bec39cab | 4987 | fi |
c906108c | 4988 | |
b4e70030 | 4989 | MIG=$ac_ct_MIG |
bec39cab AC |
4990 | else |
4991 | MIG="$ac_cv_prog_MIG" | |
4992 | fi | |
c906108c | 4993 | |
c906108c | 4994 | |
bec39cab AC |
4995 | # ---------------------- # |
4996 | # Checks for libraries. # | |
4997 | # ---------------------- # | |
c906108c | 4998 | |
bec39cab | 4999 | # We might need to link with -lm; most simulators need it. |
c906108c | 5000 | |
b4e70030 JB |
5001 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
5002 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 | |
bec39cab AC |
5003 | if test "${ac_cv_lib_m_main+set}" = set; then |
5004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5005 | else | |
5006 | ac_check_lib_save_LIBS=$LIBS | |
5007 | LIBS="-lm $LIBS" | |
5008 | cat >conftest.$ac_ext <<_ACEOF | |
5009 | /* confdefs.h. */ | |
5010 | _ACEOF | |
5011 | cat confdefs.h >>conftest.$ac_ext | |
5012 | cat >>conftest.$ac_ext <<_ACEOF | |
5013 | /* end confdefs.h. */ | |
c906108c | 5014 | |
c906108c | 5015 | |
bec39cab AC |
5016 | int |
5017 | main () | |
5018 | { | |
b4e70030 | 5019 | main (); |
bec39cab AC |
5020 | ; |
5021 | return 0; | |
5022 | } | |
5023 | _ACEOF | |
5024 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5025 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5026 | (eval $ac_link) 2>conftest.er1 | |
5027 | ac_status=$? | |
5028 | grep -v '^ *+' conftest.er1 >conftest.err | |
5029 | rm -f conftest.er1 | |
5030 | cat conftest.err >&5 | |
5031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5032 | (exit $ac_status); } && | |
b4e70030 JB |
5033 | { ac_try='test -z "$ac_c_werror_flag" |
5034 | || test ! -s conftest.err' | |
bec39cab AC |
5035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5036 | (eval $ac_try) 2>&5 | |
5037 | ac_status=$? | |
5038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5039 | (exit $ac_status); }; } && | |
5040 | { ac_try='test -s conftest$ac_exeext' | |
5041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5042 | (eval $ac_try) 2>&5 | |
5043 | ac_status=$? | |
5044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5045 | (exit $ac_status); }; }; then | |
5046 | ac_cv_lib_m_main=yes | |
5047 | else | |
5048 | echo "$as_me: failed program was:" >&5 | |
5049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5050 | ||
b4e70030 | 5051 | ac_cv_lib_m_main=no |
bec39cab AC |
5052 | fi |
5053 | rm -f conftest.err conftest.$ac_objext \ | |
5054 | conftest$ac_exeext conftest.$ac_ext | |
5055 | LIBS=$ac_check_lib_save_LIBS | |
5056 | fi | |
b4e70030 JB |
5057 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
5058 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 | |
bec39cab AC |
5059 | if test $ac_cv_lib_m_main = yes; then |
5060 | cat >>confdefs.h <<_ACEOF | |
5061 | #define HAVE_LIBM 1 | |
5062 | _ACEOF | |
5063 | ||
5064 | LIBS="-lm $LIBS" | |
c906108c | 5065 | |
c906108c | 5066 | fi |
bec39cab AC |
5067 | |
5068 | ||
5069 | # We need to link with -lw to get `wctype' on Solaris before Solaris | |
5070 | # 2.6. Solaris 2.6 and beyond have this function in libc, and have a | |
5071 | # libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1 | |
5072 | # is known to have this problem). Therefore we avoid libw if we can. | |
b4e70030 JB |
5073 | echo "$as_me:$LINENO: checking for wctype" >&5 |
5074 | echo $ECHO_N "checking for wctype... $ECHO_C" >&6 | |
bec39cab AC |
5075 | if test "${ac_cv_func_wctype+set}" = set; then |
5076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5077 | else | |
5078 | cat >conftest.$ac_ext <<_ACEOF | |
5079 | /* confdefs.h. */ | |
5080 | _ACEOF | |
5081 | cat confdefs.h >>conftest.$ac_ext | |
5082 | cat >>conftest.$ac_ext <<_ACEOF | |
5083 | /* end confdefs.h. */ | |
5084 | /* Define wctype to an innocuous variant, in case <limits.h> declares wctype. | |
5085 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5086 | #define wctype innocuous_wctype | |
5087 | ||
5088 | /* System header to define __stub macros and hopefully few prototypes, | |
5089 | which can conflict with char wctype (); below. | |
5090 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5091 | <limits.h> exists even on freestanding compilers. */ | |
5092 | ||
5093 | #ifdef __STDC__ | |
5094 | # include <limits.h> | |
5095 | #else | |
5096 | # include <assert.h> | |
5097 | #endif | |
5098 | ||
5099 | #undef wctype | |
5100 | ||
b4e70030 | 5101 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5102 | #ifdef __cplusplus |
5103 | extern "C" | |
b4e70030 | 5104 | { |
bec39cab | 5105 | #endif |
b4e70030 JB |
5106 | /* We use char because int might match the return type of a gcc2 |
5107 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5108 | char wctype (); |
5109 | /* The GNU C library defines this for functions which it implements | |
5110 | to always fail with ENOSYS. Some functions are actually named | |
5111 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 5112 | #if defined (__stub_wctype) || defined (__stub___wctype) |
bec39cab | 5113 | choke me |
b4e70030 JB |
5114 | #else |
5115 | char (*f) () = wctype; | |
5116 | #endif | |
5117 | #ifdef __cplusplus | |
5118 | } | |
bec39cab AC |
5119 | #endif |
5120 | ||
5121 | int | |
5122 | main () | |
5123 | { | |
b4e70030 | 5124 | return f != 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_func_wctype=yes | |
5152 | else | |
5153 | echo "$as_me: failed program was:" >&5 | |
5154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5155 | ||
b4e70030 | 5156 | ac_cv_func_wctype=no |
bec39cab AC |
5157 | fi |
5158 | rm -f conftest.err conftest.$ac_objext \ | |
5159 | conftest$ac_exeext conftest.$ac_ext | |
5160 | fi | |
b4e70030 JB |
5161 | echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5 |
5162 | echo "${ECHO_T}$ac_cv_func_wctype" >&6 | |
bec39cab AC |
5163 | if test $ac_cv_func_wctype = yes; then |
5164 | : | |
c906108c | 5165 | else |
c906108c | 5166 | |
b4e70030 JB |
5167 | echo "$as_me:$LINENO: checking for wctype in -lw" >&5 |
5168 | echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6 | |
bec39cab AC |
5169 | if test "${ac_cv_lib_w_wctype+set}" = set; then |
5170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5171 | else | |
5172 | ac_check_lib_save_LIBS=$LIBS | |
5173 | LIBS="-lw $LIBS" | |
5174 | cat >conftest.$ac_ext <<_ACEOF | |
5175 | /* confdefs.h. */ | |
5176 | _ACEOF | |
5177 | cat confdefs.h >>conftest.$ac_ext | |
5178 | cat >>conftest.$ac_ext <<_ACEOF | |
5179 | /* end confdefs.h. */ | |
c906108c | 5180 | |
b4e70030 | 5181 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5182 | #ifdef __cplusplus |
5183 | extern "C" | |
5184 | #endif | |
b4e70030 JB |
5185 | /* We use char because int might match the return type of a gcc2 |
5186 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5187 | char wctype (); |
5188 | int | |
5189 | main () | |
5190 | { | |
b4e70030 | 5191 | wctype (); |
bec39cab AC |
5192 | ; |
5193 | return 0; | |
5194 | } | |
5195 | _ACEOF | |
5196 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5198 | (eval $ac_link) 2>conftest.er1 | |
5199 | ac_status=$? | |
5200 | grep -v '^ *+' conftest.er1 >conftest.err | |
5201 | rm -f conftest.er1 | |
5202 | cat conftest.err >&5 | |
5203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5204 | (exit $ac_status); } && | |
b4e70030 JB |
5205 | { ac_try='test -z "$ac_c_werror_flag" |
5206 | || test ! -s conftest.err' | |
bec39cab AC |
5207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5208 | (eval $ac_try) 2>&5 | |
5209 | ac_status=$? | |
5210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5211 | (exit $ac_status); }; } && | |
5212 | { ac_try='test -s conftest$ac_exeext' | |
5213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5214 | (eval $ac_try) 2>&5 | |
5215 | ac_status=$? | |
5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5217 | (exit $ac_status); }; }; then | |
5218 | ac_cv_lib_w_wctype=yes | |
5219 | else | |
5220 | echo "$as_me: failed program was:" >&5 | |
5221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5222 | ||
b4e70030 | 5223 | ac_cv_lib_w_wctype=no |
bec39cab AC |
5224 | fi |
5225 | rm -f conftest.err conftest.$ac_objext \ | |
5226 | conftest$ac_exeext conftest.$ac_ext | |
5227 | LIBS=$ac_check_lib_save_LIBS | |
5228 | fi | |
b4e70030 JB |
5229 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5 |
5230 | echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6 | |
bec39cab AC |
5231 | if test $ac_cv_lib_w_wctype = yes; then |
5232 | cat >>confdefs.h <<_ACEOF | |
5233 | #define HAVE_LIBW 1 | |
5234 | _ACEOF | |
c906108c | 5235 | |
bec39cab | 5236 | LIBS="-lw $LIBS" |
c906108c | 5237 | |
bec39cab | 5238 | fi |
c906108c | 5239 | |
bec39cab | 5240 | fi |
c906108c | 5241 | |
ddc9cd0f | 5242 | |
bec39cab | 5243 | # Some systems (e.g. Solaris) have `gethostbyname' in libnsl. |
b4e70030 JB |
5244 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 |
5245 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 | |
bec39cab AC |
5246 | if test "${ac_cv_search_gethostbyname+set}" = set; then |
5247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5248 | else | |
5249 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 5250 | ac_cv_search_gethostbyname=no |
bec39cab AC |
5251 | cat >conftest.$ac_ext <<_ACEOF |
5252 | /* confdefs.h. */ | |
5253 | _ACEOF | |
5254 | cat confdefs.h >>conftest.$ac_ext | |
5255 | cat >>conftest.$ac_ext <<_ACEOF | |
5256 | /* end confdefs.h. */ | |
ddc9cd0f | 5257 | |
b4e70030 | 5258 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5259 | #ifdef __cplusplus |
5260 | extern "C" | |
5261 | #endif | |
b4e70030 JB |
5262 | /* We use char because int might match the return type of a gcc2 |
5263 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5264 | char gethostbyname (); |
5265 | int | |
5266 | main () | |
5267 | { | |
b4e70030 | 5268 | gethostbyname (); |
bec39cab AC |
5269 | ; |
5270 | return 0; | |
5271 | } | |
5272 | _ACEOF | |
b4e70030 | 5273 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5274 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5275 | (eval $ac_link) 2>conftest.er1 | |
5276 | ac_status=$? | |
5277 | grep -v '^ *+' conftest.er1 >conftest.err | |
5278 | rm -f conftest.er1 | |
5279 | cat conftest.err >&5 | |
5280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5281 | (exit $ac_status); } && | |
b4e70030 JB |
5282 | { ac_try='test -z "$ac_c_werror_flag" |
5283 | || test ! -s conftest.err' | |
bec39cab AC |
5284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5285 | (eval $ac_try) 2>&5 | |
5286 | ac_status=$? | |
5287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5288 | (exit $ac_status); }; } && | |
5289 | { ac_try='test -s conftest$ac_exeext' | |
5290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5291 | (eval $ac_try) 2>&5 | |
5292 | ac_status=$? | |
5293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5294 | (exit $ac_status); }; }; then | |
b4e70030 | 5295 | ac_cv_search_gethostbyname="none required" |
bec39cab AC |
5296 | else |
5297 | echo "$as_me: failed program was:" >&5 | |
5298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ddc9cd0f | 5299 | |
bec39cab AC |
5300 | fi |
5301 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
5302 | conftest$ac_exeext conftest.$ac_ext |
5303 | if test "$ac_cv_search_gethostbyname" = no; then | |
5304 | for ac_lib in nsl; do | |
5305 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5306 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
5307 | /* confdefs.h. */ |
5308 | _ACEOF | |
5309 | cat confdefs.h >>conftest.$ac_ext | |
5310 | cat >>conftest.$ac_ext <<_ACEOF | |
5311 | /* end confdefs.h. */ | |
ddc9cd0f | 5312 | |
b4e70030 | 5313 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5314 | #ifdef __cplusplus |
5315 | extern "C" | |
5316 | #endif | |
b4e70030 JB |
5317 | /* We use char because int might match the return type of a gcc2 |
5318 | builtin and then its argument prototype would still apply. */ | |
5319 | char gethostbyname (); | |
bec39cab AC |
5320 | int |
5321 | main () | |
5322 | { | |
b4e70030 | 5323 | gethostbyname (); |
bec39cab AC |
5324 | ; |
5325 | return 0; | |
5326 | } | |
5327 | _ACEOF | |
b4e70030 | 5328 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5330 | (eval $ac_link) 2>conftest.er1 | |
5331 | ac_status=$? | |
5332 | grep -v '^ *+' conftest.er1 >conftest.err | |
5333 | rm -f conftest.er1 | |
5334 | cat conftest.err >&5 | |
5335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5336 | (exit $ac_status); } && | |
b4e70030 JB |
5337 | { ac_try='test -z "$ac_c_werror_flag" |
5338 | || test ! -s conftest.err' | |
bec39cab AC |
5339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5340 | (eval $ac_try) 2>&5 | |
5341 | ac_status=$? | |
5342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5343 | (exit $ac_status); }; } && | |
5344 | { ac_try='test -s conftest$ac_exeext' | |
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); }; }; then | |
b4e70030 JB |
5350 | ac_cv_search_gethostbyname="-l$ac_lib" |
5351 | break | |
bec39cab AC |
5352 | else |
5353 | echo "$as_me: failed program was:" >&5 | |
5354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5355 | ||
5356 | fi | |
5357 | rm -f conftest.err conftest.$ac_objext \ | |
b4e70030 JB |
5358 | conftest$ac_exeext conftest.$ac_ext |
5359 | done | |
bec39cab AC |
5360 | fi |
5361 | LIBS=$ac_func_search_save_LIBS | |
5362 | fi | |
b4e70030 JB |
5363 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 |
5364 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 | |
5365 | if test "$ac_cv_search_gethostbyname" != no; then | |
5366 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" | |
96baa820 | 5367 | |
bec39cab | 5368 | fi |
96baa820 | 5369 | |
c906108c | 5370 | |
b4e70030 JB |
5371 | # Some systems (e.g. Solaris) have `socketpair' in libsocket. |
5372 | echo "$as_me:$LINENO: checking for library containing socketpair" >&5 | |
5373 | echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6 | |
5374 | if test "${ac_cv_search_socketpair+set}" = set; then | |
5375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5376 | else | |
5377 | ac_func_search_save_LIBS=$LIBS | |
5378 | ac_cv_search_socketpair=no | |
5379 | cat >conftest.$ac_ext <<_ACEOF | |
5380 | /* confdefs.h. */ | |
5381 | _ACEOF | |
5382 | cat confdefs.h >>conftest.$ac_ext | |
5383 | cat >>conftest.$ac_ext <<_ACEOF | |
5384 | /* end confdefs.h. */ | |
5385 | ||
5386 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5387 | #ifdef __cplusplus | |
5388 | extern "C" | |
5389 | #endif | |
5390 | /* We use char because int might match the return type of a gcc2 | |
5391 | builtin and then its argument prototype would still apply. */ | |
5392 | char socketpair (); | |
5393 | int | |
5394 | main () | |
5395 | { | |
5396 | socketpair (); | |
5397 | ; | |
5398 | return 0; | |
5399 | } | |
5400 | _ACEOF | |
5401 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5403 | (eval $ac_link) 2>conftest.er1 | |
5404 | ac_status=$? | |
5405 | grep -v '^ *+' conftest.er1 >conftest.err | |
5406 | rm -f conftest.er1 | |
5407 | cat conftest.err >&5 | |
5408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5409 | (exit $ac_status); } && | |
5410 | { ac_try='test -z "$ac_c_werror_flag" | |
5411 | || test ! -s conftest.err' | |
5412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5413 | (eval $ac_try) 2>&5 | |
5414 | ac_status=$? | |
5415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5416 | (exit $ac_status); }; } && | |
5417 | { ac_try='test -s conftest$ac_exeext' | |
5418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5419 | (eval $ac_try) 2>&5 | |
5420 | ac_status=$? | |
5421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5422 | (exit $ac_status); }; }; then | |
5423 | ac_cv_search_socketpair="none required" | |
5424 | else | |
5425 | echo "$as_me: failed program was:" >&5 | |
5426 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5427 | ||
5428 | fi | |
5429 | rm -f conftest.err conftest.$ac_objext \ | |
5430 | conftest$ac_exeext conftest.$ac_ext | |
5431 | if test "$ac_cv_search_socketpair" = no; then | |
5432 | for ac_lib in socket; do | |
5433 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5434 | cat >conftest.$ac_ext <<_ACEOF | |
5435 | /* confdefs.h. */ | |
5436 | _ACEOF | |
5437 | cat confdefs.h >>conftest.$ac_ext | |
5438 | cat >>conftest.$ac_ext <<_ACEOF | |
5439 | /* end confdefs.h. */ | |
5440 | ||
5441 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5442 | #ifdef __cplusplus | |
5443 | extern "C" | |
5444 | #endif | |
5445 | /* We use char because int might match the return type of a gcc2 | |
5446 | builtin and then its argument prototype would still apply. */ | |
5447 | char socketpair (); | |
5448 | int | |
5449 | main () | |
5450 | { | |
5451 | socketpair (); | |
5452 | ; | |
5453 | return 0; | |
5454 | } | |
5455 | _ACEOF | |
5456 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5458 | (eval $ac_link) 2>conftest.er1 | |
5459 | ac_status=$? | |
5460 | grep -v '^ *+' conftest.er1 >conftest.err | |
5461 | rm -f conftest.er1 | |
5462 | cat conftest.err >&5 | |
5463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5464 | (exit $ac_status); } && | |
5465 | { ac_try='test -z "$ac_c_werror_flag" | |
5466 | || test ! -s conftest.err' | |
5467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5468 | (eval $ac_try) 2>&5 | |
5469 | ac_status=$? | |
5470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5471 | (exit $ac_status); }; } && | |
5472 | { ac_try='test -s conftest$ac_exeext' | |
5473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5474 | (eval $ac_try) 2>&5 | |
5475 | ac_status=$? | |
5476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5477 | (exit $ac_status); }; }; then | |
5478 | ac_cv_search_socketpair="-l$ac_lib" | |
5479 | break | |
5480 | else | |
5481 | echo "$as_me: failed program was:" >&5 | |
5482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5483 | ||
5484 | fi | |
5485 | rm -f conftest.err conftest.$ac_objext \ | |
5486 | conftest$ac_exeext conftest.$ac_ext | |
5487 | done | |
5488 | fi | |
5489 | LIBS=$ac_func_search_save_LIBS | |
5490 | fi | |
5491 | echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5 | |
5492 | echo "${ECHO_T}$ac_cv_search_socketpair" >&6 | |
5493 | if test "$ac_cv_search_socketpair" != no; then | |
5494 | test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS" | |
5495 | ||
5496 | fi | |
5497 | ||
5498 | ||
5499 | # For the TUI, we need enhanced curses functionality. | |
bec39cab AC |
5500 | # |
5501 | # FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied | |
5502 | # curses library because the latter might not provide all the | |
5503 | # functionality we need. However, this leads to problems on systems | |
5504 | # where the linker searches /usr/local/lib, but the compiler doesn't | |
5505 | # search /usr/local/include, if ncurses is installed in /usr/local. A | |
5506 | # default installation of ncurses on alpha*-dec-osf* will lead to such | |
5507 | # a situation. | |
b4e70030 JB |
5508 | echo "$as_me:$LINENO: checking for library containing waddstr" >&5 |
5509 | echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6 | |
bec39cab AC |
5510 | if test "${ac_cv_search_waddstr+set}" = set; then |
5511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5512 | else | |
5513 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 5514 | ac_cv_search_waddstr=no |
bec39cab AC |
5515 | cat >conftest.$ac_ext <<_ACEOF |
5516 | /* confdefs.h. */ | |
5517 | _ACEOF | |
5518 | cat confdefs.h >>conftest.$ac_ext | |
5519 | cat >>conftest.$ac_ext <<_ACEOF | |
5520 | /* end confdefs.h. */ | |
c906108c | 5521 | |
b4e70030 | 5522 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5523 | #ifdef __cplusplus |
5524 | extern "C" | |
5525 | #endif | |
b4e70030 JB |
5526 | /* We use char because int might match the return type of a gcc2 |
5527 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5528 | char waddstr (); |
5529 | int | |
5530 | main () | |
5531 | { | |
b4e70030 | 5532 | waddstr (); |
bec39cab AC |
5533 | ; |
5534 | return 0; | |
5535 | } | |
5536 | _ACEOF | |
b4e70030 | 5537 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5538 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5539 | (eval $ac_link) 2>conftest.er1 | |
5540 | ac_status=$? | |
5541 | grep -v '^ *+' conftest.er1 >conftest.err | |
5542 | rm -f conftest.er1 | |
5543 | cat conftest.err >&5 | |
5544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5545 | (exit $ac_status); } && | |
b4e70030 JB |
5546 | { ac_try='test -z "$ac_c_werror_flag" |
5547 | || test ! -s conftest.err' | |
bec39cab AC |
5548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5549 | (eval $ac_try) 2>&5 | |
5550 | ac_status=$? | |
5551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5552 | (exit $ac_status); }; } && | |
5553 | { ac_try='test -s conftest$ac_exeext' | |
5554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5555 | (eval $ac_try) 2>&5 | |
5556 | ac_status=$? | |
5557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5558 | (exit $ac_status); }; }; then | |
b4e70030 | 5559 | ac_cv_search_waddstr="none required" |
bec39cab AC |
5560 | else |
5561 | echo "$as_me: failed program was:" >&5 | |
5562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1ba607ad AC |
5563 | |
5564 | fi | |
bec39cab | 5565 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
5566 | conftest$ac_exeext conftest.$ac_ext |
5567 | if test "$ac_cv_search_waddstr" = no; then | |
5568 | for ac_lib in ncurses cursesX curses; do | |
5569 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5570 | cat >conftest.$ac_ext <<_ACEOF | |
5571 | /* confdefs.h. */ | |
5572 | _ACEOF | |
5573 | cat confdefs.h >>conftest.$ac_ext | |
5574 | cat >>conftest.$ac_ext <<_ACEOF | |
5575 | /* end confdefs.h. */ | |
5576 | ||
5577 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5578 | #ifdef __cplusplus | |
5579 | extern "C" | |
5580 | #endif | |
5581 | /* We use char because int might match the return type of a gcc2 | |
5582 | builtin and then its argument prototype would still apply. */ | |
5583 | char waddstr (); | |
5584 | int | |
5585 | main () | |
5586 | { | |
5587 | waddstr (); | |
5588 | ; | |
5589 | return 0; | |
5590 | } | |
5591 | _ACEOF | |
5592 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5594 | (eval $ac_link) 2>conftest.er1 | |
5595 | ac_status=$? | |
5596 | grep -v '^ *+' conftest.er1 >conftest.err | |
5597 | rm -f conftest.er1 | |
5598 | cat conftest.err >&5 | |
5599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5600 | (exit $ac_status); } && | |
5601 | { ac_try='test -z "$ac_c_werror_flag" | |
5602 | || test ! -s conftest.err' | |
5603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5604 | (eval $ac_try) 2>&5 | |
5605 | ac_status=$? | |
5606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5607 | (exit $ac_status); }; } && | |
5608 | { ac_try='test -s conftest$ac_exeext' | |
5609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5610 | (eval $ac_try) 2>&5 | |
5611 | ac_status=$? | |
5612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5613 | (exit $ac_status); }; }; then | |
5614 | ac_cv_search_waddstr="-l$ac_lib" | |
5615 | break | |
4e8d927d | 5616 | else |
b4e70030 JB |
5617 | echo "$as_me: failed program was:" >&5 |
5618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5619 | ||
5620 | fi | |
5621 | rm -f conftest.err conftest.$ac_objext \ | |
5622 | conftest$ac_exeext conftest.$ac_ext | |
5623 | done | |
1ba607ad | 5624 | fi |
bec39cab AC |
5625 | LIBS=$ac_func_search_save_LIBS |
5626 | fi | |
b4e70030 JB |
5627 | echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5 |
5628 | echo "${ECHO_T}$ac_cv_search_waddstr" >&6 | |
5629 | if test "$ac_cv_search_waddstr" != no; then | |
5630 | test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS" | |
c906108c | 5631 | |
8bb2c122 | 5632 | fi |
8bb2c122 | 5633 | |
8bb2c122 | 5634 | |
d542061a UW |
5635 | # On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c). |
5636 | echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5 | |
5637 | echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6 | |
5638 | if test "${ac_cv_search_dlgetmodinfo+set}" = set; then | |
5639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5640 | else | |
5641 | ac_func_search_save_LIBS=$LIBS | |
5642 | ac_cv_search_dlgetmodinfo=no | |
5643 | cat >conftest.$ac_ext <<_ACEOF | |
5644 | /* confdefs.h. */ | |
5645 | _ACEOF | |
5646 | cat confdefs.h >>conftest.$ac_ext | |
5647 | cat >>conftest.$ac_ext <<_ACEOF | |
5648 | /* end confdefs.h. */ | |
5649 | ||
5650 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5651 | #ifdef __cplusplus | |
5652 | extern "C" | |
5653 | #endif | |
5654 | /* We use char because int might match the return type of a gcc2 | |
5655 | builtin and then its argument prototype would still apply. */ | |
5656 | char dlgetmodinfo (); | |
5657 | int | |
5658 | main () | |
5659 | { | |
5660 | dlgetmodinfo (); | |
5661 | ; | |
5662 | return 0; | |
5663 | } | |
5664 | _ACEOF | |
5665 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5666 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5667 | (eval $ac_link) 2>conftest.er1 | |
5668 | ac_status=$? | |
5669 | grep -v '^ *+' conftest.er1 >conftest.err | |
5670 | rm -f conftest.er1 | |
5671 | cat conftest.err >&5 | |
5672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5673 | (exit $ac_status); } && | |
5674 | { ac_try='test -z "$ac_c_werror_flag" | |
5675 | || test ! -s conftest.err' | |
5676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5677 | (eval $ac_try) 2>&5 | |
5678 | ac_status=$? | |
5679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5680 | (exit $ac_status); }; } && | |
5681 | { ac_try='test -s conftest$ac_exeext' | |
5682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5683 | (eval $ac_try) 2>&5 | |
5684 | ac_status=$? | |
5685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5686 | (exit $ac_status); }; }; then | |
5687 | ac_cv_search_dlgetmodinfo="none required" | |
5688 | else | |
5689 | echo "$as_me: failed program was:" >&5 | |
5690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5691 | ||
5692 | fi | |
5693 | rm -f conftest.err conftest.$ac_objext \ | |
5694 | conftest$ac_exeext conftest.$ac_ext | |
5695 | if test "$ac_cv_search_dlgetmodinfo" = no; then | |
5696 | for ac_lib in dl xpdl; do | |
5697 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5698 | cat >conftest.$ac_ext <<_ACEOF | |
5699 | /* confdefs.h. */ | |
5700 | _ACEOF | |
5701 | cat confdefs.h >>conftest.$ac_ext | |
5702 | cat >>conftest.$ac_ext <<_ACEOF | |
5703 | /* end confdefs.h. */ | |
5704 | ||
5705 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5706 | #ifdef __cplusplus | |
5707 | extern "C" | |
5708 | #endif | |
5709 | /* We use char because int might match the return type of a gcc2 | |
5710 | builtin and then its argument prototype would still apply. */ | |
5711 | char dlgetmodinfo (); | |
5712 | int | |
5713 | main () | |
5714 | { | |
5715 | dlgetmodinfo (); | |
5716 | ; | |
5717 | return 0; | |
5718 | } | |
5719 | _ACEOF | |
5720 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5721 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5722 | (eval $ac_link) 2>conftest.er1 | |
5723 | ac_status=$? | |
5724 | grep -v '^ *+' conftest.er1 >conftest.err | |
5725 | rm -f conftest.er1 | |
5726 | cat conftest.err >&5 | |
5727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5728 | (exit $ac_status); } && | |
5729 | { ac_try='test -z "$ac_c_werror_flag" | |
5730 | || test ! -s conftest.err' | |
5731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5732 | (eval $ac_try) 2>&5 | |
5733 | ac_status=$? | |
5734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5735 | (exit $ac_status); }; } && | |
5736 | { ac_try='test -s conftest$ac_exeext' | |
5737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5738 | (eval $ac_try) 2>&5 | |
5739 | ac_status=$? | |
5740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5741 | (exit $ac_status); }; }; then | |
5742 | ac_cv_search_dlgetmodinfo="-l$ac_lib" | |
5743 | break | |
5744 | else | |
5745 | echo "$as_me: failed program was:" >&5 | |
5746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5747 | ||
5748 | fi | |
5749 | rm -f conftest.err conftest.$ac_objext \ | |
5750 | conftest$ac_exeext conftest.$ac_ext | |
5751 | done | |
5752 | fi | |
5753 | LIBS=$ac_func_search_save_LIBS | |
5754 | fi | |
5755 | echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5 | |
5756 | echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6 | |
5757 | if test "$ac_cv_search_dlgetmodinfo" != no; then | |
5758 | test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS" | |
5759 | ||
5760 | fi | |
5761 | ||
5762 | ||
bec39cab AC |
5763 | # Since GDB uses Readline, we need termcap functionality. In many |
5764 | # cases this will be provided by the curses library, but some systems | |
5765 | # have a seperate termcap library, or no curses library at all. | |
8bb2c122 | 5766 | |
bec39cab AC |
5767 | case $host_os in |
5768 | cygwin*) | |
5769 | if test -d $srcdir/libtermcap; then | |
5770 | LIBS="../libtermcap/libtermcap.a $LIBS" | |
5771 | ac_cv_search_tgetent="../libtermcap/libtermcap.a" | |
5772 | fi ;; | |
5773 | go32* | *djgpp*) | |
5774 | ac_cv_search_tgetent="none required" | |
5775 | ;; | |
7ef34f2c MM |
5776 | *mingw32*) |
5777 | ac_cv_search_tgetent="none required" | |
5778 | CONFIG_OBS="$CONFIG_OBS win32-termcap.o" | |
5779 | ;; | |
bec39cab | 5780 | esac |
627af7ea | 5781 | |
bec39cab | 5782 | # These are the libraries checked by Readline. |
b4e70030 JB |
5783 | echo "$as_me:$LINENO: checking for library containing tgetent" >&5 |
5784 | echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6 | |
bec39cab AC |
5785 | if test "${ac_cv_search_tgetent+set}" = set; then |
5786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5787 | else | |
5788 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 5789 | ac_cv_search_tgetent=no |
bec39cab AC |
5790 | cat >conftest.$ac_ext <<_ACEOF |
5791 | /* confdefs.h. */ | |
5792 | _ACEOF | |
5793 | cat confdefs.h >>conftest.$ac_ext | |
5794 | cat >>conftest.$ac_ext <<_ACEOF | |
5795 | /* end confdefs.h. */ | |
5796 | ||
b4e70030 | 5797 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
5798 | #ifdef __cplusplus |
5799 | extern "C" | |
5800 | #endif | |
b4e70030 JB |
5801 | /* We use char because int might match the return type of a gcc2 |
5802 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
5803 | char tgetent (); |
5804 | int | |
5805 | main () | |
5806 | { | |
b4e70030 | 5807 | tgetent (); |
bec39cab AC |
5808 | ; |
5809 | return 0; | |
5810 | } | |
5811 | _ACEOF | |
b4e70030 | 5812 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
5813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
5814 | (eval $ac_link) 2>conftest.er1 | |
5815 | ac_status=$? | |
5816 | grep -v '^ *+' conftest.er1 >conftest.err | |
5817 | rm -f conftest.er1 | |
5818 | cat conftest.err >&5 | |
5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5820 | (exit $ac_status); } && | |
b4e70030 JB |
5821 | { ac_try='test -z "$ac_c_werror_flag" |
5822 | || test ! -s conftest.err' | |
bec39cab AC |
5823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5824 | (eval $ac_try) 2>&5 | |
5825 | ac_status=$? | |
5826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5827 | (exit $ac_status); }; } && | |
5828 | { ac_try='test -s conftest$ac_exeext' | |
5829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5830 | (eval $ac_try) 2>&5 | |
5831 | ac_status=$? | |
5832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5833 | (exit $ac_status); }; }; then | |
b4e70030 | 5834 | ac_cv_search_tgetent="none required" |
627af7ea | 5835 | else |
bec39cab AC |
5836 | echo "$as_me: failed program was:" >&5 |
5837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
627af7ea | 5838 | |
627af7ea | 5839 | fi |
bec39cab | 5840 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
5841 | conftest$ac_exeext conftest.$ac_ext |
5842 | if test "$ac_cv_search_tgetent" = no; then | |
5843 | for ac_lib in termcap tinfo curses ncurses; do | |
5844 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5845 | cat >conftest.$ac_ext <<_ACEOF | |
5846 | /* confdefs.h. */ | |
5847 | _ACEOF | |
5848 | cat confdefs.h >>conftest.$ac_ext | |
5849 | cat >>conftest.$ac_ext <<_ACEOF | |
5850 | /* end confdefs.h. */ | |
5851 | ||
5852 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5853 | #ifdef __cplusplus | |
5854 | extern "C" | |
5855 | #endif | |
5856 | /* We use char because int might match the return type of a gcc2 | |
5857 | builtin and then its argument prototype would still apply. */ | |
5858 | char tgetent (); | |
5859 | int | |
5860 | main () | |
5861 | { | |
5862 | tgetent (); | |
5863 | ; | |
5864 | return 0; | |
5865 | } | |
5866 | _ACEOF | |
5867 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5868 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5869 | (eval $ac_link) 2>conftest.er1 | |
5870 | ac_status=$? | |
5871 | grep -v '^ *+' conftest.er1 >conftest.err | |
5872 | rm -f conftest.er1 | |
5873 | cat conftest.err >&5 | |
5874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5875 | (exit $ac_status); } && | |
5876 | { ac_try='test -z "$ac_c_werror_flag" | |
5877 | || test ! -s conftest.err' | |
5878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5879 | (eval $ac_try) 2>&5 | |
5880 | ac_status=$? | |
5881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5882 | (exit $ac_status); }; } && | |
5883 | { ac_try='test -s conftest$ac_exeext' | |
5884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5885 | (eval $ac_try) 2>&5 | |
5886 | ac_status=$? | |
5887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5888 | (exit $ac_status); }; }; then | |
5889 | ac_cv_search_tgetent="-l$ac_lib" | |
5890 | break | |
4e8d927d | 5891 | else |
b4e70030 JB |
5892 | echo "$as_me: failed program was:" >&5 |
5893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5894 | ||
5895 | fi | |
5896 | rm -f conftest.err conftest.$ac_objext \ | |
5897 | conftest$ac_exeext conftest.$ac_ext | |
5898 | done | |
bec39cab AC |
5899 | fi |
5900 | LIBS=$ac_func_search_save_LIBS | |
5901 | fi | |
b4e70030 JB |
5902 | echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5 |
5903 | echo "${ECHO_T}$ac_cv_search_tgetent" >&6 | |
5904 | if test "$ac_cv_search_tgetent" != no; then | |
5905 | test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS" | |
627af7ea | 5906 | |
06825bd1 MK |
5907 | fi |
5908 | ||
06825bd1 | 5909 | |
bec39cab AC |
5910 | if test "$ac_cv_search_tgetent" = no; then |
5911 | { { echo "$as_me:$LINENO: error: no termcap library found" >&5 | |
5912 | echo "$as_me: error: no termcap library found" >&2;} | |
5913 | { (exit 1); exit 1; }; } | |
8ee53726 MK |
5914 | fi |
5915 | ||
3841debe | 5916 | |
6a30b0a5 AS |
5917 | # Check whether --with-system-readline or --without-system-readline was given. |
5918 | if test "${with_system_readline+set}" = set; then | |
5919 | withval="$with_system_readline" | |
5920 | ||
5921 | fi; | |
5922 | ||
5923 | if test "$with_system_readline" = yes; then | |
5924 | READLINE=-lreadline | |
5925 | READLINE_DEPS= | |
5926 | READLINE_CFLAGS= | |
5927 | else | |
5928 | READLINE='$(READLINE_DIR)/libreadline.a' | |
5929 | READLINE_DEPS='$(READLINE)' | |
5930 | READLINE_CFLAGS='-I$(READLINE_SRC)/..' | |
5931 | fi | |
5932 | ||
5933 | ||
5934 | ||
5935 | ||
5936 | ||
5c39566f DJ |
5937 | # Check whether --with-expat or --without-expat was given. |
5938 | if test "${with_expat+set}" = set; then | |
5939 | withval="$with_expat" | |
5940 | ||
5941 | else | |
5942 | with_expat=auto | |
5943 | fi; | |
5944 | echo "$as_me:$LINENO: checking whether to use expat" >&5 | |
5945 | echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6 | |
5946 | echo "$as_me:$LINENO: result: $with_expat" >&5 | |
5947 | echo "${ECHO_T}$with_expat" >&6 | |
5948 | ||
5949 | if test "${with_expat}" = no; then | |
5950 | { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5 | |
5951 | echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;} | |
5952 | HAVE_LIBEXPAT=no | |
5953 | else | |
5954 | ||
3841debe DJ |
5955 | if test "X$prefix" = "XNONE"; then |
5956 | acl_final_prefix="$ac_default_prefix" | |
5957 | else | |
5958 | acl_final_prefix="$prefix" | |
5959 | fi | |
5960 | if test "X$exec_prefix" = "XNONE"; then | |
5961 | acl_final_exec_prefix='${prefix}' | |
5962 | else | |
5963 | acl_final_exec_prefix="$exec_prefix" | |
5964 | fi | |
5965 | acl_save_prefix="$prefix" | |
5966 | prefix="$acl_final_prefix" | |
5967 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | |
5968 | prefix="$acl_save_prefix" | |
5969 | ||
5970 | ||
5971 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
5972 | if test "${with_gnu_ld+set}" = set; then | |
5973 | withval="$with_gnu_ld" | |
5974 | test "$withval" = no || with_gnu_ld=yes | |
5975 | else | |
5976 | with_gnu_ld=no | |
5977 | fi; | |
5978 | # Prepare PATH_SEPARATOR. | |
5979 | # The user is always right. | |
5980 | if test "${PATH_SEPARATOR+set}" != set; then | |
5981 | echo "#! /bin/sh" >conf$$.sh | |
5982 | echo "exit 0" >>conf$$.sh | |
5983 | chmod +x conf$$.sh | |
5984 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
5985 | PATH_SEPARATOR=';' | |
5986 | else | |
5987 | PATH_SEPARATOR=: | |
5988 | fi | |
5989 | rm -f conf$$.sh | |
5990 | fi | |
5991 | ac_prog=ld | |
5992 | if test "$GCC" = yes; then | |
5993 | # Check if gcc -print-prog-name=ld gives a path. | |
5994 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 | |
5995 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
5996 | case $host in | |
5997 | *-*-mingw*) | |
5998 | # gcc leaves a trailing carriage return which upsets mingw | |
5999 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6000 | *) | |
6001 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6002 | esac | |
6003 | case $ac_prog in | |
6004 | # Accept absolute paths. | |
6005 | [\\/]* | [A-Za-z]:[\\/]*) | |
6006 | re_direlt='/[^/][^/]*/\.\./' | |
6007 | # Canonicalize the path of ld | |
6008 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
6009 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
6010 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
6011 | done | |
6012 | test -z "$LD" && LD="$ac_prog" | |
6013 | ;; | |
6014 | "") | |
6015 | # If it fails, then pretend we aren't using GCC. | |
6016 | ac_prog=ld | |
6017 | ;; | |
6018 | *) | |
6019 | # If it is relative, then search for the first ld in PATH. | |
6020 | with_gnu_ld=unknown | |
6021 | ;; | |
6022 | esac | |
6023 | elif test "$with_gnu_ld" = yes; then | |
6024 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
6025 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
6026 | else | |
6027 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
6028 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
6029 | fi | |
6030 | if test "${acl_cv_path_LD+set}" = set; then | |
6031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6032 | else | |
6033 | if test -z "$LD"; then | |
6034 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | |
6035 | for ac_dir in $PATH; do | |
6036 | test -z "$ac_dir" && ac_dir=. | |
6037 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6038 | acl_cv_path_LD="$ac_dir/$ac_prog" | |
6039 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6040 | # but apparently some GNU ld's only accept -v. | |
6041 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6042 | if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
6043 | test "$with_gnu_ld" != no && break | |
6044 | else | |
6045 | test "$with_gnu_ld" != yes && break | |
6046 | fi | |
6047 | fi | |
6048 | done | |
6049 | IFS="$ac_save_ifs" | |
6050 | else | |
6051 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | |
6052 | fi | |
6053 | fi | |
6054 | ||
6055 | LD="$acl_cv_path_LD" | |
6056 | if test -n "$LD"; then | |
6057 | echo "$as_me:$LINENO: result: $LD" >&5 | |
6058 | echo "${ECHO_T}$LD" >&6 | |
6059 | else | |
6060 | echo "$as_me:$LINENO: result: no" >&5 | |
6061 | echo "${ECHO_T}no" >&6 | |
6062 | fi | |
6063 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
6064 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
6065 | { (exit 1); exit 1; }; } | |
6066 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
6067 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
6068 | if test "${acl_cv_prog_gnu_ld+set}" = set; then | |
6069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6070 | else | |
6071 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
6072 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
6073 | acl_cv_prog_gnu_ld=yes | |
6074 | else | |
6075 | acl_cv_prog_gnu_ld=no | |
6076 | fi | |
6077 | fi | |
6078 | echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 | |
6079 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6 | |
6080 | with_gnu_ld=$acl_cv_prog_gnu_ld | |
6081 | ||
6082 | ||
6083 | ||
6084 | echo "$as_me:$LINENO: checking for shared library run path origin" >&5 | |
6085 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6 | |
6086 | if test "${acl_cv_rpath+set}" = set; then | |
6087 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6088 | else | |
6089 | ||
6090 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | |
6091 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | |
6092 | . ./conftest.sh | |
6093 | rm -f ./conftest.sh | |
6094 | acl_cv_rpath=done | |
6095 | ||
6096 | fi | |
6097 | echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 | |
6098 | echo "${ECHO_T}$acl_cv_rpath" >&6 | |
6099 | wl="$acl_cv_wl" | |
6100 | libext="$acl_cv_libext" | |
6101 | shlibext="$acl_cv_shlibext" | |
6102 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | |
6103 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | |
6104 | hardcode_direct="$acl_cv_hardcode_direct" | |
6105 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | |
6106 | # Check whether --enable-rpath or --disable-rpath was given. | |
6107 | if test "${enable_rpath+set}" = set; then | |
6108 | enableval="$enable_rpath" | |
6109 | : | |
6110 | else | |
6111 | enable_rpath=yes | |
6112 | fi; | |
6113 | ||
6114 | ||
6115 | ||
6116 | ||
6117 | ||
6118 | ||
6119 | ||
6120 | ||
6121 | ||
6122 | use_additional=yes | |
6123 | ||
6124 | acl_save_prefix="$prefix" | |
6125 | prefix="$acl_final_prefix" | |
6126 | acl_save_exec_prefix="$exec_prefix" | |
6127 | exec_prefix="$acl_final_exec_prefix" | |
6128 | ||
6129 | eval additional_includedir=\"$includedir\" | |
6130 | eval additional_libdir=\"$libdir\" | |
6131 | ||
6132 | exec_prefix="$acl_save_exec_prefix" | |
6133 | prefix="$acl_save_prefix" | |
6134 | ||
6135 | ||
6136 | # Check whether --with-libexpat-prefix or --without-libexpat-prefix was given. | |
6137 | if test "${with_libexpat_prefix+set}" = set; then | |
6138 | withval="$with_libexpat_prefix" | |
6139 | ||
6140 | if test "X$withval" = "Xno"; then | |
6141 | use_additional=no | |
6142 | else | |
6143 | if test "X$withval" = "X"; then | |
6144 | ||
6145 | acl_save_prefix="$prefix" | |
6146 | prefix="$acl_final_prefix" | |
6147 | acl_save_exec_prefix="$exec_prefix" | |
6148 | exec_prefix="$acl_final_exec_prefix" | |
6149 | ||
6150 | eval additional_includedir=\"$includedir\" | |
6151 | eval additional_libdir=\"$libdir\" | |
6152 | ||
6153 | exec_prefix="$acl_save_exec_prefix" | |
6154 | prefix="$acl_save_prefix" | |
6155 | ||
6156 | else | |
6157 | additional_includedir="$withval/include" | |
6158 | additional_libdir="$withval/lib" | |
6159 | fi | |
6160 | fi | |
6161 | ||
6162 | fi; | |
6163 | LIBEXPAT= | |
6164 | LTLIBEXPAT= | |
6165 | INCEXPAT= | |
6166 | rpathdirs= | |
6167 | ltrpathdirs= | |
6168 | names_already_handled= | |
6169 | names_next_round='expat ' | |
6170 | while test -n "$names_next_round"; do | |
6171 | names_this_round="$names_next_round" | |
6172 | names_next_round= | |
6173 | for name in $names_this_round; do | |
6174 | already_handled= | |
6175 | for n in $names_already_handled; do | |
6176 | if test "$n" = "$name"; then | |
6177 | already_handled=yes | |
6178 | break | |
6179 | fi | |
6180 | done | |
6181 | if test -z "$already_handled"; then | |
6182 | names_already_handled="$names_already_handled $name" | |
6183 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | |
6184 | eval value=\"\$HAVE_LIB$uppername\" | |
6185 | if test -n "$value"; then | |
6186 | if test "$value" = yes; then | |
6187 | eval value=\"\$LIB$uppername\" | |
6188 | test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value" | |
6189 | eval value=\"\$LTLIB$uppername\" | |
6190 | test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value" | |
6191 | else | |
6192 | : | |
6193 | fi | |
6194 | else | |
6195 | found_dir= | |
6196 | found_la= | |
6197 | found_so= | |
6198 | found_a= | |
6199 | if test $use_additional = yes; then | |
6200 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | |
6201 | found_dir="$additional_libdir" | |
6202 | found_so="$additional_libdir/lib$name.$shlibext" | |
6203 | if test -f "$additional_libdir/lib$name.la"; then | |
6204 | found_la="$additional_libdir/lib$name.la" | |
6205 | fi | |
6206 | else | |
6207 | if test -f "$additional_libdir/lib$name.$libext"; then | |
6208 | found_dir="$additional_libdir" | |
6209 | found_a="$additional_libdir/lib$name.$libext" | |
6210 | if test -f "$additional_libdir/lib$name.la"; then | |
6211 | found_la="$additional_libdir/lib$name.la" | |
6212 | fi | |
6213 | fi | |
6214 | fi | |
6215 | fi | |
6216 | if test "X$found_dir" = "X"; then | |
6217 | for x in $LDFLAGS $LTLIBEXPAT; do | |
6218 | ||
6219 | acl_save_prefix="$prefix" | |
6220 | prefix="$acl_final_prefix" | |
6221 | acl_save_exec_prefix="$exec_prefix" | |
6222 | exec_prefix="$acl_final_exec_prefix" | |
6223 | eval x=\"$x\" | |
6224 | exec_prefix="$acl_save_exec_prefix" | |
6225 | prefix="$acl_save_prefix" | |
6226 | ||
6227 | case "$x" in | |
6228 | -L*) | |
6229 | dir=`echo "X$x" | sed -e 's/^X-L//'` | |
6230 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | |
6231 | found_dir="$dir" | |
6232 | found_so="$dir/lib$name.$shlibext" | |
6233 | if test -f "$dir/lib$name.la"; then | |
6234 | found_la="$dir/lib$name.la" | |
6235 | fi | |
6236 | else | |
6237 | if test -f "$dir/lib$name.$libext"; then | |
6238 | found_dir="$dir" | |
6239 | found_a="$dir/lib$name.$libext" | |
6240 | if test -f "$dir/lib$name.la"; then | |
6241 | found_la="$dir/lib$name.la" | |
6242 | fi | |
6243 | fi | |
6244 | fi | |
6245 | ;; | |
6246 | esac | |
6247 | if test "X$found_dir" != "X"; then | |
6248 | break | |
6249 | fi | |
6250 | done | |
6251 | fi | |
6252 | if test "X$found_dir" != "X"; then | |
6253 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name" | |
6254 | if test "X$found_so" != "X"; then | |
6255 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | |
6256 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6257 | else | |
6258 | haveit= | |
6259 | for x in $ltrpathdirs; do | |
6260 | if test "X$x" = "X$found_dir"; then | |
6261 | haveit=yes | |
6262 | break | |
6263 | fi | |
6264 | done | |
6265 | if test -z "$haveit"; then | |
6266 | ltrpathdirs="$ltrpathdirs $found_dir" | |
6267 | fi | |
6268 | if test "$hardcode_direct" = yes; then | |
6269 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6270 | else | |
6271 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | |
6272 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6273 | haveit= | |
6274 | for x in $rpathdirs; do | |
6275 | if test "X$x" = "X$found_dir"; then | |
6276 | haveit=yes | |
6277 | break | |
6278 | fi | |
6279 | done | |
6280 | if test -z "$haveit"; then | |
6281 | rpathdirs="$rpathdirs $found_dir" | |
6282 | fi | |
6283 | else | |
6284 | haveit= | |
6285 | for x in $LDFLAGS $LIBEXPAT; do | |
6286 | ||
6287 | acl_save_prefix="$prefix" | |
6288 | prefix="$acl_final_prefix" | |
6289 | acl_save_exec_prefix="$exec_prefix" | |
6290 | exec_prefix="$acl_final_exec_prefix" | |
6291 | eval x=\"$x\" | |
6292 | exec_prefix="$acl_save_exec_prefix" | |
6293 | prefix="$acl_save_prefix" | |
6294 | ||
6295 | if test "X$x" = "X-L$found_dir"; then | |
6296 | haveit=yes | |
6297 | break | |
6298 | fi | |
6299 | done | |
6300 | if test -z "$haveit"; then | |
6301 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir" | |
6302 | fi | |
6303 | if test "$hardcode_minus_L" != no; then | |
6304 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so" | |
6305 | else | |
6306 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
6307 | fi | |
6308 | fi | |
6309 | fi | |
6310 | fi | |
6311 | else | |
6312 | if test "X$found_a" != "X"; then | |
6313 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a" | |
6314 | else | |
6315 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name" | |
6316 | fi | |
6317 | fi | |
6318 | additional_includedir= | |
6319 | case "$found_dir" in | |
6320 | */lib | */lib/) | |
6321 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | |
6322 | additional_includedir="$basedir/include" | |
6323 | ;; | |
6324 | esac | |
6325 | if test "X$additional_includedir" != "X"; then | |
6326 | if test "X$additional_includedir" != "X/usr/include"; then | |
6327 | haveit= | |
6328 | if test "X$additional_includedir" = "X/usr/local/include"; then | |
6329 | if test -n "$GCC"; then | |
6330 | case $host_os in | |
6331 | linux*) haveit=yes;; | |
6332 | esac | |
6333 | fi | |
6334 | fi | |
6335 | if test -z "$haveit"; then | |
6336 | for x in $CPPFLAGS $INCEXPAT; do | |
6337 | ||
6338 | acl_save_prefix="$prefix" | |
6339 | prefix="$acl_final_prefix" | |
6340 | acl_save_exec_prefix="$exec_prefix" | |
6341 | exec_prefix="$acl_final_exec_prefix" | |
6342 | eval x=\"$x\" | |
6343 | exec_prefix="$acl_save_exec_prefix" | |
6344 | prefix="$acl_save_prefix" | |
6345 | ||
6346 | if test "X$x" = "X-I$additional_includedir"; then | |
6347 | haveit=yes | |
6348 | break | |
6349 | fi | |
6350 | done | |
6351 | if test -z "$haveit"; then | |
6352 | if test -d "$additional_includedir"; then | |
6353 | INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir" | |
6354 | fi | |
6355 | fi | |
6356 | fi | |
6357 | fi | |
6358 | fi | |
6359 | if test -n "$found_la"; then | |
6360 | save_libdir="$libdir" | |
6361 | case "$found_la" in | |
6362 | */* | *\\*) . "$found_la" ;; | |
6363 | *) . "./$found_la" ;; | |
6364 | esac | |
6365 | libdir="$save_libdir" | |
6366 | for dep in $dependency_libs; do | |
6367 | case "$dep" in | |
6368 | -L*) | |
6369 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | |
6370 | if test "X$additional_libdir" != "X/usr/lib"; then | |
6371 | haveit= | |
6372 | if test "X$additional_libdir" = "X/usr/local/lib"; then | |
6373 | if test -n "$GCC"; then | |
6374 | case $host_os in | |
6375 | linux*) haveit=yes;; | |
6376 | esac | |
6377 | fi | |
6378 | fi | |
6379 | if test -z "$haveit"; then | |
6380 | haveit= | |
6381 | for x in $LDFLAGS $LIBEXPAT; do | |
6382 | ||
6383 | acl_save_prefix="$prefix" | |
6384 | prefix="$acl_final_prefix" | |
6385 | acl_save_exec_prefix="$exec_prefix" | |
6386 | exec_prefix="$acl_final_exec_prefix" | |
6387 | eval x=\"$x\" | |
6388 | exec_prefix="$acl_save_exec_prefix" | |
6389 | prefix="$acl_save_prefix" | |
6390 | ||
6391 | if test "X$x" = "X-L$additional_libdir"; then | |
6392 | haveit=yes | |
6393 | break | |
6394 | fi | |
6395 | done | |
6396 | if test -z "$haveit"; then | |
6397 | if test -d "$additional_libdir"; then | |
6398 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir" | |
6399 | fi | |
6400 | fi | |
6401 | haveit= | |
6402 | for x in $LDFLAGS $LTLIBEXPAT; do | |
6403 | ||
6404 | acl_save_prefix="$prefix" | |
6405 | prefix="$acl_final_prefix" | |
6406 | acl_save_exec_prefix="$exec_prefix" | |
6407 | exec_prefix="$acl_final_exec_prefix" | |
6408 | eval x=\"$x\" | |
6409 | exec_prefix="$acl_save_exec_prefix" | |
6410 | prefix="$acl_save_prefix" | |
6411 | ||
6412 | if test "X$x" = "X-L$additional_libdir"; then | |
6413 | haveit=yes | |
6414 | break | |
6415 | fi | |
6416 | done | |
6417 | if test -z "$haveit"; then | |
6418 | if test -d "$additional_libdir"; then | |
6419 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir" | |
6420 | fi | |
6421 | fi | |
6422 | fi | |
6423 | fi | |
6424 | ;; | |
6425 | -R*) | |
6426 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | |
6427 | if test "$enable_rpath" != no; then | |
6428 | haveit= | |
6429 | for x in $rpathdirs; do | |
6430 | if test "X$x" = "X$dir"; then | |
6431 | haveit=yes | |
6432 | break | |
6433 | fi | |
6434 | done | |
6435 | if test -z "$haveit"; then | |
6436 | rpathdirs="$rpathdirs $dir" | |
6437 | fi | |
6438 | haveit= | |
6439 | for x in $ltrpathdirs; do | |
6440 | if test "X$x" = "X$dir"; then | |
6441 | haveit=yes | |
6442 | break | |
6443 | fi | |
6444 | done | |
6445 | if test -z "$haveit"; then | |
6446 | ltrpathdirs="$ltrpathdirs $dir" | |
6447 | fi | |
6448 | fi | |
6449 | ;; | |
6450 | -l*) | |
6451 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | |
6452 | ;; | |
6453 | *.la) | |
6454 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | |
6455 | ;; | |
6456 | *) | |
6457 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep" | |
6458 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep" | |
6459 | ;; | |
6460 | esac | |
6461 | done | |
6462 | fi | |
6463 | else | |
6464 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name" | |
6465 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name" | |
6466 | fi | |
6467 | fi | |
6468 | fi | |
6469 | done | |
6470 | done | |
6471 | if test "X$rpathdirs" != "X"; then | |
6472 | if test -n "$hardcode_libdir_separator"; then | |
6473 | alldirs= | |
6474 | for found_dir in $rpathdirs; do | |
6475 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | |
6476 | done | |
6477 | acl_save_libdir="$libdir" | |
6478 | libdir="$alldirs" | |
6479 | eval flag=\"$hardcode_libdir_flag_spec\" | |
6480 | libdir="$acl_save_libdir" | |
6481 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
6482 | else | |
6483 | for found_dir in $rpathdirs; do | |
6484 | acl_save_libdir="$libdir" | |
6485 | libdir="$found_dir" | |
6486 | eval flag=\"$hardcode_libdir_flag_spec\" | |
6487 | libdir="$acl_save_libdir" | |
6488 | LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag" | |
6489 | done | |
6490 | fi | |
6491 | fi | |
6492 | if test "X$ltrpathdirs" != "X"; then | |
6493 | for found_dir in $ltrpathdirs; do | |
6494 | LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir" | |
6495 | done | |
6496 | fi | |
6497 | ||
6498 | ||
6499 | ac_save_CPPFLAGS="$CPPFLAGS" | |
6500 | ||
6501 | for element in $INCEXPAT; do | |
6502 | haveit= | |
6503 | for x in $CPPFLAGS; do | |
6504 | ||
6505 | acl_save_prefix="$prefix" | |
6506 | prefix="$acl_final_prefix" | |
6507 | acl_save_exec_prefix="$exec_prefix" | |
6508 | exec_prefix="$acl_final_exec_prefix" | |
6509 | eval x=\"$x\" | |
6510 | exec_prefix="$acl_save_exec_prefix" | |
6511 | prefix="$acl_save_prefix" | |
6512 | ||
6513 | if test "X$x" = "X$element"; then | |
6514 | haveit=yes | |
6515 | break | |
6516 | fi | |
6517 | done | |
6518 | if test -z "$haveit"; then | |
6519 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" | |
6520 | fi | |
6521 | done | |
6522 | ||
6523 | ||
6524 | echo "$as_me:$LINENO: checking for libexpat" >&5 | |
6525 | echo $ECHO_N "checking for libexpat... $ECHO_C" >&6 | |
6526 | if test "${ac_cv_libexpat+set}" = set; then | |
6527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6528 | else | |
6529 | ||
6530 | ac_save_LIBS="$LIBS" | |
6531 | LIBS="$LIBS $LIBEXPAT" | |
6532 | cat >conftest.$ac_ext <<_ACEOF | |
6533 | /* confdefs.h. */ | |
6534 | _ACEOF | |
6535 | cat confdefs.h >>conftest.$ac_ext | |
6536 | cat >>conftest.$ac_ext <<_ACEOF | |
6537 | /* end confdefs.h. */ | |
6538 | #include "expat.h" | |
6539 | int | |
6540 | main () | |
6541 | { | |
6542 | XML_Parser p = XML_ParserCreate (0); | |
6543 | ; | |
6544 | return 0; | |
6545 | } | |
6546 | _ACEOF | |
6547 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6548 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6549 | (eval $ac_link) 2>conftest.er1 | |
6550 | ac_status=$? | |
6551 | grep -v '^ *+' conftest.er1 >conftest.err | |
6552 | rm -f conftest.er1 | |
6553 | cat conftest.err >&5 | |
6554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6555 | (exit $ac_status); } && | |
6556 | { ac_try='test -z "$ac_c_werror_flag" | |
6557 | || test ! -s conftest.err' | |
6558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6559 | (eval $ac_try) 2>&5 | |
6560 | ac_status=$? | |
6561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6562 | (exit $ac_status); }; } && | |
6563 | { ac_try='test -s conftest$ac_exeext' | |
6564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6565 | (eval $ac_try) 2>&5 | |
6566 | ac_status=$? | |
6567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6568 | (exit $ac_status); }; }; then | |
6569 | ac_cv_libexpat=yes | |
6570 | else | |
6571 | echo "$as_me: failed program was:" >&5 | |
6572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6573 | ||
6574 | ac_cv_libexpat=no | |
6575 | fi | |
6576 | rm -f conftest.err conftest.$ac_objext \ | |
6577 | conftest$ac_exeext conftest.$ac_ext | |
6578 | LIBS="$ac_save_LIBS" | |
6579 | ||
6580 | fi | |
6581 | echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5 | |
6582 | echo "${ECHO_T}$ac_cv_libexpat" >&6 | |
6583 | if test "$ac_cv_libexpat" = yes; then | |
6584 | HAVE_LIBEXPAT=yes | |
6585 | ||
6586 | cat >>confdefs.h <<\_ACEOF | |
6587 | #define HAVE_LIBEXPAT 1 | |
6588 | _ACEOF | |
6589 | ||
6590 | echo "$as_me:$LINENO: checking how to link with libexpat" >&5 | |
6591 | echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6 | |
6592 | echo "$as_me:$LINENO: result: $LIBEXPAT" >&5 | |
6593 | echo "${ECHO_T}$LIBEXPAT" >&6 | |
6594 | else | |
6595 | HAVE_LIBEXPAT=no | |
6596 | CPPFLAGS="$ac_save_CPPFLAGS" | |
6597 | LIBEXPAT= | |
6598 | LTLIBEXPAT= | |
6599 | fi | |
6600 | ||
6601 | ||
6602 | ||
6603 | ||
6604 | ||
6605 | ||
5c39566f DJ |
6606 | if test "$HAVE_LIBEXPAT" != yes; then |
6607 | if test "$with_expat" = yes; then | |
6608 | { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5 | |
6609 | echo "$as_me: error: expat is missing or unusable" >&2;} | |
6610 | { (exit 1); exit 1; }; } | |
6611 | else | |
6612 | { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5 | |
6613 | echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;} | |
6614 | fi | |
6615 | else | |
6616 | save_LIBS=$LIBS | |
6617 | LIBS="$LIBS $LIBEXPAT" | |
ca4ca11e DJ |
6618 | |
6619 | for ac_func in XML_StopParser | |
6620 | do | |
6621 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6622 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6623 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6624 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6626 | else | |
6627 | cat >conftest.$ac_ext <<_ACEOF | |
6628 | /* confdefs.h. */ | |
6629 | _ACEOF | |
6630 | cat confdefs.h >>conftest.$ac_ext | |
6631 | cat >>conftest.$ac_ext <<_ACEOF | |
6632 | /* end confdefs.h. */ | |
6633 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6634 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6635 | #define $ac_func innocuous_$ac_func | |
6636 | ||
6637 | /* System header to define __stub macros and hopefully few prototypes, | |
6638 | which can conflict with char $ac_func (); below. | |
6639 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6640 | <limits.h> exists even on freestanding compilers. */ | |
6641 | ||
6642 | #ifdef __STDC__ | |
6643 | # include <limits.h> | |
6644 | #else | |
6645 | # include <assert.h> | |
6646 | #endif | |
6647 | ||
6648 | #undef $ac_func | |
6649 | ||
6650 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6651 | #ifdef __cplusplus | |
6652 | extern "C" | |
6653 | { | |
6654 | #endif | |
6655 | /* We use char because int might match the return type of a gcc2 | |
6656 | builtin and then its argument prototype would still apply. */ | |
6657 | char $ac_func (); | |
6658 | /* The GNU C library defines this for functions which it implements | |
6659 | to always fail with ENOSYS. Some functions are actually named | |
6660 | something starting with __ and the normal name is an alias. */ | |
6661 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6662 | choke me | |
6663 | #else | |
6664 | char (*f) () = $ac_func; | |
6665 | #endif | |
6666 | #ifdef __cplusplus | |
6667 | } | |
6668 | #endif | |
6669 | ||
6670 | int | |
6671 | main () | |
6672 | { | |
6673 | return f != $ac_func; | |
6674 | ; | |
6675 | return 0; | |
6676 | } | |
6677 | _ACEOF | |
6678 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6679 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6680 | (eval $ac_link) 2>conftest.er1 | |
6681 | ac_status=$? | |
6682 | grep -v '^ *+' conftest.er1 >conftest.err | |
6683 | rm -f conftest.er1 | |
6684 | cat conftest.err >&5 | |
6685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6686 | (exit $ac_status); } && | |
6687 | { ac_try='test -z "$ac_c_werror_flag" | |
6688 | || test ! -s conftest.err' | |
6689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6690 | (eval $ac_try) 2>&5 | |
6691 | ac_status=$? | |
6692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6693 | (exit $ac_status); }; } && | |
6694 | { ac_try='test -s conftest$ac_exeext' | |
6695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6696 | (eval $ac_try) 2>&5 | |
6697 | ac_status=$? | |
6698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6699 | (exit $ac_status); }; }; then | |
6700 | eval "$as_ac_var=yes" | |
6701 | else | |
6702 | echo "$as_me: failed program was:" >&5 | |
6703 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6704 | ||
6705 | eval "$as_ac_var=no" | |
6706 | fi | |
6707 | rm -f conftest.err conftest.$ac_objext \ | |
6708 | conftest$ac_exeext conftest.$ac_ext | |
6709 | fi | |
6710 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6711 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6712 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6713 | cat >>confdefs.h <<_ACEOF | |
6714 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6715 | _ACEOF | |
6716 | ||
6717 | fi | |
6718 | done | |
6719 | ||
5c39566f DJ |
6720 | LIBS=$save_LIBS |
6721 | fi | |
3841debe DJ |
6722 | fi |
6723 | ||
bec39cab AC |
6724 | # ------------------------- # |
6725 | # Checks for header files. # | |
6726 | # ------------------------- # | |
8ee53726 | 6727 | |
0e5d83e3 | 6728 | |
bec39cab AC |
6729 | |
6730 | ||
6731 | ||
6732 | ||
6733 | ac_header_dirent=no | |
6734 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
6735 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
b4e70030 JB |
6736 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 |
6737 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
6738 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
6739 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6740 | else | |
6741 | cat >conftest.$ac_ext <<_ACEOF | |
6742 | /* confdefs.h. */ | |
6743 | _ACEOF | |
6744 | cat confdefs.h >>conftest.$ac_ext | |
6745 | cat >>conftest.$ac_ext <<_ACEOF | |
6746 | /* end confdefs.h. */ | |
6747 | #include <sys/types.h> | |
0e5d83e3 | 6748 | #include <$ac_hdr> |
bec39cab AC |
6749 | |
6750 | int | |
6751 | main () | |
6752 | { | |
6753 | if ((DIR *) 0) | |
6754 | return 0; | |
6755 | ; | |
6756 | return 0; | |
6757 | } | |
6758 | _ACEOF | |
6759 | rm -f conftest.$ac_objext | |
6760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6761 | (eval $ac_compile) 2>conftest.er1 | |
6762 | ac_status=$? | |
6763 | grep -v '^ *+' conftest.er1 >conftest.err | |
6764 | rm -f conftest.er1 | |
6765 | cat conftest.err >&5 | |
6766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6767 | (exit $ac_status); } && | |
b4e70030 JB |
6768 | { ac_try='test -z "$ac_c_werror_flag" |
6769 | || test ! -s conftest.err' | |
bec39cab AC |
6770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6771 | (eval $ac_try) 2>&5 | |
6772 | ac_status=$? | |
6773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6774 | (exit $ac_status); }; } && | |
6775 | { ac_try='test -s conftest.$ac_objext' | |
6776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6777 | (eval $ac_try) 2>&5 | |
6778 | ac_status=$? | |
6779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6780 | (exit $ac_status); }; }; then | |
6781 | eval "$as_ac_Header=yes" | |
6782 | else | |
6783 | echo "$as_me: failed program was:" >&5 | |
6784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6785 | ||
b4e70030 | 6786 | eval "$as_ac_Header=no" |
bec39cab AC |
6787 | fi |
6788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6789 | fi | |
b4e70030 JB |
6790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
6791 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
6792 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6793 | cat >>confdefs.h <<_ACEOF | |
6794 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
6795 | _ACEOF | |
6796 | ||
6797 | ac_header_dirent=$ac_hdr; break | |
0e5d83e3 | 6798 | fi |
0e5d83e3 | 6799 | |
bec39cab AC |
6800 | done |
6801 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
6802 | if test $ac_header_dirent = dirent.h; then | |
b4e70030 JB |
6803 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
6804 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
6805 | if test "${ac_cv_search_opendir+set}" = set; then |
6806 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6807 | else | |
6808 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 6809 | ac_cv_search_opendir=no |
bec39cab AC |
6810 | cat >conftest.$ac_ext <<_ACEOF |
6811 | /* confdefs.h. */ | |
6812 | _ACEOF | |
6813 | cat confdefs.h >>conftest.$ac_ext | |
6814 | cat >>conftest.$ac_ext <<_ACEOF | |
6815 | /* end confdefs.h. */ | |
0e5d83e3 | 6816 | |
b4e70030 | 6817 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
6818 | #ifdef __cplusplus |
6819 | extern "C" | |
6820 | #endif | |
b4e70030 JB |
6821 | /* We use char because int might match the return type of a gcc2 |
6822 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
6823 | char opendir (); |
6824 | int | |
6825 | main () | |
6826 | { | |
b4e70030 | 6827 | opendir (); |
bec39cab AC |
6828 | ; |
6829 | return 0; | |
6830 | } | |
6831 | _ACEOF | |
b4e70030 | 6832 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
6833 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6834 | (eval $ac_link) 2>conftest.er1 | |
6835 | ac_status=$? | |
6836 | grep -v '^ *+' conftest.er1 >conftest.err | |
6837 | rm -f conftest.er1 | |
6838 | cat conftest.err >&5 | |
6839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6840 | (exit $ac_status); } && | |
b4e70030 JB |
6841 | { ac_try='test -z "$ac_c_werror_flag" |
6842 | || test ! -s conftest.err' | |
bec39cab AC |
6843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6844 | (eval $ac_try) 2>&5 | |
6845 | ac_status=$? | |
6846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6847 | (exit $ac_status); }; } && | |
6848 | { ac_try='test -s conftest$ac_exeext' | |
6849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6850 | (eval $ac_try) 2>&5 | |
6851 | ac_status=$? | |
6852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6853 | (exit $ac_status); }; }; then | |
b4e70030 | 6854 | ac_cv_search_opendir="none required" |
bec39cab AC |
6855 | else |
6856 | echo "$as_me: failed program was:" >&5 | |
6857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6858 | ||
6859 | fi | |
bec39cab | 6860 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
6861 | conftest$ac_exeext conftest.$ac_ext |
6862 | if test "$ac_cv_search_opendir" = no; then | |
6863 | for ac_lib in dir; do | |
6864 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6865 | cat >conftest.$ac_ext <<_ACEOF | |
6866 | /* confdefs.h. */ | |
6867 | _ACEOF | |
6868 | cat confdefs.h >>conftest.$ac_ext | |
6869 | cat >>conftest.$ac_ext <<_ACEOF | |
6870 | /* end confdefs.h. */ | |
6871 | ||
6872 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6873 | #ifdef __cplusplus | |
6874 | extern "C" | |
6875 | #endif | |
6876 | /* We use char because int might match the return type of a gcc2 | |
6877 | builtin and then its argument prototype would still apply. */ | |
6878 | char opendir (); | |
6879 | int | |
6880 | main () | |
6881 | { | |
6882 | opendir (); | |
6883 | ; | |
6884 | return 0; | |
6885 | } | |
6886 | _ACEOF | |
6887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6889 | (eval $ac_link) 2>conftest.er1 | |
6890 | ac_status=$? | |
6891 | grep -v '^ *+' conftest.er1 >conftest.err | |
6892 | rm -f conftest.er1 | |
6893 | cat conftest.err >&5 | |
6894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6895 | (exit $ac_status); } && | |
6896 | { ac_try='test -z "$ac_c_werror_flag" | |
6897 | || test ! -s conftest.err' | |
6898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6899 | (eval $ac_try) 2>&5 | |
6900 | ac_status=$? | |
6901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6902 | (exit $ac_status); }; } && | |
6903 | { ac_try='test -s conftest$ac_exeext' | |
6904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6905 | (eval $ac_try) 2>&5 | |
6906 | ac_status=$? | |
6907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6908 | (exit $ac_status); }; }; then | |
6909 | ac_cv_search_opendir="-l$ac_lib" | |
6910 | break | |
4e8d927d | 6911 | else |
b4e70030 JB |
6912 | echo "$as_me: failed program was:" >&5 |
6913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6914 | ||
6915 | fi | |
6916 | rm -f conftest.err conftest.$ac_objext \ | |
6917 | conftest$ac_exeext conftest.$ac_ext | |
6918 | done | |
0e5d83e3 | 6919 | fi |
bec39cab | 6920 | LIBS=$ac_func_search_save_LIBS |
0e5d83e3 | 6921 | fi |
b4e70030 JB |
6922 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
6923 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
6924 | if test "$ac_cv_search_opendir" != no; then | |
6925 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
0e5d83e3 | 6926 | |
0e5d83e3 JJ |
6927 | fi |
6928 | ||
d28f9cdf | 6929 | else |
b4e70030 JB |
6930 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
6931 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
bec39cab AC |
6932 | if test "${ac_cv_search_opendir+set}" = set; then |
6933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6934 | else | |
6935 | ac_func_search_save_LIBS=$LIBS | |
b4e70030 | 6936 | ac_cv_search_opendir=no |
bec39cab AC |
6937 | cat >conftest.$ac_ext <<_ACEOF |
6938 | /* confdefs.h. */ | |
6939 | _ACEOF | |
6940 | cat confdefs.h >>conftest.$ac_ext | |
6941 | cat >>conftest.$ac_ext <<_ACEOF | |
6942 | /* end confdefs.h. */ | |
d28f9cdf | 6943 | |
b4e70030 | 6944 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
6945 | #ifdef __cplusplus |
6946 | extern "C" | |
d28f9cdf | 6947 | #endif |
b4e70030 JB |
6948 | /* We use char because int might match the return type of a gcc2 |
6949 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
6950 | char opendir (); |
6951 | int | |
6952 | main () | |
6953 | { | |
b4e70030 | 6954 | opendir (); |
bec39cab AC |
6955 | ; |
6956 | return 0; | |
6957 | } | |
6958 | _ACEOF | |
b4e70030 | 6959 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab AC |
6960 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6961 | (eval $ac_link) 2>conftest.er1 | |
6962 | ac_status=$? | |
6963 | grep -v '^ *+' conftest.er1 >conftest.err | |
6964 | rm -f conftest.er1 | |
6965 | cat conftest.err >&5 | |
6966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6967 | (exit $ac_status); } && | |
b4e70030 JB |
6968 | { ac_try='test -z "$ac_c_werror_flag" |
6969 | || test ! -s conftest.err' | |
bec39cab AC |
6970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6971 | (eval $ac_try) 2>&5 | |
6972 | ac_status=$? | |
6973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6974 | (exit $ac_status); }; } && | |
6975 | { ac_try='test -s conftest$ac_exeext' | |
6976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6977 | (eval $ac_try) 2>&5 | |
6978 | ac_status=$? | |
6979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6980 | (exit $ac_status); }; }; then | |
b4e70030 | 6981 | ac_cv_search_opendir="none required" |
d28f9cdf | 6982 | else |
bec39cab AC |
6983 | echo "$as_me: failed program was:" >&5 |
6984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6985 | ||
d28f9cdf | 6986 | fi |
bec39cab | 6987 | rm -f conftest.err conftest.$ac_objext \ |
b4e70030 JB |
6988 | conftest$ac_exeext conftest.$ac_ext |
6989 | if test "$ac_cv_search_opendir" = no; then | |
6990 | for ac_lib in x; do | |
6991 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6992 | cat >conftest.$ac_ext <<_ACEOF | |
6993 | /* confdefs.h. */ | |
6994 | _ACEOF | |
6995 | cat confdefs.h >>conftest.$ac_ext | |
6996 | cat >>conftest.$ac_ext <<_ACEOF | |
6997 | /* end confdefs.h. */ | |
6998 | ||
6999 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7000 | #ifdef __cplusplus | |
7001 | extern "C" | |
7002 | #endif | |
7003 | /* We use char because int might match the return type of a gcc2 | |
7004 | builtin and then its argument prototype would still apply. */ | |
7005 | char opendir (); | |
7006 | int | |
7007 | main () | |
7008 | { | |
7009 | opendir (); | |
7010 | ; | |
7011 | return 0; | |
7012 | } | |
7013 | _ACEOF | |
7014 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7015 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7016 | (eval $ac_link) 2>conftest.er1 | |
7017 | ac_status=$? | |
7018 | grep -v '^ *+' conftest.er1 >conftest.err | |
7019 | rm -f conftest.er1 | |
7020 | cat conftest.err >&5 | |
7021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7022 | (exit $ac_status); } && | |
7023 | { ac_try='test -z "$ac_c_werror_flag" | |
7024 | || test ! -s conftest.err' | |
7025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7026 | (eval $ac_try) 2>&5 | |
7027 | ac_status=$? | |
7028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7029 | (exit $ac_status); }; } && | |
7030 | { ac_try='test -s conftest$ac_exeext' | |
7031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7032 | (eval $ac_try) 2>&5 | |
7033 | ac_status=$? | |
7034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7035 | (exit $ac_status); }; }; then | |
7036 | ac_cv_search_opendir="-l$ac_lib" | |
7037 | break | |
4e8d927d | 7038 | else |
b4e70030 JB |
7039 | echo "$as_me: failed program was:" >&5 |
7040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7041 | ||
7042 | fi | |
7043 | rm -f conftest.err conftest.$ac_objext \ | |
7044 | conftest$ac_exeext conftest.$ac_ext | |
7045 | done | |
bec39cab AC |
7046 | fi |
7047 | LIBS=$ac_func_search_save_LIBS | |
d28f9cdf | 7048 | fi |
b4e70030 JB |
7049 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
7050 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
7051 | if test "$ac_cv_search_opendir" != no; then | |
7052 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
d28f9cdf | 7053 | |
d28f9cdf DJ |
7054 | fi |
7055 | ||
bec39cab | 7056 | fi |
b0b1c2c0 | 7057 | |
b4e70030 JB |
7058 | echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5 |
7059 | echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6 | |
bec39cab AC |
7060 | if test "${ac_cv_header_stat_broken+set}" = set; then |
7061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b0b1c2c0 | 7062 | else |
bec39cab AC |
7063 | cat >conftest.$ac_ext <<_ACEOF |
7064 | /* confdefs.h. */ | |
7065 | _ACEOF | |
7066 | cat confdefs.h >>conftest.$ac_ext | |
7067 | cat >>conftest.$ac_ext <<_ACEOF | |
7068 | /* end confdefs.h. */ | |
7069 | #include <sys/types.h> | |
7070 | #include <sys/stat.h> | |
b0b1c2c0 | 7071 | |
b4e70030 | 7072 | #if defined(S_ISBLK) && defined(S_IFDIR) |
bec39cab AC |
7073 | # if S_ISBLK (S_IFDIR) |
7074 | You lose. | |
7075 | # endif | |
7076 | #endif | |
b0b1c2c0 | 7077 | |
b4e70030 | 7078 | #if defined(S_ISBLK) && defined(S_IFCHR) |
bec39cab AC |
7079 | # if S_ISBLK (S_IFCHR) |
7080 | You lose. | |
7081 | # endif | |
7082 | #endif | |
d28f9cdf | 7083 | |
b4e70030 | 7084 | #if defined(S_ISLNK) && defined(S_IFREG) |
bec39cab AC |
7085 | # if S_ISLNK (S_IFREG) |
7086 | You lose. | |
7087 | # endif | |
7088 | #endif | |
d28f9cdf | 7089 | |
b4e70030 | 7090 | #if defined(S_ISSOCK) && defined(S_IFREG) |
bec39cab AC |
7091 | # if S_ISSOCK (S_IFREG) |
7092 | You lose. | |
7093 | # endif | |
7094 | #endif | |
7095 | ||
7096 | _ACEOF | |
7097 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7098 | $EGREP "You lose" >/dev/null 2>&1; then | |
7099 | ac_cv_header_stat_broken=yes | |
d28f9cdf | 7100 | else |
bec39cab | 7101 | ac_cv_header_stat_broken=no |
d28f9cdf DJ |
7102 | fi |
7103 | rm -f conftest* | |
d28f9cdf | 7104 | |
d28f9cdf | 7105 | fi |
b4e70030 JB |
7106 | echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5 |
7107 | echo "${ECHO_T}$ac_cv_header_stat_broken" >&6 | |
bec39cab | 7108 | if test $ac_cv_header_stat_broken = yes; then |
d28f9cdf | 7109 | |
bec39cab AC |
7110 | cat >>confdefs.h <<\_ACEOF |
7111 | #define STAT_MACROS_BROKEN 1 | |
7112 | _ACEOF | |
8bb2c122 | 7113 | |
7a292a7a | 7114 | fi |
bec39cab | 7115 | |
b4e70030 JB |
7116 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
7117 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
bec39cab AC |
7118 | if test "${ac_cv_header_stdc+set}" = set; then |
7119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7a292a7a | 7120 | else |
bec39cab AC |
7121 | cat >conftest.$ac_ext <<_ACEOF |
7122 | /* confdefs.h. */ | |
7123 | _ACEOF | |
7124 | cat confdefs.h >>conftest.$ac_ext | |
7125 | cat >>conftest.$ac_ext <<_ACEOF | |
7126 | /* end confdefs.h. */ | |
7127 | #include <stdlib.h> | |
7128 | #include <stdarg.h> | |
7129 | #include <string.h> | |
7130 | #include <float.h> | |
7a292a7a | 7131 | |
bec39cab AC |
7132 | int |
7133 | main () | |
7134 | { | |
7a292a7a | 7135 | |
bec39cab AC |
7136 | ; |
7137 | return 0; | |
7138 | } | |
7139 | _ACEOF | |
7140 | rm -f conftest.$ac_objext | |
7141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7142 | (eval $ac_compile) 2>conftest.er1 | |
7143 | ac_status=$? | |
7144 | grep -v '^ *+' conftest.er1 >conftest.err | |
7145 | rm -f conftest.er1 | |
7146 | cat conftest.err >&5 | |
7147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7148 | (exit $ac_status); } && | |
b4e70030 JB |
7149 | { ac_try='test -z "$ac_c_werror_flag" |
7150 | || test ! -s conftest.err' | |
bec39cab AC |
7151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7152 | (eval $ac_try) 2>&5 | |
7153 | ac_status=$? | |
7154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7155 | (exit $ac_status); }; } && | |
7156 | { ac_try='test -s conftest.$ac_objext' | |
7157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7158 | (eval $ac_try) 2>&5 | |
7159 | ac_status=$? | |
7160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7161 | (exit $ac_status); }; }; then | |
7162 | ac_cv_header_stdc=yes | |
c906108c | 7163 | else |
bec39cab AC |
7164 | echo "$as_me: failed program was:" >&5 |
7165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 7166 | |
b4e70030 | 7167 | ac_cv_header_stdc=no |
c906108c | 7168 | fi |
bec39cab | 7169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 7170 | |
bec39cab AC |
7171 | if test $ac_cv_header_stdc = yes; then |
7172 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7173 | cat >conftest.$ac_ext <<_ACEOF | |
7174 | /* confdefs.h. */ | |
7175 | _ACEOF | |
7176 | cat confdefs.h >>conftest.$ac_ext | |
7177 | cat >>conftest.$ac_ext <<_ACEOF | |
7178 | /* end confdefs.h. */ | |
7179 | #include <string.h> | |
c906108c | 7180 | |
bec39cab AC |
7181 | _ACEOF |
7182 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7183 | $EGREP "memchr" >/dev/null 2>&1; then | |
7184 | : | |
8bb2c122 | 7185 | else |
bec39cab | 7186 | ac_cv_header_stdc=no |
8bb2c122 | 7187 | fi |
bec39cab AC |
7188 | rm -f conftest* |
7189 | ||
c906108c SS |
7190 | fi |
7191 | ||
bec39cab AC |
7192 | if test $ac_cv_header_stdc = yes; then |
7193 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7194 | cat >conftest.$ac_ext <<_ACEOF | |
7195 | /* confdefs.h. */ | |
7196 | _ACEOF | |
7197 | cat confdefs.h >>conftest.$ac_ext | |
7198 | cat >>conftest.$ac_ext <<_ACEOF | |
7199 | /* end confdefs.h. */ | |
7200 | #include <stdlib.h> | |
7201 | ||
7202 | _ACEOF | |
7203 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7204 | $EGREP "free" >/dev/null 2>&1; then | |
7205 | : | |
c906108c | 7206 | else |
bec39cab | 7207 | ac_cv_header_stdc=no |
c906108c | 7208 | fi |
bec39cab AC |
7209 | rm -f conftest* |
7210 | ||
c906108c SS |
7211 | fi |
7212 | ||
bec39cab AC |
7213 | if test $ac_cv_header_stdc = yes; then |
7214 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7215 | if test "$cross_compiling" = yes; then | |
7216 | : | |
c906108c | 7217 | else |
bec39cab AC |
7218 | cat >conftest.$ac_ext <<_ACEOF |
7219 | /* confdefs.h. */ | |
7220 | _ACEOF | |
7221 | cat confdefs.h >>conftest.$ac_ext | |
7222 | cat >>conftest.$ac_ext <<_ACEOF | |
7223 | /* end confdefs.h. */ | |
7224 | #include <ctype.h> | |
7225 | #if ((' ' & 0x0FF) == 0x020) | |
7226 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7227 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7228 | #else | |
7229 | # define ISLOWER(c) \ | |
7230 | (('a' <= (c) && (c) <= 'i') \ | |
7231 | || ('j' <= (c) && (c) <= 'r') \ | |
7232 | || ('s' <= (c) && (c) <= 'z')) | |
7233 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7234 | #endif | |
7235 | ||
7236 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7237 | int | |
7238 | main () | |
7239 | { | |
7240 | int i; | |
7241 | for (i = 0; i < 256; i++) | |
7242 | if (XOR (islower (i), ISLOWER (i)) | |
7243 | || toupper (i) != TOUPPER (i)) | |
b4e70030 JB |
7244 | exit(2); |
7245 | exit (0); | |
bec39cab AC |
7246 | } |
7247 | _ACEOF | |
7248 | rm -f conftest$ac_exeext | |
7249 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7250 | (eval $ac_link) 2>&5 | |
7251 | ac_status=$? | |
7252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7253 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7255 | (eval $ac_try) 2>&5 | |
7256 | ac_status=$? | |
7257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7258 | (exit $ac_status); }; }; then | |
7259 | : | |
7260 | else | |
7261 | echo "$as_me: program exited with status $ac_status" >&5 | |
7262 | echo "$as_me: failed program was:" >&5 | |
7263 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7264 | ||
7265 | ( exit $ac_status ) | |
7266 | ac_cv_header_stdc=no | |
c906108c | 7267 | fi |
b4e70030 | 7268 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 7269 | fi |
c906108c | 7270 | fi |
bec39cab | 7271 | fi |
b4e70030 JB |
7272 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
7273 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
bec39cab | 7274 | if test $ac_cv_header_stdc = yes; then |
c906108c | 7275 | |
bec39cab AC |
7276 | cat >>confdefs.h <<\_ACEOF |
7277 | #define STDC_HEADERS 1 | |
7278 | _ACEOF | |
c906108c | 7279 | |
bec39cab | 7280 | fi |
8bb2c122 | 7281 | |
bec39cab | 7282 | |
7cb9022a | 7283 | for ac_header in nlist.h |
bec39cab AC |
7284 | do |
7285 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7286 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7287 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7288 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7289 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7291 | fi | |
b4e70030 JB |
7292 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7293 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7294 | else |
7295 | # Is the header compilable? | |
b4e70030 JB |
7296 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7297 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7298 | cat >conftest.$ac_ext <<_ACEOF |
7299 | /* confdefs.h. */ | |
7300 | _ACEOF | |
7301 | cat confdefs.h >>conftest.$ac_ext | |
7302 | cat >>conftest.$ac_ext <<_ACEOF | |
7303 | /* end confdefs.h. */ | |
7304 | $ac_includes_default | |
7305 | #include <$ac_header> | |
7306 | _ACEOF | |
7307 | rm -f conftest.$ac_objext | |
7308 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7309 | (eval $ac_compile) 2>conftest.er1 | |
7310 | ac_status=$? | |
7311 | grep -v '^ *+' conftest.er1 >conftest.err | |
7312 | rm -f conftest.er1 | |
7313 | cat conftest.err >&5 | |
7314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7315 | (exit $ac_status); } && | |
b4e70030 JB |
7316 | { ac_try='test -z "$ac_c_werror_flag" |
7317 | || test ! -s conftest.err' | |
bec39cab AC |
7318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7319 | (eval $ac_try) 2>&5 | |
7320 | ac_status=$? | |
7321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7322 | (exit $ac_status); }; } && | |
7323 | { ac_try='test -s conftest.$ac_objext' | |
7324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7325 | (eval $ac_try) 2>&5 | |
7326 | ac_status=$? | |
7327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7328 | (exit $ac_status); }; }; then | |
7329 | ac_header_compiler=yes | |
7330 | else | |
7331 | echo "$as_me: failed program was:" >&5 | |
7332 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7333 | ||
b4e70030 | 7334 | ac_header_compiler=no |
bec39cab AC |
7335 | fi |
7336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7337 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7338 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7339 | |
7340 | # Is the header present? | |
b4e70030 JB |
7341 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7342 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7343 | cat >conftest.$ac_ext <<_ACEOF |
7344 | /* confdefs.h. */ | |
7345 | _ACEOF | |
7346 | cat confdefs.h >>conftest.$ac_ext | |
7347 | cat >>conftest.$ac_ext <<_ACEOF | |
7348 | /* end confdefs.h. */ | |
7349 | #include <$ac_header> | |
7350 | _ACEOF | |
7351 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7352 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7353 | ac_status=$? | |
7354 | grep -v '^ *+' conftest.er1 >conftest.err | |
7355 | rm -f conftest.er1 | |
7356 | cat conftest.err >&5 | |
7357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7358 | (exit $ac_status); } >/dev/null; then | |
7359 | if test -s conftest.err; then | |
7360 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7361 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7362 | else | |
7363 | ac_cpp_err= | |
7364 | fi | |
c906108c | 7365 | else |
bec39cab | 7366 | ac_cpp_err=yes |
c906108c | 7367 | fi |
bec39cab AC |
7368 | if test -z "$ac_cpp_err"; then |
7369 | ac_header_preproc=yes | |
c906108c | 7370 | else |
bec39cab AC |
7371 | echo "$as_me: failed program was:" >&5 |
7372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8bb2c122 | 7373 | |
bec39cab AC |
7374 | ac_header_preproc=no |
7375 | fi | |
7376 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
7377 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7378 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 7379 | |
bec39cab AC |
7380 | # So? What about this header? |
7381 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7382 | yes:no: ) | |
7383 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7384 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7385 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7386 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7387 | ac_header_preproc=yes | |
7388 | ;; | |
7389 | no:yes:* ) | |
7390 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7391 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7392 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7393 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7394 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7395 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7396 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7397 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7398 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7399 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7400 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7401 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7402 | ( |
7403 | cat <<\_ASBOX | |
7404 | ## ------------------------------------------ ## | |
7405 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7406 | ## ------------------------------------------ ## | |
7407 | _ASBOX | |
7408 | ) | | |
7409 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7410 | ;; |
7411 | esac | |
b4e70030 JB |
7412 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7413 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7414 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
95ca63c4 | 7416 | else |
bec39cab | 7417 | eval "$as_ac_Header=\$ac_header_preproc" |
95ca63c4 | 7418 | fi |
b4e70030 JB |
7419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7420 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7421 | |
95ca63c4 | 7422 | fi |
bec39cab AC |
7423 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7424 | cat >>confdefs.h <<_ACEOF | |
7425 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7426 | _ACEOF | |
7427 | ||
95ca63c4 CF |
7428 | fi |
7429 | ||
bec39cab | 7430 | done |
95ca63c4 CF |
7431 | |
7432 | ||
7cb9022a | 7433 | for ac_header in link.h |
bec39cab AC |
7434 | do |
7435 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7436 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7437 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7438 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 7440 | else |
7cb9022a | 7441 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
7442 | /* confdefs.h. */ |
7443 | _ACEOF | |
7444 | cat confdefs.h >>conftest.$ac_ext | |
7445 | cat >>conftest.$ac_ext <<_ACEOF | |
7446 | /* end confdefs.h. */ | |
7cb9022a MK |
7447 | #if HAVE_SYS_TYPES_H |
7448 | # include <sys/types.h> | |
7449 | #endif | |
7450 | #if HAVE_NLIST_H | |
7451 | # include <nlist.h> | |
7452 | #endif | |
7453 | ||
7454 | ||
bec39cab AC |
7455 | #include <$ac_header> |
7456 | _ACEOF | |
7457 | rm -f conftest.$ac_objext | |
7458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7459 | (eval $ac_compile) 2>conftest.er1 | |
7460 | ac_status=$? | |
7461 | grep -v '^ *+' conftest.er1 >conftest.err | |
7462 | rm -f conftest.er1 | |
7463 | cat conftest.err >&5 | |
7464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7465 | (exit $ac_status); } && | |
b4e70030 JB |
7466 | { ac_try='test -z "$ac_c_werror_flag" |
7467 | || test ! -s conftest.err' | |
bec39cab AC |
7468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7469 | (eval $ac_try) 2>&5 | |
7470 | ac_status=$? | |
7471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7472 | (exit $ac_status); }; } && | |
7473 | { ac_try='test -s conftest.$ac_objext' | |
7474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7475 | (eval $ac_try) 2>&5 | |
7476 | ac_status=$? | |
7477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7478 | (exit $ac_status); }; }; then | |
7cb9022a | 7479 | eval "$as_ac_Header=yes" |
bec39cab AC |
7480 | else |
7481 | echo "$as_me: failed program was:" >&5 | |
7482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7483 | ||
b4e70030 | 7484 | eval "$as_ac_Header=no" |
bec39cab AC |
7485 | fi |
7486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
bec39cab | 7487 | fi |
b4e70030 JB |
7488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7489 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7490 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7491 | cat >>confdefs.h <<_ACEOF | |
7492 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7493 | _ACEOF | |
95ca63c4 | 7494 | |
bec39cab | 7495 | fi |
95ca63c4 | 7496 | |
bec39cab | 7497 | done |
95ca63c4 | 7498 | |
c906108c | 7499 | |
7cb9022a | 7500 | for ac_header in machine/reg.h |
bec39cab AC |
7501 | do |
7502 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7503 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7504 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7505 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7506 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7508 | fi | |
b4e70030 JB |
7509 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7510 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7511 | else |
7512 | # Is the header compilable? | |
b4e70030 JB |
7513 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7514 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7515 | cat >conftest.$ac_ext <<_ACEOF |
7516 | /* confdefs.h. */ | |
7517 | _ACEOF | |
7518 | cat confdefs.h >>conftest.$ac_ext | |
7519 | cat >>conftest.$ac_ext <<_ACEOF | |
7520 | /* end confdefs.h. */ | |
7521 | $ac_includes_default | |
7522 | #include <$ac_header> | |
7523 | _ACEOF | |
7524 | rm -f conftest.$ac_objext | |
7525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7526 | (eval $ac_compile) 2>conftest.er1 | |
7527 | ac_status=$? | |
7528 | grep -v '^ *+' conftest.er1 >conftest.err | |
7529 | rm -f conftest.er1 | |
7530 | cat conftest.err >&5 | |
7531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7532 | (exit $ac_status); } && | |
b4e70030 JB |
7533 | { ac_try='test -z "$ac_c_werror_flag" |
7534 | || test ! -s conftest.err' | |
bec39cab AC |
7535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7536 | (eval $ac_try) 2>&5 | |
7537 | ac_status=$? | |
7538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7539 | (exit $ac_status); }; } && | |
7540 | { ac_try='test -s conftest.$ac_objext' | |
7541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7542 | (eval $ac_try) 2>&5 | |
7543 | ac_status=$? | |
7544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7545 | (exit $ac_status); }; }; then | |
7546 | ac_header_compiler=yes | |
7547 | else | |
7548 | echo "$as_me: failed program was:" >&5 | |
7549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7550 | ||
b4e70030 | 7551 | ac_header_compiler=no |
bec39cab AC |
7552 | fi |
7553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7554 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7555 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7556 | |
7557 | # Is the header present? | |
b4e70030 JB |
7558 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7559 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7560 | cat >conftest.$ac_ext <<_ACEOF |
7561 | /* confdefs.h. */ | |
7562 | _ACEOF | |
7563 | cat confdefs.h >>conftest.$ac_ext | |
7564 | cat >>conftest.$ac_ext <<_ACEOF | |
7565 | /* end confdefs.h. */ | |
7566 | #include <$ac_header> | |
7567 | _ACEOF | |
7568 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7569 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7570 | ac_status=$? | |
7571 | grep -v '^ *+' conftest.er1 >conftest.err | |
7572 | rm -f conftest.er1 | |
7573 | cat conftest.err >&5 | |
7574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7575 | (exit $ac_status); } >/dev/null; then | |
7576 | if test -s conftest.err; then | |
7577 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7578 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7579 | else | |
7580 | ac_cpp_err= | |
7581 | fi | |
75c6e08a | 7582 | else |
bec39cab | 7583 | ac_cpp_err=yes |
75c6e08a | 7584 | fi |
bec39cab AC |
7585 | if test -z "$ac_cpp_err"; then |
7586 | ac_header_preproc=yes | |
7587 | else | |
7588 | echo "$as_me: failed program was:" >&5 | |
7589 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7590 | ||
7591 | ac_header_preproc=no | |
75c6e08a | 7592 | fi |
bec39cab | 7593 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7594 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7595 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
7596 | |
7597 | # So? What about this header? | |
7598 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7599 | yes:no: ) | |
7600 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7601 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7602 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7603 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7604 | ac_header_preproc=yes | |
7605 | ;; | |
7606 | no:yes:* ) | |
7607 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7608 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7609 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7610 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7611 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7612 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7613 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7614 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7615 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7616 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7617 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7618 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7619 | ( |
7620 | cat <<\_ASBOX | |
7621 | ## ------------------------------------------ ## | |
7622 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7623 | ## ------------------------------------------ ## | |
7624 | _ASBOX | |
7625 | ) | | |
7626 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7627 | ;; |
7628 | esac | |
b4e70030 JB |
7629 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7631 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
75c6e08a | 7633 | else |
bec39cab AC |
7634 | eval "$as_ac_Header=\$ac_header_preproc" |
7635 | fi | |
b4e70030 JB |
7636 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7637 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 7638 | |
75c6e08a | 7639 | fi |
bec39cab AC |
7640 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7641 | cat >>confdefs.h <<_ACEOF | |
7642 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7643 | _ACEOF | |
75c6e08a | 7644 | |
bec39cab | 7645 | fi |
75c6e08a | 7646 | |
bec39cab | 7647 | done |
75c6e08a MK |
7648 | |
7649 | ||
9a156167 | 7650 | |
bec39cab AC |
7651 | for ac_header in poll.h sys/poll.h |
7652 | do | |
7653 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7654 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7655 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7656 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7657 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7659 | fi | |
b4e70030 JB |
7660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7661 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7662 | else |
7663 | # Is the header compilable? | |
b4e70030 JB |
7664 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7665 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7666 | cat >conftest.$ac_ext <<_ACEOF |
7667 | /* confdefs.h. */ | |
7668 | _ACEOF | |
7669 | cat confdefs.h >>conftest.$ac_ext | |
7670 | cat >>conftest.$ac_ext <<_ACEOF | |
7671 | /* end confdefs.h. */ | |
7672 | $ac_includes_default | |
7673 | #include <$ac_header> | |
7674 | _ACEOF | |
7675 | rm -f conftest.$ac_objext | |
7676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7677 | (eval $ac_compile) 2>conftest.er1 | |
7678 | ac_status=$? | |
7679 | grep -v '^ *+' conftest.er1 >conftest.err | |
7680 | rm -f conftest.er1 | |
7681 | cat conftest.err >&5 | |
7682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7683 | (exit $ac_status); } && | |
b4e70030 JB |
7684 | { ac_try='test -z "$ac_c_werror_flag" |
7685 | || test ! -s conftest.err' | |
bec39cab AC |
7686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7687 | (eval $ac_try) 2>&5 | |
7688 | ac_status=$? | |
7689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7690 | (exit $ac_status); }; } && | |
7691 | { ac_try='test -s conftest.$ac_objext' | |
7692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7693 | (eval $ac_try) 2>&5 | |
7694 | ac_status=$? | |
7695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7696 | (exit $ac_status); }; }; then | |
7697 | ac_header_compiler=yes | |
7698 | else | |
7699 | echo "$as_me: failed program was:" >&5 | |
7700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7701 | ||
b4e70030 | 7702 | ac_header_compiler=no |
bec39cab AC |
7703 | fi |
7704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
7705 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
7706 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
7707 | |
7708 | # Is the header present? | |
b4e70030 JB |
7709 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
7710 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
7711 | cat >conftest.$ac_ext <<_ACEOF |
7712 | /* confdefs.h. */ | |
7713 | _ACEOF | |
7714 | cat confdefs.h >>conftest.$ac_ext | |
7715 | cat >>conftest.$ac_ext <<_ACEOF | |
7716 | /* end confdefs.h. */ | |
7717 | #include <$ac_header> | |
7718 | _ACEOF | |
7719 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7720 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7721 | ac_status=$? | |
7722 | grep -v '^ *+' conftest.er1 >conftest.err | |
7723 | rm -f conftest.er1 | |
7724 | cat conftest.err >&5 | |
7725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7726 | (exit $ac_status); } >/dev/null; then | |
7727 | if test -s conftest.err; then | |
7728 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7729 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7730 | else | |
7731 | ac_cpp_err= | |
7732 | fi | |
9a156167 | 7733 | else |
bec39cab | 7734 | ac_cpp_err=yes |
9a156167 | 7735 | fi |
bec39cab AC |
7736 | if test -z "$ac_cpp_err"; then |
7737 | ac_header_preproc=yes | |
7738 | else | |
7739 | echo "$as_me: failed program was:" >&5 | |
7740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 7741 | |
bec39cab | 7742 | ac_header_preproc=no |
9a156167 | 7743 | fi |
bec39cab | 7744 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
7745 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
7746 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 7747 | |
bec39cab AC |
7748 | # So? What about this header? |
7749 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7750 | yes:no: ) | |
7751 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7752 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7753 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7754 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7755 | ac_header_preproc=yes | |
7756 | ;; | |
7757 | no:yes:* ) | |
7758 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7759 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7760 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7761 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7762 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7763 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7764 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7765 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7766 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7767 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7768 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7769 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
7770 | ( |
7771 | cat <<\_ASBOX | |
7772 | ## ------------------------------------------ ## | |
7773 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7774 | ## ------------------------------------------ ## | |
7775 | _ASBOX | |
7776 | ) | | |
7777 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
7778 | ;; |
7779 | esac | |
b4e70030 JB |
7780 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
7781 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7782 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 7783 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 7784 | else |
bec39cab | 7785 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 7786 | fi |
b4e70030 JB |
7787 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7788 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 | 7789 | |
bec39cab AC |
7790 | fi |
7791 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7792 | cat >>confdefs.h <<_ACEOF | |
7793 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7794 | _ACEOF | |
9a156167 | 7795 | |
bec39cab | 7796 | fi |
9a156167 | 7797 | |
bec39cab | 7798 | done |
9a156167 | 7799 | |
9a156167 | 7800 | |
9a156167 | 7801 | |
bec39cab AC |
7802 | |
7803 | for ac_header in proc_service.h thread_db.h gnu/libc-version.h | |
7804 | do | |
7805 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
7806 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
7807 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7808 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7809 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
7810 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7811 | fi | |
b4e70030 JB |
7812 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
7813 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
7814 | else |
7815 | # Is the header compilable? | |
b4e70030 JB |
7816 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
7817 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
7818 | cat >conftest.$ac_ext <<_ACEOF |
7819 | /* confdefs.h. */ | |
7820 | _ACEOF | |
7821 | cat confdefs.h >>conftest.$ac_ext | |
7822 | cat >>conftest.$ac_ext <<_ACEOF | |
436868fb DP |
7823 | /* end confdefs.h. */ |
7824 | $ac_includes_default | |
7825 | #include <$ac_header> | |
7826 | _ACEOF | |
7827 | rm -f conftest.$ac_objext | |
7828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7829 | (eval $ac_compile) 2>conftest.er1 | |
7830 | ac_status=$? | |
7831 | grep -v '^ *+' conftest.er1 >conftest.err | |
7832 | rm -f conftest.er1 | |
7833 | cat conftest.err >&5 | |
7834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7835 | (exit $ac_status); } && | |
7836 | { ac_try='test -z "$ac_c_werror_flag" | |
7837 | || test ! -s conftest.err' | |
7838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7839 | (eval $ac_try) 2>&5 | |
7840 | ac_status=$? | |
7841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7842 | (exit $ac_status); }; } && | |
7843 | { ac_try='test -s conftest.$ac_objext' | |
7844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7845 | (eval $ac_try) 2>&5 | |
7846 | ac_status=$? | |
7847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7848 | (exit $ac_status); }; }; then | |
7849 | ac_header_compiler=yes | |
7850 | else | |
7851 | echo "$as_me: failed program was:" >&5 | |
7852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7853 | ||
7854 | ac_header_compiler=no | |
7855 | fi | |
7856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7857 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7858 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7859 | ||
7860 | # Is the header present? | |
7861 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7862 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
7863 | cat >conftest.$ac_ext <<_ACEOF | |
7864 | /* confdefs.h. */ | |
7865 | _ACEOF | |
7866 | cat confdefs.h >>conftest.$ac_ext | |
7867 | cat >>conftest.$ac_ext <<_ACEOF | |
7868 | /* end confdefs.h. */ | |
7869 | #include <$ac_header> | |
7870 | _ACEOF | |
7871 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7872 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7873 | ac_status=$? | |
7874 | grep -v '^ *+' conftest.er1 >conftest.err | |
7875 | rm -f conftest.er1 | |
7876 | cat conftest.err >&5 | |
7877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7878 | (exit $ac_status); } >/dev/null; then | |
7879 | if test -s conftest.err; then | |
7880 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7881 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7882 | else | |
7883 | ac_cpp_err= | |
7884 | fi | |
7885 | else | |
7886 | ac_cpp_err=yes | |
7887 | fi | |
7888 | if test -z "$ac_cpp_err"; then | |
7889 | ac_header_preproc=yes | |
7890 | else | |
7891 | echo "$as_me: failed program was:" >&5 | |
7892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7893 | ||
7894 | ac_header_preproc=no | |
7895 | fi | |
7896 | rm -f conftest.err conftest.$ac_ext | |
7897 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7898 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7899 | ||
7900 | # So? What about this header? | |
7901 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7902 | yes:no: ) | |
7903 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7904 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7905 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7906 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7907 | ac_header_preproc=yes | |
7908 | ;; | |
7909 | no:yes:* ) | |
7910 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7911 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7912 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7913 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7914 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7915 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7916 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7917 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7918 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7919 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7920 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7921 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7922 | ( | |
7923 | cat <<\_ASBOX | |
7924 | ## ------------------------------------------ ## | |
7925 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7926 | ## ------------------------------------------ ## | |
7927 | _ASBOX | |
7928 | ) | | |
7929 | sed "s/^/$as_me: WARNING: /" >&2 | |
7930 | ;; | |
7931 | esac | |
7932 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7933 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7934 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7936 | else | |
7937 | eval "$as_ac_Header=\$ac_header_preproc" | |
7938 | fi | |
7939 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7940 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7941 | ||
7942 | fi | |
7943 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7944 | cat >>confdefs.h <<_ACEOF | |
7945 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7946 | _ACEOF | |
7947 | ||
7948 | fi | |
7949 | ||
7950 | done | |
7951 | ||
7952 | ||
7953 | for ac_header in signal.h | |
7954 | do | |
7955 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7956 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7957 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7958 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7959 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7961 | fi | |
7962 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7963 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7964 | else | |
7965 | # Is the header compilable? | |
7966 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7967 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
7968 | cat >conftest.$ac_ext <<_ACEOF | |
7969 | /* confdefs.h. */ | |
7970 | _ACEOF | |
7971 | cat confdefs.h >>conftest.$ac_ext | |
7972 | cat >>conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
7973 | /* end confdefs.h. */ |
7974 | $ac_includes_default | |
7975 | #include <$ac_header> | |
7976 | _ACEOF | |
7977 | rm -f conftest.$ac_objext | |
7978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7979 | (eval $ac_compile) 2>conftest.er1 | |
7980 | ac_status=$? | |
7981 | grep -v '^ *+' conftest.er1 >conftest.err | |
7982 | rm -f conftest.er1 | |
7983 | cat conftest.err >&5 | |
7984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7985 | (exit $ac_status); } && | |
b4e70030 JB |
7986 | { ac_try='test -z "$ac_c_werror_flag" |
7987 | || test ! -s conftest.err' | |
bec39cab AC |
7988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7989 | (eval $ac_try) 2>&5 | |
7990 | ac_status=$? | |
7991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7992 | (exit $ac_status); }; } && | |
7993 | { ac_try='test -s conftest.$ac_objext' | |
7994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7995 | (eval $ac_try) 2>&5 | |
7996 | ac_status=$? | |
7997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7998 | (exit $ac_status); }; }; then | |
7999 | ac_header_compiler=yes | |
8000 | else | |
8001 | echo "$as_me: failed program was:" >&5 | |
8002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8003 | ||
b4e70030 | 8004 | ac_header_compiler=no |
bec39cab AC |
8005 | fi |
8006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8007 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8008 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8009 | |
8010 | # Is the header present? | |
b4e70030 JB |
8011 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8012 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8013 | cat >conftest.$ac_ext <<_ACEOF |
8014 | /* confdefs.h. */ | |
8015 | _ACEOF | |
8016 | cat confdefs.h >>conftest.$ac_ext | |
8017 | cat >>conftest.$ac_ext <<_ACEOF | |
8018 | /* end confdefs.h. */ | |
8019 | #include <$ac_header> | |
8020 | _ACEOF | |
8021 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8022 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8023 | ac_status=$? | |
8024 | grep -v '^ *+' conftest.er1 >conftest.err | |
8025 | rm -f conftest.er1 | |
8026 | cat conftest.err >&5 | |
8027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8028 | (exit $ac_status); } >/dev/null; then | |
8029 | if test -s conftest.err; then | |
8030 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8031 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8032 | else | |
8033 | ac_cpp_err= | |
8034 | fi | |
9a156167 | 8035 | else |
bec39cab | 8036 | ac_cpp_err=yes |
9a156167 | 8037 | fi |
bec39cab AC |
8038 | if test -z "$ac_cpp_err"; then |
8039 | ac_header_preproc=yes | |
8040 | else | |
8041 | echo "$as_me: failed program was:" >&5 | |
8042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9a156167 | 8043 | |
bec39cab | 8044 | ac_header_preproc=no |
9a156167 | 8045 | fi |
bec39cab | 8046 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8047 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8048 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9a156167 | 8049 | |
bec39cab AC |
8050 | # So? What about this header? |
8051 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8052 | yes:no: ) | |
8053 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8054 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8055 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8056 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8057 | ac_header_preproc=yes | |
8058 | ;; | |
8059 | no:yes:* ) | |
8060 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8061 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8062 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8063 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8064 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8065 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8066 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8067 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8068 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8069 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8070 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8071 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8072 | ( |
8073 | cat <<\_ASBOX | |
8074 | ## ------------------------------------------ ## | |
8075 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8076 | ## ------------------------------------------ ## | |
8077 | _ASBOX | |
8078 | ) | | |
8079 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8080 | ;; |
8081 | esac | |
b4e70030 JB |
8082 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8083 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8084 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 8086 | else |
bec39cab | 8087 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 8088 | fi |
b4e70030 JB |
8089 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8090 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9a156167 MK |
8091 | |
8092 | fi | |
bec39cab AC |
8093 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8094 | cat >>confdefs.h <<_ACEOF | |
8095 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8096 | _ACEOF | |
9a156167 | 8097 | |
bec39cab AC |
8098 | fi |
8099 | ||
8100 | done | |
9a156167 | 8101 | |
c890192f | 8102 | |
bec39cab AC |
8103 | for ac_header in stddef.h |
8104 | do | |
8105 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8106 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8107 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8108 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8109 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8111 | fi | |
b4e70030 JB |
8112 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8113 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8114 | else |
8115 | # Is the header compilable? | |
b4e70030 JB |
8116 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8117 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8118 | cat >conftest.$ac_ext <<_ACEOF |
8119 | /* confdefs.h. */ | |
8120 | _ACEOF | |
8121 | cat confdefs.h >>conftest.$ac_ext | |
8122 | cat >>conftest.$ac_ext <<_ACEOF | |
8123 | /* end confdefs.h. */ | |
8124 | $ac_includes_default | |
8125 | #include <$ac_header> | |
8126 | _ACEOF | |
8127 | rm -f conftest.$ac_objext | |
8128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8129 | (eval $ac_compile) 2>conftest.er1 | |
8130 | ac_status=$? | |
8131 | grep -v '^ *+' conftest.er1 >conftest.err | |
8132 | rm -f conftest.er1 | |
8133 | cat conftest.err >&5 | |
8134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8135 | (exit $ac_status); } && | |
b4e70030 JB |
8136 | { ac_try='test -z "$ac_c_werror_flag" |
8137 | || test ! -s conftest.err' | |
bec39cab AC |
8138 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8139 | (eval $ac_try) 2>&5 | |
8140 | ac_status=$? | |
8141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8142 | (exit $ac_status); }; } && | |
8143 | { ac_try='test -s conftest.$ac_objext' | |
8144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8145 | (eval $ac_try) 2>&5 | |
8146 | ac_status=$? | |
8147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8148 | (exit $ac_status); }; }; then | |
8149 | ac_header_compiler=yes | |
8150 | else | |
8151 | echo "$as_me: failed program was:" >&5 | |
8152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8153 | ||
b4e70030 | 8154 | ac_header_compiler=no |
bec39cab AC |
8155 | fi |
8156 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8157 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8158 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8159 | |
8160 | # Is the header present? | |
b4e70030 JB |
8161 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8162 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8163 | cat >conftest.$ac_ext <<_ACEOF |
8164 | /* confdefs.h. */ | |
8165 | _ACEOF | |
8166 | cat confdefs.h >>conftest.$ac_ext | |
8167 | cat >>conftest.$ac_ext <<_ACEOF | |
8168 | /* end confdefs.h. */ | |
8169 | #include <$ac_header> | |
8170 | _ACEOF | |
8171 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8172 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8173 | ac_status=$? | |
8174 | grep -v '^ *+' conftest.er1 >conftest.err | |
8175 | rm -f conftest.er1 | |
8176 | cat conftest.err >&5 | |
8177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8178 | (exit $ac_status); } >/dev/null; then | |
8179 | if test -s conftest.err; then | |
8180 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8181 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8182 | else | |
8183 | ac_cpp_err= | |
8184 | fi | |
c890192f | 8185 | else |
bec39cab AC |
8186 | ac_cpp_err=yes |
8187 | fi | |
8188 | if test -z "$ac_cpp_err"; then | |
8189 | ac_header_preproc=yes | |
c890192f | 8190 | else |
bec39cab AC |
8191 | echo "$as_me: failed program was:" >&5 |
8192 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8193 | ||
8194 | ac_header_preproc=no | |
c890192f | 8195 | fi |
bec39cab | 8196 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8197 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8198 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8199 | |
8200 | # So? What about this header? | |
8201 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8202 | yes:no: ) | |
8203 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8204 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8205 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8206 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8207 | ac_header_preproc=yes | |
8208 | ;; | |
8209 | no:yes:* ) | |
8210 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8211 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8212 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8213 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8214 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8215 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8216 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8217 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8218 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8219 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8220 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8221 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8222 | ( |
8223 | cat <<\_ASBOX | |
8224 | ## ------------------------------------------ ## | |
8225 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8226 | ## ------------------------------------------ ## | |
8227 | _ASBOX | |
8228 | ) | | |
8229 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8230 | ;; |
8231 | esac | |
b4e70030 JB |
8232 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8233 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8234 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c890192f | 8236 | else |
bec39cab | 8237 | eval "$as_ac_Header=\$ac_header_preproc" |
c890192f | 8238 | fi |
b4e70030 JB |
8239 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8240 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 8241 | |
c890192f | 8242 | fi |
bec39cab AC |
8243 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8244 | cat >>confdefs.h <<_ACEOF | |
8245 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8246 | _ACEOF | |
c890192f | 8247 | |
c890192f MK |
8248 | fi |
8249 | ||
bec39cab | 8250 | done |
9a156167 | 8251 | |
bec39cab AC |
8252 | |
8253 | for ac_header in stdlib.h | |
8254 | do | |
8255 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8256 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8257 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8258 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8259 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8260 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8261 | fi | |
b4e70030 JB |
8262 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8263 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8264 | else |
8265 | # Is the header compilable? | |
b4e70030 JB |
8266 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8267 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8268 | cat >conftest.$ac_ext <<_ACEOF |
8269 | /* confdefs.h. */ | |
8270 | _ACEOF | |
8271 | cat confdefs.h >>conftest.$ac_ext | |
8272 | cat >>conftest.$ac_ext <<_ACEOF | |
8273 | /* end confdefs.h. */ | |
8274 | $ac_includes_default | |
8275 | #include <$ac_header> | |
8276 | _ACEOF | |
8277 | rm -f conftest.$ac_objext | |
8278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8279 | (eval $ac_compile) 2>conftest.er1 | |
8280 | ac_status=$? | |
8281 | grep -v '^ *+' conftest.er1 >conftest.err | |
8282 | rm -f conftest.er1 | |
8283 | cat conftest.err >&5 | |
8284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8285 | (exit $ac_status); } && | |
b4e70030 JB |
8286 | { ac_try='test -z "$ac_c_werror_flag" |
8287 | || test ! -s conftest.err' | |
bec39cab AC |
8288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8289 | (eval $ac_try) 2>&5 | |
8290 | ac_status=$? | |
8291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8292 | (exit $ac_status); }; } && | |
8293 | { ac_try='test -s conftest.$ac_objext' | |
8294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8295 | (eval $ac_try) 2>&5 | |
8296 | ac_status=$? | |
8297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8298 | (exit $ac_status); }; }; then | |
8299 | ac_header_compiler=yes | |
8300 | else | |
8301 | echo "$as_me: failed program was:" >&5 | |
8302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8303 | ||
b4e70030 | 8304 | ac_header_compiler=no |
bec39cab AC |
8305 | fi |
8306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8307 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8308 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8309 | |
8310 | # Is the header present? | |
b4e70030 JB |
8311 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8312 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8313 | cat >conftest.$ac_ext <<_ACEOF |
8314 | /* confdefs.h. */ | |
8315 | _ACEOF | |
8316 | cat confdefs.h >>conftest.$ac_ext | |
8317 | cat >>conftest.$ac_ext <<_ACEOF | |
8318 | /* end confdefs.h. */ | |
8319 | #include <$ac_header> | |
8320 | _ACEOF | |
8321 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8322 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8323 | ac_status=$? | |
8324 | grep -v '^ *+' conftest.er1 >conftest.err | |
8325 | rm -f conftest.er1 | |
8326 | cat conftest.err >&5 | |
8327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8328 | (exit $ac_status); } >/dev/null; then | |
8329 | if test -s conftest.err; then | |
8330 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8331 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8332 | else | |
8333 | ac_cpp_err= | |
8334 | fi | |
9a156167 | 8335 | else |
bec39cab AC |
8336 | ac_cpp_err=yes |
8337 | fi | |
8338 | if test -z "$ac_cpp_err"; then | |
8339 | ac_header_preproc=yes | |
9a156167 | 8340 | else |
bec39cab AC |
8341 | echo "$as_me: failed program was:" >&5 |
8342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8343 | ||
8344 | ac_header_preproc=no | |
9a156167 | 8345 | fi |
bec39cab | 8346 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8347 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8348 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8349 | |
8350 | # So? What about this header? | |
8351 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8352 | yes:no: ) | |
8353 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8354 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8355 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8356 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8357 | ac_header_preproc=yes | |
8358 | ;; | |
8359 | no:yes:* ) | |
8360 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8361 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8362 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8363 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8364 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8365 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8366 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8367 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8368 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8369 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8370 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8371 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8372 | ( |
8373 | cat <<\_ASBOX | |
8374 | ## ------------------------------------------ ## | |
8375 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8376 | ## ------------------------------------------ ## | |
8377 | _ASBOX | |
8378 | ) | | |
8379 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8380 | ;; |
8381 | esac | |
b4e70030 JB |
8382 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8383 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8384 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8385 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9a156167 | 8386 | else |
bec39cab | 8387 | eval "$as_ac_Header=\$ac_header_preproc" |
9a156167 | 8388 | fi |
b4e70030 JB |
8389 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8390 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 8391 | |
9a156167 | 8392 | fi |
bec39cab AC |
8393 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8394 | cat >>confdefs.h <<_ACEOF | |
8395 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8396 | _ACEOF | |
9a156167 | 8397 | |
9a156167 MK |
8398 | fi |
8399 | ||
bec39cab AC |
8400 | done |
8401 | ||
06825bd1 | 8402 | |
bec39cab AC |
8403 | for ac_header in stdint.h |
8404 | do | |
8405 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8406 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8407 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8408 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8409 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8411 | fi | |
b4e70030 JB |
8412 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8413 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8414 | else |
8415 | # Is the header compilable? | |
b4e70030 JB |
8416 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8417 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8418 | cat >conftest.$ac_ext <<_ACEOF |
8419 | /* confdefs.h. */ | |
8420 | _ACEOF | |
8421 | cat confdefs.h >>conftest.$ac_ext | |
8422 | cat >>conftest.$ac_ext <<_ACEOF | |
8423 | /* end confdefs.h. */ | |
8424 | $ac_includes_default | |
8425 | #include <$ac_header> | |
8426 | _ACEOF | |
8427 | rm -f conftest.$ac_objext | |
8428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8429 | (eval $ac_compile) 2>conftest.er1 | |
8430 | ac_status=$? | |
8431 | grep -v '^ *+' conftest.er1 >conftest.err | |
8432 | rm -f conftest.er1 | |
8433 | cat conftest.err >&5 | |
8434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8435 | (exit $ac_status); } && | |
b4e70030 JB |
8436 | { ac_try='test -z "$ac_c_werror_flag" |
8437 | || test ! -s conftest.err' | |
bec39cab AC |
8438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8439 | (eval $ac_try) 2>&5 | |
8440 | ac_status=$? | |
8441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8442 | (exit $ac_status); }; } && | |
8443 | { ac_try='test -s conftest.$ac_objext' | |
8444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8445 | (eval $ac_try) 2>&5 | |
8446 | ac_status=$? | |
8447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8448 | (exit $ac_status); }; }; then | |
8449 | ac_header_compiler=yes | |
8450 | else | |
8451 | echo "$as_me: failed program was:" >&5 | |
8452 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8453 | ||
b4e70030 | 8454 | ac_header_compiler=no |
bec39cab AC |
8455 | fi |
8456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8457 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8458 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8459 | |
8460 | # Is the header present? | |
b4e70030 JB |
8461 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8462 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8463 | cat >conftest.$ac_ext <<_ACEOF |
8464 | /* confdefs.h. */ | |
8465 | _ACEOF | |
8466 | cat confdefs.h >>conftest.$ac_ext | |
8467 | cat >>conftest.$ac_ext <<_ACEOF | |
8468 | /* end confdefs.h. */ | |
8469 | #include <$ac_header> | |
8470 | _ACEOF | |
8471 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8472 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8473 | ac_status=$? | |
8474 | grep -v '^ *+' conftest.er1 >conftest.err | |
8475 | rm -f conftest.er1 | |
8476 | cat conftest.err >&5 | |
8477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8478 | (exit $ac_status); } >/dev/null; then | |
8479 | if test -s conftest.err; then | |
8480 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8481 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8482 | else | |
8483 | ac_cpp_err= | |
8484 | fi | |
06825bd1 | 8485 | else |
bec39cab AC |
8486 | ac_cpp_err=yes |
8487 | fi | |
8488 | if test -z "$ac_cpp_err"; then | |
8489 | ac_header_preproc=yes | |
06825bd1 | 8490 | else |
bec39cab AC |
8491 | echo "$as_me: failed program was:" >&5 |
8492 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8493 | ||
8494 | ac_header_preproc=no | |
06825bd1 | 8495 | fi |
bec39cab | 8496 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8497 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8498 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8499 | |
8500 | # So? What about this header? | |
8501 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8502 | yes:no: ) | |
8503 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8504 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8505 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8506 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8507 | ac_header_preproc=yes | |
8508 | ;; | |
8509 | no:yes:* ) | |
8510 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8511 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8512 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8513 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8514 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8515 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8516 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8517 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8518 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8519 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8520 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8521 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8522 | ( |
8523 | cat <<\_ASBOX | |
8524 | ## ------------------------------------------ ## | |
8525 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8526 | ## ------------------------------------------ ## | |
8527 | _ASBOX | |
8528 | ) | | |
8529 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8530 | ;; |
8531 | esac | |
b4e70030 JB |
8532 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8533 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8534 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
06825bd1 | 8536 | else |
bec39cab | 8537 | eval "$as_ac_Header=\$ac_header_preproc" |
06825bd1 | 8538 | fi |
b4e70030 JB |
8539 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8540 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 8541 | |
06825bd1 | 8542 | fi |
bec39cab AC |
8543 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8544 | cat >>confdefs.h <<_ACEOF | |
8545 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8546 | _ACEOF | |
06825bd1 | 8547 | |
06825bd1 | 8548 | fi |
4f0be353 | 8549 | |
bec39cab | 8550 | done |
4f0be353 | 8551 | |
06825bd1 | 8552 | |
06825bd1 | 8553 | |
bec39cab AC |
8554 | |
8555 | for ac_header in string.h memory.h strings.h | |
8556 | do | |
8557 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8558 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8559 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8560 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8561 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8563 | fi | |
b4e70030 JB |
8564 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8565 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8566 | else |
8567 | # Is the header compilable? | |
b4e70030 JB |
8568 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8569 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8570 | cat >conftest.$ac_ext <<_ACEOF |
8571 | /* confdefs.h. */ | |
8572 | _ACEOF | |
8573 | cat confdefs.h >>conftest.$ac_ext | |
8574 | cat >>conftest.$ac_ext <<_ACEOF | |
8575 | /* end confdefs.h. */ | |
8576 | $ac_includes_default | |
8577 | #include <$ac_header> | |
8578 | _ACEOF | |
8579 | rm -f conftest.$ac_objext | |
8580 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8581 | (eval $ac_compile) 2>conftest.er1 | |
8582 | ac_status=$? | |
8583 | grep -v '^ *+' conftest.er1 >conftest.err | |
8584 | rm -f conftest.er1 | |
8585 | cat conftest.err >&5 | |
8586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8587 | (exit $ac_status); } && | |
b4e70030 JB |
8588 | { ac_try='test -z "$ac_c_werror_flag" |
8589 | || test ! -s conftest.err' | |
bec39cab AC |
8590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8591 | (eval $ac_try) 2>&5 | |
8592 | ac_status=$? | |
8593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8594 | (exit $ac_status); }; } && | |
8595 | { ac_try='test -s conftest.$ac_objext' | |
8596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8597 | (eval $ac_try) 2>&5 | |
8598 | ac_status=$? | |
8599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8600 | (exit $ac_status); }; }; then | |
8601 | ac_header_compiler=yes | |
8602 | else | |
8603 | echo "$as_me: failed program was:" >&5 | |
8604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8605 | ||
b4e70030 | 8606 | ac_header_compiler=no |
bec39cab AC |
8607 | fi |
8608 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8609 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8610 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8611 | |
8612 | # Is the header present? | |
b4e70030 JB |
8613 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8614 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8615 | cat >conftest.$ac_ext <<_ACEOF |
8616 | /* confdefs.h. */ | |
8617 | _ACEOF | |
8618 | cat confdefs.h >>conftest.$ac_ext | |
8619 | cat >>conftest.$ac_ext <<_ACEOF | |
8620 | /* end confdefs.h. */ | |
8621 | #include <$ac_header> | |
8622 | _ACEOF | |
8623 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8624 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8625 | ac_status=$? | |
8626 | grep -v '^ *+' conftest.er1 >conftest.err | |
8627 | rm -f conftest.er1 | |
8628 | cat conftest.err >&5 | |
8629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8630 | (exit $ac_status); } >/dev/null; then | |
8631 | if test -s conftest.err; then | |
8632 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8633 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8634 | else | |
8635 | ac_cpp_err= | |
8636 | fi | |
06825bd1 | 8637 | else |
bec39cab AC |
8638 | ac_cpp_err=yes |
8639 | fi | |
8640 | if test -z "$ac_cpp_err"; then | |
8641 | ac_header_preproc=yes | |
06825bd1 | 8642 | else |
bec39cab AC |
8643 | echo "$as_me: failed program was:" >&5 |
8644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8645 | ||
8646 | ac_header_preproc=no | |
06825bd1 | 8647 | fi |
bec39cab | 8648 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8649 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8650 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8651 | |
8652 | # So? What about this header? | |
8653 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8654 | yes:no: ) | |
8655 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8656 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8657 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8658 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8659 | ac_header_preproc=yes | |
8660 | ;; | |
8661 | no:yes:* ) | |
8662 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8663 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8664 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8665 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8666 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8667 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8668 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8669 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8670 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8671 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8672 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8673 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8674 | ( |
8675 | cat <<\_ASBOX | |
8676 | ## ------------------------------------------ ## | |
8677 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8678 | ## ------------------------------------------ ## | |
8679 | _ASBOX | |
8680 | ) | | |
8681 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8682 | ;; |
8683 | esac | |
b4e70030 JB |
8684 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8685 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8686 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8688 | else | |
8689 | eval "$as_ac_Header=\$ac_header_preproc" | |
06825bd1 | 8690 | fi |
b4e70030 JB |
8691 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8692 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
06825bd1 | 8693 | |
06825bd1 | 8694 | fi |
bec39cab AC |
8695 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8696 | cat >>confdefs.h <<_ACEOF | |
8697 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8698 | _ACEOF | |
06825bd1 | 8699 | |
06825bd1 MK |
8700 | fi |
8701 | ||
bec39cab | 8702 | done |
5ee754fc | 8703 | |
bec39cab AC |
8704 | |
8705 | for ac_header in sys/fault.h | |
5ee754fc | 8706 | do |
bec39cab | 8707 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
8708 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8709 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8710 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8711 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8712 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8713 | fi | |
b4e70030 JB |
8714 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8715 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8716 | else |
8717 | # Is the header compilable? | |
b4e70030 JB |
8718 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8719 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8720 | cat >conftest.$ac_ext <<_ACEOF |
8721 | /* confdefs.h. */ | |
8722 | _ACEOF | |
8723 | cat confdefs.h >>conftest.$ac_ext | |
8724 | cat >>conftest.$ac_ext <<_ACEOF | |
8725 | /* end confdefs.h. */ | |
8726 | $ac_includes_default | |
8727 | #include <$ac_header> | |
8728 | _ACEOF | |
8729 | rm -f conftest.$ac_objext | |
8730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8731 | (eval $ac_compile) 2>conftest.er1 | |
8732 | ac_status=$? | |
8733 | grep -v '^ *+' conftest.er1 >conftest.err | |
8734 | rm -f conftest.er1 | |
8735 | cat conftest.err >&5 | |
8736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8737 | (exit $ac_status); } && | |
b4e70030 JB |
8738 | { ac_try='test -z "$ac_c_werror_flag" |
8739 | || test ! -s conftest.err' | |
bec39cab AC |
8740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8741 | (eval $ac_try) 2>&5 | |
8742 | ac_status=$? | |
8743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8744 | (exit $ac_status); }; } && | |
8745 | { ac_try='test -s conftest.$ac_objext' | |
8746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8747 | (eval $ac_try) 2>&5 | |
8748 | ac_status=$? | |
8749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8750 | (exit $ac_status); }; }; then | |
8751 | ac_header_compiler=yes | |
8752 | else | |
8753 | echo "$as_me: failed program was:" >&5 | |
8754 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8755 | ||
b4e70030 | 8756 | ac_header_compiler=no |
bec39cab AC |
8757 | fi |
8758 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8759 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8760 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8761 | |
8762 | # Is the header present? | |
b4e70030 JB |
8763 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8764 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8765 | cat >conftest.$ac_ext <<_ACEOF |
8766 | /* confdefs.h. */ | |
8767 | _ACEOF | |
8768 | cat confdefs.h >>conftest.$ac_ext | |
8769 | cat >>conftest.$ac_ext <<_ACEOF | |
8770 | /* end confdefs.h. */ | |
8771 | #include <$ac_header> | |
8772 | _ACEOF | |
8773 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8774 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8775 | ac_status=$? | |
8776 | grep -v '^ *+' conftest.er1 >conftest.err | |
8777 | rm -f conftest.er1 | |
8778 | cat conftest.err >&5 | |
8779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8780 | (exit $ac_status); } >/dev/null; then | |
8781 | if test -s conftest.err; then | |
8782 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8783 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8784 | else | |
8785 | ac_cpp_err= | |
8786 | fi | |
5ee754fc | 8787 | else |
bec39cab | 8788 | ac_cpp_err=yes |
5ee754fc | 8789 | fi |
bec39cab AC |
8790 | if test -z "$ac_cpp_err"; then |
8791 | ac_header_preproc=yes | |
8792 | else | |
8793 | echo "$as_me: failed program was:" >&5 | |
8794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 8795 | |
bec39cab | 8796 | ac_header_preproc=no |
5ee754fc | 8797 | fi |
bec39cab | 8798 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8799 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8800 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
8801 | |
8802 | # So? What about this header? | |
8803 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8804 | yes:no: ) | |
8805 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8806 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8807 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8808 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8809 | ac_header_preproc=yes | |
8810 | ;; | |
8811 | no:yes:* ) | |
8812 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8813 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8814 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8815 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8816 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8817 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8818 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8819 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8820 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8821 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8822 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8823 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8824 | ( |
8825 | cat <<\_ASBOX | |
8826 | ## ------------------------------------------ ## | |
8827 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8828 | ## ------------------------------------------ ## | |
8829 | _ASBOX | |
8830 | ) | | |
8831 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8832 | ;; |
8833 | esac | |
b4e70030 JB |
8834 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8835 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8836 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 8838 | else |
bec39cab | 8839 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 8840 | fi |
b4e70030 JB |
8841 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8842 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
c906108c | 8843 | |
5ee754fc | 8844 | fi |
bec39cab AC |
8845 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8846 | cat >>confdefs.h <<_ACEOF | |
8847 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8848 | _ACEOF | |
c906108c | 8849 | |
5ee754fc | 8850 | fi |
bec39cab AC |
8851 | |
8852 | done | |
8853 | ||
8854 | ||
8855 | for ac_header in sys/file.h | |
8856 | do | |
8857 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
8858 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
8859 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8860 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8861 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
8862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8863 | fi | |
b4e70030 JB |
8864 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8865 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
8866 | else |
8867 | # Is the header compilable? | |
b4e70030 JB |
8868 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
8869 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
8870 | cat >conftest.$ac_ext <<_ACEOF |
8871 | /* confdefs.h. */ | |
8872 | _ACEOF | |
8873 | cat confdefs.h >>conftest.$ac_ext | |
8874 | cat >>conftest.$ac_ext <<_ACEOF | |
8875 | /* end confdefs.h. */ | |
8876 | $ac_includes_default | |
8877 | #include <$ac_header> | |
8878 | _ACEOF | |
8879 | rm -f conftest.$ac_objext | |
8880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8881 | (eval $ac_compile) 2>conftest.er1 | |
8882 | ac_status=$? | |
8883 | grep -v '^ *+' conftest.er1 >conftest.err | |
8884 | rm -f conftest.er1 | |
8885 | cat conftest.err >&5 | |
8886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8887 | (exit $ac_status); } && | |
b4e70030 JB |
8888 | { ac_try='test -z "$ac_c_werror_flag" |
8889 | || test ! -s conftest.err' | |
bec39cab AC |
8890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8891 | (eval $ac_try) 2>&5 | |
8892 | ac_status=$? | |
8893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8894 | (exit $ac_status); }; } && | |
8895 | { ac_try='test -s conftest.$ac_objext' | |
8896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8897 | (eval $ac_try) 2>&5 | |
8898 | ac_status=$? | |
8899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8900 | (exit $ac_status); }; }; then | |
8901 | ac_header_compiler=yes | |
8902 | else | |
8903 | echo "$as_me: failed program was:" >&5 | |
8904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8905 | ||
b4e70030 | 8906 | ac_header_compiler=no |
bec39cab AC |
8907 | fi |
8908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
8909 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
8910 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
8911 | |
8912 | # Is the header present? | |
b4e70030 JB |
8913 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
8914 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
8915 | cat >conftest.$ac_ext <<_ACEOF |
8916 | /* confdefs.h. */ | |
8917 | _ACEOF | |
8918 | cat confdefs.h >>conftest.$ac_ext | |
8919 | cat >>conftest.$ac_ext <<_ACEOF | |
8920 | /* end confdefs.h. */ | |
8921 | #include <$ac_header> | |
8922 | _ACEOF | |
8923 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8924 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8925 | ac_status=$? | |
8926 | grep -v '^ *+' conftest.er1 >conftest.err | |
8927 | rm -f conftest.er1 | |
8928 | cat conftest.err >&5 | |
8929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8930 | (exit $ac_status); } >/dev/null; then | |
8931 | if test -s conftest.err; then | |
8932 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8933 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8934 | else | |
8935 | ac_cpp_err= | |
8936 | fi | |
5ee754fc | 8937 | else |
bec39cab | 8938 | ac_cpp_err=yes |
5ee754fc | 8939 | fi |
bec39cab AC |
8940 | if test -z "$ac_cpp_err"; then |
8941 | ac_header_preproc=yes | |
8942 | else | |
8943 | echo "$as_me: failed program was:" >&5 | |
8944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 8945 | |
bec39cab | 8946 | ac_header_preproc=no |
5ee754fc | 8947 | fi |
bec39cab | 8948 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
8949 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
8950 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 8951 | |
bec39cab AC |
8952 | # So? What about this header? |
8953 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8954 | yes:no: ) | |
8955 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8956 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8957 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8958 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8959 | ac_header_preproc=yes | |
8960 | ;; | |
8961 | no:yes:* ) | |
8962 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8963 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8964 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8965 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8966 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8967 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8968 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8969 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8970 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8971 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8972 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8973 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
8974 | ( |
8975 | cat <<\_ASBOX | |
8976 | ## ------------------------------------------ ## | |
8977 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8978 | ## ------------------------------------------ ## | |
8979 | _ASBOX | |
8980 | ) | | |
8981 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
8982 | ;; |
8983 | esac | |
b4e70030 JB |
8984 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
8985 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8986 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 8987 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 8988 | else |
bec39cab AC |
8989 | eval "$as_ac_Header=\$ac_header_preproc" |
8990 | fi | |
b4e70030 JB |
8991 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
8992 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 8993 | |
bec39cab AC |
8994 | fi |
8995 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8996 | cat >>confdefs.h <<_ACEOF | |
8997 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8998 | _ACEOF | |
5ee754fc | 8999 | |
bec39cab | 9000 | fi |
5ee754fc | 9001 | |
bec39cab | 9002 | done |
5ee754fc | 9003 | |
5ee754fc | 9004 | |
bec39cab AC |
9005 | for ac_header in sys/filio.h |
9006 | do | |
9007 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
9008 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9009 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9010 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9011 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9012 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9013 | fi | |
b4e70030 JB |
9014 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9015 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9016 | else |
9017 | # Is the header compilable? | |
b4e70030 JB |
9018 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9019 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9020 | cat >conftest.$ac_ext <<_ACEOF |
9021 | /* confdefs.h. */ | |
9022 | _ACEOF | |
9023 | cat confdefs.h >>conftest.$ac_ext | |
9024 | cat >>conftest.$ac_ext <<_ACEOF | |
9025 | /* end confdefs.h. */ | |
9026 | $ac_includes_default | |
9027 | #include <$ac_header> | |
9028 | _ACEOF | |
9029 | rm -f conftest.$ac_objext | |
9030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9031 | (eval $ac_compile) 2>conftest.er1 | |
9032 | ac_status=$? | |
9033 | grep -v '^ *+' conftest.er1 >conftest.err | |
9034 | rm -f conftest.er1 | |
9035 | cat conftest.err >&5 | |
9036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9037 | (exit $ac_status); } && | |
b4e70030 JB |
9038 | { ac_try='test -z "$ac_c_werror_flag" |
9039 | || test ! -s conftest.err' | |
bec39cab AC |
9040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9041 | (eval $ac_try) 2>&5 | |
9042 | ac_status=$? | |
9043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9044 | (exit $ac_status); }; } && | |
9045 | { ac_try='test -s conftest.$ac_objext' | |
9046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9047 | (eval $ac_try) 2>&5 | |
9048 | ac_status=$? | |
9049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9050 | (exit $ac_status); }; }; then | |
9051 | ac_header_compiler=yes | |
9052 | else | |
9053 | echo "$as_me: failed program was:" >&5 | |
9054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9055 | ||
b4e70030 | 9056 | ac_header_compiler=no |
bec39cab AC |
9057 | fi |
9058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9059 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9060 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9061 | |
9062 | # Is the header present? | |
b4e70030 JB |
9063 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9064 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9065 | cat >conftest.$ac_ext <<_ACEOF |
9066 | /* confdefs.h. */ | |
9067 | _ACEOF | |
9068 | cat confdefs.h >>conftest.$ac_ext | |
9069 | cat >>conftest.$ac_ext <<_ACEOF | |
9070 | /* end confdefs.h. */ | |
9071 | #include <$ac_header> | |
9072 | _ACEOF | |
9073 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9074 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9075 | ac_status=$? | |
9076 | grep -v '^ *+' conftest.er1 >conftest.err | |
9077 | rm -f conftest.er1 | |
9078 | cat conftest.err >&5 | |
9079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9080 | (exit $ac_status); } >/dev/null; then | |
9081 | if test -s conftest.err; then | |
9082 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9083 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9084 | else | |
9085 | ac_cpp_err= | |
9086 | fi | |
5ee754fc | 9087 | else |
bec39cab | 9088 | ac_cpp_err=yes |
5ee754fc | 9089 | fi |
bec39cab AC |
9090 | if test -z "$ac_cpp_err"; then |
9091 | ac_header_preproc=yes | |
9092 | else | |
9093 | echo "$as_me: failed program was:" >&5 | |
9094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 9095 | |
bec39cab | 9096 | ac_header_preproc=no |
5ee754fc | 9097 | fi |
bec39cab | 9098 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9099 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9100 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9101 | |
bec39cab AC |
9102 | # So? What about this header? |
9103 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9104 | yes:no: ) | |
9105 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9106 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9107 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9108 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9109 | ac_header_preproc=yes | |
9110 | ;; | |
9111 | no:yes:* ) | |
9112 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9113 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9114 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9115 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9116 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9117 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9118 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9119 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9120 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9121 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9122 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9123 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9124 | ( |
9125 | cat <<\_ASBOX | |
9126 | ## ------------------------------------------ ## | |
9127 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9128 | ## ------------------------------------------ ## | |
9129 | _ASBOX | |
9130 | ) | | |
9131 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9132 | ;; |
9133 | esac | |
b4e70030 JB |
9134 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9135 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9136 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 9138 | else |
bec39cab | 9139 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 9140 | fi |
b4e70030 JB |
9141 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9142 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 9143 | |
5ee754fc | 9144 | fi |
bec39cab AC |
9145 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9146 | cat >>confdefs.h <<_ACEOF | |
9147 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9148 | _ACEOF | |
5ee754fc MK |
9149 | |
9150 | fi | |
9151 | ||
bec39cab AC |
9152 | done |
9153 | ||
9154 | ||
9155 | for ac_header in sys/ioctl.h | |
9156 | do | |
9157 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
9158 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9159 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9160 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9161 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9163 | fi | |
b4e70030 JB |
9164 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9165 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9166 | else |
9167 | # Is the header compilable? | |
b4e70030 JB |
9168 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9169 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9170 | cat >conftest.$ac_ext <<_ACEOF |
9171 | /* confdefs.h. */ | |
9172 | _ACEOF | |
9173 | cat confdefs.h >>conftest.$ac_ext | |
9174 | cat >>conftest.$ac_ext <<_ACEOF | |
9175 | /* end confdefs.h. */ | |
9176 | $ac_includes_default | |
9177 | #include <$ac_header> | |
9178 | _ACEOF | |
9179 | rm -f conftest.$ac_objext | |
9180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9181 | (eval $ac_compile) 2>conftest.er1 | |
9182 | ac_status=$? | |
9183 | grep -v '^ *+' conftest.er1 >conftest.err | |
9184 | rm -f conftest.er1 | |
9185 | cat conftest.err >&5 | |
9186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9187 | (exit $ac_status); } && | |
b4e70030 JB |
9188 | { ac_try='test -z "$ac_c_werror_flag" |
9189 | || test ! -s conftest.err' | |
bec39cab AC |
9190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9191 | (eval $ac_try) 2>&5 | |
9192 | ac_status=$? | |
9193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9194 | (exit $ac_status); }; } && | |
9195 | { ac_try='test -s conftest.$ac_objext' | |
9196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9197 | (eval $ac_try) 2>&5 | |
9198 | ac_status=$? | |
9199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9200 | (exit $ac_status); }; }; then | |
9201 | ac_header_compiler=yes | |
9202 | else | |
9203 | echo "$as_me: failed program was:" >&5 | |
9204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9205 | ||
b4e70030 | 9206 | ac_header_compiler=no |
bec39cab AC |
9207 | fi |
9208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9209 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9210 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9211 | |
9212 | # Is the header present? | |
b4e70030 JB |
9213 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9214 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9215 | cat >conftest.$ac_ext <<_ACEOF |
9216 | /* confdefs.h. */ | |
9217 | _ACEOF | |
9218 | cat confdefs.h >>conftest.$ac_ext | |
9219 | cat >>conftest.$ac_ext <<_ACEOF | |
9220 | /* end confdefs.h. */ | |
9221 | #include <$ac_header> | |
9222 | _ACEOF | |
9223 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9224 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9225 | ac_status=$? | |
9226 | grep -v '^ *+' conftest.er1 >conftest.err | |
9227 | rm -f conftest.er1 | |
9228 | cat conftest.err >&5 | |
9229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9230 | (exit $ac_status); } >/dev/null; then | |
9231 | if test -s conftest.err; then | |
9232 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9233 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9234 | else | |
9235 | ac_cpp_err= | |
9236 | fi | |
5ee754fc | 9237 | else |
bec39cab | 9238 | ac_cpp_err=yes |
5ee754fc | 9239 | fi |
bec39cab AC |
9240 | if test -z "$ac_cpp_err"; then |
9241 | ac_header_preproc=yes | |
9242 | else | |
9243 | echo "$as_me: failed program was:" >&5 | |
9244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 9245 | |
bec39cab | 9246 | ac_header_preproc=no |
5ee754fc | 9247 | fi |
bec39cab | 9248 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9249 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9250 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9251 | |
bec39cab AC |
9252 | # So? What about this header? |
9253 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9254 | yes:no: ) | |
9255 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9256 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9257 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9258 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9259 | ac_header_preproc=yes | |
9260 | ;; | |
9261 | no:yes:* ) | |
9262 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9263 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9264 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9265 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9266 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9267 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9268 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9269 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9270 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9271 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9272 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9273 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9274 | ( |
9275 | cat <<\_ASBOX | |
9276 | ## ------------------------------------------ ## | |
9277 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9278 | ## ------------------------------------------ ## | |
9279 | _ASBOX | |
9280 | ) | | |
9281 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9282 | ;; |
9283 | esac | |
b4e70030 JB |
9284 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9285 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9286 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9608ab8b | 9288 | else |
bec39cab | 9289 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 9290 | fi |
b4e70030 JB |
9291 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9292 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc MK |
9293 | |
9294 | fi | |
bec39cab AC |
9295 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9296 | cat >>confdefs.h <<_ACEOF | |
9297 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9298 | _ACEOF | |
9299 | ||
5ee754fc MK |
9300 | fi |
9301 | ||
bec39cab | 9302 | done |
5ee754fc | 9303 | |
5ee754fc | 9304 | |
bec39cab | 9305 | for ac_header in sys/param.h |
5ee754fc | 9306 | do |
bec39cab | 9307 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9308 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9309 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9311 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9313 | fi | |
b4e70030 JB |
9314 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9315 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9316 | else |
9317 | # Is the header compilable? | |
b4e70030 JB |
9318 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9319 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9320 | cat >conftest.$ac_ext <<_ACEOF |
9321 | /* confdefs.h. */ | |
9322 | _ACEOF | |
9323 | cat confdefs.h >>conftest.$ac_ext | |
9324 | cat >>conftest.$ac_ext <<_ACEOF | |
9325 | /* end confdefs.h. */ | |
9326 | $ac_includes_default | |
9327 | #include <$ac_header> | |
9328 | _ACEOF | |
9329 | rm -f conftest.$ac_objext | |
9330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9331 | (eval $ac_compile) 2>conftest.er1 | |
9332 | ac_status=$? | |
9333 | grep -v '^ *+' conftest.er1 >conftest.err | |
9334 | rm -f conftest.er1 | |
9335 | cat conftest.err >&5 | |
9336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9337 | (exit $ac_status); } && | |
b4e70030 JB |
9338 | { ac_try='test -z "$ac_c_werror_flag" |
9339 | || test ! -s conftest.err' | |
bec39cab AC |
9340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9341 | (eval $ac_try) 2>&5 | |
9342 | ac_status=$? | |
9343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9344 | (exit $ac_status); }; } && | |
9345 | { ac_try='test -s conftest.$ac_objext' | |
9346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9347 | (eval $ac_try) 2>&5 | |
9348 | ac_status=$? | |
9349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9350 | (exit $ac_status); }; }; then | |
9351 | ac_header_compiler=yes | |
9352 | else | |
9353 | echo "$as_me: failed program was:" >&5 | |
9354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9355 | ||
b4e70030 | 9356 | ac_header_compiler=no |
bec39cab AC |
9357 | fi |
9358 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9359 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9360 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9361 | |
9362 | # Is the header present? | |
b4e70030 JB |
9363 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9364 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9365 | cat >conftest.$ac_ext <<_ACEOF |
9366 | /* confdefs.h. */ | |
9367 | _ACEOF | |
9368 | cat confdefs.h >>conftest.$ac_ext | |
9369 | cat >>conftest.$ac_ext <<_ACEOF | |
9370 | /* end confdefs.h. */ | |
9371 | #include <$ac_header> | |
9372 | _ACEOF | |
9373 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9374 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9375 | ac_status=$? | |
9376 | grep -v '^ *+' conftest.er1 >conftest.err | |
9377 | rm -f conftest.er1 | |
9378 | cat conftest.err >&5 | |
9379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9380 | (exit $ac_status); } >/dev/null; then | |
9381 | if test -s conftest.err; then | |
9382 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9383 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9384 | else | |
9385 | ac_cpp_err= | |
9386 | fi | |
5ee754fc | 9387 | else |
bec39cab | 9388 | ac_cpp_err=yes |
5ee754fc | 9389 | fi |
bec39cab AC |
9390 | if test -z "$ac_cpp_err"; then |
9391 | ac_header_preproc=yes | |
9392 | else | |
9393 | echo "$as_me: failed program was:" >&5 | |
9394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5ee754fc | 9395 | |
bec39cab | 9396 | ac_header_preproc=no |
5ee754fc | 9397 | fi |
bec39cab | 9398 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9399 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9400 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
9401 | |
9402 | # So? What about this header? | |
9403 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9404 | yes:no: ) | |
9405 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9406 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9407 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9408 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9409 | ac_header_preproc=yes | |
9410 | ;; | |
9411 | no:yes:* ) | |
9412 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9413 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9414 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9415 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9416 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9417 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9418 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9419 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9420 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9421 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9422 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9423 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9424 | ( |
9425 | cat <<\_ASBOX | |
9426 | ## ------------------------------------------ ## | |
9427 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9428 | ## ------------------------------------------ ## | |
9429 | _ASBOX | |
9430 | ) | | |
9431 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9432 | ;; |
9433 | esac | |
b4e70030 JB |
9434 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9435 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9436 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9437 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5ee754fc | 9438 | else |
bec39cab | 9439 | eval "$as_ac_Header=\$ac_header_preproc" |
5ee754fc | 9440 | fi |
b4e70030 JB |
9441 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9442 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5ee754fc | 9443 | |
5ee754fc | 9444 | fi |
bec39cab AC |
9445 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9446 | cat >>confdefs.h <<_ACEOF | |
9447 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9448 | _ACEOF | |
9449 | ||
5ee754fc | 9450 | fi |
bec39cab | 9451 | |
5ee754fc MK |
9452 | done |
9453 | ||
bec39cab | 9454 | |
7eb368b3 NR |
9455 | for ac_header in sys/resource.h |
9456 | do | |
9457 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9458 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9459 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9460 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9461 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9463 | fi | |
9464 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9465 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9466 | else | |
9467 | # Is the header compilable? | |
9468 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9469 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9470 | cat >conftest.$ac_ext <<_ACEOF | |
9471 | /* confdefs.h. */ | |
9472 | _ACEOF | |
9473 | cat confdefs.h >>conftest.$ac_ext | |
9474 | cat >>conftest.$ac_ext <<_ACEOF | |
9475 | /* end confdefs.h. */ | |
9476 | $ac_includes_default | |
9477 | #include <$ac_header> | |
9478 | _ACEOF | |
9479 | rm -f conftest.$ac_objext | |
9480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9481 | (eval $ac_compile) 2>conftest.er1 | |
9482 | ac_status=$? | |
9483 | grep -v '^ *+' conftest.er1 >conftest.err | |
9484 | rm -f conftest.er1 | |
9485 | cat conftest.err >&5 | |
9486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9487 | (exit $ac_status); } && | |
9488 | { ac_try='test -z "$ac_c_werror_flag" | |
9489 | || test ! -s conftest.err' | |
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); }; } && | |
9495 | { ac_try='test -s conftest.$ac_objext' | |
9496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9497 | (eval $ac_try) 2>&5 | |
9498 | ac_status=$? | |
9499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9500 | (exit $ac_status); }; }; then | |
9501 | ac_header_compiler=yes | |
9502 | else | |
9503 | echo "$as_me: failed program was:" >&5 | |
9504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9505 | ||
9506 | ac_header_compiler=no | |
9507 | fi | |
9508 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9509 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9510 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9511 | ||
9512 | # Is the header present? | |
9513 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9514 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9515 | cat >conftest.$ac_ext <<_ACEOF | |
9516 | /* confdefs.h. */ | |
9517 | _ACEOF | |
9518 | cat confdefs.h >>conftest.$ac_ext | |
9519 | cat >>conftest.$ac_ext <<_ACEOF | |
9520 | /* end confdefs.h. */ | |
9521 | #include <$ac_header> | |
9522 | _ACEOF | |
9523 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9524 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9525 | ac_status=$? | |
9526 | grep -v '^ *+' conftest.er1 >conftest.err | |
9527 | rm -f conftest.er1 | |
9528 | cat conftest.err >&5 | |
9529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9530 | (exit $ac_status); } >/dev/null; then | |
9531 | if test -s conftest.err; then | |
9532 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9533 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9534 | else | |
9535 | ac_cpp_err= | |
9536 | fi | |
9537 | else | |
9538 | ac_cpp_err=yes | |
9539 | fi | |
9540 | if test -z "$ac_cpp_err"; then | |
9541 | ac_header_preproc=yes | |
9542 | else | |
9543 | echo "$as_me: failed program was:" >&5 | |
9544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9545 | ||
9546 | ac_header_preproc=no | |
9547 | fi | |
9548 | rm -f conftest.err conftest.$ac_ext | |
9549 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9550 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9551 | ||
9552 | # So? What about this header? | |
9553 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9554 | yes:no: ) | |
9555 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9556 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9557 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9558 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9559 | ac_header_preproc=yes | |
9560 | ;; | |
9561 | no:yes:* ) | |
9562 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9563 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9564 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9565 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9566 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9567 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9568 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9569 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9570 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9571 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9572 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9573 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9574 | ( | |
9575 | cat <<\_ASBOX | |
9576 | ## ------------------------------------------ ## | |
9577 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9578 | ## ------------------------------------------ ## | |
9579 | _ASBOX | |
9580 | ) | | |
9581 | sed "s/^/$as_me: WARNING: /" >&2 | |
9582 | ;; | |
9583 | esac | |
9584 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9585 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9586 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9588 | else | |
9589 | eval "$as_ac_Header=\$ac_header_preproc" | |
9590 | fi | |
9591 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9592 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9593 | ||
9594 | fi | |
9595 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9596 | cat >>confdefs.h <<_ACEOF | |
9597 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9598 | _ACEOF | |
9599 | ||
9600 | fi | |
9601 | ||
9602 | done | |
9603 | ||
9604 | ||
bec39cab | 9605 | for ac_header in sys/proc.h |
5ee754fc | 9606 | do |
bec39cab | 9607 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9608 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9609 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9610 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 9611 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 9612 | else |
7cb9022a | 9613 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
9614 | /* confdefs.h. */ |
9615 | _ACEOF | |
9616 | cat confdefs.h >>conftest.$ac_ext | |
9617 | cat >>conftest.$ac_ext <<_ACEOF | |
9618 | /* end confdefs.h. */ | |
7cb9022a MK |
9619 | #if HAVE_SYS_PARAM_H |
9620 | # include <sys/param.h> | |
9621 | #endif | |
9622 | ||
9623 | ||
bec39cab AC |
9624 | #include <$ac_header> |
9625 | _ACEOF | |
9626 | rm -f conftest.$ac_objext | |
9627 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9628 | (eval $ac_compile) 2>conftest.er1 | |
9629 | ac_status=$? | |
9630 | grep -v '^ *+' conftest.er1 >conftest.err | |
9631 | rm -f conftest.er1 | |
9632 | cat conftest.err >&5 | |
9633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9634 | (exit $ac_status); } && | |
b4e70030 JB |
9635 | { ac_try='test -z "$ac_c_werror_flag" |
9636 | || test ! -s conftest.err' | |
bec39cab AC |
9637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9638 | (eval $ac_try) 2>&5 | |
9639 | ac_status=$? | |
9640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9641 | (exit $ac_status); }; } && | |
9642 | { ac_try='test -s conftest.$ac_objext' | |
9643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9644 | (eval $ac_try) 2>&5 | |
9645 | ac_status=$? | |
9646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9647 | (exit $ac_status); }; }; then | |
7cb9022a | 9648 | eval "$as_ac_Header=yes" |
bec39cab AC |
9649 | else |
9650 | echo "$as_me: failed program was:" >&5 | |
9651 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9652 | ||
b4e70030 | 9653 | eval "$as_ac_Header=no" |
bec39cab AC |
9654 | fi |
9655 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 9656 | fi |
b4e70030 JB |
9657 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9658 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9659 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9660 | cat >>confdefs.h <<_ACEOF | |
9661 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9662 | _ACEOF | |
9663 | ||
5ee754fc | 9664 | fi |
bec39cab | 9665 | |
5ee754fc MK |
9666 | done |
9667 | ||
bec39cab AC |
9668 | |
9669 | for ac_header in sys/procfs.h | |
5ee754fc | 9670 | do |
bec39cab | 9671 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9672 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9673 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9674 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9675 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9677 | fi | |
b4e70030 JB |
9678 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9679 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9680 | else |
9681 | # Is the header compilable? | |
b4e70030 JB |
9682 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9683 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9684 | cat >conftest.$ac_ext <<_ACEOF |
9685 | /* confdefs.h. */ | |
9686 | _ACEOF | |
9687 | cat confdefs.h >>conftest.$ac_ext | |
9688 | cat >>conftest.$ac_ext <<_ACEOF | |
9689 | /* end confdefs.h. */ | |
9690 | $ac_includes_default | |
9691 | #include <$ac_header> | |
9692 | _ACEOF | |
9693 | rm -f conftest.$ac_objext | |
9694 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9695 | (eval $ac_compile) 2>conftest.er1 | |
9696 | ac_status=$? | |
9697 | grep -v '^ *+' conftest.er1 >conftest.err | |
9698 | rm -f conftest.er1 | |
9699 | cat conftest.err >&5 | |
9700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9701 | (exit $ac_status); } && | |
b4e70030 JB |
9702 | { ac_try='test -z "$ac_c_werror_flag" |
9703 | || test ! -s conftest.err' | |
bec39cab AC |
9704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9705 | (eval $ac_try) 2>&5 | |
9706 | ac_status=$? | |
9707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9708 | (exit $ac_status); }; } && | |
9709 | { ac_try='test -s conftest.$ac_objext' | |
9710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9711 | (eval $ac_try) 2>&5 | |
9712 | ac_status=$? | |
9713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9714 | (exit $ac_status); }; }; then | |
9715 | ac_header_compiler=yes | |
9716 | else | |
9717 | echo "$as_me: failed program was:" >&5 | |
9718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9719 | ||
b4e70030 | 9720 | ac_header_compiler=no |
bec39cab AC |
9721 | fi |
9722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9723 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9724 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9725 | |
9726 | # Is the header present? | |
b4e70030 JB |
9727 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9728 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9729 | cat >conftest.$ac_ext <<_ACEOF |
9730 | /* confdefs.h. */ | |
9731 | _ACEOF | |
9732 | cat confdefs.h >>conftest.$ac_ext | |
9733 | cat >>conftest.$ac_ext <<_ACEOF | |
9734 | /* end confdefs.h. */ | |
9735 | #include <$ac_header> | |
9736 | _ACEOF | |
9737 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9738 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9739 | ac_status=$? | |
9740 | grep -v '^ *+' conftest.er1 >conftest.err | |
9741 | rm -f conftest.er1 | |
9742 | cat conftest.err >&5 | |
9743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9744 | (exit $ac_status); } >/dev/null; then | |
9745 | if test -s conftest.err; then | |
9746 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9747 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9748 | else | |
9749 | ac_cpp_err= | |
9750 | fi | |
9751 | else | |
9752 | ac_cpp_err=yes | |
5ee754fc | 9753 | fi |
bec39cab AC |
9754 | if test -z "$ac_cpp_err"; then |
9755 | ac_header_preproc=yes | |
5ee754fc | 9756 | else |
bec39cab AC |
9757 | echo "$as_me: failed program was:" >&5 |
9758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9759 | ||
9760 | ac_header_preproc=no | |
5ee754fc | 9761 | fi |
bec39cab | 9762 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9763 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9764 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9765 | |
bec39cab AC |
9766 | # So? What about this header? |
9767 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9768 | yes:no: ) | |
9769 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9770 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9771 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9772 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9773 | ac_header_preproc=yes | |
9774 | ;; | |
9775 | no:yes:* ) | |
9776 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9777 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9778 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9779 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9780 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9781 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9782 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9783 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9784 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9785 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9786 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9787 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9788 | ( |
9789 | cat <<\_ASBOX | |
9790 | ## ------------------------------------------ ## | |
9791 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9792 | ## ------------------------------------------ ## | |
9793 | _ASBOX | |
9794 | ) | | |
9795 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9796 | ;; |
9797 | esac | |
b4e70030 JB |
9798 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9799 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9800 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9801 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9802 | else | |
9803 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9804 | fi |
b4e70030 JB |
9805 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9806 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9807 | |
5ee754fc | 9808 | fi |
bec39cab AC |
9809 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9810 | cat >>confdefs.h <<_ACEOF | |
9811 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9812 | _ACEOF | |
9813 | ||
5ee754fc | 9814 | fi |
bec39cab | 9815 | |
5ee754fc MK |
9816 | done |
9817 | ||
bec39cab AC |
9818 | |
9819 | ||
9820 | for ac_header in sys/ptrace.h ptrace.h | |
5ee754fc | 9821 | do |
bec39cab | 9822 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9823 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9824 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9825 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9826 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9828 | fi | |
b4e70030 JB |
9829 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9830 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9831 | else |
9832 | # Is the header compilable? | |
b4e70030 JB |
9833 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9834 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9835 | cat >conftest.$ac_ext <<_ACEOF |
9836 | /* confdefs.h. */ | |
9837 | _ACEOF | |
9838 | cat confdefs.h >>conftest.$ac_ext | |
9839 | cat >>conftest.$ac_ext <<_ACEOF | |
9840 | /* end confdefs.h. */ | |
9841 | $ac_includes_default | |
9842 | #include <$ac_header> | |
9843 | _ACEOF | |
9844 | rm -f conftest.$ac_objext | |
9845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9846 | (eval $ac_compile) 2>conftest.er1 | |
9847 | ac_status=$? | |
9848 | grep -v '^ *+' conftest.er1 >conftest.err | |
9849 | rm -f conftest.er1 | |
9850 | cat conftest.err >&5 | |
9851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9852 | (exit $ac_status); } && | |
b4e70030 JB |
9853 | { ac_try='test -z "$ac_c_werror_flag" |
9854 | || test ! -s conftest.err' | |
bec39cab AC |
9855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9856 | (eval $ac_try) 2>&5 | |
9857 | ac_status=$? | |
9858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9859 | (exit $ac_status); }; } && | |
9860 | { ac_try='test -s conftest.$ac_objext' | |
9861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9862 | (eval $ac_try) 2>&5 | |
9863 | ac_status=$? | |
9864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9865 | (exit $ac_status); }; }; then | |
9866 | ac_header_compiler=yes | |
9867 | else | |
9868 | echo "$as_me: failed program was:" >&5 | |
9869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9870 | ||
b4e70030 | 9871 | ac_header_compiler=no |
bec39cab AC |
9872 | fi |
9873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
9874 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
9875 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
9876 | |
9877 | # Is the header present? | |
b4e70030 JB |
9878 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
9879 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
9880 | cat >conftest.$ac_ext <<_ACEOF |
9881 | /* confdefs.h. */ | |
9882 | _ACEOF | |
9883 | cat confdefs.h >>conftest.$ac_ext | |
9884 | cat >>conftest.$ac_ext <<_ACEOF | |
9885 | /* end confdefs.h. */ | |
9886 | #include <$ac_header> | |
9887 | _ACEOF | |
9888 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9889 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9890 | ac_status=$? | |
9891 | grep -v '^ *+' conftest.er1 >conftest.err | |
9892 | rm -f conftest.er1 | |
9893 | cat conftest.err >&5 | |
9894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9895 | (exit $ac_status); } >/dev/null; then | |
9896 | if test -s conftest.err; then | |
9897 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9898 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9899 | else | |
9900 | ac_cpp_err= | |
9901 | fi | |
9902 | else | |
9903 | ac_cpp_err=yes | |
5ee754fc | 9904 | fi |
bec39cab AC |
9905 | if test -z "$ac_cpp_err"; then |
9906 | ac_header_preproc=yes | |
5ee754fc | 9907 | else |
bec39cab AC |
9908 | echo "$as_me: failed program was:" >&5 |
9909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9910 | ||
9911 | ac_header_preproc=no | |
5ee754fc | 9912 | fi |
bec39cab | 9913 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
9914 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
9915 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 9916 | |
bec39cab AC |
9917 | # So? What about this header? |
9918 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9919 | yes:no: ) | |
9920 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9921 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9922 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9923 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9924 | ac_header_preproc=yes | |
9925 | ;; | |
9926 | no:yes:* ) | |
9927 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9928 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9929 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9930 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9931 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9932 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9933 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9934 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9935 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9936 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9937 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9938 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
9939 | ( |
9940 | cat <<\_ASBOX | |
9941 | ## ------------------------------------------ ## | |
9942 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9943 | ## ------------------------------------------ ## | |
9944 | _ASBOX | |
9945 | ) | | |
9946 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
9947 | ;; |
9948 | esac | |
b4e70030 JB |
9949 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
9950 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9951 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9953 | else | |
9954 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 9955 | fi |
b4e70030 JB |
9956 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9957 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 9958 | |
5ee754fc | 9959 | fi |
bec39cab AC |
9960 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
9961 | cat >>confdefs.h <<_ACEOF | |
9962 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9963 | _ACEOF | |
9964 | ||
5ee754fc | 9965 | fi |
bec39cab | 9966 | |
5ee754fc MK |
9967 | done |
9968 | ||
bec39cab AC |
9969 | |
9970 | ||
9971 | for ac_header in sys/reg.h sys/debugreg.h | |
5ee754fc | 9972 | do |
bec39cab | 9973 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
9974 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
9975 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9976 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9977 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
9978 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9979 | fi | |
b4e70030 JB |
9980 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
9981 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
9982 | else |
9983 | # Is the header compilable? | |
b4e70030 JB |
9984 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
9985 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
9986 | cat >conftest.$ac_ext <<_ACEOF |
9987 | /* confdefs.h. */ | |
9988 | _ACEOF | |
9989 | cat confdefs.h >>conftest.$ac_ext | |
9990 | cat >>conftest.$ac_ext <<_ACEOF | |
9991 | /* end confdefs.h. */ | |
9992 | $ac_includes_default | |
9993 | #include <$ac_header> | |
9994 | _ACEOF | |
9995 | rm -f conftest.$ac_objext | |
9996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9997 | (eval $ac_compile) 2>conftest.er1 | |
9998 | ac_status=$? | |
9999 | grep -v '^ *+' conftest.er1 >conftest.err | |
10000 | rm -f conftest.er1 | |
10001 | cat conftest.err >&5 | |
10002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10003 | (exit $ac_status); } && | |
b4e70030 JB |
10004 | { ac_try='test -z "$ac_c_werror_flag" |
10005 | || test ! -s conftest.err' | |
bec39cab AC |
10006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10007 | (eval $ac_try) 2>&5 | |
10008 | ac_status=$? | |
10009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10010 | (exit $ac_status); }; } && | |
10011 | { ac_try='test -s conftest.$ac_objext' | |
10012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10013 | (eval $ac_try) 2>&5 | |
10014 | ac_status=$? | |
10015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10016 | (exit $ac_status); }; }; then | |
10017 | ac_header_compiler=yes | |
10018 | else | |
10019 | echo "$as_me: failed program was:" >&5 | |
10020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10021 | ||
b4e70030 | 10022 | ac_header_compiler=no |
bec39cab AC |
10023 | fi |
10024 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10025 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10026 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10027 | |
10028 | # Is the header present? | |
b4e70030 JB |
10029 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10030 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10031 | cat >conftest.$ac_ext <<_ACEOF |
10032 | /* confdefs.h. */ | |
10033 | _ACEOF | |
10034 | cat confdefs.h >>conftest.$ac_ext | |
10035 | cat >>conftest.$ac_ext <<_ACEOF | |
10036 | /* end confdefs.h. */ | |
10037 | #include <$ac_header> | |
10038 | _ACEOF | |
10039 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10040 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10041 | ac_status=$? | |
10042 | grep -v '^ *+' conftest.er1 >conftest.err | |
10043 | rm -f conftest.er1 | |
10044 | cat conftest.err >&5 | |
10045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10046 | (exit $ac_status); } >/dev/null; then | |
10047 | if test -s conftest.err; then | |
10048 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10049 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10050 | else | |
10051 | ac_cpp_err= | |
10052 | fi | |
10053 | else | |
10054 | ac_cpp_err=yes | |
5ee754fc | 10055 | fi |
bec39cab AC |
10056 | if test -z "$ac_cpp_err"; then |
10057 | ac_header_preproc=yes | |
5ee754fc | 10058 | else |
bec39cab AC |
10059 | echo "$as_me: failed program was:" >&5 |
10060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10061 | ||
10062 | ac_header_preproc=no | |
5ee754fc | 10063 | fi |
bec39cab | 10064 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10065 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10066 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10067 | |
bec39cab AC |
10068 | # So? What about this header? |
10069 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10070 | yes:no: ) | |
10071 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10072 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10073 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10074 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10075 | ac_header_preproc=yes | |
10076 | ;; | |
10077 | no:yes:* ) | |
10078 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10079 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10080 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10081 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10082 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10083 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10084 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10085 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10086 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10087 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10088 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10089 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10090 | ( |
10091 | cat <<\_ASBOX | |
10092 | ## ------------------------------------------ ## | |
10093 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10094 | ## ------------------------------------------ ## | |
10095 | _ASBOX | |
10096 | ) | | |
10097 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10098 | ;; |
10099 | esac | |
b4e70030 JB |
10100 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10101 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10102 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10103 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10104 | else | |
10105 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 10106 | fi |
b4e70030 JB |
10107 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10108 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10109 | |
5ee754fc | 10110 | fi |
bec39cab AC |
10111 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10112 | cat >>confdefs.h <<_ACEOF | |
10113 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10114 | _ACEOF | |
10115 | ||
5ee754fc | 10116 | fi |
bec39cab | 10117 | |
5ee754fc MK |
10118 | done |
10119 | ||
bec39cab AC |
10120 | |
10121 | for ac_header in sys/select.h | |
5ee754fc | 10122 | do |
bec39cab | 10123 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10124 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10125 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10126 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10127 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10129 | fi | |
b4e70030 JB |
10130 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10131 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10132 | else |
10133 | # Is the header compilable? | |
b4e70030 JB |
10134 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10135 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10136 | cat >conftest.$ac_ext <<_ACEOF |
10137 | /* confdefs.h. */ | |
10138 | _ACEOF | |
10139 | cat confdefs.h >>conftest.$ac_ext | |
10140 | cat >>conftest.$ac_ext <<_ACEOF | |
10141 | /* end confdefs.h. */ | |
10142 | $ac_includes_default | |
10143 | #include <$ac_header> | |
10144 | _ACEOF | |
10145 | rm -f conftest.$ac_objext | |
10146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10147 | (eval $ac_compile) 2>conftest.er1 | |
10148 | ac_status=$? | |
10149 | grep -v '^ *+' conftest.er1 >conftest.err | |
10150 | rm -f conftest.er1 | |
10151 | cat conftest.err >&5 | |
10152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10153 | (exit $ac_status); } && | |
b4e70030 JB |
10154 | { ac_try='test -z "$ac_c_werror_flag" |
10155 | || test ! -s conftest.err' | |
bec39cab AC |
10156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10157 | (eval $ac_try) 2>&5 | |
10158 | ac_status=$? | |
10159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10160 | (exit $ac_status); }; } && | |
10161 | { ac_try='test -s conftest.$ac_objext' | |
10162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10163 | (eval $ac_try) 2>&5 | |
10164 | ac_status=$? | |
10165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10166 | (exit $ac_status); }; }; then | |
10167 | ac_header_compiler=yes | |
10168 | else | |
10169 | echo "$as_me: failed program was:" >&5 | |
10170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10171 | ||
b4e70030 | 10172 | ac_header_compiler=no |
bec39cab AC |
10173 | fi |
10174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10175 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10176 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10177 | |
10178 | # Is the header present? | |
b4e70030 JB |
10179 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10180 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10181 | cat >conftest.$ac_ext <<_ACEOF |
10182 | /* confdefs.h. */ | |
10183 | _ACEOF | |
10184 | cat confdefs.h >>conftest.$ac_ext | |
10185 | cat >>conftest.$ac_ext <<_ACEOF | |
10186 | /* end confdefs.h. */ | |
10187 | #include <$ac_header> | |
10188 | _ACEOF | |
10189 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10190 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10191 | ac_status=$? | |
10192 | grep -v '^ *+' conftest.er1 >conftest.err | |
10193 | rm -f conftest.er1 | |
10194 | cat conftest.err >&5 | |
10195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10196 | (exit $ac_status); } >/dev/null; then | |
10197 | if test -s conftest.err; then | |
10198 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10199 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10200 | else | |
10201 | ac_cpp_err= | |
10202 | fi | |
10203 | else | |
10204 | ac_cpp_err=yes | |
5ee754fc | 10205 | fi |
bec39cab AC |
10206 | if test -z "$ac_cpp_err"; then |
10207 | ac_header_preproc=yes | |
5ee754fc | 10208 | else |
bec39cab AC |
10209 | echo "$as_me: failed program was:" >&5 |
10210 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10211 | ||
10212 | ac_header_preproc=no | |
5ee754fc | 10213 | fi |
bec39cab | 10214 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10215 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10216 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10217 | |
bec39cab AC |
10218 | # So? What about this header? |
10219 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10220 | yes:no: ) | |
10221 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10222 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10223 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10224 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10225 | ac_header_preproc=yes | |
10226 | ;; | |
10227 | no:yes:* ) | |
10228 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10229 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10230 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10231 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10232 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10233 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10234 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10235 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10236 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10237 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10238 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10239 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10240 | ( |
10241 | cat <<\_ASBOX | |
10242 | ## ------------------------------------------ ## | |
10243 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10244 | ## ------------------------------------------ ## | |
10245 | _ASBOX | |
10246 | ) | | |
10247 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10248 | ;; |
10249 | esac | |
b4e70030 JB |
10250 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10252 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10254 | else | |
10255 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 10256 | fi |
b4e70030 JB |
10257 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10258 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10259 | |
5ee754fc | 10260 | fi |
bec39cab AC |
10261 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10262 | cat >>confdefs.h <<_ACEOF | |
10263 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10264 | _ACEOF | |
10265 | ||
5ee754fc | 10266 | fi |
bec39cab | 10267 | |
5ee754fc MK |
10268 | done |
10269 | ||
bec39cab AC |
10270 | |
10271 | for ac_header in sys/syscall.h | |
5ee754fc | 10272 | do |
bec39cab | 10273 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10274 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10275 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10276 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10277 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10279 | fi | |
b4e70030 JB |
10280 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10281 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10282 | else |
10283 | # Is the header compilable? | |
b4e70030 JB |
10284 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10285 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10286 | cat >conftest.$ac_ext <<_ACEOF |
10287 | /* confdefs.h. */ | |
10288 | _ACEOF | |
10289 | cat confdefs.h >>conftest.$ac_ext | |
10290 | cat >>conftest.$ac_ext <<_ACEOF | |
10291 | /* end confdefs.h. */ | |
10292 | $ac_includes_default | |
10293 | #include <$ac_header> | |
10294 | _ACEOF | |
10295 | rm -f conftest.$ac_objext | |
10296 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10297 | (eval $ac_compile) 2>conftest.er1 | |
10298 | ac_status=$? | |
10299 | grep -v '^ *+' conftest.er1 >conftest.err | |
10300 | rm -f conftest.er1 | |
10301 | cat conftest.err >&5 | |
10302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10303 | (exit $ac_status); } && | |
b4e70030 JB |
10304 | { ac_try='test -z "$ac_c_werror_flag" |
10305 | || test ! -s conftest.err' | |
bec39cab AC |
10306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10307 | (eval $ac_try) 2>&5 | |
10308 | ac_status=$? | |
10309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10310 | (exit $ac_status); }; } && | |
10311 | { ac_try='test -s conftest.$ac_objext' | |
10312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10313 | (eval $ac_try) 2>&5 | |
10314 | ac_status=$? | |
10315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10316 | (exit $ac_status); }; }; then | |
10317 | ac_header_compiler=yes | |
10318 | else | |
10319 | echo "$as_me: failed program was:" >&5 | |
10320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10321 | ||
b4e70030 | 10322 | ac_header_compiler=no |
bec39cab AC |
10323 | fi |
10324 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10325 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10326 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10327 | |
10328 | # Is the header present? | |
b4e70030 JB |
10329 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10330 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10331 | cat >conftest.$ac_ext <<_ACEOF |
10332 | /* confdefs.h. */ | |
10333 | _ACEOF | |
10334 | cat confdefs.h >>conftest.$ac_ext | |
10335 | cat >>conftest.$ac_ext <<_ACEOF | |
10336 | /* end confdefs.h. */ | |
10337 | #include <$ac_header> | |
10338 | _ACEOF | |
10339 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10340 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10341 | ac_status=$? | |
10342 | grep -v '^ *+' conftest.er1 >conftest.err | |
10343 | rm -f conftest.er1 | |
10344 | cat conftest.err >&5 | |
10345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10346 | (exit $ac_status); } >/dev/null; then | |
10347 | if test -s conftest.err; then | |
10348 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10349 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10350 | else | |
10351 | ac_cpp_err= | |
10352 | fi | |
10353 | else | |
10354 | ac_cpp_err=yes | |
5ee754fc | 10355 | fi |
bec39cab AC |
10356 | if test -z "$ac_cpp_err"; then |
10357 | ac_header_preproc=yes | |
5ee754fc | 10358 | else |
bec39cab AC |
10359 | echo "$as_me: failed program was:" >&5 |
10360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10361 | ||
10362 | ac_header_preproc=no | |
5ee754fc | 10363 | fi |
bec39cab | 10364 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10365 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10366 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10367 | |
bec39cab AC |
10368 | # So? What about this header? |
10369 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10370 | yes:no: ) | |
10371 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10372 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10373 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10374 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10375 | ac_header_preproc=yes | |
10376 | ;; | |
10377 | no:yes:* ) | |
10378 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10379 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10380 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10381 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10382 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10383 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10384 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10385 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10386 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10387 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10388 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10389 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10390 | ( |
10391 | cat <<\_ASBOX | |
10392 | ## ------------------------------------------ ## | |
10393 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10394 | ## ------------------------------------------ ## | |
10395 | _ASBOX | |
10396 | ) | | |
10397 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10398 | ;; |
10399 | esac | |
b4e70030 JB |
10400 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10401 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10402 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10403 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10404 | else | |
10405 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 10406 | fi |
b4e70030 JB |
10407 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10408 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10409 | |
5ee754fc | 10410 | fi |
bec39cab AC |
10411 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10412 | cat >>confdefs.h <<_ACEOF | |
10413 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10414 | _ACEOF | |
10415 | ||
5ee754fc | 10416 | fi |
bec39cab | 10417 | |
5ee754fc MK |
10418 | done |
10419 | ||
bec39cab AC |
10420 | |
10421 | for ac_header in sys/types.h | |
5ee754fc | 10422 | do |
bec39cab | 10423 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10424 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10425 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10426 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10427 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10429 | fi | |
b4e70030 JB |
10430 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10431 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10432 | else |
10433 | # Is the header compilable? | |
b4e70030 JB |
10434 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10435 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10436 | cat >conftest.$ac_ext <<_ACEOF |
10437 | /* confdefs.h. */ | |
10438 | _ACEOF | |
10439 | cat confdefs.h >>conftest.$ac_ext | |
10440 | cat >>conftest.$ac_ext <<_ACEOF | |
10441 | /* end confdefs.h. */ | |
10442 | $ac_includes_default | |
10443 | #include <$ac_header> | |
10444 | _ACEOF | |
10445 | rm -f conftest.$ac_objext | |
10446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10447 | (eval $ac_compile) 2>conftest.er1 | |
10448 | ac_status=$? | |
10449 | grep -v '^ *+' conftest.er1 >conftest.err | |
10450 | rm -f conftest.er1 | |
10451 | cat conftest.err >&5 | |
10452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10453 | (exit $ac_status); } && | |
b4e70030 JB |
10454 | { ac_try='test -z "$ac_c_werror_flag" |
10455 | || test ! -s conftest.err' | |
bec39cab AC |
10456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10457 | (eval $ac_try) 2>&5 | |
10458 | ac_status=$? | |
10459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10460 | (exit $ac_status); }; } && | |
10461 | { ac_try='test -s conftest.$ac_objext' | |
10462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10463 | (eval $ac_try) 2>&5 | |
10464 | ac_status=$? | |
10465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10466 | (exit $ac_status); }; }; then | |
10467 | ac_header_compiler=yes | |
10468 | else | |
10469 | echo "$as_me: failed program was:" >&5 | |
10470 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10471 | ||
b4e70030 | 10472 | ac_header_compiler=no |
bec39cab AC |
10473 | fi |
10474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10475 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10476 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10477 | |
10478 | # Is the header present? | |
b4e70030 JB |
10479 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10480 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10481 | cat >conftest.$ac_ext <<_ACEOF |
10482 | /* confdefs.h. */ | |
10483 | _ACEOF | |
10484 | cat confdefs.h >>conftest.$ac_ext | |
10485 | cat >>conftest.$ac_ext <<_ACEOF | |
10486 | /* end confdefs.h. */ | |
10487 | #include <$ac_header> | |
10488 | _ACEOF | |
10489 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10490 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10491 | ac_status=$? | |
10492 | grep -v '^ *+' conftest.er1 >conftest.err | |
10493 | rm -f conftest.er1 | |
10494 | cat conftest.err >&5 | |
10495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10496 | (exit $ac_status); } >/dev/null; then | |
10497 | if test -s conftest.err; then | |
10498 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10499 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10500 | else | |
10501 | ac_cpp_err= | |
10502 | fi | |
10503 | else | |
10504 | ac_cpp_err=yes | |
5ee754fc | 10505 | fi |
bec39cab AC |
10506 | if test -z "$ac_cpp_err"; then |
10507 | ac_header_preproc=yes | |
5ee754fc | 10508 | else |
bec39cab AC |
10509 | echo "$as_me: failed program was:" >&5 |
10510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10511 | ||
10512 | ac_header_preproc=no | |
5ee754fc | 10513 | fi |
bec39cab | 10514 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10515 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10516 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10517 | |
bec39cab AC |
10518 | # So? What about this header? |
10519 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10520 | yes:no: ) | |
10521 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10522 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10523 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10524 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10525 | ac_header_preproc=yes | |
10526 | ;; | |
10527 | no:yes:* ) | |
10528 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10529 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10530 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10531 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10532 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10533 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10534 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10535 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10536 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10537 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10538 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10539 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10540 | ( |
10541 | cat <<\_ASBOX | |
10542 | ## ------------------------------------------ ## | |
10543 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10544 | ## ------------------------------------------ ## | |
10545 | _ASBOX | |
10546 | ) | | |
10547 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10548 | ;; |
10549 | esac | |
b4e70030 JB |
10550 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10551 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10552 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10553 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10554 | else | |
10555 | eval "$as_ac_Header=\$ac_header_preproc" | |
5ee754fc | 10556 | fi |
b4e70030 JB |
10557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10558 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10559 | |
5ee754fc | 10560 | fi |
bec39cab AC |
10561 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10562 | cat >>confdefs.h <<_ACEOF | |
10563 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10564 | _ACEOF | |
10565 | ||
5ee754fc | 10566 | fi |
bec39cab | 10567 | |
5ee754fc MK |
10568 | done |
10569 | ||
bec39cab AC |
10570 | |
10571 | for ac_header in sys/user.h | |
5ee754fc | 10572 | do |
bec39cab | 10573 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10574 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10575 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10576 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 10577 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 10578 | else |
7cb9022a | 10579 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
10580 | /* confdefs.h. */ |
10581 | _ACEOF | |
10582 | cat confdefs.h >>conftest.$ac_ext | |
10583 | cat >>conftest.$ac_ext <<_ACEOF | |
10584 | /* end confdefs.h. */ | |
7cb9022a MK |
10585 | #if HAVE_SYS_PARAM_H |
10586 | # include <sys/param.h> | |
10587 | #endif | |
10588 | ||
10589 | ||
bec39cab AC |
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 | |
7cb9022a | 10614 | eval "$as_ac_Header=yes" |
bec39cab AC |
10615 | else |
10616 | echo "$as_me: failed program was:" >&5 | |
10617 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10618 | ||
b4e70030 | 10619 | eval "$as_ac_Header=no" |
bec39cab AC |
10620 | fi |
10621 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5ee754fc | 10622 | fi |
b4e70030 JB |
10623 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10624 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10625 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10626 | cat >>confdefs.h <<_ACEOF | |
10627 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10628 | _ACEOF | |
10629 | ||
5ee754fc | 10630 | fi |
bec39cab | 10631 | |
5ee754fc MK |
10632 | done |
10633 | ||
bec39cab AC |
10634 | |
10635 | ||
10636 | for ac_header in sys/wait.h wait.h | |
5ee754fc | 10637 | do |
bec39cab | 10638 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10639 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10640 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10641 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10642 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10643 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10644 | fi | |
b4e70030 JB |
10645 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10646 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10647 | else |
10648 | # Is the header compilable? | |
b4e70030 JB |
10649 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10650 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10651 | cat >conftest.$ac_ext <<_ACEOF |
10652 | /* confdefs.h. */ | |
10653 | _ACEOF | |
10654 | cat confdefs.h >>conftest.$ac_ext | |
10655 | cat >>conftest.$ac_ext <<_ACEOF | |
10656 | /* end confdefs.h. */ | |
10657 | $ac_includes_default | |
10658 | #include <$ac_header> | |
10659 | _ACEOF | |
10660 | rm -f conftest.$ac_objext | |
10661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10662 | (eval $ac_compile) 2>conftest.er1 | |
10663 | ac_status=$? | |
10664 | grep -v '^ *+' conftest.er1 >conftest.err | |
10665 | rm -f conftest.er1 | |
10666 | cat conftest.err >&5 | |
10667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10668 | (exit $ac_status); } && | |
b4e70030 JB |
10669 | { ac_try='test -z "$ac_c_werror_flag" |
10670 | || test ! -s conftest.err' | |
bec39cab AC |
10671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10672 | (eval $ac_try) 2>&5 | |
10673 | ac_status=$? | |
10674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10675 | (exit $ac_status); }; } && | |
10676 | { ac_try='test -s conftest.$ac_objext' | |
10677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10678 | (eval $ac_try) 2>&5 | |
10679 | ac_status=$? | |
10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10681 | (exit $ac_status); }; }; then | |
10682 | ac_header_compiler=yes | |
10683 | else | |
10684 | echo "$as_me: failed program was:" >&5 | |
10685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10686 | ||
b4e70030 | 10687 | ac_header_compiler=no |
bec39cab AC |
10688 | fi |
10689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10690 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10691 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10692 | |
10693 | # Is the header present? | |
b4e70030 JB |
10694 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10695 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10696 | cat >conftest.$ac_ext <<_ACEOF |
10697 | /* confdefs.h. */ | |
10698 | _ACEOF | |
10699 | cat confdefs.h >>conftest.$ac_ext | |
10700 | cat >>conftest.$ac_ext <<_ACEOF | |
10701 | /* end confdefs.h. */ | |
10702 | #include <$ac_header> | |
10703 | _ACEOF | |
10704 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10705 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10706 | ac_status=$? | |
10707 | grep -v '^ *+' conftest.er1 >conftest.err | |
10708 | rm -f conftest.er1 | |
10709 | cat conftest.err >&5 | |
10710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10711 | (exit $ac_status); } >/dev/null; then | |
10712 | if test -s conftest.err; then | |
10713 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10714 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10715 | else | |
10716 | ac_cpp_err= | |
10717 | fi | |
10718 | else | |
10719 | ac_cpp_err=yes | |
5ee754fc | 10720 | fi |
bec39cab AC |
10721 | if test -z "$ac_cpp_err"; then |
10722 | ac_header_preproc=yes | |
5ee754fc | 10723 | else |
bec39cab AC |
10724 | echo "$as_me: failed program was:" >&5 |
10725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10726 | ||
10727 | ac_header_preproc=no | |
5ee754fc | 10728 | fi |
bec39cab | 10729 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10730 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10731 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5ee754fc | 10732 | |
bec39cab AC |
10733 | # So? What about this header? |
10734 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10735 | yes:no: ) | |
10736 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10737 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10738 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10739 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10740 | ac_header_preproc=yes | |
10741 | ;; | |
10742 | no:yes:* ) | |
10743 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10744 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10745 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10746 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10747 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10748 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10749 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10750 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10751 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10752 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10753 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10754 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10755 | ( |
10756 | cat <<\_ASBOX | |
10757 | ## ------------------------------------------ ## | |
10758 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10759 | ## ------------------------------------------ ## | |
10760 | _ASBOX | |
10761 | ) | | |
10762 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10763 | ;; |
10764 | esac | |
b4e70030 JB |
10765 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10766 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10767 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10768 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10769 | else | |
10770 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 10771 | fi |
b4e70030 JB |
10772 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10773 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10774 | |
9608ab8b | 10775 | fi |
bec39cab AC |
10776 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10777 | cat >>confdefs.h <<_ACEOF | |
10778 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10779 | _ACEOF | |
10780 | ||
9608ab8b | 10781 | fi |
bec39cab | 10782 | |
9608ab8b | 10783 | done |
5ee754fc | 10784 | |
bec39cab AC |
10785 | |
10786 | ||
10787 | ||
10788 | for ac_header in termios.h termio.h sgtty.h | |
5ee754fc | 10789 | do |
bec39cab | 10790 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10791 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10792 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10793 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10795 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10796 | fi | |
b4e70030 JB |
10797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10798 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10799 | else |
10800 | # Is the header compilable? | |
b4e70030 JB |
10801 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10802 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10803 | cat >conftest.$ac_ext <<_ACEOF |
10804 | /* confdefs.h. */ | |
10805 | _ACEOF | |
10806 | cat confdefs.h >>conftest.$ac_ext | |
10807 | cat >>conftest.$ac_ext <<_ACEOF | |
10808 | /* end confdefs.h. */ | |
10809 | $ac_includes_default | |
10810 | #include <$ac_header> | |
10811 | _ACEOF | |
10812 | rm -f conftest.$ac_objext | |
10813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10814 | (eval $ac_compile) 2>conftest.er1 | |
10815 | ac_status=$? | |
10816 | grep -v '^ *+' conftest.er1 >conftest.err | |
10817 | rm -f conftest.er1 | |
10818 | cat conftest.err >&5 | |
10819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10820 | (exit $ac_status); } && | |
b4e70030 JB |
10821 | { ac_try='test -z "$ac_c_werror_flag" |
10822 | || test ! -s conftest.err' | |
bec39cab AC |
10823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10824 | (eval $ac_try) 2>&5 | |
10825 | ac_status=$? | |
10826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10827 | (exit $ac_status); }; } && | |
10828 | { ac_try='test -s conftest.$ac_objext' | |
10829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10830 | (eval $ac_try) 2>&5 | |
10831 | ac_status=$? | |
10832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10833 | (exit $ac_status); }; }; then | |
10834 | ac_header_compiler=yes | |
10835 | else | |
10836 | echo "$as_me: failed program was:" >&5 | |
10837 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10838 | ||
b4e70030 | 10839 | ac_header_compiler=no |
bec39cab AC |
10840 | fi |
10841 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10842 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10843 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10844 | |
10845 | # Is the header present? | |
b4e70030 JB |
10846 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10847 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10848 | cat >conftest.$ac_ext <<_ACEOF |
10849 | /* confdefs.h. */ | |
10850 | _ACEOF | |
10851 | cat confdefs.h >>conftest.$ac_ext | |
10852 | cat >>conftest.$ac_ext <<_ACEOF | |
10853 | /* end confdefs.h. */ | |
10854 | #include <$ac_header> | |
10855 | _ACEOF | |
10856 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10857 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10858 | ac_status=$? | |
10859 | grep -v '^ *+' conftest.er1 >conftest.err | |
10860 | rm -f conftest.er1 | |
10861 | cat conftest.err >&5 | |
10862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10863 | (exit $ac_status); } >/dev/null; then | |
10864 | if test -s conftest.err; then | |
10865 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10866 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10867 | else | |
10868 | ac_cpp_err= | |
10869 | fi | |
10870 | else | |
10871 | ac_cpp_err=yes | |
9608ab8b | 10872 | fi |
bec39cab AC |
10873 | if test -z "$ac_cpp_err"; then |
10874 | ac_header_preproc=yes | |
9608ab8b | 10875 | else |
bec39cab AC |
10876 | echo "$as_me: failed program was:" >&5 |
10877 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10878 | ||
10879 | ac_header_preproc=no | |
9608ab8b | 10880 | fi |
bec39cab | 10881 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
10882 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
10883 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9608ab8b | 10884 | |
bec39cab AC |
10885 | # So? What about this header? |
10886 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10887 | yes:no: ) | |
10888 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10889 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10890 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10891 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10892 | ac_header_preproc=yes | |
10893 | ;; | |
10894 | no:yes:* ) | |
10895 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10896 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10897 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10898 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10899 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10900 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10901 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10902 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10903 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10904 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10905 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10906 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
10907 | ( |
10908 | cat <<\_ASBOX | |
10909 | ## ------------------------------------------ ## | |
10910 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10911 | ## ------------------------------------------ ## | |
10912 | _ASBOX | |
10913 | ) | | |
10914 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
10915 | ;; |
10916 | esac | |
b4e70030 JB |
10917 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
10918 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10919 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10921 | else | |
10922 | eval "$as_ac_Header=\$ac_header_preproc" | |
9608ab8b | 10923 | fi |
b4e70030 JB |
10924 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10925 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 10926 | |
9608ab8b | 10927 | fi |
bec39cab AC |
10928 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10929 | cat >>confdefs.h <<_ACEOF | |
10930 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10931 | _ACEOF | |
10932 | ||
9608ab8b | 10933 | fi |
bec39cab | 10934 | |
5ee754fc | 10935 | done |
9608ab8b | 10936 | |
bec39cab AC |
10937 | |
10938 | for ac_header in unistd.h | |
78434e59 | 10939 | do |
bec39cab | 10940 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
10941 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
10942 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10943 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10944 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
10945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10946 | fi | |
b4e70030 JB |
10947 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
10948 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
10949 | else |
10950 | # Is the header compilable? | |
b4e70030 JB |
10951 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
10952 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
10953 | cat >conftest.$ac_ext <<_ACEOF |
10954 | /* confdefs.h. */ | |
10955 | _ACEOF | |
10956 | cat confdefs.h >>conftest.$ac_ext | |
10957 | cat >>conftest.$ac_ext <<_ACEOF | |
10958 | /* end confdefs.h. */ | |
10959 | $ac_includes_default | |
10960 | #include <$ac_header> | |
10961 | _ACEOF | |
10962 | rm -f conftest.$ac_objext | |
10963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10964 | (eval $ac_compile) 2>conftest.er1 | |
10965 | ac_status=$? | |
10966 | grep -v '^ *+' conftest.er1 >conftest.err | |
10967 | rm -f conftest.er1 | |
10968 | cat conftest.err >&5 | |
10969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10970 | (exit $ac_status); } && | |
b4e70030 JB |
10971 | { ac_try='test -z "$ac_c_werror_flag" |
10972 | || test ! -s conftest.err' | |
bec39cab AC |
10973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10974 | (eval $ac_try) 2>&5 | |
10975 | ac_status=$? | |
10976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10977 | (exit $ac_status); }; } && | |
10978 | { ac_try='test -s conftest.$ac_objext' | |
10979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10980 | (eval $ac_try) 2>&5 | |
10981 | ac_status=$? | |
10982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10983 | (exit $ac_status); }; }; then | |
10984 | ac_header_compiler=yes | |
10985 | else | |
10986 | echo "$as_me: failed program was:" >&5 | |
10987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10988 | ||
b4e70030 | 10989 | ac_header_compiler=no |
bec39cab AC |
10990 | fi |
10991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
10992 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
10993 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
10994 | |
10995 | # Is the header present? | |
b4e70030 JB |
10996 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
10997 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
10998 | cat >conftest.$ac_ext <<_ACEOF |
10999 | /* confdefs.h. */ | |
11000 | _ACEOF | |
11001 | cat confdefs.h >>conftest.$ac_ext | |
11002 | cat >>conftest.$ac_ext <<_ACEOF | |
11003 | /* end confdefs.h. */ | |
11004 | #include <$ac_header> | |
11005 | _ACEOF | |
11006 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11007 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11008 | ac_status=$? | |
11009 | grep -v '^ *+' conftest.er1 >conftest.err | |
11010 | rm -f conftest.er1 | |
11011 | cat conftest.err >&5 | |
11012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11013 | (exit $ac_status); } >/dev/null; then | |
11014 | if test -s conftest.err; then | |
11015 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11016 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11017 | else | |
11018 | ac_cpp_err= | |
11019 | fi | |
11020 | else | |
11021 | ac_cpp_err=yes | |
78434e59 | 11022 | fi |
bec39cab AC |
11023 | if test -z "$ac_cpp_err"; then |
11024 | ac_header_preproc=yes | |
78434e59 | 11025 | else |
bec39cab AC |
11026 | echo "$as_me: failed program was:" >&5 |
11027 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11028 | ||
11029 | ac_header_preproc=no | |
78434e59 | 11030 | fi |
bec39cab | 11031 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
11032 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11033 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
78434e59 | 11034 | |
bec39cab AC |
11035 | # So? What about this header? |
11036 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11037 | yes:no: ) | |
11038 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11039 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11040 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11041 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11042 | ac_header_preproc=yes | |
11043 | ;; | |
11044 | no:yes:* ) | |
11045 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11046 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11047 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11048 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11049 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11050 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11051 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11052 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11053 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11054 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11055 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11056 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11057 | ( |
11058 | cat <<\_ASBOX | |
11059 | ## ------------------------------------------ ## | |
11060 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11061 | ## ------------------------------------------ ## | |
11062 | _ASBOX | |
11063 | ) | | |
11064 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11065 | ;; |
11066 | esac | |
b4e70030 JB |
11067 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11068 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11069 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11070 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11071 | else | |
11072 | eval "$as_ac_Header=\$ac_header_preproc" | |
086ec9eb | 11073 | fi |
b4e70030 JB |
11074 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11075 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 11076 | |
086ec9eb | 11077 | fi |
bec39cab AC |
11078 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11079 | cat >>confdefs.h <<_ACEOF | |
11080 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11081 | _ACEOF | |
11082 | ||
086ec9eb | 11083 | fi |
bec39cab | 11084 | |
086ec9eb MK |
11085 | done |
11086 | ||
9608ab8b | 11087 | |
b1d19a62 | 11088 | # On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash |
5ee754fc MK |
11089 | # between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to |
11090 | # think that we don't have <curses.h> if we're using GCC. | |
11091 | case $host_os in | |
b1d19a62 | 11092 | solaris2.[789]) |
5ee754fc | 11093 | if test "$GCC" = yes; then |
bec39cab AC |
11094 | |
11095 | cat >>confdefs.h <<\_ACEOF | |
5ee754fc | 11096 | #define _MSE_INT_H 1 |
bec39cab | 11097 | _ACEOF |
5ee754fc MK |
11098 | |
11099 | fi ;; | |
11100 | esac | |
bec39cab AC |
11101 | |
11102 | ||
11103 | ||
11104 | ||
11105 | for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h | |
5ee754fc | 11106 | do |
bec39cab | 11107 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
11108 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11109 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11110 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11111 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11113 | fi | |
b4e70030 JB |
11114 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11115 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11116 | else |
11117 | # Is the header compilable? | |
b4e70030 JB |
11118 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11119 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
11120 | cat >conftest.$ac_ext <<_ACEOF |
11121 | /* confdefs.h. */ | |
11122 | _ACEOF | |
11123 | cat confdefs.h >>conftest.$ac_ext | |
11124 | cat >>conftest.$ac_ext <<_ACEOF | |
11125 | /* end confdefs.h. */ | |
11126 | $ac_includes_default | |
11127 | #include <$ac_header> | |
11128 | _ACEOF | |
11129 | rm -f conftest.$ac_objext | |
11130 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11131 | (eval $ac_compile) 2>conftest.er1 | |
11132 | ac_status=$? | |
11133 | grep -v '^ *+' conftest.er1 >conftest.err | |
11134 | rm -f conftest.er1 | |
11135 | cat conftest.err >&5 | |
11136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11137 | (exit $ac_status); } && | |
b4e70030 JB |
11138 | { ac_try='test -z "$ac_c_werror_flag" |
11139 | || test ! -s conftest.err' | |
bec39cab AC |
11140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11141 | (eval $ac_try) 2>&5 | |
11142 | ac_status=$? | |
11143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11144 | (exit $ac_status); }; } && | |
11145 | { ac_try='test -s conftest.$ac_objext' | |
11146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11147 | (eval $ac_try) 2>&5 | |
11148 | ac_status=$? | |
11149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11150 | (exit $ac_status); }; }; then | |
11151 | ac_header_compiler=yes | |
11152 | else | |
11153 | echo "$as_me: failed program was:" >&5 | |
11154 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11155 | ||
b4e70030 | 11156 | ac_header_compiler=no |
bec39cab AC |
11157 | fi |
11158 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
11159 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11160 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
11161 | |
11162 | # Is the header present? | |
b4e70030 JB |
11163 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11164 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
11165 | cat >conftest.$ac_ext <<_ACEOF |
11166 | /* confdefs.h. */ | |
11167 | _ACEOF | |
11168 | cat confdefs.h >>conftest.$ac_ext | |
11169 | cat >>conftest.$ac_ext <<_ACEOF | |
11170 | /* end confdefs.h. */ | |
11171 | #include <$ac_header> | |
11172 | _ACEOF | |
11173 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11174 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11175 | ac_status=$? | |
11176 | grep -v '^ *+' conftest.er1 >conftest.err | |
11177 | rm -f conftest.er1 | |
11178 | cat conftest.err >&5 | |
11179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11180 | (exit $ac_status); } >/dev/null; then | |
11181 | if test -s conftest.err; then | |
11182 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11183 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11184 | else | |
11185 | ac_cpp_err= | |
11186 | fi | |
11187 | else | |
11188 | ac_cpp_err=yes | |
c906108c | 11189 | fi |
bec39cab AC |
11190 | if test -z "$ac_cpp_err"; then |
11191 | ac_header_preproc=yes | |
11192 | else | |
11193 | echo "$as_me: failed program was:" >&5 | |
11194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11195 | ||
11196 | ac_header_preproc=no | |
c906108c | 11197 | fi |
bec39cab | 11198 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
11199 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11200 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
11201 | |
11202 | # So? What about this header? | |
11203 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11204 | yes:no: ) | |
11205 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11206 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11207 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11208 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11209 | ac_header_preproc=yes | |
11210 | ;; | |
11211 | no:yes:* ) | |
11212 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11213 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11214 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11215 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11216 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11217 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11218 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11219 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11220 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11221 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11222 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11223 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11224 | ( |
11225 | cat <<\_ASBOX | |
11226 | ## ------------------------------------------ ## | |
11227 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11228 | ## ------------------------------------------ ## | |
11229 | _ASBOX | |
11230 | ) | | |
11231 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11232 | ;; |
11233 | esac | |
b4e70030 JB |
11234 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11235 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11236 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 11238 | else |
bec39cab | 11239 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 11240 | fi |
b4e70030 JB |
11241 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11242 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11243 | |
11244 | fi | |
11245 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11246 | cat >>confdefs.h <<_ACEOF | |
11247 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11248 | _ACEOF | |
11249 | ||
11250 | fi | |
11251 | ||
5ee754fc | 11252 | done |
c906108c | 11253 | |
bec39cab | 11254 | |
065a1afc | 11255 | for ac_header in ncurses/term.h |
3b78cdbb | 11256 | do |
bec39cab | 11257 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
11258 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11259 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11260 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11261 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11263 | fi | |
b4e70030 JB |
11264 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11265 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11266 | else |
11267 | # Is the header compilable? | |
b4e70030 JB |
11268 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11269 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
11270 | cat >conftest.$ac_ext <<_ACEOF |
11271 | /* confdefs.h. */ | |
11272 | _ACEOF | |
11273 | cat confdefs.h >>conftest.$ac_ext | |
11274 | cat >>conftest.$ac_ext <<_ACEOF | |
11275 | /* end confdefs.h. */ | |
11276 | $ac_includes_default | |
11277 | #include <$ac_header> | |
11278 | _ACEOF | |
11279 | rm -f conftest.$ac_objext | |
11280 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11281 | (eval $ac_compile) 2>conftest.er1 | |
11282 | ac_status=$? | |
11283 | grep -v '^ *+' conftest.er1 >conftest.err | |
11284 | rm -f conftest.er1 | |
11285 | cat conftest.err >&5 | |
11286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11287 | (exit $ac_status); } && | |
b4e70030 JB |
11288 | { ac_try='test -z "$ac_c_werror_flag" |
11289 | || test ! -s conftest.err' | |
bec39cab AC |
11290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11291 | (eval $ac_try) 2>&5 | |
11292 | ac_status=$? | |
11293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11294 | (exit $ac_status); }; } && | |
11295 | { ac_try='test -s conftest.$ac_objext' | |
11296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11297 | (eval $ac_try) 2>&5 | |
11298 | ac_status=$? | |
11299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11300 | (exit $ac_status); }; }; then | |
11301 | ac_header_compiler=yes | |
11302 | else | |
11303 | echo "$as_me: failed program was:" >&5 | |
11304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11305 | ||
b4e70030 | 11306 | ac_header_compiler=no |
bec39cab AC |
11307 | fi |
11308 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
11309 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11310 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
11311 | |
11312 | # Is the header present? | |
b4e70030 JB |
11313 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11314 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
11315 | cat >conftest.$ac_ext <<_ACEOF |
11316 | /* confdefs.h. */ | |
11317 | _ACEOF | |
11318 | cat confdefs.h >>conftest.$ac_ext | |
11319 | cat >>conftest.$ac_ext <<_ACEOF | |
11320 | /* end confdefs.h. */ | |
11321 | #include <$ac_header> | |
11322 | _ACEOF | |
11323 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11324 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11325 | ac_status=$? | |
11326 | grep -v '^ *+' conftest.er1 >conftest.err | |
11327 | rm -f conftest.er1 | |
11328 | cat conftest.err >&5 | |
11329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11330 | (exit $ac_status); } >/dev/null; then | |
11331 | if test -s conftest.err; then | |
11332 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11333 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11334 | else | |
11335 | ac_cpp_err= | |
11336 | fi | |
11337 | else | |
11338 | ac_cpp_err=yes | |
3b78cdbb | 11339 | fi |
bec39cab AC |
11340 | if test -z "$ac_cpp_err"; then |
11341 | ac_header_preproc=yes | |
11342 | else | |
11343 | echo "$as_me: failed program was:" >&5 | |
11344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11345 | ||
11346 | ac_header_preproc=no | |
3b78cdbb | 11347 | fi |
bec39cab | 11348 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
11349 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11350 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
11351 | |
11352 | # So? What about this header? | |
11353 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11354 | yes:no: ) | |
11355 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11356 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11357 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11358 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11359 | ac_header_preproc=yes | |
11360 | ;; | |
11361 | no:yes:* ) | |
11362 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11363 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11364 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11365 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11366 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11367 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11368 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11369 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11370 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11371 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11372 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11373 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11374 | ( |
11375 | cat <<\_ASBOX | |
11376 | ## ------------------------------------------ ## | |
11377 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11378 | ## ------------------------------------------ ## | |
11379 | _ASBOX | |
11380 | ) | | |
11381 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11382 | ;; |
11383 | esac | |
b4e70030 JB |
11384 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11385 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11386 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3b78cdbb | 11388 | else |
bec39cab AC |
11389 | eval "$as_ac_Header=\$ac_header_preproc" |
11390 | fi | |
b4e70030 JB |
11391 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11392 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 11393 | |
3b78cdbb | 11394 | fi |
bec39cab AC |
11395 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11396 | cat >>confdefs.h <<_ACEOF | |
11397 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11398 | _ACEOF | |
11399 | ||
11400 | fi | |
11401 | ||
3b78cdbb DA |
11402 | done |
11403 | ||
c906108c | 11404 | |
065a1afc JB |
11405 | for ac_header in term.h |
11406 | do | |
11407 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
11408 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
065a1afc JB |
11411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11412 | else | |
11413 | cat >conftest.$ac_ext <<_ACEOF | |
11414 | /* confdefs.h. */ | |
11415 | _ACEOF | |
11416 | cat confdefs.h >>conftest.$ac_ext | |
11417 | cat >>conftest.$ac_ext <<_ACEOF | |
11418 | /* end confdefs.h. */ | |
11419 | #if HAVE_CURSES_H | |
11420 | # include <curses.h> | |
11421 | #endif | |
11422 | ||
11423 | ||
11424 | #include <$ac_header> | |
11425 | _ACEOF | |
11426 | rm -f conftest.$ac_objext | |
11427 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11428 | (eval $ac_compile) 2>conftest.er1 | |
11429 | ac_status=$? | |
11430 | grep -v '^ *+' conftest.er1 >conftest.err | |
11431 | rm -f conftest.er1 | |
11432 | cat conftest.err >&5 | |
11433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11434 | (exit $ac_status); } && | |
b4e70030 JB |
11435 | { ac_try='test -z "$ac_c_werror_flag" |
11436 | || test ! -s conftest.err' | |
065a1afc JB |
11437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11438 | (eval $ac_try) 2>&5 | |
11439 | ac_status=$? | |
11440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11441 | (exit $ac_status); }; } && | |
11442 | { ac_try='test -s conftest.$ac_objext' | |
11443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11444 | (eval $ac_try) 2>&5 | |
11445 | ac_status=$? | |
11446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11447 | (exit $ac_status); }; }; then | |
11448 | eval "$as_ac_Header=yes" | |
11449 | else | |
11450 | echo "$as_me: failed program was:" >&5 | |
11451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11452 | ||
b4e70030 | 11453 | eval "$as_ac_Header=no" |
065a1afc JB |
11454 | fi |
11455 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11456 | fi | |
b4e70030 JB |
11457 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11458 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
065a1afc JB |
11459 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11460 | cat >>confdefs.h <<_ACEOF | |
11461 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11462 | _ACEOF | |
11463 | ||
11464 | fi | |
11465 | ||
11466 | done | |
11467 | ||
11468 | ||
d542061a UW |
11469 | # Check for HP/UX 64-bit shared library support |
11470 | ||
11471 | for ac_header in elf_hp.h | |
11472 | do | |
11473 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11474 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11475 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11476 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11477 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11479 | fi | |
11480 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11481 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11482 | else | |
11483 | # Is the header compilable? | |
11484 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11485 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
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. */ | |
11492 | $ac_includes_default | |
11493 | #include <$ac_header> | |
11494 | _ACEOF | |
11495 | rm -f conftest.$ac_objext | |
11496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11497 | (eval $ac_compile) 2>conftest.er1 | |
11498 | ac_status=$? | |
11499 | grep -v '^ *+' conftest.er1 >conftest.err | |
11500 | rm -f conftest.er1 | |
11501 | cat conftest.err >&5 | |
11502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11503 | (exit $ac_status); } && | |
11504 | { ac_try='test -z "$ac_c_werror_flag" | |
11505 | || test ! -s conftest.err' | |
11506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11507 | (eval $ac_try) 2>&5 | |
11508 | ac_status=$? | |
11509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11510 | (exit $ac_status); }; } && | |
11511 | { ac_try='test -s conftest.$ac_objext' | |
11512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11513 | (eval $ac_try) 2>&5 | |
11514 | ac_status=$? | |
11515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11516 | (exit $ac_status); }; }; then | |
11517 | ac_header_compiler=yes | |
11518 | else | |
11519 | echo "$as_me: failed program was:" >&5 | |
11520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11521 | ||
11522 | ac_header_compiler=no | |
11523 | fi | |
11524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11525 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11526 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11527 | ||
11528 | # Is the header present? | |
11529 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11530 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11531 | cat >conftest.$ac_ext <<_ACEOF | |
11532 | /* confdefs.h. */ | |
11533 | _ACEOF | |
11534 | cat confdefs.h >>conftest.$ac_ext | |
11535 | cat >>conftest.$ac_ext <<_ACEOF | |
11536 | /* end confdefs.h. */ | |
11537 | #include <$ac_header> | |
11538 | _ACEOF | |
11539 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11540 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11541 | ac_status=$? | |
11542 | grep -v '^ *+' conftest.er1 >conftest.err | |
11543 | rm -f conftest.er1 | |
11544 | cat conftest.err >&5 | |
11545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11546 | (exit $ac_status); } >/dev/null; then | |
11547 | if test -s conftest.err; then | |
11548 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11549 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11550 | else | |
11551 | ac_cpp_err= | |
11552 | fi | |
11553 | else | |
11554 | ac_cpp_err=yes | |
11555 | fi | |
11556 | if test -z "$ac_cpp_err"; then | |
11557 | ac_header_preproc=yes | |
11558 | else | |
11559 | echo "$as_me: failed program was:" >&5 | |
11560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11561 | ||
11562 | ac_header_preproc=no | |
11563 | fi | |
11564 | rm -f conftest.err conftest.$ac_ext | |
11565 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11566 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11567 | ||
11568 | # So? What about this header? | |
11569 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11570 | yes:no: ) | |
11571 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11572 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11573 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11574 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11575 | ac_header_preproc=yes | |
11576 | ;; | |
11577 | no:yes:* ) | |
11578 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11579 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11580 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11581 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11582 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11583 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11584 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11585 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11586 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11587 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11588 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11589 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11590 | ( | |
11591 | cat <<\_ASBOX | |
11592 | ## ------------------------------------------ ## | |
11593 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11594 | ## ------------------------------------------ ## | |
11595 | _ASBOX | |
11596 | ) | | |
11597 | sed "s/^/$as_me: WARNING: /" >&2 | |
11598 | ;; | |
11599 | esac | |
11600 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11602 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11604 | else | |
11605 | eval "$as_ac_Header=\$ac_header_preproc" | |
11606 | fi | |
11607 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11608 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11609 | ||
11610 | fi | |
11611 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11612 | cat >>confdefs.h <<_ACEOF | |
11613 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11614 | _ACEOF | |
11615 | ||
11616 | fi | |
11617 | ||
11618 | done | |
11619 | ||
11620 | ||
5ee754fc MK |
11621 | # FIXME: kettenis/20030102: In most cases we include these |
11622 | # unconditionally, so what's the point in checking these? | |
bec39cab AC |
11623 | |
11624 | ||
11625 | for ac_header in ctype.h time.h | |
c906108c | 11626 | do |
bec39cab | 11627 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
11628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
11629 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11631 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab AC |
11632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11633 | fi | |
b4e70030 JB |
11634 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11635 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11636 | else |
11637 | # Is the header compilable? | |
b4e70030 JB |
11638 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
11639 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
bec39cab AC |
11640 | cat >conftest.$ac_ext <<_ACEOF |
11641 | /* confdefs.h. */ | |
11642 | _ACEOF | |
11643 | cat confdefs.h >>conftest.$ac_ext | |
11644 | cat >>conftest.$ac_ext <<_ACEOF | |
11645 | /* end confdefs.h. */ | |
11646 | $ac_includes_default | |
11647 | #include <$ac_header> | |
11648 | _ACEOF | |
11649 | rm -f conftest.$ac_objext | |
11650 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11651 | (eval $ac_compile) 2>conftest.er1 | |
11652 | ac_status=$? | |
11653 | grep -v '^ *+' conftest.er1 >conftest.err | |
11654 | rm -f conftest.er1 | |
11655 | cat conftest.err >&5 | |
11656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11657 | (exit $ac_status); } && | |
b4e70030 JB |
11658 | { ac_try='test -z "$ac_c_werror_flag" |
11659 | || test ! -s conftest.err' | |
bec39cab AC |
11660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11661 | (eval $ac_try) 2>&5 | |
11662 | ac_status=$? | |
11663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11664 | (exit $ac_status); }; } && | |
11665 | { ac_try='test -s conftest.$ac_objext' | |
11666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11667 | (eval $ac_try) 2>&5 | |
11668 | ac_status=$? | |
11669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11670 | (exit $ac_status); }; }; then | |
11671 | ac_header_compiler=yes | |
11672 | else | |
11673 | echo "$as_me: failed program was:" >&5 | |
11674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11675 | ||
b4e70030 | 11676 | ac_header_compiler=no |
bec39cab AC |
11677 | fi |
11678 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
11679 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
11680 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
11681 | |
11682 | # Is the header present? | |
b4e70030 JB |
11683 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
11684 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
11685 | cat >conftest.$ac_ext <<_ACEOF |
11686 | /* confdefs.h. */ | |
11687 | _ACEOF | |
11688 | cat confdefs.h >>conftest.$ac_ext | |
11689 | cat >>conftest.$ac_ext <<_ACEOF | |
11690 | /* end confdefs.h. */ | |
11691 | #include <$ac_header> | |
11692 | _ACEOF | |
11693 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11694 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11695 | ac_status=$? | |
11696 | grep -v '^ *+' conftest.er1 >conftest.err | |
11697 | rm -f conftest.er1 | |
11698 | cat conftest.err >&5 | |
11699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11700 | (exit $ac_status); } >/dev/null; then | |
11701 | if test -s conftest.err; then | |
11702 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11703 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11704 | else | |
11705 | ac_cpp_err= | |
11706 | fi | |
11707 | else | |
11708 | ac_cpp_err=yes | |
c906108c | 11709 | fi |
bec39cab AC |
11710 | if test -z "$ac_cpp_err"; then |
11711 | ac_header_preproc=yes | |
11712 | else | |
11713 | echo "$as_me: failed program was:" >&5 | |
11714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11715 | ||
11716 | ac_header_preproc=no | |
c906108c | 11717 | fi |
bec39cab | 11718 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
11719 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
11720 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
11721 | |
11722 | # So? What about this header? | |
11723 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11724 | yes:no: ) | |
11725 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11726 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11727 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11728 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11729 | ac_header_preproc=yes | |
11730 | ;; | |
11731 | no:yes:* ) | |
11732 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11733 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11734 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11735 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11736 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11737 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11738 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11739 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11740 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11741 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11742 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11743 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
11744 | ( |
11745 | cat <<\_ASBOX | |
11746 | ## ------------------------------------------ ## | |
11747 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11748 | ## ------------------------------------------ ## | |
11749 | _ASBOX | |
11750 | ) | | |
11751 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
11752 | ;; |
11753 | esac | |
b4e70030 JB |
11754 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
11755 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11756 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 11757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 11758 | else |
bec39cab AC |
11759 | eval "$as_ac_Header=\$ac_header_preproc" |
11760 | fi | |
b4e70030 JB |
11761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
11762 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
11763 | |
11764 | fi | |
11765 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
11766 | cat >>confdefs.h <<_ACEOF | |
11767 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11768 | _ACEOF | |
11769 | ||
c906108c | 11770 | fi |
bec39cab | 11771 | |
c906108c SS |
11772 | done |
11773 | ||
5ee754fc | 11774 | |
4e8d927d | 11775 | # Create a header we can use portably to get the standard integer types. |
666ec76f | 11776 | |
4e8d927d DJ |
11777 | |
11778 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
11779 | ||
11780 | acx_cv_header_stdint=stddef.h | |
11781 | acx_cv_header_stdint_kind="(already complete)" | |
11782 | for i in stdint.h $inttype_headers; do | |
11783 | unset ac_cv_type_uintptr_t | |
11784 | unset ac_cv_type_uintmax_t | |
11785 | unset ac_cv_type_int_least32_t | |
11786 | unset ac_cv_type_int_fast32_t | |
11787 | unset ac_cv_type_uint64_t | |
11788 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
b4e70030 JB |
11789 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 |
11790 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
4e8d927d | 11791 | if test "${ac_cv_type_uintmax_t+set}" = set; then |
bec39cab | 11792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
40a7debc | 11793 | else |
bec39cab AC |
11794 | cat >conftest.$ac_ext <<_ACEOF |
11795 | /* confdefs.h. */ | |
11796 | _ACEOF | |
11797 | cat confdefs.h >>conftest.$ac_ext | |
11798 | cat >>conftest.$ac_ext <<_ACEOF | |
11799 | /* end confdefs.h. */ | |
4e8d927d DJ |
11800 | #include <sys/types.h> |
11801 | #include <$i> | |
11802 | ||
bec39cab AC |
11803 | int |
11804 | main () | |
11805 | { | |
b4e70030 | 11806 | if ((uintmax_t *) 0) |
4e8d927d | 11807 | return 0; |
b4e70030 | 11808 | if (sizeof (uintmax_t)) |
4e8d927d DJ |
11809 | return 0; |
11810 | ; | |
bec39cab AC |
11811 | return 0; |
11812 | } | |
11813 | _ACEOF | |
11814 | rm -f conftest.$ac_objext | |
11815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11816 | (eval $ac_compile) 2>conftest.er1 | |
11817 | ac_status=$? | |
11818 | grep -v '^ *+' conftest.er1 >conftest.err | |
11819 | rm -f conftest.er1 | |
11820 | cat conftest.err >&5 | |
11821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11822 | (exit $ac_status); } && | |
b4e70030 JB |
11823 | { ac_try='test -z "$ac_c_werror_flag" |
11824 | || test ! -s conftest.err' | |
bec39cab AC |
11825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11826 | (eval $ac_try) 2>&5 | |
11827 | ac_status=$? | |
11828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11829 | (exit $ac_status); }; } && | |
11830 | { ac_try='test -s conftest.$ac_objext' | |
11831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11832 | (eval $ac_try) 2>&5 | |
11833 | ac_status=$? | |
11834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11835 | (exit $ac_status); }; }; then | |
4e8d927d | 11836 | ac_cv_type_uintmax_t=yes |
40a7debc | 11837 | else |
bec39cab AC |
11838 | echo "$as_me: failed program was:" >&5 |
11839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11840 | ||
b4e70030 | 11841 | ac_cv_type_uintmax_t=no |
40a7debc | 11842 | fi |
bec39cab | 11843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
40a7debc | 11844 | fi |
b4e70030 JB |
11845 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 |
11846 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
4e8d927d DJ |
11847 | if test $ac_cv_type_uintmax_t = yes; then |
11848 | acx_cv_header_stdint=$i | |
666ec76f | 11849 | else |
4e8d927d | 11850 | continue |
666ec76f | 11851 | fi |
4e8d927d | 11852 | |
b4e70030 JB |
11853 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
11854 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
4e8d927d | 11855 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
bec39cab AC |
11856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11857 | else | |
11858 | cat >conftest.$ac_ext <<_ACEOF | |
11859 | /* confdefs.h. */ | |
11860 | _ACEOF | |
11861 | cat confdefs.h >>conftest.$ac_ext | |
11862 | cat >>conftest.$ac_ext <<_ACEOF | |
11863 | /* end confdefs.h. */ | |
4e8d927d DJ |
11864 | #include <sys/types.h> |
11865 | #include <$i> | |
11866 | ||
666ec76f MK |
11867 | int |
11868 | main () | |
11869 | { | |
b4e70030 | 11870 | if ((uintptr_t *) 0) |
4e8d927d | 11871 | return 0; |
b4e70030 | 11872 | if (sizeof (uintptr_t)) |
4e8d927d | 11873 | return 0; |
666ec76f MK |
11874 | ; |
11875 | return 0; | |
11876 | } | |
11877 | _ACEOF | |
11878 | rm -f conftest.$ac_objext | |
11879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11880 | (eval $ac_compile) 2>conftest.er1 | |
11881 | ac_status=$? | |
11882 | grep -v '^ *+' conftest.er1 >conftest.err | |
11883 | rm -f conftest.er1 | |
11884 | cat conftest.err >&5 | |
11885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11886 | (exit $ac_status); } && | |
b4e70030 JB |
11887 | { ac_try='test -z "$ac_c_werror_flag" |
11888 | || test ! -s conftest.err' | |
666ec76f MK |
11889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11890 | (eval $ac_try) 2>&5 | |
11891 | ac_status=$? | |
11892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11893 | (exit $ac_status); }; } && | |
11894 | { ac_try='test -s conftest.$ac_objext' | |
11895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11896 | (eval $ac_try) 2>&5 | |
11897 | ac_status=$? | |
11898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11899 | (exit $ac_status); }; }; then | |
4e8d927d | 11900 | ac_cv_type_uintptr_t=yes |
666ec76f MK |
11901 | else |
11902 | echo "$as_me: failed program was:" >&5 | |
11903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 11904 | |
b4e70030 | 11905 | ac_cv_type_uintptr_t=no |
a3828db0 MK |
11906 | fi |
11907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11908 | fi | |
b4e70030 JB |
11909 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
11910 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
4e8d927d DJ |
11911 | if test $ac_cv_type_uintptr_t = yes; then |
11912 | : | |
a3828db0 | 11913 | else |
4e8d927d | 11914 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11915 | fi |
4e8d927d | 11916 | |
b4e70030 JB |
11917 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 |
11918 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
4e8d927d | 11919 | if test "${ac_cv_type_int_least32_t+set}" = set; then |
a3828db0 MK |
11920 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11921 | else | |
11922 | cat >conftest.$ac_ext <<_ACEOF | |
666ec76f MK |
11923 | /* confdefs.h. */ |
11924 | _ACEOF | |
11925 | cat confdefs.h >>conftest.$ac_ext | |
11926 | cat >>conftest.$ac_ext <<_ACEOF | |
11927 | /* end confdefs.h. */ | |
4e8d927d DJ |
11928 | #include <sys/types.h> |
11929 | #include <$i> | |
11930 | ||
bec39cab AC |
11931 | int |
11932 | main () | |
11933 | { | |
b4e70030 | 11934 | if ((int_least32_t *) 0) |
4e8d927d | 11935 | return 0; |
b4e70030 | 11936 | if (sizeof (int_least32_t)) |
4e8d927d | 11937 | return 0; |
bec39cab AC |
11938 | ; |
11939 | return 0; | |
11940 | } | |
11941 | _ACEOF | |
11942 | rm -f conftest.$ac_objext | |
11943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11944 | (eval $ac_compile) 2>conftest.er1 | |
11945 | ac_status=$? | |
11946 | grep -v '^ *+' conftest.er1 >conftest.err | |
11947 | rm -f conftest.er1 | |
11948 | cat conftest.err >&5 | |
11949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11950 | (exit $ac_status); } && | |
b4e70030 JB |
11951 | { ac_try='test -z "$ac_c_werror_flag" |
11952 | || test ! -s conftest.err' | |
bec39cab AC |
11953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11954 | (eval $ac_try) 2>&5 | |
11955 | ac_status=$? | |
11956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11957 | (exit $ac_status); }; } && | |
11958 | { ac_try='test -s conftest.$ac_objext' | |
11959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11960 | (eval $ac_try) 2>&5 | |
11961 | ac_status=$? | |
11962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11963 | (exit $ac_status); }; }; then | |
4e8d927d | 11964 | ac_cv_type_int_least32_t=yes |
b9362cc7 | 11965 | else |
bec39cab AC |
11966 | echo "$as_me: failed program was:" >&5 |
11967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11968 | ||
b4e70030 | 11969 | ac_cv_type_int_least32_t=no |
b9362cc7 | 11970 | fi |
bec39cab | 11971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b9362cc7 | 11972 | fi |
b4e70030 JB |
11973 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 |
11974 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
4e8d927d DJ |
11975 | if test $ac_cv_type_int_least32_t = yes; then |
11976 | : | |
a3828db0 | 11977 | else |
4e8d927d | 11978 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 11979 | fi |
5ee754fc | 11980 | |
b4e70030 JB |
11981 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 |
11982 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
4e8d927d | 11983 | if test "${ac_cv_type_int_fast32_t+set}" = set; then |
bec39cab AC |
11984 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11985 | else | |
11986 | cat >conftest.$ac_ext <<_ACEOF | |
11987 | /* confdefs.h. */ | |
11988 | _ACEOF | |
11989 | cat confdefs.h >>conftest.$ac_ext | |
11990 | cat >>conftest.$ac_ext <<_ACEOF | |
11991 | /* end confdefs.h. */ | |
4e8d927d DJ |
11992 | #include <sys/types.h> |
11993 | #include <$i> | |
11994 | ||
bec39cab AC |
11995 | int |
11996 | main () | |
11997 | { | |
b4e70030 | 11998 | if ((int_fast32_t *) 0) |
4e8d927d | 11999 | return 0; |
b4e70030 | 12000 | if (sizeof (int_fast32_t)) |
4e8d927d | 12001 | return 0; |
bec39cab AC |
12002 | ; |
12003 | return 0; | |
12004 | } | |
12005 | _ACEOF | |
12006 | rm -f conftest.$ac_objext | |
12007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12008 | (eval $ac_compile) 2>conftest.er1 | |
12009 | ac_status=$? | |
12010 | grep -v '^ *+' conftest.er1 >conftest.err | |
12011 | rm -f conftest.er1 | |
12012 | cat conftest.err >&5 | |
12013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12014 | (exit $ac_status); } && | |
b4e70030 JB |
12015 | { ac_try='test -z "$ac_c_werror_flag" |
12016 | || test ! -s conftest.err' | |
bec39cab AC |
12017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12018 | (eval $ac_try) 2>&5 | |
12019 | ac_status=$? | |
12020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12021 | (exit $ac_status); }; } && | |
12022 | { ac_try='test -s conftest.$ac_objext' | |
12023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12024 | (eval $ac_try) 2>&5 | |
12025 | ac_status=$? | |
12026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12027 | (exit $ac_status); }; }; then | |
4e8d927d | 12028 | ac_cv_type_int_fast32_t=yes |
c906108c | 12029 | else |
bec39cab AC |
12030 | echo "$as_me: failed program was:" >&5 |
12031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12032 | ||
b4e70030 | 12033 | ac_cv_type_int_fast32_t=no |
c906108c | 12034 | fi |
bec39cab | 12035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 12036 | fi |
b4e70030 JB |
12037 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 |
12038 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
4e8d927d DJ |
12039 | if test $ac_cv_type_int_fast32_t = yes; then |
12040 | : | |
a3828db0 | 12041 | else |
4e8d927d | 12042 | acx_cv_header_stdint_kind="(mostly complete)" |
a3828db0 | 12043 | fi |
4e8d927d | 12044 | |
b4e70030 JB |
12045 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
12046 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
4e8d927d | 12047 | if test "${ac_cv_type_uint64_t+set}" = set; then |
bec39cab AC |
12048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12049 | else | |
12050 | cat >conftest.$ac_ext <<_ACEOF | |
12051 | /* confdefs.h. */ | |
12052 | _ACEOF | |
12053 | cat confdefs.h >>conftest.$ac_ext | |
12054 | cat >>conftest.$ac_ext <<_ACEOF | |
12055 | /* end confdefs.h. */ | |
4e8d927d DJ |
12056 | #include <sys/types.h> |
12057 | #include <$i> | |
12058 | ||
bec39cab AC |
12059 | int |
12060 | main () | |
12061 | { | |
b4e70030 | 12062 | if ((uint64_t *) 0) |
4e8d927d | 12063 | return 0; |
b4e70030 | 12064 | if (sizeof (uint64_t)) |
4e8d927d | 12065 | return 0; |
bec39cab AC |
12066 | ; |
12067 | return 0; | |
12068 | } | |
12069 | _ACEOF | |
12070 | rm -f conftest.$ac_objext | |
12071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12072 | (eval $ac_compile) 2>conftest.er1 | |
12073 | ac_status=$? | |
12074 | grep -v '^ *+' conftest.er1 >conftest.err | |
12075 | rm -f conftest.er1 | |
12076 | cat conftest.err >&5 | |
12077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12078 | (exit $ac_status); } && | |
b4e70030 JB |
12079 | { ac_try='test -z "$ac_c_werror_flag" |
12080 | || test ! -s conftest.err' | |
bec39cab AC |
12081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12082 | (eval $ac_try) 2>&5 | |
12083 | ac_status=$? | |
12084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12085 | (exit $ac_status); }; } && | |
12086 | { ac_try='test -s conftest.$ac_objext' | |
12087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12088 | (eval $ac_try) 2>&5 | |
12089 | ac_status=$? | |
12090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12091 | (exit $ac_status); }; }; then | |
4e8d927d | 12092 | ac_cv_type_uint64_t=yes |
c906108c | 12093 | else |
bec39cab AC |
12094 | echo "$as_me: failed program was:" >&5 |
12095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12096 | ||
b4e70030 | 12097 | ac_cv_type_uint64_t=no |
c906108c | 12098 | fi |
bec39cab | 12099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 12100 | fi |
b4e70030 JB |
12101 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
12102 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
4e8d927d DJ |
12103 | if test $ac_cv_type_uint64_t = yes; then |
12104 | : | |
a3828db0 | 12105 | else |
4e8d927d | 12106 | acx_cv_header_stdint_kind="(lacks uint64_t)" |
c906108c SS |
12107 | fi |
12108 | ||
4e8d927d DJ |
12109 | break |
12110 | done | |
12111 | if test "$acx_cv_header_stdint" = stddef.h; then | |
3841debe | 12112 | acx_cv_header_stdint_kind="(lacks uintmax_t)" |
4e8d927d | 12113 | for i in stdint.h $inttype_headers; do |
3841debe | 12114 | unset ac_cv_type_uintptr_t |
4e8d927d DJ |
12115 | unset ac_cv_type_uint32_t |
12116 | unset ac_cv_type_uint64_t | |
12117 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
b4e70030 JB |
12118 | echo "$as_me:$LINENO: checking for uint32_t" >&5 |
12119 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
4e8d927d | 12120 | if test "${ac_cv_type_uint32_t+set}" = set; then |
bec39cab | 12121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bce58c09 | 12122 | else |
bec39cab AC |
12123 | cat >conftest.$ac_ext <<_ACEOF |
12124 | /* confdefs.h. */ | |
12125 | _ACEOF | |
12126 | cat confdefs.h >>conftest.$ac_ext | |
12127 | cat >>conftest.$ac_ext <<_ACEOF | |
12128 | /* end confdefs.h. */ | |
4e8d927d DJ |
12129 | #include <sys/types.h> |
12130 | #include <$i> | |
12131 | ||
a3828db0 MK |
12132 | int |
12133 | main () | |
12134 | { | |
b4e70030 | 12135 | if ((uint32_t *) 0) |
4e8d927d | 12136 | return 0; |
b4e70030 | 12137 | if (sizeof (uint32_t)) |
4e8d927d | 12138 | return 0; |
a3828db0 MK |
12139 | ; |
12140 | return 0; | |
12141 | } | |
bec39cab AC |
12142 | _ACEOF |
12143 | rm -f conftest.$ac_objext | |
12144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12145 | (eval $ac_compile) 2>conftest.er1 | |
12146 | ac_status=$? | |
12147 | grep -v '^ *+' conftest.er1 >conftest.err | |
12148 | rm -f conftest.er1 | |
12149 | cat conftest.err >&5 | |
12150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12151 | (exit $ac_status); } && | |
b4e70030 JB |
12152 | { ac_try='test -z "$ac_c_werror_flag" |
12153 | || test ! -s conftest.err' | |
bec39cab AC |
12154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12155 | (eval $ac_try) 2>&5 | |
12156 | ac_status=$? | |
12157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12158 | (exit $ac_status); }; } && | |
12159 | { ac_try='test -s conftest.$ac_objext' | |
12160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12161 | (eval $ac_try) 2>&5 | |
12162 | ac_status=$? | |
12163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12164 | (exit $ac_status); }; }; then | |
4e8d927d | 12165 | ac_cv_type_uint32_t=yes |
bce58c09 | 12166 | else |
bec39cab AC |
12167 | echo "$as_me: failed program was:" >&5 |
12168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12169 | ||
b4e70030 | 12170 | ac_cv_type_uint32_t=no |
bce58c09 | 12171 | fi |
bec39cab | 12172 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bce58c09 | 12173 | fi |
b4e70030 JB |
12174 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 |
12175 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
4e8d927d DJ |
12176 | if test $ac_cv_type_uint32_t = yes; then |
12177 | acx_cv_header_stdint=$i | |
a3828db0 | 12178 | else |
4e8d927d | 12179 | continue |
e5a7de23 | 12180 | fi |
4e8d927d | 12181 | |
b4e70030 JB |
12182 | echo "$as_me:$LINENO: checking for uint64_t" >&5 |
12183 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
4e8d927d | 12184 | if test "${ac_cv_type_uint64_t+set}" = set; then |
e5a7de23 EZ |
12185 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12186 | else | |
12187 | cat >conftest.$ac_ext <<_ACEOF | |
12188 | /* confdefs.h. */ | |
12189 | _ACEOF | |
12190 | cat confdefs.h >>conftest.$ac_ext | |
12191 | cat >>conftest.$ac_ext <<_ACEOF | |
12192 | /* end confdefs.h. */ | |
4e8d927d DJ |
12193 | #include <sys/types.h> |
12194 | #include <$i> | |
12195 | ||
e5a7de23 EZ |
12196 | int |
12197 | main () | |
12198 | { | |
b4e70030 | 12199 | if ((uint64_t *) 0) |
4e8d927d | 12200 | return 0; |
b4e70030 | 12201 | if (sizeof (uint64_t)) |
4e8d927d | 12202 | return 0; |
e5a7de23 EZ |
12203 | ; |
12204 | return 0; | |
12205 | } | |
12206 | _ACEOF | |
12207 | rm -f conftest.$ac_objext | |
12208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12209 | (eval $ac_compile) 2>conftest.er1 | |
12210 | ac_status=$? | |
12211 | grep -v '^ *+' conftest.er1 >conftest.err | |
12212 | rm -f conftest.er1 | |
12213 | cat conftest.err >&5 | |
12214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12215 | (exit $ac_status); } && | |
b4e70030 JB |
12216 | { ac_try='test -z "$ac_c_werror_flag" |
12217 | || test ! -s conftest.err' | |
e5a7de23 EZ |
12218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12219 | (eval $ac_try) 2>&5 | |
12220 | ac_status=$? | |
12221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12222 | (exit $ac_status); }; } && | |
12223 | { ac_try='test -s conftest.$ac_objext' | |
12224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12225 | (eval $ac_try) 2>&5 | |
12226 | ac_status=$? | |
12227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12228 | (exit $ac_status); }; }; then | |
4e8d927d | 12229 | ac_cv_type_uint64_t=yes |
e5a7de23 EZ |
12230 | else |
12231 | echo "$as_me: failed program was:" >&5 | |
12232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12233 | ||
b4e70030 | 12234 | ac_cv_type_uint64_t=no |
e5a7de23 EZ |
12235 | fi |
12236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12237 | fi | |
b4e70030 JB |
12238 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 |
12239 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
3841debe DJ |
12240 | |
12241 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
12242 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
12243 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
12244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12245 | else | |
12246 | cat >conftest.$ac_ext <<_ACEOF | |
12247 | /* confdefs.h. */ | |
12248 | _ACEOF | |
12249 | cat confdefs.h >>conftest.$ac_ext | |
12250 | cat >>conftest.$ac_ext <<_ACEOF | |
12251 | /* end confdefs.h. */ | |
12252 | #include <sys/types.h> | |
12253 | #include <$i> | |
12254 | ||
12255 | int | |
12256 | main () | |
12257 | { | |
12258 | if ((uintptr_t *) 0) | |
12259 | return 0; | |
12260 | if (sizeof (uintptr_t)) | |
12261 | return 0; | |
12262 | ; | |
12263 | return 0; | |
12264 | } | |
12265 | _ACEOF | |
12266 | rm -f conftest.$ac_objext | |
12267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12268 | (eval $ac_compile) 2>conftest.er1 | |
12269 | ac_status=$? | |
12270 | grep -v '^ *+' conftest.er1 >conftest.err | |
12271 | rm -f conftest.er1 | |
12272 | cat conftest.err >&5 | |
12273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12274 | (exit $ac_status); } && | |
12275 | { ac_try='test -z "$ac_c_werror_flag" | |
12276 | || test ! -s conftest.err' | |
12277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12278 | (eval $ac_try) 2>&5 | |
12279 | ac_status=$? | |
12280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12281 | (exit $ac_status); }; } && | |
12282 | { ac_try='test -s conftest.$ac_objext' | |
12283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12284 | (eval $ac_try) 2>&5 | |
12285 | ac_status=$? | |
12286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12287 | (exit $ac_status); }; }; then | |
12288 | ac_cv_type_uintptr_t=yes | |
e5a7de23 | 12289 | else |
3841debe DJ |
12290 | echo "$as_me: failed program was:" >&5 |
12291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12292 | ||
12293 | ac_cv_type_uintptr_t=no | |
4e8d927d | 12294 | fi |
3841debe DJ |
12295 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12296 | fi | |
12297 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
12298 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
e5a7de23 | 12299 | |
4e8d927d DJ |
12300 | break |
12301 | done | |
e5a7de23 | 12302 | fi |
4e8d927d DJ |
12303 | if test "$acx_cv_header_stdint" = stddef.h; then |
12304 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
12305 | for i in sys/types.h $inttype_headers; do | |
12306 | unset ac_cv_type_u_int32_t | |
12307 | unset ac_cv_type_u_int64_t | |
12308 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
b4e70030 JB |
12309 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 |
12310 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
4e8d927d | 12311 | if test "${ac_cv_type_u_int32_t+set}" = set; then |
e5a7de23 EZ |
12312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12313 | else | |
12314 | cat >conftest.$ac_ext <<_ACEOF | |
12315 | /* confdefs.h. */ | |
12316 | _ACEOF | |
12317 | cat confdefs.h >>conftest.$ac_ext | |
12318 | cat >>conftest.$ac_ext <<_ACEOF | |
12319 | /* end confdefs.h. */ | |
4e8d927d DJ |
12320 | #include <sys/types.h> |
12321 | #include <$i> | |
12322 | ||
e5a7de23 EZ |
12323 | int |
12324 | main () | |
12325 | { | |
b4e70030 | 12326 | if ((u_int32_t *) 0) |
4e8d927d | 12327 | return 0; |
b4e70030 | 12328 | if (sizeof (u_int32_t)) |
4e8d927d | 12329 | return 0; |
e5a7de23 EZ |
12330 | ; |
12331 | return 0; | |
12332 | } | |
12333 | _ACEOF | |
12334 | rm -f conftest.$ac_objext | |
12335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12336 | (eval $ac_compile) 2>conftest.er1 | |
12337 | ac_status=$? | |
12338 | grep -v '^ *+' conftest.er1 >conftest.err | |
12339 | rm -f conftest.er1 | |
12340 | cat conftest.err >&5 | |
12341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12342 | (exit $ac_status); } && | |
b4e70030 JB |
12343 | { ac_try='test -z "$ac_c_werror_flag" |
12344 | || test ! -s conftest.err' | |
e5a7de23 EZ |
12345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12346 | (eval $ac_try) 2>&5 | |
12347 | ac_status=$? | |
12348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12349 | (exit $ac_status); }; } && | |
12350 | { ac_try='test -s conftest.$ac_objext' | |
12351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12352 | (eval $ac_try) 2>&5 | |
12353 | ac_status=$? | |
12354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12355 | (exit $ac_status); }; }; then | |
4e8d927d | 12356 | ac_cv_type_u_int32_t=yes |
e5a7de23 EZ |
12357 | else |
12358 | echo "$as_me: failed program was:" >&5 | |
12359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12360 | ||
b4e70030 | 12361 | ac_cv_type_u_int32_t=no |
e5a7de23 EZ |
12362 | fi |
12363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12364 | fi | |
b4e70030 JB |
12365 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 |
12366 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
4e8d927d DJ |
12367 | if test $ac_cv_type_u_int32_t = yes; then |
12368 | acx_cv_header_stdint=$i | |
e5a7de23 | 12369 | else |
4e8d927d | 12370 | continue |
a3828db0 | 12371 | fi |
5ee754fc | 12372 | |
b4e70030 JB |
12373 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 |
12374 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
4e8d927d | 12375 | if test "${ac_cv_type_u_int64_t+set}" = set; then |
bec39cab AC |
12376 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12377 | else | |
12378 | cat >conftest.$ac_ext <<_ACEOF | |
12379 | /* confdefs.h. */ | |
12380 | _ACEOF | |
12381 | cat confdefs.h >>conftest.$ac_ext | |
12382 | cat >>conftest.$ac_ext <<_ACEOF | |
12383 | /* end confdefs.h. */ | |
4e8d927d DJ |
12384 | #include <sys/types.h> |
12385 | #include <$i> | |
12386 | ||
bec39cab AC |
12387 | int |
12388 | main () | |
12389 | { | |
b4e70030 | 12390 | if ((u_int64_t *) 0) |
4e8d927d | 12391 | return 0; |
b4e70030 | 12392 | if (sizeof (u_int64_t)) |
4e8d927d | 12393 | return 0; |
bec39cab AC |
12394 | ; |
12395 | return 0; | |
12396 | } | |
12397 | _ACEOF | |
a3828db0 MK |
12398 | rm -f conftest.$ac_objext |
12399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12400 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
12401 | ac_status=$? |
12402 | grep -v '^ *+' conftest.er1 >conftest.err | |
12403 | rm -f conftest.er1 | |
12404 | cat conftest.err >&5 | |
12405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12406 | (exit $ac_status); } && | |
b4e70030 JB |
12407 | { ac_try='test -z "$ac_c_werror_flag" |
12408 | || test ! -s conftest.err' | |
bec39cab AC |
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); }; } && | |
a3828db0 | 12414 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
12415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12416 | (eval $ac_try) 2>&5 | |
12417 | ac_status=$? | |
12418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12419 | (exit $ac_status); }; }; then | |
4e8d927d | 12420 | ac_cv_type_u_int64_t=yes |
bec39cab AC |
12421 | else |
12422 | echo "$as_me: failed program was:" >&5 | |
12423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12424 | ||
b4e70030 | 12425 | ac_cv_type_u_int64_t=no |
4e8d927d | 12426 | fi |
4e8d927d DJ |
12427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12428 | fi | |
b4e70030 JB |
12429 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 |
12430 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
4e8d927d DJ |
12431 | |
12432 | break | |
12433 | done | |
12434 | fi | |
12435 | if test "$acx_cv_header_stdint" = stddef.h; then | |
12436 | acx_cv_header_stdint_kind="(using manual detection)" | |
12437 | fi | |
12438 | ||
12439 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
12440 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
12441 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
12442 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
12443 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
12444 | ||
12445 | # ----------------- Summarize what we found so far | |
12446 | ||
b4e70030 JB |
12447 | echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5 |
12448 | echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6 | |
4e8d927d | 12449 | |
b4e70030 | 12450 | case `$as_basename gdb_stdint.h || |
4e8d927d DJ |
12451 | $as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ |
12452 | Xgdb_stdint.h : 'X\(//\)$' \| \ | |
b4e70030 JB |
12453 | Xgdb_stdint.h : 'X\(/\)$' \| \ |
12454 | . : '\(.\)' 2>/dev/null || | |
4e8d927d | 12455 | echo X/gdb_stdint.h | |
b4e70030 JB |
12456 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
12457 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
12458 | /^X\/\(\/\).*/{ s//\1/; q; } | |
12459 | s/.*/./; q'` in | |
4e8d927d DJ |
12460 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 |
12461 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
12462 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
12463 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
12464 | *) ;; | |
12465 | esac | |
12466 | ||
b4e70030 JB |
12467 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 |
12468 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 | |
4e8d927d DJ |
12469 | |
12470 | # ----------------- done included file, check C basic types -------- | |
12471 | ||
12472 | # Lacking an uintptr_t? Test size of void * | |
12473 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
b4e70030 JB |
12474 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 |
12475 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
4e8d927d DJ |
12476 | if test "${ac_cv_type_void_p+set}" = set; then |
12477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12478 | else | |
12479 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 12480 | /* confdefs.h. */ |
bec39cab AC |
12481 | _ACEOF |
12482 | cat confdefs.h >>conftest.$ac_ext | |
12483 | cat >>conftest.$ac_ext <<_ACEOF | |
12484 | /* end confdefs.h. */ | |
a3828db0 | 12485 | $ac_includes_default |
bec39cab AC |
12486 | int |
12487 | main () | |
12488 | { | |
b4e70030 | 12489 | if ((void * *) 0) |
4e8d927d | 12490 | return 0; |
b4e70030 | 12491 | if (sizeof (void *)) |
4e8d927d | 12492 | return 0; |
bec39cab AC |
12493 | ; |
12494 | return 0; | |
12495 | } | |
12496 | _ACEOF | |
a3828db0 MK |
12497 | rm -f conftest.$ac_objext |
12498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12499 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
12500 | ac_status=$? |
12501 | grep -v '^ *+' conftest.er1 >conftest.err | |
12502 | rm -f conftest.er1 | |
12503 | cat conftest.err >&5 | |
12504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12505 | (exit $ac_status); } && | |
b4e70030 JB |
12506 | { ac_try='test -z "$ac_c_werror_flag" |
12507 | || test ! -s conftest.err' | |
bec39cab AC |
12508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12509 | (eval $ac_try) 2>&5 | |
12510 | ac_status=$? | |
12511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12512 | (exit $ac_status); }; } && | |
a3828db0 | 12513 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
12514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12515 | (eval $ac_try) 2>&5 | |
12516 | ac_status=$? | |
12517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12518 | (exit $ac_status); }; }; then | |
4e8d927d | 12519 | ac_cv_type_void_p=yes |
46711df8 | 12520 | else |
bec39cab AC |
12521 | echo "$as_me: failed program was:" >&5 |
12522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12523 | ||
b4e70030 | 12524 | ac_cv_type_void_p=no |
a3828db0 | 12525 | fi |
4e8d927d | 12526 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d3ea6809 | 12527 | fi |
b4e70030 JB |
12528 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
12529 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
d3ea6809 | 12530 | |
b4e70030 JB |
12531 | echo "$as_me:$LINENO: checking size of void *" >&5 |
12532 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
4e8d927d | 12533 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
d3ea6809 MM |
12534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12535 | else | |
4e8d927d | 12536 | if test "$ac_cv_type_void_p" = yes; then |
b4e70030 | 12537 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
12538 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
12539 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12540 | # This bug is HP SR number 8606223364. | |
12541 | if test "$cross_compiling" = yes; then | |
12542 | # Depending upon the size, compute the lo and hi bounds. | |
12543 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
12544 | /* confdefs.h. */ |
12545 | _ACEOF | |
12546 | cat confdefs.h >>conftest.$ac_ext | |
12547 | cat >>conftest.$ac_ext <<_ACEOF | |
12548 | /* end confdefs.h. */ | |
12549 | $ac_includes_default | |
12550 | int | |
12551 | main () | |
12552 | { | |
b4e70030 | 12553 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
4e8d927d DJ |
12554 | test_array [0] = 0 |
12555 | ||
d3ea6809 MM |
12556 | ; |
12557 | return 0; | |
12558 | } | |
12559 | _ACEOF | |
12560 | rm -f conftest.$ac_objext | |
12561 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12562 | (eval $ac_compile) 2>conftest.er1 | |
12563 | ac_status=$? | |
12564 | grep -v '^ *+' conftest.er1 >conftest.err | |
12565 | rm -f conftest.er1 | |
12566 | cat conftest.err >&5 | |
12567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12568 | (exit $ac_status); } && | |
b4e70030 JB |
12569 | { ac_try='test -z "$ac_c_werror_flag" |
12570 | || test ! -s conftest.err' | |
d3ea6809 MM |
12571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12572 | (eval $ac_try) 2>&5 | |
12573 | ac_status=$? | |
12574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12575 | (exit $ac_status); }; } && | |
12576 | { ac_try='test -s conftest.$ac_objext' | |
12577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12578 | (eval $ac_try) 2>&5 | |
12579 | ac_status=$? | |
12580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12581 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
12582 | ac_lo=0 ac_mid=0 |
12583 | while :; do | |
12584 | cat >conftest.$ac_ext <<_ACEOF | |
d3ea6809 MM |
12585 | /* confdefs.h. */ |
12586 | _ACEOF | |
12587 | cat confdefs.h >>conftest.$ac_ext | |
12588 | cat >>conftest.$ac_ext <<_ACEOF | |
12589 | /* end confdefs.h. */ | |
12590 | $ac_includes_default | |
12591 | int | |
12592 | main () | |
12593 | { | |
b4e70030 | 12594 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
4e8d927d DJ |
12595 | test_array [0] = 0 |
12596 | ||
d3ea6809 MM |
12597 | ; |
12598 | return 0; | |
12599 | } | |
12600 | _ACEOF | |
12601 | rm -f conftest.$ac_objext | |
12602 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12603 | (eval $ac_compile) 2>conftest.er1 | |
12604 | ac_status=$? | |
12605 | grep -v '^ *+' conftest.er1 >conftest.err | |
12606 | rm -f conftest.er1 | |
12607 | cat conftest.err >&5 | |
12608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12609 | (exit $ac_status); } && | |
b4e70030 JB |
12610 | { ac_try='test -z "$ac_c_werror_flag" |
12611 | || test ! -s conftest.err' | |
d3ea6809 MM |
12612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12613 | (eval $ac_try) 2>&5 | |
12614 | ac_status=$? | |
12615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12616 | (exit $ac_status); }; } && | |
12617 | { ac_try='test -s conftest.$ac_objext' | |
12618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12619 | (eval $ac_try) 2>&5 | |
12620 | ac_status=$? | |
12621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12622 | (exit $ac_status); }; }; then | |
4e8d927d | 12623 | ac_hi=$ac_mid; break |
d3ea6809 MM |
12624 | else |
12625 | echo "$as_me: failed program was:" >&5 | |
12626 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12627 | ||
b4e70030 JB |
12628 | ac_lo=`expr $ac_mid + 1` |
12629 | if test $ac_lo -le $ac_mid; then | |
12630 | ac_lo= ac_hi= | |
12631 | break | |
12632 | fi | |
12633 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a3828db0 | 12634 | fi |
4e8d927d DJ |
12635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12636 | done | |
bec39cab | 12637 | else |
4e8d927d DJ |
12638 | echo "$as_me: failed program was:" >&5 |
12639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12640 | ||
b4e70030 | 12641 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
12642 | /* confdefs.h. */ |
12643 | _ACEOF | |
12644 | cat confdefs.h >>conftest.$ac_ext | |
12645 | cat >>conftest.$ac_ext <<_ACEOF | |
12646 | /* end confdefs.h. */ | |
4e8d927d | 12647 | $ac_includes_default |
bec39cab AC |
12648 | int |
12649 | main () | |
12650 | { | |
b4e70030 | 12651 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
4e8d927d DJ |
12652 | test_array [0] = 0 |
12653 | ||
bec39cab AC |
12654 | ; |
12655 | return 0; | |
12656 | } | |
12657 | _ACEOF | |
a3828db0 MK |
12658 | rm -f conftest.$ac_objext |
12659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12660 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
12661 | ac_status=$? |
12662 | grep -v '^ *+' conftest.er1 >conftest.err | |
12663 | rm -f conftest.er1 | |
12664 | cat conftest.err >&5 | |
12665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12666 | (exit $ac_status); } && | |
b4e70030 JB |
12667 | { ac_try='test -z "$ac_c_werror_flag" |
12668 | || test ! -s conftest.err' | |
bec39cab AC |
12669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12670 | (eval $ac_try) 2>&5 | |
12671 | ac_status=$? | |
12672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12673 | (exit $ac_status); }; } && | |
a3828db0 | 12674 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
12675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12676 | (eval $ac_try) 2>&5 | |
12677 | ac_status=$? | |
12678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12679 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
12680 | ac_hi=-1 ac_mid=-1 |
12681 | while :; do | |
12682 | cat >conftest.$ac_ext <<_ACEOF | |
f9f87d2c MK |
12683 | /* confdefs.h. */ |
12684 | _ACEOF | |
12685 | cat confdefs.h >>conftest.$ac_ext | |
12686 | cat >>conftest.$ac_ext <<_ACEOF | |
12687 | /* end confdefs.h. */ | |
4e8d927d | 12688 | $ac_includes_default |
f9f87d2c MK |
12689 | int |
12690 | main () | |
12691 | { | |
b4e70030 | 12692 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
4e8d927d DJ |
12693 | test_array [0] = 0 |
12694 | ||
f9f87d2c MK |
12695 | ; |
12696 | return 0; | |
12697 | } | |
12698 | _ACEOF | |
12699 | rm -f conftest.$ac_objext | |
12700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12701 | (eval $ac_compile) 2>conftest.er1 | |
12702 | ac_status=$? | |
12703 | grep -v '^ *+' conftest.er1 >conftest.err | |
12704 | rm -f conftest.er1 | |
12705 | cat conftest.err >&5 | |
12706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12707 | (exit $ac_status); } && | |
b4e70030 JB |
12708 | { ac_try='test -z "$ac_c_werror_flag" |
12709 | || test ! -s conftest.err' | |
f9f87d2c MK |
12710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12711 | (eval $ac_try) 2>&5 | |
12712 | ac_status=$? | |
12713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12714 | (exit $ac_status); }; } && | |
12715 | { ac_try='test -s conftest.$ac_objext' | |
12716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12717 | (eval $ac_try) 2>&5 | |
12718 | ac_status=$? | |
12719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12720 | (exit $ac_status); }; }; then | |
4e8d927d | 12721 | ac_lo=$ac_mid; break |
f9f87d2c MK |
12722 | else |
12723 | echo "$as_me: failed program was:" >&5 | |
12724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12725 | ||
b4e70030 JB |
12726 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12727 | if test $ac_mid -le $ac_hi; then | |
12728 | ac_lo= ac_hi= | |
12729 | break | |
12730 | fi | |
12731 | ac_mid=`expr 2 '*' $ac_mid` | |
f9f87d2c | 12732 | fi |
4e8d927d DJ |
12733 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12734 | done | |
12735 | else | |
12736 | echo "$as_me: failed program was:" >&5 | |
12737 | sed 's/^/| /' conftest.$ac_ext >&5 | |
f9f87d2c | 12738 | |
b4e70030 | 12739 | ac_lo= ac_hi= |
4e8d927d | 12740 | fi |
4e8d927d | 12741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3be60c3d | 12742 | fi |
4e8d927d DJ |
12743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12744 | # Binary search between lo and hi bounds. | |
12745 | while test "x$ac_lo" != "x$ac_hi"; do | |
12746 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
3be60c3d MK |
12747 | cat >conftest.$ac_ext <<_ACEOF |
12748 | /* confdefs.h. */ | |
12749 | _ACEOF | |
12750 | cat confdefs.h >>conftest.$ac_ext | |
12751 | cat >>conftest.$ac_ext <<_ACEOF | |
12752 | /* end confdefs.h. */ | |
4e8d927d | 12753 | $ac_includes_default |
3be60c3d MK |
12754 | int |
12755 | main () | |
12756 | { | |
b4e70030 | 12757 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
4e8d927d DJ |
12758 | test_array [0] = 0 |
12759 | ||
3be60c3d MK |
12760 | ; |
12761 | return 0; | |
12762 | } | |
12763 | _ACEOF | |
12764 | rm -f conftest.$ac_objext | |
12765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12766 | (eval $ac_compile) 2>conftest.er1 | |
12767 | ac_status=$? | |
12768 | grep -v '^ *+' conftest.er1 >conftest.err | |
12769 | rm -f conftest.er1 | |
12770 | cat conftest.err >&5 | |
12771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12772 | (exit $ac_status); } && | |
b4e70030 JB |
12773 | { ac_try='test -z "$ac_c_werror_flag" |
12774 | || test ! -s conftest.err' | |
3be60c3d MK |
12775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12776 | (eval $ac_try) 2>&5 | |
12777 | ac_status=$? | |
12778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12779 | (exit $ac_status); }; } && | |
12780 | { ac_try='test -s conftest.$ac_objext' | |
12781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12782 | (eval $ac_try) 2>&5 | |
12783 | ac_status=$? | |
12784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12785 | (exit $ac_status); }; }; then | |
4e8d927d | 12786 | ac_hi=$ac_mid |
3be60c3d MK |
12787 | else |
12788 | echo "$as_me: failed program was:" >&5 | |
12789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12790 | ||
b4e70030 | 12791 | ac_lo=`expr '(' $ac_mid ')' + 1` |
3be60c3d | 12792 | fi |
4e8d927d DJ |
12793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12794 | done | |
12795 | case $ac_lo in | |
12796 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
b4e70030 | 12797 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12798 | See \`config.log' for more details." >&5 |
b4e70030 | 12799 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12800 | See \`config.log' for more details." >&2;} |
b4e70030 | 12801 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 12802 | esac |
b4e70030 JB |
12803 | else |
12804 | if test "$cross_compiling" = yes; then | |
12805 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
12806 | See \`config.log' for more details." >&5 | |
12807 | echo "$as_me: error: cannot run test program while cross compiling | |
12808 | See \`config.log' for more details." >&2;} | |
12809 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
12810 | else |
12811 | cat >conftest.$ac_ext <<_ACEOF | |
12812 | /* confdefs.h. */ | |
3be60c3d | 12813 | _ACEOF |
4e8d927d DJ |
12814 | cat confdefs.h >>conftest.$ac_ext |
12815 | cat >>conftest.$ac_ext <<_ACEOF | |
12816 | /* end confdefs.h. */ | |
12817 | $ac_includes_default | |
b4e70030 JB |
12818 | long longval () { return (long) (sizeof (void *)); } |
12819 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
4e8d927d DJ |
12820 | #include <stdio.h> |
12821 | #include <stdlib.h> | |
12822 | int | |
12823 | main () | |
12824 | { | |
12825 | ||
12826 | FILE *f = fopen ("conftest.val", "w"); | |
12827 | if (! f) | |
b4e70030 JB |
12828 | exit (1); |
12829 | if (((long) (sizeof (void *))) < 0) | |
4e8d927d | 12830 | { |
b4e70030 JB |
12831 | long i = longval (); |
12832 | if (i != ((long) (sizeof (void *)))) | |
12833 | exit (1); | |
4e8d927d DJ |
12834 | fprintf (f, "%ld\n", i); |
12835 | } | |
12836 | else | |
12837 | { | |
b4e70030 JB |
12838 | unsigned long i = ulongval (); |
12839 | if (i != ((long) (sizeof (void *)))) | |
12840 | exit (1); | |
4e8d927d DJ |
12841 | fprintf (f, "%lu\n", i); |
12842 | } | |
b4e70030 | 12843 | exit (ferror (f) || fclose (f) != 0); |
3be60c3d | 12844 | |
4e8d927d DJ |
12845 | ; |
12846 | return 0; | |
12847 | } | |
12848 | _ACEOF | |
12849 | rm -f conftest$ac_exeext | |
12850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12851 | (eval $ac_link) 2>&5 | |
12852 | ac_status=$? | |
12853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12854 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12856 | (eval $ac_try) 2>&5 | |
12857 | ac_status=$? | |
12858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12859 | (exit $ac_status); }; }; then | |
12860 | ac_cv_sizeof_void_p=`cat conftest.val` | |
12861 | else | |
12862 | echo "$as_me: program exited with status $ac_status" >&5 | |
12863 | echo "$as_me: failed program was:" >&5 | |
12864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3be60c3d | 12865 | |
4e8d927d | 12866 | ( exit $ac_status ) |
b4e70030 | 12867 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12868 | See \`config.log' for more details." >&5 |
b4e70030 | 12869 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
4e8d927d | 12870 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
12871 | { (exit 1); exit 1; }; } |
12872 | fi | |
12873 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
f9f87d2c | 12874 | fi |
4e8d927d DJ |
12875 | fi |
12876 | rm -f conftest.val | |
12877 | else | |
12878 | ac_cv_sizeof_void_p=0 | |
12879 | fi | |
12880 | fi | |
b4e70030 JB |
12881 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
12882 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
4e8d927d DJ |
12883 | cat >>confdefs.h <<_ACEOF |
12884 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
12885 | _ACEOF | |
f9f87d2c | 12886 | |
4e8d927d DJ |
12887 | ;; |
12888 | esac | |
46711df8 | 12889 | |
4e8d927d DJ |
12890 | # Lacking an uint64_t? Test size of long |
12891 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
b4e70030 JB |
12892 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 |
12893 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
4e8d927d | 12894 | if test "${ac_cv_type_long+set}" = set; then |
bec39cab | 12895 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
46711df8 | 12896 | else |
bec39cab AC |
12897 | cat >conftest.$ac_ext <<_ACEOF |
12898 | /* confdefs.h. */ | |
12899 | _ACEOF | |
12900 | cat confdefs.h >>conftest.$ac_ext | |
12901 | cat >>conftest.$ac_ext <<_ACEOF | |
12902 | /* end confdefs.h. */ | |
4e8d927d | 12903 | $ac_includes_default |
bec39cab | 12904 | int |
46711df8 MK |
12905 | main () |
12906 | { | |
b4e70030 | 12907 | if ((long *) 0) |
4e8d927d | 12908 | return 0; |
b4e70030 | 12909 | if (sizeof (long)) |
4e8d927d | 12910 | return 0; |
a3828db0 MK |
12911 | ; |
12912 | return 0; | |
46711df8 | 12913 | } |
bec39cab | 12914 | _ACEOF |
a3828db0 MK |
12915 | rm -f conftest.$ac_objext |
12916 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12917 | (eval $ac_compile) 2>conftest.er1 | |
12918 | ac_status=$? | |
12919 | grep -v '^ *+' conftest.er1 >conftest.err | |
12920 | rm -f conftest.er1 | |
12921 | cat conftest.err >&5 | |
12922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12923 | (exit $ac_status); } && | |
b4e70030 JB |
12924 | { ac_try='test -z "$ac_c_werror_flag" |
12925 | || test ! -s conftest.err' | |
a3828db0 MK |
12926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12927 | (eval $ac_try) 2>&5 | |
bec39cab AC |
12928 | ac_status=$? |
12929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 MK |
12930 | (exit $ac_status); }; } && |
12931 | { ac_try='test -s conftest.$ac_objext' | |
bec39cab AC |
12932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12933 | (eval $ac_try) 2>&5 | |
12934 | ac_status=$? | |
12935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12936 | (exit $ac_status); }; }; then | |
4e8d927d | 12937 | ac_cv_type_long=yes |
46711df8 | 12938 | else |
a3828db0 | 12939 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
12940 | sed 's/^/| /' conftest.$ac_ext >&5 |
12941 | ||
b4e70030 | 12942 | ac_cv_type_long=no |
46711df8 | 12943 | fi |
4e8d927d | 12944 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
46711df8 | 12945 | fi |
b4e70030 JB |
12946 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
12947 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
46711df8 | 12948 | |
b4e70030 JB |
12949 | echo "$as_me:$LINENO: checking size of long" >&5 |
12950 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
4e8d927d | 12951 | if test "${ac_cv_sizeof_long+set}" = set; then |
bec39cab | 12952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 12953 | else |
4e8d927d | 12954 | if test "$ac_cv_type_long" = yes; then |
b4e70030 | 12955 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
12956 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
12957 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12958 | # This bug is HP SR number 8606223364. | |
12959 | if test "$cross_compiling" = yes; then | |
12960 | # Depending upon the size, compute the lo and hi bounds. | |
12961 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
12962 | /* confdefs.h. */ |
12963 | _ACEOF | |
12964 | cat confdefs.h >>conftest.$ac_ext | |
12965 | cat >>conftest.$ac_ext <<_ACEOF | |
12966 | /* end confdefs.h. */ | |
4e8d927d | 12967 | $ac_includes_default |
4e8d927d DJ |
12968 | int |
12969 | main () | |
12970 | { | |
b4e70030 | 12971 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
4e8d927d | 12972 | test_array [0] = 0 |
a3828db0 | 12973 | |
4e8d927d DJ |
12974 | ; |
12975 | return 0; | |
12976 | } | |
bec39cab AC |
12977 | _ACEOF |
12978 | rm -f conftest.$ac_objext | |
12979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12980 | (eval $ac_compile) 2>conftest.er1 | |
12981 | ac_status=$? | |
12982 | grep -v '^ *+' conftest.er1 >conftest.err | |
12983 | rm -f conftest.er1 | |
12984 | cat conftest.err >&5 | |
12985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12986 | (exit $ac_status); } && | |
b4e70030 JB |
12987 | { ac_try='test -z "$ac_c_werror_flag" |
12988 | || test ! -s conftest.err' | |
bec39cab AC |
12989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12990 | (eval $ac_try) 2>&5 | |
12991 | ac_status=$? | |
12992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12993 | (exit $ac_status); }; } && | |
12994 | { ac_try='test -s conftest.$ac_objext' | |
12995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12996 | (eval $ac_try) 2>&5 | |
12997 | ac_status=$? | |
12998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12999 | (exit $ac_status); }; }; then | |
4e8d927d DJ |
13000 | ac_lo=0 ac_mid=0 |
13001 | while :; do | |
13002 | cat >conftest.$ac_ext <<_ACEOF | |
13003 | /* confdefs.h. */ | |
13004 | _ACEOF | |
13005 | cat confdefs.h >>conftest.$ac_ext | |
13006 | cat >>conftest.$ac_ext <<_ACEOF | |
13007 | /* end confdefs.h. */ | |
13008 | $ac_includes_default | |
4e8d927d DJ |
13009 | int |
13010 | main () | |
13011 | { | |
b4e70030 | 13012 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
4e8d927d DJ |
13013 | test_array [0] = 0 |
13014 | ||
13015 | ; | |
13016 | return 0; | |
13017 | } | |
13018 | _ACEOF | |
13019 | rm -f conftest.$ac_objext | |
13020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13021 | (eval $ac_compile) 2>conftest.er1 | |
13022 | ac_status=$? | |
13023 | grep -v '^ *+' conftest.er1 >conftest.err | |
13024 | rm -f conftest.er1 | |
13025 | cat conftest.err >&5 | |
13026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13027 | (exit $ac_status); } && | |
b4e70030 JB |
13028 | { ac_try='test -z "$ac_c_werror_flag" |
13029 | || test ! -s conftest.err' | |
4e8d927d DJ |
13030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13031 | (eval $ac_try) 2>&5 | |
13032 | ac_status=$? | |
13033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13034 | (exit $ac_status); }; } && | |
13035 | { ac_try='test -s conftest.$ac_objext' | |
13036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13037 | (eval $ac_try) 2>&5 | |
13038 | ac_status=$? | |
13039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13040 | (exit $ac_status); }; }; then | |
13041 | ac_hi=$ac_mid; break | |
13042 | else | |
13043 | echo "$as_me: failed program was:" >&5 | |
13044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13045 | ||
b4e70030 JB |
13046 | ac_lo=`expr $ac_mid + 1` |
13047 | if test $ac_lo -le $ac_mid; then | |
13048 | ac_lo= ac_hi= | |
13049 | break | |
13050 | fi | |
13051 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 13052 | fi |
4e8d927d DJ |
13053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13054 | done | |
13055 | else | |
13056 | echo "$as_me: failed program was:" >&5 | |
13057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13058 | ||
b4e70030 | 13059 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
13060 | /* confdefs.h. */ |
13061 | _ACEOF | |
13062 | cat confdefs.h >>conftest.$ac_ext | |
13063 | cat >>conftest.$ac_ext <<_ACEOF | |
13064 | /* end confdefs.h. */ | |
13065 | $ac_includes_default | |
4e8d927d DJ |
13066 | int |
13067 | main () | |
13068 | { | |
b4e70030 | 13069 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
4e8d927d DJ |
13070 | test_array [0] = 0 |
13071 | ||
13072 | ; | |
13073 | return 0; | |
13074 | } | |
13075 | _ACEOF | |
13076 | rm -f conftest.$ac_objext | |
13077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13078 | (eval $ac_compile) 2>conftest.er1 | |
13079 | ac_status=$? | |
13080 | grep -v '^ *+' conftest.er1 >conftest.err | |
13081 | rm -f conftest.er1 | |
13082 | cat conftest.err >&5 | |
13083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13084 | (exit $ac_status); } && | |
b4e70030 JB |
13085 | { ac_try='test -z "$ac_c_werror_flag" |
13086 | || test ! -s conftest.err' | |
4e8d927d DJ |
13087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13088 | (eval $ac_try) 2>&5 | |
13089 | ac_status=$? | |
13090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13091 | (exit $ac_status); }; } && | |
13092 | { ac_try='test -s conftest.$ac_objext' | |
13093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13094 | (eval $ac_try) 2>&5 | |
13095 | ac_status=$? | |
13096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13097 | (exit $ac_status); }; }; then | |
13098 | ac_hi=-1 ac_mid=-1 | |
13099 | while :; do | |
13100 | cat >conftest.$ac_ext <<_ACEOF | |
13101 | /* confdefs.h. */ | |
13102 | _ACEOF | |
13103 | cat confdefs.h >>conftest.$ac_ext | |
13104 | cat >>conftest.$ac_ext <<_ACEOF | |
13105 | /* end confdefs.h. */ | |
13106 | $ac_includes_default | |
4e8d927d DJ |
13107 | int |
13108 | main () | |
13109 | { | |
b4e70030 | 13110 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
4e8d927d DJ |
13111 | test_array [0] = 0 |
13112 | ||
13113 | ; | |
13114 | return 0; | |
13115 | } | |
13116 | _ACEOF | |
13117 | rm -f conftest.$ac_objext | |
13118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13119 | (eval $ac_compile) 2>conftest.er1 | |
13120 | ac_status=$? | |
13121 | grep -v '^ *+' conftest.er1 >conftest.err | |
13122 | rm -f conftest.er1 | |
13123 | cat conftest.err >&5 | |
13124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13125 | (exit $ac_status); } && | |
b4e70030 JB |
13126 | { ac_try='test -z "$ac_c_werror_flag" |
13127 | || test ! -s conftest.err' | |
4e8d927d DJ |
13128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13129 | (eval $ac_try) 2>&5 | |
13130 | ac_status=$? | |
13131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13132 | (exit $ac_status); }; } && | |
13133 | { ac_try='test -s conftest.$ac_objext' | |
13134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13135 | (eval $ac_try) 2>&5 | |
13136 | ac_status=$? | |
13137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13138 | (exit $ac_status); }; }; then | |
13139 | ac_lo=$ac_mid; break | |
13140 | else | |
13141 | echo "$as_me: failed program was:" >&5 | |
13142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13143 | ||
b4e70030 JB |
13144 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13145 | if test $ac_mid -le $ac_hi; then | |
13146 | ac_lo= ac_hi= | |
13147 | break | |
13148 | fi | |
13149 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 13150 | fi |
4e8d927d DJ |
13151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13152 | done | |
13153 | else | |
13154 | echo "$as_me: failed program was:" >&5 | |
13155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13156 | ||
b4e70030 | 13157 | ac_lo= ac_hi= |
4e8d927d | 13158 | fi |
4e8d927d DJ |
13159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13160 | fi | |
4e8d927d DJ |
13161 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13162 | # Binary search between lo and hi bounds. | |
13163 | while test "x$ac_lo" != "x$ac_hi"; do | |
13164 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13165 | cat >conftest.$ac_ext <<_ACEOF | |
13166 | /* confdefs.h. */ | |
13167 | _ACEOF | |
13168 | cat confdefs.h >>conftest.$ac_ext | |
13169 | cat >>conftest.$ac_ext <<_ACEOF | |
13170 | /* end confdefs.h. */ | |
13171 | $ac_includes_default | |
4e8d927d DJ |
13172 | int |
13173 | main () | |
13174 | { | |
b4e70030 | 13175 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
4e8d927d DJ |
13176 | test_array [0] = 0 |
13177 | ||
13178 | ; | |
13179 | return 0; | |
13180 | } | |
13181 | _ACEOF | |
13182 | rm -f conftest.$ac_objext | |
13183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13184 | (eval $ac_compile) 2>conftest.er1 | |
13185 | ac_status=$? | |
13186 | grep -v '^ *+' conftest.er1 >conftest.err | |
13187 | rm -f conftest.er1 | |
13188 | cat conftest.err >&5 | |
13189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13190 | (exit $ac_status); } && | |
b4e70030 JB |
13191 | { ac_try='test -z "$ac_c_werror_flag" |
13192 | || test ! -s conftest.err' | |
4e8d927d DJ |
13193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13194 | (eval $ac_try) 2>&5 | |
13195 | ac_status=$? | |
13196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13197 | (exit $ac_status); }; } && | |
13198 | { ac_try='test -s conftest.$ac_objext' | |
13199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13200 | (eval $ac_try) 2>&5 | |
13201 | ac_status=$? | |
13202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13203 | (exit $ac_status); }; }; then | |
13204 | ac_hi=$ac_mid | |
13205 | else | |
13206 | echo "$as_me: failed program was:" >&5 | |
13207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13208 | ||
b4e70030 | 13209 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 13210 | fi |
4e8d927d DJ |
13211 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13212 | done | |
13213 | case $ac_lo in | |
13214 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
b4e70030 | 13215 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
4e8d927d | 13216 | See \`config.log' for more details." >&5 |
b4e70030 | 13217 | echo "$as_me: error: cannot compute sizeof (long), 77 |
4e8d927d | 13218 | See \`config.log' for more details." >&2;} |
b4e70030 | 13219 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 13220 | esac |
b4e70030 JB |
13221 | else |
13222 | if test "$cross_compiling" = yes; then | |
13223 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13224 | See \`config.log' for more details." >&5 | |
13225 | echo "$as_me: error: cannot run test program while cross compiling | |
13226 | See \`config.log' for more details." >&2;} | |
13227 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
13228 | else |
13229 | cat >conftest.$ac_ext <<_ACEOF | |
13230 | /* confdefs.h. */ | |
13231 | _ACEOF | |
13232 | cat confdefs.h >>conftest.$ac_ext | |
13233 | cat >>conftest.$ac_ext <<_ACEOF | |
13234 | /* end confdefs.h. */ | |
13235 | $ac_includes_default | |
b4e70030 JB |
13236 | long longval () { return (long) (sizeof (long)); } |
13237 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
4e8d927d DJ |
13238 | #include <stdio.h> |
13239 | #include <stdlib.h> | |
13240 | int | |
13241 | main () | |
13242 | { | |
13243 | ||
13244 | FILE *f = fopen ("conftest.val", "w"); | |
13245 | if (! f) | |
b4e70030 JB |
13246 | exit (1); |
13247 | if (((long) (sizeof (long))) < 0) | |
4e8d927d | 13248 | { |
b4e70030 JB |
13249 | long i = longval (); |
13250 | if (i != ((long) (sizeof (long)))) | |
13251 | exit (1); | |
4e8d927d DJ |
13252 | fprintf (f, "%ld\n", i); |
13253 | } | |
13254 | else | |
13255 | { | |
b4e70030 JB |
13256 | unsigned long i = ulongval (); |
13257 | if (i != ((long) (sizeof (long)))) | |
13258 | exit (1); | |
4e8d927d DJ |
13259 | fprintf (f, "%lu\n", i); |
13260 | } | |
b4e70030 | 13261 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
13262 | |
13263 | ; | |
13264 | return 0; | |
13265 | } | |
13266 | _ACEOF | |
13267 | rm -f conftest$ac_exeext | |
13268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13269 | (eval $ac_link) 2>&5 | |
13270 | ac_status=$? | |
13271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13272 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13274 | (eval $ac_try) 2>&5 | |
13275 | ac_status=$? | |
13276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13277 | (exit $ac_status); }; }; then | |
13278 | ac_cv_sizeof_long=`cat conftest.val` | |
13279 | else | |
13280 | echo "$as_me: program exited with status $ac_status" >&5 | |
13281 | echo "$as_me: failed program was:" >&5 | |
13282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13283 | ||
13284 | ( exit $ac_status ) | |
b4e70030 | 13285 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
4e8d927d | 13286 | See \`config.log' for more details." >&5 |
b4e70030 | 13287 | echo "$as_me: error: cannot compute sizeof (long), 77 |
4e8d927d | 13288 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
13289 | { (exit 1); exit 1; }; } |
13290 | fi | |
13291 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 13292 | fi |
4e8d927d DJ |
13293 | fi |
13294 | rm -f conftest.val | |
13295 | else | |
13296 | ac_cv_sizeof_long=0 | |
13297 | fi | |
13298 | fi | |
b4e70030 JB |
13299 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
13300 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
4e8d927d DJ |
13301 | cat >>confdefs.h <<_ACEOF |
13302 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
13303 | _ACEOF | |
13304 | ||
13305 | ;; | |
13306 | esac | |
13307 | ||
13308 | if test $acx_cv_header_stdint = stddef.h; then | |
13309 | # Lacking a good header? Test size of everything and deduce all types. | |
b4e70030 JB |
13310 | echo "$as_me:$LINENO: checking for int" >&5 |
13311 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
4e8d927d DJ |
13312 | if test "${ac_cv_type_int+set}" = set; then |
13313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13314 | else | |
13315 | cat >conftest.$ac_ext <<_ACEOF | |
13316 | /* confdefs.h. */ | |
13317 | _ACEOF | |
13318 | cat confdefs.h >>conftest.$ac_ext | |
13319 | cat >>conftest.$ac_ext <<_ACEOF | |
13320 | /* end confdefs.h. */ | |
13321 | $ac_includes_default | |
4e8d927d DJ |
13322 | int |
13323 | main () | |
13324 | { | |
b4e70030 | 13325 | if ((int *) 0) |
4e8d927d | 13326 | return 0; |
b4e70030 | 13327 | if (sizeof (int)) |
4e8d927d DJ |
13328 | return 0; |
13329 | ; | |
13330 | return 0; | |
13331 | } | |
13332 | _ACEOF | |
13333 | rm -f conftest.$ac_objext | |
13334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13335 | (eval $ac_compile) 2>conftest.er1 | |
13336 | ac_status=$? | |
13337 | grep -v '^ *+' conftest.er1 >conftest.err | |
13338 | rm -f conftest.er1 | |
13339 | cat conftest.err >&5 | |
13340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13341 | (exit $ac_status); } && | |
b4e70030 JB |
13342 | { ac_try='test -z "$ac_c_werror_flag" |
13343 | || test ! -s conftest.err' | |
4e8d927d DJ |
13344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13345 | (eval $ac_try) 2>&5 | |
13346 | ac_status=$? | |
13347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13348 | (exit $ac_status); }; } && | |
13349 | { ac_try='test -s conftest.$ac_objext' | |
13350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13351 | (eval $ac_try) 2>&5 | |
13352 | ac_status=$? | |
13353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13354 | (exit $ac_status); }; }; then | |
13355 | ac_cv_type_int=yes | |
13356 | else | |
13357 | echo "$as_me: failed program was:" >&5 | |
13358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13359 | ||
b4e70030 | 13360 | ac_cv_type_int=no |
4e8d927d | 13361 | fi |
4e8d927d DJ |
13362 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13363 | fi | |
b4e70030 JB |
13364 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
13365 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
4e8d927d | 13366 | |
b4e70030 JB |
13367 | echo "$as_me:$LINENO: checking size of int" >&5 |
13368 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
4e8d927d DJ |
13369 | if test "${ac_cv_sizeof_int+set}" = set; then |
13370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13371 | else | |
13372 | if test "$ac_cv_type_int" = yes; then | |
b4e70030 | 13373 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
13374 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13375 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13376 | # This bug is HP SR number 8606223364. | |
13377 | if test "$cross_compiling" = yes; then | |
13378 | # Depending upon the size, compute the lo and hi bounds. | |
13379 | cat >conftest.$ac_ext <<_ACEOF | |
13380 | /* confdefs.h. */ | |
13381 | _ACEOF | |
13382 | cat confdefs.h >>conftest.$ac_ext | |
13383 | cat >>conftest.$ac_ext <<_ACEOF | |
13384 | /* end confdefs.h. */ | |
13385 | $ac_includes_default | |
4e8d927d DJ |
13386 | int |
13387 | main () | |
13388 | { | |
b4e70030 | 13389 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
4e8d927d DJ |
13390 | test_array [0] = 0 |
13391 | ||
13392 | ; | |
13393 | return 0; | |
13394 | } | |
13395 | _ACEOF | |
13396 | rm -f conftest.$ac_objext | |
13397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13398 | (eval $ac_compile) 2>conftest.er1 | |
13399 | ac_status=$? | |
13400 | grep -v '^ *+' conftest.er1 >conftest.err | |
13401 | rm -f conftest.er1 | |
13402 | cat conftest.err >&5 | |
13403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13404 | (exit $ac_status); } && | |
b4e70030 JB |
13405 | { ac_try='test -z "$ac_c_werror_flag" |
13406 | || test ! -s conftest.err' | |
4e8d927d DJ |
13407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13408 | (eval $ac_try) 2>&5 | |
13409 | ac_status=$? | |
13410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13411 | (exit $ac_status); }; } && | |
13412 | { ac_try='test -s conftest.$ac_objext' | |
13413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13414 | (eval $ac_try) 2>&5 | |
13415 | ac_status=$? | |
13416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13417 | (exit $ac_status); }; }; then | |
13418 | ac_lo=0 ac_mid=0 | |
13419 | while :; do | |
13420 | cat >conftest.$ac_ext <<_ACEOF | |
13421 | /* confdefs.h. */ | |
13422 | _ACEOF | |
13423 | cat confdefs.h >>conftest.$ac_ext | |
13424 | cat >>conftest.$ac_ext <<_ACEOF | |
13425 | /* end confdefs.h. */ | |
13426 | $ac_includes_default | |
4e8d927d DJ |
13427 | int |
13428 | main () | |
13429 | { | |
b4e70030 | 13430 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
4e8d927d DJ |
13431 | test_array [0] = 0 |
13432 | ||
13433 | ; | |
13434 | return 0; | |
13435 | } | |
13436 | _ACEOF | |
13437 | rm -f conftest.$ac_objext | |
13438 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13439 | (eval $ac_compile) 2>conftest.er1 | |
13440 | ac_status=$? | |
13441 | grep -v '^ *+' conftest.er1 >conftest.err | |
13442 | rm -f conftest.er1 | |
13443 | cat conftest.err >&5 | |
13444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13445 | (exit $ac_status); } && | |
b4e70030 JB |
13446 | { ac_try='test -z "$ac_c_werror_flag" |
13447 | || test ! -s conftest.err' | |
4e8d927d DJ |
13448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13449 | (eval $ac_try) 2>&5 | |
13450 | ac_status=$? | |
13451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13452 | (exit $ac_status); }; } && | |
13453 | { ac_try='test -s conftest.$ac_objext' | |
13454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13455 | (eval $ac_try) 2>&5 | |
13456 | ac_status=$? | |
13457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13458 | (exit $ac_status); }; }; then | |
13459 | ac_hi=$ac_mid; break | |
13460 | else | |
13461 | echo "$as_me: failed program was:" >&5 | |
13462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13463 | ||
b4e70030 JB |
13464 | ac_lo=`expr $ac_mid + 1` |
13465 | if test $ac_lo -le $ac_mid; then | |
13466 | ac_lo= ac_hi= | |
13467 | break | |
13468 | fi | |
13469 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 13470 | fi |
4e8d927d DJ |
13471 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13472 | done | |
13473 | else | |
13474 | echo "$as_me: failed program was:" >&5 | |
13475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13476 | ||
b4e70030 | 13477 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
13478 | /* confdefs.h. */ |
13479 | _ACEOF | |
13480 | cat confdefs.h >>conftest.$ac_ext | |
13481 | cat >>conftest.$ac_ext <<_ACEOF | |
13482 | /* end confdefs.h. */ | |
13483 | $ac_includes_default | |
4e8d927d DJ |
13484 | int |
13485 | main () | |
13486 | { | |
b4e70030 | 13487 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
4e8d927d DJ |
13488 | test_array [0] = 0 |
13489 | ||
13490 | ; | |
13491 | return 0; | |
13492 | } | |
13493 | _ACEOF | |
13494 | rm -f conftest.$ac_objext | |
13495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13496 | (eval $ac_compile) 2>conftest.er1 | |
13497 | ac_status=$? | |
13498 | grep -v '^ *+' conftest.er1 >conftest.err | |
13499 | rm -f conftest.er1 | |
13500 | cat conftest.err >&5 | |
13501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13502 | (exit $ac_status); } && | |
b4e70030 JB |
13503 | { ac_try='test -z "$ac_c_werror_flag" |
13504 | || test ! -s conftest.err' | |
4e8d927d DJ |
13505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13506 | (eval $ac_try) 2>&5 | |
13507 | ac_status=$? | |
13508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13509 | (exit $ac_status); }; } && | |
13510 | { ac_try='test -s conftest.$ac_objext' | |
13511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13512 | (eval $ac_try) 2>&5 | |
13513 | ac_status=$? | |
13514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13515 | (exit $ac_status); }; }; then | |
13516 | ac_hi=-1 ac_mid=-1 | |
13517 | while :; do | |
13518 | cat >conftest.$ac_ext <<_ACEOF | |
13519 | /* confdefs.h. */ | |
13520 | _ACEOF | |
13521 | cat confdefs.h >>conftest.$ac_ext | |
13522 | cat >>conftest.$ac_ext <<_ACEOF | |
13523 | /* end confdefs.h. */ | |
13524 | $ac_includes_default | |
4e8d927d DJ |
13525 | int |
13526 | main () | |
13527 | { | |
b4e70030 | 13528 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
4e8d927d DJ |
13529 | test_array [0] = 0 |
13530 | ||
13531 | ; | |
13532 | return 0; | |
13533 | } | |
13534 | _ACEOF | |
13535 | rm -f conftest.$ac_objext | |
13536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13537 | (eval $ac_compile) 2>conftest.er1 | |
13538 | ac_status=$? | |
13539 | grep -v '^ *+' conftest.er1 >conftest.err | |
13540 | rm -f conftest.er1 | |
13541 | cat conftest.err >&5 | |
13542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13543 | (exit $ac_status); } && | |
b4e70030 JB |
13544 | { ac_try='test -z "$ac_c_werror_flag" |
13545 | || test ! -s conftest.err' | |
4e8d927d DJ |
13546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13547 | (eval $ac_try) 2>&5 | |
13548 | ac_status=$? | |
13549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13550 | (exit $ac_status); }; } && | |
13551 | { ac_try='test -s conftest.$ac_objext' | |
13552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13553 | (eval $ac_try) 2>&5 | |
13554 | ac_status=$? | |
13555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13556 | (exit $ac_status); }; }; then | |
13557 | ac_lo=$ac_mid; break | |
13558 | else | |
13559 | echo "$as_me: failed program was:" >&5 | |
13560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13561 | ||
b4e70030 JB |
13562 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13563 | if test $ac_mid -le $ac_hi; then | |
13564 | ac_lo= ac_hi= | |
13565 | break | |
13566 | fi | |
13567 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 13568 | fi |
4e8d927d DJ |
13569 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13570 | done | |
13571 | else | |
13572 | echo "$as_me: failed program was:" >&5 | |
13573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13574 | ||
b4e70030 | 13575 | ac_lo= ac_hi= |
4e8d927d | 13576 | fi |
4e8d927d DJ |
13577 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13578 | fi | |
4e8d927d DJ |
13579 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13580 | # Binary search between lo and hi bounds. | |
13581 | while test "x$ac_lo" != "x$ac_hi"; do | |
13582 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13583 | cat >conftest.$ac_ext <<_ACEOF | |
13584 | /* confdefs.h. */ | |
13585 | _ACEOF | |
13586 | cat confdefs.h >>conftest.$ac_ext | |
13587 | cat >>conftest.$ac_ext <<_ACEOF | |
13588 | /* end confdefs.h. */ | |
13589 | $ac_includes_default | |
4e8d927d DJ |
13590 | int |
13591 | main () | |
13592 | { | |
b4e70030 | 13593 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
4e8d927d DJ |
13594 | test_array [0] = 0 |
13595 | ||
13596 | ; | |
13597 | return 0; | |
13598 | } | |
13599 | _ACEOF | |
13600 | rm -f conftest.$ac_objext | |
13601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13602 | (eval $ac_compile) 2>conftest.er1 | |
13603 | ac_status=$? | |
13604 | grep -v '^ *+' conftest.er1 >conftest.err | |
13605 | rm -f conftest.er1 | |
13606 | cat conftest.err >&5 | |
13607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13608 | (exit $ac_status); } && | |
b4e70030 JB |
13609 | { ac_try='test -z "$ac_c_werror_flag" |
13610 | || test ! -s conftest.err' | |
4e8d927d DJ |
13611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13612 | (eval $ac_try) 2>&5 | |
13613 | ac_status=$? | |
13614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13615 | (exit $ac_status); }; } && | |
13616 | { ac_try='test -s conftest.$ac_objext' | |
13617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13618 | (eval $ac_try) 2>&5 | |
13619 | ac_status=$? | |
13620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13621 | (exit $ac_status); }; }; then | |
13622 | ac_hi=$ac_mid | |
13623 | else | |
13624 | echo "$as_me: failed program was:" >&5 | |
13625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13626 | ||
b4e70030 | 13627 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 13628 | fi |
4e8d927d DJ |
13629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13630 | done | |
13631 | case $ac_lo in | |
13632 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
b4e70030 | 13633 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
4e8d927d | 13634 | See \`config.log' for more details." >&5 |
b4e70030 | 13635 | echo "$as_me: error: cannot compute sizeof (int), 77 |
4e8d927d | 13636 | See \`config.log' for more details." >&2;} |
b4e70030 | 13637 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 13638 | esac |
b4e70030 JB |
13639 | else |
13640 | if test "$cross_compiling" = yes; then | |
13641 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13642 | See \`config.log' for more details." >&5 | |
13643 | echo "$as_me: error: cannot run test program while cross compiling | |
13644 | See \`config.log' for more details." >&2;} | |
13645 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
13646 | else |
13647 | cat >conftest.$ac_ext <<_ACEOF | |
13648 | /* confdefs.h. */ | |
13649 | _ACEOF | |
13650 | cat confdefs.h >>conftest.$ac_ext | |
13651 | cat >>conftest.$ac_ext <<_ACEOF | |
13652 | /* end confdefs.h. */ | |
13653 | $ac_includes_default | |
b4e70030 JB |
13654 | long longval () { return (long) (sizeof (int)); } |
13655 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
4e8d927d DJ |
13656 | #include <stdio.h> |
13657 | #include <stdlib.h> | |
13658 | int | |
13659 | main () | |
13660 | { | |
13661 | ||
13662 | FILE *f = fopen ("conftest.val", "w"); | |
13663 | if (! f) | |
b4e70030 JB |
13664 | exit (1); |
13665 | if (((long) (sizeof (int))) < 0) | |
4e8d927d | 13666 | { |
b4e70030 JB |
13667 | long i = longval (); |
13668 | if (i != ((long) (sizeof (int)))) | |
13669 | exit (1); | |
4e8d927d DJ |
13670 | fprintf (f, "%ld\n", i); |
13671 | } | |
13672 | else | |
13673 | { | |
b4e70030 JB |
13674 | unsigned long i = ulongval (); |
13675 | if (i != ((long) (sizeof (int)))) | |
13676 | exit (1); | |
4e8d927d DJ |
13677 | fprintf (f, "%lu\n", i); |
13678 | } | |
b4e70030 | 13679 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
13680 | |
13681 | ; | |
13682 | return 0; | |
13683 | } | |
13684 | _ACEOF | |
13685 | rm -f conftest$ac_exeext | |
13686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13687 | (eval $ac_link) 2>&5 | |
13688 | ac_status=$? | |
13689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13690 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13692 | (eval $ac_try) 2>&5 | |
13693 | ac_status=$? | |
13694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13695 | (exit $ac_status); }; }; then | |
13696 | ac_cv_sizeof_int=`cat conftest.val` | |
13697 | else | |
13698 | echo "$as_me: program exited with status $ac_status" >&5 | |
13699 | echo "$as_me: failed program was:" >&5 | |
13700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13701 | ||
13702 | ( exit $ac_status ) | |
b4e70030 | 13703 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
4e8d927d | 13704 | See \`config.log' for more details." >&5 |
b4e70030 | 13705 | echo "$as_me: error: cannot compute sizeof (int), 77 |
4e8d927d | 13706 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
13707 | { (exit 1); exit 1; }; } |
13708 | fi | |
13709 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 13710 | fi |
4e8d927d DJ |
13711 | fi |
13712 | rm -f conftest.val | |
13713 | else | |
13714 | ac_cv_sizeof_int=0 | |
13715 | fi | |
13716 | fi | |
b4e70030 JB |
13717 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
13718 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
4e8d927d DJ |
13719 | cat >>confdefs.h <<_ACEOF |
13720 | #define SIZEOF_INT $ac_cv_sizeof_int | |
13721 | _ACEOF | |
13722 | ||
13723 | ||
b4e70030 JB |
13724 | echo "$as_me:$LINENO: checking for short" >&5 |
13725 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
4e8d927d DJ |
13726 | if test "${ac_cv_type_short+set}" = set; then |
13727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13728 | else | |
13729 | cat >conftest.$ac_ext <<_ACEOF | |
13730 | /* confdefs.h. */ | |
13731 | _ACEOF | |
13732 | cat confdefs.h >>conftest.$ac_ext | |
13733 | cat >>conftest.$ac_ext <<_ACEOF | |
13734 | /* end confdefs.h. */ | |
13735 | $ac_includes_default | |
4e8d927d DJ |
13736 | int |
13737 | main () | |
13738 | { | |
b4e70030 | 13739 | if ((short *) 0) |
4e8d927d | 13740 | return 0; |
b4e70030 | 13741 | if (sizeof (short)) |
4e8d927d DJ |
13742 | return 0; |
13743 | ; | |
13744 | return 0; | |
13745 | } | |
13746 | _ACEOF | |
13747 | rm -f conftest.$ac_objext | |
13748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13749 | (eval $ac_compile) 2>conftest.er1 | |
13750 | ac_status=$? | |
13751 | grep -v '^ *+' conftest.er1 >conftest.err | |
13752 | rm -f conftest.er1 | |
13753 | cat conftest.err >&5 | |
13754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13755 | (exit $ac_status); } && | |
b4e70030 JB |
13756 | { ac_try='test -z "$ac_c_werror_flag" |
13757 | || test ! -s conftest.err' | |
4e8d927d DJ |
13758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13759 | (eval $ac_try) 2>&5 | |
13760 | ac_status=$? | |
13761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13762 | (exit $ac_status); }; } && | |
13763 | { ac_try='test -s conftest.$ac_objext' | |
13764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13765 | (eval $ac_try) 2>&5 | |
13766 | ac_status=$? | |
13767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13768 | (exit $ac_status); }; }; then | |
13769 | ac_cv_type_short=yes | |
13770 | else | |
13771 | echo "$as_me: failed program was:" >&5 | |
13772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13773 | ||
b4e70030 | 13774 | ac_cv_type_short=no |
4e8d927d | 13775 | fi |
4e8d927d DJ |
13776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13777 | fi | |
b4e70030 JB |
13778 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 |
13779 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
4e8d927d | 13780 | |
b4e70030 JB |
13781 | echo "$as_me:$LINENO: checking size of short" >&5 |
13782 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
4e8d927d DJ |
13783 | if test "${ac_cv_sizeof_short+set}" = set; then |
13784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13785 | else | |
13786 | if test "$ac_cv_type_short" = yes; then | |
b4e70030 | 13787 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
13788 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
13789 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13790 | # This bug is HP SR number 8606223364. | |
13791 | if test "$cross_compiling" = yes; then | |
13792 | # Depending upon the size, compute the lo and hi bounds. | |
13793 | cat >conftest.$ac_ext <<_ACEOF | |
13794 | /* confdefs.h. */ | |
13795 | _ACEOF | |
13796 | cat confdefs.h >>conftest.$ac_ext | |
13797 | cat >>conftest.$ac_ext <<_ACEOF | |
13798 | /* end confdefs.h. */ | |
13799 | $ac_includes_default | |
4e8d927d DJ |
13800 | int |
13801 | main () | |
13802 | { | |
b4e70030 | 13803 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; |
4e8d927d DJ |
13804 | test_array [0] = 0 |
13805 | ||
13806 | ; | |
13807 | return 0; | |
13808 | } | |
13809 | _ACEOF | |
13810 | rm -f conftest.$ac_objext | |
13811 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13812 | (eval $ac_compile) 2>conftest.er1 | |
13813 | ac_status=$? | |
13814 | grep -v '^ *+' conftest.er1 >conftest.err | |
13815 | rm -f conftest.er1 | |
13816 | cat conftest.err >&5 | |
13817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13818 | (exit $ac_status); } && | |
b4e70030 JB |
13819 | { ac_try='test -z "$ac_c_werror_flag" |
13820 | || test ! -s conftest.err' | |
4e8d927d DJ |
13821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13822 | (eval $ac_try) 2>&5 | |
13823 | ac_status=$? | |
13824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13825 | (exit $ac_status); }; } && | |
13826 | { ac_try='test -s conftest.$ac_objext' | |
13827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13828 | (eval $ac_try) 2>&5 | |
13829 | ac_status=$? | |
13830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13831 | (exit $ac_status); }; }; then | |
13832 | ac_lo=0 ac_mid=0 | |
13833 | while :; do | |
13834 | cat >conftest.$ac_ext <<_ACEOF | |
13835 | /* confdefs.h. */ | |
13836 | _ACEOF | |
13837 | cat confdefs.h >>conftest.$ac_ext | |
13838 | cat >>conftest.$ac_ext <<_ACEOF | |
13839 | /* end confdefs.h. */ | |
13840 | $ac_includes_default | |
4e8d927d DJ |
13841 | int |
13842 | main () | |
13843 | { | |
b4e70030 | 13844 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
4e8d927d DJ |
13845 | test_array [0] = 0 |
13846 | ||
13847 | ; | |
13848 | return 0; | |
13849 | } | |
13850 | _ACEOF | |
13851 | rm -f conftest.$ac_objext | |
13852 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13853 | (eval $ac_compile) 2>conftest.er1 | |
13854 | ac_status=$? | |
13855 | grep -v '^ *+' conftest.er1 >conftest.err | |
13856 | rm -f conftest.er1 | |
13857 | cat conftest.err >&5 | |
13858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13859 | (exit $ac_status); } && | |
b4e70030 JB |
13860 | { ac_try='test -z "$ac_c_werror_flag" |
13861 | || test ! -s conftest.err' | |
4e8d927d DJ |
13862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13863 | (eval $ac_try) 2>&5 | |
13864 | ac_status=$? | |
13865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13866 | (exit $ac_status); }; } && | |
13867 | { ac_try='test -s conftest.$ac_objext' | |
13868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13869 | (eval $ac_try) 2>&5 | |
13870 | ac_status=$? | |
13871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13872 | (exit $ac_status); }; }; then | |
13873 | ac_hi=$ac_mid; break | |
13874 | else | |
13875 | echo "$as_me: failed program was:" >&5 | |
13876 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13877 | ||
b4e70030 JB |
13878 | ac_lo=`expr $ac_mid + 1` |
13879 | if test $ac_lo -le $ac_mid; then | |
13880 | ac_lo= ac_hi= | |
13881 | break | |
13882 | fi | |
13883 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 13884 | fi |
4e8d927d DJ |
13885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13886 | done | |
13887 | else | |
13888 | echo "$as_me: failed program was:" >&5 | |
13889 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13890 | ||
b4e70030 | 13891 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
13892 | /* confdefs.h. */ |
13893 | _ACEOF | |
13894 | cat confdefs.h >>conftest.$ac_ext | |
13895 | cat >>conftest.$ac_ext <<_ACEOF | |
13896 | /* end confdefs.h. */ | |
13897 | $ac_includes_default | |
4e8d927d DJ |
13898 | int |
13899 | main () | |
13900 | { | |
b4e70030 | 13901 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; |
4e8d927d DJ |
13902 | test_array [0] = 0 |
13903 | ||
13904 | ; | |
13905 | return 0; | |
13906 | } | |
13907 | _ACEOF | |
13908 | rm -f conftest.$ac_objext | |
13909 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13910 | (eval $ac_compile) 2>conftest.er1 | |
13911 | ac_status=$? | |
13912 | grep -v '^ *+' conftest.er1 >conftest.err | |
13913 | rm -f conftest.er1 | |
13914 | cat conftest.err >&5 | |
13915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13916 | (exit $ac_status); } && | |
b4e70030 JB |
13917 | { ac_try='test -z "$ac_c_werror_flag" |
13918 | || test ! -s conftest.err' | |
4e8d927d DJ |
13919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13920 | (eval $ac_try) 2>&5 | |
13921 | ac_status=$? | |
13922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13923 | (exit $ac_status); }; } && | |
13924 | { ac_try='test -s conftest.$ac_objext' | |
13925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13926 | (eval $ac_try) 2>&5 | |
13927 | ac_status=$? | |
13928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13929 | (exit $ac_status); }; }; then | |
13930 | ac_hi=-1 ac_mid=-1 | |
13931 | while :; do | |
13932 | cat >conftest.$ac_ext <<_ACEOF | |
13933 | /* confdefs.h. */ | |
13934 | _ACEOF | |
13935 | cat confdefs.h >>conftest.$ac_ext | |
13936 | cat >>conftest.$ac_ext <<_ACEOF | |
13937 | /* end confdefs.h. */ | |
13938 | $ac_includes_default | |
4e8d927d DJ |
13939 | int |
13940 | main () | |
13941 | { | |
b4e70030 | 13942 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; |
4e8d927d DJ |
13943 | test_array [0] = 0 |
13944 | ||
13945 | ; | |
13946 | return 0; | |
13947 | } | |
13948 | _ACEOF | |
13949 | rm -f conftest.$ac_objext | |
13950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13951 | (eval $ac_compile) 2>conftest.er1 | |
13952 | ac_status=$? | |
13953 | grep -v '^ *+' conftest.er1 >conftest.err | |
13954 | rm -f conftest.er1 | |
13955 | cat conftest.err >&5 | |
13956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13957 | (exit $ac_status); } && | |
b4e70030 JB |
13958 | { ac_try='test -z "$ac_c_werror_flag" |
13959 | || test ! -s conftest.err' | |
4e8d927d DJ |
13960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13961 | (eval $ac_try) 2>&5 | |
13962 | ac_status=$? | |
13963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13964 | (exit $ac_status); }; } && | |
13965 | { ac_try='test -s conftest.$ac_objext' | |
13966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13967 | (eval $ac_try) 2>&5 | |
13968 | ac_status=$? | |
13969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13970 | (exit $ac_status); }; }; then | |
13971 | ac_lo=$ac_mid; break | |
13972 | else | |
13973 | echo "$as_me: failed program was:" >&5 | |
13974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13975 | ||
b4e70030 JB |
13976 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13977 | if test $ac_mid -le $ac_hi; then | |
13978 | ac_lo= ac_hi= | |
13979 | break | |
13980 | fi | |
13981 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 13982 | fi |
4e8d927d DJ |
13983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13984 | done | |
13985 | else | |
13986 | echo "$as_me: failed program was:" >&5 | |
13987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13988 | ||
b4e70030 | 13989 | ac_lo= ac_hi= |
4e8d927d | 13990 | fi |
4e8d927d DJ |
13991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13992 | fi | |
4e8d927d DJ |
13993 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13994 | # Binary search between lo and hi bounds. | |
13995 | while test "x$ac_lo" != "x$ac_hi"; do | |
13996 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13997 | cat >conftest.$ac_ext <<_ACEOF | |
13998 | /* confdefs.h. */ | |
13999 | _ACEOF | |
14000 | cat confdefs.h >>conftest.$ac_ext | |
14001 | cat >>conftest.$ac_ext <<_ACEOF | |
14002 | /* end confdefs.h. */ | |
14003 | $ac_includes_default | |
4e8d927d DJ |
14004 | int |
14005 | main () | |
14006 | { | |
b4e70030 | 14007 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; |
4e8d927d DJ |
14008 | test_array [0] = 0 |
14009 | ||
14010 | ; | |
14011 | return 0; | |
14012 | } | |
14013 | _ACEOF | |
14014 | rm -f conftest.$ac_objext | |
14015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14016 | (eval $ac_compile) 2>conftest.er1 | |
14017 | ac_status=$? | |
14018 | grep -v '^ *+' conftest.er1 >conftest.err | |
14019 | rm -f conftest.er1 | |
14020 | cat conftest.err >&5 | |
14021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14022 | (exit $ac_status); } && | |
b4e70030 JB |
14023 | { ac_try='test -z "$ac_c_werror_flag" |
14024 | || test ! -s conftest.err' | |
4e8d927d DJ |
14025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14026 | (eval $ac_try) 2>&5 | |
14027 | ac_status=$? | |
14028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14029 | (exit $ac_status); }; } && | |
14030 | { ac_try='test -s conftest.$ac_objext' | |
14031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14032 | (eval $ac_try) 2>&5 | |
14033 | ac_status=$? | |
14034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14035 | (exit $ac_status); }; }; then | |
14036 | ac_hi=$ac_mid | |
14037 | else | |
14038 | echo "$as_me: failed program was:" >&5 | |
14039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14040 | ||
b4e70030 | 14041 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 14042 | fi |
4e8d927d DJ |
14043 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14044 | done | |
14045 | case $ac_lo in | |
14046 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
b4e70030 | 14047 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
4e8d927d | 14048 | See \`config.log' for more details." >&5 |
b4e70030 | 14049 | echo "$as_me: error: cannot compute sizeof (short), 77 |
4e8d927d | 14050 | See \`config.log' for more details." >&2;} |
b4e70030 | 14051 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 14052 | esac |
b4e70030 JB |
14053 | else |
14054 | if test "$cross_compiling" = yes; then | |
14055 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14056 | See \`config.log' for more details." >&5 | |
14057 | echo "$as_me: error: cannot run test program while cross compiling | |
14058 | See \`config.log' for more details." >&2;} | |
14059 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
14060 | else |
14061 | cat >conftest.$ac_ext <<_ACEOF | |
14062 | /* confdefs.h. */ | |
14063 | _ACEOF | |
14064 | cat confdefs.h >>conftest.$ac_ext | |
14065 | cat >>conftest.$ac_ext <<_ACEOF | |
14066 | /* end confdefs.h. */ | |
14067 | $ac_includes_default | |
b4e70030 JB |
14068 | long longval () { return (long) (sizeof (short)); } |
14069 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
4e8d927d DJ |
14070 | #include <stdio.h> |
14071 | #include <stdlib.h> | |
14072 | int | |
14073 | main () | |
14074 | { | |
14075 | ||
14076 | FILE *f = fopen ("conftest.val", "w"); | |
14077 | if (! f) | |
b4e70030 JB |
14078 | exit (1); |
14079 | if (((long) (sizeof (short))) < 0) | |
4e8d927d | 14080 | { |
b4e70030 JB |
14081 | long i = longval (); |
14082 | if (i != ((long) (sizeof (short)))) | |
14083 | exit (1); | |
4e8d927d DJ |
14084 | fprintf (f, "%ld\n", i); |
14085 | } | |
14086 | else | |
14087 | { | |
b4e70030 JB |
14088 | unsigned long i = ulongval (); |
14089 | if (i != ((long) (sizeof (short)))) | |
14090 | exit (1); | |
4e8d927d DJ |
14091 | fprintf (f, "%lu\n", i); |
14092 | } | |
b4e70030 | 14093 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
14094 | |
14095 | ; | |
14096 | return 0; | |
14097 | } | |
14098 | _ACEOF | |
14099 | rm -f conftest$ac_exeext | |
14100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14101 | (eval $ac_link) 2>&5 | |
14102 | ac_status=$? | |
14103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14104 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14106 | (eval $ac_try) 2>&5 | |
14107 | ac_status=$? | |
14108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14109 | (exit $ac_status); }; }; then | |
14110 | ac_cv_sizeof_short=`cat conftest.val` | |
14111 | else | |
14112 | echo "$as_me: program exited with status $ac_status" >&5 | |
14113 | echo "$as_me: failed program was:" >&5 | |
14114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14115 | ||
14116 | ( exit $ac_status ) | |
b4e70030 | 14117 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
4e8d927d | 14118 | See \`config.log' for more details." >&5 |
b4e70030 | 14119 | echo "$as_me: error: cannot compute sizeof (short), 77 |
4e8d927d | 14120 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
14121 | { (exit 1); exit 1; }; } |
14122 | fi | |
14123 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 14124 | fi |
4e8d927d DJ |
14125 | fi |
14126 | rm -f conftest.val | |
14127 | else | |
14128 | ac_cv_sizeof_short=0 | |
14129 | fi | |
14130 | fi | |
b4e70030 JB |
14131 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
14132 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
4e8d927d DJ |
14133 | cat >>confdefs.h <<_ACEOF |
14134 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14135 | _ACEOF | |
14136 | ||
14137 | ||
b4e70030 JB |
14138 | echo "$as_me:$LINENO: checking for char" >&5 |
14139 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
4e8d927d DJ |
14140 | if test "${ac_cv_type_char+set}" = set; then |
14141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14142 | else | |
14143 | cat >conftest.$ac_ext <<_ACEOF | |
14144 | /* confdefs.h. */ | |
14145 | _ACEOF | |
14146 | cat confdefs.h >>conftest.$ac_ext | |
14147 | cat >>conftest.$ac_ext <<_ACEOF | |
14148 | /* end confdefs.h. */ | |
14149 | $ac_includes_default | |
4e8d927d DJ |
14150 | int |
14151 | main () | |
14152 | { | |
b4e70030 | 14153 | if ((char *) 0) |
4e8d927d | 14154 | return 0; |
b4e70030 | 14155 | if (sizeof (char)) |
4e8d927d DJ |
14156 | return 0; |
14157 | ; | |
14158 | return 0; | |
14159 | } | |
14160 | _ACEOF | |
14161 | rm -f conftest.$ac_objext | |
14162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14163 | (eval $ac_compile) 2>conftest.er1 | |
14164 | ac_status=$? | |
14165 | grep -v '^ *+' conftest.er1 >conftest.err | |
14166 | rm -f conftest.er1 | |
14167 | cat conftest.err >&5 | |
14168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14169 | (exit $ac_status); } && | |
b4e70030 JB |
14170 | { ac_try='test -z "$ac_c_werror_flag" |
14171 | || test ! -s conftest.err' | |
4e8d927d DJ |
14172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14173 | (eval $ac_try) 2>&5 | |
14174 | ac_status=$? | |
14175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14176 | (exit $ac_status); }; } && | |
14177 | { ac_try='test -s conftest.$ac_objext' | |
14178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14179 | (eval $ac_try) 2>&5 | |
14180 | ac_status=$? | |
14181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14182 | (exit $ac_status); }; }; then | |
14183 | ac_cv_type_char=yes | |
14184 | else | |
14185 | echo "$as_me: failed program was:" >&5 | |
14186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14187 | ||
b4e70030 | 14188 | ac_cv_type_char=no |
4e8d927d | 14189 | fi |
4e8d927d DJ |
14190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14191 | fi | |
b4e70030 JB |
14192 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 |
14193 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
4e8d927d | 14194 | |
b4e70030 JB |
14195 | echo "$as_me:$LINENO: checking size of char" >&5 |
14196 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
4e8d927d DJ |
14197 | if test "${ac_cv_sizeof_char+set}" = set; then |
14198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14199 | else | |
14200 | if test "$ac_cv_type_char" = yes; then | |
b4e70030 | 14201 | # The cast to unsigned long works around a bug in the HP C Compiler |
4e8d927d DJ |
14202 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
14203 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14204 | # This bug is HP SR number 8606223364. | |
14205 | if test "$cross_compiling" = yes; then | |
14206 | # Depending upon the size, compute the lo and hi bounds. | |
14207 | cat >conftest.$ac_ext <<_ACEOF | |
14208 | /* confdefs.h. */ | |
14209 | _ACEOF | |
14210 | cat confdefs.h >>conftest.$ac_ext | |
14211 | cat >>conftest.$ac_ext <<_ACEOF | |
14212 | /* end confdefs.h. */ | |
14213 | $ac_includes_default | |
4e8d927d DJ |
14214 | int |
14215 | main () | |
14216 | { | |
b4e70030 | 14217 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; |
4e8d927d DJ |
14218 | test_array [0] = 0 |
14219 | ||
14220 | ; | |
14221 | return 0; | |
14222 | } | |
14223 | _ACEOF | |
14224 | rm -f conftest.$ac_objext | |
14225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14226 | (eval $ac_compile) 2>conftest.er1 | |
14227 | ac_status=$? | |
14228 | grep -v '^ *+' conftest.er1 >conftest.err | |
14229 | rm -f conftest.er1 | |
14230 | cat conftest.err >&5 | |
14231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14232 | (exit $ac_status); } && | |
b4e70030 JB |
14233 | { ac_try='test -z "$ac_c_werror_flag" |
14234 | || test ! -s conftest.err' | |
4e8d927d DJ |
14235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14236 | (eval $ac_try) 2>&5 | |
14237 | ac_status=$? | |
14238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14239 | (exit $ac_status); }; } && | |
14240 | { ac_try='test -s conftest.$ac_objext' | |
14241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14242 | (eval $ac_try) 2>&5 | |
14243 | ac_status=$? | |
14244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14245 | (exit $ac_status); }; }; then | |
14246 | ac_lo=0 ac_mid=0 | |
14247 | while :; do | |
14248 | cat >conftest.$ac_ext <<_ACEOF | |
14249 | /* confdefs.h. */ | |
14250 | _ACEOF | |
14251 | cat confdefs.h >>conftest.$ac_ext | |
14252 | cat >>conftest.$ac_ext <<_ACEOF | |
14253 | /* end confdefs.h. */ | |
14254 | $ac_includes_default | |
4e8d927d DJ |
14255 | int |
14256 | main () | |
14257 | { | |
b4e70030 | 14258 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
4e8d927d DJ |
14259 | test_array [0] = 0 |
14260 | ||
14261 | ; | |
14262 | return 0; | |
14263 | } | |
14264 | _ACEOF | |
14265 | rm -f conftest.$ac_objext | |
14266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14267 | (eval $ac_compile) 2>conftest.er1 | |
14268 | ac_status=$? | |
14269 | grep -v '^ *+' conftest.er1 >conftest.err | |
14270 | rm -f conftest.er1 | |
14271 | cat conftest.err >&5 | |
14272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14273 | (exit $ac_status); } && | |
b4e70030 JB |
14274 | { ac_try='test -z "$ac_c_werror_flag" |
14275 | || test ! -s conftest.err' | |
4e8d927d DJ |
14276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14277 | (eval $ac_try) 2>&5 | |
14278 | ac_status=$? | |
14279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14280 | (exit $ac_status); }; } && | |
14281 | { ac_try='test -s conftest.$ac_objext' | |
14282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14283 | (eval $ac_try) 2>&5 | |
14284 | ac_status=$? | |
14285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14286 | (exit $ac_status); }; }; then | |
14287 | ac_hi=$ac_mid; break | |
14288 | else | |
14289 | echo "$as_me: failed program was:" >&5 | |
14290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14291 | ||
b4e70030 JB |
14292 | ac_lo=`expr $ac_mid + 1` |
14293 | if test $ac_lo -le $ac_mid; then | |
14294 | ac_lo= ac_hi= | |
14295 | break | |
14296 | fi | |
14297 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
4e8d927d | 14298 | fi |
4e8d927d DJ |
14299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14300 | done | |
14301 | else | |
14302 | echo "$as_me: failed program was:" >&5 | |
14303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14304 | ||
b4e70030 | 14305 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
14306 | /* confdefs.h. */ |
14307 | _ACEOF | |
14308 | cat confdefs.h >>conftest.$ac_ext | |
14309 | cat >>conftest.$ac_ext <<_ACEOF | |
14310 | /* end confdefs.h. */ | |
14311 | $ac_includes_default | |
4e8d927d DJ |
14312 | int |
14313 | main () | |
14314 | { | |
b4e70030 | 14315 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; |
4e8d927d DJ |
14316 | test_array [0] = 0 |
14317 | ||
14318 | ; | |
14319 | return 0; | |
14320 | } | |
14321 | _ACEOF | |
14322 | rm -f conftest.$ac_objext | |
14323 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14324 | (eval $ac_compile) 2>conftest.er1 | |
14325 | ac_status=$? | |
14326 | grep -v '^ *+' conftest.er1 >conftest.err | |
14327 | rm -f conftest.er1 | |
14328 | cat conftest.err >&5 | |
14329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14330 | (exit $ac_status); } && | |
b4e70030 JB |
14331 | { ac_try='test -z "$ac_c_werror_flag" |
14332 | || test ! -s conftest.err' | |
4e8d927d DJ |
14333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14334 | (eval $ac_try) 2>&5 | |
14335 | ac_status=$? | |
14336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14337 | (exit $ac_status); }; } && | |
14338 | { ac_try='test -s conftest.$ac_objext' | |
14339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14340 | (eval $ac_try) 2>&5 | |
14341 | ac_status=$? | |
14342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14343 | (exit $ac_status); }; }; then | |
14344 | ac_hi=-1 ac_mid=-1 | |
14345 | while :; do | |
14346 | cat >conftest.$ac_ext <<_ACEOF | |
14347 | /* confdefs.h. */ | |
14348 | _ACEOF | |
14349 | cat confdefs.h >>conftest.$ac_ext | |
14350 | cat >>conftest.$ac_ext <<_ACEOF | |
14351 | /* end confdefs.h. */ | |
14352 | $ac_includes_default | |
4e8d927d DJ |
14353 | int |
14354 | main () | |
14355 | { | |
b4e70030 | 14356 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; |
4e8d927d DJ |
14357 | test_array [0] = 0 |
14358 | ||
14359 | ; | |
14360 | return 0; | |
14361 | } | |
14362 | _ACEOF | |
14363 | rm -f conftest.$ac_objext | |
14364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14365 | (eval $ac_compile) 2>conftest.er1 | |
14366 | ac_status=$? | |
14367 | grep -v '^ *+' conftest.er1 >conftest.err | |
14368 | rm -f conftest.er1 | |
14369 | cat conftest.err >&5 | |
14370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14371 | (exit $ac_status); } && | |
b4e70030 JB |
14372 | { ac_try='test -z "$ac_c_werror_flag" |
14373 | || test ! -s conftest.err' | |
4e8d927d DJ |
14374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14375 | (eval $ac_try) 2>&5 | |
14376 | ac_status=$? | |
14377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14378 | (exit $ac_status); }; } && | |
14379 | { ac_try='test -s conftest.$ac_objext' | |
14380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14381 | (eval $ac_try) 2>&5 | |
14382 | ac_status=$? | |
14383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14384 | (exit $ac_status); }; }; then | |
14385 | ac_lo=$ac_mid; break | |
14386 | else | |
14387 | echo "$as_me: failed program was:" >&5 | |
14388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14389 | ||
b4e70030 JB |
14390 | ac_hi=`expr '(' $ac_mid ')' - 1` |
14391 | if test $ac_mid -le $ac_hi; then | |
14392 | ac_lo= ac_hi= | |
14393 | break | |
14394 | fi | |
14395 | ac_mid=`expr 2 '*' $ac_mid` | |
4e8d927d | 14396 | fi |
4e8d927d DJ |
14397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14398 | done | |
14399 | else | |
14400 | echo "$as_me: failed program was:" >&5 | |
14401 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14402 | ||
b4e70030 | 14403 | ac_lo= ac_hi= |
4e8d927d | 14404 | fi |
4e8d927d DJ |
14405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14406 | fi | |
4e8d927d DJ |
14407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14408 | # Binary search between lo and hi bounds. | |
14409 | while test "x$ac_lo" != "x$ac_hi"; do | |
14410 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14411 | cat >conftest.$ac_ext <<_ACEOF | |
14412 | /* confdefs.h. */ | |
14413 | _ACEOF | |
14414 | cat confdefs.h >>conftest.$ac_ext | |
14415 | cat >>conftest.$ac_ext <<_ACEOF | |
14416 | /* end confdefs.h. */ | |
14417 | $ac_includes_default | |
4e8d927d DJ |
14418 | int |
14419 | main () | |
14420 | { | |
b4e70030 | 14421 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; |
4e8d927d DJ |
14422 | test_array [0] = 0 |
14423 | ||
14424 | ; | |
14425 | return 0; | |
14426 | } | |
14427 | _ACEOF | |
14428 | rm -f conftest.$ac_objext | |
14429 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14430 | (eval $ac_compile) 2>conftest.er1 | |
14431 | ac_status=$? | |
14432 | grep -v '^ *+' conftest.er1 >conftest.err | |
14433 | rm -f conftest.er1 | |
14434 | cat conftest.err >&5 | |
14435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14436 | (exit $ac_status); } && | |
b4e70030 JB |
14437 | { ac_try='test -z "$ac_c_werror_flag" |
14438 | || test ! -s conftest.err' | |
4e8d927d DJ |
14439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14440 | (eval $ac_try) 2>&5 | |
14441 | ac_status=$? | |
14442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14443 | (exit $ac_status); }; } && | |
14444 | { ac_try='test -s conftest.$ac_objext' | |
14445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14446 | (eval $ac_try) 2>&5 | |
14447 | ac_status=$? | |
14448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14449 | (exit $ac_status); }; }; then | |
14450 | ac_hi=$ac_mid | |
14451 | else | |
14452 | echo "$as_me: failed program was:" >&5 | |
14453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14454 | ||
b4e70030 | 14455 | ac_lo=`expr '(' $ac_mid ')' + 1` |
4e8d927d | 14456 | fi |
4e8d927d DJ |
14457 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14458 | done | |
14459 | case $ac_lo in | |
14460 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
b4e70030 | 14461 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
4e8d927d | 14462 | See \`config.log' for more details." >&5 |
b4e70030 | 14463 | echo "$as_me: error: cannot compute sizeof (char), 77 |
4e8d927d | 14464 | See \`config.log' for more details." >&2;} |
b4e70030 | 14465 | { (exit 1); exit 1; }; } ;; |
4e8d927d | 14466 | esac |
b4e70030 JB |
14467 | else |
14468 | if test "$cross_compiling" = yes; then | |
14469 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14470 | See \`config.log' for more details." >&5 | |
14471 | echo "$as_me: error: cannot run test program while cross compiling | |
14472 | See \`config.log' for more details." >&2;} | |
14473 | { (exit 1); exit 1; }; } | |
4e8d927d DJ |
14474 | else |
14475 | cat >conftest.$ac_ext <<_ACEOF | |
14476 | /* confdefs.h. */ | |
14477 | _ACEOF | |
14478 | cat confdefs.h >>conftest.$ac_ext | |
14479 | cat >>conftest.$ac_ext <<_ACEOF | |
14480 | /* end confdefs.h. */ | |
14481 | $ac_includes_default | |
b4e70030 JB |
14482 | long longval () { return (long) (sizeof (char)); } |
14483 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
4e8d927d DJ |
14484 | #include <stdio.h> |
14485 | #include <stdlib.h> | |
14486 | int | |
14487 | main () | |
14488 | { | |
14489 | ||
14490 | FILE *f = fopen ("conftest.val", "w"); | |
14491 | if (! f) | |
b4e70030 JB |
14492 | exit (1); |
14493 | if (((long) (sizeof (char))) < 0) | |
4e8d927d | 14494 | { |
b4e70030 JB |
14495 | long i = longval (); |
14496 | if (i != ((long) (sizeof (char)))) | |
14497 | exit (1); | |
4e8d927d DJ |
14498 | fprintf (f, "%ld\n", i); |
14499 | } | |
14500 | else | |
14501 | { | |
b4e70030 JB |
14502 | unsigned long i = ulongval (); |
14503 | if (i != ((long) (sizeof (char)))) | |
14504 | exit (1); | |
4e8d927d DJ |
14505 | fprintf (f, "%lu\n", i); |
14506 | } | |
b4e70030 | 14507 | exit (ferror (f) || fclose (f) != 0); |
4e8d927d DJ |
14508 | |
14509 | ; | |
14510 | return 0; | |
14511 | } | |
14512 | _ACEOF | |
14513 | rm -f conftest$ac_exeext | |
14514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14515 | (eval $ac_link) 2>&5 | |
14516 | ac_status=$? | |
14517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14518 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14520 | (eval $ac_try) 2>&5 | |
14521 | ac_status=$? | |
14522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14523 | (exit $ac_status); }; }; then | |
14524 | ac_cv_sizeof_char=`cat conftest.val` | |
14525 | else | |
14526 | echo "$as_me: program exited with status $ac_status" >&5 | |
14527 | echo "$as_me: failed program was:" >&5 | |
14528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14529 | ||
14530 | ( exit $ac_status ) | |
b4e70030 | 14531 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
4e8d927d | 14532 | See \`config.log' for more details." >&5 |
b4e70030 | 14533 | echo "$as_me: error: cannot compute sizeof (char), 77 |
4e8d927d | 14534 | See \`config.log' for more details." >&2;} |
b4e70030 JB |
14535 | { (exit 1); exit 1; }; } |
14536 | fi | |
14537 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4e8d927d | 14538 | fi |
4e8d927d DJ |
14539 | fi |
14540 | rm -f conftest.val | |
14541 | else | |
14542 | ac_cv_sizeof_char=0 | |
14543 | fi | |
14544 | fi | |
b4e70030 JB |
14545 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
14546 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
4e8d927d DJ |
14547 | cat >>confdefs.h <<_ACEOF |
14548 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14549 | _ACEOF | |
14550 | ||
14551 | ||
14552 | ||
b4e70030 JB |
14553 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 |
14554 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14555 | case "$ac_cv_sizeof_char" in |
14556 | 1) acx_cv_type_int8_t=char ;; | |
14557 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
14558 | echo "$as_me: error: no 8-bit type" >&2;} | |
14559 | { (exit please report a bug); exit please report a bug; }; } | |
14560 | esac | |
b4e70030 JB |
14561 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 |
14562 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
4e8d927d | 14563 | |
b4e70030 JB |
14564 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 |
14565 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14566 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in |
14567 | 2:*) acx_cv_type_int16_t=int ;; | |
14568 | *:2) acx_cv_type_int16_t=short ;; | |
14569 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
14570 | echo "$as_me: error: no 16-bit type" >&2;} | |
14571 | { (exit please report a bug); exit please report a bug; }; } | |
14572 | esac | |
b4e70030 JB |
14573 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 |
14574 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
4e8d927d | 14575 | |
b4e70030 JB |
14576 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 |
14577 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14578 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in |
14579 | 4:*) acx_cv_type_int32_t=int ;; | |
14580 | *:4) acx_cv_type_int32_t=long ;; | |
14581 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
14582 | echo "$as_me: error: no 32-bit type" >&2;} | |
14583 | { (exit please report a bug); exit please report a bug; }; } | |
14584 | esac | |
b4e70030 JB |
14585 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 |
14586 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
4e8d927d DJ |
14587 | fi |
14588 | ||
14589 | # These tests are here to make the output prettier | |
14590 | ||
14591 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
14592 | case "$ac_cv_sizeof_long" in | |
14593 | 8) acx_cv_type_int64_t=long ;; | |
14594 | esac | |
b4e70030 JB |
14595 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 |
14596 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 | |
14597 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
14598 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
4e8d927d DJ |
14599 | fi |
14600 | ||
14601 | # Now we can use the above types | |
14602 | ||
14603 | if test "$ac_cv_type_uintptr_t" != yes; then | |
b4e70030 JB |
14604 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 |
14605 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 | |
4e8d927d DJ |
14606 | case $ac_cv_sizeof_void_p in |
14607 | 2) acx_cv_type_intptr_t=int16_t ;; | |
14608 | 4) acx_cv_type_intptr_t=int32_t ;; | |
14609 | 8) acx_cv_type_intptr_t=int64_t ;; | |
14610 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
14611 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
14612 | { (exit please report a bug); exit please report a bug; }; } | |
14613 | esac | |
b4e70030 JB |
14614 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 |
14615 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
4e8d927d DJ |
14616 | fi |
14617 | ||
14618 | # ----------------- done all checks, emit header ------------- | |
b4e70030 | 14619 | ac_config_commands="$ac_config_commands gdb_stdint.h" |
4e8d927d DJ |
14620 | |
14621 | ||
14622 | ||
14623 | ||
14624 | # ------------------------- # | |
14625 | # Checks for declarations. # | |
14626 | # ------------------------- # | |
14627 | ||
b4e70030 JB |
14628 | echo "$as_me:$LINENO: checking whether free is declared" >&5 |
14629 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14630 | if test "${ac_cv_have_decl_free+set}" = set; then |
14631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14632 | else | |
14633 | cat >conftest.$ac_ext <<_ACEOF | |
14634 | /* confdefs.h. */ | |
14635 | _ACEOF | |
14636 | cat confdefs.h >>conftest.$ac_ext | |
14637 | cat >>conftest.$ac_ext <<_ACEOF | |
14638 | /* end confdefs.h. */ | |
14639 | $ac_includes_default | |
14640 | int | |
14641 | main () | |
14642 | { | |
14643 | #ifndef free | |
14644 | char *p = (char *) free; | |
4e8d927d DJ |
14645 | #endif |
14646 | ||
14647 | ; | |
14648 | return 0; | |
14649 | } | |
14650 | _ACEOF | |
14651 | rm -f conftest.$ac_objext | |
14652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14653 | (eval $ac_compile) 2>conftest.er1 | |
14654 | ac_status=$? | |
14655 | grep -v '^ *+' conftest.er1 >conftest.err | |
14656 | rm -f conftest.er1 | |
14657 | cat conftest.err >&5 | |
14658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14659 | (exit $ac_status); } && | |
b4e70030 JB |
14660 | { ac_try='test -z "$ac_c_werror_flag" |
14661 | || test ! -s conftest.err' | |
4e8d927d DJ |
14662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14663 | (eval $ac_try) 2>&5 | |
14664 | ac_status=$? | |
14665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14666 | (exit $ac_status); }; } && | |
14667 | { ac_try='test -s conftest.$ac_objext' | |
14668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14669 | (eval $ac_try) 2>&5 | |
14670 | ac_status=$? | |
14671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14672 | (exit $ac_status); }; }; then | |
14673 | ac_cv_have_decl_free=yes | |
14674 | else | |
14675 | echo "$as_me: failed program was:" >&5 | |
14676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14677 | ||
b4e70030 | 14678 | ac_cv_have_decl_free=no |
4e8d927d | 14679 | fi |
4e8d927d DJ |
14680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14681 | fi | |
b4e70030 JB |
14682 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
14683 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
4e8d927d DJ |
14684 | if test $ac_cv_have_decl_free = yes; then |
14685 | ||
14686 | cat >>confdefs.h <<_ACEOF | |
14687 | #define HAVE_DECL_FREE 1 | |
14688 | _ACEOF | |
14689 | ||
14690 | ||
14691 | else | |
14692 | cat >>confdefs.h <<_ACEOF | |
14693 | #define HAVE_DECL_FREE 0 | |
14694 | _ACEOF | |
14695 | ||
14696 | ||
14697 | fi | |
b4e70030 JB |
14698 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 |
14699 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14700 | if test "${ac_cv_have_decl_malloc+set}" = set; then |
14701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14702 | else | |
14703 | cat >conftest.$ac_ext <<_ACEOF | |
14704 | /* confdefs.h. */ | |
14705 | _ACEOF | |
14706 | cat confdefs.h >>conftest.$ac_ext | |
14707 | cat >>conftest.$ac_ext <<_ACEOF | |
14708 | /* end confdefs.h. */ | |
14709 | $ac_includes_default | |
14710 | int | |
14711 | main () | |
14712 | { | |
14713 | #ifndef malloc | |
14714 | char *p = (char *) malloc; | |
4e8d927d DJ |
14715 | #endif |
14716 | ||
14717 | ; | |
14718 | return 0; | |
14719 | } | |
14720 | _ACEOF | |
14721 | rm -f conftest.$ac_objext | |
14722 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14723 | (eval $ac_compile) 2>conftest.er1 | |
14724 | ac_status=$? | |
14725 | grep -v '^ *+' conftest.er1 >conftest.err | |
14726 | rm -f conftest.er1 | |
14727 | cat conftest.err >&5 | |
14728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14729 | (exit $ac_status); } && | |
b4e70030 JB |
14730 | { ac_try='test -z "$ac_c_werror_flag" |
14731 | || test ! -s conftest.err' | |
4e8d927d DJ |
14732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14733 | (eval $ac_try) 2>&5 | |
14734 | ac_status=$? | |
14735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14736 | (exit $ac_status); }; } && | |
14737 | { ac_try='test -s conftest.$ac_objext' | |
14738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14739 | (eval $ac_try) 2>&5 | |
14740 | ac_status=$? | |
14741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14742 | (exit $ac_status); }; }; then | |
14743 | ac_cv_have_decl_malloc=yes | |
14744 | else | |
14745 | echo "$as_me: failed program was:" >&5 | |
14746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14747 | ||
b4e70030 | 14748 | ac_cv_have_decl_malloc=no |
4e8d927d | 14749 | fi |
4e8d927d DJ |
14750 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14751 | fi | |
b4e70030 JB |
14752 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
14753 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
4e8d927d DJ |
14754 | if test $ac_cv_have_decl_malloc = yes; then |
14755 | ||
14756 | cat >>confdefs.h <<_ACEOF | |
14757 | #define HAVE_DECL_MALLOC 1 | |
14758 | _ACEOF | |
14759 | ||
14760 | ||
14761 | else | |
14762 | cat >>confdefs.h <<_ACEOF | |
14763 | #define HAVE_DECL_MALLOC 0 | |
14764 | _ACEOF | |
14765 | ||
14766 | ||
14767 | fi | |
b4e70030 JB |
14768 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 |
14769 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14770 | if test "${ac_cv_have_decl_realloc+set}" = set; then |
14771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14772 | else | |
14773 | cat >conftest.$ac_ext <<_ACEOF | |
14774 | /* confdefs.h. */ | |
14775 | _ACEOF | |
14776 | cat confdefs.h >>conftest.$ac_ext | |
14777 | cat >>conftest.$ac_ext <<_ACEOF | |
14778 | /* end confdefs.h. */ | |
14779 | $ac_includes_default | |
14780 | int | |
14781 | main () | |
14782 | { | |
14783 | #ifndef realloc | |
14784 | char *p = (char *) realloc; | |
4e8d927d DJ |
14785 | #endif |
14786 | ||
14787 | ; | |
14788 | return 0; | |
14789 | } | |
14790 | _ACEOF | |
14791 | rm -f conftest.$ac_objext | |
14792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14793 | (eval $ac_compile) 2>conftest.er1 | |
14794 | ac_status=$? | |
14795 | grep -v '^ *+' conftest.er1 >conftest.err | |
14796 | rm -f conftest.er1 | |
14797 | cat conftest.err >&5 | |
14798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14799 | (exit $ac_status); } && | |
b4e70030 JB |
14800 | { ac_try='test -z "$ac_c_werror_flag" |
14801 | || test ! -s conftest.err' | |
4e8d927d DJ |
14802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14803 | (eval $ac_try) 2>&5 | |
14804 | ac_status=$? | |
14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14806 | (exit $ac_status); }; } && | |
14807 | { ac_try='test -s conftest.$ac_objext' | |
14808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14809 | (eval $ac_try) 2>&5 | |
14810 | ac_status=$? | |
14811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14812 | (exit $ac_status); }; }; then | |
14813 | ac_cv_have_decl_realloc=yes | |
14814 | else | |
14815 | echo "$as_me: failed program was:" >&5 | |
14816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14817 | ||
b4e70030 | 14818 | ac_cv_have_decl_realloc=no |
4e8d927d | 14819 | fi |
4e8d927d DJ |
14820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14821 | fi | |
b4e70030 JB |
14822 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
14823 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
4e8d927d DJ |
14824 | if test $ac_cv_have_decl_realloc = yes; then |
14825 | ||
14826 | cat >>confdefs.h <<_ACEOF | |
14827 | #define HAVE_DECL_REALLOC 1 | |
14828 | _ACEOF | |
14829 | ||
14830 | ||
14831 | else | |
14832 | cat >>confdefs.h <<_ACEOF | |
14833 | #define HAVE_DECL_REALLOC 0 | |
14834 | _ACEOF | |
14835 | ||
14836 | ||
14837 | fi | |
14838 | ||
14839 | ||
b4e70030 JB |
14840 | echo "$as_me:$LINENO: checking whether strerror is declared" >&5 |
14841 | echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14842 | if test "${ac_cv_have_decl_strerror+set}" = set; then |
14843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14844 | else | |
14845 | cat >conftest.$ac_ext <<_ACEOF | |
14846 | /* confdefs.h. */ | |
14847 | _ACEOF | |
14848 | cat confdefs.h >>conftest.$ac_ext | |
14849 | cat >>conftest.$ac_ext <<_ACEOF | |
14850 | /* end confdefs.h. */ | |
14851 | $ac_includes_default | |
14852 | int | |
14853 | main () | |
14854 | { | |
14855 | #ifndef strerror | |
14856 | char *p = (char *) strerror; | |
4e8d927d DJ |
14857 | #endif |
14858 | ||
14859 | ; | |
14860 | return 0; | |
14861 | } | |
14862 | _ACEOF | |
14863 | rm -f conftest.$ac_objext | |
14864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14865 | (eval $ac_compile) 2>conftest.er1 | |
14866 | ac_status=$? | |
14867 | grep -v '^ *+' conftest.er1 >conftest.err | |
14868 | rm -f conftest.er1 | |
14869 | cat conftest.err >&5 | |
14870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14871 | (exit $ac_status); } && | |
b4e70030 JB |
14872 | { ac_try='test -z "$ac_c_werror_flag" |
14873 | || test ! -s conftest.err' | |
4e8d927d DJ |
14874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14875 | (eval $ac_try) 2>&5 | |
14876 | ac_status=$? | |
14877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14878 | (exit $ac_status); }; } && | |
14879 | { ac_try='test -s conftest.$ac_objext' | |
14880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14881 | (eval $ac_try) 2>&5 | |
14882 | ac_status=$? | |
14883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14884 | (exit $ac_status); }; }; then | |
14885 | ac_cv_have_decl_strerror=yes | |
14886 | else | |
14887 | echo "$as_me: failed program was:" >&5 | |
14888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14889 | ||
b4e70030 | 14890 | ac_cv_have_decl_strerror=no |
4e8d927d | 14891 | fi |
4e8d927d DJ |
14892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14893 | fi | |
b4e70030 JB |
14894 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5 |
14895 | echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6 | |
4e8d927d DJ |
14896 | if test $ac_cv_have_decl_strerror = yes; then |
14897 | ||
14898 | cat >>confdefs.h <<_ACEOF | |
14899 | #define HAVE_DECL_STRERROR 1 | |
14900 | _ACEOF | |
14901 | ||
14902 | ||
14903 | else | |
14904 | cat >>confdefs.h <<_ACEOF | |
14905 | #define HAVE_DECL_STRERROR 0 | |
14906 | _ACEOF | |
14907 | ||
14908 | ||
14909 | fi | |
b4e70030 JB |
14910 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
14911 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14912 | if test "${ac_cv_have_decl_strstr+set}" = set; then |
14913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14914 | else | |
14915 | cat >conftest.$ac_ext <<_ACEOF | |
14916 | /* confdefs.h. */ | |
14917 | _ACEOF | |
14918 | cat confdefs.h >>conftest.$ac_ext | |
14919 | cat >>conftest.$ac_ext <<_ACEOF | |
14920 | /* end confdefs.h. */ | |
14921 | $ac_includes_default | |
14922 | int | |
14923 | main () | |
14924 | { | |
14925 | #ifndef strstr | |
14926 | char *p = (char *) strstr; | |
4e8d927d DJ |
14927 | #endif |
14928 | ||
14929 | ; | |
14930 | return 0; | |
14931 | } | |
14932 | _ACEOF | |
14933 | rm -f conftest.$ac_objext | |
14934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14935 | (eval $ac_compile) 2>conftest.er1 | |
14936 | ac_status=$? | |
14937 | grep -v '^ *+' conftest.er1 >conftest.err | |
14938 | rm -f conftest.er1 | |
14939 | cat conftest.err >&5 | |
14940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14941 | (exit $ac_status); } && | |
b4e70030 JB |
14942 | { ac_try='test -z "$ac_c_werror_flag" |
14943 | || test ! -s conftest.err' | |
4e8d927d DJ |
14944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14945 | (eval $ac_try) 2>&5 | |
14946 | ac_status=$? | |
14947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14948 | (exit $ac_status); }; } && | |
14949 | { ac_try='test -s conftest.$ac_objext' | |
14950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14951 | (eval $ac_try) 2>&5 | |
14952 | ac_status=$? | |
14953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14954 | (exit $ac_status); }; }; then | |
14955 | ac_cv_have_decl_strstr=yes | |
14956 | else | |
14957 | echo "$as_me: failed program was:" >&5 | |
14958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14959 | ||
b4e70030 | 14960 | ac_cv_have_decl_strstr=no |
4e8d927d | 14961 | fi |
4e8d927d DJ |
14962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
14963 | fi | |
b4e70030 JB |
14964 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
14965 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
4e8d927d DJ |
14966 | if test $ac_cv_have_decl_strstr = yes; then |
14967 | ||
14968 | cat >>confdefs.h <<_ACEOF | |
14969 | #define HAVE_DECL_STRSTR 1 | |
14970 | _ACEOF | |
14971 | ||
14972 | ||
14973 | else | |
14974 | cat >>confdefs.h <<_ACEOF | |
14975 | #define HAVE_DECL_STRSTR 0 | |
14976 | _ACEOF | |
14977 | ||
14978 | ||
14979 | fi | |
14980 | ||
14981 | ||
b4e70030 JB |
14982 | echo "$as_me:$LINENO: checking whether getopt is declared" >&5 |
14983 | echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
14984 | if test "${ac_cv_have_decl_getopt+set}" = set; then |
14985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14986 | else | |
14987 | cat >conftest.$ac_ext <<_ACEOF | |
14988 | /* confdefs.h. */ | |
14989 | _ACEOF | |
14990 | cat confdefs.h >>conftest.$ac_ext | |
14991 | cat >>conftest.$ac_ext <<_ACEOF | |
14992 | /* end confdefs.h. */ | |
14993 | $ac_includes_default | |
14994 | int | |
14995 | main () | |
14996 | { | |
14997 | #ifndef getopt | |
14998 | char *p = (char *) getopt; | |
4e8d927d DJ |
14999 | #endif |
15000 | ||
15001 | ; | |
15002 | return 0; | |
15003 | } | |
15004 | _ACEOF | |
15005 | rm -f conftest.$ac_objext | |
15006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15007 | (eval $ac_compile) 2>conftest.er1 | |
15008 | ac_status=$? | |
15009 | grep -v '^ *+' conftest.er1 >conftest.err | |
15010 | rm -f conftest.er1 | |
15011 | cat conftest.err >&5 | |
15012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15013 | (exit $ac_status); } && | |
b4e70030 JB |
15014 | { ac_try='test -z "$ac_c_werror_flag" |
15015 | || test ! -s conftest.err' | |
4e8d927d DJ |
15016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15017 | (eval $ac_try) 2>&5 | |
15018 | ac_status=$? | |
15019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15020 | (exit $ac_status); }; } && | |
15021 | { ac_try='test -s conftest.$ac_objext' | |
15022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15023 | (eval $ac_try) 2>&5 | |
15024 | ac_status=$? | |
15025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15026 | (exit $ac_status); }; }; then | |
15027 | ac_cv_have_decl_getopt=yes | |
15028 | else | |
15029 | echo "$as_me: failed program was:" >&5 | |
15030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15031 | ||
b4e70030 | 15032 | ac_cv_have_decl_getopt=no |
4e8d927d | 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_have_decl_getopt" >&5 |
15037 | echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6 | |
4e8d927d DJ |
15038 | if test $ac_cv_have_decl_getopt = yes; then |
15039 | ||
15040 | cat >>confdefs.h <<_ACEOF | |
15041 | #define HAVE_DECL_GETOPT 1 | |
15042 | _ACEOF | |
15043 | ||
15044 | ||
15045 | else | |
15046 | cat >>confdefs.h <<_ACEOF | |
15047 | #define HAVE_DECL_GETOPT 0 | |
15048 | _ACEOF | |
15049 | ||
15050 | ||
15051 | fi | |
b4e70030 JB |
15052 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
15053 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
15054 | if test "${ac_cv_have_decl_snprintf+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 | $ac_includes_default | |
15064 | int | |
15065 | main () | |
15066 | { | |
15067 | #ifndef snprintf | |
15068 | char *p = (char *) snprintf; | |
4e8d927d DJ |
15069 | #endif |
15070 | ||
15071 | ; | |
15072 | return 0; | |
15073 | } | |
15074 | _ACEOF | |
15075 | rm -f conftest.$ac_objext | |
15076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15077 | (eval $ac_compile) 2>conftest.er1 | |
15078 | ac_status=$? | |
15079 | grep -v '^ *+' conftest.er1 >conftest.err | |
15080 | rm -f conftest.er1 | |
15081 | cat conftest.err >&5 | |
15082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15083 | (exit $ac_status); } && | |
b4e70030 JB |
15084 | { ac_try='test -z "$ac_c_werror_flag" |
15085 | || test ! -s conftest.err' | |
4e8d927d DJ |
15086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15087 | (eval $ac_try) 2>&5 | |
15088 | ac_status=$? | |
15089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15090 | (exit $ac_status); }; } && | |
15091 | { ac_try='test -s conftest.$ac_objext' | |
15092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15093 | (eval $ac_try) 2>&5 | |
15094 | ac_status=$? | |
15095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15096 | (exit $ac_status); }; }; then | |
15097 | ac_cv_have_decl_snprintf=yes | |
15098 | else | |
15099 | echo "$as_me: failed program was:" >&5 | |
15100 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15101 | ||
b4e70030 | 15102 | ac_cv_have_decl_snprintf=no |
4e8d927d | 15103 | fi |
4e8d927d DJ |
15104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15105 | fi | |
b4e70030 JB |
15106 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 |
15107 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
4e8d927d DJ |
15108 | if test $ac_cv_have_decl_snprintf = yes; then |
15109 | ||
15110 | cat >>confdefs.h <<_ACEOF | |
15111 | #define HAVE_DECL_SNPRINTF 1 | |
15112 | _ACEOF | |
15113 | ||
15114 | ||
15115 | else | |
15116 | cat >>confdefs.h <<_ACEOF | |
15117 | #define HAVE_DECL_SNPRINTF 0 | |
15118 | _ACEOF | |
15119 | ||
15120 | ||
15121 | fi | |
b4e70030 JB |
15122 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 |
15123 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
4e8d927d DJ |
15124 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then |
15125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15126 | else | |
15127 | cat >conftest.$ac_ext <<_ACEOF | |
15128 | /* confdefs.h. */ | |
15129 | _ACEOF | |
15130 | cat confdefs.h >>conftest.$ac_ext | |
15131 | cat >>conftest.$ac_ext <<_ACEOF | |
15132 | /* end confdefs.h. */ | |
15133 | $ac_includes_default | |
15134 | int | |
15135 | main () | |
15136 | { | |
15137 | #ifndef vsnprintf | |
15138 | char *p = (char *) vsnprintf; | |
4e8d927d DJ |
15139 | #endif |
15140 | ||
15141 | ; | |
15142 | return 0; | |
15143 | } | |
15144 | _ACEOF | |
15145 | rm -f conftest.$ac_objext | |
15146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15147 | (eval $ac_compile) 2>conftest.er1 | |
15148 | ac_status=$? | |
15149 | grep -v '^ *+' conftest.er1 >conftest.err | |
15150 | rm -f conftest.er1 | |
15151 | cat conftest.err >&5 | |
15152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15153 | (exit $ac_status); } && | |
b4e70030 JB |
15154 | { ac_try='test -z "$ac_c_werror_flag" |
15155 | || test ! -s conftest.err' | |
4e8d927d DJ |
15156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15157 | (eval $ac_try) 2>&5 | |
15158 | ac_status=$? | |
15159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15160 | (exit $ac_status); }; } && | |
15161 | { ac_try='test -s conftest.$ac_objext' | |
15162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15163 | (eval $ac_try) 2>&5 | |
15164 | ac_status=$? | |
15165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15166 | (exit $ac_status); }; }; then | |
15167 | ac_cv_have_decl_vsnprintf=yes | |
15168 | else | |
15169 | echo "$as_me: failed program was:" >&5 | |
15170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15171 | ||
b4e70030 | 15172 | ac_cv_have_decl_vsnprintf=no |
4e8d927d | 15173 | fi |
4e8d927d DJ |
15174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15175 | fi | |
b4e70030 JB |
15176 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 |
15177 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
4e8d927d DJ |
15178 | if test $ac_cv_have_decl_vsnprintf = yes; then |
15179 | ||
15180 | cat >>confdefs.h <<_ACEOF | |
15181 | #define HAVE_DECL_VSNPRINTF 1 | |
15182 | _ACEOF | |
15183 | ||
15184 | ||
15185 | else | |
15186 | cat >>confdefs.h <<_ACEOF | |
15187 | #define HAVE_DECL_VSNPRINTF 0 | |
15188 | _ACEOF | |
15189 | ||
15190 | ||
15191 | fi | |
15192 | ||
15193 | ||
15194 | ||
15195 | # ----------------------- # | |
15196 | # Checks for structures. # | |
15197 | # ----------------------- # | |
15198 | ||
b4e70030 JB |
15199 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
15200 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
4e8d927d DJ |
15201 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
15202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15203 | else | |
15204 | cat >conftest.$ac_ext <<_ACEOF | |
15205 | /* confdefs.h. */ | |
15206 | _ACEOF | |
15207 | cat confdefs.h >>conftest.$ac_ext | |
15208 | cat >>conftest.$ac_ext <<_ACEOF | |
15209 | /* end confdefs.h. */ | |
15210 | $ac_includes_default | |
15211 | int | |
15212 | main () | |
15213 | { | |
15214 | static struct stat ac_aggr; | |
15215 | if (ac_aggr.st_blocks) | |
15216 | return 0; | |
15217 | ; | |
15218 | return 0; | |
15219 | } | |
15220 | _ACEOF | |
15221 | rm -f conftest.$ac_objext | |
15222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15223 | (eval $ac_compile) 2>conftest.er1 | |
15224 | ac_status=$? | |
15225 | grep -v '^ *+' conftest.er1 >conftest.err | |
15226 | rm -f conftest.er1 | |
15227 | cat conftest.err >&5 | |
15228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15229 | (exit $ac_status); } && | |
b4e70030 JB |
15230 | { ac_try='test -z "$ac_c_werror_flag" |
15231 | || test ! -s conftest.err' | |
4e8d927d DJ |
15232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15233 | (eval $ac_try) 2>&5 | |
15234 | ac_status=$? | |
15235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15236 | (exit $ac_status); }; } && | |
15237 | { ac_try='test -s conftest.$ac_objext' | |
15238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15239 | (eval $ac_try) 2>&5 | |
15240 | ac_status=$? | |
15241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15242 | (exit $ac_status); }; }; then | |
15243 | ac_cv_member_struct_stat_st_blocks=yes | |
15244 | else | |
15245 | echo "$as_me: failed program was:" >&5 | |
15246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15247 | ||
b4e70030 | 15248 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
15249 | /* confdefs.h. */ |
15250 | _ACEOF | |
15251 | cat confdefs.h >>conftest.$ac_ext | |
15252 | cat >>conftest.$ac_ext <<_ACEOF | |
15253 | /* end confdefs.h. */ | |
15254 | $ac_includes_default | |
15255 | int | |
15256 | main () | |
15257 | { | |
15258 | static struct stat ac_aggr; | |
15259 | if (sizeof ac_aggr.st_blocks) | |
15260 | return 0; | |
15261 | ; | |
15262 | return 0; | |
15263 | } | |
15264 | _ACEOF | |
15265 | rm -f conftest.$ac_objext | |
15266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15267 | (eval $ac_compile) 2>conftest.er1 | |
15268 | ac_status=$? | |
15269 | grep -v '^ *+' conftest.er1 >conftest.err | |
15270 | rm -f conftest.er1 | |
15271 | cat conftest.err >&5 | |
15272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15273 | (exit $ac_status); } && | |
b4e70030 JB |
15274 | { ac_try='test -z "$ac_c_werror_flag" |
15275 | || test ! -s conftest.err' | |
4e8d927d DJ |
15276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15277 | (eval $ac_try) 2>&5 | |
15278 | ac_status=$? | |
15279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15280 | (exit $ac_status); }; } && | |
15281 | { ac_try='test -s conftest.$ac_objext' | |
15282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15283 | (eval $ac_try) 2>&5 | |
15284 | ac_status=$? | |
15285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15286 | (exit $ac_status); }; }; then | |
15287 | ac_cv_member_struct_stat_st_blocks=yes | |
15288 | else | |
15289 | echo "$as_me: failed program was:" >&5 | |
15290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15291 | ||
b4e70030 | 15292 | ac_cv_member_struct_stat_st_blocks=no |
4e8d927d | 15293 | fi |
4e8d927d DJ |
15294 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15295 | fi | |
4e8d927d DJ |
15296 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15297 | fi | |
b4e70030 JB |
15298 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
15299 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
4e8d927d DJ |
15300 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
15301 | ||
15302 | cat >>confdefs.h <<_ACEOF | |
15303 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
15304 | _ACEOF | |
15305 | ||
15306 | ||
15307 | fi | |
15308 | ||
b4e70030 JB |
15309 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
15310 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
4e8d927d DJ |
15311 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then |
15312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15313 | else | |
15314 | cat >conftest.$ac_ext <<_ACEOF | |
15315 | /* confdefs.h. */ | |
15316 | _ACEOF | |
15317 | cat confdefs.h >>conftest.$ac_ext | |
15318 | cat >>conftest.$ac_ext <<_ACEOF | |
15319 | /* end confdefs.h. */ | |
15320 | $ac_includes_default | |
15321 | int | |
15322 | main () | |
15323 | { | |
15324 | static struct stat ac_aggr; | |
15325 | if (ac_aggr.st_blksize) | |
15326 | return 0; | |
15327 | ; | |
15328 | return 0; | |
15329 | } | |
15330 | _ACEOF | |
15331 | rm -f conftest.$ac_objext | |
15332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15333 | (eval $ac_compile) 2>conftest.er1 | |
15334 | ac_status=$? | |
15335 | grep -v '^ *+' conftest.er1 >conftest.err | |
15336 | rm -f conftest.er1 | |
15337 | cat conftest.err >&5 | |
15338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15339 | (exit $ac_status); } && | |
b4e70030 JB |
15340 | { ac_try='test -z "$ac_c_werror_flag" |
15341 | || test ! -s conftest.err' | |
4e8d927d DJ |
15342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15343 | (eval $ac_try) 2>&5 | |
15344 | ac_status=$? | |
15345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15346 | (exit $ac_status); }; } && | |
15347 | { ac_try='test -s conftest.$ac_objext' | |
15348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15349 | (eval $ac_try) 2>&5 | |
15350 | ac_status=$? | |
15351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15352 | (exit $ac_status); }; }; then | |
15353 | ac_cv_member_struct_stat_st_blksize=yes | |
15354 | else | |
15355 | echo "$as_me: failed program was:" >&5 | |
15356 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15357 | ||
b4e70030 | 15358 | cat >conftest.$ac_ext <<_ACEOF |
4e8d927d DJ |
15359 | /* confdefs.h. */ |
15360 | _ACEOF | |
15361 | cat confdefs.h >>conftest.$ac_ext | |
15362 | cat >>conftest.$ac_ext <<_ACEOF | |
15363 | /* end confdefs.h. */ | |
15364 | $ac_includes_default | |
15365 | int | |
15366 | main () | |
15367 | { | |
15368 | static struct stat ac_aggr; | |
15369 | if (sizeof ac_aggr.st_blksize) | |
15370 | return 0; | |
15371 | ; | |
15372 | return 0; | |
15373 | } | |
15374 | _ACEOF | |
15375 | rm -f conftest.$ac_objext | |
15376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15377 | (eval $ac_compile) 2>conftest.er1 | |
15378 | ac_status=$? | |
15379 | grep -v '^ *+' conftest.er1 >conftest.err | |
15380 | rm -f conftest.er1 | |
15381 | cat conftest.err >&5 | |
15382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15383 | (exit $ac_status); } && | |
b4e70030 JB |
15384 | { ac_try='test -z "$ac_c_werror_flag" |
15385 | || test ! -s conftest.err' | |
4e8d927d DJ |
15386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15387 | (eval $ac_try) 2>&5 | |
15388 | ac_status=$? | |
15389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15390 | (exit $ac_status); }; } && | |
15391 | { ac_try='test -s conftest.$ac_objext' | |
15392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15393 | (eval $ac_try) 2>&5 | |
15394 | ac_status=$? | |
15395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15396 | (exit $ac_status); }; }; then | |
15397 | ac_cv_member_struct_stat_st_blksize=yes | |
15398 | else | |
15399 | echo "$as_me: failed program was:" >&5 | |
15400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15401 | ||
b4e70030 | 15402 | ac_cv_member_struct_stat_st_blksize=no |
4e8d927d | 15403 | fi |
4e8d927d DJ |
15404 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15405 | fi | |
4e8d927d DJ |
15406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15407 | fi | |
b4e70030 JB |
15408 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 |
15409 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
4e8d927d DJ |
15410 | if test $ac_cv_member_struct_stat_st_blksize = yes; then |
15411 | ||
15412 | cat >>confdefs.h <<_ACEOF | |
15413 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
15414 | _ACEOF | |
15415 | ||
15416 | ||
15417 | fi | |
15418 | ||
15419 | ||
15420 | # ------------------ # | |
15421 | # Checks for types. # | |
15422 | # ------------------ # | |
15423 | ||
b4e70030 JB |
15424 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
15425 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
4e8d927d DJ |
15426 | if test "${ac_cv_type_signal+set}" = set; then |
15427 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15428 | else | |
15429 | cat >conftest.$ac_ext <<_ACEOF | |
15430 | /* confdefs.h. */ | |
15431 | _ACEOF | |
15432 | cat confdefs.h >>conftest.$ac_ext | |
15433 | cat >>conftest.$ac_ext <<_ACEOF | |
15434 | /* end confdefs.h. */ | |
15435 | #include <sys/types.h> | |
15436 | #include <signal.h> | |
b4e70030 JB |
15437 | #ifdef signal |
15438 | # undef signal | |
15439 | #endif | |
15440 | #ifdef __cplusplus | |
15441 | extern "C" void (*signal (int, void (*)(int)))(int); | |
15442 | #else | |
15443 | void (*signal ()) (); | |
15444 | #endif | |
4e8d927d DJ |
15445 | |
15446 | int | |
15447 | main () | |
15448 | { | |
b4e70030 | 15449 | int i; |
4e8d927d DJ |
15450 | ; |
15451 | return 0; | |
15452 | } | |
15453 | _ACEOF | |
15454 | rm -f conftest.$ac_objext | |
15455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15456 | (eval $ac_compile) 2>conftest.er1 | |
15457 | ac_status=$? | |
15458 | grep -v '^ *+' conftest.er1 >conftest.err | |
15459 | rm -f conftest.er1 | |
15460 | cat conftest.err >&5 | |
15461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15462 | (exit $ac_status); } && | |
b4e70030 JB |
15463 | { ac_try='test -z "$ac_c_werror_flag" |
15464 | || test ! -s conftest.err' | |
4e8d927d DJ |
15465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15466 | (eval $ac_try) 2>&5 | |
15467 | ac_status=$? | |
15468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15469 | (exit $ac_status); }; } && | |
15470 | { ac_try='test -s conftest.$ac_objext' | |
15471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15472 | (eval $ac_try) 2>&5 | |
15473 | ac_status=$? | |
15474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15475 | (exit $ac_status); }; }; then | |
b4e70030 | 15476 | ac_cv_type_signal=void |
4e8d927d DJ |
15477 | else |
15478 | echo "$as_me: failed program was:" >&5 | |
15479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15480 | ||
b4e70030 | 15481 | ac_cv_type_signal=int |
4e8d927d | 15482 | fi |
4e8d927d DJ |
15483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15484 | fi | |
b4e70030 JB |
15485 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
15486 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
4e8d927d DJ |
15487 | |
15488 | cat >>confdefs.h <<_ACEOF | |
15489 | #define RETSIGTYPE $ac_cv_type_signal | |
15490 | _ACEOF | |
15491 | ||
15492 | ||
b4e70030 JB |
15493 | echo "$as_me:$LINENO: checking for socklen_t" >&5 |
15494 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 | |
4e8d927d DJ |
15495 | if test "${ac_cv_type_socklen_t+set}" = set; then |
15496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15497 | else | |
15498 | cat >conftest.$ac_ext <<_ACEOF | |
15499 | /* confdefs.h. */ | |
15500 | _ACEOF | |
15501 | cat confdefs.h >>conftest.$ac_ext | |
15502 | cat >>conftest.$ac_ext <<_ACEOF | |
15503 | /* end confdefs.h. */ | |
15504 | #include <sys/types.h> | |
15505 | #include <sys/socket.h> | |
15506 | ||
15507 | ||
4e8d927d DJ |
15508 | int |
15509 | main () | |
15510 | { | |
b4e70030 | 15511 | if ((socklen_t *) 0) |
4e8d927d | 15512 | return 0; |
b4e70030 | 15513 | if (sizeof (socklen_t)) |
4e8d927d DJ |
15514 | return 0; |
15515 | ; | |
15516 | return 0; | |
15517 | } | |
15518 | _ACEOF | |
15519 | rm -f conftest.$ac_objext | |
15520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15521 | (eval $ac_compile) 2>conftest.er1 | |
15522 | ac_status=$? | |
15523 | grep -v '^ *+' conftest.er1 >conftest.err | |
15524 | rm -f conftest.er1 | |
15525 | cat conftest.err >&5 | |
15526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15527 | (exit $ac_status); } && | |
b4e70030 JB |
15528 | { ac_try='test -z "$ac_c_werror_flag" |
15529 | || test ! -s conftest.err' | |
4e8d927d DJ |
15530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15531 | (eval $ac_try) 2>&5 | |
15532 | ac_status=$? | |
15533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15534 | (exit $ac_status); }; } && | |
15535 | { ac_try='test -s conftest.$ac_objext' | |
15536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15537 | (eval $ac_try) 2>&5 | |
15538 | ac_status=$? | |
15539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15540 | (exit $ac_status); }; }; then | |
15541 | ac_cv_type_socklen_t=yes | |
15542 | else | |
15543 | echo "$as_me: failed program was:" >&5 | |
15544 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15545 | ||
b4e70030 | 15546 | ac_cv_type_socklen_t=no |
4e8d927d | 15547 | fi |
4e8d927d DJ |
15548 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15549 | fi | |
b4e70030 JB |
15550 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 |
15551 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 | |
4e8d927d DJ |
15552 | if test $ac_cv_type_socklen_t = yes; then |
15553 | ||
15554 | cat >>confdefs.h <<_ACEOF | |
15555 | #define HAVE_SOCKLEN_T 1 | |
15556 | _ACEOF | |
15557 | ||
15558 | ||
15559 | fi | |
15560 | ||
b4e70030 JB |
15561 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 |
15562 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
4e8d927d DJ |
15563 | if test "${ac_cv_type_uintptr_t+set}" = set; then |
15564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15565 | else | |
15566 | cat >conftest.$ac_ext <<_ACEOF | |
15567 | /* confdefs.h. */ | |
15568 | _ACEOF | |
15569 | cat confdefs.h >>conftest.$ac_ext | |
15570 | cat >>conftest.$ac_ext <<_ACEOF | |
15571 | /* end confdefs.h. */ | |
15572 | #include <stdint.h> | |
15573 | ||
4e8d927d DJ |
15574 | int |
15575 | main () | |
15576 | { | |
b4e70030 | 15577 | if ((uintptr_t *) 0) |
4e8d927d | 15578 | return 0; |
b4e70030 | 15579 | if (sizeof (uintptr_t)) |
4e8d927d DJ |
15580 | return 0; |
15581 | ; | |
15582 | return 0; | |
15583 | } | |
15584 | _ACEOF | |
15585 | rm -f conftest.$ac_objext | |
15586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15587 | (eval $ac_compile) 2>conftest.er1 | |
15588 | ac_status=$? | |
15589 | grep -v '^ *+' conftest.er1 >conftest.err | |
15590 | rm -f conftest.er1 | |
15591 | cat conftest.err >&5 | |
15592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15593 | (exit $ac_status); } && | |
b4e70030 JB |
15594 | { ac_try='test -z "$ac_c_werror_flag" |
15595 | || test ! -s conftest.err' | |
4e8d927d DJ |
15596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15597 | (eval $ac_try) 2>&5 | |
15598 | ac_status=$? | |
15599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15600 | (exit $ac_status); }; } && | |
15601 | { ac_try='test -s conftest.$ac_objext' | |
15602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15603 | (eval $ac_try) 2>&5 | |
15604 | ac_status=$? | |
15605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15606 | (exit $ac_status); }; }; then | |
15607 | ac_cv_type_uintptr_t=yes | |
15608 | else | |
15609 | echo "$as_me: failed program was:" >&5 | |
15610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15611 | ||
b4e70030 | 15612 | ac_cv_type_uintptr_t=no |
4e8d927d | 15613 | fi |
4e8d927d DJ |
15614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15615 | fi | |
b4e70030 JB |
15616 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 |
15617 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
4e8d927d DJ |
15618 | if test $ac_cv_type_uintptr_t = yes; then |
15619 | ||
15620 | cat >>confdefs.h <<_ACEOF | |
15621 | #define HAVE_UINTPTR_T 1 | |
15622 | _ACEOF | |
15623 | ||
15624 | ||
15625 | fi | |
15626 | ||
15627 | ||
15628 | # ------------------------------------- # | |
15629 | # Checks for compiler characteristics. # | |
15630 | # ------------------------------------- # | |
15631 | ||
b4e70030 JB |
15632 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
15633 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
4e8d927d DJ |
15634 | if test "${ac_cv_c_const+set}" = set; then |
15635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15636 | else | |
15637 | cat >conftest.$ac_ext <<_ACEOF | |
15638 | /* confdefs.h. */ | |
15639 | _ACEOF | |
15640 | cat confdefs.h >>conftest.$ac_ext | |
15641 | cat >>conftest.$ac_ext <<_ACEOF | |
15642 | /* end confdefs.h. */ | |
15643 | ||
15644 | int | |
15645 | main () | |
15646 | { | |
15647 | /* FIXME: Include the comments suggested by Paul. */ | |
15648 | #ifndef __cplusplus | |
15649 | /* Ultrix mips cc rejects this. */ | |
15650 | typedef int charset[2]; | |
15651 | const charset x; | |
15652 | /* SunOS 4.1.1 cc rejects this. */ | |
15653 | char const *const *ccp; | |
15654 | char **p; | |
15655 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
15656 | struct point {int x, y;}; | |
15657 | static struct point const zero = {0,0}; | |
15658 | /* AIX XL C 1.02.0.0 rejects this. | |
15659 | It does not let you subtract one const X* pointer from another in | |
15660 | an arm of an if-expression whose if-part is not a constant | |
15661 | expression */ | |
15662 | const char *g = "string"; | |
15663 | ccp = &g + (g ? g-g : 0); | |
15664 | /* HPUX 7.0 cc rejects these. */ | |
15665 | ++ccp; | |
15666 | p = (char**) ccp; | |
15667 | ccp = (char const *const *) p; | |
15668 | { /* SCO 3.2v4 cc rejects this. */ | |
15669 | char *t; | |
15670 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
15671 | ||
15672 | *t++ = 0; | |
4e8d927d DJ |
15673 | } |
15674 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
15675 | int x[] = {25, 17}; | |
15676 | const int *foo = &x[0]; | |
15677 | ++foo; | |
15678 | } | |
15679 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
15680 | typedef const int *iptr; | |
15681 | iptr p = 0; | |
15682 | ++p; | |
15683 | } | |
15684 | { /* AIX XL C 1.02.0.0 rejects this saying | |
15685 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
15686 | struct s { int j; const int *ap[3]; }; | |
15687 | struct s *b; b->j = 5; | |
15688 | } | |
15689 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
15690 | const int foo = 10; | |
4e8d927d | 15691 | } |
4e8d927d DJ |
15692 | #endif |
15693 | ||
15694 | ; | |
15695 | return 0; | |
15696 | } | |
15697 | _ACEOF | |
15698 | rm -f conftest.$ac_objext | |
15699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15700 | (eval $ac_compile) 2>conftest.er1 | |
15701 | ac_status=$? | |
15702 | grep -v '^ *+' conftest.er1 >conftest.err | |
15703 | rm -f conftest.er1 | |
15704 | cat conftest.err >&5 | |
15705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15706 | (exit $ac_status); } && | |
b4e70030 JB |
15707 | { ac_try='test -z "$ac_c_werror_flag" |
15708 | || test ! -s conftest.err' | |
4e8d927d DJ |
15709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15710 | (eval $ac_try) 2>&5 | |
15711 | ac_status=$? | |
15712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15713 | (exit $ac_status); }; } && | |
15714 | { ac_try='test -s conftest.$ac_objext' | |
15715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15716 | (eval $ac_try) 2>&5 | |
15717 | ac_status=$? | |
15718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15719 | (exit $ac_status); }; }; then | |
15720 | ac_cv_c_const=yes | |
15721 | else | |
15722 | echo "$as_me: failed program was:" >&5 | |
15723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15724 | ||
b4e70030 | 15725 | ac_cv_c_const=no |
4e8d927d | 15726 | fi |
4e8d927d DJ |
15727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
15728 | fi | |
b4e70030 JB |
15729 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
15730 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
4e8d927d DJ |
15731 | if test $ac_cv_c_const = no; then |
15732 | ||
15733 | cat >>confdefs.h <<\_ACEOF | |
15734 | #define const | |
15735 | _ACEOF | |
15736 | ||
15737 | fi | |
15738 | ||
b4e70030 JB |
15739 | echo "$as_me:$LINENO: checking for inline" >&5 |
15740 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
4e8d927d DJ |
15741 | if test "${ac_cv_c_inline+set}" = set; then |
15742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15743 | else | |
15744 | ac_cv_c_inline=no | |
15745 | for ac_kw in inline __inline__ __inline; do | |
15746 | cat >conftest.$ac_ext <<_ACEOF | |
15747 | /* confdefs.h. */ | |
15748 | _ACEOF | |
15749 | cat confdefs.h >>conftest.$ac_ext | |
15750 | cat >>conftest.$ac_ext <<_ACEOF | |
15751 | /* end confdefs.h. */ | |
15752 | #ifndef __cplusplus | |
15753 | typedef int foo_t; | |
15754 | static $ac_kw foo_t static_foo () {return 0; } | |
15755 | $ac_kw foo_t foo () {return 0; } | |
15756 | #endif | |
15757 | ||
15758 | _ACEOF | |
15759 | rm -f conftest.$ac_objext | |
15760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15761 | (eval $ac_compile) 2>conftest.er1 | |
15762 | ac_status=$? | |
15763 | grep -v '^ *+' conftest.er1 >conftest.err | |
15764 | rm -f conftest.er1 | |
15765 | cat conftest.err >&5 | |
15766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15767 | (exit $ac_status); } && | |
b4e70030 JB |
15768 | { ac_try='test -z "$ac_c_werror_flag" |
15769 | || test ! -s conftest.err' | |
4e8d927d DJ |
15770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15771 | (eval $ac_try) 2>&5 | |
15772 | ac_status=$? | |
15773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15774 | (exit $ac_status); }; } && | |
15775 | { ac_try='test -s conftest.$ac_objext' | |
15776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15777 | (eval $ac_try) 2>&5 | |
15778 | ac_status=$? | |
15779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15780 | (exit $ac_status); }; }; then | |
b4e70030 | 15781 | ac_cv_c_inline=$ac_kw; break |
4e8d927d DJ |
15782 | else |
15783 | echo "$as_me: failed program was:" >&5 | |
15784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15785 | ||
4e8d927d | 15786 | fi |
4e8d927d | 15787 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4e8d927d DJ |
15788 | done |
15789 | ||
15790 | fi | |
b4e70030 JB |
15791 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
15792 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
bec39cab | 15793 | |
bec39cab | 15794 | |
a3828db0 MK |
15795 | case $ac_cv_c_inline in |
15796 | inline | yes) ;; | |
15797 | *) | |
15798 | case $ac_cv_c_inline in | |
15799 | no) ac_val=;; | |
15800 | *) ac_val=$ac_cv_c_inline;; | |
15801 | esac | |
15802 | cat >>confdefs.h <<_ACEOF | |
15803 | #ifndef __cplusplus | |
15804 | #define inline $ac_val | |
15805 | #endif | |
15806 | _ACEOF | |
bec39cab AC |
15807 | ;; |
15808 | esac | |
bec39cab | 15809 | |
9b913628 TJB |
15810 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
15811 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
15812 | if test "${ac_cv_c_bigendian+set}" = set; then | |
15813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15814 | else | |
15815 | # See if sys/param.h defines the BYTE_ORDER macro. | |
15816 | cat >conftest.$ac_ext <<_ACEOF | |
15817 | /* confdefs.h. */ | |
15818 | _ACEOF | |
15819 | cat confdefs.h >>conftest.$ac_ext | |
15820 | cat >>conftest.$ac_ext <<_ACEOF | |
15821 | /* end confdefs.h. */ | |
15822 | #include <sys/types.h> | |
15823 | #include <sys/param.h> | |
15824 | ||
15825 | int | |
15826 | main () | |
15827 | { | |
15828 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
15829 | bogus endian macros | |
15830 | #endif | |
15831 | ||
15832 | ; | |
15833 | return 0; | |
15834 | } | |
15835 | _ACEOF | |
15836 | rm -f conftest.$ac_objext | |
15837 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15838 | (eval $ac_compile) 2>conftest.er1 | |
15839 | ac_status=$? | |
15840 | grep -v '^ *+' conftest.er1 >conftest.err | |
15841 | rm -f conftest.er1 | |
15842 | cat conftest.err >&5 | |
15843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15844 | (exit $ac_status); } && | |
15845 | { ac_try='test -z "$ac_c_werror_flag" | |
15846 | || test ! -s conftest.err' | |
15847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15848 | (eval $ac_try) 2>&5 | |
15849 | ac_status=$? | |
15850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15851 | (exit $ac_status); }; } && | |
15852 | { ac_try='test -s conftest.$ac_objext' | |
15853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15854 | (eval $ac_try) 2>&5 | |
15855 | ac_status=$? | |
15856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15857 | (exit $ac_status); }; }; then | |
15858 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
15859 | cat >conftest.$ac_ext <<_ACEOF | |
15860 | /* confdefs.h. */ | |
15861 | _ACEOF | |
15862 | cat confdefs.h >>conftest.$ac_ext | |
15863 | cat >>conftest.$ac_ext <<_ACEOF | |
15864 | /* end confdefs.h. */ | |
15865 | #include <sys/types.h> | |
15866 | #include <sys/param.h> | |
15867 | ||
15868 | int | |
15869 | main () | |
15870 | { | |
15871 | #if BYTE_ORDER != BIG_ENDIAN | |
15872 | not big endian | |
15873 | #endif | |
15874 | ||
15875 | ; | |
15876 | return 0; | |
15877 | } | |
15878 | _ACEOF | |
15879 | rm -f conftest.$ac_objext | |
15880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15881 | (eval $ac_compile) 2>conftest.er1 | |
15882 | ac_status=$? | |
15883 | grep -v '^ *+' conftest.er1 >conftest.err | |
15884 | rm -f conftest.er1 | |
15885 | cat conftest.err >&5 | |
15886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15887 | (exit $ac_status); } && | |
15888 | { ac_try='test -z "$ac_c_werror_flag" | |
15889 | || test ! -s conftest.err' | |
15890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15891 | (eval $ac_try) 2>&5 | |
15892 | ac_status=$? | |
15893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15894 | (exit $ac_status); }; } && | |
15895 | { ac_try='test -s conftest.$ac_objext' | |
15896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15897 | (eval $ac_try) 2>&5 | |
15898 | ac_status=$? | |
15899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15900 | (exit $ac_status); }; }; then | |
15901 | ac_cv_c_bigendian=yes | |
15902 | else | |
15903 | echo "$as_me: failed program was:" >&5 | |
15904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15905 | ||
15906 | ac_cv_c_bigendian=no | |
15907 | fi | |
15908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15909 | else | |
15910 | echo "$as_me: failed program was:" >&5 | |
15911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15912 | ||
15913 | # It does not; compile a test program. | |
15914 | if test "$cross_compiling" = yes; then | |
15915 | # try to guess the endianness by grepping values into an object file | |
15916 | ac_cv_c_bigendian=unknown | |
15917 | cat >conftest.$ac_ext <<_ACEOF | |
15918 | /* confdefs.h. */ | |
15919 | _ACEOF | |
15920 | cat confdefs.h >>conftest.$ac_ext | |
15921 | cat >>conftest.$ac_ext <<_ACEOF | |
15922 | /* end confdefs.h. */ | |
15923 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
15924 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
15925 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
15926 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
15927 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
15928 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
15929 | int | |
15930 | main () | |
15931 | { | |
15932 | _ascii (); _ebcdic (); | |
15933 | ; | |
15934 | return 0; | |
15935 | } | |
15936 | _ACEOF | |
15937 | rm -f conftest.$ac_objext | |
15938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15939 | (eval $ac_compile) 2>conftest.er1 | |
15940 | ac_status=$? | |
15941 | grep -v '^ *+' conftest.er1 >conftest.err | |
15942 | rm -f conftest.er1 | |
15943 | cat conftest.err >&5 | |
15944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15945 | (exit $ac_status); } && | |
15946 | { ac_try='test -z "$ac_c_werror_flag" | |
15947 | || test ! -s conftest.err' | |
15948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15949 | (eval $ac_try) 2>&5 | |
15950 | ac_status=$? | |
15951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15952 | (exit $ac_status); }; } && | |
15953 | { ac_try='test -s conftest.$ac_objext' | |
15954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15955 | (eval $ac_try) 2>&5 | |
15956 | ac_status=$? | |
15957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15958 | (exit $ac_status); }; }; then | |
15959 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
15960 | ac_cv_c_bigendian=yes | |
15961 | fi | |
15962 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
15963 | if test "$ac_cv_c_bigendian" = unknown; then | |
15964 | ac_cv_c_bigendian=no | |
15965 | else | |
15966 | # finding both strings is unlikely to happen, but who knows? | |
15967 | ac_cv_c_bigendian=unknown | |
15968 | fi | |
15969 | fi | |
15970 | else | |
15971 | echo "$as_me: failed program was:" >&5 | |
15972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15973 | ||
15974 | fi | |
15975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15976 | else | |
15977 | cat >conftest.$ac_ext <<_ACEOF | |
15978 | /* confdefs.h. */ | |
15979 | _ACEOF | |
15980 | cat confdefs.h >>conftest.$ac_ext | |
15981 | cat >>conftest.$ac_ext <<_ACEOF | |
15982 | /* end confdefs.h. */ | |
15983 | int | |
15984 | main () | |
15985 | { | |
15986 | /* Are we little or big endian? From Harbison&Steele. */ | |
15987 | union | |
15988 | { | |
15989 | long l; | |
15990 | char c[sizeof (long)]; | |
15991 | } u; | |
15992 | u.l = 1; | |
15993 | exit (u.c[sizeof (long) - 1] == 1); | |
15994 | } | |
15995 | _ACEOF | |
15996 | rm -f conftest$ac_exeext | |
15997 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15998 | (eval $ac_link) 2>&5 | |
15999 | ac_status=$? | |
16000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16001 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16003 | (eval $ac_try) 2>&5 | |
16004 | ac_status=$? | |
16005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16006 | (exit $ac_status); }; }; then | |
16007 | ac_cv_c_bigendian=no | |
16008 | else | |
16009 | echo "$as_me: program exited with status $ac_status" >&5 | |
16010 | echo "$as_me: failed program was:" >&5 | |
16011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16012 | ||
16013 | ( exit $ac_status ) | |
16014 | ac_cv_c_bigendian=yes | |
16015 | fi | |
16016 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16017 | fi | |
16018 | fi | |
16019 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16020 | fi | |
16021 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
16022 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
16023 | case $ac_cv_c_bigendian in | |
16024 | yes) | |
16025 | ||
16026 | cat >>confdefs.h <<\_ACEOF | |
16027 | #define WORDS_BIGENDIAN 1 | |
16028 | _ACEOF | |
16029 | ;; | |
16030 | no) | |
16031 | ;; | |
16032 | *) | |
16033 | { { echo "$as_me:$LINENO: error: unknown endianness | |
16034 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
16035 | echo "$as_me: error: unknown endianness | |
16036 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
16037 | { (exit 1); exit 1; }; } ;; | |
16038 | esac | |
16039 | ||
74c1b268 | 16040 | |
a3828db0 MK |
16041 | # ------------------------------ # |
16042 | # Checks for library functions. # | |
16043 | # ------------------------------ # | |
bec39cab | 16044 | |
a3828db0 MK |
16045 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
16046 | # for constant arguments. Useless! | |
b4e70030 JB |
16047 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
16048 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
a3828db0 | 16049 | if test "${ac_cv_working_alloca_h+set}" = set; then |
bec39cab AC |
16050 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16051 | else | |
16052 | cat >conftest.$ac_ext <<_ACEOF | |
16053 | /* confdefs.h. */ | |
16054 | _ACEOF | |
16055 | cat confdefs.h >>conftest.$ac_ext | |
16056 | cat >>conftest.$ac_ext <<_ACEOF | |
16057 | /* end confdefs.h. */ | |
a3828db0 | 16058 | #include <alloca.h> |
bec39cab AC |
16059 | int |
16060 | main () | |
16061 | { | |
a3828db0 | 16062 | char *p = (char *) alloca (2 * sizeof (int)); |
bec39cab AC |
16063 | ; |
16064 | return 0; | |
16065 | } | |
16066 | _ACEOF | |
16067 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16069 | (eval $ac_link) 2>conftest.er1 | |
16070 | ac_status=$? | |
16071 | grep -v '^ *+' conftest.er1 >conftest.err | |
16072 | rm -f conftest.er1 | |
16073 | cat conftest.err >&5 | |
16074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16075 | (exit $ac_status); } && | |
b4e70030 JB |
16076 | { ac_try='test -z "$ac_c_werror_flag" |
16077 | || test ! -s conftest.err' | |
bec39cab AC |
16078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16079 | (eval $ac_try) 2>&5 | |
16080 | ac_status=$? | |
16081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16082 | (exit $ac_status); }; } && | |
16083 | { ac_try='test -s conftest$ac_exeext' | |
16084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16085 | (eval $ac_try) 2>&5 | |
16086 | ac_status=$? | |
16087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16088 | (exit $ac_status); }; }; then | |
a3828db0 | 16089 | ac_cv_working_alloca_h=yes |
bec39cab AC |
16090 | else |
16091 | echo "$as_me: failed program was:" >&5 | |
16092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16093 | ||
b4e70030 | 16094 | ac_cv_working_alloca_h=no |
bec39cab AC |
16095 | fi |
16096 | rm -f conftest.err conftest.$ac_objext \ | |
16097 | conftest$ac_exeext conftest.$ac_ext | |
16098 | fi | |
b4e70030 JB |
16099 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 |
16100 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
a3828db0 MK |
16101 | if test $ac_cv_working_alloca_h = yes; then |
16102 | ||
16103 | cat >>confdefs.h <<\_ACEOF | |
16104 | #define HAVE_ALLOCA_H 1 | |
bec39cab | 16105 | _ACEOF |
74c1b268 | 16106 | |
74c1b268 AC |
16107 | fi |
16108 | ||
b4e70030 JB |
16109 | echo "$as_me:$LINENO: checking for alloca" >&5 |
16110 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
a3828db0 | 16111 | if test "${ac_cv_func_alloca_works+set}" = set; then |
bec39cab | 16112 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
74c1b268 | 16113 | else |
bec39cab AC |
16114 | cat >conftest.$ac_ext <<_ACEOF |
16115 | /* confdefs.h. */ | |
16116 | _ACEOF | |
16117 | cat confdefs.h >>conftest.$ac_ext | |
16118 | cat >>conftest.$ac_ext <<_ACEOF | |
16119 | /* end confdefs.h. */ | |
a3828db0 MK |
16120 | #ifdef __GNUC__ |
16121 | # define alloca __builtin_alloca | |
16122 | #else | |
16123 | # ifdef _MSC_VER | |
16124 | # include <malloc.h> | |
16125 | # define alloca _alloca | |
16126 | # else | |
16127 | # if HAVE_ALLOCA_H | |
16128 | # include <alloca.h> | |
16129 | # else | |
16130 | # ifdef _AIX | |
16131 | #pragma alloca | |
16132 | # else | |
16133 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
16134 | char *alloca (); | |
16135 | # endif | |
16136 | # endif | |
16137 | # endif | |
97bf5e38 | 16138 | # endif |
a3828db0 | 16139 | #endif |
97bf5e38 | 16140 | |
bec39cab AC |
16141 | int |
16142 | main () | |
16143 | { | |
a3828db0 | 16144 | char *p = (char *) alloca (1); |
bec39cab AC |
16145 | ; |
16146 | return 0; | |
16147 | } | |
16148 | _ACEOF | |
a3828db0 MK |
16149 | rm -f conftest.$ac_objext conftest$ac_exeext |
16150 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16151 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
16152 | ac_status=$? |
16153 | grep -v '^ *+' conftest.er1 >conftest.err | |
16154 | rm -f conftest.er1 | |
16155 | cat conftest.err >&5 | |
16156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16157 | (exit $ac_status); } && | |
b4e70030 JB |
16158 | { ac_try='test -z "$ac_c_werror_flag" |
16159 | || test ! -s conftest.err' | |
bec39cab AC |
16160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16161 | (eval $ac_try) 2>&5 | |
16162 | ac_status=$? | |
16163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16164 | (exit $ac_status); }; } && | |
a3828db0 | 16165 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
16166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16167 | (eval $ac_try) 2>&5 | |
16168 | ac_status=$? | |
16169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16170 | (exit $ac_status); }; }; then | |
a3828db0 | 16171 | ac_cv_func_alloca_works=yes |
0200359f | 16172 | else |
bec39cab AC |
16173 | echo "$as_me: failed program was:" >&5 |
16174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
0200359f | 16175 | |
b4e70030 | 16176 | ac_cv_func_alloca_works=no |
0200359f | 16177 | fi |
a3828db0 MK |
16178 | rm -f conftest.err conftest.$ac_objext \ |
16179 | conftest$ac_exeext conftest.$ac_ext | |
72473524 | 16180 | fi |
b4e70030 JB |
16181 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
16182 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
bec39cab | 16183 | |
a3828db0 MK |
16184 | if test $ac_cv_func_alloca_works = yes; then |
16185 | ||
16186 | cat >>confdefs.h <<\_ACEOF | |
16187 | #define HAVE_ALLOCA 1 | |
bec39cab AC |
16188 | _ACEOF |
16189 | ||
a3828db0 MK |
16190 | else |
16191 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
16192 | # that cause trouble. Some versions do not even contain alloca or | |
16193 | # contain a buggy version. If you still want to use their alloca, | |
16194 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
72473524 | 16195 | |
b4e70030 | 16196 | ALLOCA=alloca.$ac_objext |
bec39cab | 16197 | |
a3828db0 MK |
16198 | cat >>confdefs.h <<\_ACEOF |
16199 | #define C_ALLOCA 1 | |
16200 | _ACEOF | |
bec39cab | 16201 | |
a3828db0 | 16202 | |
b4e70030 JB |
16203 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
16204 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
a3828db0 | 16205 | if test "${ac_cv_os_cray+set}" = set; then |
bec39cab | 16206 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab | 16207 | else |
a3828db0 | 16208 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
16209 | /* confdefs.h. */ |
16210 | _ACEOF | |
16211 | cat confdefs.h >>conftest.$ac_ext | |
16212 | cat >>conftest.$ac_ext <<_ACEOF | |
16213 | /* end confdefs.h. */ | |
b4e70030 | 16214 | #if defined(CRAY) && ! defined(CRAY2) |
a3828db0 MK |
16215 | webecray |
16216 | #else | |
16217 | wenotbecray | |
16218 | #endif | |
16219 | ||
16220 | _ACEOF | |
16221 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
16222 | $EGREP "webecray" >/dev/null 2>&1; then | |
16223 | ac_cv_os_cray=yes | |
16224 | else | |
16225 | ac_cv_os_cray=no | |
16226 | fi | |
16227 | rm -f conftest* | |
16228 | ||
16229 | fi | |
b4e70030 JB |
16230 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
16231 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
a3828db0 MK |
16232 | if test $ac_cv_os_cray = yes; then |
16233 | for ac_func in _getb67 GETB67 getb67; do | |
16234 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
16235 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16236 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16237 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
16238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16239 | else | |
16240 | cat >conftest.$ac_ext <<_ACEOF | |
16241 | /* confdefs.h. */ | |
16242 | _ACEOF | |
16243 | cat confdefs.h >>conftest.$ac_ext | |
16244 | cat >>conftest.$ac_ext <<_ACEOF | |
16245 | /* end confdefs.h. */ | |
16246 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16247 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16248 | #define $ac_func innocuous_$ac_func | |
16249 | ||
16250 | /* System header to define __stub macros and hopefully few prototypes, | |
16251 | which can conflict with char $ac_func (); below. | |
16252 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16253 | <limits.h> exists even on freestanding compilers. */ | |
16254 | ||
16255 | #ifdef __STDC__ | |
16256 | # include <limits.h> | |
16257 | #else | |
16258 | # include <assert.h> | |
16259 | #endif | |
16260 | ||
16261 | #undef $ac_func | |
16262 | ||
b4e70030 | 16263 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
16264 | #ifdef __cplusplus |
16265 | extern "C" | |
b4e70030 | 16266 | { |
a3828db0 | 16267 | #endif |
b4e70030 JB |
16268 | /* We use char because int might match the return type of a gcc2 |
16269 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
16270 | char $ac_func (); |
16271 | /* The GNU C library defines this for functions which it implements | |
16272 | to always fail with ENOSYS. Some functions are actually named | |
16273 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16274 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 16275 | choke me |
b4e70030 JB |
16276 | #else |
16277 | char (*f) () = $ac_func; | |
16278 | #endif | |
16279 | #ifdef __cplusplus | |
16280 | } | |
a3828db0 MK |
16281 | #endif |
16282 | ||
16283 | int | |
16284 | main () | |
16285 | { | |
b4e70030 | 16286 | return f != $ac_func; |
a3828db0 MK |
16287 | ; |
16288 | return 0; | |
16289 | } | |
16290 | _ACEOF | |
16291 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16293 | (eval $ac_link) 2>conftest.er1 | |
16294 | ac_status=$? | |
16295 | grep -v '^ *+' conftest.er1 >conftest.err | |
16296 | rm -f conftest.er1 | |
16297 | cat conftest.err >&5 | |
16298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16299 | (exit $ac_status); } && | |
b4e70030 JB |
16300 | { ac_try='test -z "$ac_c_werror_flag" |
16301 | || test ! -s conftest.err' | |
a3828db0 MK |
16302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16303 | (eval $ac_try) 2>&5 | |
16304 | ac_status=$? | |
16305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16306 | (exit $ac_status); }; } && | |
16307 | { ac_try='test -s conftest$ac_exeext' | |
16308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16309 | (eval $ac_try) 2>&5 | |
16310 | ac_status=$? | |
16311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16312 | (exit $ac_status); }; }; then | |
16313 | eval "$as_ac_var=yes" | |
16314 | else | |
16315 | echo "$as_me: failed program was:" >&5 | |
16316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16317 | ||
b4e70030 | 16318 | eval "$as_ac_var=no" |
a3828db0 MK |
16319 | fi |
16320 | rm -f conftest.err conftest.$ac_objext \ | |
16321 | conftest$ac_exeext conftest.$ac_ext | |
16322 | fi | |
b4e70030 JB |
16323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16324 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
16325 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16326 | ||
16327 | cat >>confdefs.h <<_ACEOF | |
16328 | #define CRAY_STACKSEG_END $ac_func | |
16329 | _ACEOF | |
16330 | ||
16331 | break | |
16332 | fi | |
16333 | ||
16334 | done | |
16335 | fi | |
16336 | ||
b4e70030 JB |
16337 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
16338 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
a3828db0 MK |
16339 | if test "${ac_cv_c_stack_direction+set}" = set; then |
16340 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16341 | else | |
16342 | if test "$cross_compiling" = yes; then | |
16343 | ac_cv_c_stack_direction=0 | |
16344 | else | |
16345 | cat >conftest.$ac_ext <<_ACEOF | |
16346 | /* confdefs.h. */ | |
16347 | _ACEOF | |
16348 | cat confdefs.h >>conftest.$ac_ext | |
16349 | cat >>conftest.$ac_ext <<_ACEOF | |
16350 | /* end confdefs.h. */ | |
16351 | int | |
16352 | find_stack_direction () | |
16353 | { | |
16354 | static char *addr = 0; | |
16355 | auto char dummy; | |
16356 | if (addr == 0) | |
16357 | { | |
16358 | addr = &dummy; | |
16359 | return find_stack_direction (); | |
16360 | } | |
16361 | else | |
16362 | return (&dummy > addr) ? 1 : -1; | |
16363 | } | |
16364 | ||
16365 | int | |
16366 | main () | |
16367 | { | |
b4e70030 | 16368 | exit (find_stack_direction () < 0); |
a3828db0 MK |
16369 | } |
16370 | _ACEOF | |
16371 | rm -f conftest$ac_exeext | |
16372 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16373 | (eval $ac_link) 2>&5 | |
16374 | ac_status=$? | |
16375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16376 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16378 | (eval $ac_try) 2>&5 | |
16379 | ac_status=$? | |
16380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16381 | (exit $ac_status); }; }; then | |
16382 | ac_cv_c_stack_direction=1 | |
16383 | else | |
16384 | echo "$as_me: program exited with status $ac_status" >&5 | |
16385 | echo "$as_me: failed program was:" >&5 | |
16386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16387 | ||
16388 | ( exit $ac_status ) | |
16389 | ac_cv_c_stack_direction=-1 | |
16390 | fi | |
b4e70030 | 16391 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
16392 | fi |
16393 | fi | |
b4e70030 JB |
16394 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
16395 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
a3828db0 MK |
16396 | |
16397 | cat >>confdefs.h <<_ACEOF | |
16398 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
16399 | _ACEOF | |
16400 | ||
16401 | ||
16402 | fi | |
16403 | ||
16404 | ||
16405 | ||
16406 | for ac_header in stdlib.h unistd.h | |
16407 | do | |
16408 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
b4e70030 JB |
16409 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16410 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16411 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16412 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
16413 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16414 | fi | |
b4e70030 JB |
16415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
16416 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 MK |
16417 | else |
16418 | # Is the header compilable? | |
b4e70030 JB |
16419 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16420 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 MK |
16421 | cat >conftest.$ac_ext <<_ACEOF |
16422 | /* confdefs.h. */ | |
16423 | _ACEOF | |
16424 | cat confdefs.h >>conftest.$ac_ext | |
16425 | cat >>conftest.$ac_ext <<_ACEOF | |
16426 | /* end confdefs.h. */ | |
16427 | $ac_includes_default | |
16428 | #include <$ac_header> | |
16429 | _ACEOF | |
16430 | rm -f conftest.$ac_objext | |
16431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16432 | (eval $ac_compile) 2>conftest.er1 | |
16433 | ac_status=$? | |
bec39cab AC |
16434 | grep -v '^ *+' conftest.er1 >conftest.err |
16435 | rm -f conftest.er1 | |
16436 | cat conftest.err >&5 | |
16437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16438 | (exit $ac_status); } && | |
b4e70030 JB |
16439 | { ac_try='test -z "$ac_c_werror_flag" |
16440 | || test ! -s conftest.err' | |
bec39cab AC |
16441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16442 | (eval $ac_try) 2>&5 | |
16443 | ac_status=$? | |
16444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16445 | (exit $ac_status); }; } && | |
16446 | { ac_try='test -s conftest.$ac_objext' | |
16447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16448 | (eval $ac_try) 2>&5 | |
16449 | ac_status=$? | |
16450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16451 | (exit $ac_status); }; }; then | |
16452 | ac_header_compiler=yes | |
16453 | else | |
16454 | echo "$as_me: failed program was:" >&5 | |
16455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16456 | ||
b4e70030 | 16457 | ac_header_compiler=no |
bec39cab AC |
16458 | fi |
16459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
16460 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16461 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
16462 | |
16463 | # Is the header present? | |
b4e70030 JB |
16464 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16465 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
bec39cab AC |
16466 | cat >conftest.$ac_ext <<_ACEOF |
16467 | /* confdefs.h. */ | |
16468 | _ACEOF | |
16469 | cat confdefs.h >>conftest.$ac_ext | |
16470 | cat >>conftest.$ac_ext <<_ACEOF | |
16471 | /* end confdefs.h. */ | |
16472 | #include <$ac_header> | |
16473 | _ACEOF | |
16474 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16475 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16476 | ac_status=$? | |
16477 | grep -v '^ *+' conftest.er1 >conftest.err | |
16478 | rm -f conftest.er1 | |
16479 | cat conftest.err >&5 | |
16480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16481 | (exit $ac_status); } >/dev/null; then | |
16482 | if test -s conftest.err; then | |
16483 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16484 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
16485 | else | |
16486 | ac_cpp_err= | |
16487 | fi | |
16488 | else | |
16489 | ac_cpp_err=yes | |
16490 | fi | |
16491 | if test -z "$ac_cpp_err"; then | |
16492 | ac_header_preproc=yes | |
97bf5e38 | 16493 | else |
bec39cab AC |
16494 | echo "$as_me: failed program was:" >&5 |
16495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16496 | ||
16497 | ac_header_preproc=no | |
72473524 | 16498 | fi |
bec39cab | 16499 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
16500 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16501 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
c906108c | 16502 | |
bec39cab AC |
16503 | # So? What about this header? |
16504 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16505 | yes:no: ) | |
16506 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
16507 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
16508 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
16509 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
16510 | ac_header_preproc=yes | |
16511 | ;; | |
16512 | no:yes:* ) | |
16513 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
16514 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
16515 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
16516 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
16517 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
16518 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
16519 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
16520 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
16521 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
16522 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
16523 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
16524 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
16525 | ( |
16526 | cat <<\_ASBOX | |
16527 | ## ------------------------------------------ ## | |
16528 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
16529 | ## ------------------------------------------ ## | |
16530 | _ASBOX | |
16531 | ) | | |
16532 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
16533 | ;; |
16534 | esac | |
b4e70030 JB |
16535 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
16536 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16537 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 16538 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 16539 | else |
bec39cab AC |
16540 | eval "$as_ac_Header=\$ac_header_preproc" |
16541 | fi | |
b4e70030 JB |
16542 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
16543 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab AC |
16544 | |
16545 | fi | |
16546 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
16547 | cat >>confdefs.h <<_ACEOF | |
16548 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
16549 | _ACEOF | |
16550 | ||
16551 | fi | |
16552 | ||
16553 | done | |
16554 | ||
16555 | ||
a3828db0 | 16556 | for ac_func in getpagesize |
bec39cab AC |
16557 | do |
16558 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
16559 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
16560 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16561 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
16562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16563 | else | |
16564 | cat >conftest.$ac_ext <<_ACEOF | |
16565 | /* confdefs.h. */ | |
16566 | _ACEOF | |
16567 | cat confdefs.h >>conftest.$ac_ext | |
16568 | cat >>conftest.$ac_ext <<_ACEOF | |
16569 | /* end confdefs.h. */ | |
16570 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16571 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16572 | #define $ac_func innocuous_$ac_func | |
16573 | ||
97bf5e38 | 16574 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
16575 | which can conflict with char $ac_func (); below. |
16576 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16577 | <limits.h> exists even on freestanding compilers. */ | |
2b2d558c | 16578 | |
bec39cab AC |
16579 | #ifdef __STDC__ |
16580 | # include <limits.h> | |
16581 | #else | |
16582 | # include <assert.h> | |
16583 | #endif | |
97bf5e38 | 16584 | |
bec39cab AC |
16585 | #undef $ac_func |
16586 | ||
b4e70030 | 16587 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
16588 | #ifdef __cplusplus |
16589 | extern "C" | |
b4e70030 | 16590 | { |
bec39cab | 16591 | #endif |
b4e70030 JB |
16592 | /* We use char because int might match the return type of a gcc2 |
16593 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 16594 | char $ac_func (); |
97bf5e38 MK |
16595 | /* The GNU C library defines this for functions which it implements |
16596 | to always fail with ENOSYS. Some functions are actually named | |
16597 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 16598 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 16599 | choke me |
b4e70030 JB |
16600 | #else |
16601 | char (*f) () = $ac_func; | |
16602 | #endif | |
16603 | #ifdef __cplusplus | |
16604 | } | |
97bf5e38 MK |
16605 | #endif |
16606 | ||
bec39cab AC |
16607 | int |
16608 | main () | |
16609 | { | |
b4e70030 | 16610 | return f != $ac_func; |
bec39cab AC |
16611 | ; |
16612 | return 0; | |
16613 | } | |
16614 | _ACEOF | |
16615 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16616 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16617 | (eval $ac_link) 2>conftest.er1 | |
16618 | ac_status=$? | |
16619 | grep -v '^ *+' conftest.er1 >conftest.err | |
16620 | rm -f conftest.er1 | |
16621 | cat conftest.err >&5 | |
16622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16623 | (exit $ac_status); } && | |
b4e70030 JB |
16624 | { ac_try='test -z "$ac_c_werror_flag" |
16625 | || test ! -s conftest.err' | |
bec39cab AC |
16626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16627 | (eval $ac_try) 2>&5 | |
16628 | ac_status=$? | |
16629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16630 | (exit $ac_status); }; } && | |
16631 | { ac_try='test -s conftest$ac_exeext' | |
16632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16633 | (eval $ac_try) 2>&5 | |
16634 | ac_status=$? | |
16635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16636 | (exit $ac_status); }; }; then | |
16637 | eval "$as_ac_var=yes" | |
16638 | else | |
16639 | echo "$as_me: failed program was:" >&5 | |
16640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16641 | ||
b4e70030 | 16642 | eval "$as_ac_var=no" |
bec39cab AC |
16643 | fi |
16644 | rm -f conftest.err conftest.$ac_objext \ | |
16645 | conftest$ac_exeext conftest.$ac_ext | |
16646 | fi | |
b4e70030 JB |
16647 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
16648 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
16649 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
16650 | cat >>confdefs.h <<_ACEOF | |
16651 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16652 | _ACEOF | |
16653 | ||
2b2d558c | 16654 | fi |
bec39cab | 16655 | done |
2b2d558c | 16656 | |
b4e70030 JB |
16657 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
16658 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
a3828db0 | 16659 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then |
bec39cab | 16660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 16661 | else |
bec39cab | 16662 | if test "$cross_compiling" = yes; then |
a3828db0 | 16663 | ac_cv_func_mmap_fixed_mapped=no |
bec39cab AC |
16664 | else |
16665 | cat >conftest.$ac_ext <<_ACEOF | |
a3828db0 | 16666 | /* confdefs.h. */ |
bec39cab AC |
16667 | _ACEOF |
16668 | cat confdefs.h >>conftest.$ac_ext | |
16669 | cat >>conftest.$ac_ext <<_ACEOF | |
16670 | /* end confdefs.h. */ | |
a3828db0 MK |
16671 | $ac_includes_default |
16672 | /* malloc might have been renamed as rpl_malloc. */ | |
16673 | #undef malloc | |
bec39cab | 16674 | |
a3828db0 MK |
16675 | /* Thanks to Mike Haertel and Jim Avera for this test. |
16676 | Here is a matrix of mmap possibilities: | |
16677 | mmap private not fixed | |
16678 | mmap private fixed at somewhere currently unmapped | |
16679 | mmap private fixed at somewhere already mapped | |
16680 | mmap shared not fixed | |
16681 | mmap shared fixed at somewhere currently unmapped | |
16682 | mmap shared fixed at somewhere already mapped | |
16683 | For private mappings, we should verify that changes cannot be read() | |
16684 | back from the file, nor mmap's back from the file at a different | |
16685 | address. (There have been systems where private was not correctly | |
16686 | implemented like the infamous i386 svr4.0, and systems where the | |
16687 | VM page cache was not coherent with the file system buffer cache | |
16688 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
16689 | For shared mappings, we should conversely verify that changes get | |
16690 | propagated back to all the places they're supposed to be. | |
7dfa765c | 16691 | |
a3828db0 MK |
16692 | Grep wants private fixed already mapped. |
16693 | The main things grep needs to know about mmap are: | |
16694 | * does it exist and is it safe to write into the mmap'd area | |
16695 | * how to use it (BSD variants) */ | |
7dfa765c | 16696 | |
a3828db0 MK |
16697 | #include <fcntl.h> |
16698 | #include <sys/mman.h> | |
7dfa765c | 16699 | |
a3828db0 MK |
16700 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
16701 | char *malloc (); | |
16702 | #endif | |
7dfa765c | 16703 | |
a3828db0 MK |
16704 | /* This mess was copied from the GNU getpagesize.h. */ |
16705 | #if !HAVE_GETPAGESIZE | |
16706 | /* Assume that all systems that can run configure have sys/param.h. */ | |
16707 | # if !HAVE_SYS_PARAM_H | |
16708 | # define HAVE_SYS_PARAM_H 1 | |
16709 | # endif | |
64bb1671 | 16710 | |
a3828db0 MK |
16711 | # ifdef _SC_PAGESIZE |
16712 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
16713 | # else /* no _SC_PAGESIZE */ | |
16714 | # if HAVE_SYS_PARAM_H | |
16715 | # include <sys/param.h> | |
16716 | # ifdef EXEC_PAGESIZE | |
16717 | # define getpagesize() EXEC_PAGESIZE | |
16718 | # else /* no EXEC_PAGESIZE */ | |
16719 | # ifdef NBPG | |
16720 | # define getpagesize() NBPG * CLSIZE | |
16721 | # ifndef CLSIZE | |
16722 | # define CLSIZE 1 | |
16723 | # endif /* no CLSIZE */ | |
16724 | # else /* no NBPG */ | |
16725 | # ifdef NBPC | |
16726 | # define getpagesize() NBPC | |
16727 | # else /* no NBPC */ | |
16728 | # ifdef PAGESIZE | |
16729 | # define getpagesize() PAGESIZE | |
16730 | # endif /* PAGESIZE */ | |
16731 | # endif /* no NBPC */ | |
16732 | # endif /* no NBPG */ | |
16733 | # endif /* no EXEC_PAGESIZE */ | |
16734 | # else /* no HAVE_SYS_PARAM_H */ | |
16735 | # define getpagesize() 8192 /* punt totally */ | |
16736 | # endif /* no HAVE_SYS_PARAM_H */ | |
16737 | # endif /* no _SC_PAGESIZE */ | |
64bb1671 | 16738 | |
a3828db0 | 16739 | #endif /* no HAVE_GETPAGESIZE */ |
64bb1671 | 16740 | |
a3828db0 MK |
16741 | int |
16742 | main () | |
16743 | { | |
16744 | char *data, *data2, *data3; | |
16745 | int i, pagesize; | |
16746 | int fd; | |
97bf5e38 | 16747 | |
a3828db0 MK |
16748 | pagesize = getpagesize (); |
16749 | ||
16750 | /* First, make a file with some known garbage in it. */ | |
16751 | data = (char *) malloc (pagesize); | |
16752 | if (!data) | |
b4e70030 | 16753 | exit (1); |
a3828db0 MK |
16754 | for (i = 0; i < pagesize; ++i) |
16755 | *(data + i) = rand (); | |
16756 | umask (0); | |
16757 | fd = creat ("conftest.mmap", 0600); | |
16758 | if (fd < 0) | |
b4e70030 | 16759 | exit (1); |
a3828db0 | 16760 | if (write (fd, data, pagesize) != pagesize) |
b4e70030 | 16761 | exit (1); |
a3828db0 MK |
16762 | close (fd); |
16763 | ||
16764 | /* Next, try to mmap the file at a fixed address which already has | |
16765 | something else allocated at it. If we can, also make sure that | |
16766 | we see the same garbage. */ | |
16767 | fd = open ("conftest.mmap", O_RDWR); | |
16768 | if (fd < 0) | |
b4e70030 | 16769 | exit (1); |
a3828db0 MK |
16770 | data2 = (char *) malloc (2 * pagesize); |
16771 | if (!data2) | |
b4e70030 JB |
16772 | exit (1); |
16773 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
a3828db0 MK |
16774 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
16775 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
b4e70030 | 16776 | exit (1); |
a3828db0 MK |
16777 | for (i = 0; i < pagesize; ++i) |
16778 | if (*(data + i) != *(data2 + i)) | |
b4e70030 | 16779 | exit (1); |
a3828db0 MK |
16780 | |
16781 | /* Finally, make sure that changes to the mapped area do not | |
16782 | percolate back to the file as seen by read(). (This is a bug on | |
16783 | some variants of i386 svr4.0.) */ | |
16784 | for (i = 0; i < pagesize; ++i) | |
16785 | *(data2 + i) = *(data2 + i) + 1; | |
16786 | data3 = (char *) malloc (pagesize); | |
16787 | if (!data3) | |
b4e70030 | 16788 | exit (1); |
a3828db0 | 16789 | if (read (fd, data3, pagesize) != pagesize) |
b4e70030 | 16790 | exit (1); |
a3828db0 MK |
16791 | for (i = 0; i < pagesize; ++i) |
16792 | if (*(data + i) != *(data3 + i)) | |
b4e70030 | 16793 | exit (1); |
a3828db0 | 16794 | close (fd); |
b4e70030 | 16795 | exit (0); |
97bf5e38 | 16796 | } |
bec39cab AC |
16797 | _ACEOF |
16798 | rm -f conftest$ac_exeext | |
16799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16800 | (eval $ac_link) 2>&5 | |
16801 | ac_status=$? | |
16802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16803 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16804 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16805 | (eval $ac_try) 2>&5 | |
16806 | ac_status=$? | |
16807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16808 | (exit $ac_status); }; }; then | |
a3828db0 | 16809 | ac_cv_func_mmap_fixed_mapped=yes |
5c44784c | 16810 | else |
bec39cab AC |
16811 | echo "$as_me: program exited with status $ac_status" >&5 |
16812 | echo "$as_me: failed program was:" >&5 | |
16813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16814 | ||
16815 | ( exit $ac_status ) | |
a3828db0 | 16816 | ac_cv_func_mmap_fixed_mapped=no |
0afdd437 | 16817 | fi |
b4e70030 | 16818 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
bec39cab | 16819 | fi |
a3828db0 | 16820 | fi |
b4e70030 JB |
16821 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
16822 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
a3828db0 | 16823 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
bec39cab AC |
16824 | |
16825 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 16826 | #define HAVE_MMAP 1 |
bec39cab | 16827 | _ACEOF |
0afdd437 MK |
16828 | |
16829 | fi | |
a3828db0 | 16830 | rm -f conftest.mmap |
0afdd437 | 16831 | |
b4e70030 JB |
16832 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
16833 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
a3828db0 | 16834 | if test "${ac_cv_type_pid_t+set}" = set; then |
bec39cab AC |
16835 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16836 | else | |
16837 | cat >conftest.$ac_ext <<_ACEOF | |
16838 | /* confdefs.h. */ | |
16839 | _ACEOF | |
16840 | cat confdefs.h >>conftest.$ac_ext | |
16841 | cat >>conftest.$ac_ext <<_ACEOF | |
16842 | /* end confdefs.h. */ | |
a3828db0 | 16843 | $ac_includes_default |
bec39cab AC |
16844 | int |
16845 | main () | |
16846 | { | |
b4e70030 | 16847 | if ((pid_t *) 0) |
a3828db0 | 16848 | return 0; |
b4e70030 | 16849 | if (sizeof (pid_t)) |
a3828db0 | 16850 | return 0; |
bec39cab AC |
16851 | ; |
16852 | return 0; | |
16853 | } | |
16854 | _ACEOF | |
a3828db0 MK |
16855 | rm -f conftest.$ac_objext |
16856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16857 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
16858 | ac_status=$? |
16859 | grep -v '^ *+' conftest.er1 >conftest.err | |
16860 | rm -f conftest.er1 | |
16861 | cat conftest.err >&5 | |
16862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16863 | (exit $ac_status); } && | |
b4e70030 JB |
16864 | { ac_try='test -z "$ac_c_werror_flag" |
16865 | || test ! -s conftest.err' | |
bec39cab AC |
16866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16867 | (eval $ac_try) 2>&5 | |
16868 | ac_status=$? | |
16869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16870 | (exit $ac_status); }; } && | |
a3828db0 | 16871 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
16872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16873 | (eval $ac_try) 2>&5 | |
16874 | ac_status=$? | |
16875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16876 | (exit $ac_status); }; }; then | |
a3828db0 | 16877 | ac_cv_type_pid_t=yes |
bec39cab AC |
16878 | else |
16879 | echo "$as_me: failed program was:" >&5 | |
16880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16881 | ||
b4e70030 | 16882 | ac_cv_type_pid_t=no |
bec39cab | 16883 | fi |
a3828db0 | 16884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
bec39cab | 16885 | fi |
b4e70030 JB |
16886 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
16887 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
a3828db0 MK |
16888 | if test $ac_cv_type_pid_t = yes; then |
16889 | : | |
16890 | else | |
16891 | ||
16892 | cat >>confdefs.h <<_ACEOF | |
16893 | #define pid_t int | |
bec39cab | 16894 | _ACEOF |
7e89e357 | 16895 | |
7e89e357 JT |
16896 | fi |
16897 | ||
bec39cab | 16898 | |
b4e70030 JB |
16899 | |
16900 | for ac_header in unistd.h vfork.h | |
7be570e7 | 16901 | do |
a3828db0 | 16902 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
b4e70030 JB |
16903 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
16904 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
16905 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
16906 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
bec39cab | 16907 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 | 16908 | fi |
b4e70030 JB |
16909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
16910 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
bec39cab | 16911 | else |
a3828db0 | 16912 | # Is the header compilable? |
b4e70030 JB |
16913 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
16914 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
a3828db0 | 16915 | cat >conftest.$ac_ext <<_ACEOF |
bec39cab AC |
16916 | /* confdefs.h. */ |
16917 | _ACEOF | |
16918 | cat confdefs.h >>conftest.$ac_ext | |
16919 | cat >>conftest.$ac_ext <<_ACEOF | |
16920 | /* end confdefs.h. */ | |
a3828db0 MK |
16921 | $ac_includes_default |
16922 | #include <$ac_header> | |
bec39cab | 16923 | _ACEOF |
a3828db0 MK |
16924 | rm -f conftest.$ac_objext |
16925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16926 | (eval $ac_compile) 2>conftest.er1 | |
bec39cab AC |
16927 | ac_status=$? |
16928 | grep -v '^ *+' conftest.er1 >conftest.err | |
16929 | rm -f conftest.er1 | |
16930 | cat conftest.err >&5 | |
16931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16932 | (exit $ac_status); } && | |
b4e70030 JB |
16933 | { ac_try='test -z "$ac_c_werror_flag" |
16934 | || test ! -s conftest.err' | |
bec39cab AC |
16935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16936 | (eval $ac_try) 2>&5 | |
16937 | ac_status=$? | |
16938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16939 | (exit $ac_status); }; } && | |
a3828db0 | 16940 | { ac_try='test -s conftest.$ac_objext' |
bec39cab AC |
16941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16942 | (eval $ac_try) 2>&5 | |
16943 | ac_status=$? | |
16944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16945 | (exit $ac_status); }; }; then | |
a3828db0 | 16946 | ac_header_compiler=yes |
bec39cab AC |
16947 | else |
16948 | echo "$as_me: failed program was:" >&5 | |
16949 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16950 | ||
b4e70030 | 16951 | ac_header_compiler=no |
bec39cab | 16952 | fi |
a3828db0 | 16953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b4e70030 JB |
16954 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
16955 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
a3828db0 MK |
16956 | |
16957 | # Is the header present? | |
b4e70030 JB |
16958 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
16959 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
a3828db0 MK |
16960 | cat >conftest.$ac_ext <<_ACEOF |
16961 | /* confdefs.h. */ | |
16962 | _ACEOF | |
16963 | cat confdefs.h >>conftest.$ac_ext | |
16964 | cat >>conftest.$ac_ext <<_ACEOF | |
16965 | /* end confdefs.h. */ | |
16966 | #include <$ac_header> | |
16967 | _ACEOF | |
16968 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16969 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16970 | ac_status=$? | |
16971 | grep -v '^ *+' conftest.er1 >conftest.err | |
16972 | rm -f conftest.er1 | |
16973 | cat conftest.err >&5 | |
16974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16975 | (exit $ac_status); } >/dev/null; then | |
16976 | if test -s conftest.err; then | |
16977 | ac_cpp_err=$ac_c_preproc_warn_flag | |
16978 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
16979 | else | |
16980 | ac_cpp_err= | |
16981 | fi | |
16982 | else | |
16983 | ac_cpp_err=yes | |
16984 | fi | |
16985 | if test -z "$ac_cpp_err"; then | |
16986 | ac_header_preproc=yes | |
16987 | else | |
16988 | echo "$as_me: failed program was:" >&5 | |
16989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16990 | ||
16991 | ac_header_preproc=no | |
16992 | fi | |
16993 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
16994 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
16995 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
a3828db0 MK |
16996 | |
16997 | # So? What about this header? | |
16998 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
16999 | yes:no: ) | |
17000 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17001 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17002 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17003 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17004 | ac_header_preproc=yes | |
17005 | ;; | |
17006 | no:yes:* ) | |
17007 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17008 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17009 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17010 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17011 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17012 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17013 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17014 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17015 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17016 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17017 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17018 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
17019 | ( |
17020 | cat <<\_ASBOX | |
17021 | ## ------------------------------------------ ## | |
17022 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
17023 | ## ------------------------------------------ ## | |
17024 | _ASBOX | |
17025 | ) | | |
17026 | sed "s/^/$as_me: WARNING: /" >&2 | |
a3828db0 MK |
17027 | ;; |
17028 | esac | |
b4e70030 JB |
17029 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
17030 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17031 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
a3828db0 MK |
17032 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17033 | else | |
17034 | eval "$as_ac_Header=\$ac_header_preproc" | |
17035 | fi | |
b4e70030 JB |
17036 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
17037 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a3828db0 | 17038 | |
bec39cab | 17039 | fi |
a3828db0 | 17040 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
bec39cab | 17041 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 17042 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
bec39cab | 17043 | _ACEOF |
14abd0fb | 17044 | |
14abd0fb | 17045 | fi |
a3828db0 | 17046 | |
14abd0fb MK |
17047 | done |
17048 | ||
bec39cab | 17049 | |
a3828db0 MK |
17050 | |
17051 | for ac_func in fork vfork | |
14abd0fb | 17052 | do |
bec39cab | 17053 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17054 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17055 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17056 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17057 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17058 | else | |
17059 | cat >conftest.$ac_ext <<_ACEOF | |
17060 | /* confdefs.h. */ | |
17061 | _ACEOF | |
17062 | cat confdefs.h >>conftest.$ac_ext | |
17063 | cat >>conftest.$ac_ext <<_ACEOF | |
17064 | /* end confdefs.h. */ | |
17065 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17066 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17067 | #define $ac_func innocuous_$ac_func | |
17068 | ||
14abd0fb | 17069 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17070 | which can conflict with char $ac_func (); below. |
17071 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17072 | <limits.h> exists even on freestanding compilers. */ | |
17073 | ||
17074 | #ifdef __STDC__ | |
17075 | # include <limits.h> | |
17076 | #else | |
17077 | # include <assert.h> | |
17078 | #endif | |
14abd0fb | 17079 | |
bec39cab | 17080 | #undef $ac_func |
14abd0fb | 17081 | |
b4e70030 | 17082 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17083 | #ifdef __cplusplus |
17084 | extern "C" | |
b4e70030 | 17085 | { |
bec39cab | 17086 | #endif |
b4e70030 JB |
17087 | /* We use char because int might match the return type of a gcc2 |
17088 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17089 | char $ac_func (); |
14abd0fb MK |
17090 | /* The GNU C library defines this for functions which it implements |
17091 | to always fail with ENOSYS. Some functions are actually named | |
17092 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17093 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
14abd0fb | 17094 | choke me |
b4e70030 JB |
17095 | #else |
17096 | char (*f) () = $ac_func; | |
17097 | #endif | |
17098 | #ifdef __cplusplus | |
17099 | } | |
14abd0fb MK |
17100 | #endif |
17101 | ||
bec39cab AC |
17102 | int |
17103 | main () | |
17104 | { | |
b4e70030 | 17105 | return f != $ac_func; |
bec39cab AC |
17106 | ; |
17107 | return 0; | |
17108 | } | |
17109 | _ACEOF | |
17110 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17111 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17112 | (eval $ac_link) 2>conftest.er1 | |
17113 | ac_status=$? | |
17114 | grep -v '^ *+' conftest.er1 >conftest.err | |
17115 | rm -f conftest.er1 | |
17116 | cat conftest.err >&5 | |
17117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17118 | (exit $ac_status); } && | |
b4e70030 JB |
17119 | { ac_try='test -z "$ac_c_werror_flag" |
17120 | || test ! -s conftest.err' | |
bec39cab AC |
17121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17122 | (eval $ac_try) 2>&5 | |
17123 | ac_status=$? | |
17124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17125 | (exit $ac_status); }; } && | |
17126 | { ac_try='test -s conftest$ac_exeext' | |
17127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17128 | (eval $ac_try) 2>&5 | |
17129 | ac_status=$? | |
17130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17131 | (exit $ac_status); }; }; then | |
17132 | eval "$as_ac_var=yes" | |
17133 | else | |
17134 | echo "$as_me: failed program was:" >&5 | |
17135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17136 | ||
b4e70030 | 17137 | eval "$as_ac_var=no" |
bec39cab AC |
17138 | fi |
17139 | rm -f conftest.err conftest.$ac_objext \ | |
17140 | conftest$ac_exeext conftest.$ac_ext | |
17141 | fi | |
b4e70030 JB |
17142 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17143 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17144 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17145 | cat >>confdefs.h <<_ACEOF | |
17146 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17147 | _ACEOF | |
7be570e7 | 17148 | |
7be570e7 JM |
17149 | fi |
17150 | done | |
17151 | ||
a3828db0 | 17152 | if test "x$ac_cv_func_fork" = xyes; then |
b4e70030 JB |
17153 | echo "$as_me:$LINENO: checking for working fork" >&5 |
17154 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 | |
a3828db0 MK |
17155 | if test "${ac_cv_func_fork_works+set}" = set; then |
17156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17157 | else | |
17158 | if test "$cross_compiling" = yes; then | |
17159 | ac_cv_func_fork_works=cross | |
17160 | else | |
17161 | cat >conftest.$ac_ext <<_ACEOF | |
b4e70030 JB |
17162 | /* By Ruediger Kuhlmann. */ |
17163 | #include <sys/types.h> | |
17164 | #if HAVE_UNISTD_H | |
17165 | # include <unistd.h> | |
17166 | #endif | |
17167 | /* Some systems only have a dummy stub for fork() */ | |
17168 | int main () | |
17169 | { | |
17170 | if (fork() < 0) | |
17171 | exit (1); | |
17172 | exit (0); | |
17173 | } | |
a3828db0 MK |
17174 | _ACEOF |
17175 | rm -f conftest$ac_exeext | |
17176 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17177 | (eval $ac_link) 2>&5 | |
17178 | ac_status=$? | |
17179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17180 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17182 | (eval $ac_try) 2>&5 | |
17183 | ac_status=$? | |
17184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17185 | (exit $ac_status); }; }; then | |
17186 | ac_cv_func_fork_works=yes | |
17187 | else | |
17188 | echo "$as_me: program exited with status $ac_status" >&5 | |
17189 | echo "$as_me: failed program was:" >&5 | |
17190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
bec39cab | 17191 | |
a3828db0 MK |
17192 | ( exit $ac_status ) |
17193 | ac_cv_func_fork_works=no | |
17194 | fi | |
b4e70030 | 17195 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
17196 | fi |
17197 | fi | |
b4e70030 JB |
17198 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
17199 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 | |
a3828db0 MK |
17200 | |
17201 | else | |
17202 | ac_cv_func_fork_works=$ac_cv_func_fork | |
17203 | fi | |
17204 | if test "x$ac_cv_func_fork_works" = xcross; then | |
17205 | case $host in | |
17206 | *-*-amigaos* | *-*-msdosdjgpp*) | |
17207 | # Override, as these systems have only a dummy fork() stub | |
17208 | ac_cv_func_fork_works=no | |
17209 | ;; | |
17210 | *) | |
17211 | ac_cv_func_fork_works=yes | |
17212 | ;; | |
17213 | esac | |
17214 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
17215 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
17216 | fi | |
17217 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
17218 | if test "x$ac_cv_func_vfork" = xyes; then | |
b4e70030 JB |
17219 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
17220 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 | |
a3828db0 | 17221 | if test "${ac_cv_func_vfork_works+set}" = set; then |
bec39cab | 17222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
17223 | else |
17224 | if test "$cross_compiling" = yes; then | |
17225 | ac_cv_func_vfork_works=cross | |
bec39cab AC |
17226 | else |
17227 | cat >conftest.$ac_ext <<_ACEOF | |
17228 | /* confdefs.h. */ | |
17229 | _ACEOF | |
17230 | cat confdefs.h >>conftest.$ac_ext | |
17231 | cat >>conftest.$ac_ext <<_ACEOF | |
17232 | /* end confdefs.h. */ | |
a3828db0 | 17233 | /* Thanks to Paul Eggert for this test. */ |
b4e70030 JB |
17234 | #include <stdio.h> |
17235 | #include <stdlib.h> | |
17236 | #include <sys/types.h> | |
17237 | #include <sys/stat.h> | |
a3828db0 | 17238 | #include <sys/wait.h> |
b4e70030 JB |
17239 | #if HAVE_UNISTD_H |
17240 | # include <unistd.h> | |
17241 | #endif | |
a3828db0 MK |
17242 | #if HAVE_VFORK_H |
17243 | # include <vfork.h> | |
bec39cab | 17244 | #endif |
a3828db0 MK |
17245 | /* On some sparc systems, changes by the child to local and incoming |
17246 | argument registers are propagated back to the parent. The compiler | |
17247 | is told about this with #include <vfork.h>, but some compilers | |
17248 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
17249 | static variable whose address is put into a register that is | |
17250 | clobbered by the vfork. */ | |
17251 | static void | |
bec39cab | 17252 | #ifdef __cplusplus |
a3828db0 MK |
17253 | sparc_address_test (int arg) |
17254 | # else | |
17255 | sparc_address_test (arg) int arg; | |
c906108c | 17256 | #endif |
a3828db0 MK |
17257 | { |
17258 | static pid_t child; | |
17259 | if (!child) { | |
17260 | child = vfork (); | |
17261 | if (child < 0) { | |
17262 | perror ("vfork"); | |
17263 | _exit(2); | |
17264 | } | |
17265 | if (!child) { | |
17266 | arg = getpid(); | |
17267 | write(-1, "", 0); | |
17268 | _exit (arg); | |
17269 | } | |
17270 | } | |
17271 | } | |
97bf5e38 | 17272 | |
bec39cab AC |
17273 | int |
17274 | main () | |
17275 | { | |
a3828db0 MK |
17276 | pid_t parent = getpid (); |
17277 | pid_t child; | |
17278 | ||
17279 | sparc_address_test (0); | |
17280 | ||
17281 | child = vfork (); | |
17282 | ||
17283 | if (child == 0) { | |
17284 | /* Here is another test for sparc vfork register problems. This | |
17285 | test uses lots of local variables, at least as many local | |
17286 | variables as main has allocated so far including compiler | |
17287 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
17288 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
17289 | reuse the register of parent for one of the local variables, | |
17290 | since it will think that parent can't possibly be used any more | |
17291 | in this routine. Assigning to the local variable will thus | |
17292 | munge parent in the parent process. */ | |
17293 | pid_t | |
17294 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
17295 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
17296 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
17297 | use the same hardware register for all 8 local variables. */ | |
17298 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
17299 | || p != p5 || p != p6 || p != p7) | |
17300 | _exit(1); | |
17301 | ||
17302 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
17303 | from child file descriptors. If the child closes a descriptor | |
17304 | before it execs or exits, this munges the parent's descriptor | |
17305 | as well. Test for this by closing stdout in the child. */ | |
17306 | _exit(close(fileno(stdout)) != 0); | |
17307 | } else { | |
17308 | int status; | |
17309 | struct stat st; | |
17310 | ||
17311 | while (wait(&status) != child) | |
17312 | ; | |
b4e70030 | 17313 | exit( |
a3828db0 MK |
17314 | /* Was there some problem with vforking? */ |
17315 | child < 0 | |
17316 | ||
17317 | /* Did the child fail? (This shouldn't happen.) */ | |
17318 | || status | |
17319 | ||
17320 | /* Did the vfork/compiler bug occur? */ | |
17321 | || parent != getpid() | |
17322 | ||
17323 | /* Did the file descriptor bug occur? */ | |
17324 | || fstat(fileno(stdout), &st) != 0 | |
17325 | ); | |
17326 | } | |
bec39cab AC |
17327 | } |
17328 | _ACEOF | |
a3828db0 | 17329 | rm -f conftest$ac_exeext |
bec39cab | 17330 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 17331 | (eval $ac_link) 2>&5 |
bec39cab AC |
17332 | ac_status=$? |
17333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 17334 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
17335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17336 | (eval $ac_try) 2>&5 | |
17337 | ac_status=$? | |
17338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17339 | (exit $ac_status); }; }; then | |
a3828db0 MK |
17340 | ac_cv_func_vfork_works=yes |
17341 | else | |
17342 | echo "$as_me: program exited with status $ac_status" >&5 | |
17343 | echo "$as_me: failed program was:" >&5 | |
17344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17345 | ||
17346 | ( exit $ac_status ) | |
17347 | ac_cv_func_vfork_works=no | |
17348 | fi | |
b4e70030 | 17349 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
17350 | fi |
17351 | fi | |
b4e70030 JB |
17352 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
17353 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 | |
a3828db0 MK |
17354 | |
17355 | fi; | |
17356 | if test "x$ac_cv_func_fork_works" = xcross; then | |
17357 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
17358 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
17359 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
17360 | fi | |
17361 | ||
17362 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
17363 | ||
17364 | cat >>confdefs.h <<\_ACEOF | |
17365 | #define HAVE_WORKING_VFORK 1 | |
17366 | _ACEOF | |
17367 | ||
bec39cab | 17368 | else |
bec39cab | 17369 | |
a3828db0 MK |
17370 | cat >>confdefs.h <<\_ACEOF |
17371 | #define vfork fork | |
17372 | _ACEOF | |
17373 | ||
bec39cab | 17374 | fi |
a3828db0 MK |
17375 | if test "x$ac_cv_func_fork_works" = xyes; then |
17376 | ||
17377 | cat >>confdefs.h <<\_ACEOF | |
17378 | #define HAVE_WORKING_FORK 1 | |
bec39cab | 17379 | _ACEOF |
c906108c | 17380 | |
c906108c SS |
17381 | fi |
17382 | ||
bec39cab AC |
17383 | |
17384 | ||
a3828db0 | 17385 | for ac_func in canonicalize_file_name realpath |
97bf5e38 | 17386 | do |
bec39cab | 17387 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 | 17388 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
7eb368b3 NR |
17389 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
17390 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
17391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17392 | else | |
17393 | cat >conftest.$ac_ext <<_ACEOF | |
17394 | /* confdefs.h. */ | |
17395 | _ACEOF | |
17396 | cat confdefs.h >>conftest.$ac_ext | |
17397 | cat >>conftest.$ac_ext <<_ACEOF | |
17398 | /* end confdefs.h. */ | |
17399 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17400 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17401 | #define $ac_func innocuous_$ac_func | |
17402 | ||
17403 | /* System header to define __stub macros and hopefully few prototypes, | |
17404 | which can conflict with char $ac_func (); below. | |
17405 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17406 | <limits.h> exists even on freestanding compilers. */ | |
17407 | ||
17408 | #ifdef __STDC__ | |
17409 | # include <limits.h> | |
17410 | #else | |
17411 | # include <assert.h> | |
17412 | #endif | |
17413 | ||
17414 | #undef $ac_func | |
17415 | ||
17416 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17417 | #ifdef __cplusplus | |
17418 | extern "C" | |
17419 | { | |
17420 | #endif | |
17421 | /* We use char because int might match the return type of a gcc2 | |
17422 | builtin and then its argument prototype would still apply. */ | |
17423 | char $ac_func (); | |
17424 | /* The GNU C library defines this for functions which it implements | |
17425 | to always fail with ENOSYS. Some functions are actually named | |
17426 | something starting with __ and the normal name is an alias. */ | |
17427 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17428 | choke me | |
17429 | #else | |
17430 | char (*f) () = $ac_func; | |
17431 | #endif | |
17432 | #ifdef __cplusplus | |
17433 | } | |
17434 | #endif | |
17435 | ||
17436 | int | |
17437 | main () | |
17438 | { | |
17439 | return f != $ac_func; | |
17440 | ; | |
17441 | return 0; | |
17442 | } | |
17443 | _ACEOF | |
17444 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17446 | (eval $ac_link) 2>conftest.er1 | |
17447 | ac_status=$? | |
17448 | grep -v '^ *+' conftest.er1 >conftest.err | |
17449 | rm -f conftest.er1 | |
17450 | cat conftest.err >&5 | |
17451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17452 | (exit $ac_status); } && | |
17453 | { ac_try='test -z "$ac_c_werror_flag" | |
17454 | || test ! -s conftest.err' | |
17455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17456 | (eval $ac_try) 2>&5 | |
17457 | ac_status=$? | |
17458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17459 | (exit $ac_status); }; } && | |
17460 | { ac_try='test -s conftest$ac_exeext' | |
17461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17462 | (eval $ac_try) 2>&5 | |
17463 | ac_status=$? | |
17464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17465 | (exit $ac_status); }; }; then | |
17466 | eval "$as_ac_var=yes" | |
17467 | else | |
17468 | echo "$as_me: failed program was:" >&5 | |
17469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17470 | ||
17471 | eval "$as_ac_var=no" | |
17472 | fi | |
17473 | rm -f conftest.err conftest.$ac_objext \ | |
17474 | conftest$ac_exeext conftest.$ac_ext | |
17475 | fi | |
17476 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
17477 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
17478 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
17479 | cat >>confdefs.h <<_ACEOF | |
17480 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17481 | _ACEOF | |
17482 | ||
17483 | fi | |
17484 | done | |
17485 | ||
17486 | ||
17487 | for ac_func in getrusage | |
17488 | do | |
17489 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
17490 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
b4e70030 JB |
17491 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
17492 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17493 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17494 | else | |
17495 | cat >conftest.$ac_ext <<_ACEOF | |
17496 | /* confdefs.h. */ | |
17497 | _ACEOF | |
17498 | cat confdefs.h >>conftest.$ac_ext | |
17499 | cat >>conftest.$ac_ext <<_ACEOF | |
17500 | /* end confdefs.h. */ | |
17501 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17502 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17503 | #define $ac_func innocuous_$ac_func | |
17504 | ||
d3ea6809 MM |
17505 | /* System header to define __stub macros and hopefully few prototypes, |
17506 | which can conflict with char $ac_func (); below. | |
17507 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17508 | <limits.h> exists even on freestanding compilers. */ | |
17509 | ||
17510 | #ifdef __STDC__ | |
17511 | # include <limits.h> | |
17512 | #else | |
17513 | # include <assert.h> | |
17514 | #endif | |
17515 | ||
17516 | #undef $ac_func | |
17517 | ||
b4e70030 | 17518 | /* Override any gcc2 internal prototype to avoid an error. */ |
d3ea6809 MM |
17519 | #ifdef __cplusplus |
17520 | extern "C" | |
b4e70030 | 17521 | { |
d3ea6809 | 17522 | #endif |
b4e70030 JB |
17523 | /* We use char because int might match the return type of a gcc2 |
17524 | builtin and then its argument prototype would still apply. */ | |
d3ea6809 MM |
17525 | char $ac_func (); |
17526 | /* The GNU C library defines this for functions which it implements | |
17527 | to always fail with ENOSYS. Some functions are actually named | |
17528 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17529 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
d3ea6809 | 17530 | choke me |
b4e70030 JB |
17531 | #else |
17532 | char (*f) () = $ac_func; | |
17533 | #endif | |
17534 | #ifdef __cplusplus | |
17535 | } | |
d3ea6809 MM |
17536 | #endif |
17537 | ||
17538 | int | |
17539 | main () | |
17540 | { | |
b4e70030 | 17541 | return f != $ac_func; |
d3ea6809 MM |
17542 | ; |
17543 | return 0; | |
17544 | } | |
17545 | _ACEOF | |
17546 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17547 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17548 | (eval $ac_link) 2>conftest.er1 | |
17549 | ac_status=$? | |
17550 | grep -v '^ *+' conftest.er1 >conftest.err | |
17551 | rm -f conftest.er1 | |
17552 | cat conftest.err >&5 | |
17553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17554 | (exit $ac_status); } && | |
b4e70030 JB |
17555 | { ac_try='test -z "$ac_c_werror_flag" |
17556 | || test ! -s conftest.err' | |
d3ea6809 MM |
17557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17558 | (eval $ac_try) 2>&5 | |
17559 | ac_status=$? | |
17560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17561 | (exit $ac_status); }; } && | |
17562 | { ac_try='test -s conftest$ac_exeext' | |
17563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17564 | (eval $ac_try) 2>&5 | |
17565 | ac_status=$? | |
17566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17567 | (exit $ac_status); }; }; then | |
17568 | eval "$as_ac_var=yes" | |
17569 | else | |
17570 | echo "$as_me: failed program was:" >&5 | |
17571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17572 | ||
b4e70030 | 17573 | eval "$as_ac_var=no" |
d3ea6809 MM |
17574 | fi |
17575 | rm -f conftest.err conftest.$ac_objext \ | |
17576 | conftest$ac_exeext conftest.$ac_ext | |
17577 | fi | |
b4e70030 JB |
17578 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17579 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
d3ea6809 MM |
17580 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17581 | cat >>confdefs.h <<_ACEOF | |
17582 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17583 | _ACEOF | |
17584 | ||
17585 | fi | |
17586 | done | |
17587 | ||
17588 | ||
17589 | ||
17590 | for ac_func in getuid getgid | |
17591 | do | |
17592 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
17593 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17594 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17595 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
d3ea6809 MM |
17596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17597 | else | |
17598 | cat >conftest.$ac_ext <<_ACEOF | |
17599 | /* confdefs.h. */ | |
17600 | _ACEOF | |
17601 | cat confdefs.h >>conftest.$ac_ext | |
17602 | cat >>conftest.$ac_ext <<_ACEOF | |
17603 | /* end confdefs.h. */ | |
17604 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17605 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17606 | #define $ac_func innocuous_$ac_func | |
17607 | ||
97bf5e38 | 17608 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17609 | which can conflict with char $ac_func (); below. |
17610 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17611 | <limits.h> exists even on freestanding compilers. */ | |
c906108c | 17612 | |
bec39cab AC |
17613 | #ifdef __STDC__ |
17614 | # include <limits.h> | |
17615 | #else | |
17616 | # include <assert.h> | |
17617 | #endif | |
97bf5e38 | 17618 | |
bec39cab AC |
17619 | #undef $ac_func |
17620 | ||
b4e70030 | 17621 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17622 | #ifdef __cplusplus |
17623 | extern "C" | |
b4e70030 | 17624 | { |
bec39cab | 17625 | #endif |
b4e70030 JB |
17626 | /* We use char because int might match the return type of a gcc2 |
17627 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17628 | char $ac_func (); |
97bf5e38 MK |
17629 | /* The GNU C library defines this for functions which it implements |
17630 | to always fail with ENOSYS. Some functions are actually named | |
17631 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17632 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 17633 | choke me |
b4e70030 JB |
17634 | #else |
17635 | char (*f) () = $ac_func; | |
17636 | #endif | |
17637 | #ifdef __cplusplus | |
17638 | } | |
c906108c | 17639 | #endif |
97bf5e38 | 17640 | |
bec39cab AC |
17641 | int |
17642 | main () | |
17643 | { | |
b4e70030 | 17644 | return f != $ac_func; |
bec39cab AC |
17645 | ; |
17646 | return 0; | |
17647 | } | |
17648 | _ACEOF | |
17649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17651 | (eval $ac_link) 2>conftest.er1 | |
17652 | ac_status=$? | |
17653 | grep -v '^ *+' conftest.er1 >conftest.err | |
17654 | rm -f conftest.er1 | |
17655 | cat conftest.err >&5 | |
17656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17657 | (exit $ac_status); } && | |
b4e70030 JB |
17658 | { ac_try='test -z "$ac_c_werror_flag" |
17659 | || test ! -s conftest.err' | |
bec39cab AC |
17660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17661 | (eval $ac_try) 2>&5 | |
17662 | ac_status=$? | |
17663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17664 | (exit $ac_status); }; } && | |
17665 | { ac_try='test -s conftest$ac_exeext' | |
17666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17667 | (eval $ac_try) 2>&5 | |
17668 | ac_status=$? | |
17669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17670 | (exit $ac_status); }; }; then | |
17671 | eval "$as_ac_var=yes" | |
17672 | else | |
17673 | echo "$as_me: failed program was:" >&5 | |
17674 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17675 | ||
b4e70030 | 17676 | eval "$as_ac_var=no" |
bec39cab AC |
17677 | fi |
17678 | rm -f conftest.err conftest.$ac_objext \ | |
17679 | conftest$ac_exeext conftest.$ac_ext | |
17680 | fi | |
b4e70030 JB |
17681 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17682 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17683 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17684 | cat >>confdefs.h <<_ACEOF | |
17685 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17686 | _ACEOF | |
c906108c | 17687 | |
c906108c | 17688 | fi |
97bf5e38 | 17689 | done |
c906108c | 17690 | |
bec39cab | 17691 | |
a3828db0 | 17692 | for ac_func in poll |
97bf5e38 | 17693 | do |
bec39cab | 17694 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17695 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17696 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17697 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17699 | else | |
17700 | cat >conftest.$ac_ext <<_ACEOF | |
17701 | /* confdefs.h. */ | |
17702 | _ACEOF | |
17703 | cat confdefs.h >>conftest.$ac_ext | |
17704 | cat >>conftest.$ac_ext <<_ACEOF | |
17705 | /* end confdefs.h. */ | |
17706 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17707 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17708 | #define $ac_func innocuous_$ac_func | |
17709 | ||
97bf5e38 | 17710 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17711 | which can conflict with char $ac_func (); below. |
17712 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17713 | <limits.h> exists even on freestanding compilers. */ | |
17714 | ||
17715 | #ifdef __STDC__ | |
17716 | # include <limits.h> | |
17717 | #else | |
17718 | # include <assert.h> | |
17719 | #endif | |
c906108c | 17720 | |
bec39cab | 17721 | #undef $ac_func |
97bf5e38 | 17722 | |
b4e70030 | 17723 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17724 | #ifdef __cplusplus |
17725 | extern "C" | |
b4e70030 | 17726 | { |
bec39cab | 17727 | #endif |
b4e70030 JB |
17728 | /* We use char because int might match the return type of a gcc2 |
17729 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17730 | char $ac_func (); |
97bf5e38 MK |
17731 | /* The GNU C library defines this for functions which it implements |
17732 | to always fail with ENOSYS. Some functions are actually named | |
17733 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17734 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 17735 | choke me |
b4e70030 JB |
17736 | #else |
17737 | char (*f) () = $ac_func; | |
17738 | #endif | |
17739 | #ifdef __cplusplus | |
17740 | } | |
c906108c | 17741 | #endif |
97bf5e38 | 17742 | |
bec39cab AC |
17743 | int |
17744 | main () | |
17745 | { | |
b4e70030 | 17746 | return f != $ac_func; |
bec39cab AC |
17747 | ; |
17748 | return 0; | |
17749 | } | |
17750 | _ACEOF | |
17751 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17753 | (eval $ac_link) 2>conftest.er1 | |
17754 | ac_status=$? | |
17755 | grep -v '^ *+' conftest.er1 >conftest.err | |
17756 | rm -f conftest.er1 | |
17757 | cat conftest.err >&5 | |
17758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17759 | (exit $ac_status); } && | |
b4e70030 JB |
17760 | { ac_try='test -z "$ac_c_werror_flag" |
17761 | || test ! -s conftest.err' | |
bec39cab AC |
17762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17763 | (eval $ac_try) 2>&5 | |
17764 | ac_status=$? | |
17765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17766 | (exit $ac_status); }; } && | |
17767 | { ac_try='test -s conftest$ac_exeext' | |
17768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17769 | (eval $ac_try) 2>&5 | |
17770 | ac_status=$? | |
17771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17772 | (exit $ac_status); }; }; then | |
17773 | eval "$as_ac_var=yes" | |
17774 | else | |
17775 | echo "$as_me: failed program was:" >&5 | |
17776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17777 | ||
b4e70030 | 17778 | eval "$as_ac_var=no" |
bec39cab AC |
17779 | fi |
17780 | rm -f conftest.err conftest.$ac_objext \ | |
17781 | conftest$ac_exeext conftest.$ac_ext | |
17782 | fi | |
b4e70030 JB |
17783 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17784 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17785 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17786 | cat >>confdefs.h <<_ACEOF | |
17787 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17788 | _ACEOF | |
c906108c | 17789 | |
c906108c | 17790 | fi |
97bf5e38 | 17791 | done |
c906108c | 17792 | |
bec39cab | 17793 | |
a3828db0 | 17794 | for ac_func in pread64 |
97bf5e38 | 17795 | do |
bec39cab | 17796 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17797 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17798 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17799 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17800 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17801 | else | |
17802 | cat >conftest.$ac_ext <<_ACEOF | |
17803 | /* confdefs.h. */ | |
17804 | _ACEOF | |
17805 | cat confdefs.h >>conftest.$ac_ext | |
17806 | cat >>conftest.$ac_ext <<_ACEOF | |
17807 | /* end confdefs.h. */ | |
17808 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17809 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17810 | #define $ac_func innocuous_$ac_func | |
17811 | ||
97bf5e38 | 17812 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17813 | which can conflict with char $ac_func (); below. |
17814 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17815 | <limits.h> exists even on freestanding compilers. */ | |
17816 | ||
17817 | #ifdef __STDC__ | |
17818 | # include <limits.h> | |
17819 | #else | |
17820 | # include <assert.h> | |
17821 | #endif | |
c906108c | 17822 | |
bec39cab | 17823 | #undef $ac_func |
97bf5e38 | 17824 | |
b4e70030 | 17825 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17826 | #ifdef __cplusplus |
17827 | extern "C" | |
b4e70030 | 17828 | { |
bec39cab | 17829 | #endif |
b4e70030 JB |
17830 | /* We use char because int might match the return type of a gcc2 |
17831 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17832 | char $ac_func (); |
97bf5e38 MK |
17833 | /* The GNU C library defines this for functions which it implements |
17834 | to always fail with ENOSYS. Some functions are actually named | |
17835 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17836 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
97bf5e38 | 17837 | choke me |
b4e70030 JB |
17838 | #else |
17839 | char (*f) () = $ac_func; | |
17840 | #endif | |
17841 | #ifdef __cplusplus | |
17842 | } | |
c906108c | 17843 | #endif |
97bf5e38 | 17844 | |
bec39cab AC |
17845 | int |
17846 | main () | |
17847 | { | |
b4e70030 | 17848 | return f != $ac_func; |
bec39cab AC |
17849 | ; |
17850 | return 0; | |
17851 | } | |
17852 | _ACEOF | |
17853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17855 | (eval $ac_link) 2>conftest.er1 | |
17856 | ac_status=$? | |
17857 | grep -v '^ *+' conftest.er1 >conftest.err | |
17858 | rm -f conftest.er1 | |
17859 | cat conftest.err >&5 | |
17860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17861 | (exit $ac_status); } && | |
b4e70030 JB |
17862 | { ac_try='test -z "$ac_c_werror_flag" |
17863 | || test ! -s conftest.err' | |
bec39cab AC |
17864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17865 | (eval $ac_try) 2>&5 | |
17866 | ac_status=$? | |
17867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17868 | (exit $ac_status); }; } && | |
17869 | { ac_try='test -s conftest$ac_exeext' | |
17870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17871 | (eval $ac_try) 2>&5 | |
17872 | ac_status=$? | |
17873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17874 | (exit $ac_status); }; }; then | |
17875 | eval "$as_ac_var=yes" | |
17876 | else | |
17877 | echo "$as_me: failed program was:" >&5 | |
17878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17879 | ||
b4e70030 | 17880 | eval "$as_ac_var=no" |
bec39cab AC |
17881 | fi |
17882 | rm -f conftest.err conftest.$ac_objext \ | |
17883 | conftest$ac_exeext conftest.$ac_ext | |
17884 | fi | |
b4e70030 JB |
17885 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17886 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17887 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17888 | cat >>confdefs.h <<_ACEOF | |
17889 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17890 | _ACEOF | |
c906108c | 17891 | |
c906108c | 17892 | fi |
97bf5e38 | 17893 | done |
c906108c | 17894 | |
bec39cab | 17895 | |
a3828db0 | 17896 | for ac_func in sbrk |
b757528f | 17897 | do |
bec39cab | 17898 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
17899 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
17900 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17901 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
17902 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17903 | else | |
17904 | cat >conftest.$ac_ext <<_ACEOF | |
17905 | /* confdefs.h. */ | |
17906 | _ACEOF | |
17907 | cat confdefs.h >>conftest.$ac_ext | |
17908 | cat >>conftest.$ac_ext <<_ACEOF | |
17909 | /* end confdefs.h. */ | |
17910 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17911 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17912 | #define $ac_func innocuous_$ac_func | |
17913 | ||
b757528f | 17914 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
17915 | which can conflict with char $ac_func (); below. |
17916 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17917 | <limits.h> exists even on freestanding compilers. */ | |
17918 | ||
17919 | #ifdef __STDC__ | |
17920 | # include <limits.h> | |
17921 | #else | |
17922 | # include <assert.h> | |
17923 | #endif | |
b757528f | 17924 | |
bec39cab | 17925 | #undef $ac_func |
b757528f | 17926 | |
b4e70030 | 17927 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
17928 | #ifdef __cplusplus |
17929 | extern "C" | |
b4e70030 | 17930 | { |
bec39cab | 17931 | #endif |
b4e70030 JB |
17932 | /* We use char because int might match the return type of a gcc2 |
17933 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 17934 | char $ac_func (); |
b757528f JJ |
17935 | /* The GNU C library defines this for functions which it implements |
17936 | to always fail with ENOSYS. Some functions are actually named | |
17937 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 17938 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
b757528f | 17939 | choke me |
b4e70030 JB |
17940 | #else |
17941 | char (*f) () = $ac_func; | |
17942 | #endif | |
17943 | #ifdef __cplusplus | |
17944 | } | |
b757528f JJ |
17945 | #endif |
17946 | ||
bec39cab AC |
17947 | int |
17948 | main () | |
17949 | { | |
b4e70030 | 17950 | return f != $ac_func; |
bec39cab AC |
17951 | ; |
17952 | return 0; | |
17953 | } | |
17954 | _ACEOF | |
17955 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17957 | (eval $ac_link) 2>conftest.er1 | |
17958 | ac_status=$? | |
17959 | grep -v '^ *+' conftest.er1 >conftest.err | |
17960 | rm -f conftest.er1 | |
17961 | cat conftest.err >&5 | |
17962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17963 | (exit $ac_status); } && | |
b4e70030 JB |
17964 | { ac_try='test -z "$ac_c_werror_flag" |
17965 | || test ! -s conftest.err' | |
bec39cab AC |
17966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17967 | (eval $ac_try) 2>&5 | |
17968 | ac_status=$? | |
17969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17970 | (exit $ac_status); }; } && | |
17971 | { ac_try='test -s conftest$ac_exeext' | |
17972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17973 | (eval $ac_try) 2>&5 | |
17974 | ac_status=$? | |
17975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17976 | (exit $ac_status); }; }; then | |
17977 | eval "$as_ac_var=yes" | |
17978 | else | |
17979 | echo "$as_me: failed program was:" >&5 | |
17980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17981 | ||
b4e70030 | 17982 | eval "$as_ac_var=no" |
bec39cab AC |
17983 | fi |
17984 | rm -f conftest.err conftest.$ac_objext \ | |
17985 | conftest$ac_exeext conftest.$ac_ext | |
17986 | fi | |
b4e70030 JB |
17987 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
17988 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
17989 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
17990 | cat >>confdefs.h <<_ACEOF | |
17991 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17992 | _ACEOF | |
b757528f | 17993 | |
b757528f JJ |
17994 | fi |
17995 | done | |
17996 | ||
bec39cab | 17997 | |
a3828db0 MK |
17998 | |
17999 | for ac_func in setpgid setpgrp | |
bcb3dc3d | 18000 | do |
bec39cab | 18001 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
18002 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18003 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18004 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
18005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18006 | else | |
18007 | cat >conftest.$ac_ext <<_ACEOF | |
18008 | /* confdefs.h. */ | |
18009 | _ACEOF | |
18010 | cat confdefs.h >>conftest.$ac_ext | |
18011 | cat >>conftest.$ac_ext <<_ACEOF | |
18012 | /* end confdefs.h. */ | |
18013 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18014 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18015 | #define $ac_func innocuous_$ac_func | |
18016 | ||
bcb3dc3d | 18017 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
18018 | which can conflict with char $ac_func (); below. |
18019 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18020 | <limits.h> exists even on freestanding compilers. */ | |
18021 | ||
18022 | #ifdef __STDC__ | |
18023 | # include <limits.h> | |
18024 | #else | |
18025 | # include <assert.h> | |
18026 | #endif | |
bcb3dc3d | 18027 | |
bec39cab | 18028 | #undef $ac_func |
bcb3dc3d | 18029 | |
b4e70030 | 18030 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
18031 | #ifdef __cplusplus |
18032 | extern "C" | |
b4e70030 | 18033 | { |
bec39cab | 18034 | #endif |
b4e70030 JB |
18035 | /* We use char because int might match the return type of a gcc2 |
18036 | builtin and then its argument prototype would still apply. */ | |
bec39cab | 18037 | char $ac_func (); |
bcb3dc3d MK |
18038 | /* The GNU C library defines this for functions which it implements |
18039 | to always fail with ENOSYS. Some functions are actually named | |
18040 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 18041 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
bcb3dc3d | 18042 | choke me |
b4e70030 JB |
18043 | #else |
18044 | char (*f) () = $ac_func; | |
18045 | #endif | |
18046 | #ifdef __cplusplus | |
18047 | } | |
bcb3dc3d MK |
18048 | #endif |
18049 | ||
bec39cab AC |
18050 | int |
18051 | main () | |
18052 | { | |
b4e70030 | 18053 | return f != $ac_func; |
bec39cab AC |
18054 | ; |
18055 | return 0; | |
18056 | } | |
18057 | _ACEOF | |
18058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18060 | (eval $ac_link) 2>conftest.er1 | |
18061 | ac_status=$? | |
18062 | grep -v '^ *+' conftest.er1 >conftest.err | |
18063 | rm -f conftest.er1 | |
18064 | cat conftest.err >&5 | |
18065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18066 | (exit $ac_status); } && | |
b4e70030 JB |
18067 | { ac_try='test -z "$ac_c_werror_flag" |
18068 | || test ! -s conftest.err' | |
bec39cab AC |
18069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18070 | (eval $ac_try) 2>&5 | |
18071 | ac_status=$? | |
18072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18073 | (exit $ac_status); }; } && | |
18074 | { ac_try='test -s conftest$ac_exeext' | |
18075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18076 | (eval $ac_try) 2>&5 | |
18077 | ac_status=$? | |
18078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18079 | (exit $ac_status); }; }; then | |
18080 | eval "$as_ac_var=yes" | |
18081 | else | |
18082 | echo "$as_me: failed program was:" >&5 | |
18083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18084 | ||
b4e70030 | 18085 | eval "$as_ac_var=no" |
bec39cab AC |
18086 | fi |
18087 | rm -f conftest.err conftest.$ac_objext \ | |
18088 | conftest$ac_exeext conftest.$ac_ext | |
18089 | fi | |
b4e70030 JB |
18090 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18091 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
bec39cab AC |
18092 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18093 | cat >>confdefs.h <<_ACEOF | |
18094 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18095 | _ACEOF | |
bcb3dc3d | 18096 | |
bcb3dc3d MK |
18097 | fi |
18098 | done | |
18099 | ||
bec39cab | 18100 | |
a3828db0 MK |
18101 | |
18102 | ||
18103 | for ac_func in sigaction sigprocmask sigsetmask | |
8b9cf735 | 18104 | do |
bec39cab | 18105 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
b4e70030 JB |
18106 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18107 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18108 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
18109 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18110 | else | |
18111 | cat >conftest.$ac_ext <<_ACEOF | |
18112 | /* confdefs.h. */ | |
18113 | _ACEOF | |
18114 | cat confdefs.h >>conftest.$ac_ext | |
18115 | cat >>conftest.$ac_ext <<_ACEOF | |
18116 | /* end confdefs.h. */ | |
18117 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
18118 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18119 | #define $ac_func innocuous_$ac_func | |
18120 | ||
8b9cf735 | 18121 | /* System header to define __stub macros and hopefully few prototypes, |
bec39cab AC |
18122 | which can conflict with char $ac_func (); below. |
18123 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18124 | <limits.h> exists even on freestanding compilers. */ | |
18125 | ||
18126 | #ifdef __STDC__ | |
18127 | # include <limits.h> | |
18128 | #else | |
18129 | # include <assert.h> | |
18130 | #endif | |
8b9cf735 | 18131 | |
bec39cab | 18132 | #undef $ac_func |
8b9cf735 | 18133 | |
b4e70030 | 18134 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
18135 | #ifdef __cplusplus |
18136 | extern "C" | |
b4e70030 | 18137 | { |
a3828db0 | 18138 | #endif |
b4e70030 JB |
18139 | /* We use char because int might match the return type of a gcc2 |
18140 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
18141 | char $ac_func (); |
18142 | /* The GNU C library defines this for functions which it implements | |
18143 | to always fail with ENOSYS. Some functions are actually named | |
18144 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 18145 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 18146 | choke me |
b4e70030 JB |
18147 | #else |
18148 | char (*f) () = $ac_func; | |
18149 | #endif | |
18150 | #ifdef __cplusplus | |
18151 | } | |
a3828db0 MK |
18152 | #endif |
18153 | ||
bec39cab AC |
18154 | int |
18155 | main () | |
18156 | { | |
b4e70030 | 18157 | return f != $ac_func; |
bec39cab AC |
18158 | ; |
18159 | return 0; | |
18160 | } | |
18161 | _ACEOF | |
a3828db0 MK |
18162 | rm -f conftest.$ac_objext conftest$ac_exeext |
18163 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18164 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
18165 | ac_status=$? |
18166 | grep -v '^ *+' conftest.er1 >conftest.err | |
18167 | rm -f conftest.er1 | |
18168 | cat conftest.err >&5 | |
18169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18170 | (exit $ac_status); } && | |
b4e70030 JB |
18171 | { ac_try='test -z "$ac_c_werror_flag" |
18172 | || test ! -s conftest.err' | |
bec39cab AC |
18173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18174 | (eval $ac_try) 2>&5 | |
18175 | ac_status=$? | |
18176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18177 | (exit $ac_status); }; } && | |
a3828db0 | 18178 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
18179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18180 | (eval $ac_try) 2>&5 | |
18181 | ac_status=$? | |
18182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18183 | (exit $ac_status); }; }; then | |
a3828db0 | 18184 | eval "$as_ac_var=yes" |
086ec9eb | 18185 | else |
bec39cab AC |
18186 | echo "$as_me: failed program was:" >&5 |
18187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18188 | ||
b4e70030 | 18189 | eval "$as_ac_var=no" |
a3828db0 MK |
18190 | fi |
18191 | rm -f conftest.err conftest.$ac_objext \ | |
18192 | conftest$ac_exeext conftest.$ac_ext | |
18193 | fi | |
b4e70030 JB |
18194 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18195 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
18196 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18197 | cat >>confdefs.h <<_ACEOF | |
18198 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18199 | _ACEOF | |
18200 | ||
086ec9eb | 18201 | fi |
a3828db0 MK |
18202 | done |
18203 | ||
18204 | ||
18205 | for ac_func in socketpair | |
18206 | do | |
18207 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
18208 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18209 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18210 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
a3828db0 MK |
18211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18212 | else | |
18213 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
18214 | /* confdefs.h. */ |
18215 | _ACEOF | |
18216 | cat confdefs.h >>conftest.$ac_ext | |
18217 | cat >>conftest.$ac_ext <<_ACEOF | |
18218 | /* end confdefs.h. */ | |
a3828db0 MK |
18219 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18220 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18221 | #define $ac_func innocuous_$ac_func | |
18222 | ||
18223 | /* System header to define __stub macros and hopefully few prototypes, | |
18224 | which can conflict with char $ac_func (); below. | |
18225 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18226 | <limits.h> exists even on freestanding compilers. */ | |
18227 | ||
18228 | #ifdef __STDC__ | |
18229 | # include <limits.h> | |
18230 | #else | |
18231 | # include <assert.h> | |
18232 | #endif | |
18233 | ||
18234 | #undef $ac_func | |
18235 | ||
b4e70030 | 18236 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
18237 | #ifdef __cplusplus |
18238 | extern "C" | |
b4e70030 | 18239 | { |
a3828db0 | 18240 | #endif |
b4e70030 JB |
18241 | /* We use char because int might match the return type of a gcc2 |
18242 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
18243 | char $ac_func (); |
18244 | /* The GNU C library defines this for functions which it implements | |
18245 | to always fail with ENOSYS. Some functions are actually named | |
18246 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 18247 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 18248 | choke me |
b4e70030 JB |
18249 | #else |
18250 | char (*f) () = $ac_func; | |
18251 | #endif | |
18252 | #ifdef __cplusplus | |
18253 | } | |
a3828db0 MK |
18254 | #endif |
18255 | ||
bec39cab AC |
18256 | int |
18257 | main () | |
18258 | { | |
b4e70030 | 18259 | return f != $ac_func; |
bec39cab AC |
18260 | ; |
18261 | return 0; | |
18262 | } | |
18263 | _ACEOF | |
a3828db0 MK |
18264 | rm -f conftest.$ac_objext conftest$ac_exeext |
18265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18266 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
18267 | ac_status=$? |
18268 | grep -v '^ *+' conftest.er1 >conftest.err | |
18269 | rm -f conftest.er1 | |
18270 | cat conftest.err >&5 | |
18271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18272 | (exit $ac_status); } && | |
b4e70030 JB |
18273 | { ac_try='test -z "$ac_c_werror_flag" |
18274 | || test ! -s conftest.err' | |
bec39cab AC |
18275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18276 | (eval $ac_try) 2>&5 | |
18277 | ac_status=$? | |
18278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18279 | (exit $ac_status); }; } && | |
a3828db0 | 18280 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
18281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18282 | (eval $ac_try) 2>&5 | |
18283 | ac_status=$? | |
18284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18285 | (exit $ac_status); }; }; then | |
a3828db0 | 18286 | eval "$as_ac_var=yes" |
086ec9eb | 18287 | else |
bec39cab AC |
18288 | echo "$as_me: failed program was:" >&5 |
18289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18290 | ||
b4e70030 | 18291 | eval "$as_ac_var=no" |
086ec9eb | 18292 | fi |
a3828db0 MK |
18293 | rm -f conftest.err conftest.$ac_objext \ |
18294 | conftest$ac_exeext conftest.$ac_ext | |
086ec9eb | 18295 | fi |
b4e70030 JB |
18296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18297 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
18298 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18299 | cat >>confdefs.h <<_ACEOF | |
18300 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 18301 | _ACEOF |
086ec9eb MK |
18302 | |
18303 | fi | |
a3828db0 | 18304 | done |
086ec9eb | 18305 | |
a3828db0 MK |
18306 | |
18307 | for ac_func in syscall | |
18308 | do | |
18309 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
18310 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18311 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18312 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 18313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
bec39cab AC |
18314 | else |
18315 | cat >conftest.$ac_ext <<_ACEOF | |
18316 | /* confdefs.h. */ | |
18317 | _ACEOF | |
18318 | cat confdefs.h >>conftest.$ac_ext | |
18319 | cat >>conftest.$ac_ext <<_ACEOF | |
18320 | /* end confdefs.h. */ | |
a3828db0 MK |
18321 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18322 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18323 | #define $ac_func innocuous_$ac_func | |
18324 | ||
18325 | /* System header to define __stub macros and hopefully few prototypes, | |
18326 | which can conflict with char $ac_func (); below. | |
18327 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18328 | <limits.h> exists even on freestanding compilers. */ | |
18329 | ||
18330 | #ifdef __STDC__ | |
18331 | # include <limits.h> | |
18332 | #else | |
18333 | # include <assert.h> | |
18334 | #endif | |
18335 | ||
18336 | #undef $ac_func | |
18337 | ||
b4e70030 | 18338 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
18339 | #ifdef __cplusplus |
18340 | extern "C" | |
b4e70030 | 18341 | { |
a3828db0 | 18342 | #endif |
b4e70030 JB |
18343 | /* We use char because int might match the return type of a gcc2 |
18344 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
18345 | char $ac_func (); |
18346 | /* The GNU C library defines this for functions which it implements | |
18347 | to always fail with ENOSYS. Some functions are actually named | |
18348 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 18349 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 18350 | choke me |
b4e70030 JB |
18351 | #else |
18352 | char (*f) () = $ac_func; | |
18353 | #endif | |
18354 | #ifdef __cplusplus | |
18355 | } | |
c906108c | 18356 | #endif |
97bf5e38 | 18357 | |
bec39cab AC |
18358 | int |
18359 | main () | |
97bf5e38 | 18360 | { |
b4e70030 | 18361 | return f != $ac_func; |
bec39cab AC |
18362 | ; |
18363 | return 0; | |
97bf5e38 | 18364 | } |
bec39cab | 18365 | _ACEOF |
a3828db0 | 18366 | rm -f conftest.$ac_objext conftest$ac_exeext |
bec39cab | 18367 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
a3828db0 | 18368 | (eval $ac_link) 2>conftest.er1 |
bec39cab | 18369 | ac_status=$? |
a3828db0 MK |
18370 | grep -v '^ *+' conftest.er1 >conftest.err |
18371 | rm -f conftest.er1 | |
18372 | cat conftest.err >&5 | |
bec39cab | 18373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
a3828db0 | 18374 | (exit $ac_status); } && |
b4e70030 JB |
18375 | { ac_try='test -z "$ac_c_werror_flag" |
18376 | || test ! -s conftest.err' | |
a3828db0 MK |
18377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18378 | (eval $ac_try) 2>&5 | |
18379 | ac_status=$? | |
18380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18381 | (exit $ac_status); }; } && | |
18382 | { ac_try='test -s conftest$ac_exeext' | |
bec39cab AC |
18383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18384 | (eval $ac_try) 2>&5 | |
18385 | ac_status=$? | |
18386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18387 | (exit $ac_status); }; }; then | |
a3828db0 | 18388 | eval "$as_ac_var=yes" |
c906108c | 18389 | else |
a3828db0 | 18390 | echo "$as_me: failed program was:" >&5 |
bec39cab AC |
18391 | sed 's/^/| /' conftest.$ac_ext >&5 |
18392 | ||
b4e70030 | 18393 | eval "$as_ac_var=no" |
97bf5e38 | 18394 | fi |
a3828db0 MK |
18395 | rm -f conftest.err conftest.$ac_objext \ |
18396 | conftest$ac_exeext conftest.$ac_ext | |
18397 | fi | |
b4e70030 JB |
18398 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18399 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
18400 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18401 | cat >>confdefs.h <<_ACEOF | |
18402 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 18403 | _ACEOF |
c906108c SS |
18404 | |
18405 | fi | |
a3828db0 | 18406 | done |
c906108c | 18407 | |
a3828db0 MK |
18408 | |
18409 | for ac_func in ttrace | |
18410 | do | |
18411 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
18412 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18413 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18414 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab | 18415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
b83266a0 | 18416 | else |
bec39cab AC |
18417 | cat >conftest.$ac_ext <<_ACEOF |
18418 | /* confdefs.h. */ | |
18419 | _ACEOF | |
18420 | cat confdefs.h >>conftest.$ac_ext | |
18421 | cat >>conftest.$ac_ext <<_ACEOF | |
18422 | /* end confdefs.h. */ | |
a3828db0 MK |
18423 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18424 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18425 | #define $ac_func innocuous_$ac_func | |
b83266a0 | 18426 | |
a3828db0 MK |
18427 | /* System header to define __stub macros and hopefully few prototypes, |
18428 | which can conflict with char $ac_func (); below. | |
18429 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18430 | <limits.h> exists even on freestanding compilers. */ | |
18431 | ||
18432 | #ifdef __STDC__ | |
18433 | # include <limits.h> | |
18434 | #else | |
18435 | # include <assert.h> | |
18436 | #endif | |
18437 | ||
18438 | #undef $ac_func | |
18439 | ||
b4e70030 | 18440 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
18441 | #ifdef __cplusplus |
18442 | extern "C" | |
b4e70030 | 18443 | { |
a3828db0 | 18444 | #endif |
b4e70030 JB |
18445 | /* We use char because int might match the return type of a gcc2 |
18446 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
18447 | char $ac_func (); |
18448 | /* The GNU C library defines this for functions which it implements | |
18449 | to always fail with ENOSYS. Some functions are actually named | |
18450 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 18451 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 18452 | choke me |
b4e70030 JB |
18453 | #else |
18454 | char (*f) () = $ac_func; | |
18455 | #endif | |
18456 | #ifdef __cplusplus | |
18457 | } | |
a3828db0 | 18458 | #endif |
97bf5e38 | 18459 | |
bec39cab AC |
18460 | int |
18461 | main () | |
18462 | { | |
b4e70030 | 18463 | return f != $ac_func; |
bec39cab AC |
18464 | ; |
18465 | return 0; | |
18466 | } | |
18467 | _ACEOF | |
a3828db0 MK |
18468 | rm -f conftest.$ac_objext conftest$ac_exeext |
18469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18470 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
18471 | ac_status=$? |
18472 | grep -v '^ *+' conftest.er1 >conftest.err | |
18473 | rm -f conftest.er1 | |
18474 | cat conftest.err >&5 | |
18475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18476 | (exit $ac_status); } && | |
b4e70030 JB |
18477 | { ac_try='test -z "$ac_c_werror_flag" |
18478 | || test ! -s conftest.err' | |
bec39cab AC |
18479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18480 | (eval $ac_try) 2>&5 | |
18481 | ac_status=$? | |
18482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18483 | (exit $ac_status); }; } && | |
a3828db0 | 18484 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
18485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18486 | (eval $ac_try) 2>&5 | |
18487 | ac_status=$? | |
18488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18489 | (exit $ac_status); }; }; then | |
a3828db0 | 18490 | eval "$as_ac_var=yes" |
b83266a0 | 18491 | else |
bec39cab AC |
18492 | echo "$as_me: failed program was:" >&5 |
18493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18494 | ||
b4e70030 | 18495 | eval "$as_ac_var=no" |
b83266a0 | 18496 | fi |
a3828db0 MK |
18497 | rm -f conftest.err conftest.$ac_objext \ |
18498 | conftest$ac_exeext conftest.$ac_ext | |
b83266a0 | 18499 | fi |
b4e70030 JB |
18500 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18501 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
18502 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18503 | cat >>confdefs.h <<_ACEOF | |
18504 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 18505 | _ACEOF |
b83266a0 | 18506 | |
97bf5e38 | 18507 | fi |
a3828db0 | 18508 | done |
b83266a0 | 18509 | |
a3828db0 MK |
18510 | |
18511 | for ac_func in wborder | |
18512 | do | |
18513 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
b4e70030 JB |
18514 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
18515 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18516 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
bec39cab AC |
18517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18518 | else | |
18519 | cat >conftest.$ac_ext <<_ACEOF | |
18520 | /* confdefs.h. */ | |
18521 | _ACEOF | |
18522 | cat confdefs.h >>conftest.$ac_ext | |
18523 | cat >>conftest.$ac_ext <<_ACEOF | |
18524 | /* end confdefs.h. */ | |
a3828db0 MK |
18525 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
18526 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
18527 | #define $ac_func innocuous_$ac_func | |
a4db0f07 | 18528 | |
a3828db0 MK |
18529 | /* System header to define __stub macros and hopefully few prototypes, |
18530 | which can conflict with char $ac_func (); below. | |
18531 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18532 | <limits.h> exists even on freestanding compilers. */ | |
18533 | ||
18534 | #ifdef __STDC__ | |
18535 | # include <limits.h> | |
18536 | #else | |
18537 | # include <assert.h> | |
18538 | #endif | |
18539 | ||
18540 | #undef $ac_func | |
18541 | ||
b4e70030 | 18542 | /* Override any gcc2 internal prototype to avoid an error. */ |
a3828db0 MK |
18543 | #ifdef __cplusplus |
18544 | extern "C" | |
b4e70030 | 18545 | { |
a3828db0 | 18546 | #endif |
b4e70030 JB |
18547 | /* We use char because int might match the return type of a gcc2 |
18548 | builtin and then its argument prototype would still apply. */ | |
a3828db0 MK |
18549 | char $ac_func (); |
18550 | /* The GNU C library defines this for functions which it implements | |
18551 | to always fail with ENOSYS. Some functions are actually named | |
18552 | something starting with __ and the normal name is an alias. */ | |
b4e70030 | 18553 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
a3828db0 | 18554 | choke me |
b4e70030 JB |
18555 | #else |
18556 | char (*f) () = $ac_func; | |
18557 | #endif | |
18558 | #ifdef __cplusplus | |
18559 | } | |
a3828db0 | 18560 | #endif |
97bf5e38 | 18561 | |
bec39cab AC |
18562 | int |
18563 | main () | |
18564 | { | |
b4e70030 | 18565 | return f != $ac_func; |
bec39cab AC |
18566 | ; |
18567 | return 0; | |
18568 | } | |
18569 | _ACEOF | |
a3828db0 MK |
18570 | rm -f conftest.$ac_objext conftest$ac_exeext |
18571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18572 | (eval $ac_link) 2>conftest.er1 | |
bec39cab AC |
18573 | ac_status=$? |
18574 | grep -v '^ *+' conftest.er1 >conftest.err | |
18575 | rm -f conftest.er1 | |
18576 | cat conftest.err >&5 | |
18577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18578 | (exit $ac_status); } && | |
b4e70030 JB |
18579 | { ac_try='test -z "$ac_c_werror_flag" |
18580 | || test ! -s conftest.err' | |
bec39cab AC |
18581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18582 | (eval $ac_try) 2>&5 | |
18583 | ac_status=$? | |
18584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18585 | (exit $ac_status); }; } && | |
a3828db0 | 18586 | { ac_try='test -s conftest$ac_exeext' |
bec39cab AC |
18587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18588 | (eval $ac_try) 2>&5 | |
18589 | ac_status=$? | |
18590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18591 | (exit $ac_status); }; }; then | |
a3828db0 | 18592 | eval "$as_ac_var=yes" |
a4db0f07 | 18593 | else |
bec39cab AC |
18594 | echo "$as_me: failed program was:" >&5 |
18595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18596 | ||
b4e70030 | 18597 | eval "$as_ac_var=no" |
a4db0f07 | 18598 | fi |
a3828db0 MK |
18599 | rm -f conftest.err conftest.$ac_objext \ |
18600 | conftest$ac_exeext conftest.$ac_ext | |
a4db0f07 | 18601 | fi |
b4e70030 JB |
18602 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
18603 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
a3828db0 MK |
18604 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
18605 | cat >>confdefs.h <<_ACEOF | |
18606 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
bec39cab | 18607 | _ACEOF |
a4db0f07 RH |
18608 | |
18609 | fi | |
a3828db0 | 18610 | done |
c906108c | 18611 | |
06825bd1 | 18612 | |
a3828db0 MK |
18613 | # Check the return and argument types of ptrace. No canned test for |
18614 | # this, so roll our own. | |
18615 | gdb_ptrace_headers=' | |
18616 | #if HAVE_SYS_TYPES_H | |
18617 | # include <sys/types.h> | |
18618 | #endif | |
18619 | #if HAVE_SYS_PTRACE_H | |
18620 | # include <sys/ptrace.h> | |
18621 | #endif | |
18622 | #if HAVE_UNISTD_H | |
18623 | # include <unistd.h> | |
18624 | #endif | |
18625 | ' | |
18626 | # There is no point in checking if we don't have a prototype. | |
b4e70030 JB |
18627 | echo "$as_me:$LINENO: checking whether ptrace is declared" >&5 |
18628 | echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6 | |
a3828db0 | 18629 | if test "${ac_cv_have_decl_ptrace+set}" = set; then |
bec39cab AC |
18630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18631 | else | |
18632 | cat >conftest.$ac_ext <<_ACEOF | |
18633 | /* confdefs.h. */ | |
18634 | _ACEOF | |
18635 | cat confdefs.h >>conftest.$ac_ext | |
18636 | cat >>conftest.$ac_ext <<_ACEOF | |
18637 | /* end confdefs.h. */ | |
a3828db0 MK |
18638 | $gdb_ptrace_headers |
18639 | ||
bec39cab AC |
18640 | int |
18641 | main () | |
18642 | { | |
a3828db0 MK |
18643 | #ifndef ptrace |
18644 | char *p = (char *) ptrace; | |
06825bd1 | 18645 | #endif |
a3828db0 | 18646 | |
bec39cab AC |
18647 | ; |
18648 | return 0; | |
18649 | } | |
18650 | _ACEOF | |
18651 | rm -f conftest.$ac_objext | |
18652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18653 | (eval $ac_compile) 2>conftest.er1 | |
18654 | ac_status=$? | |
18655 | grep -v '^ *+' conftest.er1 >conftest.err | |
18656 | rm -f conftest.er1 | |
18657 | cat conftest.err >&5 | |
18658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18659 | (exit $ac_status); } && | |
b4e70030 JB |
18660 | { ac_try='test -z "$ac_c_werror_flag" |
18661 | || test ! -s conftest.err' | |
bec39cab AC |
18662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18663 | (eval $ac_try) 2>&5 | |
18664 | ac_status=$? | |
18665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18666 | (exit $ac_status); }; } && | |
18667 | { ac_try='test -s conftest.$ac_objext' | |
18668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18669 | (eval $ac_try) 2>&5 | |
18670 | ac_status=$? | |
18671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18672 | (exit $ac_status); }; }; then | |
a3828db0 | 18673 | ac_cv_have_decl_ptrace=yes |
06825bd1 | 18674 | else |
bec39cab AC |
18675 | echo "$as_me: failed program was:" >&5 |
18676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18677 | ||
b4e70030 | 18678 | ac_cv_have_decl_ptrace=no |
06825bd1 | 18679 | fi |
bec39cab | 18680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
06825bd1 | 18681 | fi |
b4e70030 JB |
18682 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5 |
18683 | echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6 | |
a3828db0 | 18684 | if test $ac_cv_have_decl_ptrace = yes; then |
06825bd1 | 18685 | |
a3828db0 MK |
18686 | cat >>confdefs.h <<_ACEOF |
18687 | #define HAVE_DECL_PTRACE 1 | |
18688 | _ACEOF | |
bec39cab | 18689 | |
bec39cab | 18690 | |
a3828db0 MK |
18691 | else |
18692 | cat >>confdefs.h <<_ACEOF | |
18693 | #define HAVE_DECL_PTRACE 0 | |
bec39cab | 18694 | _ACEOF |
06825bd1 | 18695 | |
a3828db0 MK |
18696 | |
18697 | : ${gdb_cv_func_ptrace_ret='int'} | |
18698 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
18699 | ||
06825bd1 MK |
18700 | fi |
18701 | ||
a3828db0 MK |
18702 | |
18703 | # Check return type. | |
b4e70030 JB |
18704 | echo "$as_me:$LINENO: checking return type of ptrace" >&5 |
18705 | echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6 | |
a3828db0 | 18706 | if test "${gdb_cv_func_ptrace_ret+set}" = set; then |
bec39cab AC |
18707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18708 | else | |
18709 | cat >conftest.$ac_ext <<_ACEOF | |
18710 | /* confdefs.h. */ | |
18711 | _ACEOF | |
18712 | cat confdefs.h >>conftest.$ac_ext | |
18713 | cat >>conftest.$ac_ext <<_ACEOF | |
18714 | /* end confdefs.h. */ | |
a3828db0 | 18715 | $gdb_ptrace_headers |
bec39cab AC |
18716 | int |
18717 | main () | |
18718 | { | |
a3828db0 | 18719 | extern int ptrace (); |
bec39cab AC |
18720 | ; |
18721 | return 0; | |
18722 | } | |
18723 | _ACEOF | |
18724 | rm -f conftest.$ac_objext | |
18725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18726 | (eval $ac_compile) 2>conftest.er1 | |
18727 | ac_status=$? | |
18728 | grep -v '^ *+' conftest.er1 >conftest.err | |
18729 | rm -f conftest.er1 | |
18730 | cat conftest.err >&5 | |
18731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18732 | (exit $ac_status); } && | |
b4e70030 JB |
18733 | { ac_try='test -z "$ac_c_werror_flag" |
18734 | || test ! -s conftest.err' | |
bec39cab AC |
18735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18736 | (eval $ac_try) 2>&5 | |
18737 | ac_status=$? | |
18738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18739 | (exit $ac_status); }; } && | |
18740 | { ac_try='test -s conftest.$ac_objext' | |
18741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18742 | (eval $ac_try) 2>&5 | |
18743 | ac_status=$? | |
18744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18745 | (exit $ac_status); }; }; then | |
a3828db0 | 18746 | gdb_cv_func_ptrace_ret='int' |
70f9f479 | 18747 | else |
bec39cab AC |
18748 | echo "$as_me: failed program was:" >&5 |
18749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18750 | ||
b4e70030 | 18751 | gdb_cv_func_ptrace_ret='long' |
70f9f479 | 18752 | fi |
bec39cab | 18753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
70f9f479 | 18754 | fi |
b4e70030 JB |
18755 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5 |
18756 | echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6 | |
bec39cab | 18757 | |
a3828db0 MK |
18758 | cat >>confdefs.h <<_ACEOF |
18759 | #define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret | |
bec39cab | 18760 | _ACEOF |
70f9f479 | 18761 | |
a3828db0 | 18762 | # Check argument types. |
b4e70030 JB |
18763 | echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5 |
18764 | echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6 | |
a3828db0 | 18765 | if test "${gdb_cv_func_ptrace_args+set}" = set; then |
bec39cab AC |
18766 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18767 | else | |
a3828db0 MK |
18768 | |
18769 | for gdb_arg1 in 'int' 'long'; do | |
18770 | for gdb_arg2 in 'pid_t' 'int' 'long'; do | |
18771 | for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do | |
18772 | for gdb_arg4 in 'int' 'long'; do | |
18773 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
18774 | /* confdefs.h. */ |
18775 | _ACEOF | |
18776 | cat confdefs.h >>conftest.$ac_ext | |
18777 | cat >>conftest.$ac_ext <<_ACEOF | |
18778 | /* end confdefs.h. */ | |
a3828db0 | 18779 | $gdb_ptrace_headers |
bec39cab AC |
18780 | int |
18781 | main () | |
18782 | { | |
a3828db0 MK |
18783 | |
18784 | extern $gdb_cv_func_ptrace_ret | |
18785 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4); | |
18786 | ||
bec39cab AC |
18787 | ; |
18788 | return 0; | |
18789 | } | |
18790 | _ACEOF | |
18791 | rm -f conftest.$ac_objext | |
18792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18793 | (eval $ac_compile) 2>conftest.er1 | |
18794 | ac_status=$? | |
18795 | grep -v '^ *+' conftest.er1 >conftest.err | |
18796 | rm -f conftest.er1 | |
18797 | cat conftest.err >&5 | |
18798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18799 | (exit $ac_status); } && | |
b4e70030 JB |
18800 | { ac_try='test -z "$ac_c_werror_flag" |
18801 | || test ! -s conftest.err' | |
bec39cab AC |
18802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18803 | (eval $ac_try) 2>&5 | |
18804 | ac_status=$? | |
18805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18806 | (exit $ac_status); }; } && | |
18807 | { ac_try='test -s conftest.$ac_objext' | |
18808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18809 | (eval $ac_try) 2>&5 | |
18810 | ac_status=$? | |
18811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18812 | (exit $ac_status); }; }; then | |
a3828db0 MK |
18813 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4"; |
18814 | break 4; | |
5c7f2947 | 18815 | else |
bec39cab AC |
18816 | echo "$as_me: failed program was:" >&5 |
18817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18818 | ||
5c7f2947 | 18819 | fi |
bec39cab | 18820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
18821 | for gdb_arg5 in 'int *' 'int' 'long'; do |
18822 | cat >conftest.$ac_ext <<_ACEOF | |
bec39cab AC |
18823 | /* confdefs.h. */ |
18824 | _ACEOF | |
18825 | cat confdefs.h >>conftest.$ac_ext | |
18826 | cat >>conftest.$ac_ext <<_ACEOF | |
18827 | /* end confdefs.h. */ | |
a3828db0 | 18828 | $gdb_ptrace_headers |
bec39cab AC |
18829 | int |
18830 | main () | |
18831 | { | |
a3828db0 MK |
18832 | |
18833 | extern $gdb_cv_func_ptrace_ret | |
18834 | ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5); | |
18835 | ||
bec39cab AC |
18836 | ; |
18837 | return 0; | |
18838 | } | |
18839 | _ACEOF | |
18840 | rm -f conftest.$ac_objext | |
18841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18842 | (eval $ac_compile) 2>conftest.er1 | |
18843 | ac_status=$? | |
18844 | grep -v '^ *+' conftest.er1 >conftest.err | |
18845 | rm -f conftest.er1 | |
18846 | cat conftest.err >&5 | |
18847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18848 | (exit $ac_status); } && | |
b4e70030 JB |
18849 | { ac_try='test -z "$ac_c_werror_flag" |
18850 | || test ! -s conftest.err' | |
bec39cab AC |
18851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18852 | (eval $ac_try) 2>&5 | |
18853 | ac_status=$? | |
18854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18855 | (exit $ac_status); }; } && | |
18856 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
a3828db0 MK |
18862 | |
18863 | gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5"; | |
18864 | break 5; | |
78434e59 | 18865 | else |
bec39cab AC |
18866 | echo "$as_me: failed program was:" >&5 |
18867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18868 | ||
78434e59 | 18869 | fi |
bec39cab | 18870 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
a3828db0 MK |
18871 | done |
18872 | done | |
18873 | done | |
18874 | done | |
18875 | done | |
18876 | # Provide a safe default value. | |
18877 | : ${gdb_cv_func_ptrace_args='int,int,long,long'} | |
18878 | ||
78434e59 | 18879 | fi |
b4e70030 JB |
18880 | echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5 |
18881 | echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6 | |
a3828db0 MK |
18882 | ac_save_IFS=$IFS; IFS=',' |
18883 | set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'` | |
18884 | IFS=$ac_save_IFS | |
18885 | shift | |
bec39cab | 18886 | |
a3828db0 MK |
18887 | cat >>confdefs.h <<_ACEOF |
18888 | #define PTRACE_TYPE_ARG3 $3 | |
18889 | _ACEOF | |
18890 | ||
18891 | if test -n "$5"; then | |
18892 | ||
18893 | cat >>confdefs.h <<_ACEOF | |
18894 | #define PTRACE_TYPE_ARG5 $5 | |
bec39cab | 18895 | _ACEOF |
78434e59 MK |
18896 | |
18897 | fi | |
18898 | ||
a3828db0 | 18899 | if test "$cross_compiling" = no; then |
b4e70030 JB |
18900 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
18901 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 18902 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 18903 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
a3828db0 MK |
18904 | else |
18905 | if test "$cross_compiling" = yes; then | |
18906 | { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5 | |
18907 | echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;} | |
18908 | { (exit 1); exit 1; }; } | |
bec39cab AC |
18909 | else |
18910 | cat >conftest.$ac_ext <<_ACEOF | |
18911 | /* confdefs.h. */ | |
18912 | _ACEOF | |
18913 | cat confdefs.h >>conftest.$ac_ext | |
18914 | cat >>conftest.$ac_ext <<_ACEOF | |
18915 | /* end confdefs.h. */ | |
b4e70030 JB |
18916 | #if HAVE_UNISTD_H |
18917 | # include <unistd.h> | |
18918 | #endif | |
18919 | ||
bec39cab AC |
18920 | int |
18921 | main () | |
18922 | { | |
a3828db0 MK |
18923 | /* If this system has a BSD-style setpgrp which takes arguments, |
18924 | setpgrp(1, 1) will fail with ESRCH and return -1, in that case | |
18925 | exit successfully. */ | |
b4e70030 | 18926 | exit (setpgrp (1,1) == -1 ? 0 : 1); |
bec39cab AC |
18927 | ; |
18928 | return 0; | |
18929 | } | |
18930 | _ACEOF | |
a3828db0 MK |
18931 | rm -f conftest$ac_exeext |
18932 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18933 | (eval $ac_link) 2>&5 | |
bec39cab AC |
18934 | ac_status=$? |
18935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
a3828db0 | 18936 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
bec39cab AC |
18937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18938 | (eval $ac_try) 2>&5 | |
18939 | ac_status=$? | |
18940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18941 | (exit $ac_status); }; }; then | |
a3828db0 | 18942 | ac_cv_func_setpgrp_void=no |
c906108c | 18943 | else |
a3828db0 MK |
18944 | echo "$as_me: program exited with status $ac_status" >&5 |
18945 | echo "$as_me: failed program was:" >&5 | |
bec39cab AC |
18946 | sed 's/^/| /' conftest.$ac_ext >&5 |
18947 | ||
a3828db0 MK |
18948 | ( exit $ac_status ) |
18949 | ac_cv_func_setpgrp_void=yes | |
c906108c | 18950 | fi |
b4e70030 | 18951 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 18952 | fi |
a3828db0 | 18953 | fi |
b4e70030 JB |
18954 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
18955 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 MK |
18956 | if test $ac_cv_func_setpgrp_void = yes; then |
18957 | ||
18958 | cat >>confdefs.h <<\_ACEOF | |
18959 | #define SETPGRP_VOID 1 | |
bec39cab | 18960 | _ACEOF |
97bf5e38 MK |
18961 | |
18962 | fi | |
a3828db0 MK |
18963 | |
18964 | else | |
b4e70030 JB |
18965 | echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5 |
18966 | echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6 | |
a3828db0 | 18967 | if test "${ac_cv_func_setpgrp_void+set}" = set; then |
bec39cab | 18968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 18969 | else |
bec39cab AC |
18970 | cat >conftest.$ac_ext <<_ACEOF |
18971 | /* confdefs.h. */ | |
18972 | _ACEOF | |
18973 | cat confdefs.h >>conftest.$ac_ext | |
18974 | cat >>conftest.$ac_ext <<_ACEOF | |
18975 | /* end confdefs.h. */ | |
a3828db0 MK |
18976 | |
18977 | #include <unistd.h> | |
18978 | ||
bec39cab AC |
18979 | int |
18980 | main () | |
18981 | { | |
a3828db0 MK |
18982 | |
18983 | if (setpgrp(1,1) == -1) | |
18984 | exit (0); | |
18985 | else | |
18986 | exit (1); | |
18987 | ||
bec39cab AC |
18988 | ; |
18989 | return 0; | |
18990 | } | |
18991 | _ACEOF | |
18992 | rm -f conftest.$ac_objext | |
18993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18994 | (eval $ac_compile) 2>conftest.er1 | |
18995 | ac_status=$? | |
18996 | grep -v '^ *+' conftest.er1 >conftest.err | |
18997 | rm -f conftest.er1 | |
18998 | cat conftest.err >&5 | |
18999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19000 | (exit $ac_status); } && | |
b4e70030 JB |
19001 | { ac_try='test -z "$ac_c_werror_flag" |
19002 | || test ! -s conftest.err' | |
bec39cab AC |
19003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19004 | (eval $ac_try) 2>&5 | |
19005 | ac_status=$? | |
19006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19007 | (exit $ac_status); }; } && | |
19008 | { ac_try='test -s conftest.$ac_objext' | |
19009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19010 | (eval $ac_try) 2>&5 | |
19011 | ac_status=$? | |
19012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19013 | (exit $ac_status); }; }; then | |
a3828db0 | 19014 | ac_cv_func_setpgrp_void=no |
c906108c | 19015 | else |
bec39cab AC |
19016 | echo "$as_me: failed program was:" >&5 |
19017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19018 | ||
b4e70030 | 19019 | ac_cv_func_setpgrp_void=yes |
c906108c | 19020 | fi |
bec39cab | 19021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 19022 | fi |
b4e70030 JB |
19023 | echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5 |
19024 | echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6 | |
a3828db0 | 19025 | if test $ac_cv_func_setpgrp_void = yes; then |
bec39cab | 19026 | cat >>confdefs.h <<\_ACEOF |
a3828db0 | 19027 | #define SETPGRP_VOID 1 |
bec39cab | 19028 | _ACEOF |
c3f6f71d | 19029 | |
a3828db0 | 19030 | fi |
c906108c SS |
19031 | fi |
19032 | ||
a3828db0 MK |
19033 | # Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do |
19034 | # since sigsetjmp might only be defined as a macro. | |
b4e70030 JB |
19035 | echo "$as_me:$LINENO: checking for sigsetjmp" >&5 |
19036 | echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6 | |
a3828db0 | 19037 | if test "${gdb_cv_func_sigsetjmp+set}" = set; then |
bec39cab AC |
19038 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19039 | else | |
19040 | cat >conftest.$ac_ext <<_ACEOF | |
19041 | /* confdefs.h. */ | |
19042 | _ACEOF | |
19043 | cat confdefs.h >>conftest.$ac_ext | |
19044 | cat >>conftest.$ac_ext <<_ACEOF | |
19045 | /* end confdefs.h. */ | |
a3828db0 MK |
19046 | |
19047 | #include <setjmp.h> | |
19048 | ||
bec39cab AC |
19049 | int |
19050 | main () | |
19051 | { | |
a3828db0 | 19052 | sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1); |
bec39cab AC |
19053 | ; |
19054 | return 0; | |
19055 | } | |
19056 | _ACEOF | |
19057 | rm -f conftest.$ac_objext | |
19058 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19059 | (eval $ac_compile) 2>conftest.er1 | |
19060 | ac_status=$? | |
19061 | grep -v '^ *+' conftest.er1 >conftest.err | |
19062 | rm -f conftest.er1 | |
19063 | cat conftest.err >&5 | |
19064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19065 | (exit $ac_status); } && | |
b4e70030 JB |
19066 | { ac_try='test -z "$ac_c_werror_flag" |
19067 | || test ! -s conftest.err' | |
bec39cab AC |
19068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19069 | (eval $ac_try) 2>&5 | |
19070 | ac_status=$? | |
19071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19072 | (exit $ac_status); }; } && | |
19073 | { ac_try='test -s conftest.$ac_objext' | |
19074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19075 | (eval $ac_try) 2>&5 | |
19076 | ac_status=$? | |
19077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19078 | (exit $ac_status); }; }; then | |
a3828db0 | 19079 | gdb_cv_func_sigsetjmp=yes |
c906108c | 19080 | else |
bec39cab AC |
19081 | echo "$as_me: failed program was:" >&5 |
19082 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19083 | ||
b4e70030 | 19084 | gdb_cv_func_sigsetjmp=no |
c906108c | 19085 | fi |
bec39cab | 19086 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 19087 | fi |
b4e70030 JB |
19088 | echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5 |
19089 | echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6 | |
a3828db0 | 19090 | if test $gdb_cv_func_sigsetjmp = yes; then |
c906108c | 19091 | |
a3828db0 MK |
19092 | cat >>confdefs.h <<\_ACEOF |
19093 | #define HAVE_SIGSETJMP 1 | |
bec39cab | 19094 | _ACEOF |
c906108c | 19095 | |
97bf5e38 | 19096 | fi |
c906108c | 19097 | |
a3828db0 MK |
19098 | # Assume we'll default to using the included libiberty regex. |
19099 | gdb_use_included_regex=yes | |
19100 | ||
19101 | # However, if the system regex is GNU regex, then default to *not* | |
19102 | # using the included regex. | |
b4e70030 JB |
19103 | echo "$as_me:$LINENO: checking for GNU regex" >&5 |
19104 | echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6 | |
a3828db0 | 19105 | if test "${gdb_cv_have_gnu_regex+set}" = set; then |
bec39cab AC |
19106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19107 | else | |
19108 | cat >conftest.$ac_ext <<_ACEOF | |
19109 | /* confdefs.h. */ | |
19110 | _ACEOF | |
19111 | cat confdefs.h >>conftest.$ac_ext | |
19112 | cat >>conftest.$ac_ext <<_ACEOF | |
19113 | /* end confdefs.h. */ | |
a3828db0 | 19114 | #include <gnu-versions.h> |
bec39cab AC |
19115 | int |
19116 | main () | |
19117 | { | |
a3828db0 MK |
19118 | #define REGEX_INTERFACE_VERSION 1 |
19119 | #if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION | |
19120 | # error "Version mismatch" | |
19121 | #endif | |
bec39cab AC |
19122 | ; |
19123 | return 0; | |
19124 | } | |
19125 | _ACEOF | |
19126 | rm -f conftest.$ac_objext | |
19127 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19128 | (eval $ac_compile) 2>conftest.er1 | |
19129 | ac_status=$? | |
19130 | grep -v '^ *+' conftest.er1 >conftest.err | |
19131 | rm -f conftest.er1 | |
19132 | cat conftest.err >&5 | |
19133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19134 | (exit $ac_status); } && | |
b4e70030 JB |
19135 | { ac_try='test -z "$ac_c_werror_flag" |
19136 | || test ! -s conftest.err' | |
bec39cab AC |
19137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19138 | (eval $ac_try) 2>&5 | |
19139 | ac_status=$? | |
19140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19141 | (exit $ac_status); }; } && | |
19142 | { ac_try='test -s conftest.$ac_objext' | |
19143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19144 | (eval $ac_try) 2>&5 | |
19145 | ac_status=$? | |
19146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19147 | (exit $ac_status); }; }; then | |
a3828db0 | 19148 | gdb_cv_have_gnu_regex=yes |
c906108c | 19149 | else |
bec39cab AC |
19150 | echo "$as_me: failed program was:" >&5 |
19151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19152 | ||
b4e70030 | 19153 | gdb_cv_have_gnu_regex=no |
c906108c | 19154 | fi |
bec39cab | 19155 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 19156 | fi |
b4e70030 JB |
19157 | echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5 |
19158 | echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6 | |
a3828db0 MK |
19159 | if test $gdb_cv_have_gnu_regex = yes; then |
19160 | gdb_use_included_regex=no | |
19161 | fi | |
c906108c | 19162 | |
a3828db0 | 19163 | |
b4e70030 | 19164 | # Check whether --with-included-regex or --without-included-regex was given. |
a3828db0 | 19165 | if test "${with_included_regex+set}" = set; then |
b4e70030 JB |
19166 | withval="$with_included_regex" |
19167 | gdb_with_regex=$withval | |
a3828db0 MK |
19168 | else |
19169 | gdb_with_regex=$gdb_use_included_regex | |
b4e70030 | 19170 | fi; |
a3828db0 MK |
19171 | if test "$gdb_with_regex" = yes; then |
19172 | ||
19173 | cat >>confdefs.h <<\_ACEOF | |
19174 | #define USE_INCLUDED_REGEX 1 | |
bec39cab | 19175 | _ACEOF |
c906108c | 19176 | |
97bf5e38 | 19177 | fi |
c906108c | 19178 | |
5c45e068 | 19179 | # Check if <sys/proc.h> defines `struct thread' with a td_pcb member. |
b4e70030 JB |
19180 | echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5 |
19181 | echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6 | |
5c45e068 | 19182 | if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then |
bec39cab AC |
19183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19184 | else | |
19185 | cat >conftest.$ac_ext <<_ACEOF | |
19186 | /* confdefs.h. */ | |
19187 | _ACEOF | |
19188 | cat confdefs.h >>conftest.$ac_ext | |
19189 | cat >>conftest.$ac_ext <<_ACEOF | |
19190 | /* end confdefs.h. */ | |
a3828db0 MK |
19191 | #include <sys/param.h> |
19192 | #include <sys/proc.h> | |
5c45e068 MK |
19193 | |
19194 | ||
bec39cab AC |
19195 | int |
19196 | main () | |
19197 | { | |
5c45e068 MK |
19198 | static struct thread ac_aggr; |
19199 | if (ac_aggr.td_pcb) | |
19200 | return 0; | |
bec39cab AC |
19201 | ; |
19202 | return 0; | |
19203 | } | |
19204 | _ACEOF | |
19205 | rm -f conftest.$ac_objext | |
19206 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19207 | (eval $ac_compile) 2>conftest.er1 | |
19208 | ac_status=$? | |
19209 | grep -v '^ *+' conftest.er1 >conftest.err | |
19210 | rm -f conftest.er1 | |
19211 | cat conftest.err >&5 | |
19212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19213 | (exit $ac_status); } && | |
b4e70030 JB |
19214 | { ac_try='test -z "$ac_c_werror_flag" |
19215 | || test ! -s conftest.err' | |
bec39cab AC |
19216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19217 | (eval $ac_try) 2>&5 | |
19218 | ac_status=$? | |
19219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19220 | (exit $ac_status); }; } && | |
19221 | { ac_try='test -s conftest.$ac_objext' | |
19222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19223 | (eval $ac_try) 2>&5 | |
19224 | ac_status=$? | |
19225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19226 | (exit $ac_status); }; }; then | |
5c45e068 | 19227 | ac_cv_member_struct_thread_td_pcb=yes |
c906108c | 19228 | else |
bec39cab AC |
19229 | echo "$as_me: failed program was:" >&5 |
19230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19231 | ||
b4e70030 | 19232 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
19233 | /* confdefs.h. */ |
19234 | _ACEOF | |
19235 | cat confdefs.h >>conftest.$ac_ext | |
19236 | cat >>conftest.$ac_ext <<_ACEOF | |
19237 | /* end confdefs.h. */ | |
19238 | #include <sys/param.h> | |
19239 | #include <sys/proc.h> | |
19240 | ||
19241 | ||
19242 | int | |
19243 | main () | |
19244 | { | |
19245 | static struct thread ac_aggr; | |
19246 | if (sizeof ac_aggr.td_pcb) | |
19247 | return 0; | |
19248 | ; | |
19249 | return 0; | |
19250 | } | |
19251 | _ACEOF | |
19252 | rm -f conftest.$ac_objext | |
19253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19254 | (eval $ac_compile) 2>conftest.er1 | |
19255 | ac_status=$? | |
19256 | grep -v '^ *+' conftest.er1 >conftest.err | |
19257 | rm -f conftest.er1 | |
19258 | cat conftest.err >&5 | |
19259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19260 | (exit $ac_status); } && | |
b4e70030 JB |
19261 | { ac_try='test -z "$ac_c_werror_flag" |
19262 | || test ! -s conftest.err' | |
5c45e068 MK |
19263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19264 | (eval $ac_try) 2>&5 | |
19265 | ac_status=$? | |
19266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19267 | (exit $ac_status); }; } && | |
19268 | { ac_try='test -s conftest.$ac_objext' | |
19269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19270 | (eval $ac_try) 2>&5 | |
19271 | ac_status=$? | |
19272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19273 | (exit $ac_status); }; }; then | |
19274 | ac_cv_member_struct_thread_td_pcb=yes | |
19275 | else | |
19276 | echo "$as_me: failed program was:" >&5 | |
19277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19278 | ||
b4e70030 | 19279 | ac_cv_member_struct_thread_td_pcb=no |
5c45e068 MK |
19280 | fi |
19281 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 19282 | fi |
bec39cab | 19283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 19284 | fi |
b4e70030 JB |
19285 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5 |
19286 | echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6 | |
5c45e068 | 19287 | if test $ac_cv_member_struct_thread_td_pcb = yes; then |
c906108c | 19288 | |
5c45e068 | 19289 | cat >>confdefs.h <<_ACEOF |
a3828db0 | 19290 | #define HAVE_STRUCT_THREAD_TD_PCB 1 |
bec39cab | 19291 | _ACEOF |
c906108c | 19292 | |
5c45e068 | 19293 | |
97bf5e38 | 19294 | fi |
c906108c | 19295 | |
5c45e068 | 19296 | |
a3828db0 | 19297 | # See if <sys/lwp.h> defines `struct lwp`. |
b4e70030 JB |
19298 | echo "$as_me:$LINENO: checking for struct lwp" >&5 |
19299 | echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6 | |
a3828db0 | 19300 | if test "${gdb_cv_struct_lwp+set}" = set; then |
bec39cab AC |
19301 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19302 | else | |
19303 | cat >conftest.$ac_ext <<_ACEOF | |
19304 | /* confdefs.h. */ | |
19305 | _ACEOF | |
19306 | cat confdefs.h >>conftest.$ac_ext | |
19307 | cat >>conftest.$ac_ext <<_ACEOF | |
19308 | /* end confdefs.h. */ | |
a3828db0 MK |
19309 | #include <sys/param.h> |
19310 | #include <sys/lwp.h> | |
bec39cab AC |
19311 | int |
19312 | main () | |
19313 | { | |
a3828db0 | 19314 | struct lwp l; |
bec39cab AC |
19315 | ; |
19316 | return 0; | |
19317 | } | |
19318 | _ACEOF | |
19319 | rm -f conftest.$ac_objext | |
19320 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19321 | (eval $ac_compile) 2>conftest.er1 | |
19322 | ac_status=$? | |
19323 | grep -v '^ *+' conftest.er1 >conftest.err | |
19324 | rm -f conftest.er1 | |
19325 | cat conftest.err >&5 | |
19326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19327 | (exit $ac_status); } && | |
b4e70030 JB |
19328 | { ac_try='test -z "$ac_c_werror_flag" |
19329 | || test ! -s conftest.err' | |
bec39cab AC |
19330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19331 | (eval $ac_try) 2>&5 | |
19332 | ac_status=$? | |
19333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19334 | (exit $ac_status); }; } && | |
19335 | { ac_try='test -s conftest.$ac_objext' | |
19336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19337 | (eval $ac_try) 2>&5 | |
19338 | ac_status=$? | |
19339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19340 | (exit $ac_status); }; }; then | |
a3828db0 | 19341 | gdb_cv_struct_lwp=yes |
c906108c | 19342 | else |
bec39cab AC |
19343 | echo "$as_me: failed program was:" >&5 |
19344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19345 | ||
b4e70030 | 19346 | gdb_cv_struct_lwp=no |
c906108c | 19347 | fi |
bec39cab | 19348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 19349 | fi |
b4e70030 JB |
19350 | echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5 |
19351 | echo "${ECHO_T}$gdb_cv_struct_lwp" >&6 | |
a3828db0 | 19352 | if test $gdb_cv_struct_lwp = yes; then |
c906108c | 19353 | |
a3828db0 MK |
19354 | cat >>confdefs.h <<\_ACEOF |
19355 | #define HAVE_STRUCT_LWP 1 | |
bec39cab | 19356 | _ACEOF |
c906108c | 19357 | |
97bf5e38 | 19358 | fi |
c906108c | 19359 | |
a3828db0 | 19360 | # See if <machine/reg.h> degines `struct reg'. |
b4e70030 JB |
19361 | echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5 |
19362 | echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6 | |
a3828db0 | 19363 | if test "${gdb_cv_struct_reg+set}" = set; then |
bec39cab AC |
19364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19365 | else | |
19366 | cat >conftest.$ac_ext <<_ACEOF | |
19367 | /* confdefs.h. */ | |
19368 | _ACEOF | |
19369 | cat confdefs.h >>conftest.$ac_ext | |
19370 | cat >>conftest.$ac_ext <<_ACEOF | |
19371 | /* end confdefs.h. */ | |
a3828db0 MK |
19372 | #include <sys/types.h> |
19373 | #include <machine/reg.h> | |
bec39cab AC |
19374 | int |
19375 | main () | |
19376 | { | |
a3828db0 | 19377 | struct reg r; |
bec39cab AC |
19378 | ; |
19379 | return 0; | |
19380 | } | |
19381 | _ACEOF | |
19382 | rm -f conftest.$ac_objext | |
19383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19384 | (eval $ac_compile) 2>conftest.er1 | |
19385 | ac_status=$? | |
19386 | grep -v '^ *+' conftest.er1 >conftest.err | |
19387 | rm -f conftest.er1 | |
19388 | cat conftest.err >&5 | |
19389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19390 | (exit $ac_status); } && | |
b4e70030 JB |
19391 | { ac_try='test -z "$ac_c_werror_flag" |
19392 | || test ! -s conftest.err' | |
bec39cab AC |
19393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19394 | (eval $ac_try) 2>&5 | |
19395 | ac_status=$? | |
19396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19397 | (exit $ac_status); }; } && | |
19398 | { ac_try='test -s conftest.$ac_objext' | |
19399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19400 | (eval $ac_try) 2>&5 | |
19401 | ac_status=$? | |
19402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19403 | (exit $ac_status); }; }; then | |
a3828db0 | 19404 | gdb_cv_struct_reg=yes |
27ca5dad | 19405 | else |
bec39cab AC |
19406 | echo "$as_me: failed program was:" >&5 |
19407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19408 | ||
b4e70030 | 19409 | gdb_cv_struct_reg=no |
27ca5dad | 19410 | fi |
bec39cab | 19411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
27ca5dad | 19412 | fi |
b4e70030 JB |
19413 | echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5 |
19414 | echo "${ECHO_T}$gdb_cv_struct_reg" >&6 | |
a3828db0 | 19415 | if test $gdb_cv_struct_reg = yes; then |
bec39cab AC |
19416 | |
19417 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19418 | #define HAVE_STRUCT_REG 1 |
bec39cab | 19419 | _ACEOF |
27ca5dad MC |
19420 | |
19421 | fi | |
97bf5e38 | 19422 | |
a3828db0 MK |
19423 | # See if <machine/reg.h> supports the %fs and %gs i386 segment registers. |
19424 | # Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. | |
b4e70030 JB |
19425 | echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5 |
19426 | echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6 | |
5c45e068 | 19427 | if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then |
bec39cab | 19428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 19429 | else |
bec39cab AC |
19430 | cat >conftest.$ac_ext <<_ACEOF |
19431 | /* confdefs.h. */ | |
19432 | _ACEOF | |
19433 | cat confdefs.h >>conftest.$ac_ext | |
19434 | cat >>conftest.$ac_ext <<_ACEOF | |
19435 | /* end confdefs.h. */ | |
a3828db0 | 19436 | #include <machine/reg.h> |
5c45e068 MK |
19437 | |
19438 | int | |
19439 | main () | |
19440 | { | |
19441 | static struct reg ac_aggr; | |
19442 | if (ac_aggr.r_fs) | |
19443 | return 0; | |
19444 | ; | |
19445 | return 0; | |
19446 | } | |
19447 | _ACEOF | |
19448 | rm -f conftest.$ac_objext | |
19449 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19450 | (eval $ac_compile) 2>conftest.er1 | |
19451 | ac_status=$? | |
19452 | grep -v '^ *+' conftest.er1 >conftest.err | |
19453 | rm -f conftest.er1 | |
19454 | cat conftest.err >&5 | |
19455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19456 | (exit $ac_status); } && | |
b4e70030 JB |
19457 | { ac_try='test -z "$ac_c_werror_flag" |
19458 | || test ! -s conftest.err' | |
5c45e068 MK |
19459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19460 | (eval $ac_try) 2>&5 | |
19461 | ac_status=$? | |
19462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19463 | (exit $ac_status); }; } && | |
19464 | { ac_try='test -s conftest.$ac_objext' | |
19465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19466 | (eval $ac_try) 2>&5 | |
19467 | ac_status=$? | |
19468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19469 | (exit $ac_status); }; }; then | |
19470 | ac_cv_member_struct_reg_r_fs=yes | |
19471 | else | |
19472 | echo "$as_me: failed program was:" >&5 | |
19473 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19474 | ||
b4e70030 | 19475 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
19476 | /* confdefs.h. */ |
19477 | _ACEOF | |
19478 | cat confdefs.h >>conftest.$ac_ext | |
19479 | cat >>conftest.$ac_ext <<_ACEOF | |
19480 | /* end confdefs.h. */ | |
19481 | #include <machine/reg.h> | |
19482 | ||
bec39cab AC |
19483 | int |
19484 | main () | |
19485 | { | |
5c45e068 MK |
19486 | static struct reg ac_aggr; |
19487 | if (sizeof ac_aggr.r_fs) | |
19488 | return 0; | |
bec39cab AC |
19489 | ; |
19490 | return 0; | |
19491 | } | |
19492 | _ACEOF | |
19493 | rm -f conftest.$ac_objext | |
19494 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19495 | (eval $ac_compile) 2>conftest.er1 | |
19496 | ac_status=$? | |
19497 | grep -v '^ *+' conftest.er1 >conftest.err | |
19498 | rm -f conftest.er1 | |
19499 | cat conftest.err >&5 | |
19500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19501 | (exit $ac_status); } && | |
b4e70030 JB |
19502 | { ac_try='test -z "$ac_c_werror_flag" |
19503 | || test ! -s conftest.err' | |
bec39cab AC |
19504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19505 | (eval $ac_try) 2>&5 | |
19506 | ac_status=$? | |
19507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19508 | (exit $ac_status); }; } && | |
19509 | { ac_try='test -s conftest.$ac_objext' | |
19510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19511 | (eval $ac_try) 2>&5 | |
19512 | ac_status=$? | |
19513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19514 | (exit $ac_status); }; }; then | |
5c45e068 | 19515 | ac_cv_member_struct_reg_r_fs=yes |
3862412b | 19516 | else |
bec39cab AC |
19517 | echo "$as_me: failed program was:" >&5 |
19518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19519 | ||
b4e70030 | 19520 | ac_cv_member_struct_reg_r_fs=no |
3862412b | 19521 | fi |
bec39cab | 19522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 19523 | fi |
5c45e068 MK |
19524 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19525 | fi | |
b4e70030 JB |
19526 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5 |
19527 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6 | |
5c45e068 MK |
19528 | if test $ac_cv_member_struct_reg_r_fs = yes; then |
19529 | ||
19530 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 19531 | #define HAVE_STRUCT_REG_R_FS 1 |
bec39cab | 19532 | _ACEOF |
3862412b | 19533 | |
5c45e068 | 19534 | |
97bf5e38 | 19535 | fi |
b4e70030 JB |
19536 | echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5 |
19537 | echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6 | |
5c45e068 | 19538 | if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then |
bec39cab | 19539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 19540 | else |
bec39cab AC |
19541 | cat >conftest.$ac_ext <<_ACEOF |
19542 | /* confdefs.h. */ | |
19543 | _ACEOF | |
19544 | cat confdefs.h >>conftest.$ac_ext | |
19545 | cat >>conftest.$ac_ext <<_ACEOF | |
19546 | /* end confdefs.h. */ | |
a3828db0 | 19547 | #include <machine/reg.h> |
5c45e068 | 19548 | |
bec39cab AC |
19549 | int |
19550 | main () | |
19551 | { | |
5c45e068 MK |
19552 | static struct reg ac_aggr; |
19553 | if (ac_aggr.r_gs) | |
19554 | return 0; | |
bec39cab AC |
19555 | ; |
19556 | return 0; | |
19557 | } | |
19558 | _ACEOF | |
19559 | rm -f conftest.$ac_objext | |
19560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19561 | (eval $ac_compile) 2>conftest.er1 | |
19562 | ac_status=$? | |
19563 | grep -v '^ *+' conftest.er1 >conftest.err | |
19564 | rm -f conftest.er1 | |
19565 | cat conftest.err >&5 | |
19566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19567 | (exit $ac_status); } && | |
b4e70030 JB |
19568 | { ac_try='test -z "$ac_c_werror_flag" |
19569 | || test ! -s conftest.err' | |
bec39cab AC |
19570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19571 | (eval $ac_try) 2>&5 | |
19572 | ac_status=$? | |
19573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19574 | (exit $ac_status); }; } && | |
19575 | { ac_try='test -s conftest.$ac_objext' | |
19576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19577 | (eval $ac_try) 2>&5 | |
19578 | ac_status=$? | |
19579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19580 | (exit $ac_status); }; }; then | |
5c45e068 | 19581 | ac_cv_member_struct_reg_r_gs=yes |
3862412b | 19582 | else |
bec39cab AC |
19583 | echo "$as_me: failed program was:" >&5 |
19584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19585 | ||
b4e70030 | 19586 | cat >conftest.$ac_ext <<_ACEOF |
5c45e068 MK |
19587 | /* confdefs.h. */ |
19588 | _ACEOF | |
19589 | cat confdefs.h >>conftest.$ac_ext | |
19590 | cat >>conftest.$ac_ext <<_ACEOF | |
19591 | /* end confdefs.h. */ | |
19592 | #include <machine/reg.h> | |
19593 | ||
19594 | int | |
19595 | main () | |
19596 | { | |
19597 | static struct reg ac_aggr; | |
19598 | if (sizeof ac_aggr.r_gs) | |
19599 | return 0; | |
19600 | ; | |
19601 | return 0; | |
19602 | } | |
19603 | _ACEOF | |
19604 | rm -f conftest.$ac_objext | |
19605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19606 | (eval $ac_compile) 2>conftest.er1 | |
19607 | ac_status=$? | |
19608 | grep -v '^ *+' conftest.er1 >conftest.err | |
19609 | rm -f conftest.er1 | |
19610 | cat conftest.err >&5 | |
19611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19612 | (exit $ac_status); } && | |
b4e70030 JB |
19613 | { ac_try='test -z "$ac_c_werror_flag" |
19614 | || test ! -s conftest.err' | |
5c45e068 MK |
19615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19616 | (eval $ac_try) 2>&5 | |
19617 | ac_status=$? | |
19618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19619 | (exit $ac_status); }; } && | |
19620 | { ac_try='test -s conftest.$ac_objext' | |
19621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19622 | (eval $ac_try) 2>&5 | |
19623 | ac_status=$? | |
19624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19625 | (exit $ac_status); }; }; then | |
19626 | ac_cv_member_struct_reg_r_gs=yes | |
19627 | else | |
19628 | echo "$as_me: failed program was:" >&5 | |
19629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19630 | ||
b4e70030 | 19631 | ac_cv_member_struct_reg_r_gs=no |
3862412b | 19632 | fi |
bec39cab | 19633 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b | 19634 | fi |
5c45e068 MK |
19635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19636 | fi | |
b4e70030 JB |
19637 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5 |
19638 | echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6 | |
5c45e068 MK |
19639 | if test $ac_cv_member_struct_reg_r_gs = yes; then |
19640 | ||
19641 | cat >>confdefs.h <<_ACEOF | |
a3828db0 | 19642 | #define HAVE_STRUCT_REG_R_GS 1 |
bec39cab | 19643 | _ACEOF |
3862412b | 19644 | |
5c45e068 | 19645 | |
97bf5e38 | 19646 | fi |
3862412b | 19647 | |
5c45e068 | 19648 | |
a3828db0 | 19649 | # See if <sys/ptrace.h> provides the PTRACE_GETREGS request. |
b4e70030 JB |
19650 | echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5 |
19651 | echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6 | |
a3828db0 | 19652 | if test "${gdb_cv_have_ptrace_getregs+set}" = set; then |
bec39cab | 19653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 19654 | else |
bec39cab AC |
19655 | cat >conftest.$ac_ext <<_ACEOF |
19656 | /* confdefs.h. */ | |
19657 | _ACEOF | |
19658 | cat confdefs.h >>conftest.$ac_ext | |
19659 | cat >>conftest.$ac_ext <<_ACEOF | |
19660 | /* end confdefs.h. */ | |
a3828db0 | 19661 | #include <sys/ptrace.h> |
bec39cab AC |
19662 | int |
19663 | main () | |
19664 | { | |
a3828db0 | 19665 | PTRACE_GETREGS; |
bec39cab AC |
19666 | ; |
19667 | return 0; | |
19668 | } | |
19669 | _ACEOF | |
19670 | rm -f conftest.$ac_objext | |
19671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19672 | (eval $ac_compile) 2>conftest.er1 | |
19673 | ac_status=$? | |
19674 | grep -v '^ *+' conftest.er1 >conftest.err | |
19675 | rm -f conftest.er1 | |
19676 | cat conftest.err >&5 | |
19677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19678 | (exit $ac_status); } && | |
b4e70030 JB |
19679 | { ac_try='test -z "$ac_c_werror_flag" |
19680 | || test ! -s conftest.err' | |
bec39cab AC |
19681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19682 | (eval $ac_try) 2>&5 | |
19683 | ac_status=$? | |
19684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19685 | (exit $ac_status); }; } && | |
19686 | { ac_try='test -s conftest.$ac_objext' | |
19687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19688 | (eval $ac_try) 2>&5 | |
19689 | ac_status=$? | |
19690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19691 | (exit $ac_status); }; }; then | |
a3828db0 | 19692 | gdb_cv_have_ptrace_getregs=yes |
451928c5 | 19693 | else |
bec39cab AC |
19694 | echo "$as_me: failed program was:" >&5 |
19695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19696 | ||
b4e70030 | 19697 | gdb_cv_have_ptrace_getregs=no |
451928c5 | 19698 | fi |
bec39cab | 19699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
19700 | fi |
19701 | ||
b4e70030 JB |
19702 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5 |
19703 | echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6 | |
a3828db0 | 19704 | if test $gdb_cv_have_ptrace_getregs = yes; then |
60ca704f SE |
19705 | |
19706 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19707 | #define HAVE_PTRACE_GETREGS 1 |
bec39cab | 19708 | _ACEOF |
451928c5 | 19709 | |
97bf5e38 | 19710 | fi |
451928c5 | 19711 | |
a3828db0 | 19712 | # See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request. |
b4e70030 JB |
19713 | echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5 |
19714 | echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6 | |
a3828db0 | 19715 | if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then |
bec39cab | 19716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
451928c5 | 19717 | else |
bec39cab AC |
19718 | cat >conftest.$ac_ext <<_ACEOF |
19719 | /* confdefs.h. */ | |
19720 | _ACEOF | |
19721 | cat confdefs.h >>conftest.$ac_ext | |
19722 | cat >>conftest.$ac_ext <<_ACEOF | |
19723 | /* end confdefs.h. */ | |
a3828db0 | 19724 | #include <sys/ptrace.h> |
bec39cab AC |
19725 | int |
19726 | main () | |
19727 | { | |
a3828db0 | 19728 | PTRACE_GETFPXREGS; |
bec39cab AC |
19729 | ; |
19730 | return 0; | |
19731 | } | |
19732 | _ACEOF | |
19733 | rm -f conftest.$ac_objext | |
19734 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19735 | (eval $ac_compile) 2>conftest.er1 | |
19736 | ac_status=$? | |
19737 | grep -v '^ *+' conftest.er1 >conftest.err | |
19738 | rm -f conftest.er1 | |
19739 | cat conftest.err >&5 | |
19740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19741 | (exit $ac_status); } && | |
b4e70030 JB |
19742 | { ac_try='test -z "$ac_c_werror_flag" |
19743 | || test ! -s conftest.err' | |
bec39cab AC |
19744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19745 | (eval $ac_try) 2>&5 | |
19746 | ac_status=$? | |
19747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19748 | (exit $ac_status); }; } && | |
19749 | { ac_try='test -s conftest.$ac_objext' | |
19750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19751 | (eval $ac_try) 2>&5 | |
19752 | ac_status=$? | |
19753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19754 | (exit $ac_status); }; }; then | |
a3828db0 | 19755 | gdb_cv_have_ptrace_getfpxregs=yes |
451928c5 | 19756 | else |
bec39cab AC |
19757 | echo "$as_me: failed program was:" >&5 |
19758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19759 | ||
b4e70030 | 19760 | gdb_cv_have_ptrace_getfpxregs=no |
451928c5 | 19761 | fi |
bec39cab | 19762 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
451928c5 AC |
19763 | fi |
19764 | ||
b4e70030 JB |
19765 | echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5 |
19766 | echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6 | |
a3828db0 | 19767 | if test $gdb_cv_have_ptrace_getfpxregs = yes; then |
60ca704f SE |
19768 | |
19769 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19770 | #define HAVE_PTRACE_GETFPXREGS 1 |
bec39cab | 19771 | _ACEOF |
451928c5 | 19772 | |
97bf5e38 | 19773 | fi |
451928c5 | 19774 | |
a3828db0 | 19775 | # See if <sys/ptrace.h> provides the PT_GETDBREGS request. |
b4e70030 JB |
19776 | echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5 |
19777 | echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6 | |
a3828db0 | 19778 | if test "${gdb_cv_have_pt_getdbregs+set}" = set; then |
bec39cab | 19779 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 19780 | else |
bec39cab AC |
19781 | cat >conftest.$ac_ext <<_ACEOF |
19782 | /* confdefs.h. */ | |
19783 | _ACEOF | |
19784 | cat confdefs.h >>conftest.$ac_ext | |
19785 | cat >>conftest.$ac_ext <<_ACEOF | |
19786 | /* end confdefs.h. */ | |
a3828db0 MK |
19787 | #include <sys/types.h> |
19788 | #include <sys/ptrace.h> | |
bec39cab AC |
19789 | int |
19790 | main () | |
19791 | { | |
a3828db0 | 19792 | PT_GETDBREGS; |
bec39cab AC |
19793 | ; |
19794 | return 0; | |
19795 | } | |
19796 | _ACEOF | |
19797 | rm -f conftest.$ac_objext | |
19798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19799 | (eval $ac_compile) 2>conftest.er1 | |
19800 | ac_status=$? | |
19801 | grep -v '^ *+' conftest.er1 >conftest.err | |
19802 | rm -f conftest.er1 | |
19803 | cat conftest.err >&5 | |
19804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19805 | (exit $ac_status); } && | |
b4e70030 JB |
19806 | { ac_try='test -z "$ac_c_werror_flag" |
19807 | || test ! -s conftest.err' | |
bec39cab AC |
19808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19809 | (eval $ac_try) 2>&5 | |
19810 | ac_status=$? | |
19811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19812 | (exit $ac_status); }; } && | |
19813 | { ac_try='test -s conftest.$ac_objext' | |
19814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19815 | (eval $ac_try) 2>&5 | |
19816 | ac_status=$? | |
19817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19818 | (exit $ac_status); }; }; then | |
a3828db0 | 19819 | gdb_cv_have_pt_getdbregs=yes |
3862412b | 19820 | else |
bec39cab AC |
19821 | echo "$as_me: failed program was:" >&5 |
19822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19823 | ||
b4e70030 | 19824 | gdb_cv_have_pt_getdbregs=no |
3862412b | 19825 | fi |
bec39cab | 19826 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
19827 | fi |
19828 | ||
b4e70030 JB |
19829 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5 |
19830 | echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6 | |
a3828db0 | 19831 | if test $gdb_cv_have_pt_getdbregs = yes; then |
60ca704f SE |
19832 | |
19833 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19834 | #define HAVE_PT_GETDBREGS 1 |
bec39cab | 19835 | _ACEOF |
3862412b | 19836 | |
97bf5e38 | 19837 | fi |
3862412b | 19838 | |
a3828db0 | 19839 | # See if <sys/ptrace.h> provides the PT_GETXMMREGS request. |
b4e70030 JB |
19840 | echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5 |
19841 | echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6 | |
a3828db0 | 19842 | if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then |
bec39cab | 19843 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3862412b | 19844 | else |
bec39cab AC |
19845 | cat >conftest.$ac_ext <<_ACEOF |
19846 | /* confdefs.h. */ | |
19847 | _ACEOF | |
19848 | cat confdefs.h >>conftest.$ac_ext | |
19849 | cat >>conftest.$ac_ext <<_ACEOF | |
19850 | /* end confdefs.h. */ | |
a3828db0 MK |
19851 | #include <sys/types.h> |
19852 | #include <sys/ptrace.h> | |
bec39cab AC |
19853 | int |
19854 | main () | |
19855 | { | |
a3828db0 | 19856 | PT_GETXMMREGS; |
bec39cab AC |
19857 | ; |
19858 | return 0; | |
19859 | } | |
19860 | _ACEOF | |
19861 | rm -f conftest.$ac_objext | |
19862 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19863 | (eval $ac_compile) 2>conftest.er1 | |
19864 | ac_status=$? | |
19865 | grep -v '^ *+' conftest.er1 >conftest.err | |
19866 | rm -f conftest.er1 | |
19867 | cat conftest.err >&5 | |
19868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19869 | (exit $ac_status); } && | |
b4e70030 JB |
19870 | { ac_try='test -z "$ac_c_werror_flag" |
19871 | || test ! -s conftest.err' | |
bec39cab AC |
19872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19873 | (eval $ac_try) 2>&5 | |
19874 | ac_status=$? | |
19875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19876 | (exit $ac_status); }; } && | |
19877 | { ac_try='test -s conftest.$ac_objext' | |
19878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19879 | (eval $ac_try) 2>&5 | |
19880 | ac_status=$? | |
19881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19882 | (exit $ac_status); }; }; then | |
a3828db0 | 19883 | gdb_cv_have_pt_getxmmregs=yes |
3862412b | 19884 | else |
bec39cab AC |
19885 | echo "$as_me: failed program was:" >&5 |
19886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19887 | ||
b4e70030 | 19888 | gdb_cv_have_pt_getxmmregs=no |
3862412b | 19889 | fi |
bec39cab | 19890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3862412b MK |
19891 | fi |
19892 | ||
b4e70030 JB |
19893 | echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5 |
19894 | echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6 | |
a3828db0 | 19895 | if test $gdb_cv_have_pt_getxmmregs = yes; then |
60ca704f SE |
19896 | |
19897 | cat >>confdefs.h <<\_ACEOF | |
a3828db0 | 19898 | #define HAVE_PT_GETXMMREGS 1 |
bec39cab | 19899 | _ACEOF |
3862412b | 19900 | |
97bf5e38 | 19901 | fi |
3862412b | 19902 | |
eb368090 | 19903 | # Detect which type of /proc is in use, such as for Unixware or Solaris. |
97bf5e38 MK |
19904 | |
19905 | if test "${target}" = "${host}"; then | |
19906 | case "${host}" in | |
97bf5e38 | 19907 | *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* ) |
60ca704f SE |
19908 | |
19909 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19910 | #define NEW_PROC_API 1 |
bec39cab | 19911 | _ACEOF |
97bf5e38 MK |
19912 | |
19913 | ;; | |
0bbc026e | 19914 | *-*-solaris2.[6789] | *-*-solaris2.1[0-9]) |
60ca704f SE |
19915 | |
19916 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19917 | #define NEW_PROC_API 1 |
bec39cab | 19918 | _ACEOF |
c960c18f AC |
19919 | |
19920 | ;; | |
19921 | mips-sgi-irix5*) | |
19922 | # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5. | |
60ca704f SE |
19923 | |
19924 | cat >>confdefs.h <<\_ACEOF | |
c960c18f | 19925 | #define _KMEMUSER 1 |
bec39cab | 19926 | _ACEOF |
97bf5e38 MK |
19927 | |
19928 | ;; | |
19929 | esac | |
19930 | fi | |
19931 | ||
19932 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
b4e70030 JB |
19933 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
19934 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
19935 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then |
19936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19937 | else | |
19938 | cat >conftest.$ac_ext <<_ACEOF | |
19939 | /* confdefs.h. */ | |
19940 | _ACEOF | |
19941 | cat confdefs.h >>conftest.$ac_ext | |
19942 | cat >>conftest.$ac_ext <<_ACEOF | |
19943 | /* end confdefs.h. */ | |
596c9d4b KB |
19944 | |
19945 | #define _SYSCALL32 | |
19946 | #include <sys/procfs.h> | |
bec39cab AC |
19947 | int |
19948 | main () | |
19949 | { | |
97bf5e38 | 19950 | pstatus_t avar |
bec39cab AC |
19951 | ; |
19952 | return 0; | |
19953 | } | |
19954 | _ACEOF | |
19955 | rm -f conftest.$ac_objext | |
19956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19957 | (eval $ac_compile) 2>conftest.er1 | |
19958 | ac_status=$? | |
19959 | grep -v '^ *+' conftest.er1 >conftest.err | |
19960 | rm -f conftest.er1 | |
19961 | cat conftest.err >&5 | |
19962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19963 | (exit $ac_status); } && | |
b4e70030 JB |
19964 | { ac_try='test -z "$ac_c_werror_flag" |
19965 | || test ! -s conftest.err' | |
bec39cab AC |
19966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19967 | (eval $ac_try) 2>&5 | |
19968 | ac_status=$? | |
19969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19970 | (exit $ac_status); }; } && | |
19971 | { ac_try='test -s conftest.$ac_objext' | |
19972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19973 | (eval $ac_try) 2>&5 | |
19974 | ac_status=$? | |
19975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19976 | (exit $ac_status); }; }; then | |
97bf5e38 | 19977 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
596c9d4b | 19978 | else |
bec39cab AC |
19979 | echo "$as_me: failed program was:" >&5 |
19980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19981 | ||
b4e70030 | 19982 | bfd_cv_have_sys_procfs_type_pstatus_t=no |
bec39cab | 19983 | |
596c9d4b | 19984 | fi |
bec39cab | 19985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
19986 | fi |
19987 | ||
97bf5e38 | 19988 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then |
bec39cab AC |
19989 | |
19990 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 19991 | #define HAVE_PSTATUS_T 1 |
bec39cab | 19992 | _ACEOF |
596c9d4b KB |
19993 | |
19994 | fi | |
b4e70030 JB |
19995 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
19996 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
596c9d4b | 19997 | |
b4e70030 JB |
19998 | echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5 |
19999 | echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20000 | if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then |
20001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 20002 | else |
bec39cab AC |
20003 | cat >conftest.$ac_ext <<_ACEOF |
20004 | /* confdefs.h. */ | |
20005 | _ACEOF | |
20006 | cat confdefs.h >>conftest.$ac_ext | |
20007 | cat >>conftest.$ac_ext <<_ACEOF | |
20008 | /* end confdefs.h. */ | |
596c9d4b KB |
20009 | |
20010 | #define _SYSCALL32 | |
20011 | #include <sys/procfs.h> | |
bec39cab AC |
20012 | int |
20013 | main () | |
20014 | { | |
97bf5e38 | 20015 | prrun_t avar |
bec39cab AC |
20016 | ; |
20017 | return 0; | |
20018 | } | |
20019 | _ACEOF | |
20020 | rm -f conftest.$ac_objext | |
20021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20022 | (eval $ac_compile) 2>conftest.er1 | |
20023 | ac_status=$? | |
20024 | grep -v '^ *+' conftest.er1 >conftest.err | |
20025 | rm -f conftest.er1 | |
20026 | cat conftest.err >&5 | |
20027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20028 | (exit $ac_status); } && | |
b4e70030 JB |
20029 | { ac_try='test -z "$ac_c_werror_flag" |
20030 | || test ! -s conftest.err' | |
bec39cab AC |
20031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20032 | (eval $ac_try) 2>&5 | |
20033 | ac_status=$? | |
20034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20035 | (exit $ac_status); }; } && | |
20036 | { ac_try='test -s conftest.$ac_objext' | |
20037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20038 | (eval $ac_try) 2>&5 | |
20039 | ac_status=$? | |
20040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20041 | (exit $ac_status); }; }; then | |
97bf5e38 | 20042 | bfd_cv_have_sys_procfs_type_prrun_t=yes |
596c9d4b | 20043 | else |
bec39cab AC |
20044 | echo "$as_me: failed program was:" >&5 |
20045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20046 | ||
b4e70030 | 20047 | bfd_cv_have_sys_procfs_type_prrun_t=no |
bec39cab | 20048 | |
596c9d4b | 20049 | fi |
bec39cab | 20050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
20051 | fi |
20052 | ||
97bf5e38 | 20053 | if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then |
bec39cab AC |
20054 | |
20055 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20056 | #define HAVE_PRRUN_T 1 |
bec39cab | 20057 | _ACEOF |
596c9d4b KB |
20058 | |
20059 | fi | |
b4e70030 JB |
20060 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5 |
20061 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6 | |
596c9d4b | 20062 | |
b4e70030 JB |
20063 | echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5 |
20064 | echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20065 | if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then |
20066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
596c9d4b | 20067 | else |
bec39cab AC |
20068 | cat >conftest.$ac_ext <<_ACEOF |
20069 | /* confdefs.h. */ | |
20070 | _ACEOF | |
20071 | cat confdefs.h >>conftest.$ac_ext | |
20072 | cat >>conftest.$ac_ext <<_ACEOF | |
20073 | /* end confdefs.h. */ | |
596c9d4b KB |
20074 | |
20075 | #define _SYSCALL32 | |
20076 | #include <sys/procfs.h> | |
bec39cab AC |
20077 | int |
20078 | main () | |
20079 | { | |
97bf5e38 | 20080 | gregset_t avar |
bec39cab AC |
20081 | ; |
20082 | return 0; | |
20083 | } | |
20084 | _ACEOF | |
20085 | rm -f conftest.$ac_objext | |
20086 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20087 | (eval $ac_compile) 2>conftest.er1 | |
20088 | ac_status=$? | |
20089 | grep -v '^ *+' conftest.er1 >conftest.err | |
20090 | rm -f conftest.er1 | |
20091 | cat conftest.err >&5 | |
20092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20093 | (exit $ac_status); } && | |
b4e70030 JB |
20094 | { ac_try='test -z "$ac_c_werror_flag" |
20095 | || test ! -s conftest.err' | |
bec39cab AC |
20096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20097 | (eval $ac_try) 2>&5 | |
20098 | ac_status=$? | |
20099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20100 | (exit $ac_status); }; } && | |
20101 | { ac_try='test -s conftest.$ac_objext' | |
20102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20103 | (eval $ac_try) 2>&5 | |
20104 | ac_status=$? | |
20105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20106 | (exit $ac_status); }; }; then | |
97bf5e38 | 20107 | bfd_cv_have_sys_procfs_type_gregset_t=yes |
596c9d4b | 20108 | else |
bec39cab AC |
20109 | echo "$as_me: failed program was:" >&5 |
20110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20111 | ||
b4e70030 | 20112 | bfd_cv_have_sys_procfs_type_gregset_t=no |
bec39cab | 20113 | |
596c9d4b | 20114 | fi |
bec39cab | 20115 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
596c9d4b KB |
20116 | fi |
20117 | ||
97bf5e38 | 20118 | if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then |
bec39cab AC |
20119 | |
20120 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20121 | #define HAVE_GREGSET_T 1 |
bec39cab | 20122 | _ACEOF |
596c9d4b KB |
20123 | |
20124 | fi | |
b4e70030 JB |
20125 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5 |
20126 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6 | |
451928c5 | 20127 | |
b4e70030 JB |
20128 | echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5 |
20129 | echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20130 | if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then |
20131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d84dd0c5 | 20132 | else |
bec39cab AC |
20133 | cat >conftest.$ac_ext <<_ACEOF |
20134 | /* confdefs.h. */ | |
20135 | _ACEOF | |
20136 | cat confdefs.h >>conftest.$ac_ext | |
20137 | cat >>conftest.$ac_ext <<_ACEOF | |
20138 | /* end confdefs.h. */ | |
97bf5e38 MK |
20139 | |
20140 | #define _SYSCALL32 | |
d84dd0c5 | 20141 | #include <sys/procfs.h> |
bec39cab AC |
20142 | int |
20143 | main () | |
20144 | { | |
97bf5e38 | 20145 | fpregset_t avar |
bec39cab AC |
20146 | ; |
20147 | return 0; | |
20148 | } | |
20149 | _ACEOF | |
20150 | rm -f conftest.$ac_objext | |
20151 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20152 | (eval $ac_compile) 2>conftest.er1 | |
20153 | ac_status=$? | |
20154 | grep -v '^ *+' conftest.er1 >conftest.err | |
20155 | rm -f conftest.er1 | |
20156 | cat conftest.err >&5 | |
20157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20158 | (exit $ac_status); } && | |
b4e70030 JB |
20159 | { ac_try='test -z "$ac_c_werror_flag" |
20160 | || test ! -s conftest.err' | |
bec39cab AC |
20161 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20162 | (eval $ac_try) 2>&5 | |
20163 | ac_status=$? | |
20164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20165 | (exit $ac_status); }; } && | |
20166 | { ac_try='test -s conftest.$ac_objext' | |
20167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20168 | (eval $ac_try) 2>&5 | |
20169 | ac_status=$? | |
20170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20171 | (exit $ac_status); }; }; then | |
97bf5e38 | 20172 | bfd_cv_have_sys_procfs_type_fpregset_t=yes |
d84dd0c5 | 20173 | else |
bec39cab AC |
20174 | echo "$as_me: failed program was:" >&5 |
20175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20176 | ||
b4e70030 | 20177 | bfd_cv_have_sys_procfs_type_fpregset_t=no |
bec39cab | 20178 | |
d84dd0c5 | 20179 | fi |
bec39cab | 20180 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d84dd0c5 MK |
20181 | fi |
20182 | ||
97bf5e38 | 20183 | if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then |
bec39cab AC |
20184 | |
20185 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20186 | #define HAVE_FPREGSET_T 1 |
bec39cab | 20187 | _ACEOF |
d84dd0c5 | 20188 | |
97bf5e38 | 20189 | fi |
b4e70030 JB |
20190 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5 |
20191 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6 | |
d84dd0c5 | 20192 | |
b4e70030 JB |
20193 | echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5 |
20194 | echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20195 | if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then |
20196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20197 | else |
bec39cab AC |
20198 | cat >conftest.$ac_ext <<_ACEOF |
20199 | /* confdefs.h. */ | |
20200 | _ACEOF | |
20201 | cat confdefs.h >>conftest.$ac_ext | |
20202 | cat >>conftest.$ac_ext <<_ACEOF | |
20203 | /* end confdefs.h. */ | |
c906108c | 20204 | |
97bf5e38 MK |
20205 | #define _SYSCALL32 |
20206 | #include <sys/procfs.h> | |
bec39cab AC |
20207 | int |
20208 | main () | |
20209 | { | |
97bf5e38 | 20210 | prgregset_t avar |
bec39cab AC |
20211 | ; |
20212 | return 0; | |
20213 | } | |
20214 | _ACEOF | |
20215 | rm -f conftest.$ac_objext | |
20216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20217 | (eval $ac_compile) 2>conftest.er1 | |
20218 | ac_status=$? | |
20219 | grep -v '^ *+' conftest.er1 >conftest.err | |
20220 | rm -f conftest.er1 | |
20221 | cat conftest.err >&5 | |
20222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20223 | (exit $ac_status); } && | |
b4e70030 JB |
20224 | { ac_try='test -z "$ac_c_werror_flag" |
20225 | || test ! -s conftest.err' | |
bec39cab AC |
20226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20227 | (eval $ac_try) 2>&5 | |
20228 | ac_status=$? | |
20229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20230 | (exit $ac_status); }; } && | |
20231 | { ac_try='test -s conftest.$ac_objext' | |
20232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20233 | (eval $ac_try) 2>&5 | |
20234 | ac_status=$? | |
20235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20236 | (exit $ac_status); }; }; then | |
97bf5e38 | 20237 | bfd_cv_have_sys_procfs_type_prgregset_t=yes |
c906108c | 20238 | else |
bec39cab AC |
20239 | echo "$as_me: failed program was:" >&5 |
20240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20241 | ||
b4e70030 | 20242 | bfd_cv_have_sys_procfs_type_prgregset_t=no |
bec39cab | 20243 | |
c906108c | 20244 | fi |
bec39cab | 20245 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20246 | fi |
20247 | ||
97bf5e38 | 20248 | if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then |
bec39cab AC |
20249 | |
20250 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20251 | #define HAVE_PRGREGSET_T 1 |
bec39cab | 20252 | _ACEOF |
c906108c | 20253 | |
97bf5e38 | 20254 | fi |
b4e70030 JB |
20255 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5 |
20256 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6 | |
c906108c | 20257 | |
b4e70030 JB |
20258 | echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5 |
20259 | echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20260 | if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then |
20261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 20262 | else |
bec39cab AC |
20263 | cat >conftest.$ac_ext <<_ACEOF |
20264 | /* confdefs.h. */ | |
20265 | _ACEOF | |
20266 | cat confdefs.h >>conftest.$ac_ext | |
20267 | cat >>conftest.$ac_ext <<_ACEOF | |
20268 | /* end confdefs.h. */ | |
97bf5e38 MK |
20269 | |
20270 | #define _SYSCALL32 | |
20271 | #include <sys/procfs.h> | |
bec39cab AC |
20272 | int |
20273 | main () | |
20274 | { | |
97bf5e38 | 20275 | prfpregset_t avar |
bec39cab AC |
20276 | ; |
20277 | return 0; | |
20278 | } | |
20279 | _ACEOF | |
20280 | rm -f conftest.$ac_objext | |
20281 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20282 | (eval $ac_compile) 2>conftest.er1 | |
20283 | ac_status=$? | |
20284 | grep -v '^ *+' conftest.er1 >conftest.err | |
20285 | rm -f conftest.er1 | |
20286 | cat conftest.err >&5 | |
20287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20288 | (exit $ac_status); } && | |
b4e70030 JB |
20289 | { ac_try='test -z "$ac_c_werror_flag" |
20290 | || test ! -s conftest.err' | |
bec39cab AC |
20291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20292 | (eval $ac_try) 2>&5 | |
20293 | ac_status=$? | |
20294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20295 | (exit $ac_status); }; } && | |
20296 | { ac_try='test -s conftest.$ac_objext' | |
20297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20298 | (eval $ac_try) 2>&5 | |
20299 | ac_status=$? | |
20300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20301 | (exit $ac_status); }; }; then | |
97bf5e38 | 20302 | bfd_cv_have_sys_procfs_type_prfpregset_t=yes |
d45fe813 | 20303 | else |
bec39cab AC |
20304 | echo "$as_me: failed program was:" >&5 |
20305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20306 | ||
b4e70030 | 20307 | bfd_cv_have_sys_procfs_type_prfpregset_t=no |
bec39cab | 20308 | |
d45fe813 | 20309 | fi |
bec39cab | 20310 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
20311 | fi |
20312 | ||
97bf5e38 | 20313 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
bec39cab AC |
20314 | |
20315 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20316 | #define HAVE_PRFPREGSET_T 1 |
bec39cab | 20317 | _ACEOF |
d45fe813 | 20318 | |
97bf5e38 | 20319 | fi |
b4e70030 JB |
20320 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5 |
20321 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6 | |
d45fe813 | 20322 | |
b4e70030 JB |
20323 | echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5 |
20324 | echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20325 | if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then |
20326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 20327 | else |
bec39cab AC |
20328 | cat >conftest.$ac_ext <<_ACEOF |
20329 | /* confdefs.h. */ | |
20330 | _ACEOF | |
20331 | cat confdefs.h >>conftest.$ac_ext | |
20332 | cat >>conftest.$ac_ext <<_ACEOF | |
20333 | /* end confdefs.h. */ | |
97bf5e38 MK |
20334 | |
20335 | #define _SYSCALL32 | |
20336 | #include <sys/procfs.h> | |
bec39cab AC |
20337 | int |
20338 | main () | |
20339 | { | |
97bf5e38 | 20340 | prgregset32_t avar |
bec39cab AC |
20341 | ; |
20342 | return 0; | |
20343 | } | |
20344 | _ACEOF | |
20345 | rm -f conftest.$ac_objext | |
20346 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20347 | (eval $ac_compile) 2>conftest.er1 | |
20348 | ac_status=$? | |
20349 | grep -v '^ *+' conftest.er1 >conftest.err | |
20350 | rm -f conftest.er1 | |
20351 | cat conftest.err >&5 | |
20352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20353 | (exit $ac_status); } && | |
b4e70030 JB |
20354 | { ac_try='test -z "$ac_c_werror_flag" |
20355 | || test ! -s conftest.err' | |
bec39cab AC |
20356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20357 | (eval $ac_try) 2>&5 | |
20358 | ac_status=$? | |
20359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20360 | (exit $ac_status); }; } && | |
20361 | { ac_try='test -s conftest.$ac_objext' | |
20362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20363 | (eval $ac_try) 2>&5 | |
20364 | ac_status=$? | |
20365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20366 | (exit $ac_status); }; }; then | |
97bf5e38 | 20367 | bfd_cv_have_sys_procfs_type_prgregset32_t=yes |
d45fe813 | 20368 | else |
bec39cab AC |
20369 | echo "$as_me: failed program was:" >&5 |
20370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20371 | ||
b4e70030 | 20372 | bfd_cv_have_sys_procfs_type_prgregset32_t=no |
bec39cab | 20373 | |
d45fe813 | 20374 | fi |
bec39cab | 20375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
20376 | fi |
20377 | ||
97bf5e38 | 20378 | if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then |
bec39cab AC |
20379 | |
20380 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20381 | #define HAVE_PRGREGSET32_T 1 |
bec39cab | 20382 | _ACEOF |
d45fe813 | 20383 | |
97bf5e38 | 20384 | fi |
b4e70030 JB |
20385 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5 |
20386 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6 | |
d45fe813 | 20387 | |
b4e70030 JB |
20388 | echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5 |
20389 | echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20390 | if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then |
20391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 20392 | else |
bec39cab AC |
20393 | cat >conftest.$ac_ext <<_ACEOF |
20394 | /* confdefs.h. */ | |
20395 | _ACEOF | |
20396 | cat confdefs.h >>conftest.$ac_ext | |
20397 | cat >>conftest.$ac_ext <<_ACEOF | |
20398 | /* end confdefs.h. */ | |
97bf5e38 MK |
20399 | |
20400 | #define _SYSCALL32 | |
20401 | #include <sys/procfs.h> | |
bec39cab AC |
20402 | int |
20403 | main () | |
20404 | { | |
97bf5e38 | 20405 | prfpregset32_t avar |
bec39cab AC |
20406 | ; |
20407 | return 0; | |
20408 | } | |
20409 | _ACEOF | |
20410 | rm -f conftest.$ac_objext | |
20411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20412 | (eval $ac_compile) 2>conftest.er1 | |
20413 | ac_status=$? | |
20414 | grep -v '^ *+' conftest.er1 >conftest.err | |
20415 | rm -f conftest.er1 | |
20416 | cat conftest.err >&5 | |
20417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20418 | (exit $ac_status); } && | |
b4e70030 JB |
20419 | { ac_try='test -z "$ac_c_werror_flag" |
20420 | || test ! -s conftest.err' | |
bec39cab AC |
20421 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20422 | (eval $ac_try) 2>&5 | |
20423 | ac_status=$? | |
20424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20425 | (exit $ac_status); }; } && | |
20426 | { ac_try='test -s conftest.$ac_objext' | |
20427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20428 | (eval $ac_try) 2>&5 | |
20429 | ac_status=$? | |
20430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20431 | (exit $ac_status); }; }; then | |
97bf5e38 | 20432 | bfd_cv_have_sys_procfs_type_prfpregset32_t=yes |
d45fe813 | 20433 | else |
bec39cab AC |
20434 | echo "$as_me: failed program was:" >&5 |
20435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20436 | ||
b4e70030 | 20437 | bfd_cv_have_sys_procfs_type_prfpregset32_t=no |
bec39cab | 20438 | |
d45fe813 | 20439 | fi |
bec39cab | 20440 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
20441 | fi |
20442 | ||
97bf5e38 | 20443 | if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then |
bec39cab AC |
20444 | |
20445 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20446 | #define HAVE_PRFPREGSET32_T 1 |
bec39cab | 20447 | _ACEOF |
d45fe813 | 20448 | |
97bf5e38 | 20449 | fi |
b4e70030 JB |
20450 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5 |
20451 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6 | |
d45fe813 | 20452 | |
b4e70030 JB |
20453 | echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5 |
20454 | echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20455 | if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then |
20456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d45fe813 | 20457 | else |
bec39cab AC |
20458 | cat >conftest.$ac_ext <<_ACEOF |
20459 | /* confdefs.h. */ | |
20460 | _ACEOF | |
20461 | cat confdefs.h >>conftest.$ac_ext | |
20462 | cat >>conftest.$ac_ext <<_ACEOF | |
20463 | /* end confdefs.h. */ | |
97bf5e38 | 20464 | |
d45fe813 | 20465 | #define _SYSCALL32 |
97bf5e38 | 20466 | #include <sys/procfs.h> |
bec39cab AC |
20467 | int |
20468 | main () | |
20469 | { | |
97bf5e38 | 20470 | lwpid_t avar |
bec39cab AC |
20471 | ; |
20472 | return 0; | |
20473 | } | |
20474 | _ACEOF | |
20475 | rm -f conftest.$ac_objext | |
20476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20477 | (eval $ac_compile) 2>conftest.er1 | |
20478 | ac_status=$? | |
20479 | grep -v '^ *+' conftest.er1 >conftest.err | |
20480 | rm -f conftest.er1 | |
20481 | cat conftest.err >&5 | |
20482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20483 | (exit $ac_status); } && | |
b4e70030 JB |
20484 | { ac_try='test -z "$ac_c_werror_flag" |
20485 | || test ! -s conftest.err' | |
bec39cab AC |
20486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20487 | (eval $ac_try) 2>&5 | |
20488 | ac_status=$? | |
20489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20490 | (exit $ac_status); }; } && | |
20491 | { ac_try='test -s conftest.$ac_objext' | |
20492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20493 | (eval $ac_try) 2>&5 | |
20494 | ac_status=$? | |
20495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20496 | (exit $ac_status); }; }; then | |
97bf5e38 | 20497 | bfd_cv_have_sys_procfs_type_lwpid_t=yes |
d45fe813 | 20498 | else |
bec39cab AC |
20499 | echo "$as_me: failed program was:" >&5 |
20500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20501 | ||
b4e70030 | 20502 | bfd_cv_have_sys_procfs_type_lwpid_t=no |
bec39cab | 20503 | |
d45fe813 | 20504 | fi |
bec39cab | 20505 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d45fe813 KB |
20506 | fi |
20507 | ||
97bf5e38 | 20508 | if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then |
bec39cab AC |
20509 | |
20510 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20511 | #define HAVE_LWPID_T 1 |
bec39cab | 20512 | _ACEOF |
d45fe813 | 20513 | |
97bf5e38 | 20514 | fi |
b4e70030 JB |
20515 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5 |
20516 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6 | |
c906108c | 20517 | |
b4e70030 JB |
20518 | echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5 |
20519 | echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20520 | if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then |
20521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20522 | else |
bec39cab AC |
20523 | cat >conftest.$ac_ext <<_ACEOF |
20524 | /* confdefs.h. */ | |
20525 | _ACEOF | |
20526 | cat confdefs.h >>conftest.$ac_ext | |
20527 | cat >>conftest.$ac_ext <<_ACEOF | |
20528 | /* end confdefs.h. */ | |
c906108c | 20529 | |
97bf5e38 MK |
20530 | #define _SYSCALL32 |
20531 | #include <sys/procfs.h> | |
bec39cab AC |
20532 | int |
20533 | main () | |
20534 | { | |
97bf5e38 | 20535 | psaddr_t avar |
bec39cab AC |
20536 | ; |
20537 | return 0; | |
20538 | } | |
20539 | _ACEOF | |
20540 | rm -f conftest.$ac_objext | |
20541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20542 | (eval $ac_compile) 2>conftest.er1 | |
20543 | ac_status=$? | |
20544 | grep -v '^ *+' conftest.er1 >conftest.err | |
20545 | rm -f conftest.er1 | |
20546 | cat conftest.err >&5 | |
20547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20548 | (exit $ac_status); } && | |
b4e70030 JB |
20549 | { ac_try='test -z "$ac_c_werror_flag" |
20550 | || test ! -s conftest.err' | |
bec39cab AC |
20551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20552 | (eval $ac_try) 2>&5 | |
20553 | ac_status=$? | |
20554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20555 | (exit $ac_status); }; } && | |
20556 | { ac_try='test -s conftest.$ac_objext' | |
20557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20558 | (eval $ac_try) 2>&5 | |
20559 | ac_status=$? | |
20560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20561 | (exit $ac_status); }; }; then | |
97bf5e38 | 20562 | bfd_cv_have_sys_procfs_type_psaddr_t=yes |
c906108c | 20563 | else |
bec39cab AC |
20564 | echo "$as_me: failed program was:" >&5 |
20565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20566 | ||
b4e70030 | 20567 | bfd_cv_have_sys_procfs_type_psaddr_t=no |
bec39cab | 20568 | |
c906108c | 20569 | fi |
bec39cab | 20570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20571 | fi |
20572 | ||
97bf5e38 | 20573 | if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then |
bec39cab AC |
20574 | |
20575 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20576 | #define HAVE_PSADDR_T 1 |
bec39cab | 20577 | _ACEOF |
c906108c | 20578 | |
97bf5e38 | 20579 | fi |
b4e70030 JB |
20580 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5 |
20581 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6 | |
c906108c | 20582 | |
b4e70030 JB |
20583 | echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5 |
20584 | echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20585 | if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then |
20586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20587 | else |
bec39cab AC |
20588 | cat >conftest.$ac_ext <<_ACEOF |
20589 | /* confdefs.h. */ | |
20590 | _ACEOF | |
20591 | cat confdefs.h >>conftest.$ac_ext | |
20592 | cat >>conftest.$ac_ext <<_ACEOF | |
20593 | /* end confdefs.h. */ | |
c906108c | 20594 | |
97bf5e38 MK |
20595 | #define _SYSCALL32 |
20596 | #include <sys/procfs.h> | |
bec39cab AC |
20597 | int |
20598 | main () | |
20599 | { | |
97bf5e38 | 20600 | prsysent_t avar |
bec39cab AC |
20601 | ; |
20602 | return 0; | |
20603 | } | |
20604 | _ACEOF | |
20605 | rm -f conftest.$ac_objext | |
20606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20607 | (eval $ac_compile) 2>conftest.er1 | |
20608 | ac_status=$? | |
20609 | grep -v '^ *+' conftest.er1 >conftest.err | |
20610 | rm -f conftest.er1 | |
20611 | cat conftest.err >&5 | |
20612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20613 | (exit $ac_status); } && | |
b4e70030 JB |
20614 | { ac_try='test -z "$ac_c_werror_flag" |
20615 | || test ! -s conftest.err' | |
bec39cab AC |
20616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20617 | (eval $ac_try) 2>&5 | |
20618 | ac_status=$? | |
20619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20620 | (exit $ac_status); }; } && | |
20621 | { ac_try='test -s conftest.$ac_objext' | |
20622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20623 | (eval $ac_try) 2>&5 | |
20624 | ac_status=$? | |
20625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20626 | (exit $ac_status); }; }; then | |
97bf5e38 | 20627 | bfd_cv_have_sys_procfs_type_prsysent_t=yes |
c906108c | 20628 | else |
bec39cab AC |
20629 | echo "$as_me: failed program was:" >&5 |
20630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20631 | ||
b4e70030 | 20632 | bfd_cv_have_sys_procfs_type_prsysent_t=no |
bec39cab | 20633 | |
c906108c | 20634 | fi |
bec39cab | 20635 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20636 | fi |
20637 | ||
97bf5e38 | 20638 | if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then |
bec39cab AC |
20639 | |
20640 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20641 | #define HAVE_PRSYSENT_T 1 |
bec39cab | 20642 | _ACEOF |
c906108c | 20643 | |
97bf5e38 | 20644 | fi |
b4e70030 JB |
20645 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5 |
20646 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6 | |
c906108c | 20647 | |
b4e70030 JB |
20648 | echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5 |
20649 | echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20650 | if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then |
20651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20652 | else |
bec39cab AC |
20653 | cat >conftest.$ac_ext <<_ACEOF |
20654 | /* confdefs.h. */ | |
20655 | _ACEOF | |
20656 | cat confdefs.h >>conftest.$ac_ext | |
20657 | cat >>conftest.$ac_ext <<_ACEOF | |
20658 | /* end confdefs.h. */ | |
c906108c | 20659 | |
97bf5e38 MK |
20660 | #define _SYSCALL32 |
20661 | #include <sys/procfs.h> | |
bec39cab AC |
20662 | int |
20663 | main () | |
20664 | { | |
97bf5e38 | 20665 | pr_sigset_t avar |
bec39cab AC |
20666 | ; |
20667 | return 0; | |
20668 | } | |
20669 | _ACEOF | |
20670 | rm -f conftest.$ac_objext | |
20671 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20672 | (eval $ac_compile) 2>conftest.er1 | |
20673 | ac_status=$? | |
20674 | grep -v '^ *+' conftest.er1 >conftest.err | |
20675 | rm -f conftest.er1 | |
20676 | cat conftest.err >&5 | |
20677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20678 | (exit $ac_status); } && | |
b4e70030 JB |
20679 | { ac_try='test -z "$ac_c_werror_flag" |
20680 | || test ! -s conftest.err' | |
bec39cab AC |
20681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20682 | (eval $ac_try) 2>&5 | |
20683 | ac_status=$? | |
20684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20685 | (exit $ac_status); }; } && | |
20686 | { ac_try='test -s conftest.$ac_objext' | |
20687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20688 | (eval $ac_try) 2>&5 | |
20689 | ac_status=$? | |
20690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20691 | (exit $ac_status); }; }; then | |
97bf5e38 | 20692 | bfd_cv_have_sys_procfs_type_pr_sigset_t=yes |
c906108c | 20693 | else |
bec39cab AC |
20694 | echo "$as_me: failed program was:" >&5 |
20695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20696 | ||
b4e70030 | 20697 | bfd_cv_have_sys_procfs_type_pr_sigset_t=no |
bec39cab | 20698 | |
c906108c | 20699 | fi |
bec39cab | 20700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20701 | fi |
20702 | ||
97bf5e38 | 20703 | if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then |
bec39cab AC |
20704 | |
20705 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20706 | #define HAVE_PR_SIGSET_T 1 |
bec39cab | 20707 | _ACEOF |
c906108c | 20708 | |
97bf5e38 | 20709 | fi |
b4e70030 JB |
20710 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5 |
20711 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6 | |
c906108c | 20712 | |
b4e70030 JB |
20713 | echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5 |
20714 | echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20715 | if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then |
20716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20717 | else |
bec39cab AC |
20718 | cat >conftest.$ac_ext <<_ACEOF |
20719 | /* confdefs.h. */ | |
20720 | _ACEOF | |
20721 | cat confdefs.h >>conftest.$ac_ext | |
20722 | cat >>conftest.$ac_ext <<_ACEOF | |
20723 | /* end confdefs.h. */ | |
c906108c | 20724 | |
97bf5e38 MK |
20725 | #define _SYSCALL32 |
20726 | #include <sys/procfs.h> | |
bec39cab AC |
20727 | int |
20728 | main () | |
20729 | { | |
97bf5e38 | 20730 | pr_sigaction64_t avar |
bec39cab AC |
20731 | ; |
20732 | return 0; | |
20733 | } | |
20734 | _ACEOF | |
20735 | rm -f conftest.$ac_objext | |
20736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20737 | (eval $ac_compile) 2>conftest.er1 | |
20738 | ac_status=$? | |
20739 | grep -v '^ *+' conftest.er1 >conftest.err | |
20740 | rm -f conftest.er1 | |
20741 | cat conftest.err >&5 | |
20742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20743 | (exit $ac_status); } && | |
b4e70030 JB |
20744 | { ac_try='test -z "$ac_c_werror_flag" |
20745 | || test ! -s conftest.err' | |
bec39cab AC |
20746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20747 | (eval $ac_try) 2>&5 | |
20748 | ac_status=$? | |
20749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20750 | (exit $ac_status); }; } && | |
20751 | { ac_try='test -s conftest.$ac_objext' | |
20752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20753 | (eval $ac_try) 2>&5 | |
20754 | ac_status=$? | |
20755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20756 | (exit $ac_status); }; }; then | |
97bf5e38 | 20757 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes |
c906108c | 20758 | else |
bec39cab AC |
20759 | echo "$as_me: failed program was:" >&5 |
20760 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20761 | ||
b4e70030 | 20762 | bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no |
bec39cab | 20763 | |
c906108c | 20764 | fi |
bec39cab | 20765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
20766 | fi |
20767 | ||
97bf5e38 | 20768 | if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then |
bec39cab AC |
20769 | |
20770 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20771 | #define HAVE_PR_SIGACTION64_T 1 |
bec39cab | 20772 | _ACEOF |
c906108c | 20773 | |
97bf5e38 | 20774 | fi |
b4e70030 JB |
20775 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5 |
20776 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6 | |
97bf5e38 | 20777 | |
b4e70030 JB |
20778 | echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5 |
20779 | echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20780 | if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then |
20781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 20782 | else |
bec39cab AC |
20783 | cat >conftest.$ac_ext <<_ACEOF |
20784 | /* confdefs.h. */ | |
20785 | _ACEOF | |
20786 | cat confdefs.h >>conftest.$ac_ext | |
20787 | cat >>conftest.$ac_ext <<_ACEOF | |
20788 | /* end confdefs.h. */ | |
97bf5e38 MK |
20789 | |
20790 | #define _SYSCALL32 | |
20791 | #include <sys/procfs.h> | |
bec39cab AC |
20792 | int |
20793 | main () | |
20794 | { | |
97bf5e38 | 20795 | pr_siginfo64_t avar |
bec39cab AC |
20796 | ; |
20797 | return 0; | |
20798 | } | |
20799 | _ACEOF | |
20800 | rm -f conftest.$ac_objext | |
20801 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20802 | (eval $ac_compile) 2>conftest.er1 | |
20803 | ac_status=$? | |
20804 | grep -v '^ *+' conftest.er1 >conftest.err | |
20805 | rm -f conftest.er1 | |
20806 | cat conftest.err >&5 | |
20807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20808 | (exit $ac_status); } && | |
b4e70030 JB |
20809 | { ac_try='test -z "$ac_c_werror_flag" |
20810 | || test ! -s conftest.err' | |
bec39cab AC |
20811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20812 | (eval $ac_try) 2>&5 | |
20813 | ac_status=$? | |
20814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20815 | (exit $ac_status); }; } && | |
20816 | { ac_try='test -s conftest.$ac_objext' | |
20817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20818 | (eval $ac_try) 2>&5 | |
20819 | ac_status=$? | |
20820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20821 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
20822 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes |
20823 | else | |
bec39cab AC |
20824 | echo "$as_me: failed program was:" >&5 |
20825 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20826 | ||
b4e70030 | 20827 | bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no |
bec39cab | 20828 | |
97bf5e38 | 20829 | fi |
bec39cab | 20830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20831 | fi |
c906108c | 20832 | |
97bf5e38 | 20833 | if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then |
bec39cab AC |
20834 | |
20835 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20836 | #define HAVE_PR_SIGINFO64_T 1 |
bec39cab | 20837 | _ACEOF |
c906108c | 20838 | |
97bf5e38 | 20839 | fi |
b4e70030 JB |
20840 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5 |
20841 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6 | |
bec39cab AC |
20842 | |
20843 | ||
97bf5e38 MK |
20844 | |
20845 | ||
20846 | ||
97bf5e38 | 20847 | if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then |
b4e70030 JB |
20848 | echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5 |
20849 | echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6 | |
bec39cab AC |
20850 | if test "${gdb_cv_prfpregset_t_broken+set}" = set; then |
20851 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
20852 | else |
20853 | if test "$cross_compiling" = yes; then | |
97bf5e38 | 20854 | gdb_cv_prfpregset_t_broken=yes |
c906108c | 20855 | else |
bec39cab AC |
20856 | cat >conftest.$ac_ext <<_ACEOF |
20857 | /* confdefs.h. */ | |
20858 | _ACEOF | |
20859 | cat confdefs.h >>conftest.$ac_ext | |
20860 | cat >>conftest.$ac_ext <<_ACEOF | |
20861 | /* end confdefs.h. */ | |
97bf5e38 MK |
20862 | #include <sys/procfs.h> |
20863 | int main () | |
20864 | { | |
20865 | if (sizeof (prfpregset_t) == sizeof (void *)) | |
20866 | return 1; | |
20867 | return 0; | |
20868 | } | |
bec39cab AC |
20869 | _ACEOF |
20870 | rm -f conftest$ac_exeext | |
20871 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20872 | (eval $ac_link) 2>&5 | |
20873 | ac_status=$? | |
20874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20875 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20877 | (eval $ac_try) 2>&5 | |
20878 | ac_status=$? | |
20879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20880 | (exit $ac_status); }; }; then | |
97bf5e38 | 20881 | gdb_cv_prfpregset_t_broken=no |
c906108c | 20882 | else |
bec39cab AC |
20883 | echo "$as_me: program exited with status $ac_status" >&5 |
20884 | echo "$as_me: failed program was:" >&5 | |
20885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20886 | ||
20887 | ( exit $ac_status ) | |
20888 | gdb_cv_prfpregset_t_broken=yes | |
c906108c | 20889 | fi |
b4e70030 | 20890 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 20891 | fi |
c906108c SS |
20892 | fi |
20893 | ||
b4e70030 JB |
20894 | echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5 |
20895 | echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6 | |
97bf5e38 | 20896 | if test $gdb_cv_prfpregset_t_broken = yes; then |
60ca704f SE |
20897 | |
20898 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20899 | #define PRFPREGSET_T_BROKEN 1 |
bec39cab | 20900 | _ACEOF |
c906108c | 20901 | |
97bf5e38 MK |
20902 | fi |
20903 | fi | |
c906108c | 20904 | |
bec39cab | 20905 | |
b4e70030 JB |
20906 | echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5 |
20907 | echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6 | |
bec39cab AC |
20908 | if test "${gdb_cv_have_procfs_piocset+set}" = set; then |
20909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 20910 | else |
bec39cab AC |
20911 | cat >conftest.$ac_ext <<_ACEOF |
20912 | /* confdefs.h. */ | |
20913 | _ACEOF | |
20914 | cat confdefs.h >>conftest.$ac_ext | |
20915 | cat >>conftest.$ac_ext <<_ACEOF | |
20916 | /* end confdefs.h. */ | |
97bf5e38 MK |
20917 | #include <unistd.h> |
20918 | #include <sys/types.h> | |
20919 | #include <sys/procfs.h> | |
20920 | ||
bec39cab AC |
20921 | int |
20922 | main () | |
20923 | { | |
97bf5e38 MK |
20924 | |
20925 | int dummy;; | |
20926 | dummy = ioctl(0, PIOCSET, &dummy); | |
bec39cab AC |
20927 | |
20928 | ; | |
20929 | return 0; | |
20930 | } | |
20931 | _ACEOF | |
20932 | rm -f conftest.$ac_objext | |
20933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20934 | (eval $ac_compile) 2>conftest.er1 | |
20935 | ac_status=$? | |
20936 | grep -v '^ *+' conftest.er1 >conftest.err | |
20937 | rm -f conftest.er1 | |
20938 | cat conftest.err >&5 | |
20939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20940 | (exit $ac_status); } && | |
b4e70030 JB |
20941 | { ac_try='test -z "$ac_c_werror_flag" |
20942 | || test ! -s conftest.err' | |
bec39cab AC |
20943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20944 | (eval $ac_try) 2>&5 | |
20945 | ac_status=$? | |
20946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20947 | (exit $ac_status); }; } && | |
20948 | { ac_try='test -s conftest.$ac_objext' | |
20949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20950 | (eval $ac_try) 2>&5 | |
20951 | ac_status=$? | |
20952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20953 | (exit $ac_status); }; }; then | |
97bf5e38 | 20954 | gdb_cv_have_procfs_piocset=yes |
c906108c | 20955 | else |
bec39cab AC |
20956 | echo "$as_me: failed program was:" >&5 |
20957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20958 | ||
b4e70030 | 20959 | gdb_cv_have_procfs_piocset=no |
c906108c | 20960 | fi |
bec39cab | 20961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 20962 | fi |
97bf5e38 | 20963 | |
b4e70030 JB |
20964 | echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5 |
20965 | echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6 | |
97bf5e38 | 20966 | if test $gdb_cv_have_procfs_piocset = yes; then |
60ca704f SE |
20967 | |
20968 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 20969 | #define HAVE_PROCFS_PIOCSET 1 |
bec39cab | 20970 | _ACEOF |
97bf5e38 MK |
20971 | |
20972 | fi | |
c906108c | 20973 | fi |
c906108c | 20974 | |
97bf5e38 | 20975 | if test ${host} = ${target} ; then |
bec39cab | 20976 | |
b4e70030 JB |
20977 | echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5 |
20978 | echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
20979 | if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then |
20980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20981 | else | |
20982 | cat >conftest.$ac_ext <<_ACEOF | |
20983 | /* confdefs.h. */ | |
20984 | _ACEOF | |
20985 | cat confdefs.h >>conftest.$ac_ext | |
20986 | cat >>conftest.$ac_ext <<_ACEOF | |
20987 | /* end confdefs.h. */ | |
97bf5e38 | 20988 | #include <link.h> |
bec39cab AC |
20989 | int |
20990 | main () | |
20991 | { | |
97bf5e38 | 20992 | struct link_map lm; (void) lm.l_addr; |
bec39cab AC |
20993 | ; |
20994 | return 0; | |
20995 | } | |
20996 | _ACEOF | |
20997 | rm -f conftest.$ac_objext | |
20998 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20999 | (eval $ac_compile) 2>conftest.er1 | |
21000 | ac_status=$? | |
21001 | grep -v '^ *+' conftest.er1 >conftest.err | |
21002 | rm -f conftest.er1 | |
21003 | cat conftest.err >&5 | |
21004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21005 | (exit $ac_status); } && | |
b4e70030 JB |
21006 | { ac_try='test -z "$ac_c_werror_flag" |
21007 | || test ! -s conftest.err' | |
bec39cab AC |
21008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21009 | (eval $ac_try) 2>&5 | |
21010 | ac_status=$? | |
21011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21012 | (exit $ac_status); }; } && | |
21013 | { ac_try='test -s conftest.$ac_objext' | |
21014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21015 | (eval $ac_try) 2>&5 | |
21016 | ac_status=$? | |
21017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21018 | (exit $ac_status); }; }; then | |
97bf5e38 | 21019 | gdb_cv_have_struct_link_map_with_l_members=yes |
c906108c | 21020 | else |
bec39cab AC |
21021 | echo "$as_me: failed program was:" >&5 |
21022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21023 | ||
b4e70030 | 21024 | gdb_cv_have_struct_link_map_with_l_members=no |
c906108c | 21025 | fi |
bec39cab | 21026 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
21027 | fi |
21028 | ||
b4e70030 JB |
21029 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5 |
21030 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6 | |
97bf5e38 | 21031 | if test $gdb_cv_have_struct_link_map_with_l_members = yes; then |
60ca704f SE |
21032 | |
21033 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21034 | #define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1 |
bec39cab | 21035 | _ACEOF |
97bf5e38 MK |
21036 | |
21037 | fi | |
21038 | ||
bec39cab | 21039 | |
b4e70030 JB |
21040 | echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5 |
21041 | echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6 | |
bec39cab AC |
21042 | if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then |
21043 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21044 | else |
bec39cab AC |
21045 | cat >conftest.$ac_ext <<_ACEOF |
21046 | /* confdefs.h. */ | |
21047 | _ACEOF | |
21048 | cat confdefs.h >>conftest.$ac_ext | |
21049 | cat >>conftest.$ac_ext <<_ACEOF | |
21050 | /* end confdefs.h. */ | |
97bf5e38 MK |
21051 | #include <sys/types.h> |
21052 | #include <link.h> | |
bec39cab AC |
21053 | int |
21054 | main () | |
21055 | { | |
97bf5e38 | 21056 | struct link_map lm; (void) lm.lm_addr; |
bec39cab AC |
21057 | ; |
21058 | return 0; | |
21059 | } | |
21060 | _ACEOF | |
21061 | rm -f conftest.$ac_objext | |
21062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21063 | (eval $ac_compile) 2>conftest.er1 | |
21064 | ac_status=$? | |
21065 | grep -v '^ *+' conftest.er1 >conftest.err | |
21066 | rm -f conftest.er1 | |
21067 | cat conftest.err >&5 | |
21068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21069 | (exit $ac_status); } && | |
b4e70030 JB |
21070 | { ac_try='test -z "$ac_c_werror_flag" |
21071 | || test ! -s conftest.err' | |
bec39cab AC |
21072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21073 | (eval $ac_try) 2>&5 | |
21074 | ac_status=$? | |
21075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21076 | (exit $ac_status); }; } && | |
21077 | { ac_try='test -s conftest.$ac_objext' | |
21078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21079 | (eval $ac_try) 2>&5 | |
21080 | ac_status=$? | |
21081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21082 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
21083 | gdb_cv_have_struct_link_map_with_lm_members=yes |
21084 | else | |
bec39cab AC |
21085 | echo "$as_me: failed program was:" >&5 |
21086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21087 | ||
b4e70030 | 21088 | gdb_cv_have_struct_link_map_with_lm_members=no |
97bf5e38 | 21089 | fi |
bec39cab | 21090 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 21091 | fi |
c906108c | 21092 | |
b4e70030 JB |
21093 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5 |
21094 | echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6 | |
97bf5e38 | 21095 | if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then |
60ca704f SE |
21096 | |
21097 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21098 | #define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1 |
bec39cab | 21099 | _ACEOF |
97bf5e38 MK |
21100 | |
21101 | fi | |
21102 | ||
bec39cab | 21103 | |
b4e70030 JB |
21104 | echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5 |
21105 | echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6 | |
bec39cab AC |
21106 | if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then |
21107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21108 | else |
bec39cab AC |
21109 | cat >conftest.$ac_ext <<_ACEOF |
21110 | /* confdefs.h. */ | |
21111 | _ACEOF | |
21112 | cat confdefs.h >>conftest.$ac_ext | |
21113 | cat >>conftest.$ac_ext <<_ACEOF | |
21114 | /* end confdefs.h. */ | |
97bf5e38 MK |
21115 | #include <sys/types.h> |
21116 | #ifdef HAVE_NLIST_H | |
21117 | #include <nlist.h> | |
21118 | #endif | |
21119 | #include <link.h> | |
bec39cab AC |
21120 | int |
21121 | main () | |
21122 | { | |
97bf5e38 | 21123 | struct so_map lm; (void) lm.som_addr; |
bec39cab AC |
21124 | ; |
21125 | return 0; | |
21126 | } | |
21127 | _ACEOF | |
21128 | rm -f conftest.$ac_objext | |
21129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21130 | (eval $ac_compile) 2>conftest.er1 | |
21131 | ac_status=$? | |
21132 | grep -v '^ *+' conftest.er1 >conftest.err | |
21133 | rm -f conftest.er1 | |
21134 | cat conftest.err >&5 | |
21135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21136 | (exit $ac_status); } && | |
b4e70030 JB |
21137 | { ac_try='test -z "$ac_c_werror_flag" |
21138 | || test ! -s conftest.err' | |
bec39cab AC |
21139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21140 | (eval $ac_try) 2>&5 | |
21141 | ac_status=$? | |
21142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21143 | (exit $ac_status); }; } && | |
21144 | { ac_try='test -s conftest.$ac_objext' | |
21145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21146 | (eval $ac_try) 2>&5 | |
21147 | ac_status=$? | |
21148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21149 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
21150 | gdb_cv_have_struct_so_map_with_som_members=yes |
21151 | else | |
bec39cab AC |
21152 | echo "$as_me: failed program was:" >&5 |
21153 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21154 | ||
b4e70030 | 21155 | gdb_cv_have_struct_so_map_with_som_members=no |
97bf5e38 | 21156 | fi |
bec39cab | 21157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 21158 | fi |
c906108c | 21159 | |
b4e70030 JB |
21160 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5 |
21161 | echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6 | |
97bf5e38 | 21162 | if test $gdb_cv_have_struct_so_map_with_som_members = yes; then |
60ca704f SE |
21163 | |
21164 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21165 | #define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1 |
bec39cab | 21166 | _ACEOF |
c906108c | 21167 | |
97bf5e38 | 21168 | fi |
c906108c | 21169 | |
bec39cab | 21170 | |
b4e70030 JB |
21171 | echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5 |
21172 | echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6 | |
bec39cab AC |
21173 | if test "${gdb_cv_have_struct_link_map32+set}" = set; then |
21174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 21175 | else |
bec39cab AC |
21176 | cat >conftest.$ac_ext <<_ACEOF |
21177 | /* confdefs.h. */ | |
21178 | _ACEOF | |
21179 | cat confdefs.h >>conftest.$ac_ext | |
21180 | cat >>conftest.$ac_ext <<_ACEOF | |
21181 | /* end confdefs.h. */ | |
97bf5e38 MK |
21182 | #define _SYSCALL32 |
21183 | #include <sys/link.h> | |
bec39cab AC |
21184 | int |
21185 | main () | |
21186 | { | |
97bf5e38 | 21187 | struct link_map32 l; |
bec39cab AC |
21188 | ; |
21189 | return 0; | |
21190 | } | |
21191 | _ACEOF | |
21192 | rm -f conftest.$ac_objext | |
21193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21194 | (eval $ac_compile) 2>conftest.er1 | |
21195 | ac_status=$? | |
21196 | grep -v '^ *+' conftest.er1 >conftest.err | |
21197 | rm -f conftest.er1 | |
21198 | cat conftest.err >&5 | |
21199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21200 | (exit $ac_status); } && | |
b4e70030 JB |
21201 | { ac_try='test -z "$ac_c_werror_flag" |
21202 | || test ! -s conftest.err' | |
bec39cab AC |
21203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21204 | (eval $ac_try) 2>&5 | |
21205 | ac_status=$? | |
21206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21207 | (exit $ac_status); }; } && | |
21208 | { ac_try='test -s conftest.$ac_objext' | |
21209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21210 | (eval $ac_try) 2>&5 | |
21211 | ac_status=$? | |
21212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21213 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
21214 | gdb_cv_have_struct_link_map32=yes |
21215 | else | |
bec39cab AC |
21216 | echo "$as_me: failed program was:" >&5 |
21217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21218 | ||
b4e70030 | 21219 | gdb_cv_have_struct_link_map32=no |
97bf5e38 | 21220 | fi |
bec39cab | 21221 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 21222 | fi |
c906108c | 21223 | |
b4e70030 JB |
21224 | echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5 |
21225 | echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6 | |
97bf5e38 | 21226 | if test $gdb_cv_have_struct_link_map32 = yes; then |
60ca704f SE |
21227 | |
21228 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21229 | #define HAVE_STRUCT_LINK_MAP32 1 |
bec39cab | 21230 | _ACEOF |
c906108c | 21231 | |
60ca704f SE |
21232 | |
21233 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21234 | #define _SYSCALL32 1 |
bec39cab | 21235 | _ACEOF |
c906108c | 21236 | |
97bf5e38 MK |
21237 | fi |
21238 | fi | |
c906108c | 21239 | |
bc8bcb4b | 21240 | # Check if the compiler supports the `long long' type. |
c906108c | 21241 | |
b4e70030 JB |
21242 | echo "$as_me:$LINENO: checking for long long support in compiler" >&5 |
21243 | echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6 | |
bec39cab AC |
21244 | if test "${gdb_cv_c_long_long+set}" = set; then |
21245 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 | 21246 | else |
bec39cab AC |
21247 | cat >conftest.$ac_ext <<_ACEOF |
21248 | /* confdefs.h. */ | |
21249 | _ACEOF | |
21250 | cat confdefs.h >>conftest.$ac_ext | |
21251 | cat >>conftest.$ac_ext <<_ACEOF | |
21252 | /* end confdefs.h. */ | |
bc8bcb4b | 21253 | extern long long foo; |
bec39cab AC |
21254 | int |
21255 | main () | |
21256 | { | |
bc8bcb4b | 21257 | switch (foo & 2) { case 0: return 1; } |
bec39cab AC |
21258 | ; |
21259 | return 0; | |
21260 | } | |
21261 | _ACEOF | |
21262 | rm -f conftest.$ac_objext | |
21263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21264 | (eval $ac_compile) 2>conftest.er1 | |
21265 | ac_status=$? | |
21266 | grep -v '^ *+' conftest.er1 >conftest.err | |
21267 | rm -f conftest.er1 | |
21268 | cat conftest.err >&5 | |
21269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21270 | (exit $ac_status); } && | |
b4e70030 JB |
21271 | { ac_try='test -z "$ac_c_werror_flag" |
21272 | || test ! -s conftest.err' | |
bec39cab AC |
21273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21274 | (eval $ac_try) 2>&5 | |
21275 | ac_status=$? | |
21276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21277 | (exit $ac_status); }; } && | |
21278 | { ac_try='test -s conftest.$ac_objext' | |
21279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21280 | (eval $ac_try) 2>&5 | |
21281 | ac_status=$? | |
21282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21283 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
21284 | gdb_cv_c_long_long=yes |
21285 | else | |
bec39cab AC |
21286 | echo "$as_me: failed program was:" >&5 |
21287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21288 | ||
b4e70030 | 21289 | gdb_cv_c_long_long=no |
97bf5e38 | 21290 | fi |
bec39cab | 21291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 21292 | fi |
b4e70030 JB |
21293 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5 |
21294 | echo "${ECHO_T}$gdb_cv_c_long_long" >&6 | |
97bf5e38 | 21295 | if test $gdb_cv_c_long_long = yes; then |
bc8bcb4b MK |
21296 | |
21297 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21298 | #define CC_HAS_LONG_LONG 1 |
bec39cab | 21299 | _ACEOF |
97bf5e38 MK |
21300 | |
21301 | fi | |
21302 | ||
bc8bcb4b | 21303 | # Check if the compiler and runtime support printing long longs. |
97bf5e38 | 21304 | |
b4e70030 JB |
21305 | echo "$as_me:$LINENO: checking for long long support in printf" >&5 |
21306 | echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6 | |
bec39cab AC |
21307 | if test "${gdb_cv_printf_has_long_long+set}" = set; then |
21308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
21309 | else |
21310 | if test "$cross_compiling" = yes; then | |
21311 | gdb_cv_printf_has_long_long=no | |
21312 | else | |
bec39cab AC |
21313 | cat >conftest.$ac_ext <<_ACEOF |
21314 | /* confdefs.h. */ | |
21315 | _ACEOF | |
21316 | cat confdefs.h >>conftest.$ac_ext | |
21317 | cat >>conftest.$ac_ext <<_ACEOF | |
21318 | /* end confdefs.h. */ | |
bc8bcb4b MK |
21319 | $ac_includes_default |
21320 | int | |
21321 | main () | |
21322 | { | |
21323 | char buf[32]; | |
97bf5e38 MK |
21324 | long long l = 0; |
21325 | l = (l << 16) + 0x0123; | |
21326 | l = (l << 16) + 0x4567; | |
21327 | l = (l << 16) + 0x89ab; | |
21328 | l = (l << 16) + 0xcdef; | |
21329 | sprintf (buf, "0x%016llx", l); | |
21330 | return (strcmp ("0x0123456789abcdef", buf)); | |
bc8bcb4b MK |
21331 | ; |
21332 | return 0; | |
c906108c | 21333 | } |
bec39cab AC |
21334 | _ACEOF |
21335 | rm -f conftest$ac_exeext | |
21336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21337 | (eval $ac_link) 2>&5 | |
21338 | ac_status=$? | |
21339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21340 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21342 | (eval $ac_try) 2>&5 | |
21343 | ac_status=$? | |
21344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21345 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
21346 | gdb_cv_printf_has_long_long=yes |
21347 | else | |
bec39cab AC |
21348 | echo "$as_me: program exited with status $ac_status" >&5 |
21349 | echo "$as_me: failed program was:" >&5 | |
21350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21351 | ||
21352 | ( exit $ac_status ) | |
21353 | gdb_cv_printf_has_long_long=no | |
97bf5e38 | 21354 | fi |
b4e70030 | 21355 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 21356 | fi |
97bf5e38 | 21357 | fi |
b4e70030 JB |
21358 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5 |
21359 | echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6 | |
97bf5e38 | 21360 | if test $gdb_cv_printf_has_long_long = yes; then |
bc8bcb4b MK |
21361 | |
21362 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21363 | #define PRINTF_HAS_LONG_LONG 1 |
bec39cab | 21364 | _ACEOF |
97bf5e38 MK |
21365 | |
21366 | fi | |
97bf5e38 | 21367 | |
1a619819 LM |
21368 | # Check if the compiler and runtime support printing decfloats. |
21369 | ||
21370 | echo "$as_me:$LINENO: checking for decfloat support in printf" >&5 | |
21371 | echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6 | |
21372 | if test "${gdb_cv_printf_has_decfloat+set}" = set; then | |
21373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21374 | else | |
21375 | if test "$cross_compiling" = yes; then | |
21376 | gdb_cv_printf_has_decfloat=no | |
21377 | else | |
21378 | cat >conftest.$ac_ext <<_ACEOF | |
21379 | /* confdefs.h. */ | |
21380 | _ACEOF | |
21381 | cat confdefs.h >>conftest.$ac_ext | |
21382 | cat >>conftest.$ac_ext <<_ACEOF | |
21383 | /* end confdefs.h. */ | |
21384 | $ac_includes_default | |
21385 | int | |
21386 | main () | |
21387 | { | |
21388 | char buf[64]; | |
21389 | _Decimal32 d32 = 1.2345df; | |
21390 | _Decimal64 d64 = 1.2345dd; | |
21391 | _Decimal128 d128 = 1.2345dl; | |
21392 | sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128); | |
21393 | return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf)); | |
21394 | ; | |
21395 | return 0; | |
21396 | } | |
21397 | _ACEOF | |
21398 | rm -f conftest$ac_exeext | |
21399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21400 | (eval $ac_link) 2>&5 | |
21401 | ac_status=$? | |
21402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21403 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21405 | (eval $ac_try) 2>&5 | |
21406 | ac_status=$? | |
21407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21408 | (exit $ac_status); }; }; then | |
21409 | gdb_cv_printf_has_decfloat=yes | |
21410 | else | |
21411 | echo "$as_me: program exited with status $ac_status" >&5 | |
21412 | echo "$as_me: failed program was:" >&5 | |
21413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21414 | ||
21415 | ( exit $ac_status ) | |
21416 | gdb_cv_printf_has_decfloat=no | |
21417 | fi | |
21418 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
21419 | fi | |
21420 | fi | |
21421 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5 | |
21422 | echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6 | |
21423 | if test $gdb_cv_printf_has_decfloat = yes; then | |
21424 | ||
21425 | cat >>confdefs.h <<\_ACEOF | |
21426 | #define PRINTF_HAS_DECFLOAT 1 | |
21427 | _ACEOF | |
21428 | ||
21429 | fi | |
21430 | ||
bc8bcb4b MK |
21431 | # Check if the compiler supports the `long double' type. We can't use |
21432 | # AC_C_LONG_DOUBLE because that one does additional checks on the | |
21433 | # constants defined in <float.h> that fail on some systems, | |
21434 | # e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6. | |
97bf5e38 | 21435 | |
b4e70030 JB |
21436 | echo "$as_me:$LINENO: checking for long double support in compiler" >&5 |
21437 | echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6 | |
bc8bcb4b | 21438 | if test "${gdb_cv_c_long_double+set}" = set; then |
bec39cab | 21439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
97bf5e38 | 21440 | else |
bec39cab AC |
21441 | cat >conftest.$ac_ext <<_ACEOF |
21442 | /* confdefs.h. */ | |
21443 | _ACEOF | |
21444 | cat confdefs.h >>conftest.$ac_ext | |
21445 | cat >>conftest.$ac_ext <<_ACEOF | |
21446 | /* end confdefs.h. */ | |
97bf5e38 | 21447 | long double foo; |
bec39cab AC |
21448 | _ACEOF |
21449 | rm -f conftest.$ac_objext | |
21450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21451 | (eval $ac_compile) 2>conftest.er1 | |
21452 | ac_status=$? | |
21453 | grep -v '^ *+' conftest.er1 >conftest.err | |
21454 | rm -f conftest.er1 | |
21455 | cat conftest.err >&5 | |
21456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21457 | (exit $ac_status); } && | |
b4e70030 JB |
21458 | { ac_try='test -z "$ac_c_werror_flag" |
21459 | || test ! -s conftest.err' | |
bec39cab AC |
21460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21461 | (eval $ac_try) 2>&5 | |
21462 | ac_status=$? | |
21463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21464 | (exit $ac_status); }; } && | |
21465 | { ac_try='test -s conftest.$ac_objext' | |
21466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21467 | (eval $ac_try) 2>&5 | |
21468 | ac_status=$? | |
21469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21470 | (exit $ac_status); }; }; then | |
bc8bcb4b | 21471 | gdb_cv_c_long_double=yes |
97bf5e38 | 21472 | else |
bec39cab AC |
21473 | echo "$as_me: failed program was:" >&5 |
21474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21475 | ||
b4e70030 | 21476 | gdb_cv_c_long_double=no |
97bf5e38 | 21477 | fi |
bec39cab | 21478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 21479 | fi |
b4e70030 JB |
21480 | echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5 |
21481 | echo "${ECHO_T}$gdb_cv_c_long_double" >&6 | |
bc8bcb4b | 21482 | if test $gdb_cv_c_long_double = yes; then |
c906108c | 21483 | |
bc8bcb4b | 21484 | cat >>confdefs.h <<\_ACEOF |
97bf5e38 | 21485 | #define HAVE_LONG_DOUBLE 1 |
bec39cab | 21486 | _ACEOF |
97bf5e38 MK |
21487 | |
21488 | fi | |
21489 | ||
bc8bcb4b | 21490 | # Check if the compiler and runtime support printing long doubles. |
97bf5e38 | 21491 | |
b4e70030 JB |
21492 | echo "$as_me:$LINENO: checking for long double support in printf" >&5 |
21493 | echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6 | |
bec39cab AC |
21494 | if test "${gdb_cv_printf_has_long_double+set}" = set; then |
21495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
21496 | else |
21497 | if test "$cross_compiling" = yes; then | |
21498 | gdb_cv_printf_has_long_double=no | |
21499 | else | |
bec39cab AC |
21500 | cat >conftest.$ac_ext <<_ACEOF |
21501 | /* confdefs.h. */ | |
21502 | _ACEOF | |
21503 | cat confdefs.h >>conftest.$ac_ext | |
21504 | cat >>conftest.$ac_ext <<_ACEOF | |
21505 | /* end confdefs.h. */ | |
bc8bcb4b MK |
21506 | $ac_includes_default |
21507 | int | |
21508 | main () | |
21509 | { | |
21510 | char buf[16]; | |
97bf5e38 MK |
21511 | long double f = 3.141592653; |
21512 | sprintf (buf, "%Lg", f); | |
21513 | return (strncmp ("3.14159", buf, 7)); | |
bc8bcb4b MK |
21514 | ; |
21515 | return 0; | |
97bf5e38 | 21516 | } |
bec39cab AC |
21517 | _ACEOF |
21518 | rm -f conftest$ac_exeext | |
21519 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21520 | (eval $ac_link) 2>&5 | |
21521 | ac_status=$? | |
21522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21523 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21525 | (eval $ac_try) 2>&5 | |
21526 | ac_status=$? | |
21527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21528 | (exit $ac_status); }; }; then | |
97bf5e38 | 21529 | gdb_cv_printf_has_long_double=yes |
c906108c | 21530 | else |
bec39cab AC |
21531 | echo "$as_me: program exited with status $ac_status" >&5 |
21532 | echo "$as_me: failed program was:" >&5 | |
21533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21534 | ||
21535 | ( exit $ac_status ) | |
21536 | gdb_cv_printf_has_long_double=no | |
c906108c | 21537 | fi |
b4e70030 | 21538 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 21539 | fi |
c906108c | 21540 | fi |
b4e70030 JB |
21541 | echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5 |
21542 | echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6 | |
97bf5e38 | 21543 | if test $gdb_cv_printf_has_long_double = yes; then |
bc8bcb4b MK |
21544 | |
21545 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21546 | #define PRINTF_HAS_LONG_DOUBLE 1 |
bec39cab | 21547 | _ACEOF |
97bf5e38 MK |
21548 | |
21549 | fi | |
97bf5e38 | 21550 | |
bc8bcb4b | 21551 | # Check if the compiler and runtime support scanning long doubles. |
97bf5e38 | 21552 | |
b4e70030 JB |
21553 | echo "$as_me:$LINENO: checking for long double support in scanf" >&5 |
21554 | echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6 | |
bec39cab AC |
21555 | if test "${gdb_cv_scanf_has_long_double+set}" = set; then |
21556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
97bf5e38 MK |
21557 | else |
21558 | if test "$cross_compiling" = yes; then | |
21559 | gdb_cv_scanf_has_long_double=no | |
21560 | else | |
bec39cab AC |
21561 | cat >conftest.$ac_ext <<_ACEOF |
21562 | /* confdefs.h. */ | |
21563 | _ACEOF | |
21564 | cat confdefs.h >>conftest.$ac_ext | |
21565 | cat >>conftest.$ac_ext <<_ACEOF | |
21566 | /* end confdefs.h. */ | |
bc8bcb4b MK |
21567 | #include <stdio.h> |
21568 | int | |
21569 | main () | |
21570 | { | |
21571 | char *buf = "3.141592653"; | |
97bf5e38 MK |
21572 | long double f = 0; |
21573 | sscanf (buf, "%Lg", &f); | |
21574 | return !(f > 3.14159 && f < 3.14160); | |
bc8bcb4b MK |
21575 | ; |
21576 | return 0; | |
97bf5e38 | 21577 | } |
bec39cab AC |
21578 | _ACEOF |
21579 | rm -f conftest$ac_exeext | |
21580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21581 | (eval $ac_link) 2>&5 | |
21582 | ac_status=$? | |
21583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21584 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21586 | (eval $ac_try) 2>&5 | |
21587 | ac_status=$? | |
21588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21589 | (exit $ac_status); }; }; then | |
97bf5e38 MK |
21590 | gdb_cv_scanf_has_long_double=yes |
21591 | else | |
bec39cab AC |
21592 | echo "$as_me: program exited with status $ac_status" >&5 |
21593 | echo "$as_me: failed program was:" >&5 | |
21594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21595 | ||
21596 | ( exit $ac_status ) | |
21597 | gdb_cv_scanf_has_long_double=no | |
97bf5e38 | 21598 | fi |
b4e70030 | 21599 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
97bf5e38 | 21600 | fi |
c906108c | 21601 | fi |
b4e70030 JB |
21602 | echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5 |
21603 | echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6 | |
97bf5e38 | 21604 | if test $gdb_cv_scanf_has_long_double = yes; then |
bc8bcb4b MK |
21605 | |
21606 | cat >>confdefs.h <<\_ACEOF | |
97bf5e38 | 21607 | #define SCANF_HAS_LONG_DOUBLE 1 |
bec39cab | 21608 | _ACEOF |
97bf5e38 MK |
21609 | |
21610 | fi | |
c906108c | 21611 | |
438013df AO |
21612 | case ${host_os} in |
21613 | aix*) | |
b4e70030 JB |
21614 | echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 |
21615 | echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6 | |
bec39cab AC |
21616 | if test "${gdb_cv_bigtoc+set}" = set; then |
21617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
438013df | 21618 | else |
bec39cab | 21619 | |
438013df AO |
21620 | SAVE_LDFLAGS=$LDFLAGS |
21621 | ||
21622 | case $GCC in | |
21623 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; | |
21624 | *) gdb_cv_bigtoc=-bbigtoc ;; | |
21625 | esac | |
21626 | ||
21627 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc | |
bec39cab AC |
21628 | cat >conftest.$ac_ext <<_ACEOF |
21629 | /* confdefs.h. */ | |
21630 | _ACEOF | |
21631 | cat confdefs.h >>conftest.$ac_ext | |
21632 | cat >>conftest.$ac_ext <<_ACEOF | |
21633 | /* end confdefs.h. */ | |
438013df | 21634 | |
bec39cab AC |
21635 | int |
21636 | main () | |
21637 | { | |
438013df | 21638 | int i; |
bec39cab AC |
21639 | ; |
21640 | return 0; | |
21641 | } | |
21642 | _ACEOF | |
21643 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21645 | (eval $ac_link) 2>conftest.er1 | |
21646 | ac_status=$? | |
21647 | grep -v '^ *+' conftest.er1 >conftest.err | |
21648 | rm -f conftest.er1 | |
21649 | cat conftest.err >&5 | |
21650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21651 | (exit $ac_status); } && | |
b4e70030 JB |
21652 | { ac_try='test -z "$ac_c_werror_flag" |
21653 | || test ! -s conftest.err' | |
bec39cab AC |
21654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21655 | (eval $ac_try) 2>&5 | |
21656 | ac_status=$? | |
21657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21658 | (exit $ac_status); }; } && | |
21659 | { ac_try='test -s conftest$ac_exeext' | |
21660 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21661 | (eval $ac_try) 2>&5 | |
21662 | ac_status=$? | |
21663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21664 | (exit $ac_status); }; }; then | |
438013df AO |
21665 | : |
21666 | else | |
bec39cab AC |
21667 | echo "$as_me: failed program was:" >&5 |
21668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21669 | ||
b4e70030 | 21670 | gdb_cv_bigtoc= |
438013df | 21671 | fi |
bec39cab AC |
21672 | rm -f conftest.err conftest.$ac_objext \ |
21673 | conftest$ac_exeext conftest.$ac_ext | |
ec76baa5 | 21674 | LDFLAGS="${SAVE_LDFLAGS}" |
438013df | 21675 | |
bec39cab | 21676 | fi |
b4e70030 JB |
21677 | echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5 |
21678 | echo "${ECHO_T}$gdb_cv_bigtoc" >&6 | |
438013df AO |
21679 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}" |
21680 | ;; | |
21681 | esac | |
21682 | ||
c906108c SS |
21683 | |
21684 | ||
21685 | if test ${build} = ${host} -a ${host} = ${target} ; then | |
21686 | case ${host_os} in | |
21687 | hpux*) | |
b4e70030 JB |
21688 | echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5 |
21689 | echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6 | |
c906108c SS |
21690 | if test -f /usr/include/dce/cma_config.h ; then |
21691 | if test "$GCC" = "yes" ; then | |
b4e70030 JB |
21692 | echo "$as_me:$LINENO: result: yes" >&5 |
21693 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
21694 | |
21695 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 21696 | #define HAVE_HPUX_THREAD_SUPPORT 1 |
bec39cab | 21697 | _ACEOF |
c906108c | 21698 | |
3483b318 | 21699 | CONFIG_OBS="${CONFIG_OBS} hpux-thread.o" |
c906108c SS |
21700 | CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c" |
21701 | else | |
b4e70030 JB |
21702 | echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5 |
21703 | echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6 | |
c906108c SS |
21704 | fi |
21705 | else | |
b4e70030 JB |
21706 | echo "$as_me:$LINENO: result: no" >&5 |
21707 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
21708 | fi |
21709 | ;; | |
21710 | solaris*) | |
d92419e5 JB |
21711 | # See if thread_db library is around for Solaris thread debugging. |
21712 | # Note that we must explicitly test for version 1 of the library | |
21713 | # because version 0 (present on Solaris 2.4 or earlier) doesn't have | |
21714 | # the same API. | |
b4e70030 JB |
21715 | echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5 |
21716 | echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6 | |
c906108c | 21717 | if test -f /usr/lib/libthread_db.so.1 ; then |
b4e70030 JB |
21718 | echo "$as_me:$LINENO: result: yes" >&5 |
21719 | echo "${ECHO_T}yes" >&6 | |
60ca704f SE |
21720 | |
21721 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 21722 | #define HAVE_THREAD_DB_LIB 1 |
bec39cab | 21723 | _ACEOF |
c906108c | 21724 | |
3483b318 | 21725 | CONFIG_OBS="${CONFIG_OBS} sol-thread.o" |
c906108c | 21726 | CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c" |
bec39cab | 21727 | |
b4e70030 JB |
21728 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
21729 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
bec39cab AC |
21730 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
21731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21732 | else |
bec39cab | 21733 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 21734 | LIBS="-ldl $LIBS" |
bec39cab AC |
21735 | cat >conftest.$ac_ext <<_ACEOF |
21736 | /* confdefs.h. */ | |
21737 | _ACEOF | |
21738 | cat confdefs.h >>conftest.$ac_ext | |
21739 | cat >>conftest.$ac_ext <<_ACEOF | |
21740 | /* end confdefs.h. */ | |
21741 | ||
b4e70030 | 21742 | /* Override any gcc2 internal prototype to avoid an error. */ |
bec39cab AC |
21743 | #ifdef __cplusplus |
21744 | extern "C" | |
21745 | #endif | |
b4e70030 JB |
21746 | /* We use char because int might match the return type of a gcc2 |
21747 | builtin and then its argument prototype would still apply. */ | |
bec39cab AC |
21748 | char dlopen (); |
21749 | int | |
21750 | main () | |
21751 | { | |
b4e70030 | 21752 | dlopen (); |
bec39cab AC |
21753 | ; |
21754 | return 0; | |
21755 | } | |
21756 | _ACEOF | |
21757 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21759 | (eval $ac_link) 2>conftest.er1 | |
21760 | ac_status=$? | |
21761 | grep -v '^ *+' conftest.er1 >conftest.err | |
21762 | rm -f conftest.er1 | |
21763 | cat conftest.err >&5 | |
21764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21765 | (exit $ac_status); } && | |
b4e70030 JB |
21766 | { ac_try='test -z "$ac_c_werror_flag" |
21767 | || test ! -s conftest.err' | |
bec39cab AC |
21768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21769 | (eval $ac_try) 2>&5 | |
21770 | ac_status=$? | |
21771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21772 | (exit $ac_status); }; } && | |
21773 | { ac_try='test -s conftest$ac_exeext' | |
21774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21775 | (eval $ac_try) 2>&5 | |
21776 | ac_status=$? | |
21777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21778 | (exit $ac_status); }; }; then | |
21779 | ac_cv_lib_dl_dlopen=yes | |
21780 | else | |
21781 | echo "$as_me: failed program was:" >&5 | |
21782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21783 | ||
b4e70030 | 21784 | ac_cv_lib_dl_dlopen=no |
bec39cab AC |
21785 | fi |
21786 | rm -f conftest.err conftest.$ac_objext \ | |
21787 | conftest$ac_exeext conftest.$ac_ext | |
21788 | LIBS=$ac_check_lib_save_LIBS | |
21789 | fi | |
b4e70030 JB |
21790 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
21791 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
bec39cab AC |
21792 | if test $ac_cv_lib_dl_dlopen = yes; then |
21793 | cat >>confdefs.h <<_ACEOF | |
21794 | #define HAVE_LIBDL 1 | |
21795 | _ACEOF | |
c906108c SS |
21796 | |
21797 | LIBS="-ldl $LIBS" | |
21798 | ||
c906108c SS |
21799 | fi |
21800 | ||
21801 | if test "$GCC" = "yes" ; then | |
21802 | # The GNU linker requires the -export-dynamic option to make | |
21803 | # all symbols visible in the dynamic symbol table. | |
21804 | hold_ldflags=$LDFLAGS | |
b4e70030 JB |
21805 | echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5 |
21806 | echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6 | |
c906108c | 21807 | LDFLAGS="${LDFLAGS} -Wl,-export-dynamic" |
bec39cab AC |
21808 | cat >conftest.$ac_ext <<_ACEOF |
21809 | /* confdefs.h. */ | |
21810 | _ACEOF | |
21811 | cat confdefs.h >>conftest.$ac_ext | |
21812 | cat >>conftest.$ac_ext <<_ACEOF | |
21813 | /* end confdefs.h. */ | |
c906108c | 21814 | |
bec39cab AC |
21815 | int |
21816 | main () | |
21817 | { | |
c906108c | 21818 | int i; |
bec39cab AC |
21819 | ; |
21820 | return 0; | |
21821 | } | |
21822 | _ACEOF | |
21823 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21824 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21825 | (eval $ac_link) 2>conftest.er1 | |
21826 | ac_status=$? | |
21827 | grep -v '^ *+' conftest.er1 >conftest.err | |
21828 | rm -f conftest.er1 | |
21829 | cat conftest.err >&5 | |
21830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21831 | (exit $ac_status); } && | |
b4e70030 JB |
21832 | { ac_try='test -z "$ac_c_werror_flag" |
21833 | || test ! -s conftest.err' | |
bec39cab AC |
21834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21835 | (eval $ac_try) 2>&5 | |
21836 | ac_status=$? | |
21837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21838 | (exit $ac_status); }; } && | |
21839 | { ac_try='test -s conftest$ac_exeext' | |
21840 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21841 | (eval $ac_try) 2>&5 | |
21842 | ac_status=$? | |
21843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21844 | (exit $ac_status); }; }; then | |
c906108c SS |
21845 | found=yes |
21846 | else | |
bec39cab AC |
21847 | echo "$as_me: failed program was:" >&5 |
21848 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21849 | ||
b4e70030 | 21850 | found=no |
c906108c | 21851 | fi |
bec39cab AC |
21852 | rm -f conftest.err conftest.$ac_objext \ |
21853 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 21854 | LDFLAGS=$hold_ldflags |
b4e70030 JB |
21855 | echo "$as_me:$LINENO: result: $found" >&5 |
21856 | echo "${ECHO_T}$found" >&6 | |
c906108c SS |
21857 | if test $found = yes; then |
21858 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic" | |
21859 | fi | |
21860 | fi | |
21861 | # Sun randomly tweaked the prototypes in <proc_service.h> | |
21862 | # at one point. | |
b4e70030 JB |
21863 | echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5 |
21864 | echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6 | |
bec39cab AC |
21865 | if test "${gdb_cv_proc_service_is_old+set}" = set; then |
21866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 21867 | else |
bec39cab AC |
21868 | |
21869 | cat >conftest.$ac_ext <<_ACEOF | |
21870 | /* confdefs.h. */ | |
21871 | _ACEOF | |
21872 | cat confdefs.h >>conftest.$ac_ext | |
21873 | cat >>conftest.$ac_ext <<_ACEOF | |
21874 | /* end confdefs.h. */ | |
c906108c SS |
21875 | |
21876 | #include <proc_service.h> | |
21877 | ps_err_e ps_pdwrite | |
21878 | (struct ps_prochandle*, psaddr_t, const void*, size_t); | |
c906108c | 21879 | |
bec39cab AC |
21880 | int |
21881 | main () | |
21882 | { | |
21883 | ||
21884 | ; | |
21885 | return 0; | |
21886 | } | |
21887 | _ACEOF | |
21888 | rm -f conftest.$ac_objext | |
21889 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21890 | (eval $ac_compile) 2>conftest.er1 | |
21891 | ac_status=$? | |
21892 | grep -v '^ *+' conftest.er1 >conftest.err | |
21893 | rm -f conftest.er1 | |
21894 | cat conftest.err >&5 | |
21895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21896 | (exit $ac_status); } && | |
b4e70030 JB |
21897 | { ac_try='test -z "$ac_c_werror_flag" |
21898 | || test ! -s conftest.err' | |
bec39cab AC |
21899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21900 | (eval $ac_try) 2>&5 | |
21901 | ac_status=$? | |
21902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21903 | (exit $ac_status); }; } && | |
21904 | { ac_try='test -s conftest.$ac_objext' | |
21905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21906 | (eval $ac_try) 2>&5 | |
21907 | ac_status=$? | |
21908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21909 | (exit $ac_status); }; }; then | |
c906108c SS |
21910 | gdb_cv_proc_service_is_old=no |
21911 | else | |
bec39cab AC |
21912 | echo "$as_me: failed program was:" >&5 |
21913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21914 | ||
b4e70030 | 21915 | gdb_cv_proc_service_is_old=yes |
c906108c | 21916 | fi |
bec39cab AC |
21917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21918 | ||
c906108c SS |
21919 | fi |
21920 | ||
b4e70030 JB |
21921 | echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5 |
21922 | echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6 | |
c906108c | 21923 | if test $gdb_cv_proc_service_is_old = yes; then |
60ca704f SE |
21924 | |
21925 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 21926 | #define PROC_SERVICE_IS_OLD 1 |
bec39cab | 21927 | _ACEOF |
c906108c SS |
21928 | |
21929 | fi | |
21930 | else | |
b4e70030 JB |
21931 | echo "$as_me:$LINENO: result: no" >&5 |
21932 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
21933 | fi |
21934 | ;; | |
d92419e5 | 21935 | aix*) |
b4e70030 JB |
21936 | echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5 |
21937 | echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6 | |
bec39cab AC |
21938 | if test "${gdb_cv_have_aix_thread_debug+set}" = set; then |
21939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21940 | else | |
21941 | cat >conftest.$ac_ext <<_ACEOF | |
21942 | /* confdefs.h. */ | |
21943 | _ACEOF | |
21944 | cat confdefs.h >>conftest.$ac_ext | |
21945 | cat >>conftest.$ac_ext <<_ACEOF | |
21946 | /* end confdefs.h. */ | |
d92419e5 | 21947 | #include <sys/pthdebug.h> |
bec39cab AC |
21948 | int |
21949 | main () | |
21950 | { | |
d92419e5 JB |
21951 | #ifndef PTHDB_VERSION_3 |
21952 | #error | |
21953 | #endif | |
bec39cab AC |
21954 | ; |
21955 | return 0; | |
21956 | } | |
21957 | _ACEOF | |
21958 | rm -f conftest.$ac_objext | |
21959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21960 | (eval $ac_compile) 2>conftest.er1 | |
21961 | ac_status=$? | |
21962 | grep -v '^ *+' conftest.er1 >conftest.err | |
21963 | rm -f conftest.er1 | |
21964 | cat conftest.err >&5 | |
21965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21966 | (exit $ac_status); } && | |
b4e70030 JB |
21967 | { ac_try='test -z "$ac_c_werror_flag" |
21968 | || test ! -s conftest.err' | |
bec39cab AC |
21969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21970 | (eval $ac_try) 2>&5 | |
21971 | ac_status=$? | |
21972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21973 | (exit $ac_status); }; } && | |
21974 | { ac_try='test -s conftest.$ac_objext' | |
21975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21976 | (eval $ac_try) 2>&5 | |
21977 | ac_status=$? | |
21978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21979 | (exit $ac_status); }; }; then | |
d92419e5 JB |
21980 | gdb_cv_have_aix_thread_debug=yes |
21981 | else | |
bec39cab AC |
21982 | echo "$as_me: failed program was:" >&5 |
21983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21984 | ||
b4e70030 | 21985 | gdb_cv_have_aix_thread_debug=no |
d92419e5 | 21986 | fi |
bec39cab | 21987 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
d92419e5 JB |
21988 | fi |
21989 | ||
b4e70030 JB |
21990 | echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5 |
21991 | echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6 | |
d92419e5 JB |
21992 | if test $gdb_cv_have_aix_thread_debug = yes; then |
21993 | CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" | |
3483b318 | 21994 | CONFIG_OBS="${CONFIG_OBS} aix-thread.o" |
d92419e5 JB |
21995 | CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" |
21996 | fi | |
21997 | ;; | |
c906108c | 21998 | esac |
bec39cab | 21999 | |
c906108c SS |
22000 | fi |
22001 | ||
3f47be5c | 22002 | if test "x$ac_cv_header_thread_db_h" = "xyes"; then |
b4e70030 JB |
22003 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5 |
22004 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6 | |
bec39cab AC |
22005 | if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then |
22006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22007 | else | |
22008 | cat >conftest.$ac_ext <<_ACEOF | |
22009 | /* confdefs.h. */ | |
22010 | _ACEOF | |
22011 | cat confdefs.h >>conftest.$ac_ext | |
22012 | cat >>conftest.$ac_ext <<_ACEOF | |
22013 | /* end confdefs.h. */ | |
3f47be5c | 22014 | #include <thread_db.h> |
bec39cab AC |
22015 | int |
22016 | main () | |
22017 | { | |
3f47be5c | 22018 | int i = TD_NOTALLOC; |
bec39cab AC |
22019 | ; |
22020 | return 0; | |
22021 | } | |
22022 | _ACEOF | |
22023 | rm -f conftest.$ac_objext | |
22024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22025 | (eval $ac_compile) 2>conftest.er1 | |
22026 | ac_status=$? | |
22027 | grep -v '^ *+' conftest.er1 >conftest.err | |
22028 | rm -f conftest.er1 | |
22029 | cat conftest.err >&5 | |
22030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22031 | (exit $ac_status); } && | |
b4e70030 JB |
22032 | { ac_try='test -z "$ac_c_werror_flag" |
22033 | || test ! -s conftest.err' | |
bec39cab AC |
22034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22035 | (eval $ac_try) 2>&5 | |
22036 | ac_status=$? | |
22037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22038 | (exit $ac_status); }; } && | |
22039 | { ac_try='test -s conftest.$ac_objext' | |
22040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22041 | (eval $ac_try) 2>&5 | |
22042 | ac_status=$? | |
22043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22044 | (exit $ac_status); }; }; then | |
3f47be5c EZ |
22045 | gdb_cv_thread_db_h_has_td_notalloc=yes |
22046 | else | |
bec39cab AC |
22047 | echo "$as_me: failed program was:" >&5 |
22048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22049 | ||
b4e70030 | 22050 | gdb_cv_thread_db_h_has_td_notalloc=no |
bec39cab | 22051 | |
3f47be5c | 22052 | fi |
bec39cab | 22053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3f47be5c | 22054 | |
bec39cab | 22055 | fi |
b4e70030 JB |
22056 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5 |
22057 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6 | |
59f80f10 DJ |
22058 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5 |
22059 | echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6 | |
22060 | if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then | |
22061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22062 | else | |
22063 | cat >conftest.$ac_ext <<_ACEOF | |
22064 | /* confdefs.h. */ | |
22065 | _ACEOF | |
22066 | cat confdefs.h >>conftest.$ac_ext | |
22067 | cat >>conftest.$ac_ext <<_ACEOF | |
22068 | /* end confdefs.h. */ | |
22069 | #include <thread_db.h> | |
22070 | int | |
22071 | main () | |
22072 | { | |
22073 | int i = TD_VERSION; | |
22074 | ; | |
22075 | return 0; | |
22076 | } | |
22077 | _ACEOF | |
22078 | rm -f conftest.$ac_objext | |
22079 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22080 | (eval $ac_compile) 2>conftest.er1 | |
22081 | ac_status=$? | |
22082 | grep -v '^ *+' conftest.er1 >conftest.err | |
22083 | rm -f conftest.er1 | |
22084 | cat conftest.err >&5 | |
22085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22086 | (exit $ac_status); } && | |
22087 | { ac_try='test -z "$ac_c_werror_flag" | |
22088 | || test ! -s conftest.err' | |
22089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22090 | (eval $ac_try) 2>&5 | |
22091 | ac_status=$? | |
22092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22093 | (exit $ac_status); }; } && | |
22094 | { ac_try='test -s conftest.$ac_objext' | |
22095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22096 | (eval $ac_try) 2>&5 | |
22097 | ac_status=$? | |
22098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22099 | (exit $ac_status); }; }; then | |
22100 | gdb_cv_thread_db_h_has_td_version=yes | |
22101 | else | |
22102 | echo "$as_me: failed program was:" >&5 | |
22103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22104 | ||
22105 | gdb_cv_thread_db_h_has_td_version=no | |
22106 | ||
22107 | fi | |
22108 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22109 | ||
22110 | fi | |
22111 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5 | |
22112 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6 | |
22113 | echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5 | |
22114 | echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6 | |
22115 | if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then | |
22116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22117 | else | |
22118 | cat >conftest.$ac_ext <<_ACEOF | |
22119 | /* confdefs.h. */ | |
22120 | _ACEOF | |
22121 | cat confdefs.h >>conftest.$ac_ext | |
22122 | cat >>conftest.$ac_ext <<_ACEOF | |
22123 | /* end confdefs.h. */ | |
22124 | #include <thread_db.h> | |
22125 | int | |
22126 | main () | |
22127 | { | |
22128 | int i = TD_NOTLS; | |
22129 | ; | |
22130 | return 0; | |
22131 | } | |
22132 | _ACEOF | |
22133 | rm -f conftest.$ac_objext | |
22134 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22135 | (eval $ac_compile) 2>conftest.er1 | |
22136 | ac_status=$? | |
22137 | grep -v '^ *+' conftest.er1 >conftest.err | |
22138 | rm -f conftest.er1 | |
22139 | cat conftest.err >&5 | |
22140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22141 | (exit $ac_status); } && | |
22142 | { ac_try='test -z "$ac_c_werror_flag" | |
22143 | || test ! -s conftest.err' | |
22144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22145 | (eval $ac_try) 2>&5 | |
22146 | ac_status=$? | |
22147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22148 | (exit $ac_status); }; } && | |
22149 | { ac_try='test -s conftest.$ac_objext' | |
22150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22151 | (eval $ac_try) 2>&5 | |
22152 | ac_status=$? | |
22153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22154 | (exit $ac_status); }; }; then | |
22155 | gdb_cv_thread_db_h_has_td_notls=yes | |
22156 | else | |
22157 | echo "$as_me: failed program was:" >&5 | |
22158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22159 | ||
22160 | gdb_cv_thread_db_h_has_td_notls=no | |
22161 | ||
22162 | fi | |
22163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
22164 | ||
22165 | fi | |
22166 | echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5 | |
22167 | echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6 | |
3f47be5c EZ |
22168 | fi |
22169 | if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then | |
bec39cab AC |
22170 | |
22171 | cat >>confdefs.h <<\_ACEOF | |
3f47be5c | 22172 | #define THREAD_DB_HAS_TD_NOTALLOC 1 |
bec39cab | 22173 | _ACEOF |
3f47be5c | 22174 | |
59f80f10 DJ |
22175 | fi |
22176 | if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then | |
22177 | ||
22178 | cat >>confdefs.h <<\_ACEOF | |
22179 | #define THREAD_DB_HAS_TD_VERSION 1 | |
22180 | _ACEOF | |
22181 | ||
22182 | fi | |
22183 | if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then | |
22184 | ||
22185 | cat >>confdefs.h <<\_ACEOF | |
22186 | #define THREAD_DB_HAS_TD_NOTLS 1 | |
22187 | _ACEOF | |
22188 | ||
3f47be5c EZ |
22189 | fi |
22190 | ||
b757528f | 22191 | if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then |
b4e70030 JB |
22192 | echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5 |
22193 | echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6 | |
bec39cab AC |
22194 | if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then |
22195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22196 | else | |
22197 | cat >conftest.$ac_ext <<_ACEOF | |
22198 | /* confdefs.h. */ | |
22199 | _ACEOF | |
22200 | cat confdefs.h >>conftest.$ac_ext | |
22201 | cat >>conftest.$ac_ext <<_ACEOF | |
22202 | /* end confdefs.h. */ | |
b757528f | 22203 | #include <sys/syscall.h> |
bec39cab AC |
22204 | int |
22205 | main () | |
22206 | { | |
b757528f | 22207 | int i = __NR_tkill; |
bec39cab AC |
22208 | ; |
22209 | return 0; | |
22210 | } | |
22211 | _ACEOF | |
22212 | rm -f conftest.$ac_objext | |
22213 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22214 | (eval $ac_compile) 2>conftest.er1 | |
22215 | ac_status=$? | |
22216 | grep -v '^ *+' conftest.er1 >conftest.err | |
22217 | rm -f conftest.er1 | |
22218 | cat conftest.err >&5 | |
22219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22220 | (exit $ac_status); } && | |
b4e70030 JB |
22221 | { ac_try='test -z "$ac_c_werror_flag" |
22222 | || test ! -s conftest.err' | |
bec39cab AC |
22223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22224 | (eval $ac_try) 2>&5 | |
22225 | ac_status=$? | |
22226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22227 | (exit $ac_status); }; } && | |
22228 | { ac_try='test -s conftest.$ac_objext' | |
22229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22230 | (eval $ac_try) 2>&5 | |
22231 | ac_status=$? | |
22232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22233 | (exit $ac_status); }; }; then | |
b757528f JJ |
22234 | gdb_cv_sys_syscall_h_has_tkill=yes |
22235 | else | |
bec39cab AC |
22236 | echo "$as_me: failed program was:" >&5 |
22237 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22238 | ||
b4e70030 | 22239 | gdb_cv_sys_syscall_h_has_tkill=no |
bec39cab | 22240 | |
b757528f | 22241 | fi |
bec39cab | 22242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b757528f | 22243 | |
bec39cab | 22244 | fi |
b4e70030 JB |
22245 | echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5 |
22246 | echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6 | |
b757528f JJ |
22247 | fi |
22248 | if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then | |
bec39cab AC |
22249 | |
22250 | cat >>confdefs.h <<\_ACEOF | |
b757528f | 22251 | #define HAVE_TKILL_SYSCALL 1 |
bec39cab | 22252 | _ACEOF |
b757528f JJ |
22253 | |
22254 | fi | |
22255 | ||
fb40c209 | 22256 | |
bec39cab | 22257 | |
b4e70030 | 22258 | # Check whether --with-sysroot or --without-sysroot was given. |
030292b7 | 22259 | if test "${with_sysroot+set}" = set; then |
b4e70030 JB |
22260 | withval="$with_sysroot" |
22261 | ||
030292b7 | 22262 | case ${with_sysroot} in |
715d1656 | 22263 | yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; |
030292b7 DJ |
22264 | *) TARGET_SYSTEM_ROOT=$with_sysroot ;; |
22265 | esac | |
22266 | ||
22267 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' | |
22268 | ||
07abfebf RS |
22269 | if test "x$prefix" = xNONE; then |
22270 | test_prefix=/usr/local | |
22271 | else | |
22272 | test_prefix=$prefix | |
22273 | fi | |
aa28a74e | 22274 | if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then |
07abfebf | 22275 | test_exec_prefix=$test_prefix |
030292b7 | 22276 | else |
07abfebf | 22277 | test_exec_prefix=$exec_prefix |
030292b7 DJ |
22278 | fi |
22279 | case ${TARGET_SYSTEM_ROOT} in | |
715d1656 | 22280 | "${test_prefix}"|"${test_prefix}/"*|\ |
07abfebf RS |
22281 | "${test_exec_prefix}"|"${test_exec_prefix}/"*|\ |
22282 | '${prefix}'|'${prefix}/'*|\ | |
715d1656 | 22283 | '${exec_prefix}'|'${exec_prefix}/'*) |
030292b7 DJ |
22284 | t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" |
22285 | TARGET_SYSTEM_ROOT_DEFINE="$t" | |
22286 | ;; | |
22287 | esac | |
22288 | ||
22289 | else | |
bec39cab | 22290 | |
030292b7 DJ |
22291 | TARGET_SYSTEM_ROOT= |
22292 | TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"' | |
22293 | ||
b4e70030 | 22294 | fi; |
030292b7 DJ |
22295 | |
22296 | ||
22297 | ||
b4e70030 | 22298 | # Check whether --enable-werror or --disable-werror was given. |
094a342e | 22299 | if test "${enable_werror+set}" = set; then |
b4e70030 JB |
22300 | enableval="$enable_werror" |
22301 | case "${enableval}" in | |
094a342e MK |
22302 | yes | y) ERROR_ON_WARNING="yes" ;; |
22303 | no | n) ERROR_ON_WARNING="no" ;; | |
22304 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
22305 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
22306 | { (exit 1); exit 1; }; } ;; | |
22307 | esac | |
b4e70030 | 22308 | fi; |
094a342e MK |
22309 | |
22310 | # Enable -Werror by default when using gcc | |
22311 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
22312 | ERROR_ON_WARNING=yes | |
22313 | fi | |
22314 | ||
22315 | WERROR_CFLAGS="" | |
22316 | if test "${ERROR_ON_WARNING}" = yes ; then | |
22317 | WERROR_CFLAGS="-Werror" | |
22318 | fi | |
22319 | ||
aa79a185 DJ |
22320 | # The entries after -Wno-pointer-sign are disabled warnings which may |
22321 | # be enabled in the future, which can not currently be used to build | |
22322 | # GDB. | |
22323 | # NOTE: If you change this list, remember to update | |
3b851bce | 22324 | # gdb/doc/gdbint.texinfo. |
aa79a185 DJ |
22325 | build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \ |
22326 | -Wformat-nonliteral -Wno-pointer-sign \ | |
58b38ee2 | 22327 | -Wno-unused -Wno-switch -Wno-char-subscripts" |
a3b362c4 | 22328 | |
b4e70030 | 22329 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
c906108c | 22330 | if test "${enable_build_warnings+set}" = set; then |
b4e70030 JB |
22331 | enableval="$enable_build_warnings" |
22332 | case "${enableval}" in | |
c906108c SS |
22333 | yes) ;; |
22334 | no) build_warnings="-w";; | |
22335 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
22336 | build_warnings="${build_warnings} ${t}";; | |
22337 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
22338 | build_warnings="${t} ${build_warnings}";; | |
22339 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
22340 | esac | |
d4f3574e | 22341 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then |
746a987d | 22342 | echo "Setting compiler warning flags = $build_warnings" 6>&1 |
c906108c | 22343 | fi |
b4e70030 | 22344 | fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given. |
3b851bce | 22345 | if test "${enable_gdb_build_warnings+set}" = set; then |
b4e70030 JB |
22346 | enableval="$enable_gdb_build_warnings" |
22347 | case "${enableval}" in | |
3b851bce AC |
22348 | yes) ;; |
22349 | no) build_warnings="-w";; | |
22350 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
22351 | build_warnings="${build_warnings} ${t}";; | |
22352 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
22353 | build_warnings="${t} ${build_warnings}";; | |
22354 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
22355 | esac | |
22356 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
22357 | echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1 | |
22358 | fi | |
b4e70030 | 22359 | fi; WARN_CFLAGS="" |
c906108c SS |
22360 | if test "x${build_warnings}" != x -a "x$GCC" = xyes |
22361 | then | |
b4e70030 JB |
22362 | echo "$as_me:$LINENO: checking compiler warning flags" >&5 |
22363 | echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6 | |
746a987d AC |
22364 | # Separate out the -Werror flag as some files just cannot be |
22365 | # compiled with it enabled. | |
22366 | for w in ${build_warnings}; do | |
22367 | case $w in | |
22368 | -Werr*) WERROR_CFLAGS=-Werror ;; | |
22369 | *) # Check that GCC accepts it | |
4536bbc6 AC |
22370 | saved_CFLAGS="$CFLAGS" |
22371 | CFLAGS="$CFLAGS $w" | |
bec39cab AC |
22372 | cat >conftest.$ac_ext <<_ACEOF |
22373 | /* confdefs.h. */ | |
22374 | _ACEOF | |
22375 | cat confdefs.h >>conftest.$ac_ext | |
22376 | cat >>conftest.$ac_ext <<_ACEOF | |
22377 | /* end confdefs.h. */ | |
4536bbc6 | 22378 | |
bec39cab AC |
22379 | int |
22380 | main () | |
22381 | { | |
4536bbc6 | 22382 | |
bec39cab AC |
22383 | ; |
22384 | return 0; | |
22385 | } | |
22386 | _ACEOF | |
22387 | rm -f conftest.$ac_objext | |
22388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22389 | (eval $ac_compile) 2>conftest.er1 | |
22390 | ac_status=$? | |
22391 | grep -v '^ *+' conftest.er1 >conftest.err | |
22392 | rm -f conftest.er1 | |
22393 | cat conftest.err >&5 | |
22394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22395 | (exit $ac_status); } && | |
b4e70030 JB |
22396 | { ac_try='test -z "$ac_c_werror_flag" |
22397 | || test ! -s conftest.err' | |
bec39cab AC |
22398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22399 | (eval $ac_try) 2>&5 | |
22400 | ac_status=$? | |
22401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22402 | (exit $ac_status); }; } && | |
22403 | { ac_try='test -s conftest.$ac_objext' | |
22404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22405 | (eval $ac_try) 2>&5 | |
22406 | ac_status=$? | |
22407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22408 | (exit $ac_status); }; }; then | |
4536bbc6 AC |
22409 | WARN_CFLAGS="${WARN_CFLAGS} $w" |
22410 | else | |
bec39cab AC |
22411 | echo "$as_me: failed program was:" >&5 |
22412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22413 | ||
4536bbc6 | 22414 | fi |
bec39cab | 22415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4536bbc6 | 22416 | CFLAGS="$saved_CFLAGS" |
746a987d AC |
22417 | esac |
22418 | done | |
aa79a185 DJ |
22419 | echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5 |
22420 | echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6 | |
c906108c SS |
22421 | fi |
22422 | ||
22423 | ||
104c1213 | 22424 | |
7a292a7a | 22425 | # In the Cygwin environment, we need some additional flags. |
b4e70030 JB |
22426 | echo "$as_me:$LINENO: checking for cygwin" >&5 |
22427 | echo $ECHO_N "checking for cygwin... $ECHO_C" >&6 | |
bec39cab AC |
22428 | if test "${gdb_cv_os_cygwin+set}" = set; then |
22429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22430 | else | |
22431 | cat >conftest.$ac_ext <<_ACEOF | |
22432 | /* confdefs.h. */ | |
22433 | _ACEOF | |
22434 | cat confdefs.h >>conftest.$ac_ext | |
22435 | cat >>conftest.$ac_ext <<_ACEOF | |
22436 | /* end confdefs.h. */ | |
7a292a7a SS |
22437 | |
22438 | #if defined (__CYGWIN__) || defined (__CYGWIN32__) | |
22439 | lose | |
22440 | #endif | |
bec39cab | 22441 | _ACEOF |
7a292a7a | 22442 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
bec39cab | 22443 | $EGREP "lose" >/dev/null 2>&1; then |
7a292a7a SS |
22444 | gdb_cv_os_cygwin=yes |
22445 | else | |
7a292a7a SS |
22446 | gdb_cv_os_cygwin=no |
22447 | fi | |
22448 | rm -f conftest* | |
22449 | ||
22450 | fi | |
b4e70030 JB |
22451 | echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5 |
22452 | echo "${ECHO_T}$gdb_cv_os_cygwin" >&6 | |
7a292a7a | 22453 | |
aff38e61 | 22454 | |
3eb25fda | 22455 | SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o" |
aff38e61 | 22456 | case ${host} in |
95cbc983 AC |
22457 | *go32* ) SER_HARDWIRE=ser-go32.o ;; |
22458 | *djgpp* ) SER_HARDWIRE=ser-go32.o ;; | |
0ea3f30e | 22459 | *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;; |
aff38e61 AC |
22460 | esac |
22461 | ||
22462 | ||
cd0fc7c3 SS |
22463 | # libreadline needs libuser32.a in a cygwin environment |
22464 | WIN32LIBS= | |
22465 | if test x$gdb_cv_os_cygwin = xyes; then | |
c5394b80 JM |
22466 | WIN32LIBS="-luser32" |
22467 | case "${target}" in | |
22468 | *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp" | |
22469 | ;; | |
22470 | esac | |
cd0fc7c3 | 22471 | fi |
c906108c | 22472 | |
b4505029 MM |
22473 | # The ser-tcp.c module requires sockets. |
22474 | case ${host} in | |
22475 | *mingw32*) | |
22476 | ||
22477 | cat >>confdefs.h <<\_ACEOF | |
22478 | #define USE_WIN32API 1 | |
22479 | _ACEOF | |
22480 | ||
22481 | WIN32LIBS="$WIN32LIBS -lws2_32" | |
22482 | ;; | |
22483 | esac | |
22484 | ||
7a292a7a | 22485 | |
31d99776 DJ |
22486 | # Add ELF support to GDB, but only if BFD includes ELF support. |
22487 | OLD_CFLAGS=$CFLAGS | |
22488 | OLD_LDFLAGS=$LDFLAGS | |
22489 | OLD_LIBS=$LIBS | |
cab58a69 | 22490 | CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" |
31d99776 | 22491 | LDFLAGS="$LDFLAGS -L../bfd -L../libiberty" |
7b3200f9 DJ |
22492 | intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` |
22493 | LIBS="$LIBS -lbfd -liberty $intl" | |
31d99776 DJ |
22494 | echo "$as_me:$LINENO: checking for ELF support in BFD" >&5 |
22495 | echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6 | |
22496 | if test "${gdb_cv_var_elf+set}" = set; then | |
22497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22498 | else | |
22499 | cat >conftest.$ac_ext <<_ACEOF | |
22500 | /* confdefs.h. */ | |
22501 | _ACEOF | |
22502 | cat confdefs.h >>conftest.$ac_ext | |
22503 | cat >>conftest.$ac_ext <<_ACEOF | |
22504 | /* end confdefs.h. */ | |
22505 | #include <stdlib.h> | |
22506 | #include "bfd.h" | |
22507 | #include "elf-bfd.h" | |
22508 | ||
22509 | int | |
22510 | main () | |
22511 | { | |
22512 | bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd); | |
22513 | ; | |
22514 | return 0; | |
22515 | } | |
22516 | _ACEOF | |
22517 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22518 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22519 | (eval $ac_link) 2>conftest.er1 | |
22520 | ac_status=$? | |
22521 | grep -v '^ *+' conftest.er1 >conftest.err | |
22522 | rm -f conftest.er1 | |
22523 | cat conftest.err >&5 | |
22524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22525 | (exit $ac_status); } && | |
22526 | { ac_try='test -z "$ac_c_werror_flag" | |
22527 | || test ! -s conftest.err' | |
22528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22529 | (eval $ac_try) 2>&5 | |
22530 | ac_status=$? | |
22531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22532 | (exit $ac_status); }; } && | |
22533 | { ac_try='test -s conftest$ac_exeext' | |
22534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22535 | (eval $ac_try) 2>&5 | |
22536 | ac_status=$? | |
22537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22538 | (exit $ac_status); }; }; then | |
22539 | gdb_cv_var_elf=yes | |
22540 | else | |
22541 | echo "$as_me: failed program was:" >&5 | |
22542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22543 | ||
22544 | gdb_cv_var_elf=no | |
22545 | fi | |
22546 | rm -f conftest.err conftest.$ac_objext \ | |
22547 | conftest$ac_exeext conftest.$ac_ext | |
22548 | fi | |
22549 | echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5 | |
22550 | echo "${ECHO_T}$gdb_cv_var_elf" >&6 | |
22551 | if test $gdb_cv_var_elf = yes; then | |
22552 | CONFIG_OBS="$CONFIG_OBS elfread.o" | |
22553 | ||
22554 | cat >>confdefs.h <<\_ACEOF | |
22555 | #define HAVE_ELF 1 | |
22556 | _ACEOF | |
22557 | ||
22558 | fi | |
22559 | CFLAGS=$OLD_CFLAGS | |
22560 | LDFLAGS=$OLD_LDFLAGS | |
22561 | LIBS=$OLD_LIBS | |
22562 | ||
121ce6e5 DJ |
22563 | # Add any host-specific objects to GDB. |
22564 | CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}" | |
22565 | ||
3fc11d3e JM |
22566 | LIBGUI="../libgui/src/libgui.a" |
22567 | GUI_CFLAGS_X="-I${srcdir}/../libgui/src" | |
22568 | ||
22569 | ||
7a292a7a | 22570 | |
3fc11d3e JM |
22571 | WIN32LDAPP= |
22572 | ||
22573 | ||
22574 | ||
d91670b9 CV |
22575 | case "${host}" in |
22576 | *-*-cygwin*) | |
22577 | configdir="win" | |
22578 | ;; | |
22579 | *) | |
22580 | configdir="unix" | |
22581 | ;; | |
22582 | esac | |
3fc11d3e JM |
22583 | |
22584 | GDBTKLIBS= | |
22585 | if test "${enable_gdbtk}" = "yes"; then | |
22586 | ||
d1c3b63a KS |
22587 | # Gdbtk must have an absolute path to srcdir in order to run |
22588 | # properly when not installed. | |
22589 | here=`pwd` | |
22590 | cd ${srcdir} | |
22591 | GDBTK_SRC_DIR=`pwd` | |
22592 | cd $here | |
22593 | ||
bec39cab | 22594 | |
3fc11d3e JM |
22595 | # |
22596 | # Ok, lets find the tcl configuration | |
bec39cab | 22597 | # First, look for one uninstalled. |
3fc11d3e JM |
22598 | # the alternative search directory is invoked by --with-tclconfig |
22599 | # | |
22600 | ||
22601 | if test x"${no_tcl}" = x ; then | |
22602 | # we reset no_tcl in case something fails here | |
22603 | no_tcl=true | |
bec39cab | 22604 | |
b4e70030 | 22605 | # Check whether --with-tclconfig or --without-tclconfig was given. |
3fc11d3e | 22606 | if test "${with_tclconfig+set}" = set; then |
b4e70030 JB |
22607 | withval="$with_tclconfig" |
22608 | with_tclconfig=${withval} | |
22609 | fi; | |
22610 | echo "$as_me:$LINENO: checking for Tcl configuration" >&5 | |
22611 | echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6 | |
bec39cab AC |
22612 | if test "${ac_cv_c_tclconfig+set}" = set; then |
22613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22614 | else |
bec39cab | 22615 | |
3fc11d3e JM |
22616 | |
22617 | # First check to see if --with-tclconfig was specified. | |
22618 | if test x"${with_tclconfig}" != x ; then | |
22619 | if test -f "${with_tclconfig}/tclConfig.sh" ; then | |
22620 | ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)` | |
22621 | else | |
bec39cab AC |
22622 | { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5 |
22623 | echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;} | |
22624 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22625 | fi |
22626 | fi | |
22627 | ||
22628 | # then check for a private Tcl installation | |
22629 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22630 | for i in \ | |
22631 | ../tcl \ | |
22632 | `ls -dr ../tcl[7-9]* 2>/dev/null` \ | |
22633 | ../../tcl \ | |
22634 | `ls -dr ../../tcl[7-9]* 2>/dev/null` \ | |
22635 | ../../../tcl \ | |
22636 | `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do | |
22637 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
22638 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
22639 | break | |
22640 | fi | |
22641 | done | |
22642 | fi | |
22643 | # check in a few common install locations | |
22644 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22645 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22646 | if test -f "$i/tclConfig.sh" ; then | |
22647 | ac_cv_c_tclconfig=`(cd $i; pwd)` | |
22648 | break | |
22649 | fi | |
22650 | done | |
22651 | fi | |
22652 | # check in a few other private locations | |
22653 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22654 | for i in \ | |
22655 | ${srcdir}/../tcl \ | |
22656 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do | |
22657 | if test -f "$i/${configdir}/tclConfig.sh" ; then | |
22658 | ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)` | |
22659 | break | |
22660 | fi | |
22661 | done | |
22662 | fi | |
bec39cab | 22663 | |
3fc11d3e JM |
22664 | fi |
22665 | ||
22666 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22667 | TCLCONFIG="# no Tcl configs found" | |
bec39cab AC |
22668 | { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5 |
22669 | echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;} | |
3fc11d3e JM |
22670 | else |
22671 | no_tcl= | |
22672 | TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh | |
b4e70030 JB |
22673 | echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5 |
22674 | echo "${ECHO_T}found $TCLCONFIG" >&6 | |
3fc11d3e JM |
22675 | fi |
22676 | fi | |
22677 | ||
22678 | if test -z "${no_tcl}"; then | |
bec39cab | 22679 | |
3fc11d3e JM |
22680 | . $TCLCONFIG |
22681 | ||
3fc11d3e JM |
22682 | |
22683 | ||
22684 | ||
22685 | ||
3fc11d3e JM |
22686 | |
22687 | ||
22688 | ||
bec39cab AC |
22689 | |
22690 | ||
22691 | ||
22692 | ||
22693 | ||
22694 | ||
22695 | ||
22696 | ||
22697 | ||
22698 | ||
22699 | ||
22700 | ||
22701 | ||
22702 | ||
22703 | ||
22704 | ||
22705 | ||
22706 | ||
22707 | ||
3fc11d3e JM |
22708 | # |
22709 | # Ok, lets find the tk configuration | |
bec39cab | 22710 | # First, look for one uninstalled. |
3fc11d3e JM |
22711 | # the alternative search directory is invoked by --with-tkconfig |
22712 | # | |
22713 | ||
22714 | if test x"${no_tk}" = x ; then | |
22715 | # we reset no_tk in case something fails here | |
22716 | no_tk=true | |
bec39cab | 22717 | |
b4e70030 | 22718 | # Check whether --with-tkconfig or --without-tkconfig was given. |
3fc11d3e | 22719 | if test "${with_tkconfig+set}" = set; then |
b4e70030 JB |
22720 | withval="$with_tkconfig" |
22721 | with_tkconfig=${withval} | |
22722 | fi; | |
22723 | echo "$as_me:$LINENO: checking for Tk configuration" >&5 | |
22724 | echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6 | |
bec39cab AC |
22725 | if test "${ac_cv_c_tkconfig+set}" = set; then |
22726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22727 | else |
bec39cab | 22728 | |
3fc11d3e JM |
22729 | |
22730 | # First check to see if --with-tkconfig was specified. | |
22731 | if test x"${with_tkconfig}" != x ; then | |
22732 | if test -f "${with_tkconfig}/tkConfig.sh" ; then | |
22733 | ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)` | |
22734 | else | |
bec39cab AC |
22735 | { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5 |
22736 | echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;} | |
22737 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22738 | fi |
22739 | fi | |
22740 | ||
22741 | # then check for a private Tk library | |
22742 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22743 | for i in \ | |
22744 | ../tk \ | |
22745 | `ls -dr ../tk[4-9]* 2>/dev/null` \ | |
22746 | ../../tk \ | |
22747 | `ls -dr ../../tk[4-9]* 2>/dev/null` \ | |
22748 | ../../../tk \ | |
22749 | `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do | |
22750 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
22751 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
22752 | break | |
22753 | fi | |
22754 | done | |
22755 | fi | |
22756 | # check in a few common install locations | |
22757 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22758 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
22759 | if test -f "$i/tkConfig.sh" ; then | |
22760 | ac_cv_c_tkconfig=`(cd $i; pwd)` | |
22761 | break | |
22762 | fi | |
22763 | done | |
22764 | fi | |
22765 | # check in a few other private locations | |
22766 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22767 | for i in \ | |
22768 | ${srcdir}/../tk \ | |
22769 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do | |
22770 | if test -f "$i/${configdir}/tkConfig.sh" ; then | |
22771 | ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)` | |
22772 | break | |
22773 | fi | |
22774 | done | |
22775 | fi | |
bec39cab | 22776 | |
3fc11d3e JM |
22777 | fi |
22778 | ||
22779 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
22780 | TKCONFIG="# no Tk configs found" | |
bec39cab AC |
22781 | { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5 |
22782 | echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;} | |
3fc11d3e JM |
22783 | else |
22784 | no_tk= | |
22785 | TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh | |
b4e70030 JB |
22786 | echo "$as_me:$LINENO: result: found $TKCONFIG" >&5 |
22787 | echo "${ECHO_T}found $TKCONFIG" >&6 | |
3fc11d3e JM |
22788 | fi |
22789 | fi | |
22790 | ||
22791 | ||
22792 | ||
dd2504ab JM |
22793 | # now look for Tcl library stuff |
22794 | ||
d91670b9 | 22795 | tcldir="../tcl/${configdir}/" |
dd2504ab JM |
22796 | |
22797 | TCL_DEPS="${tcldir}${TCL_LIB_FILE}" | |
22798 | ||
3fc11d3e JM |
22799 | # If $no_tk is nonempty, then we can't do Tk, and there is no |
22800 | # point to doing Tcl. | |
22801 | if test -z "${no_tk}"; then | |
bec39cab | 22802 | |
3fc11d3e JM |
22803 | if test -f "$TKCONFIG" ; then |
22804 | . $TKCONFIG | |
22805 | fi | |
22806 | ||
3fc11d3e | 22807 | |
3fc11d3e JM |
22808 | |
22809 | ||
3fc11d3e | 22810 | |
bec39cab AC |
22811 | |
22812 | ||
22813 | ||
22814 | ||
22815 | ||
22816 | ||
22817 | ||
22818 | ||
22819 | ||
3fc11d3e JM |
22820 | # |
22821 | # Ok, lets find the tcl source trees so we can use the headers | |
22822 | # Warning: transition of version 9 to 10 will break this algorithm | |
22823 | # because 10 sorts before 9. We also look for just tcl. We have to | |
22824 | # be careful that we don't match stuff like tclX by accident. | |
22825 | # the alternative search directory is involked by --with-tclinclude | |
22826 | # | |
22827 | ||
22828 | no_tcl=true | |
b4e70030 JB |
22829 | echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5 |
22830 | echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6 | |
bec39cab | 22831 | |
b4e70030 | 22832 | # Check whether --with-tclinclude or --without-tclinclude was given. |
3fc11d3e | 22833 | if test "${with_tclinclude+set}" = set; then |
b4e70030 JB |
22834 | withval="$with_tclinclude" |
22835 | with_tclinclude=${withval} | |
22836 | fi; | |
bec39cab AC |
22837 | if test "${ac_cv_c_tclh+set}" = set; then |
22838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 22839 | else |
bec39cab | 22840 | |
3fc11d3e JM |
22841 | # first check to see if --with-tclinclude was specified |
22842 | if test x"${with_tclinclude}" != x ; then | |
22843 | if test -f ${with_tclinclude}/tclInt.h ; then | |
22844 | ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)` | |
22845 | elif test -f ${with_tclinclude}/generic/tclInt.h ; then | |
22846 | ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)` | |
22847 | else | |
bec39cab AC |
22848 | { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5 |
22849 | echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;} | |
22850 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
22851 | fi |
22852 | fi | |
22853 | ||
22854 | # next check if it came with Tcl configuration file | |
22855 | if test x"${ac_cv_c_tclconfig}" = x ; then | |
22856 | if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then | |
22857 | ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)` | |
22858 | fi | |
22859 | fi | |
22860 | ||
22861 | # next check in private source directory | |
22862 | # | |
22863 | # since ls returns lowest version numbers first, reverse its output | |
22864 | if test x"${ac_cv_c_tclh}" = x ; then | |
22865 | for i in \ | |
22866 | ${srcdir}/../tcl \ | |
22867 | `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \ | |
22868 | ${srcdir}/../../tcl \ | |
22869 | `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \ | |
22870 | ${srcdir}/../../../tcl \ | |
22871 | `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do | |
22872 | if test -f $i/generic/tclInt.h ; then | |
22873 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
22874 | break | |
22875 | fi | |
22876 | done | |
22877 | fi | |
22878 | # finally check in a few common install locations | |
22879 | # | |
22880 | # since ls returns lowest version numbers first, reverse its output | |
22881 | if test x"${ac_cv_c_tclh}" = x ; then | |
22882 | for i in \ | |
22883 | `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \ | |
22884 | `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \ | |
22885 | /usr/local/src/tcl \ | |
22886 | /usr/local/lib/tcl \ | |
22887 | ${prefix}/include ; do | |
22888 | if test -f $i/generic/tclInt.h ; then | |
22889 | ac_cv_c_tclh=`(cd $i/generic; pwd)` | |
22890 | break | |
22891 | fi | |
22892 | done | |
22893 | fi | |
22894 | # see if one is installed | |
22895 | if test x"${ac_cv_c_tclh}" = x ; then | |
bec39cab | 22896 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
b4e70030 JB |
22897 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
22898 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
bec39cab AC |
22899 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
22900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22901 | fi | |
b4e70030 JB |
22902 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
22903 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
bec39cab AC |
22904 | else |
22905 | # Is the header compilable? | |
b4e70030 JB |
22906 | echo "$as_me:$LINENO: checking tclInt.h usability" >&5 |
22907 | echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6 | |
bec39cab AC |
22908 | cat >conftest.$ac_ext <<_ACEOF |
22909 | /* confdefs.h. */ | |
22910 | _ACEOF | |
22911 | cat confdefs.h >>conftest.$ac_ext | |
22912 | cat >>conftest.$ac_ext <<_ACEOF | |
22913 | /* end confdefs.h. */ | |
22914 | $ac_includes_default | |
22915 | #include <tclInt.h> | |
22916 | _ACEOF | |
22917 | rm -f conftest.$ac_objext | |
22918 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22919 | (eval $ac_compile) 2>conftest.er1 | |
22920 | ac_status=$? | |
22921 | grep -v '^ *+' conftest.er1 >conftest.err | |
22922 | rm -f conftest.er1 | |
22923 | cat conftest.err >&5 | |
22924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22925 | (exit $ac_status); } && | |
b4e70030 JB |
22926 | { ac_try='test -z "$ac_c_werror_flag" |
22927 | || test ! -s conftest.err' | |
bec39cab AC |
22928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22929 | (eval $ac_try) 2>&5 | |
22930 | ac_status=$? | |
22931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22932 | (exit $ac_status); }; } && | |
22933 | { ac_try='test -s conftest.$ac_objext' | |
22934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22935 | (eval $ac_try) 2>&5 | |
22936 | ac_status=$? | |
22937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22938 | (exit $ac_status); }; }; then | |
22939 | ac_header_compiler=yes | |
22940 | else | |
22941 | echo "$as_me: failed program was:" >&5 | |
22942 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22943 | ||
b4e70030 | 22944 | ac_header_compiler=no |
bec39cab AC |
22945 | fi |
22946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
22947 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22948 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
22949 | |
22950 | # Is the header present? | |
b4e70030 JB |
22951 | echo "$as_me:$LINENO: checking tclInt.h presence" >&5 |
22952 | echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6 | |
bec39cab AC |
22953 | cat >conftest.$ac_ext <<_ACEOF |
22954 | /* confdefs.h. */ | |
22955 | _ACEOF | |
22956 | cat confdefs.h >>conftest.$ac_ext | |
22957 | cat >>conftest.$ac_ext <<_ACEOF | |
22958 | /* end confdefs.h. */ | |
3fc11d3e | 22959 | #include <tclInt.h> |
bec39cab AC |
22960 | _ACEOF |
22961 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22962 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22963 | ac_status=$? | |
22964 | grep -v '^ *+' conftest.er1 >conftest.err | |
22965 | rm -f conftest.er1 | |
22966 | cat conftest.err >&5 | |
22967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22968 | (exit $ac_status); } >/dev/null; then | |
22969 | if test -s conftest.err; then | |
22970 | ac_cpp_err=$ac_c_preproc_warn_flag | |
22971 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
22972 | else | |
22973 | ac_cpp_err= | |
22974 | fi | |
22975 | else | |
22976 | ac_cpp_err=yes | |
3fc11d3e | 22977 | fi |
bec39cab AC |
22978 | if test -z "$ac_cpp_err"; then |
22979 | ac_header_preproc=yes | |
22980 | else | |
22981 | echo "$as_me: failed program was:" >&5 | |
22982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22983 | ||
22984 | ac_header_preproc=no | |
3fc11d3e | 22985 | fi |
bec39cab | 22986 | rm -f conftest.err conftest.$ac_ext |
b4e70030 JB |
22987 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22988 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
22989 | |
22990 | # So? What about this header? | |
22991 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
22992 | yes:no: ) | |
22993 | { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
22994 | echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
22995 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5 | |
22996 | echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;} | |
22997 | ac_header_preproc=yes | |
22998 | ;; | |
22999 | no:yes:* ) | |
23000 | { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5 | |
23001 | echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;} | |
23002 | { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5 | |
23003 | echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;} | |
23004 | { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5 | |
23005 | echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;} | |
23006 | { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23007 | echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
23008 | { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5 | |
23009 | echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;} | |
23010 | { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5 | |
23011 | echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
23012 | ( |
23013 | cat <<\_ASBOX | |
23014 | ## ------------------------------------------ ## | |
23015 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
23016 | ## ------------------------------------------ ## | |
23017 | _ASBOX | |
23018 | ) | | |
23019 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
23020 | ;; |
23021 | esac | |
b4e70030 JB |
23022 | echo "$as_me:$LINENO: checking for tclInt.h" >&5 |
23023 | echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6 | |
bec39cab AC |
23024 | if test "${ac_cv_header_tclInt_h+set}" = set; then |
23025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23026 | else | |
23027 | ac_cv_header_tclInt_h=$ac_header_preproc | |
23028 | fi | |
b4e70030 JB |
23029 | echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5 |
23030 | echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6 | |
bec39cab AC |
23031 | |
23032 | fi | |
23033 | if test $ac_cv_header_tclInt_h = yes; then | |
3fc11d3e JM |
23034 | ac_cv_c_tclh=installed |
23035 | else | |
bec39cab | 23036 | ac_cv_c_tclh="" |
3fc11d3e JM |
23037 | fi |
23038 | ||
bec39cab | 23039 | |
3fc11d3e JM |
23040 | fi |
23041 | ||
23042 | fi | |
23043 | ||
23044 | if test x"${ac_cv_c_tclh}" = x ; then | |
23045 | TCLHDIR="# no Tcl private headers found" | |
bec39cab AC |
23046 | { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5 |
23047 | echo "$as_me: error: Can't find Tcl private headers" >&2;} | |
23048 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
23049 | fi |
23050 | if test x"${ac_cv_c_tclh}" != x ; then | |
23051 | no_tcl="" | |
23052 | if test x"${ac_cv_c_tclh}" = x"installed" ; then | |
b4e70030 JB |
23053 | echo "$as_me:$LINENO: result: is installed" >&5 |
23054 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
23055 | TCLHDIR="" |
23056 | else | |
b4e70030 JB |
23057 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5 |
23058 | echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6 | |
3fc11d3e JM |
23059 | # this hack is cause the TCLHDIR won't print if there is a "-I" in it. |
23060 | TCLHDIR="-I${ac_cv_c_tclh}" | |
23061 | fi | |
23062 | fi | |
23063 | ||
23064 | ||
23065 | ||
bec39cab | 23066 | |
3fc11d3e JM |
23067 | # |
23068 | # Ok, lets find the tk source trees so we can use the headers | |
23069 | # If the directory (presumably symlink) named "tk" exists, use that one | |
23070 | # in preference to any others. Same logic is used when choosing library | |
23071 | # and again with Tcl. The search order is the best place to look first, then in | |
23072 | # decreasing significance. The loop breaks if the trigger file is found. | |
23073 | # Note the gross little conversion here of srcdir by cd'ing to the found | |
23074 | # directory. This converts the path from a relative to an absolute, so | |
23075 | # recursive cache variables for the path will work right. We check all | |
23076 | # the possible paths in one loop rather than many seperate loops to speed | |
23077 | # things up. | |
23078 | # the alternative search directory is involked by --with-tkinclude | |
23079 | # | |
23080 | no_tk=true | |
b4e70030 JB |
23081 | echo "$as_me:$LINENO: checking for Tk private headers" >&5 |
23082 | echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6 | |
bec39cab | 23083 | |
b4e70030 | 23084 | # Check whether --with-tkinclude or --without-tkinclude was given. |
3fc11d3e | 23085 | if test "${with_tkinclude+set}" = set; then |
b4e70030 JB |
23086 | withval="$with_tkinclude" |
23087 | with_tkinclude=${withval} | |
23088 | fi; | |
bec39cab AC |
23089 | if test "${ac_cv_c_tkh+set}" = set; then |
23090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 23091 | else |
bec39cab | 23092 | |
3fc11d3e JM |
23093 | # first check to see if --with-tkinclude was specified |
23094 | if test x"${with_tkinclude}" != x ; then | |
23095 | if test -f ${with_tkinclude}/tk.h ; then | |
23096 | ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)` | |
23097 | elif test -f ${with_tkinclude}/generic/tk.h ; then | |
23098 | ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)` | |
23099 | else | |
bec39cab AC |
23100 | { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5 |
23101 | echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;} | |
23102 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
23103 | fi |
23104 | fi | |
23105 | ||
23106 | # next check if it came with Tk configuration file | |
23107 | if test x"${ac_cv_c_tkconfig}" = x ; then | |
23108 | if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then | |
23109 | ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)` | |
23110 | fi | |
23111 | fi | |
23112 | ||
23113 | # next check in private source directory | |
23114 | # | |
23115 | # since ls returns lowest version numbers first, reverse its output | |
23116 | if test x"${ac_cv_c_tkh}" = x ; then | |
23117 | for i in \ | |
23118 | ${srcdir}/../tk \ | |
23119 | `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \ | |
23120 | ${srcdir}/../../tk \ | |
23121 | `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \ | |
23122 | ${srcdir}/../../../tk \ | |
23123 | `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do | |
23124 | if test -f $i/generic/tk.h ; then | |
23125 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
23126 | break | |
23127 | fi | |
23128 | done | |
23129 | fi | |
23130 | # finally check in a few common install locations | |
23131 | # | |
23132 | # since ls returns lowest version numbers first, reverse its output | |
23133 | if test x"${ac_cv_c_tkh}" = x ; then | |
23134 | for i in \ | |
23135 | `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \ | |
23136 | `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \ | |
23137 | /usr/local/src/tk \ | |
23138 | /usr/local/lib/tk \ | |
23139 | ${prefix}/include ; do | |
23140 | if test -f $i/generic/tk.h ; then | |
23141 | ac_cv_c_tkh=`(cd $i/generic; pwd)` | |
23142 | break | |
23143 | fi | |
23144 | done | |
23145 | fi | |
23146 | # see if one is installed | |
23147 | if test x"${ac_cv_c_tkh}" = x ; then | |
bec39cab | 23148 | if test "${ac_cv_header_tk_h+set}" = set; then |
b4e70030 JB |
23149 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
23150 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
bec39cab AC |
23151 | if test "${ac_cv_header_tk_h+set}" = set; then |
23152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23153 | fi | |
b4e70030 JB |
23154 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
23155 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
bec39cab AC |
23156 | else |
23157 | # Is the header compilable? | |
b4e70030 JB |
23158 | echo "$as_me:$LINENO: checking tk.h usability" >&5 |
23159 | echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6 | |
bec39cab AC |
23160 | cat >conftest.$ac_ext <<_ACEOF |
23161 | /* confdefs.h. */ | |
23162 | _ACEOF | |
23163 | cat confdefs.h >>conftest.$ac_ext | |
23164 | cat >>conftest.$ac_ext <<_ACEOF | |
23165 | /* end confdefs.h. */ | |
23166 | $ac_includes_default | |
3fc11d3e | 23167 | #include <tk.h> |
bec39cab AC |
23168 | _ACEOF |
23169 | rm -f conftest.$ac_objext | |
23170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23171 | (eval $ac_compile) 2>conftest.er1 | |
23172 | ac_status=$? | |
23173 | grep -v '^ *+' conftest.er1 >conftest.err | |
23174 | rm -f conftest.er1 | |
23175 | cat conftest.err >&5 | |
23176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23177 | (exit $ac_status); } && | |
b4e70030 JB |
23178 | { ac_try='test -z "$ac_c_werror_flag" |
23179 | || test ! -s conftest.err' | |
bec39cab AC |
23180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23181 | (eval $ac_try) 2>&5 | |
23182 | ac_status=$? | |
23183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23184 | (exit $ac_status); }; } && | |
23185 | { ac_try='test -s conftest.$ac_objext' | |
23186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23187 | (eval $ac_try) 2>&5 | |
23188 | ac_status=$? | |
23189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23190 | (exit $ac_status); }; }; then | |
23191 | ac_header_compiler=yes | |
23192 | else | |
23193 | echo "$as_me: failed program was:" >&5 | |
23194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23195 | ||
b4e70030 | 23196 | ac_header_compiler=no |
bec39cab AC |
23197 | fi |
23198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b4e70030 JB |
23199 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
23200 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
bec39cab AC |
23201 | |
23202 | # Is the header present? | |
b4e70030 JB |
23203 | echo "$as_me:$LINENO: checking tk.h presence" >&5 |
23204 | echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6 | |
bec39cab AC |
23205 | cat >conftest.$ac_ext <<_ACEOF |
23206 | /* confdefs.h. */ | |
23207 | _ACEOF | |
23208 | cat confdefs.h >>conftest.$ac_ext | |
23209 | cat >>conftest.$ac_ext <<_ACEOF | |
23210 | /* end confdefs.h. */ | |
23211 | #include <tk.h> | |
23212 | _ACEOF | |
23213 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23214 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23215 | ac_status=$? | |
23216 | grep -v '^ *+' conftest.er1 >conftest.err | |
23217 | rm -f conftest.er1 | |
23218 | cat conftest.err >&5 | |
23219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23220 | (exit $ac_status); } >/dev/null; then | |
23221 | if test -s conftest.err; then | |
23222 | ac_cpp_err=$ac_c_preproc_warn_flag | |
23223 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
23224 | else | |
23225 | ac_cpp_err= | |
23226 | fi | |
23227 | else | |
23228 | ac_cpp_err=yes | |
3fc11d3e | 23229 | fi |
bec39cab AC |
23230 | if test -z "$ac_cpp_err"; then |
23231 | ac_header_preproc=yes | |
23232 | else | |
23233 | echo "$as_me: failed program was:" >&5 | |
23234 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23235 | ||
23236 | ac_header_preproc=no | |
23237 | fi | |
23238 | rm -f conftest.err conftest.$ac_ext | |
b4e70030 JB |
23239 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
23240 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
bec39cab AC |
23241 | |
23242 | # So? What about this header? | |
23243 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
23244 | yes:no: ) | |
23245 | { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
23246 | echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
23247 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5 | |
23248 | echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;} | |
23249 | ac_header_preproc=yes | |
23250 | ;; | |
23251 | no:yes:* ) | |
23252 | { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5 | |
23253 | echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;} | |
23254 | { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5 | |
23255 | echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;} | |
23256 | { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5 | |
23257 | echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;} | |
23258 | { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5 | |
23259 | echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
23260 | { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5 | |
23261 | echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;} | |
23262 | { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5 | |
23263 | echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;} | |
b4e70030 JB |
23264 | ( |
23265 | cat <<\_ASBOX | |
23266 | ## ------------------------------------------ ## | |
23267 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
23268 | ## ------------------------------------------ ## | |
23269 | _ASBOX | |
23270 | ) | | |
23271 | sed "s/^/$as_me: WARNING: /" >&2 | |
bec39cab AC |
23272 | ;; |
23273 | esac | |
b4e70030 JB |
23274 | echo "$as_me:$LINENO: checking for tk.h" >&5 |
23275 | echo $ECHO_N "checking for tk.h... $ECHO_C" >&6 | |
bec39cab AC |
23276 | if test "${ac_cv_header_tk_h+set}" = set; then |
23277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23278 | else | |
23279 | ac_cv_header_tk_h=$ac_header_preproc | |
23280 | fi | |
b4e70030 JB |
23281 | echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5 |
23282 | echo "${ECHO_T}$ac_cv_header_tk_h" >&6 | |
bec39cab | 23283 | |
3fc11d3e | 23284 | fi |
bec39cab | 23285 | if test $ac_cv_header_tk_h = yes; then |
3fc11d3e JM |
23286 | ac_cv_c_tkh=installed |
23287 | else | |
bec39cab | 23288 | ac_cv_c_tkh="" |
3fc11d3e JM |
23289 | fi |
23290 | ||
bec39cab | 23291 | |
3fc11d3e JM |
23292 | fi |
23293 | ||
23294 | fi | |
23295 | ||
23296 | if test x"${ac_cv_c_tkh}" != x ; then | |
23297 | no_tk="" | |
23298 | if test x"${ac_cv_c_tkh}" = x"installed" ; then | |
b4e70030 JB |
23299 | echo "$as_me:$LINENO: result: is installed" >&5 |
23300 | echo "${ECHO_T}is installed" >&6 | |
3fc11d3e JM |
23301 | TKHDIR="" |
23302 | else | |
b4e70030 JB |
23303 | echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5 |
23304 | echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6 | |
3fc11d3e JM |
23305 | # this hack is cause the TKHDIR won't print if there is a "-I" in it. |
23306 | TKHDIR="-I${ac_cv_c_tkh}" | |
23307 | fi | |
23308 | else | |
23309 | TKHDIR="# no Tk directory found" | |
bec39cab AC |
23310 | { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5 |
23311 | echo "$as_me: WARNING: Can't find Tk private headers" >&2;} | |
3fc11d3e JM |
23312 | no_tk=true |
23313 | fi | |
23314 | ||
23315 | ||
23316 | ||
bec39cab | 23317 | |
b4e70030 JB |
23318 | echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5 |
23319 | echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
23320 | if test x"${ac_cv_c_itclh}" = x ; then |
23321 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do | |
23322 | if test -f $i/generic/itcl.h ; then | |
23323 | ac_cv_c_itclh=`(cd $i/generic; pwd)` | |
23324 | break | |
23325 | fi | |
23326 | done | |
23327 | fi | |
23328 | if test x"${ac_cv_c_itclh}" = x ; then | |
23329 | ITCLHDIR="# no Itcl private headers found" | |
bec39cab AC |
23330 | { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5 |
23331 | echo "$as_me: error: Can't find Itcl private headers" >&2;} | |
23332 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
23333 | fi |
23334 | if test x"${ac_cv_c_itclh}" != x ; then | |
23335 | ITCLHDIR="-I${ac_cv_c_itclh}" | |
23336 | fi | |
23337 | # should always be here | |
23338 | # ITCLLIB="../itcl/itcl/unix/libitcl.a" | |
23339 | ||
23340 | #AC_SUBST(ITCLLIB) | |
23341 | ||
bec39cab | 23342 | |
b4e70030 JB |
23343 | echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5 |
23344 | echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6 | |
3fc11d3e JM |
23345 | if test x"${ac_cv_c_itkh}" = x ; then |
23346 | for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do | |
23347 | if test -f $i/generic/itk.h ; then | |
23348 | ac_cv_c_itkh=`(cd $i/generic; pwd)` | |
23349 | break | |
23350 | fi | |
23351 | done | |
23352 | fi | |
23353 | if test x"${ac_cv_c_itkh}" = x ; then | |
23354 | ITKHDIR="# no Itk private headers found" | |
bec39cab AC |
23355 | { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5 |
23356 | echo "$as_me: error: Can't find Itk private headers" >&2;} | |
23357 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
23358 | fi |
23359 | if test x"${ac_cv_c_itkh}" != x ; then | |
23360 | ITKHDIR="-I${ac_cv_c_itkh}" | |
23361 | fi | |
23362 | # should always be here | |
23363 | # ITKLIB="../itcl/itk/unix/libitk.a" | |
23364 | ||
23365 | #AC_SUBST(ITKLIB) | |
23366 | ||
3fc11d3e | 23367 | |
dd2504ab JM |
23368 | |
23369 | # now look for Tk library stuff | |
23370 | ||
d91670b9 | 23371 | tkdir="../tk/${configdir}/" |
dd2504ab JM |
23372 | |
23373 | TK_DEPS="${tkdir}${TK_LIB_FILE}" | |
23374 | ||
3fc11d3e JM |
23375 | # now look for Itcl library stuff |
23376 | ||
bec39cab | 23377 | |
3fc11d3e JM |
23378 | # |
23379 | # Ok, lets find the itcl configuration | |
bec39cab | 23380 | # First, look for one uninstalled. |
3fc11d3e JM |
23381 | # the alternative search directory is invoked by --with-itclconfig |
23382 | # | |
23383 | ||
23384 | if test x"${no_itcl}" = x ; then | |
23385 | # we reset no_itcl in case something fails here | |
23386 | no_itcl=true | |
bec39cab | 23387 | |
b4e70030 | 23388 | # Check whether --with-itclconfig or --without-itclconfig was given. |
3fc11d3e | 23389 | if test "${with_itclconfig+set}" = set; then |
b4e70030 JB |
23390 | withval="$with_itclconfig" |
23391 | with_itclconfig=${withval} | |
23392 | fi; | |
23393 | echo "$as_me:$LINENO: checking for Itcl configuration" >&5 | |
23394 | echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6 | |
bec39cab AC |
23395 | if test "${ac_cv_c_itclconfig+set}" = set; then |
23396 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 23397 | else |
bec39cab | 23398 | |
3fc11d3e JM |
23399 | |
23400 | # First check to see if --with-itclconfig was specified. | |
23401 | if test x"${with_itclconfig}" != x ; then | |
23402 | if test -f "${with_itclconfig}/itclConfig.sh" ; then | |
23403 | ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)` | |
23404 | else | |
bec39cab AC |
23405 | { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5 |
23406 | echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;} | |
23407 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
23408 | fi |
23409 | fi | |
23410 | ||
23411 | # then check for a private Itcl library | |
23412 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
23413 | for i in \ | |
23414 | ../itcl/itcl \ | |
23415 | `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \ | |
23416 | ../../itcl \ | |
23417 | `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \ | |
23418 | ../../../itcl \ | |
23419 | `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do | |
23420 | if test -f "$i/itclConfig.sh" ; then | |
23421 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
23422 | break | |
23423 | fi | |
23424 | done | |
23425 | fi | |
23426 | # check in a few common install locations | |
23427 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
23428 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
23429 | if test -f "$i/itclConfig.sh" ; then | |
23430 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
23431 | break | |
23432 | fi | |
23433 | done | |
23434 | fi | |
23435 | # check in a few other private locations | |
23436 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
23437 | for i in \ | |
23438 | ${srcdir}/../itcl/itcl \ | |
23439 | `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do | |
23440 | if test -f "$i/itclConfig.sh" ; then | |
23441 | ac_cv_c_itclconfig=`(cd $i; pwd)` | |
23442 | break | |
23443 | fi | |
23444 | done | |
23445 | fi | |
bec39cab | 23446 | |
3fc11d3e JM |
23447 | fi |
23448 | ||
23449 | if test x"${ac_cv_c_itclconfig}" = x ; then | |
23450 | ITCLCONFIG="# no Itcl configs found" | |
bec39cab AC |
23451 | { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5 |
23452 | echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;} | |
3fc11d3e JM |
23453 | else |
23454 | no_itcl= | |
23455 | ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh | |
b4e70030 JB |
23456 | echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5 |
23457 | echo "${ECHO_T}found $ITCLCONFIG" >&6 | |
3fc11d3e JM |
23458 | fi |
23459 | fi | |
23460 | ||
23461 | if test -z "${no_itcl}"; then | |
bec39cab | 23462 | |
3fc11d3e JM |
23463 | if test -f "$ITCLCONFIG" ; then |
23464 | . $ITCLCONFIG | |
23465 | fi | |
23466 | ||
3fc11d3e | 23467 | |
3fc11d3e JM |
23468 | |
23469 | ||
bec39cab AC |
23470 | |
23471 | ||
23472 | ||
23473 | ||
23474 | ||
23475 | ||
23476 | ||
3fc11d3e JM |
23477 | |
23478 | ITCLLIB="${ITCL_BUILD_LIB_SPEC}" | |
b381d62d | 23479 | ITCL_DEPS="${ITCL_LIB_FULL_PATH}" |
3fc11d3e JM |
23480 | fi |
23481 | ||
bec39cab | 23482 | |
3fc11d3e | 23483 | # now look for Itk library stuff |
bec39cab | 23484 | |
3fc11d3e JM |
23485 | # |
23486 | # Ok, lets find the itk configuration | |
bec39cab | 23487 | # First, look for one uninstalled. |
3fc11d3e JM |
23488 | # the alternative search directory is invoked by --with-itkconfig |
23489 | # | |
23490 | ||
23491 | if test x"${no_itk}" = x ; then | |
23492 | # we reset no_itk in case something fails here | |
23493 | no_itk=true | |
bec39cab | 23494 | |
b4e70030 | 23495 | # Check whether --with-itkconfig or --without-itkconfig was given. |
3fc11d3e | 23496 | if test "${with_itkconfig+set}" = set; then |
b4e70030 JB |
23497 | withval="$with_itkconfig" |
23498 | with_itkconfig=${withval} | |
23499 | fi; | |
23500 | echo "$as_me:$LINENO: checking for Itk configuration" >&5 | |
23501 | echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6 | |
bec39cab AC |
23502 | if test "${ac_cv_c_itkconfig+set}" = set; then |
23503 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3fc11d3e | 23504 | else |
bec39cab | 23505 | |
3fc11d3e JM |
23506 | |
23507 | # First check to see if --with-itkconfig was specified. | |
23508 | if test x"${with_itkconfig}" != x ; then | |
23509 | if test -f "${with_itkconfig}/itkConfig.sh" ; then | |
23510 | ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)` | |
23511 | else | |
bec39cab AC |
23512 | { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5 |
23513 | echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;} | |
23514 | { (exit 1); exit 1; }; } | |
3fc11d3e JM |
23515 | fi |
23516 | fi | |
23517 | ||
23518 | # then check for a private Itk library | |
23519 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
23520 | for i in \ | |
23521 | ../itcl/itk \ | |
23522 | `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \ | |
23523 | ../../itk \ | |
23524 | `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \ | |
23525 | ../../../itk \ | |
23526 | `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do | |
23527 | if test -f "$i/itkConfig.sh" ; then | |
23528 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
23529 | break | |
23530 | fi | |
23531 | done | |
23532 | fi | |
23533 | # check in a few common install locations | |
23534 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
23535 | for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do | |
23536 | if test -f "$i/itkConfig.sh" ; then | |
23537 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
23538 | break | |
23539 | fi | |
23540 | done | |
23541 | fi | |
23542 | # check in a few other private locations | |
23543 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
23544 | for i in \ | |
23545 | ${srcdir}/../itcl/itk \ | |
23546 | `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do | |
23547 | if test -f "$i/itkConfig.sh" ; then | |
23548 | ac_cv_c_itkconfig=`(cd $i; pwd)` | |
23549 | break | |
23550 | fi | |
23551 | done | |
23552 | fi | |
bec39cab | 23553 | |
3fc11d3e JM |
23554 | fi |
23555 | ||
23556 | if test x"${ac_cv_c_itkconfig}" = x ; then | |
23557 | ITKCONFIG="# no Itk configs found" | |
bec39cab AC |
23558 | { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5 |
23559 | echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;} | |
3fc11d3e JM |
23560 | else |
23561 | no_itk= | |
23562 | ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh | |
b4e70030 JB |
23563 | echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5 |
23564 | echo "${ECHO_T}found $ITKCONFIG" >&6 | |
3fc11d3e JM |
23565 | fi |
23566 | fi | |
23567 | ||
23568 | ||
bec39cab AC |
23569 | if test -z "${no_itcl}"; then |
23570 | ||
23571 | if test -f "$ITKCONFIG" ; then | |
23572 | . $ITKCONFIG | |
23573 | fi | |
23574 | ||
23575 | ||
23576 | ||
23577 | ||
23578 | ||
23579 | ||
3fc11d3e | 23580 | |
3fc11d3e | 23581 | |
3fc11d3e JM |
23582 | |
23583 | ||
3fc11d3e JM |
23584 | |
23585 | ||
3fc11d3e | 23586 | ITKLIB="${ITK_BUILD_LIB_SPEC}" |
b381d62d | 23587 | ITK_DEPS="${ITK_LIB_FULL_PATH}" |
3fc11d3e JM |
23588 | fi |
23589 | ||
4226a5a5 | 23590 | ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)" |
3fc11d3e JM |
23591 | |
23592 | # Include some libraries that Tcl and Tk want. | |
b2a1bd4f | 23593 | TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)' |
3fc11d3e JM |
23594 | # Yes, the ordering seems wrong here. But it isn't. |
23595 | # TK_LIBS is the list of libraries that need to be linked | |
23596 | # after Tcl/Tk. Note that this isn't put into LIBS. If it | |
23597 | # were in LIBS then any link tests after this point would | |
23598 | # try to include things like `$(LIBGUI)', which wouldn't work. | |
23599 | GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}" | |
4226a5a5 FN |
23600 | |
23601 | CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)" | |
23602 | CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)" | |
23603 | CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)" | |
33f8ca73 AC |
23604 | CONFIG_ALL="${CONFIG_ALL} all-gdbtk" |
23605 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk" | |
23606 | CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk" | |
23607 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk" | |
3fc11d3e JM |
23608 | |
23609 | if test x$gdb_cv_os_cygwin = xyes; then | |
23610 | WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32" | |
23611 | WIN32LDAPP="-Wl,--subsystem,console" | |
23612 | CONFIG_OBS="${CONFIG_OBS} gdbres.o" | |
23613 | fi | |
23614 | fi | |
23615 | fi | |
ffc6a242 | 23616 | |
b4e70030 JB |
23617 | |
23618 | ||
23619 | subdirs="$subdirs gdbtk" | |
3ace7edb | 23620 | |
3fc11d3e JM |
23621 | fi |
23622 | ||
23623 | ||
23624 | ||
23625 | ||
23626 | ||
23627 | ||
23628 | ||
23629 | ||
23630 | ||
23631 | ||
23632 | ||
23633 | ||
23634 | ||
dd2504ab | 23635 | |
b4e70030 JB |
23636 | echo "$as_me:$LINENO: checking for X" >&5 |
23637 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
bec39cab | 23638 | |
c906108c | 23639 | |
b4e70030 | 23640 | # Check whether --with-x or --without-x was given. |
c906108c | 23641 | if test "${with_x+set}" = set; then |
b4e70030 | 23642 | withval="$with_x" |
c906108c | 23643 | |
b4e70030 | 23644 | fi; |
c906108c SS |
23645 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
23646 | if test "x$with_x" = xno; then | |
23647 | # The user explicitly disabled X. | |
23648 | have_x=disabled | |
23649 | else | |
23650 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
23651 | # Both variables are already set. | |
23652 | have_x=yes | |
23653 | else | |
bec39cab AC |
23654 | if test "${ac_cv_have_x+set}" = set; then |
23655 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
23656 | else |
23657 | # One or both of the vars are not set, and there is no cached value. | |
bec39cab | 23658 | ac_x_includes=no ac_x_libraries=no |
b4e70030 | 23659 | rm -fr conftest.dir |
bec39cab AC |
23660 | if mkdir conftest.dir; then |
23661 | cd conftest.dir | |
c906108c | 23662 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
bec39cab | 23663 | cat >Imakefile <<'_ACEOF' |
c906108c SS |
23664 | acfindx: |
23665 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
bec39cab | 23666 | _ACEOF |
b4e70030 | 23667 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
c906108c SS |
23668 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
23669 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
23670 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
23671 | for ac_extension in a so sl; do | |
23672 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
bec39cab AC |
23673 | test -f $ac_im_libdir/libX11.$ac_extension; then |
23674 | ac_im_usrlibdir=$ac_im_libdir; break | |
c906108c SS |
23675 | fi |
23676 | done | |
23677 | # Screen out bogus values from the imake configuration. They are | |
23678 | # bogus both because they are the default anyway, and because | |
23679 | # using them would break gcc on systems where it needs fixed includes. | |
bec39cab | 23680 | case $ac_im_incroot in |
b4e70030 | 23681 | /usr/include) ;; |
bec39cab | 23682 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
c906108c | 23683 | esac |
bec39cab | 23684 | case $ac_im_usrlibdir in |
c906108c | 23685 | /usr/lib | /lib) ;; |
bec39cab | 23686 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
c906108c SS |
23687 | esac |
23688 | fi | |
23689 | cd .. | |
b4e70030 | 23690 | rm -fr conftest.dir |
c906108c SS |
23691 | fi |
23692 | ||
bec39cab AC |
23693 | # Standard set of common directories for X headers. |
23694 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
23695 | ac_x_header_dirs=' | |
23696 | /usr/X11/include | |
23697 | /usr/X11R6/include | |
23698 | /usr/X11R5/include | |
23699 | /usr/X11R4/include | |
23700 | ||
23701 | /usr/include/X11 | |
23702 | /usr/include/X11R6 | |
23703 | /usr/include/X11R5 | |
23704 | /usr/include/X11R4 | |
23705 | ||
23706 | /usr/local/X11/include | |
23707 | /usr/local/X11R6/include | |
23708 | /usr/local/X11R5/include | |
23709 | /usr/local/X11R4/include | |
23710 | ||
23711 | /usr/local/include/X11 | |
23712 | /usr/local/include/X11R6 | |
23713 | /usr/local/include/X11R5 | |
23714 | /usr/local/include/X11R4 | |
23715 | ||
23716 | /usr/X386/include | |
23717 | /usr/x386/include | |
23718 | /usr/XFree86/include/X11 | |
23719 | ||
23720 | /usr/include | |
23721 | /usr/local/include | |
23722 | /usr/unsupported/include | |
23723 | /usr/athena/include | |
23724 | /usr/local/x11r5/include | |
23725 | /usr/lpp/Xamples/include | |
23726 | ||
23727 | /usr/openwin/include | |
23728 | /usr/openwin/share/include' | |
23729 | ||
23730 | if test "$ac_x_includes" = no; then | |
59f80f10 | 23731 | # Guess where to find include files, by looking for Intrinsic.h. |
c906108c | 23732 | # First, try using that file with no special directory specified. |
bec39cab AC |
23733 | cat >conftest.$ac_ext <<_ACEOF |
23734 | /* confdefs.h. */ | |
23735 | _ACEOF | |
23736 | cat confdefs.h >>conftest.$ac_ext | |
23737 | cat >>conftest.$ac_ext <<_ACEOF | |
23738 | /* end confdefs.h. */ | |
59f80f10 | 23739 | #include <X11/Intrinsic.h> |
bec39cab AC |
23740 | _ACEOF |
23741 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
23742 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
23743 | ac_status=$? | |
23744 | grep -v '^ *+' conftest.er1 >conftest.err | |
23745 | rm -f conftest.er1 | |
23746 | cat conftest.err >&5 | |
23747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23748 | (exit $ac_status); } >/dev/null; then | |
23749 | if test -s conftest.err; then | |
23750 | ac_cpp_err=$ac_c_preproc_warn_flag | |
23751 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
23752 | else | |
23753 | ac_cpp_err= | |
23754 | fi | |
23755 | else | |
23756 | ac_cpp_err=yes | |
23757 | fi | |
23758 | if test -z "$ac_cpp_err"; then | |
c906108c SS |
23759 | # We can compile using X headers with no special include directory. |
23760 | ac_x_includes= | |
23761 | else | |
bec39cab AC |
23762 | echo "$as_me: failed program was:" >&5 |
23763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23764 | ||
23765 | for ac_dir in $ac_x_header_dirs; do | |
59f80f10 | 23766 | if test -r "$ac_dir/X11/Intrinsic.h"; then |
bec39cab AC |
23767 | ac_x_includes=$ac_dir |
23768 | break | |
23769 | fi | |
23770 | done | |
c906108c | 23771 | fi |
bec39cab AC |
23772 | rm -f conftest.err conftest.$ac_ext |
23773 | fi # $ac_x_includes = no | |
c906108c | 23774 | |
bec39cab | 23775 | if test "$ac_x_libraries" = no; then |
c906108c | 23776 | # Check for the libraries. |
c906108c SS |
23777 | # See if we find them without any special options. |
23778 | # Don't add to $LIBS permanently. | |
bec39cab | 23779 | ac_save_LIBS=$LIBS |
4e8d927d | 23780 | LIBS="-lXt $LIBS" |
bec39cab AC |
23781 | cat >conftest.$ac_ext <<_ACEOF |
23782 | /* confdefs.h. */ | |
23783 | _ACEOF | |
23784 | cat confdefs.h >>conftest.$ac_ext | |
23785 | cat >>conftest.$ac_ext <<_ACEOF | |
23786 | /* end confdefs.h. */ | |
59f80f10 | 23787 | #include <X11/Intrinsic.h> |
bec39cab AC |
23788 | int |
23789 | main () | |
23790 | { | |
59f80f10 | 23791 | XtMalloc (0) |
bec39cab AC |
23792 | ; |
23793 | return 0; | |
23794 | } | |
23795 | _ACEOF | |
23796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23798 | (eval $ac_link) 2>conftest.er1 | |
23799 | ac_status=$? | |
23800 | grep -v '^ *+' conftest.er1 >conftest.err | |
23801 | rm -f conftest.er1 | |
23802 | cat conftest.err >&5 | |
23803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23804 | (exit $ac_status); } && | |
b4e70030 JB |
23805 | { ac_try='test -z "$ac_c_werror_flag" |
23806 | || test ! -s conftest.err' | |
bec39cab AC |
23807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23808 | (eval $ac_try) 2>&5 | |
23809 | ac_status=$? | |
23810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23811 | (exit $ac_status); }; } && | |
23812 | { ac_try='test -s conftest$ac_exeext' | |
23813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23814 | (eval $ac_try) 2>&5 | |
23815 | ac_status=$? | |
23816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23817 | (exit $ac_status); }; }; then | |
23818 | LIBS=$ac_save_LIBS | |
c906108c SS |
23819 | # We can link X programs with no special library path. |
23820 | ac_x_libraries= | |
23821 | else | |
bec39cab AC |
23822 | echo "$as_me: failed program was:" >&5 |
23823 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23824 | ||
b4e70030 | 23825 | LIBS=$ac_save_LIBS |
bec39cab | 23826 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
c906108c | 23827 | do |
bec39cab | 23828 | # Don't even attempt the hair of trying to link an X program! |
c906108c | 23829 | for ac_extension in a so sl; do |
b4e70030 | 23830 | if test -r $ac_dir/libXt.$ac_extension; then |
c906108c SS |
23831 | ac_x_libraries=$ac_dir |
23832 | break 2 | |
23833 | fi | |
23834 | done | |
23835 | done | |
23836 | fi | |
bec39cab AC |
23837 | rm -f conftest.err conftest.$ac_objext \ |
23838 | conftest$ac_exeext conftest.$ac_ext | |
23839 | fi # $ac_x_libraries = no | |
c906108c | 23840 | |
bec39cab | 23841 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
c906108c SS |
23842 | # Didn't find X anywhere. Cache the known absence of X. |
23843 | ac_cv_have_x="have_x=no" | |
23844 | else | |
23845 | # Record where we found X for the cache. | |
23846 | ac_cv_have_x="have_x=yes \ | |
bec39cab | 23847 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
c906108c SS |
23848 | fi |
23849 | fi | |
bec39cab | 23850 | |
c906108c SS |
23851 | fi |
23852 | eval "$ac_cv_have_x" | |
23853 | fi # $with_x != no | |
23854 | ||
23855 | if test "$have_x" != yes; then | |
b4e70030 JB |
23856 | echo "$as_me:$LINENO: result: $have_x" >&5 |
23857 | echo "${ECHO_T}$have_x" >&6 | |
c906108c SS |
23858 | no_x=yes |
23859 | else | |
23860 | # If each of the values was on the command line, it overrides each guess. | |
23861 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
23862 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
23863 | # Update the cache value to reflect the command line values. | |
23864 | ac_cv_have_x="have_x=yes \ | |
23865 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
b4e70030 JB |
23866 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
23867 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
c906108c SS |
23868 | fi |
23869 | ||
23870 | ||
9cc52bde MK |
23871 | # Check whether we should enable the TUI, but only do so if we really |
23872 | # can. | |
23873 | if test x"$enable_tui" = xyes; then | |
23874 | if test -d $srcdir/tui; then | |
23875 | if test "$ac_cv_search_waddstr" != no; then | |
23876 | CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)" | |
23877 | CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)" | |
23878 | CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)" | |
23879 | CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)" | |
23880 | ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)" | |
23881 | CONFIG_ALL="${CONFIG_ALL} all-tui" | |
23882 | CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui" | |
23883 | CONFIG_INSTALL="${CONFIG_INSTALL} install-tui" | |
23884 | CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui" | |
23885 | else | |
bec39cab AC |
23886 | { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5 |
23887 | echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;} | |
9cc52bde MK |
23888 | fi |
23889 | fi | |
23890 | fi | |
23891 | ||
bec39cab | 23892 | # Unlike the sim directory, whether a simulator is linked is controlled by |
9b624dbe | 23893 | # presence of a gdb_sim definition in the target configure.tgt entry. |
7a292a7a SS |
23894 | # This code just checks for a few cases where we'd like to ignore those |
23895 | # definitions, even when they're present in the '.mt' file. These cases | |
23896 | # are when --disable-sim is specified, or if the simulator directory is | |
6c5cfe5b | 23897 | # not part of the source tree. |
7a292a7a | 23898 | # |
b4e70030 | 23899 | # Check whether --enable-sim or --disable-sim was given. |
7a292a7a | 23900 | if test "${enable_sim+set}" = set; then |
b4e70030 JB |
23901 | enableval="$enable_sim" |
23902 | echo "enable_sim = $enable_sim"; | |
7a292a7a SS |
23903 | echo "enableval = ${enableval}"; |
23904 | case "${enableval}" in | |
23905 | yes) ignore_sim=false ;; | |
23906 | no) ignore_sim=true ;; | |
23907 | *) ignore_sim=false ;; | |
23908 | esac | |
23909 | else | |
23910 | ignore_sim=false | |
b4e70030 | 23911 | fi; |
7a292a7a SS |
23912 | |
23913 | if test ! -d "${srcdir}/../sim"; then | |
23914 | ignore_sim=true | |
23915 | fi | |
23916 | ||
9b624dbe UW |
23917 | SIM= |
23918 | SIM_OBS= | |
23919 | if test "${ignore_sim}" = "false"; then | |
23920 | if test x"${gdb_sim}" != x ; then | |
23921 | SIM="${gdb_sim}" | |
23922 | SIM_OBS="remote-sim.o" | |
60ca704f SE |
23923 | |
23924 | cat >>confdefs.h <<\_ACEOF | |
7a292a7a | 23925 | #define WITH_SIM 1 |
bec39cab | 23926 | _ACEOF |
7a292a7a | 23927 | |
9b624dbe | 23928 | fi |
7a292a7a SS |
23929 | fi |
23930 | ||
23931 | ||
23932 | ||
c906108c SS |
23933 | |
23934 | ||
23935 | ||
23936 | ||
23937 | ||
23938 | ||
dfcd3bfb | 23939 | |
e56ac5c3 AC |
23940 | |
23941 | ||
b3a90332 AC |
23942 | |
23943 | ||
c35f4ffc | 23944 | # List of host floatformats. |
bec39cab AC |
23945 | |
23946 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 23947 | #define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format |
bec39cab | 23948 | _ACEOF |
c35f4ffc | 23949 | |
bec39cab AC |
23950 | |
23951 | cat >>confdefs.h <<_ACEOF | |
c35f4ffc | 23952 | #define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format |
bec39cab AC |
23953 | _ACEOF |
23954 | ||
c35f4ffc | 23955 | |
bec39cab | 23956 | cat >>confdefs.h <<_ACEOF |
c35f4ffc | 23957 | #define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format |
bec39cab | 23958 | _ACEOF |
c35f4ffc AC |
23959 | |
23960 | ||
c906108c SS |
23961 | # target_subdir is used by the testsuite to find the target libraries. |
23962 | target_subdir= | |
23963 | if test "${host}" != "${target}"; then | |
23964 | target_subdir="${target_alias}/" | |
23965 | fi | |
23966 | ||
23967 | ||
23968 | frags= | |
771b4502 | 23969 | if test "${gdb_native}" = "yes"; then |
0dad8a66 MK |
23970 | host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh |
23971 | if test ! -f ${host_makefile_frag}; then | |
bec39cab AC |
23972 | { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5 |
23973 | echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;} | |
23974 | { (exit 1); exit 1; }; } | |
0dad8a66 MK |
23975 | fi |
23976 | frags="$frags $host_makefile_frag" | |
23977 | else | |
23978 | host_makefile_frag=/dev/null | |
c906108c | 23979 | fi |
c906108c | 23980 | |
c906108c SS |
23981 | |
23982 | ||
23983 | ||
771b4502 | 23984 | if test "${gdb_native}" = "yes"; then |
a85f51e7 DJ |
23985 | # We pick this up from the host configuration file (.mh) because we |
23986 | # do not have a native configuration Makefile fragment. | |
c906108c SS |
23987 | nativefile=`sed -n ' |
23988 | s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p | |
23989 | ' ${host_makefile_frag}` | |
c906108c SS |
23990 | fi |
23991 | ||
23992 | ||
b00a8037 | 23993 | if test x"${gdb_osabi}" != x ; then |
bec39cab AC |
23994 | |
23995 | cat >>confdefs.h <<_ACEOF | |
b00a8037 | 23996 | #define GDB_OSABI_DEFAULT $gdb_osabi |
bec39cab | 23997 | _ACEOF |
b00a8037 DJ |
23998 | |
23999 | fi | |
24000 | ||
8dcde887 | 24001 | # Enable multi-ice-gdb-server. |
b4e70030 | 24002 | # Check whether --enable-multi-ice or --disable-multi-ice was given. |
8dcde887 | 24003 | if test "${enable_multi_ice+set}" = set; then |
b4e70030 JB |
24004 | enableval="$enable_multi_ice" |
24005 | case $enableval in | |
8dcde887 MK |
24006 | yes | no) |
24007 | ;; | |
bec39cab AC |
24008 | *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5 |
24009 | echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;} | |
24010 | { (exit 1); exit 1; }; } ;; | |
8dcde887 | 24011 | esac |
b4e70030 | 24012 | fi; |
4e8d927d | 24013 | if test "x$enable_multi_ice" = xyes; then |
b4e70030 JB |
24014 | |
24015 | ||
24016 | subdirs="$subdirs multi-ice" | |
3ace7edb | 24017 | |
a85f51e7 DJ |
24018 | fi |
24019 | ||
a13e2c95 UW |
24020 | # We only build gdbserver automatically in a native configuration. |
24021 | if test "$gdb_native" = "yes"; then | |
b4e70030 JB |
24022 | echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 |
24023 | echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 | |
8dcde887 | 24024 | if test "x$build_gdbserver" = xyes; then |
b4e70030 JB |
24025 | echo "$as_me:$LINENO: result: yes" >&5 |
24026 | echo "${ECHO_T}yes" >&6 | |
24027 | ||
24028 | ||
24029 | subdirs="$subdirs gdbserver" | |
3ace7edb | 24030 | |
8dcde887 | 24031 | else |
b4e70030 JB |
24032 | echo "$as_me:$LINENO: result: no" >&5 |
24033 | echo "${ECHO_T}no" >&6 | |
8dcde887 MK |
24034 | fi |
24035 | fi | |
24036 | ||
db985757 | 24037 | # If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link |
2c0fc042 | 24038 | # to an empty version. |
c906108c SS |
24039 | |
24040 | files= | |
24041 | links= | |
5a2402b8 | 24042 | |
c906108c | 24043 | rm -f nm.h |
5a2402b8 | 24044 | nm_h="" |
c906108c | 24045 | if test "${nativefile}" != ""; then |
5a2402b8 | 24046 | nm_h=nm.h |
0f475e27 AC |
24047 | case "${nativefile}" in |
24048 | nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;; | |
24049 | * ) GDB_NM_FILE="${nativefile}" | |
24050 | esac | |
5a2402b8 AC |
24051 | files="${files} ${GDB_NM_FILE}" |
24052 | links="${links} nm.h" | |
60ca704f SE |
24053 | |
24054 | cat >>confdefs.h <<_ACEOF | |
b78960be | 24055 | #define GDB_NM_FILE "${GDB_NM_FILE}" |
bec39cab | 24056 | _ACEOF |
5a2402b8 | 24057 | |
c906108c | 24058 | fi |
5a2402b8 AC |
24059 | |
24060 | ||
bec39cab AC |
24061 | ac_sources="$files" |
24062 | ac_dests="$links" | |
24063 | while test -n "$ac_sources"; do | |
24064 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
24065 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
24066 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
24067 | done | |
b4e70030 | 24068 | ac_config_links="$ac_config_links $ac_config_links_1" |
c906108c SS |
24069 | |
24070 | ||
c906108c SS |
24071 | |
24072 | ||
c906108c | 24073 | |
c906108c | 24074 | |
bec39cab AC |
24075 | cat >>confdefs.h <<\_ACEOF |
24076 | #define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1" | |
24077 | _ACEOF | |
c906108c | 24078 | |
234b45d4 | 24079 | |
234b45d4 KB |
24080 | |
24081 | ||
24082 | ||
b4e70030 | 24083 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. |
234b45d4 | 24084 | if test "${with_libiconv_prefix+set}" = set; then |
b4e70030 JB |
24085 | withval="$with_libiconv_prefix" |
24086 | ||
234b45d4 KB |
24087 | for dir in `echo "$withval" | tr : ' '`; do |
24088 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
24089 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
24090 | done | |
234b45d4 | 24091 | |
b4e70030 | 24092 | fi; |
234b45d4 | 24093 | |
b4e70030 JB |
24094 | echo "$as_me:$LINENO: checking for iconv" >&5 |
24095 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
bec39cab AC |
24096 | if test "${am_cv_func_iconv+set}" = set; then |
24097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
234b45d4 | 24098 | else |
bec39cab | 24099 | |
234b45d4 KB |
24100 | am_cv_func_iconv="no, consider installing GNU libiconv" |
24101 | am_cv_lib_iconv=no | |
bec39cab AC |
24102 | cat >conftest.$ac_ext <<_ACEOF |
24103 | /* confdefs.h. */ | |
24104 | _ACEOF | |
24105 | cat confdefs.h >>conftest.$ac_ext | |
24106 | cat >>conftest.$ac_ext <<_ACEOF | |
24107 | /* end confdefs.h. */ | |
234b45d4 KB |
24108 | #include <stdlib.h> |
24109 | #include <iconv.h> | |
bec39cab AC |
24110 | int |
24111 | main () | |
24112 | { | |
234b45d4 KB |
24113 | iconv_t cd = iconv_open("",""); |
24114 | iconv(cd,NULL,NULL,NULL,NULL); | |
24115 | iconv_close(cd); | |
bec39cab AC |
24116 | ; |
24117 | return 0; | |
24118 | } | |
24119 | _ACEOF | |
24120 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24122 | (eval $ac_link) 2>conftest.er1 | |
24123 | ac_status=$? | |
24124 | grep -v '^ *+' conftest.er1 >conftest.err | |
24125 | rm -f conftest.er1 | |
24126 | cat conftest.err >&5 | |
24127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24128 | (exit $ac_status); } && | |
b4e70030 JB |
24129 | { ac_try='test -z "$ac_c_werror_flag" |
24130 | || test ! -s conftest.err' | |
bec39cab AC |
24131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24132 | (eval $ac_try) 2>&5 | |
24133 | ac_status=$? | |
24134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24135 | (exit $ac_status); }; } && | |
24136 | { ac_try='test -s conftest$ac_exeext' | |
24137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24138 | (eval $ac_try) 2>&5 | |
24139 | ac_status=$? | |
24140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24141 | (exit $ac_status); }; }; then | |
234b45d4 KB |
24142 | am_cv_func_iconv=yes |
24143 | else | |
bec39cab AC |
24144 | echo "$as_me: failed program was:" >&5 |
24145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24146 | ||
234b45d4 | 24147 | fi |
bec39cab AC |
24148 | rm -f conftest.err conftest.$ac_objext \ |
24149 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
24150 | if test "$am_cv_func_iconv" != yes; then |
24151 | am_save_LIBS="$LIBS" | |
24152 | LIBS="$LIBS -liconv" | |
bec39cab AC |
24153 | cat >conftest.$ac_ext <<_ACEOF |
24154 | /* confdefs.h. */ | |
24155 | _ACEOF | |
24156 | cat confdefs.h >>conftest.$ac_ext | |
24157 | cat >>conftest.$ac_ext <<_ACEOF | |
24158 | /* end confdefs.h. */ | |
234b45d4 KB |
24159 | #include <stdlib.h> |
24160 | #include <iconv.h> | |
bec39cab AC |
24161 | int |
24162 | main () | |
24163 | { | |
234b45d4 KB |
24164 | iconv_t cd = iconv_open("",""); |
24165 | iconv(cd,NULL,NULL,NULL,NULL); | |
24166 | iconv_close(cd); | |
bec39cab AC |
24167 | ; |
24168 | return 0; | |
24169 | } | |
24170 | _ACEOF | |
24171 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24173 | (eval $ac_link) 2>conftest.er1 | |
24174 | ac_status=$? | |
24175 | grep -v '^ *+' conftest.er1 >conftest.err | |
24176 | rm -f conftest.er1 | |
24177 | cat conftest.err >&5 | |
24178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24179 | (exit $ac_status); } && | |
b4e70030 JB |
24180 | { ac_try='test -z "$ac_c_werror_flag" |
24181 | || test ! -s conftest.err' | |
bec39cab AC |
24182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24183 | (eval $ac_try) 2>&5 | |
24184 | ac_status=$? | |
24185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24186 | (exit $ac_status); }; } && | |
24187 | { ac_try='test -s conftest$ac_exeext' | |
24188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24189 | (eval $ac_try) 2>&5 | |
24190 | ac_status=$? | |
24191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24192 | (exit $ac_status); }; }; then | |
234b45d4 KB |
24193 | am_cv_lib_iconv=yes |
24194 | am_cv_func_iconv=yes | |
24195 | else | |
bec39cab AC |
24196 | echo "$as_me: failed program was:" >&5 |
24197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24198 | ||
234b45d4 | 24199 | fi |
bec39cab AC |
24200 | rm -f conftest.err conftest.$ac_objext \ |
24201 | conftest$ac_exeext conftest.$ac_ext | |
234b45d4 KB |
24202 | LIBS="$am_save_LIBS" |
24203 | fi | |
bec39cab AC |
24204 | |
24205 | fi | |
b4e70030 JB |
24206 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
24207 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
bec39cab AC |
24208 | if test "$am_cv_func_iconv" = yes; then |
24209 | ||
24210 | cat >>confdefs.h <<\_ACEOF | |
24211 | #define HAVE_ICONV 1 | |
24212 | _ACEOF | |
24213 | ||
b4e70030 JB |
24214 | echo "$as_me:$LINENO: checking for iconv declaration" >&5 |
24215 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6 | |
bec39cab AC |
24216 | if test "${am_cv_proto_iconv+set}" = set; then |
24217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24218 | else | |
24219 | ||
24220 | cat >conftest.$ac_ext <<_ACEOF | |
24221 | /* confdefs.h. */ | |
24222 | _ACEOF | |
24223 | cat confdefs.h >>conftest.$ac_ext | |
24224 | cat >>conftest.$ac_ext <<_ACEOF | |
24225 | /* end confdefs.h. */ | |
24226 | ||
24227 | #include <stdlib.h> | |
24228 | #include <iconv.h> | |
24229 | extern | |
24230 | #ifdef __cplusplus | |
24231 | "C" | |
24232 | #endif | |
24233 | #if defined(__STDC__) || defined(__cplusplus) | |
24234 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
24235 | #else | |
24236 | size_t iconv(); | |
24237 | #endif | |
24238 | ||
24239 | int | |
24240 | main () | |
24241 | { | |
24242 | ||
24243 | ; | |
24244 | return 0; | |
24245 | } | |
24246 | _ACEOF | |
24247 | rm -f conftest.$ac_objext | |
24248 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24249 | (eval $ac_compile) 2>conftest.er1 | |
24250 | ac_status=$? | |
24251 | grep -v '^ *+' conftest.er1 >conftest.err | |
24252 | rm -f conftest.er1 | |
24253 | cat conftest.err >&5 | |
24254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24255 | (exit $ac_status); } && | |
b4e70030 JB |
24256 | { ac_try='test -z "$ac_c_werror_flag" |
24257 | || test ! -s conftest.err' | |
bec39cab AC |
24258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24259 | (eval $ac_try) 2>&5 | |
24260 | ac_status=$? | |
24261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24262 | (exit $ac_status); }; } && | |
24263 | { ac_try='test -s conftest.$ac_objext' | |
24264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24265 | (eval $ac_try) 2>&5 | |
24266 | ac_status=$? | |
24267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24268 | (exit $ac_status); }; }; then | |
24269 | am_cv_proto_iconv_arg1="" | |
24270 | else | |
24271 | echo "$as_me: failed program was:" >&5 | |
24272 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24273 | ||
b4e70030 | 24274 | am_cv_proto_iconv_arg1="const" |
bec39cab AC |
24275 | fi |
24276 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
24277 | 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);" | |
24278 | fi | |
24279 | ||
24280 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` | |
b4e70030 | 24281 | echo "$as_me:$LINENO: result: ${ac_t:- |
bec39cab AC |
24282 | }$am_cv_proto_iconv" >&5 |
24283 | echo "${ECHO_T}${ac_t:- | |
b4e70030 | 24284 | }$am_cv_proto_iconv" >&6 |
bec39cab AC |
24285 | |
24286 | cat >>confdefs.h <<_ACEOF | |
24287 | #define ICONV_CONST $am_cv_proto_iconv_arg1 | |
24288 | _ACEOF | |
24289 | ||
24290 | fi | |
24291 | LIBICONV= | |
24292 | if test "$am_cv_lib_iconv" = yes; then | |
24293 | LIBICONV="-liconv" | |
24294 | fi | |
24295 | ||
24296 | ||
24297 | ||
b4e70030 JB |
24298 | ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in" |
24299 | ac_config_commands="$ac_config_commands default" | |
bec39cab AC |
24300 | cat >confcache <<\_ACEOF |
24301 | # This file is a shell script that caches the results of configure | |
24302 | # tests run on this system so they can be shared between configure | |
24303 | # scripts and configure runs, see configure's option --config-cache. | |
24304 | # It is not useful on other systems. If it contains results you don't | |
24305 | # want to keep, you may remove or edit it. | |
24306 | # | |
24307 | # config.status only pays attention to the cache file if you give it | |
24308 | # the --recheck option to rerun configure. | |
24309 | # | |
24310 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
24311 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
24312 | # following values. | |
24313 | ||
24314 | _ACEOF | |
24315 | ||
24316 | # The following way of writing the cache mishandles newlines in values, | |
24317 | # but we know of no workaround that is simple, portable, and efficient. | |
b4e70030 | 24318 | # So, don't put newlines in cache variables' values. |
bec39cab AC |
24319 | # Ultrix sh set writes to stderr and can't be redirected directly, |
24320 | # and sets the high bit in the cache file unless we assign to the vars. | |
b4e70030 | 24321 | { |
bec39cab | 24322 | (set) 2>&1 | |
b4e70030 JB |
24323 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
24324 | *ac_space=\ *) | |
bec39cab AC |
24325 | # `set' does not quote correctly, so add quotes (double-quote |
24326 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
24327 | sed -n \ | |
24328 | "s/'/'\\\\''/g; | |
24329 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
b4e70030 | 24330 | ;; |
bec39cab AC |
24331 | *) |
24332 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
b4e70030 JB |
24333 | sed -n \ |
24334 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
bec39cab | 24335 | ;; |
b4e70030 JB |
24336 | esac; |
24337 | } | | |
bec39cab AC |
24338 | sed ' |
24339 | t clear | |
b4e70030 | 24340 | : clear |
bec39cab AC |
24341 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
24342 | t end | |
b4e70030 JB |
24343 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
24344 | : end' >>confcache | |
bec39cab AC |
24345 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
24346 | if test -w $cache_file; then | |
b4e70030 | 24347 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
bec39cab AC |
24348 | cat confcache >$cache_file |
24349 | else | |
b4e70030 | 24350 | echo "not updating unwritable cache $cache_file" |
bec39cab AC |
24351 | fi |
24352 | fi | |
24353 | rm -f confcache | |
24354 | ||
24355 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
24356 | # Let make expand exec_prefix. | |
24357 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
24358 | ||
b4e70030 JB |
24359 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
24360 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
24361 | # trailing colons and then remove the whole line if VPATH becomes empty | |
24362 | # (actually we leave an empty line to preserve line numbers). | |
24363 | if test "x$srcdir" = x.; then | |
24364 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
24365 | s/:*\$(srcdir):*/:/; | |
24366 | s/:*\${srcdir}:*/:/; | |
24367 | s/:*@srcdir@:*/:/; | |
24368 | s/^\([^=]*=[ ]*\):*/\1/; | |
24369 | s/:*$//; | |
24370 | s/^[^=]*=[ ]*$//; | |
24371 | }' | |
24372 | fi | |
24373 | ||
bec39cab AC |
24374 | DEFS=-DHAVE_CONFIG_H |
24375 | ||
24376 | ac_libobjs= | |
24377 | ac_ltlibobjs= | |
24378 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
24379 | # 1. Remove the extension, and $U if already installed. | |
b4e70030 JB |
24380 | ac_i=`echo "$ac_i" | |
24381 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
24382 | # 2. Add them. | |
24383 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
24384 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
bec39cab AC |
24385 | done |
24386 | LIBOBJS=$ac_libobjs | |
24387 | ||
24388 | LTLIBOBJS=$ac_ltlibobjs | |
24389 | ||
24390 | ||
85981d60 AC |
24391 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
24392 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
24393 | Usually this means the macro was only invoked conditionally." >&5 | |
24394 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
24395 | Usually this means the macro was only invoked conditionally." >&2;} | |
24396 | { (exit 1); exit 1; }; } | |
24397 | fi | |
bec39cab AC |
24398 | |
24399 | : ${CONFIG_STATUS=./config.status} | |
24400 | ac_clean_files_save=$ac_clean_files | |
24401 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
24402 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
24403 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
24404 | cat >$CONFIG_STATUS <<_ACEOF | |
24405 | #! $SHELL | |
24406 | # Generated by $as_me. | |
24407 | # Run this file to recreate the current configuration. | |
24408 | # Compiler output produced by configure, useful for debugging | |
24409 | # configure, is in config.log if it exists. | |
24410 | ||
24411 | debug=false | |
24412 | ac_cs_recheck=false | |
24413 | ac_cs_silent=false | |
24414 | SHELL=\${CONFIG_SHELL-$SHELL} | |
24415 | _ACEOF | |
24416 | ||
24417 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24418 | ## --------------------- ## | |
24419 | ## M4sh Initialization. ## | |
24420 | ## --------------------- ## | |
24421 | ||
24422 | # Be Bourne compatible | |
24423 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
24424 | emulate sh | |
24425 | NULLCMD=: | |
24426 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
24427 | # is contrary to our usage. Disable this feature. | |
24428 | alias -g '${1+"$@"}'='"$@"' | |
b4e70030 JB |
24429 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
24430 | set -o posix | |
bec39cab AC |
24431 | fi |
24432 | DUALCASE=1; export DUALCASE # for MKS sh | |
24433 | ||
24434 | # Support unset when possible. | |
24435 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
24436 | as_unset=unset | |
24437 | else | |
24438 | as_unset=false | |
24439 | fi | |
24440 | ||
24441 | ||
24442 | # Work around bugs in pre-3.0 UWIN ksh. | |
b4e70030 | 24443 | $as_unset ENV MAIL MAILPATH |
bec39cab AC |
24444 | PS1='$ ' |
24445 | PS2='> ' | |
24446 | PS4='+ ' | |
24447 | ||
24448 | # NLS nuisances. | |
24449 | for as_var in \ | |
24450 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
24451 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
24452 | LC_TELEPHONE LC_TIME | |
24453 | do | |
24454 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
24455 | eval $as_var=C; export $as_var | |
24456 | else | |
b4e70030 | 24457 | $as_unset $as_var |
bec39cab AC |
24458 | fi |
24459 | done | |
24460 | ||
24461 | # Required to use basename. | |
b4e70030 | 24462 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
24463 | as_expr=expr |
24464 | else | |
24465 | as_expr=false | |
24466 | fi | |
24467 | ||
b4e70030 | 24468 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
bec39cab AC |
24469 | as_basename=basename |
24470 | else | |
24471 | as_basename=false | |
24472 | fi | |
24473 | ||
24474 | ||
24475 | # Name of the executable. | |
b4e70030 | 24476 | as_me=`$as_basename "$0" || |
bec39cab AC |
24477 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
24478 | X"$0" : 'X\(//\)$' \| \ | |
b4e70030 JB |
24479 | X"$0" : 'X\(/\)$' \| \ |
24480 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 24481 | echo X/"$0" | |
b4e70030 JB |
24482 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
24483 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
24484 | /^X\/\(\/\).*/{ s//\1/; q; } | |
24485 | s/.*/./; q'` | |
bec39cab | 24486 | |
b4e70030 JB |
24487 | |
24488 | # PATH needs CR, and LINENO needs CR and PATH. | |
24489 | # Avoid depending upon Character Ranges. | |
24490 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
24491 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
24492 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
24493 | as_cr_digits='0123456789' | |
24494 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
24495 | ||
24496 | # The user is always right. | |
24497 | if test "${PATH_SEPARATOR+set}" != set; then | |
24498 | echo "#! /bin/sh" >conf$$.sh | |
24499 | echo "exit 0" >>conf$$.sh | |
24500 | chmod +x conf$$.sh | |
24501 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
24502 | PATH_SEPARATOR=';' | |
24503 | else | |
24504 | PATH_SEPARATOR=: | |
24505 | fi | |
24506 | rm -f conf$$.sh | |
24507 | fi | |
bec39cab AC |
24508 | |
24509 | ||
b4e70030 JB |
24510 | as_lineno_1=$LINENO |
24511 | as_lineno_2=$LINENO | |
24512 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
24513 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
24514 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
24515 | # Find who we are. Look in the path if we contain no path at all | |
24516 | # relative or not. | |
24517 | case $0 in | |
24518 | *[\\/]* ) as_myself=$0 ;; | |
24519 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24520 | for as_dir in $PATH | |
24521 | do | |
24522 | IFS=$as_save_IFS | |
24523 | test -z "$as_dir" && as_dir=. | |
24524 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
24525 | done | |
bec39cab | 24526 | |
b4e70030 JB |
24527 | ;; |
24528 | esac | |
24529 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
24530 | # in which case we are not to be found in the path. | |
24531 | if test "x$as_myself" = x; then | |
24532 | as_myself=$0 | |
24533 | fi | |
24534 | if test ! -f "$as_myself"; then | |
24535 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
24536 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
24537 | { (exit 1); exit 1; }; } | |
24538 | fi | |
24539 | case $CONFIG_SHELL in | |
24540 | '') | |
24541 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
24542 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
24543 | do | |
24544 | IFS=$as_save_IFS | |
24545 | test -z "$as_dir" && as_dir=. | |
24546 | for as_base in sh bash ksh sh5; do | |
24547 | case $as_dir in | |
24548 | /*) | |
24549 | if ("$as_dir/$as_base" -c ' | |
bec39cab AC |
24550 | as_lineno_1=$LINENO |
24551 | as_lineno_2=$LINENO | |
b4e70030 | 24552 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
bec39cab | 24553 | test "x$as_lineno_1" != "x$as_lineno_2" && |
b4e70030 JB |
24554 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
24555 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
24556 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
24557 | CONFIG_SHELL=$as_dir/$as_base | |
24558 | export CONFIG_SHELL | |
24559 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
24560 | fi;; | |
24561 | esac | |
24562 | done | |
24563 | done | |
24564 | ;; | |
24565 | esac | |
bec39cab AC |
24566 | |
24567 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
24568 | # uniformly replaced by the line number. The first 'sed' inserts a | |
b4e70030 JB |
24569 | # line-number line before each line; the second 'sed' does the real |
24570 | # work. The second script uses 'N' to pair each line-number line | |
24571 | # with the numbered line, and appends trailing '-' during | |
24572 | # substitution so that $LINENO is not a special case at line end. | |
bec39cab | 24573 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
b4e70030 JB |
24574 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
24575 | sed '=' <$as_myself | | |
bec39cab AC |
24576 | sed ' |
24577 | N | |
b4e70030 JB |
24578 | s,$,-, |
24579 | : loop | |
24580 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
bec39cab | 24581 | t loop |
b4e70030 JB |
24582 | s,-$,, |
24583 | s,^['$as_cr_digits']*\n,, | |
bec39cab | 24584 | ' >$as_me.lineno && |
b4e70030 JB |
24585 | chmod +x $as_me.lineno || |
24586 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
24587 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
bec39cab AC |
24588 | { (exit 1); exit 1; }; } |
24589 | ||
24590 | # Don't try to exec as it changes $[0], causing all sort of problems | |
24591 | # (the dirname of $[0] is not the place where we might find the | |
b4e70030 JB |
24592 | # original and so on. Autoconf is especially sensible to this). |
24593 | . ./$as_me.lineno | |
bec39cab AC |
24594 | # Exit status is that of the last command. |
24595 | exit | |
24596 | } | |
24597 | ||
24598 | ||
b4e70030 JB |
24599 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
24600 | *c*,-n*) ECHO_N= ECHO_C=' | |
24601 | ' ECHO_T=' ' ;; | |
24602 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
24603 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
bec39cab AC |
24604 | esac |
24605 | ||
b4e70030 | 24606 | if expr a : '\(a\)' >/dev/null 2>&1; then |
bec39cab AC |
24607 | as_expr=expr |
24608 | else | |
24609 | as_expr=false | |
24610 | fi | |
24611 | ||
24612 | rm -f conf$$ conf$$.exe conf$$.file | |
24613 | echo >conf$$.file | |
24614 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
b4e70030 JB |
24615 | # We could just check for DJGPP; but this test a) works b) is more generic |
24616 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
24617 | if test -f conf$$.exe; then | |
24618 | # Don't use ln at all; we don't have any links | |
bec39cab | 24619 | as_ln_s='cp -p' |
b4e70030 JB |
24620 | else |
24621 | as_ln_s='ln -s' | |
24622 | fi | |
bec39cab AC |
24623 | elif ln conf$$.file conf$$ 2>/dev/null; then |
24624 | as_ln_s=ln | |
24625 | else | |
24626 | as_ln_s='cp -p' | |
24627 | fi | |
b4e70030 | 24628 | rm -f conf$$ conf$$.exe conf$$.file |
bec39cab AC |
24629 | |
24630 | if mkdir -p . 2>/dev/null; then | |
24631 | as_mkdir_p=: | |
24632 | else | |
24633 | test -d ./-p && rmdir ./-p | |
24634 | as_mkdir_p=false | |
24635 | fi | |
24636 | ||
b4e70030 | 24637 | as_executable_p="test -f" |
bec39cab AC |
24638 | |
24639 | # Sed expression to map a string onto a valid CPP name. | |
24640 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
24641 | ||
24642 | # Sed expression to map a string onto a valid variable name. | |
24643 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
24644 | ||
24645 | ||
b4e70030 JB |
24646 | # IFS |
24647 | # We need space, tab and new line, in precisely that order. | |
24648 | as_nl=' | |
24649 | ' | |
24650 | IFS=" $as_nl" | |
24651 | ||
24652 | # CDPATH. | |
24653 | $as_unset CDPATH | |
24654 | ||
bec39cab AC |
24655 | exec 6>&1 |
24656 | ||
b4e70030 | 24657 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
bec39cab | 24658 | # report actual input values of CONFIG_FILES etc. instead of their |
b4e70030 JB |
24659 | # values after options handling. Logging --version etc. is OK. |
24660 | exec 5>>config.log | |
24661 | { | |
24662 | echo | |
24663 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
24664 | ## Running $as_me. ## | |
24665 | _ASBOX | |
24666 | } >&5 | |
24667 | cat >&5 <<_CSEOF | |
24668 | ||
bec39cab | 24669 | This file was extended by $as_me, which was |
b4e70030 | 24670 | generated by GNU Autoconf 2.59. Invocation command line was |
bec39cab AC |
24671 | |
24672 | CONFIG_FILES = $CONFIG_FILES | |
24673 | CONFIG_HEADERS = $CONFIG_HEADERS | |
24674 | CONFIG_LINKS = $CONFIG_LINKS | |
24675 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
24676 | $ $0 $@ | |
24677 | ||
b4e70030 JB |
24678 | _CSEOF |
24679 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
24680 | echo >&5 | |
bec39cab AC |
24681 | _ACEOF |
24682 | ||
24683 | # Files that config.status was made for. | |
b4e70030 JB |
24684 | if test -n "$ac_config_files"; then |
24685 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
24686 | fi | |
234b45d4 | 24687 | |
b4e70030 JB |
24688 | if test -n "$ac_config_headers"; then |
24689 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
24690 | fi | |
24691 | ||
24692 | if test -n "$ac_config_links"; then | |
24693 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
24694 | fi | |
24695 | ||
24696 | if test -n "$ac_config_commands"; then | |
24697 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
24698 | fi | |
234b45d4 | 24699 | |
bec39cab | 24700 | cat >>$CONFIG_STATUS <<\_ACEOF |
b4e70030 | 24701 | |
bec39cab AC |
24702 | ac_cs_usage="\ |
24703 | \`$as_me' instantiates files from templates according to the | |
24704 | current configuration. | |
234b45d4 | 24705 | |
bec39cab | 24706 | Usage: $0 [OPTIONS] [FILE]... |
234b45d4 | 24707 | |
bec39cab AC |
24708 | -h, --help print this help, then exit |
24709 | -V, --version print version number, then exit | |
24710 | -q, --quiet do not print progress messages | |
24711 | -d, --debug don't remove temporary files | |
24712 | --recheck update $as_me by reconfiguring in the same conditions | |
24713 | --file=FILE[:TEMPLATE] | |
24714 | instantiate the configuration file FILE | |
24715 | --header=FILE[:TEMPLATE] | |
24716 | instantiate the configuration header FILE | |
234b45d4 | 24717 | |
bec39cab AC |
24718 | Configuration files: |
24719 | $config_files | |
234b45d4 | 24720 | |
bec39cab AC |
24721 | Configuration headers: |
24722 | $config_headers | |
234b45d4 | 24723 | |
bec39cab AC |
24724 | Configuration links: |
24725 | $config_links | |
234b45d4 | 24726 | |
bec39cab AC |
24727 | Configuration commands: |
24728 | $config_commands | |
24729 | ||
24730 | Report bugs to <bug-autoconf@gnu.org>." | |
4e8d927d | 24731 | _ACEOF |
b4e70030 | 24732 | |
bec39cab AC |
24733 | cat >>$CONFIG_STATUS <<_ACEOF |
24734 | ac_cs_version="\\ | |
24735 | config.status | |
b4e70030 | 24736 | configured by $0, generated by GNU Autoconf 2.59, |
bec39cab AC |
24737 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
24738 | ||
b4e70030 | 24739 | Copyright (C) 2003 Free Software Foundation, Inc. |
bec39cab AC |
24740 | This config.status script is free software; the Free Software Foundation |
24741 | gives unlimited permission to copy, distribute and modify it." | |
b4e70030 JB |
24742 | srcdir=$srcdir |
24743 | INSTALL="$INSTALL" | |
bec39cab AC |
24744 | _ACEOF |
24745 | ||
24746 | cat >>$CONFIG_STATUS <<\_ACEOF | |
24747 | # If no file are specified by the user, then we need to provide default | |
24748 | # value. By we need to know if files were specified by the user. | |
24749 | ac_need_defaults=: | |
24750 | while test $# != 0 | |
24751 | do | |
24752 | case $1 in | |
24753 | --*=*) | |
b4e70030 JB |
24754 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
24755 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
bec39cab | 24756 | ac_shift=: |
c906108c | 24757 | ;; |
b4e70030 | 24758 | -*) |
bec39cab AC |
24759 | ac_option=$1 |
24760 | ac_optarg=$2 | |
24761 | ac_shift=shift | |
c906108c | 24762 | ;; |
b4e70030 JB |
24763 | *) # This is not an option, so the user has probably given explicit |
24764 | # arguments. | |
24765 | ac_option=$1 | |
24766 | ac_need_defaults=false;; | |
bec39cab | 24767 | esac |
c906108c | 24768 | |
bec39cab AC |
24769 | case $ac_option in |
24770 | # Handling of the options. | |
b4e70030 JB |
24771 | _ACEOF |
24772 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab AC |
24773 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
24774 | ac_cs_recheck=: ;; | |
b4e70030 JB |
24775 | --version | --vers* | -V ) |
24776 | echo "$ac_cs_version"; exit 0 ;; | |
24777 | --he | --h) | |
24778 | # Conflict between --help and --header | |
24779 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
24780 | Try \`$0 --help' for more information." >&5 | |
24781 | echo "$as_me: error: ambiguous option: $1 | |
24782 | Try \`$0 --help' for more information." >&2;} | |
24783 | { (exit 1); exit 1; }; };; | |
24784 | --help | --hel | -h ) | |
24785 | echo "$ac_cs_usage"; exit 0 ;; | |
24786 | --debug | --d* | -d ) | |
bec39cab AC |
24787 | debug=: ;; |
24788 | --file | --fil | --fi | --f ) | |
24789 | $ac_shift | |
24790 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
24791 | ac_need_defaults=false;; | |
24792 | --header | --heade | --head | --hea ) | |
24793 | $ac_shift | |
24794 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
24795 | ac_need_defaults=false;; | |
24796 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
24797 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
24798 | ac_cs_silent=: ;; | |
c906108c | 24799 | |
bec39cab | 24800 | # This is an error. |
b4e70030 JB |
24801 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
24802 | Try \`$0 --help' for more information." >&5 | |
24803 | echo "$as_me: error: unrecognized option: $1 | |
24804 | Try \`$0 --help' for more information." >&2;} | |
bec39cab | 24805 | { (exit 1); exit 1; }; } ;; |
c906108c | 24806 | |
b4e70030 | 24807 | *) ac_config_targets="$ac_config_targets $1" ;; |
c906108c | 24808 | |
bec39cab AC |
24809 | esac |
24810 | shift | |
24811 | done | |
c906108c | 24812 | |
bec39cab | 24813 | ac_configure_extra_args= |
c906108c | 24814 | |
bec39cab AC |
24815 | if $ac_cs_silent; then |
24816 | exec 6>/dev/null | |
24817 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
24818 | fi | |
c906108c | 24819 | |
bec39cab AC |
24820 | _ACEOF |
24821 | cat >>$CONFIG_STATUS <<_ACEOF | |
24822 | if \$ac_cs_recheck; then | |
b4e70030 JB |
24823 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
24824 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
bec39cab AC |
24825 | fi |
24826 | ||
24827 | _ACEOF | |
24828 | ||
24829 | cat >>$CONFIG_STATUS <<_ACEOF | |
c906108c | 24830 | # |
b4e70030 | 24831 | # INIT-COMMANDS section. |
c906108c | 24832 | # |
c906108c | 24833 | |
b4e70030 | 24834 | |
4e8d927d DJ |
24835 | GCC="$GCC" |
24836 | CC="$CC" | |
24837 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
24838 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
24839 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
24840 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
24841 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
24842 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
24843 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
24844 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
24845 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
24846 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
24847 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
24848 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
24849 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
24850 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
24851 | ||
bec39cab AC |
24852 | |
24853 | gdb_host_cpu=$gdb_host_cpu | |
bec39cab AC |
24854 | nativefile=$nativefile |
24855 | ||
24856 | ||
24857 | _ACEOF | |
24858 | ||
4e8d927d | 24859 | |
b4e70030 JB |
24860 | |
24861 | cat >>$CONFIG_STATUS <<\_ACEOF | |
bec39cab | 24862 | for ac_config_target in $ac_config_targets |
c906108c | 24863 | do |
b4e70030 JB |
24864 | case "$ac_config_target" in |
24865 | # Handling of arguments. | |
24866 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
24867 | ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;; | |
24868 | "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
24869 | "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;; | |
24870 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
24871 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
bec39cab AC |
24872 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
24873 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
24874 | { (exit 1); exit 1; }; };; | |
c906108c SS |
24875 | esac |
24876 | done | |
24877 | ||
bec39cab AC |
24878 | # If the user did not use the arguments to specify the items to instantiate, |
24879 | # then the envvar interface is used. Set only those that are not. | |
24880 | # We use the long form for the default assignment because of an extremely | |
24881 | # bizarre bug on SunOS 4.1.3. | |
24882 | if $ac_need_defaults; then | |
24883 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
24884 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
24885 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
24886 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
24887 | fi | |
24888 | ||
b4e70030 JB |
24889 | # Have a temporary directory for convenience. Make it in the build tree |
24890 | # simply because there is no reason to put it here, and in addition, | |
24891 | # creating and moving files from /tmp can sometimes cause problems. | |
24892 | # Create a temporary directory, and hook for its removal unless debugging. | |
24893 | $debug || | |
24894 | { | |
24895 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
24896 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
24897 | } | |
4e8d927d | 24898 | |
b4e70030 | 24899 | # Create a (secure) tmp directory for tmp files. |
4e8d927d | 24900 | |
b4e70030 JB |
24901 | { |
24902 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
24903 | test -n "$tmp" && test -d "$tmp" | |
24904 | } || | |
24905 | { | |
24906 | tmp=./confstat$$-$RANDOM | |
24907 | (umask 077 && mkdir $tmp) | |
24908 | } || | |
24909 | { | |
24910 | echo "$me: cannot create a temporary directory in ." >&2 | |
24911 | { (exit 1); exit 1; } | |
24912 | } | |
4e8d927d | 24913 | |
b4e70030 | 24914 | _ACEOF |
4e8d927d | 24915 | |
b4e70030 | 24916 | cat >>$CONFIG_STATUS <<_ACEOF |
4e8d927d | 24917 | |
b4e70030 JB |
24918 | # |
24919 | # CONFIG_FILES section. | |
24920 | # | |
4e8d927d | 24921 | |
b4e70030 JB |
24922 | # No need to generate the scripts if there are no CONFIG_FILES. |
24923 | # This happens for instance when ./config.status config.h | |
24924 | if test -n "\$CONFIG_FILES"; then | |
24925 | # Protect against being on the right side of a sed subst in config.status. | |
24926 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
24927 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
24928 | s,@SHELL@,$SHELL,;t t | |
24929 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
24930 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
24931 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
24932 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
24933 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
24934 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
24935 | s,@exec_prefix@,$exec_prefix,;t t | |
24936 | s,@prefix@,$prefix,;t t | |
24937 | s,@program_transform_name@,$program_transform_name,;t t | |
24938 | s,@bindir@,$bindir,;t t | |
24939 | s,@sbindir@,$sbindir,;t t | |
24940 | s,@libexecdir@,$libexecdir,;t t | |
24941 | s,@datadir@,$datadir,;t t | |
24942 | s,@sysconfdir@,$sysconfdir,;t t | |
24943 | s,@sharedstatedir@,$sharedstatedir,;t t | |
24944 | s,@localstatedir@,$localstatedir,;t t | |
24945 | s,@libdir@,$libdir,;t t | |
24946 | s,@includedir@,$includedir,;t t | |
24947 | s,@oldincludedir@,$oldincludedir,;t t | |
24948 | s,@infodir@,$infodir,;t t | |
24949 | s,@mandir@,$mandir,;t t | |
24950 | s,@build_alias@,$build_alias,;t t | |
24951 | s,@host_alias@,$host_alias,;t t | |
24952 | s,@target_alias@,$target_alias,;t t | |
24953 | s,@DEFS@,$DEFS,;t t | |
24954 | s,@ECHO_C@,$ECHO_C,;t t | |
24955 | s,@ECHO_N@,$ECHO_N,;t t | |
24956 | s,@ECHO_T@,$ECHO_T,;t t | |
24957 | s,@LIBS@,$LIBS,;t t | |
24958 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
24959 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
24960 | s,@MAINT@,$MAINT,;t t | |
24961 | s,@CC@,$CC,;t t | |
24962 | s,@CFLAGS@,$CFLAGS,;t t | |
24963 | s,@LDFLAGS@,$LDFLAGS,;t t | |
24964 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
24965 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
24966 | s,@EXEEXT@,$EXEEXT,;t t | |
24967 | s,@OBJEXT@,$OBJEXT,;t t | |
24968 | s,@CPP@,$CPP,;t t | |
24969 | s,@EGREP@,$EGREP,;t t | |
24970 | s,@build@,$build,;t t | |
24971 | s,@build_cpu@,$build_cpu,;t t | |
24972 | s,@build_vendor@,$build_vendor,;t t | |
24973 | s,@build_os@,$build_os,;t t | |
24974 | s,@host@,$host,;t t | |
24975 | s,@host_cpu@,$host_cpu,;t t | |
24976 | s,@host_vendor@,$host_vendor,;t t | |
24977 | s,@host_os@,$host_os,;t t | |
24978 | s,@target@,$target,;t t | |
24979 | s,@target_cpu@,$target_cpu,;t t | |
24980 | s,@target_vendor@,$target_vendor,;t t | |
24981 | s,@target_os@,$target_os,;t t | |
b4e70030 | 24982 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
24983 | s,@LIBINTL@,$LIBINTL,;t t |
24984 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
24985 | s,@INCINTL@,$INCINTL,;t t | |
b4e70030 | 24986 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
24987 | s,@GMSGFMT@,$GMSGFMT,;t t |
24988 | s,@POSUB@,$POSUB,;t t | |
b4e70030 | 24989 | s,@CATALOGS@,$CATALOGS,;t t |
b4e70030 | 24990 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
b4e70030 | 24991 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
24992 | s,@GENCAT@,$GENCAT,;t t |
24993 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
b4e70030 JB |
24994 | s,@localedir@,$localedir,;t t |
24995 | s,@PACKAGE@,$PACKAGE,;t t | |
24996 | s,@subdirs@,$subdirs,;t t | |
a4ce5b0d | 24997 | s,@TARGET_OBS@,$TARGET_OBS,;t t |
b4e70030 JB |
24998 | s,@AWK@,$AWK,;t t |
24999 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
25000 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
25001 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
25002 | s,@LN_S@,$LN_S,;t t | |
20e95c23 DJ |
25003 | s,@RANLIB@,$RANLIB,;t t |
25004 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
b4e70030 JB |
25005 | s,@YACC@,$YACC,;t t |
25006 | s,@AR@,$AR,;t t | |
25007 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
25008 | s,@DLLTOOL@,$DLLTOOL,;t t | |
25009 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | |
25010 | s,@WINDRES@,$WINDRES,;t t | |
25011 | s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t | |
25012 | s,@MIG@,$MIG,;t t | |
25013 | s,@ac_ct_MIG@,$ac_ct_MIG,;t t | |
6a30b0a5 AS |
25014 | s,@READLINE@,$READLINE,;t t |
25015 | s,@READLINE_DEPS@,$READLINE_DEPS,;t t | |
25016 | s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t | |
3841debe DJ |
25017 | s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t |
25018 | s,@LIBEXPAT@,$LIBEXPAT,;t t | |
25019 | s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t | |
20e95c23 | 25020 | s,@ALLOCA@,$ALLOCA,;t t |
b4e70030 JB |
25021 | s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t |
25022 | s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t | |
25023 | s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t | |
25024 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
25025 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
25026 | s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t | |
25027 | s,@WIN32LIBS@,$WIN32LIBS,;t t | |
25028 | s,@LIBGUI@,$LIBGUI,;t t | |
25029 | s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t | |
25030 | s,@WIN32LDAPP@,$WIN32LDAPP,;t t | |
25031 | s,@TCL_VERSION@,$TCL_VERSION,;t t | |
25032 | s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t | |
25033 | s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t | |
25034 | s,@TCL_CC@,$TCL_CC,;t t | |
25035 | s,@TCL_DEFS@,$TCL_DEFS,;t t | |
25036 | s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t | |
25037 | s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t | |
25038 | s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t | |
25039 | s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t | |
25040 | s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t | |
25041 | s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t | |
25042 | s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t | |
25043 | s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t | |
25044 | s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t | |
25045 | s,@TCL_RANLIB@,$TCL_RANLIB,;t t | |
25046 | s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t | |
25047 | s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t | |
25048 | s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t | |
25049 | s,@TK_VERSION@,$TK_VERSION,;t t | |
25050 | s,@TK_DEFS@,$TK_DEFS,;t t | |
25051 | s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t | |
25052 | s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t | |
25053 | s,@TK_XLIBSW@,$TK_XLIBSW,;t t | |
25054 | s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t | |
25055 | s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t | |
25056 | s,@TCLHDIR@,$TCLHDIR,;t t | |
25057 | s,@TKHDIR@,$TKHDIR,;t t | |
25058 | s,@ITCLHDIR@,$ITCLHDIR,;t t | |
25059 | s,@ITKHDIR@,$ITKHDIR,;t t | |
25060 | s,@ITCL_VERSION@,$ITCL_VERSION,;t t | |
25061 | s,@ITCL_DEFS@,$ITCL_DEFS,;t t | |
25062 | s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t | |
25063 | s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t | |
25064 | s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t | |
25065 | s,@ITK_VERSION@,$ITK_VERSION,;t t | |
25066 | s,@ITK_DEFS@,$ITK_DEFS,;t t | |
25067 | s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t | |
25068 | s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t | |
25069 | s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t | |
25070 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
25071 | s,@X_LDFLAGS@,$X_LDFLAGS,;t t | |
25072 | s,@X_LIBS@,$X_LIBS,;t t | |
25073 | s,@TCL_DEPS@,$TCL_DEPS,;t t | |
25074 | s,@TK_DEPS@,$TK_DEPS,;t t | |
25075 | s,@ITCLLIB@,$ITCLLIB,;t t | |
25076 | s,@ITCL_DEPS@,$ITCL_DEPS,;t t | |
25077 | s,@ITKLIB@,$ITKLIB,;t t | |
25078 | s,@ITK_DEPS@,$ITK_DEPS,;t t | |
25079 | s,@GDBTKLIBS@,$GDBTKLIBS,;t t | |
25080 | s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t | |
25081 | s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t | |
9b624dbe UW |
25082 | s,@SIM@,$SIM,;t t |
25083 | s,@SIM_OBS@,$SIM_OBS,;t t | |
b4e70030 JB |
25084 | s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t |
25085 | s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t | |
25086 | s,@CONFIG_OBS@,$CONFIG_OBS,;t t | |
25087 | s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t | |
25088 | s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t | |
25089 | s,@CONFIG_ALL@,$CONFIG_ALL,;t t | |
25090 | s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t | |
25091 | s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t | |
25092 | s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t | |
25093 | s,@target_subdir@,$target_subdir,;t t | |
25094 | s,@frags@,$frags,;t t | |
b4e70030 JB |
25095 | s,@nm_h@,$nm_h,;t t |
25096 | s,@LIBICONV@,$LIBICONV,;t t | |
25097 | s,@LIBOBJS@,$LIBOBJS,;t t | |
25098 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
25099 | /@host_makefile_frag@/r $host_makefile_frag | |
25100 | s,@host_makefile_frag@,,;t t | |
b4e70030 JB |
25101 | CEOF |
25102 | ||
25103 | _ACEOF | |
25104 | ||
25105 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25106 | # Split the substitutions into bite-sized pieces for seds with | |
25107 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
25108 | ac_max_sed_lines=48 | |
25109 | ac_sed_frag=1 # Number of current file. | |
25110 | ac_beg=1 # First line for current file. | |
25111 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
25112 | ac_more_lines=: | |
25113 | ac_sed_cmds= | |
25114 | while $ac_more_lines; do | |
25115 | if test $ac_beg -gt 1; then | |
25116 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
25117 | else | |
25118 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
4e8d927d | 25119 | fi |
b4e70030 JB |
25120 | if test ! -s $tmp/subs.frag; then |
25121 | ac_more_lines=false | |
25122 | else | |
25123 | # The purpose of the label and of the branching condition is to | |
25124 | # speed up the sed processing (if there are no `@' at all, there | |
25125 | # is no need to browse any of the substitutions). | |
25126 | # These are the two extra sed commands mentioned above. | |
25127 | (echo ':t | |
25128 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
25129 | if test -z "$ac_sed_cmds"; then | |
25130 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
25131 | else | |
25132 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
25133 | fi | |
25134 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
25135 | ac_beg=$ac_end | |
25136 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
25137 | fi | |
25138 | done | |
25139 | if test -z "$ac_sed_cmds"; then | |
25140 | ac_sed_cmds=cat | |
25141 | fi | |
25142 | fi # test -n "$CONFIG_FILES" | |
4e8d927d | 25143 | |
b4e70030 JB |
25144 | _ACEOF |
25145 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25146 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
25147 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
25148 | case $ac_file in | |
25149 | - | *:- | *:-:* ) # input from stdin | |
25150 | cat >$tmp/stdin | |
25151 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25152 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25153 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25154 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25155 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
25156 | esac |
25157 | ||
b4e70030 JB |
25158 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
25159 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
bec39cab AC |
25160 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
25161 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
25162 | X"$ac_file" : 'X\(//\)$' \| \ | |
b4e70030 JB |
25163 | X"$ac_file" : 'X\(/\)' \| \ |
25164 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 25165 | echo X"$ac_file" | |
b4e70030 JB |
25166 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
25167 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25168 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25169 | /^X\(\/\).*/{ s//\1/; q; } | |
25170 | s/.*/./; q'` | |
25171 | { if $as_mkdir_p; then | |
25172 | mkdir -p "$ac_dir" | |
25173 | else | |
25174 | as_dir="$ac_dir" | |
bec39cab | 25175 | as_dirs= |
b4e70030 JB |
25176 | while test ! -d "$as_dir"; do |
25177 | as_dirs="$as_dir $as_dirs" | |
25178 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
25179 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
25180 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25181 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
25182 | X"$as_dir" : 'X\(/\)' \| \ |
25183 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 25184 | echo X"$as_dir" | |
b4e70030 JB |
25185 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
25186 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25187 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25188 | /^X\(\/\).*/{ s//\1/; q; } | |
25189 | s/.*/./; q'` | |
bec39cab | 25190 | done |
b4e70030 JB |
25191 | test ! -n "$as_dirs" || mkdir $as_dirs |
25192 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25193 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 25194 | { (exit 1); exit 1; }; }; } |
b4e70030 | 25195 | |
bec39cab AC |
25196 | ac_builddir=. |
25197 | ||
b4e70030 | 25198 | if test "$ac_dir" != .; then |
bec39cab | 25199 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
25200 | # A "../" for each directory in $ac_dir_suffix. |
25201 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25202 | else | |
25203 | ac_dir_suffix= ac_top_builddir= | |
25204 | fi | |
bec39cab AC |
25205 | |
25206 | case $srcdir in | |
b4e70030 | 25207 | .) # No --srcdir option. We are building in place. |
bec39cab | 25208 | ac_srcdir=. |
b4e70030 JB |
25209 | if test -z "$ac_top_builddir"; then |
25210 | ac_top_srcdir=. | |
25211 | else | |
25212 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25213 | fi ;; | |
25214 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 25215 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
25216 | ac_top_srcdir=$srcdir ;; |
25217 | *) # Relative path. | |
25218 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25219 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
bec39cab AC |
25220 | esac |
25221 | ||
b4e70030 JB |
25222 | # Do not use `cd foo && pwd` to compute absolute paths, because |
25223 | # the directories may not exist. | |
25224 | case `pwd` in | |
25225 | .) ac_abs_builddir="$ac_dir";; | |
25226 | *) | |
25227 | case "$ac_dir" in | |
25228 | .) ac_abs_builddir=`pwd`;; | |
25229 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
25230 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
25231 | esac;; | |
25232 | esac | |
25233 | case $ac_abs_builddir in | |
25234 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25235 | *) | |
25236 | case ${ac_top_builddir}. in | |
25237 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25238 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25239 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25240 | esac;; | |
25241 | esac | |
25242 | case $ac_abs_builddir in | |
25243 | .) ac_abs_srcdir=$ac_srcdir;; | |
25244 | *) | |
25245 | case $ac_srcdir in | |
25246 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25247 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25248 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25249 | esac;; | |
25250 | esac | |
25251 | case $ac_abs_builddir in | |
25252 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25253 | *) | |
25254 | case $ac_top_srcdir in | |
25255 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25256 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25257 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25258 | esac;; | |
25259 | esac | |
c906108c | 25260 | |
c906108c | 25261 | |
bec39cab AC |
25262 | case $INSTALL in |
25263 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
b4e70030 | 25264 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
c906108c | 25265 | esac |
121ce6e5 | 25266 | |
b4e70030 JB |
25267 | if test x"$ac_file" != x-; then |
25268 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
25269 | echo "$as_me: creating $ac_file" >&6;} | |
25270 | rm -f "$ac_file" | |
25271 | fi | |
25272 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
25273 | # use $as_me), people would be surprised to read: | |
25274 | # /* config.h. Generated by config.status. */ | |
25275 | if test x"$ac_file" = x-; then | |
25276 | configure_input= | |
25277 | else | |
25278 | configure_input="$ac_file. " | |
25279 | fi | |
25280 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
25281 | sed 's,.*/,,'` by configure." | |
25282 | ||
25283 | # First look for the input files in the build tree, otherwise in the | |
25284 | # src tree. | |
25285 | ac_file_inputs=`IFS=: | |
25286 | for f in $ac_file_in; do | |
25287 | case $f in | |
25288 | -) echo $tmp/stdin ;; | |
25289 | [\\/$]*) | |
25290 | # Absolute (can't be DOS-style, as IFS=:) | |
25291 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25292 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25293 | { (exit 1); exit 1; }; } | |
25294 | echo "$f";; | |
25295 | *) # Relative | |
25296 | if test -f "$f"; then | |
25297 | # Build tree | |
25298 | echo "$f" | |
25299 | elif test -f "$srcdir/$f"; then | |
25300 | # Source tree | |
25301 | echo "$srcdir/$f" | |
25302 | else | |
25303 | # /dev/null tree | |
25304 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25305 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25306 | { (exit 1); exit 1; }; } | |
25307 | fi;; | |
25308 | esac | |
25309 | done` || { (exit 1); exit 1; } | |
4e8d927d | 25310 | _ACEOF |
bec39cab AC |
25311 | cat >>$CONFIG_STATUS <<_ACEOF |
25312 | sed "$ac_vpsub | |
25313 | $extrasub | |
25314 | _ACEOF | |
25315 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25316 | :t | |
25317 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
b4e70030 JB |
25318 | s,@configure_input@,$configure_input,;t t |
25319 | s,@srcdir@,$ac_srcdir,;t t | |
25320 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
25321 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
25322 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
25323 | s,@builddir@,$ac_builddir,;t t | |
25324 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
25325 | s,@top_builddir@,$ac_top_builddir,;t t | |
25326 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
25327 | s,@INSTALL@,$ac_INSTALL,;t t | |
25328 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
25329 | rm -f $tmp/stdin | |
25330 | if test x"$ac_file" != x-; then | |
25331 | mv $tmp/out $ac_file | |
25332 | else | |
25333 | cat $tmp/out | |
25334 | rm -f $tmp/out | |
25335 | fi | |
25336 | ||
25337 | done | |
25338 | _ACEOF | |
25339 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25340 | ||
25341 | # | |
25342 | # CONFIG_HEADER section. | |
25343 | # | |
25344 | ||
25345 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
25346 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
25347 | # | |
25348 | # ac_d sets the value in "#define NAME VALUE" lines. | |
25349 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
25350 | ac_dB='[ ].*$,\1#\2' | |
25351 | ac_dC=' ' | |
25352 | ac_dD=',;t' | |
25353 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
25354 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
25355 | ac_uB='$,\1#\2define\3' | |
25356 | ac_uC=' ' | |
25357 | ac_uD=',;t' | |
25358 | ||
25359 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
25360 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
bec39cab | 25361 | case $ac_file in |
b4e70030 JB |
25362 | - | *:- | *:-:* ) # input from stdin |
25363 | cat >$tmp/stdin | |
25364 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25365 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25366 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25367 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
25368 | * ) ac_file_in=$ac_file.in ;; | |
c906108c | 25369 | esac |
b4e70030 JB |
25370 | |
25371 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
25372 | echo "$as_me: creating $ac_file" >&6;} | |
25373 | ||
25374 | # First look for the input files in the build tree, otherwise in the | |
25375 | # src tree. | |
25376 | ac_file_inputs=`IFS=: | |
25377 | for f in $ac_file_in; do | |
25378 | case $f in | |
25379 | -) echo $tmp/stdin ;; | |
25380 | [\\/$]*) | |
25381 | # Absolute (can't be DOS-style, as IFS=:) | |
25382 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25383 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25384 | { (exit 1); exit 1; }; } | |
25385 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
25386 | echo "$f";; | |
25387 | *) # Relative | |
25388 | if test -f "$f"; then | |
25389 | # Build tree | |
25390 | echo "$f" | |
25391 | elif test -f "$srcdir/$f"; then | |
25392 | # Source tree | |
25393 | echo "$srcdir/$f" | |
25394 | else | |
25395 | # /dev/null tree | |
25396 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
25397 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
25398 | { (exit 1); exit 1; }; } | |
25399 | fi;; | |
25400 | esac | |
25401 | done` || { (exit 1); exit 1; } | |
25402 | # Remove the trailing spaces. | |
25403 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
25404 | ||
25405 | _ACEOF | |
25406 | ||
25407 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
25408 | # `conftest.undefs', that substitutes the proper values into | |
25409 | # config.h.in to produce config.h. The first handles `#define' | |
25410 | # templates, and the second `#undef' templates. | |
25411 | # And first: Protect against being on the right side of a sed subst in | |
25412 | # config.status. Protect against being in an unquoted here document | |
25413 | # in config.status. | |
25414 | rm -f conftest.defines conftest.undefs | |
25415 | # Using a here document instead of a string reduces the quoting nightmare. | |
25416 | # Putting comments in sed scripts is not portable. | |
25417 | # | |
25418 | # `end' is used to avoid that the second main sed command (meant for | |
25419 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
25420 | # See the Autoconf documentation for `clear'. | |
25421 | cat >confdef2sed.sed <<\_ACEOF | |
25422 | s/[\\&,]/\\&/g | |
25423 | s,[\\$`],\\&,g | |
25424 | t clear | |
25425 | : clear | |
25426 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
25427 | t end | |
25428 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
25429 | : end | |
25430 | _ACEOF | |
25431 | # If some macros were called several times there might be several times | |
25432 | # the same #defines, which is useless. Nevertheless, we may not want to | |
25433 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
25434 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
25435 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
25436 | rm -f confdef2sed.sed | |
25437 | ||
25438 | # This sed command replaces #undef with comments. This is necessary, for | |
c906108c SS |
25439 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
25440 | # on some systems where configure will not decide to define it. | |
b4e70030 JB |
25441 | cat >>conftest.undefs <<\_ACEOF |
25442 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
25443 | _ACEOF | |
25444 | ||
25445 | # Break up conftest.defines because some shells have a limit on the size | |
25446 | # of here documents, and old seds have small limits too (100 cmds). | |
25447 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
25448 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
25449 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
25450 | echo ' :' >>$CONFIG_STATUS | |
25451 | rm -f conftest.tail | |
25452 | while grep . conftest.defines >/dev/null | |
bec39cab | 25453 | do |
b4e70030 JB |
25454 | # Write a limited-size here document to $tmp/defines.sed. |
25455 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
25456 | # Speed up: don't consider the non `#define' lines. | |
25457 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
25458 | # Work around the forget-to-reset-the-flag bug. | |
25459 | echo 't clr' >>$CONFIG_STATUS | |
25460 | echo ': clr' >>$CONFIG_STATUS | |
25461 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
bec39cab | 25462 | echo 'CEOF |
b4e70030 JB |
25463 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
25464 | rm -f $tmp/in | |
25465 | mv $tmp/out $tmp/in | |
25466 | ' >>$CONFIG_STATUS | |
25467 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
bec39cab AC |
25468 | rm -f conftest.defines |
25469 | mv conftest.tail conftest.defines | |
25470 | done | |
b4e70030 JB |
25471 | rm -f conftest.defines |
25472 | echo ' fi # grep' >>$CONFIG_STATUS | |
25473 | echo >>$CONFIG_STATUS | |
25474 | ||
25475 | # Break up conftest.undefs because some shells have a limit on the size | |
25476 | # of here documents, and old seds have small limits too (100 cmds). | |
25477 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
25478 | rm -f conftest.tail | |
25479 | while grep . conftest.undefs >/dev/null | |
25480 | do | |
25481 | # Write a limited-size here document to $tmp/undefs.sed. | |
25482 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
25483 | # Speed up: don't consider the non `#undef' | |
25484 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
25485 | # Work around the forget-to-reset-the-flag bug. | |
25486 | echo 't clr' >>$CONFIG_STATUS | |
25487 | echo ': clr' >>$CONFIG_STATUS | |
25488 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
25489 | echo 'CEOF | |
25490 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
25491 | rm -f $tmp/in | |
25492 | mv $tmp/out $tmp/in | |
25493 | ' >>$CONFIG_STATUS | |
25494 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
25495 | rm -f conftest.undefs | |
25496 | mv conftest.tail conftest.undefs | |
25497 | done | |
25498 | rm -f conftest.undefs | |
bec39cab AC |
25499 | |
25500 | cat >>$CONFIG_STATUS <<\_ACEOF | |
b4e70030 JB |
25501 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
25502 | # use $as_me), people would be surprised to read: | |
25503 | # /* config.h. Generated by config.status. */ | |
25504 | if test x"$ac_file" = x-; then | |
25505 | echo "/* Generated by configure. */" >$tmp/config.h | |
25506 | else | |
25507 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
25508 | fi | |
25509 | cat $tmp/in >>$tmp/config.h | |
25510 | rm -f $tmp/in | |
bec39cab | 25511 | if test x"$ac_file" != x-; then |
b4e70030 | 25512 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
bec39cab AC |
25513 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
25514 | echo "$as_me: $ac_file is unchanged" >&6;} | |
25515 | else | |
b4e70030 JB |
25516 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
25517 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25518 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
25519 | X"$ac_file" : 'X\(//\)$' \| \ | |
25520 | X"$ac_file" : 'X\(/\)' \| \ | |
25521 | . : '\(.\)' 2>/dev/null || | |
25522 | echo X"$ac_file" | | |
25523 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25524 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25525 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25526 | /^X\(\/\).*/{ s//\1/; q; } | |
25527 | s/.*/./; q'` | |
25528 | { if $as_mkdir_p; then | |
25529 | mkdir -p "$ac_dir" | |
25530 | else | |
25531 | as_dir="$ac_dir" | |
25532 | as_dirs= | |
25533 | while test ! -d "$as_dir"; do | |
25534 | as_dirs="$as_dir $as_dirs" | |
25535 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25536 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25537 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25538 | X"$as_dir" : 'X\(//\)$' \| \ | |
25539 | X"$as_dir" : 'X\(/\)' \| \ | |
25540 | . : '\(.\)' 2>/dev/null || | |
25541 | echo X"$as_dir" | | |
25542 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25543 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25544 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25545 | /^X\(\/\).*/{ s//\1/; q; } | |
25546 | s/.*/./; q'` | |
25547 | done | |
25548 | test ! -n "$as_dirs" || mkdir $as_dirs | |
25549 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25550 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
25551 | { (exit 1); exit 1; }; }; } | |
25552 | ||
bec39cab | 25553 | rm -f $ac_file |
b4e70030 | 25554 | mv $tmp/config.h $ac_file |
bec39cab AC |
25555 | fi |
25556 | else | |
b4e70030 JB |
25557 | cat $tmp/config.h |
25558 | rm -f $tmp/config.h | |
bec39cab | 25559 | fi |
b4e70030 JB |
25560 | done |
25561 | _ACEOF | |
25562 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25563 | ||
25564 | # | |
25565 | # CONFIG_LINKS section. | |
25566 | # | |
25567 | ||
25568 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue | |
25569 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
25570 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
c906108c | 25571 | |
b4e70030 JB |
25572 | { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5 |
25573 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} | |
c906108c SS |
25574 | |
25575 | if test ! -r $srcdir/$ac_source; then | |
bec39cab AC |
25576 | { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5 |
25577 | echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;} | |
25578 | { (exit 1); exit 1; }; } | |
c906108c | 25579 | fi |
b4e70030 JB |
25580 | rm -f $ac_dest |
25581 | ||
25582 | # Make relative symlinks. | |
25583 | ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null || | |
25584 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25585 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
25586 | X"$ac_dest" : 'X\(//\)$' \| \ | |
25587 | X"$ac_dest" : 'X\(/\)' \| \ | |
25588 | . : '\(.\)' 2>/dev/null || | |
25589 | echo X"$ac_dest" | | |
25590 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25591 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25592 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25593 | /^X\(\/\).*/{ s//\1/; q; } | |
25594 | s/.*/./; q'` | |
25595 | { if $as_mkdir_p; then | |
25596 | mkdir -p "$ac_dest_dir" | |
25597 | else | |
25598 | as_dir="$ac_dest_dir" | |
25599 | as_dirs= | |
25600 | while test ! -d "$as_dir"; do | |
25601 | as_dirs="$as_dir $as_dirs" | |
25602 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25603 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25604 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25605 | X"$as_dir" : 'X\(//\)$' \| \ | |
25606 | X"$as_dir" : 'X\(/\)' \| \ | |
25607 | . : '\(.\)' 2>/dev/null || | |
25608 | echo X"$as_dir" | | |
25609 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25610 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25611 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25612 | /^X\(\/\).*/{ s//\1/; q; } | |
25613 | s/.*/./; q'` | |
25614 | done | |
25615 | test ! -n "$as_dirs" || mkdir $as_dirs | |
25616 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5 | |
25617 | echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;} | |
25618 | { (exit 1); exit 1; }; }; } | |
25619 | ||
25620 | ac_builddir=. | |
25621 | ||
25622 | if test "$ac_dest_dir" != .; then | |
25623 | ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'` | |
25624 | # A "../" for each directory in $ac_dir_suffix. | |
25625 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25626 | else | |
25627 | ac_dir_suffix= ac_top_builddir= | |
25628 | fi | |
25629 | ||
25630 | case $srcdir in | |
25631 | .) # No --srcdir option. We are building in place. | |
25632 | ac_srcdir=. | |
25633 | if test -z "$ac_top_builddir"; then | |
25634 | ac_top_srcdir=. | |
25635 | else | |
25636 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25637 | fi ;; | |
25638 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
25639 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25640 | ac_top_srcdir=$srcdir ;; | |
25641 | *) # Relative path. | |
25642 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25643 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25644 | esac | |
25645 | ||
25646 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
25647 | # the directories may not exist. | |
25648 | case `pwd` in | |
25649 | .) ac_abs_builddir="$ac_dest_dir";; | |
25650 | *) | |
25651 | case "$ac_dest_dir" in | |
25652 | .) ac_abs_builddir=`pwd`;; | |
25653 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";; | |
25654 | *) ac_abs_builddir=`pwd`/"$ac_dest_dir";; | |
25655 | esac;; | |
25656 | esac | |
25657 | case $ac_abs_builddir in | |
25658 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25659 | *) | |
25660 | case ${ac_top_builddir}. in | |
25661 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25662 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25663 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25664 | esac;; | |
25665 | esac | |
25666 | case $ac_abs_builddir in | |
25667 | .) ac_abs_srcdir=$ac_srcdir;; | |
25668 | *) | |
25669 | case $ac_srcdir in | |
25670 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25671 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25672 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25673 | esac;; | |
25674 | esac | |
25675 | case $ac_abs_builddir in | |
25676 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25677 | *) | |
25678 | case $ac_top_srcdir in | |
25679 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25680 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25681 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25682 | esac;; | |
25683 | esac | |
25684 | ||
bec39cab AC |
25685 | |
25686 | case $srcdir in | |
25687 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
b4e70030 | 25688 | *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;; |
c906108c | 25689 | esac |
b4e70030 JB |
25690 | |
25691 | # Try a symlink, then a hard link, then a copy. | |
25692 | ln -s $ac_rel_source $ac_dest 2>/dev/null || | |
25693 | ln $srcdir/$ac_source $ac_dest 2>/dev/null || | |
25694 | cp -p $srcdir/$ac_source $ac_dest || | |
25695 | { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5 | |
25696 | echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;} | |
bec39cab | 25697 | { (exit 1); exit 1; }; } |
b4e70030 JB |
25698 | done |
25699 | _ACEOF | |
25700 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25701 | ||
25702 | # | |
25703 | # CONFIG_COMMANDS section. | |
25704 | # | |
25705 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
25706 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
25707 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
25708 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
25709 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25710 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
25711 | X"$ac_dest" : 'X\(//\)$' \| \ | |
25712 | X"$ac_dest" : 'X\(/\)' \| \ | |
25713 | . : '\(.\)' 2>/dev/null || | |
25714 | echo X"$ac_dest" | | |
25715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25716 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25717 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25718 | /^X\(\/\).*/{ s//\1/; q; } | |
25719 | s/.*/./; q'` | |
25720 | { if $as_mkdir_p; then | |
25721 | mkdir -p "$ac_dir" | |
25722 | else | |
25723 | as_dir="$ac_dir" | |
25724 | as_dirs= | |
25725 | while test ! -d "$as_dir"; do | |
25726 | as_dirs="$as_dir $as_dirs" | |
25727 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
25728 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
25729 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
25730 | X"$as_dir" : 'X\(//\)$' \| \ | |
25731 | X"$as_dir" : 'X\(/\)' \| \ | |
25732 | . : '\(.\)' 2>/dev/null || | |
25733 | echo X"$as_dir" | | |
25734 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
25735 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
25736 | /^X\(\/\/\)$/{ s//\1/; q; } | |
25737 | /^X\(\/\).*/{ s//\1/; q; } | |
25738 | s/.*/./; q'` | |
25739 | done | |
25740 | test ! -n "$as_dirs" || mkdir $as_dirs | |
25741 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
25742 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
25743 | { (exit 1); exit 1; }; }; } | |
25744 | ||
25745 | ac_builddir=. | |
25746 | ||
25747 | if test "$ac_dir" != .; then | |
25748 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
25749 | # A "../" for each directory in $ac_dir_suffix. | |
25750 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
25751 | else | |
25752 | ac_dir_suffix= ac_top_builddir= | |
25753 | fi | |
25754 | ||
25755 | case $srcdir in | |
25756 | .) # No --srcdir option. We are building in place. | |
25757 | ac_srcdir=. | |
25758 | if test -z "$ac_top_builddir"; then | |
25759 | ac_top_srcdir=. | |
25760 | else | |
25761 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
25762 | fi ;; | |
25763 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
25764 | ac_srcdir=$srcdir$ac_dir_suffix; | |
25765 | ac_top_srcdir=$srcdir ;; | |
25766 | *) # Relative path. | |
25767 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
25768 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
25769 | esac | |
25770 | ||
25771 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
25772 | # the directories may not exist. | |
25773 | case `pwd` in | |
25774 | .) ac_abs_builddir="$ac_dir";; | |
25775 | *) | |
25776 | case "$ac_dir" in | |
25777 | .) ac_abs_builddir=`pwd`;; | |
25778 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
25779 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
25780 | esac;; | |
25781 | esac | |
25782 | case $ac_abs_builddir in | |
25783 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25784 | *) | |
25785 | case ${ac_top_builddir}. in | |
25786 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
25787 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
25788 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
25789 | esac;; | |
25790 | esac | |
25791 | case $ac_abs_builddir in | |
25792 | .) ac_abs_srcdir=$ac_srcdir;; | |
25793 | *) | |
25794 | case $ac_srcdir in | |
25795 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
25796 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
25797 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
25798 | esac;; | |
25799 | esac | |
25800 | case $ac_abs_builddir in | |
25801 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25802 | *) | |
25803 | case $ac_top_srcdir in | |
25804 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
25805 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
25806 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
25807 | esac;; | |
25808 | esac | |
bec39cab | 25809 | |
bec39cab | 25810 | |
b4e70030 JB |
25811 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
25812 | echo "$as_me: executing $ac_dest commands" >&6;} | |
25813 | case $ac_dest in | |
25814 | gdb_stdint.h ) | |
4e8d927d DJ |
25815 | if test "$GCC" = yes; then |
25816 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
25817 | else | |
25818 | echo "/* generated for $CC */" > tmp-stdint.h | |
25819 | fi | |
25820 | ||
25821 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25822 | ||
25823 | #ifndef GCC_GENERATED_STDINT_H | |
25824 | #define GCC_GENERATED_STDINT_H 1 | |
25825 | ||
25826 | #include <sys/types.h> | |
25827 | EOF | |
25828 | ||
25829 | if test "$acx_cv_header_stdint" != stdint.h; then | |
25830 | echo "#include <stddef.h>" >> tmp-stdint.h | |
25831 | fi | |
25832 | if test "$acx_cv_header_stdint" != stddef.h; then | |
25833 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
25834 | fi | |
25835 | ||
25836 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25837 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
25838 | #ifdef __int8_t_defined | |
25839 | #define _INT8_T | |
25840 | #define _INT16_T | |
25841 | #define _INT32_T | |
25842 | #endif | |
25843 | #ifdef __uint32_t_defined | |
25844 | #define _UINT32_T | |
25845 | #endif | |
25846 | ||
25847 | EOF | |
25848 | ||
25849 | # ----------------- done header, emit basic int types ------------- | |
25850 | if test "$acx_cv_header_stdint" = stddef.h; then | |
25851 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25852 | ||
25853 | #ifndef _UINT8_T | |
25854 | #define _UINT8_T | |
07abfebf RS |
25855 | #ifndef __uint8_t_defined |
25856 | #define __uint8_t_defined | |
4e8d927d DJ |
25857 | typedef unsigned $acx_cv_type_int8_t uint8_t; |
25858 | #endif | |
07abfebf | 25859 | #endif |
4e8d927d DJ |
25860 | |
25861 | #ifndef _UINT16_T | |
25862 | #define _UINT16_T | |
07abfebf RS |
25863 | #ifndef __uint16_t_defined |
25864 | #define __uint16_t_defined | |
4e8d927d DJ |
25865 | typedef unsigned $acx_cv_type_int16_t uint16_t; |
25866 | #endif | |
07abfebf | 25867 | #endif |
4e8d927d DJ |
25868 | |
25869 | #ifndef _UINT32_T | |
25870 | #define _UINT32_T | |
07abfebf RS |
25871 | #ifndef __uint32_t_defined |
25872 | #define __uint32_t_defined | |
4e8d927d DJ |
25873 | typedef unsigned $acx_cv_type_int32_t uint32_t; |
25874 | #endif | |
07abfebf | 25875 | #endif |
4e8d927d DJ |
25876 | |
25877 | #ifndef _INT8_T | |
25878 | #define _INT8_T | |
07abfebf RS |
25879 | #ifndef __int8_t_defined |
25880 | #define __int8_t_defined | |
4e8d927d DJ |
25881 | typedef $acx_cv_type_int8_t int8_t; |
25882 | #endif | |
07abfebf | 25883 | #endif |
4e8d927d DJ |
25884 | |
25885 | #ifndef _INT16_T | |
25886 | #define _INT16_T | |
07abfebf RS |
25887 | #ifndef __int16_t_defined |
25888 | #define __int16_t_defined | |
4e8d927d DJ |
25889 | typedef $acx_cv_type_int16_t int16_t; |
25890 | #endif | |
07abfebf | 25891 | #endif |
4e8d927d DJ |
25892 | |
25893 | #ifndef _INT32_T | |
25894 | #define _INT32_T | |
07abfebf RS |
25895 | #ifndef __int32_t_defined |
25896 | #define __int32_t_defined | |
4e8d927d DJ |
25897 | typedef $acx_cv_type_int32_t int32_t; |
25898 | #endif | |
07abfebf | 25899 | #endif |
4e8d927d DJ |
25900 | EOF |
25901 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
25902 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25903 | ||
25904 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
25905 | #ifndef _INT8_T | |
25906 | #define _INT8_T | |
25907 | #endif | |
25908 | #ifndef _INT16_T | |
25909 | #define _INT16_T | |
25910 | #endif | |
25911 | #ifndef _INT32_T | |
25912 | #define _INT32_T | |
25913 | #endif | |
25914 | ||
25915 | #ifndef _UINT8_T | |
25916 | #define _UINT8_T | |
07abfebf RS |
25917 | #ifndef __uint8_t_defined |
25918 | #define __uint8_t_defined | |
4e8d927d DJ |
25919 | typedef u_int8_t uint8_t; |
25920 | #endif | |
07abfebf | 25921 | #endif |
4e8d927d DJ |
25922 | |
25923 | #ifndef _UINT16_T | |
25924 | #define _UINT16_T | |
07abfebf RS |
25925 | #ifndef __uint16_t_defined |
25926 | #define __uint16_t_defined | |
4e8d927d DJ |
25927 | typedef u_int16_t uint16_t; |
25928 | #endif | |
07abfebf | 25929 | #endif |
4e8d927d DJ |
25930 | |
25931 | #ifndef _UINT32_T | |
25932 | #define _UINT32_T | |
07abfebf RS |
25933 | #ifndef __uint32_t_defined |
25934 | #define __uint32_t_defined | |
4e8d927d DJ |
25935 | typedef u_int32_t uint32_t; |
25936 | #endif | |
07abfebf | 25937 | #endif |
4e8d927d DJ |
25938 | EOF |
25939 | else | |
25940 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25941 | ||
25942 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
25943 | #ifndef _INT8_T | |
25944 | #define _INT8_T | |
25945 | #endif | |
25946 | #ifndef _INT16_T | |
25947 | #define _INT16_T | |
25948 | #endif | |
25949 | #ifndef _INT32_T | |
25950 | #define _INT32_T | |
25951 | #endif | |
25952 | #ifndef _UINT8_T | |
25953 | #define _UINT8_T | |
25954 | #endif | |
25955 | #ifndef _UINT16_T | |
25956 | #define _UINT16_T | |
25957 | #endif | |
25958 | #ifndef _UINT32_T | |
25959 | #define _UINT32_T | |
25960 | #endif | |
25961 | EOF | |
25962 | fi | |
25963 | ||
25964 | # ------------- done basic int types, emit int64_t types ------------ | |
25965 | if test "$ac_cv_type_uint64_t" = yes; then | |
25966 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25967 | ||
25968 | /* system headers have good uint64_t and int64_t */ | |
25969 | #ifndef _INT64_T | |
25970 | #define _INT64_T | |
25971 | #endif | |
25972 | #ifndef _UINT64_T | |
25973 | #define _UINT64_T | |
25974 | #endif | |
25975 | EOF | |
25976 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
25977 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25978 | ||
25979 | /* system headers have an u_int64_t (and int64_t) */ | |
25980 | #ifndef _INT64_T | |
25981 | #define _INT64_T | |
25982 | #endif | |
25983 | #ifndef _UINT64_T | |
25984 | #define _UINT64_T | |
07abfebf RS |
25985 | #ifndef __uint64_t_defined |
25986 | #define __uint64_t_defined | |
4e8d927d DJ |
25987 | typedef u_int64_t uint64_t; |
25988 | #endif | |
07abfebf | 25989 | #endif |
4e8d927d DJ |
25990 | EOF |
25991 | elif test -n "$acx_cv_type_int64_t"; then | |
25992 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25993 | ||
25994 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
25995 | #ifndef _INT64_T | |
25996 | #define _INT64_T | |
25997 | typedef $acx_cv_type_int64_t int64_t; | |
25998 | #endif | |
25999 | #ifndef _UINT64_T | |
26000 | #define _UINT64_T | |
07abfebf RS |
26001 | #ifndef __uint64_t_defined |
26002 | #define __uint64_t_defined | |
4e8d927d DJ |
26003 | typedef unsigned $acx_cv_type_int64_t uint64_t; |
26004 | #endif | |
07abfebf | 26005 | #endif |
4e8d927d DJ |
26006 | EOF |
26007 | else | |
26008 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26009 | ||
26010 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
26011 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
26012 | #ifndef _INT64_T | |
26013 | #define _INT64_T | |
07abfebf | 26014 | #ifndef __int64_t_defined |
4e8d927d DJ |
26015 | typedef long long int64_t; |
26016 | #endif | |
07abfebf | 26017 | #endif |
4e8d927d DJ |
26018 | #ifndef _UINT64_T |
26019 | #define _UINT64_T | |
26020 | typedef unsigned long long uint64_t; | |
26021 | #endif | |
26022 | ||
26023 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
26024 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
26025 | does not implement __extension__. But that compiler doesn't define | |
26026 | __GNUC_MINOR__. */ | |
26027 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
26028 | # define __extension__ | |
26029 | # endif | |
26030 | ||
26031 | # ifndef _INT64_T | |
26032 | # define _INT64_T | |
26033 | __extension__ typedef long long int64_t; | |
26034 | # endif | |
26035 | # ifndef _UINT64_T | |
26036 | # define _UINT64_T | |
26037 | __extension__ typedef unsigned long long uint64_t; | |
26038 | # endif | |
26039 | ||
26040 | #elif !defined __STRICT_ANSI__ | |
26041 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
26042 | ||
26043 | # ifndef _INT64_T | |
26044 | # define _INT64_T | |
26045 | typedef __int64 int64_t; | |
26046 | # endif | |
26047 | # ifndef _UINT64_T | |
26048 | # define _UINT64_T | |
26049 | typedef unsigned __int64 uint64_t; | |
26050 | # endif | |
26051 | # endif /* compiler */ | |
26052 | ||
26053 | #endif /* ANSI version */ | |
26054 | EOF | |
26055 | fi | |
26056 | ||
26057 | # ------------- done int64_t types, emit intptr types ------------ | |
26058 | if test "$ac_cv_type_uintptr_t" != yes; then | |
26059 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26060 | ||
26061 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
07abfebf | 26062 | #ifndef __uintptr_t_defined |
4e8d927d | 26063 | typedef u$acx_cv_type_intptr_t uintptr_t; |
07abfebf RS |
26064 | #endif |
26065 | #ifndef __intptr_t_defined | |
4e8d927d | 26066 | typedef $acx_cv_type_intptr_t intptr_t; |
07abfebf | 26067 | #endif |
4e8d927d DJ |
26068 | EOF |
26069 | fi | |
26070 | ||
26071 | # ------------- done intptr types, emit int_least types ------------ | |
26072 | if test "$ac_cv_type_int_least32_t" != yes; then | |
26073 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26074 | ||
26075 | /* Define int_least types */ | |
26076 | typedef int8_t int_least8_t; | |
26077 | typedef int16_t int_least16_t; | |
26078 | typedef int32_t int_least32_t; | |
26079 | #ifdef _INT64_T | |
26080 | typedef int64_t int_least64_t; | |
26081 | #endif | |
26082 | ||
26083 | typedef uint8_t uint_least8_t; | |
26084 | typedef uint16_t uint_least16_t; | |
26085 | typedef uint32_t uint_least32_t; | |
26086 | #ifdef _UINT64_T | |
26087 | typedef uint64_t uint_least64_t; | |
26088 | #endif | |
26089 | EOF | |
26090 | fi | |
26091 | ||
26092 | # ------------- done intptr types, emit int_fast types ------------ | |
26093 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
26094 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26095 | ||
26096 | /* Define int_fast types. short is often slow */ | |
26097 | typedef int8_t int_fast8_t; | |
26098 | typedef int int_fast16_t; | |
26099 | typedef int32_t int_fast32_t; | |
26100 | #ifdef _INT64_T | |
26101 | typedef int64_t int_fast64_t; | |
26102 | #endif | |
26103 | ||
26104 | typedef uint8_t uint_fast8_t; | |
26105 | typedef unsigned int uint_fast16_t; | |
26106 | typedef uint32_t uint_fast32_t; | |
26107 | #ifdef _UINT64_T | |
26108 | typedef uint64_t uint_fast64_t; | |
26109 | #endif | |
26110 | EOF | |
26111 | fi | |
26112 | ||
26113 | if test "$ac_cv_type_uintmax_t" != yes; then | |
26114 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26115 | ||
26116 | /* Define intmax based on what we found */ | |
26117 | #ifdef _INT64_T | |
26118 | typedef int64_t intmax_t; | |
26119 | #else | |
26120 | typedef long intmax_t; | |
26121 | #endif | |
26122 | #ifdef _UINT64_T | |
26123 | typedef uint64_t uintmax_t; | |
26124 | #else | |
26125 | typedef unsigned long uintmax_t; | |
26126 | #endif | |
26127 | EOF | |
26128 | fi | |
26129 | ||
26130 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
26131 | ||
26132 | #endif /* GCC_GENERATED_STDINT_H */ | |
26133 | EOF | |
26134 | ||
26135 | if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then | |
26136 | rm -f tmp-stdint.h | |
26137 | else | |
26138 | mv -f tmp-stdint.h gdb_stdint.h | |
bec39cab AC |
26139 | fi |
26140 | ||
4e8d927d | 26141 | ;; |
b4e70030 | 26142 | default ) |
c906108c | 26143 | |
db985757 | 26144 | sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp |
c906108c SS |
26145 | mv -f Makefile.tmp Makefile |
26146 | ||
2acceee2 | 26147 | |
c906108c SS |
26148 | case x$CONFIG_HEADERS in |
26149 | xconfig.h:config.in) | |
26150 | echo > stamp-h ;; | |
26151 | esac | |
bec39cab AC |
26152 | ;; |
26153 | esac | |
b4e70030 JB |
26154 | done |
26155 | _ACEOF | |
c906108c | 26156 | |
b4e70030 | 26157 | cat >>$CONFIG_STATUS <<\_ACEOF |
bec39cab AC |
26158 | |
26159 | { (exit 0); exit 0; } | |
26160 | _ACEOF | |
c906108c | 26161 | chmod +x $CONFIG_STATUS |
bec39cab AC |
26162 | ac_clean_files=$ac_clean_files_save |
26163 | ||
26164 | ||
26165 | # configure is writing to config.log, and then calls config.status. | |
26166 | # config.status does its own redirection, appending to config.log. | |
26167 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
26168 | # by configure, so config.status won't be able to write to it; its | |
26169 | # output is simply discarded. So we exec the FD to /dev/null, | |
26170 | # effectively closing config.log, so it can be properly (re)opened and | |
26171 | # appended to by config.status. When coming back to configure, we | |
26172 | # need to make the FD available again. | |
26173 | if test "$no_create" != yes; then | |
26174 | ac_cs_success=: | |
26175 | ac_config_status_args= | |
26176 | test "$silent" = yes && | |
26177 | ac_config_status_args="$ac_config_status_args --quiet" | |
26178 | exec 5>/dev/null | |
26179 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
26180 | exec 5>>config.log | |
26181 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
26182 | # would make configure fail if this is the last instruction. | |
26183 | $ac_cs_success || { (exit 1); exit 1; } | |
26184 | fi | |
c906108c | 26185 | |
bec39cab AC |
26186 | # |
26187 | # CONFIG_SUBDIRS section. | |
26188 | # | |
c906108c SS |
26189 | if test "$no_recursion" != yes; then |
26190 | ||
26191 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
26192 | ac_sub_configure_args= | |
26193 | ac_prev= | |
b4e70030 | 26194 | for ac_arg in $ac_configure_args; do |
c906108c SS |
26195 | if test -n "$ac_prev"; then |
26196 | ac_prev= | |
26197 | continue | |
26198 | fi | |
bec39cab | 26199 | case $ac_arg in |
c906108c SS |
26200 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
26201 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
26202 | ac_prev=cache_file ;; | |
26203 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
bec39cab AC |
26204 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
26205 | | --c=*) | |
26206 | ;; | |
26207 | --config-cache | -C) | |
c906108c SS |
26208 | ;; |
26209 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
26210 | ac_prev=srcdir ;; | |
26211 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
26212 | ;; | |
bec39cab AC |
26213 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
26214 | ac_prev=prefix ;; | |
26215 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
26216 | ;; | |
b4e70030 | 26217 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; |
c906108c SS |
26218 | esac |
26219 | done | |
26220 | ||
bec39cab AC |
26221 | # Always prepend --prefix to ensure using the same prefix |
26222 | # in subdir configurations. | |
26223 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
26224 | ||
b4e70030 | 26225 | ac_popdir=`pwd` |
bec39cab | 26226 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
c906108c SS |
26227 | |
26228 | # Do not complain, so a configure script can configure whichever | |
26229 | # parts of a large source tree are present. | |
bec39cab | 26230 | test -d $srcdir/$ac_dir || continue |
c906108c | 26231 | |
b4e70030 JB |
26232 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 |
26233 | echo "$as_me: configuring in $ac_dir" >&6;} | |
26234 | { if $as_mkdir_p; then | |
26235 | mkdir -p "$ac_dir" | |
26236 | else | |
26237 | as_dir="$ac_dir" | |
bec39cab | 26238 | as_dirs= |
b4e70030 JB |
26239 | while test ! -d "$as_dir"; do |
26240 | as_dirs="$as_dir $as_dirs" | |
26241 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
bec39cab AC |
26242 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26243 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
26244 | X"$as_dir" : 'X\(//\)$' \| \ | |
b4e70030 JB |
26245 | X"$as_dir" : 'X\(/\)' \| \ |
26246 | . : '\(.\)' 2>/dev/null || | |
bec39cab | 26247 | echo X"$as_dir" | |
b4e70030 JB |
26248 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
26249 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
26250 | /^X\(\/\/\)$/{ s//\1/; q; } | |
26251 | /^X\(\/\).*/{ s//\1/; q; } | |
26252 | s/.*/./; q'` | |
bec39cab | 26253 | done |
b4e70030 JB |
26254 | test ! -n "$as_dirs" || mkdir $as_dirs |
26255 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
26256 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
bec39cab | 26257 | { (exit 1); exit 1; }; }; } |
b4e70030 | 26258 | |
bec39cab AC |
26259 | ac_builddir=. |
26260 | ||
b4e70030 | 26261 | if test "$ac_dir" != .; then |
bec39cab | 26262 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
b4e70030 JB |
26263 | # A "../" for each directory in $ac_dir_suffix. |
26264 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
26265 | else | |
26266 | ac_dir_suffix= ac_top_builddir= | |
26267 | fi | |
bec39cab AC |
26268 | |
26269 | case $srcdir in | |
b4e70030 | 26270 | .) # No --srcdir option. We are building in place. |
bec39cab | 26271 | ac_srcdir=. |
b4e70030 JB |
26272 | if test -z "$ac_top_builddir"; then |
26273 | ac_top_srcdir=. | |
26274 | else | |
26275 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
26276 | fi ;; | |
26277 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
bec39cab | 26278 | ac_srcdir=$srcdir$ac_dir_suffix; |
b4e70030 JB |
26279 | ac_top_srcdir=$srcdir ;; |
26280 | *) # Relative path. | |
26281 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
26282 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
26283 | esac | |
26284 | ||
26285 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
26286 | # the directories may not exist. | |
26287 | case `pwd` in | |
26288 | .) ac_abs_builddir="$ac_dir";; | |
26289 | *) | |
26290 | case "$ac_dir" in | |
26291 | .) ac_abs_builddir=`pwd`;; | |
26292 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
26293 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
26294 | esac;; | |
26295 | esac | |
26296 | case $ac_abs_builddir in | |
26297 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
26298 | *) | |
26299 | case ${ac_top_builddir}. in | |
26300 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
26301 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
26302 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
26303 | esac;; | |
26304 | esac | |
26305 | case $ac_abs_builddir in | |
26306 | .) ac_abs_srcdir=$ac_srcdir;; | |
26307 | *) | |
26308 | case $ac_srcdir in | |
26309 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
26310 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
26311 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
26312 | esac;; | |
26313 | esac | |
26314 | case $ac_abs_builddir in | |
26315 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
26316 | *) | |
26317 | case $ac_top_srcdir in | |
26318 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
26319 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
26320 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
26321 | esac;; | |
bec39cab | 26322 | esac |
c906108c | 26323 | |
c906108c | 26324 | |
b4e70030 | 26325 | cd $ac_dir |
c906108c SS |
26326 | |
26327 | # Check for guested configure; otherwise get Cygnus style configure. | |
bec39cab AC |
26328 | if test -f $ac_srcdir/configure.gnu; then |
26329 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
26330 | elif test -f $ac_srcdir/configure; then | |
26331 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
26332 | elif test -f $ac_srcdir/configure.in; then | |
c906108c SS |
26333 | ac_sub_configure=$ac_configure |
26334 | else | |
bec39cab AC |
26335 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 |
26336 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
c906108c SS |
26337 | ac_sub_configure= |
26338 | fi | |
26339 | ||
26340 | # The recursion is here. | |
26341 | if test -n "$ac_sub_configure"; then | |
c906108c | 26342 | # Make the cache file name correct relative to the subdirectory. |
bec39cab AC |
26343 | case $cache_file in |
26344 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
b4e70030 JB |
26345 | *) # Relative path. |
26346 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
c906108c | 26347 | esac |
c906108c | 26348 | |
bec39cab AC |
26349 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
26350 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
c906108c | 26351 | # The eval makes quoting arguments work. |
b4e70030 JB |
26352 | eval $ac_sub_configure $ac_sub_configure_args \ |
26353 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
bec39cab AC |
26354 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 |
26355 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
26356 | { (exit 1); exit 1; }; } | |
c906108c SS |
26357 | fi |
26358 | ||
b4e70030 | 26359 | cd $ac_popdir |
c906108c SS |
26360 | done |
26361 | fi | |
26362 | ||
26363 | ||
26364 | exit 0 |